ERC-721
Overview
Max Total Supply
0 MPPR
Holders
0
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Balance
0 MPPRLoading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
MPPR
Compiler Version
v0.8.19+commit.7dd6d404
Optimization Enabled:
Yes with 10000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
//SPDX-License-Identifier: MIT /*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@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ERC721 } from "@openzeppelin/contracts/token/ERC721/IERC721.sol"; import { ERC721A } from "./ERC721A.sol"; import { MarketplaceEnabled } from "./MarketplaceEnabled.sol"; contract MPPR is Ownable, ERC721A, MarketplaceEnabled { uint public _TOTAL_SUPPLY = 1900; string public baseURI = "ipfs://QmWpS4eDtXnq921mQ8okTLZ5fbUBZqS5XYtog1SyU1PZNs/"; address public _LIVE_MINT; mapping(uint=>uint) public ArtistIDs; constructor() ERC721A("Bright Moments Paris Mint Passes | MPPR", "MPPR") { // @dev note: Artist # Order Do Not Correspond To Actual Artist IDs Until On-Chain Reveal Is Seeded // Generative Artists _mint(0xd743B27D75A6DcDB34baFc6De0Acb8cecB3aC43F, 16); // Andreas Gysin _mint(0xA5d9232C831B61eF906f4E2643726840f8b35604, 16); // Aranda / Lasch _mint(0xe4f517A4ec86572a4fD5C3e074F4536D51f4f7b9, 16); // Florian Zumbrunn _mint(0x616Fc752E4D9503B1B65b51F1113003Ab2256cE9, 16); // Martin Grasser _mint(0xc7D7852C8936CFfd7903e07CE0758527C4b3e9a1, 16); // Luke Shannon _mint(0x0C192889C5a96Fb5a541Df829b5233B9DF3418e6, 16); // Sarah Ridgley _mint(0x32f848B9436F6400E5FA1fd46E9b96F4541C0966, 16); // Anna Carreras _mint(0x8C8BfA1B4BA3b71838F2386aAeBA8C5753963903, 16); // Camille and Matthieu _mint(0xd2Af9f3e3435FFdEf945830fCe4eaB40877E0475, 16); // Rudxane _mint(0xBC89166fA7dF2E8377c5ede90DC75936ba7AA698, 16); // Maya Man _mint(0x7d42611012FDbE366Bf4A0481FC0E1aBf15E245A, 16); // Jeff Davis _mint(0x9011Eb570D1bE09eA4d10f38c119DCDF29725c41, 16); // Harm van den Dorpel // AI Artists _mint(0x24C3833219AB8128644F37cbb51546cdfbCE6c02, 11); // Roope Rainisto _mint(0x5124B17B55f4c8f4395a06A461c5109cF3d5f7eB, 11); // Richard Nadler _mint(0x9Ec9F30AEC4a8077C425a4DEae3Df478c332204E, 11); // Neptunian Glitter Ball _mint(0x9bA935567CbcDfB116773f487CB5e7D871e34468, 11); // Lauren Lee McCarthy _mint(0xa1dF527dcD2C2257c2CcaAeDBd0dD74377b81b30, 11); // Aurece Vettier _mint(0xB7734b5C378FD169d2b9720d0D5AC1A7b30f9FC9, 11); // Obvious _mint(0x67580561ba59D3d59DFC854C9399D63e93C08d25, 11); // Linda Dounia // Other _mint(0xB96E81f80b3AEEf65CB6d0E280b15FD5DBE71937, 76); // Bright Moments Allocation _mint(0xFFb6D97Bd1E7B7bd08595096d15037401A1f416B, 19); // Golden Pack Buyer #1 _mint(0x1dE4d49959EAfA01aB3706Aa20707a3f1dbE2424, 19); // Golden Pack Buyer #2 _mint(0x4a934D0c751199365a3dE094CAD0DDCf742852b9, 19); // Golden Pack Buyer #3 _mint(0x5f9D41289AD44D17e6C51f889276999112e4ffFC, 19); // Golden Pack Buyer #4 _mint(0x2Cb5Ae51861A4a6E8568b527cAFC3891317Ac94d, 19); // Golden Pack Buyer #5 } /** * @dev Factory Mint */ function _MintToFactory(address Recipient, uint Amount) override virtual external onlyMarketplace { require(totalSupply() + Amount <= _TOTAL_SUPPLY, "MP: Max Supply Reached"); _mint(Recipient, Amount); } /** * @dev Seeds ArtistIDs Into Contract */ function __SeedArtistIDs(uint[] calldata _ArtistIDs) external onlyOwner { for(uint x; x < _ArtistIDs.length; x++) { ArtistIDs[x] = _ArtistIDs[x]; } } /** * @dev Seeds ArtistIDs Into Contract With Indexes */ function __SeedArtistIDsWithIndexes(uint[] calldata _Indexes, uint[] calldata _ArtistIDs) external onlyOwner { for(uint x; x < _ArtistIDs.length; x++) { ArtistIDs[_Indexes[x]] = _ArtistIDs[x]; } } /** * @dev Changes The Total Supply */ function __ChangeTotalSupply(uint NewSupply) external onlyOwner { _TOTAL_SUPPLY = NewSupply; } /** * @dev Changes The Marketplace Address */ function __ChangeMarketplaceAddress(address NewAddress) override virtual external onlyOwner { _MARKETPLACE_ADDRESS = NewAddress; } /** * @dev Executes Arbitrary Transaction(s) */ function ___Execute(address[] memory Targets, uint[] memory Values, bytes[] memory Datas) external onlyOwner { for (uint x; x < Targets.length; x++) { (bool success,) = Targets[x].call{value:(Values[x])}(Datas[x]); require(success, "i have failed u anakin"); } } /** * @dev Instantiates New LiveMint Address */ function ___NewLiveMintAddress(address NewAddress) external onlyOwner { _LIVE_MINT = NewAddress; } /** * @dev Changes The BaseURI For JSON Metadata */ function ___NewBaseURI(string calldata NewURI) external onlyOwner { baseURI = NewURI; } /** * @dev Burns Golden Token(s) */ function ___OwnerBurn(uint[] calldata TokenIDs) external onlyOwner { for(uint x; x < TokenIDs.length; x++) { _burn(TokenIDs[x], false); } } /** * @dev Withdraws All Ether From The Contract */ function ___WithdrawEther() external onlyOwner { payable(msg.sender).transfer(address(this).balance); } /** * @dev Withdraws Ether From Contract To Address With An Amount */ function ___WithdrawEtherToAddress(address payable Recipient, uint Amount) external onlyOwner { require(Amount > 0 && Amount <= address(this).balance, "Invalid Amount"); (bool Success, ) = Recipient.call{value: Amount}(""); require(Success, "Unable to Withdraw, Recipient May Have Reverted"); } /** * @dev Withdraws ERC20 Tokens **/ function ___WithdrawERC20(address TokenAddress) external onlyOwner { IERC20 erc20Token = IERC20(TokenAddress); uint balance = erc20Token.balanceOf(address(this)); require(balance > 0, "0 ERC20 Balance At `TokenAddress`"); erc20Token.transfer(msg.sender, balance); } /** * @dev Withdraws ERC721(s) Mistakenly Sent To Contract, From The Contract */ function ___WithdrawERC721(address Contract, address Recipient, uint[] calldata TokenIDs) external onlyOwner { for(uint TokenID; TokenID < TokenIDs.length; TokenID++) { IERC721(Contract).transferFrom(address(this), Recipient, TokenIDs[TokenID]); } } /** * @dev Returns Base URI */ function _baseURI() internal view virtual override returns (string memory) { return baseURI; } /*-------------------- * LIVEMINT FUNCTION * ---------------------*/ /** * @dev LiveMint Redeems Golden Token If Not Already Burned Returns (Recipient, ArtistID) */ function _LiveMintBurn(uint TokenID) external returns (address _Recipient, uint _ArtistID) { require(msg.sender == _LIVE_MINT, "MP: Sender Is Not Live Mint"); address Recipient = IERC721(address(this)).ownerOf(TokenID); require(Recipient != address(0), "MP: Invalid Recipient"); _burn(TokenID, false); return (Recipient, ArtistIDs[TokenID]); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol) pragma solidity ^0.8.0; import "../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 v4.9.0) (token/ERC721/IERC721.sol) pragma solidity ^0.8.0; import "../../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 caller. * * Emits an {ApprovalForAll} event. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns the account approved for `tokenId` token. * * Requirements: * * - `tokenId` must exist. */ function getApproved(uint256 tokenId) external view returns (address operator); /** * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`. * * See {setApprovalForAll} */ function isApprovedForAll(address owner, address operator) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol) pragma solidity ^0.8.0; /** * @title ERC721 token receiver interface * @dev Interface for any contract that wants to support safeTransfers * from ERC721 asset contracts. */ interface IERC721Receiver { /** * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} * by `operator` from `from`, this function is called. * * It must return its Solidity selector to confirm the token transfer. * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. * * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`. */ function onERC721Received( address operator, address from, uint256 tokenId, bytes calldata data ) external returns (bytes4); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) pragma solidity ^0.8.0; import "./IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` * * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol) pragma solidity ^0.8.0; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { enum Rounding { Down, // Toward negative infinity Up, // Toward infinity Zero // Toward zero } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds up instead * of rounding down. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0 * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) * with further edits by Uniswap Labs also under MIT license. */ function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod0 := mul(x, y) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // 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. require(denominator > prod1, "Math: mulDiv overflow"); /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1. // See https://cs.stackexchange.com/q/138556/92363. // Does not overflow because the denominator cannot be zero at this stage in the function. uint256 twos = denominator & (~denominator + 1); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works // in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (rounding == Rounding.Up && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2, rounded down, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10, rounded down, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10 ** 64) { value /= 10 ** 64; result += 64; } if (value >= 10 ** 32) { value /= 10 ** 32; result += 32; } if (value >= 10 ** 16) { value /= 10 ** 16; result += 16; } if (value >= 10 ** 8) { value /= 10 ** 8; result += 8; } if (value >= 10 ** 4) { value /= 10 ** 4; result += 4; } if (value >= 10 ** 2) { value /= 10 ** 2; result += 2; } if (value >= 10 ** 1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256, rounded down, of a positive value. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 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 + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol) pragma solidity ^0.8.0; /** * @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 v4.9.0) (utils/Strings.sol) pragma solidity ^0.8.0; import "./math/Math.sol"; import "./math/SignedMath.sol"; /** * @dev String operations. */ library Strings { bytes16 private constant _SYMBOLS = "0123456789abcdef"; uint8 private constant _ADDRESS_LENGTH = 20; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { unchecked { uint256 length = Math.log10(value) + 1; string memory buffer = new string(length); uint256 ptr; /// @solidity memory-safe-assembly assembly { ptr := add(buffer, add(32, length)) } while (true) { ptr--; /// @solidity memory-safe-assembly assembly { mstore8(ptr, byte(mod(value, 10), _SYMBOLS)) } value /= 10; if (value == 0) break; } return buffer; } } /** * @dev Converts a `int256` to its ASCII `string` decimal representation. */ function toString(int256 value) internal pure returns (string memory) { return string(abi.encodePacked(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) { bytes memory buffer = new bytes(2 * length + 2); buffer[0] = "0"; buffer[1] = "x"; for (uint256 i = 2 * length + 1; i > 1; --i) { buffer[i] = _SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } /** * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function toHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); } /** * @dev Returns true if the two strings are equal. */ function equal(string memory a, string memory b) internal pure returns (bool) { return keccak256(bytes(a)) == keccak256(bytes(b)); } }
// SPDX-License-Identifier: MIT // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import './IERC721A.sol'; import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol'; import '@openzeppelin/contracts/utils/Address.sol'; import '@openzeppelin/contracts/utils/Context.sol'; import '@openzeppelin/contracts/utils/Strings.sol'; import '@openzeppelin/contracts/utils/introspection/ERC165.sol'; /** * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including * the Metadata extension. Built to optimize for lower gas during batch mints. * * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..). * * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply. * * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256). */ contract ERC721A is Context, ERC165, IERC721A { using Address for address; using Strings for uint256; // The tokenId of the next token to be minted. uint256 internal _currentIndex; // The number of tokens burned. uint256 internal _burnCounter; // Token name string private _name; // Token symbol string private _symbol; // Mapping from token ID to ownership details // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details. mapping(uint256 => TokenOwnership) internal _ownerships; // Mapping owner address to address data mapping(address => AddressData) private _addressData; // Mapping from token ID to approved address mapping(uint256 => address) private _tokenApprovals; // Mapping from owner to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; _currentIndex = _startTokenId(); } /** * To change the starting tokenId, please override this function. */ function _startTokenId() internal view virtual returns (uint256) { return 0; } /** * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens. */ function totalSupply() public view override returns (uint256) { // Counter underflow is impossible as _burnCounter cannot be incremented // more than _currentIndex - _startTokenId() times unchecked { return _currentIndex - _burnCounter - _startTokenId(); } } /** * Returns the total amount of tokens minted in the contract. */ function _totalMinted() internal view returns (uint256) { // Counter underflow is impossible as _currentIndex does not decrement, // and it is initialized to _startTokenId() unchecked { return _currentIndex - _startTokenId(); } } /** * @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 override returns (uint256) { if (owner == address(0)) revert BalanceQueryForZeroAddress(); return uint256(_addressData[owner].balance); } /** * Returns the number of tokens minted by `owner`. */ function _numberMinted(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberMinted); } /** * Returns the number of tokens burned by or on behalf of `owner`. */ function _numberBurned(address owner) internal view returns (uint256) { return uint256(_addressData[owner].numberBurned); } /** * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used). */ function _getAux(address owner) internal view returns (uint64) { return _addressData[owner].aux; } /** * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used). * If there are multiple variables, please pack them into a uint64. */ function _setAux(address owner, uint64 aux) internal { _addressData[owner].aux = aux; } /** * Gas spent here starts off proportional to the maximum mint batch size. * It gradually moves to O(1) as tokens get transferred around in the collection over time. */ function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) { uint256 curr = tokenId; unchecked { if (_startTokenId() <= curr) if (curr < _currentIndex) { TokenOwnership memory ownership = _ownerships[curr]; if (!ownership.burned) { if (ownership.addr != address(0)) { return ownership; } // Invariant: // There will always be an ownership that has an address and is not burned // before an ownership that does not have an address and is not burned. // Hence, curr will not underflow. while (true) { curr--; ownership = _ownerships[curr]; if (ownership.addr != address(0)) { return ownership; } } } } } revert OwnerQueryForNonexistentToken(); } /** * @dev See {IERC721-ownerOf}. */ function ownerOf(uint256 tokenId) public view override returns (address) { return _ownershipOf(tokenId).addr; } /** * @dev See {IERC721Metadata-name}. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev See {IERC721Metadata-symbol}. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev See {IERC721Metadata-tokenURI}. */ function tokenURI(uint256 tokenId) public view virtual override returns (string memory) { if (!_exists(tokenId)) revert URIQueryForNonexistentToken(); string memory baseURI = _baseURI(); return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString(), '.json')) : ''; } /** * @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 overriden in child contracts. */ function _baseURI() internal view virtual returns (string memory) { return ''; } /** * @dev See {IERC721-approve}. */ function approve(address to, uint256 tokenId) public override { address owner = ERC721A.ownerOf(tokenId); if (to == owner) revert ApprovalToCurrentOwner(); if (_msgSender() != owner) if(!isApprovedForAll(owner, _msgSender())) { revert ApprovalCallerNotOwnerNorApproved(); } _approve(to, tokenId, owner); } /** * @dev See {IERC721-getApproved}. */ function getApproved(uint256 tokenId) public view override returns (address) { if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken(); return _tokenApprovals[tokenId]; } /** * @dev See {IERC721-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { if (operator == _msgSender()) revert ApproveToCaller(); _operatorApprovals[_msgSender()][operator] = approved; emit ApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC721-isApprovedForAll}. */ function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) { return _operatorApprovals[owner][operator]; } /** * @dev See {IERC721-transferFrom}. */ function transferFrom( address from, address to, uint256 tokenId ) public virtual override { _transfer(from, to, tokenId); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId ) public virtual override { safeTransferFrom(from, to, tokenId, ''); } /** * @dev See {IERC721-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 tokenId, bytes memory _data ) public virtual override { _transfer(from, to, tokenId); if (to.isContract()) if(!_checkContractOnERC721Received(from, to, tokenId, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } /** * @dev Returns whether `tokenId` exists. * * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}. * * Tokens start existing when they are minted (`_mint`), */ function _exists(uint256 tokenId) internal view returns (bool) { return _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned; } /** * @dev Equivalent to `_safeMint(to, quantity, '')`. */ function _safeMint(address to, uint256 quantity) internal { _safeMint(to, quantity, ''); } /** * @dev Safely mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - If `to` refers to a smart contract, it must implement * {IERC721Receiver-onERC721Received}, which is called for each safe transfer. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _safeMint( address to, uint256 quantity, bytes memory _data ) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; if (to.isContract()) { do { emit Transfer(address(0), to, updatedIndex); if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) { revert TransferToNonERC721ReceiverImplementer(); } } while (updatedIndex < end); // Reentrancy protection if (_currentIndex != startTokenId) revert(); } else { do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); } _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Mints `quantity` tokens and transfers them to `to`. * * Requirements: * * - `to` cannot be the zero address. * - `quantity` must be greater than 0. * * Emits a {Transfer} event. */ function _mint(address to, uint256 quantity) internal { uint256 startTokenId = _currentIndex; if (to == address(0)) revert MintToZeroAddress(); if (quantity == 0) revert MintZeroQuantity(); _beforeTokenTransfers(address(0), to, startTokenId, quantity); // Overflows are incredibly unrealistic. // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1 // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1 unchecked { _addressData[to].balance += uint64(quantity); _addressData[to].numberMinted += uint64(quantity); _ownerships[startTokenId].addr = to; _ownerships[startTokenId].startTimestamp = uint64(block.timestamp); uint256 updatedIndex = startTokenId; uint256 end = updatedIndex + quantity; do { emit Transfer(address(0), to, updatedIndex++); } while (updatedIndex < end); _currentIndex = updatedIndex; } _afterTokenTransfers(address(0), to, startTokenId, quantity); } /** * @dev Transfers `tokenId` from `from` to `to`. * * 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 ) private { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); if (prevOwnership.addr != from) revert TransferFromIncorrectOwner(); bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); if (to == address(0)) revert TransferToZeroAddress(); _beforeTokenTransfers(from, to, tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { _addressData[from].balance -= 1; _addressData[to].balance += 1; TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = to; currSlot.startTimestamp = uint64(block.timestamp); // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, to, tokenId); _afterTokenTransfers(from, to, tokenId, 1); } /** * @dev Equivalent to `_burn(tokenId, false)`. */ function _burn(uint256 tokenId) internal virtual { _burn(tokenId, false); } /** * @dev Destroys `tokenId`. * The approval is cleared when the token is burned. * * Requirements: * * - `tokenId` must exist. * * Emits a {Transfer} event. */ function _burn(uint256 tokenId, bool approvalCheck) internal virtual { TokenOwnership memory prevOwnership = _ownershipOf(tokenId); address from = prevOwnership.addr; if (approvalCheck) { bool isApprovedOrOwner = (_msgSender() == from || isApprovedForAll(from, _msgSender()) || getApproved(tokenId) == _msgSender()); if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved(); } _beforeTokenTransfers(from, address(0), tokenId, 1); // Clear approvals from the previous owner _approve(address(0), tokenId, from); // Underflow of the sender's balance is impossible because we check for // ownership above and the recipient's balance can't realistically overflow. // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256. unchecked { AddressData storage addressData = _addressData[from]; addressData.balance -= 1; addressData.numberBurned += 1; // Keep track of who burned the token, and the timestamp of burning. TokenOwnership storage currSlot = _ownerships[tokenId]; currSlot.addr = from; currSlot.startTimestamp = uint64(block.timestamp); currSlot.burned = true; // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it. // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls. uint256 nextTokenId = tokenId + 1; TokenOwnership storage nextSlot = _ownerships[nextTokenId]; if (nextSlot.addr == address(0)) { // This will suffice for checking _exists(nextTokenId), // as a burned slot cannot contain the zero address. if (nextTokenId != _currentIndex) { nextSlot.addr = from; nextSlot.startTimestamp = prevOwnership.startTimestamp; } } } emit Transfer(from, address(0), tokenId); _afterTokenTransfers(from, address(0), tokenId, 1); // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times. unchecked { _burnCounter++; } } /** * @dev Approve `to` to operate on `tokenId` * * Emits a {Approval} event. */ function _approve( address to, uint256 tokenId, address owner ) private { _tokenApprovals[tokenId] = to; emit Approval(owner, to, tokenId); } /** * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract. * * @param from address representing the previous owner of the given token ID * @param to target address that will receive the tokens * @param tokenId uint256 ID of the token to be transferred * @param _data bytes optional data to send along with the call * @return bool whether the call correctly returned the expected magic value */ function _checkContractOnERC721Received( address from, address to, uint256 tokenId, bytes memory _data ) private returns (bool) { try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) { return retval == IERC721Receiver(to).onERC721Received.selector; } catch (bytes memory reason) { if (reason.length == 0) { revert TransferToNonERC721ReceiverImplementer(); } else { assembly { revert(add(32, reason), mload(reason)) } } } } /** * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting. * And also called before burning one token. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be * transferred to `to`. * - When `from` is zero, `tokenId` will be minted for `to`. * - When `to` is zero, `tokenId` will be burned by `from`. * - `from` and `to` are never both zero. */ function _beforeTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} /** * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes * minting. * And also called after one token has been burned. * * startTokenId - the first token id to be transferred * quantity - the amount to be transferred * * Calling conditions: * * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been * transferred to `to`. * - When `from` is zero, `tokenId` has been minted for `to`. * - When `to` is zero, `tokenId` has been burned by `from`. * - `from` and `to` are never both zero. */ function _afterTokenTransfers( address from, address to, uint256 startTokenId, uint256 quantity ) internal virtual {} }
// SPDX-License-Identifier: MIT // ERC721A Contracts v3.3.0 // Creator: Chiru Labs pragma solidity ^0.8.4; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol'; /** * @dev Interface of an ERC721A compliant contract. */ interface IERC721A is IERC721, IERC721Metadata { /** * The caller must own the token or be an approved operator. */ error ApprovalCallerNotOwnerNorApproved(); /** * The token does not exist. */ error ApprovalQueryForNonexistentToken(); /** * The caller cannot approve to their own address. */ error ApproveToCaller(); /** * The caller cannot approve to the current owner. */ error ApprovalToCurrentOwner(); /** * Cannot query the balance for the zero address. */ error BalanceQueryForZeroAddress(); /** * Cannot mint to the zero address. */ error MintToZeroAddress(); /** * The quantity of tokens minted must be more than zero. */ error MintZeroQuantity(); /** * The token does not exist. */ error OwnerQueryForNonexistentToken(); /** * The caller must own the token or be an approved operator. */ error TransferCallerNotOwnerNorApproved(); /** * The token must be owned by `from`. */ error TransferFromIncorrectOwner(); /** * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface. */ error TransferToNonERC721ReceiverImplementer(); /** * Cannot transfer to the zero address. */ error TransferToZeroAddress(); /** * The token does not exist. */ error URIQueryForNonexistentToken(); // Compiler will pack this into a single 256bit word. struct TokenOwnership { // The address of the owner. address addr; // Keeps track of the start time of ownership with minimal overhead for tokenomics. uint64 startTimestamp; // Whether the token has been burned. bool burned; } // Compiler will pack this into a single 256bit word. struct AddressData { // Realistically, 2**64-1 is more than enough. uint64 balance; // Keeps track of mint count with minimal overhead for tokenomics. uint64 numberMinted; // Keeps track of burn count with minimal overhead for tokenomics. uint64 numberBurned; // For miscellaneous variable(s) pertaining to the address // (e.g. number of whitelist mint slots used). // If there are multiple variables, please pack them into a uint64. uint64 aux; } /** * @dev Returns the total amount of tokens stored by the contract. * * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens. */ function totalSupply() external view returns (uint256); }
//SPDX-License-Identifier: MIT /** * @title MarketplaceEnabled * @dev @brougkr * note: This Contract Is Used To Enable DutchMarketplace To Purchase Tokens From Your Contract * note: This Contract Should Be Imported and Included In The `is` Portion Of The Contract Declaration, ex. `contract NFT is Ownable, MarketplaceEnabled` * note: You Can Copy Or Modify The Example Functions Below To Implement The Two Functions In Your Contract Required By MarketplaceEnabled */ pragma solidity 0.8.19; abstract contract MarketplaceEnabled { /** * @dev Marketplace Mint * note: Should Be Implemented With onlyMarketplace Access Modifier * note: Should Return The TokenID Being Transferred To The Recipient */ // function _MintToFactory(uint ProjectID, address Recipient, uint Amount) external virtual; // EXAMPLE: // function _MintToFactory(uint ProjectID, address Recipient, uint Amount) override virtual external onlyMarketplace // { // require(totalSupply() + Amount <= 100, "MP: Max Supply Reached"); // _mint(Recipient, Amount); // } /** * @dev Marketplace Simple Mint * note: Should Be Implemented With onlyMarketplace Access Modifier * note: Should Return The TokenID Being Transferred To The Recipient */ function _MintToFactory(address Recipient, uint Amount) external virtual; // EXAMPLE: // function _MintToFactory(address Recipient, uint Amount) override virtual external onlyMarketplace // { // require(totalSupply() + Amount <= 100, "MP: Max Supply Reached"); // _mint(Recipient, Amount); // } /** * @dev ChangeMarketplaceAddress Changes The Marketplace Address | note: Should Be Implemented To Include onlyOwner Or Similar Access Modifier */ function __ChangeMarketplaceAddress(address NewAddress) external virtual; // EXAMPLE: // function __ChangeMarketplaceAddress(address NewAddress) override virtual external onlyOwner { _MARKETPLACE = NewAddress; } /** * @dev Marketplace Address */ // address public _MARKETPLACE_ADDRESS = 0x03c3a918cAEE73b8D45AeF664eF113275aE9a7D3; // sepolia address public _MARKETPLACE_ADDRESS = 0xDaf6F80AD2AFdC45014c59bfE507ED728656D11B; // MAINNET /** * @dev Access Modifier For Marketplace */ modifier onlyMarketplace { require(msg.sender == _MARKETPLACE_ADDRESS, "onlyMarketplace | MP | `msg.sender` Is Not The Marketplace Contract"); _; } }
{ "viaIR": true, "optimizer": { "enabled": true, "runs": 10000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"ArtistIDs","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_LIVE_MINT","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"TokenID","type":"uint256"}],"name":"_LiveMintBurn","outputs":[{"internalType":"address","name":"_Recipient","type":"address"},{"internalType":"uint256","name":"_ArtistID","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"_MARKETPLACE_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"Recipient","type":"address"},{"internalType":"uint256","name":"Amount","type":"uint256"}],"name":"_MintToFactory","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"_TOTAL_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"NewAddress","type":"address"}],"name":"__ChangeMarketplaceAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"NewSupply","type":"uint256"}],"name":"__ChangeTotalSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_ArtistIDs","type":"uint256[]"}],"name":"__SeedArtistIDs","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_Indexes","type":"uint256[]"},{"internalType":"uint256[]","name":"_ArtistIDs","type":"uint256[]"}],"name":"__SeedArtistIDsWithIndexes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"Targets","type":"address[]"},{"internalType":"uint256[]","name":"Values","type":"uint256[]"},{"internalType":"bytes[]","name":"Datas","type":"bytes[]"}],"name":"___Execute","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"NewURI","type":"string"}],"name":"___NewBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"NewAddress","type":"address"}],"name":"___NewLiveMintAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"TokenIDs","type":"uint256[]"}],"name":"___OwnerBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"TokenAddress","type":"address"}],"name":"___WithdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"Contract","type":"address"},{"internalType":"address","name":"Recipient","type":"address"},{"internalType":"uint256[]","name":"TokenIDs","type":"uint256[]"}],"name":"___WithdrawERC721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"___WithdrawEther","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"Recipient","type":"address"},{"internalType":"uint256","name":"Amount","type":"uint256"}],"name":"___WithdrawEtherToAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"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":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"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":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60803462001e6357606081016001600160401b0381118282101762001e4d576040908152602782527f427269676874204d6f6d656e7473205061726973204d696e7420506173736573602083015266103e1026a8282960c91b828201528051919082016001600160401b0381118382101762001e4d5760405260048083526326a8282960e11b602084015260008054336001600160a01b031980831682178455939290916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09080a38251936001600160401b03851162001e385760039480620000f3875462001e68565b95601f9687811162001e04575b5060209087831160011462001d9a5760009262001d8e575b50508160011b9160001990881b1c19161785555b8051906001600160401b03821162001d79576200014a835462001e68565b85811162001d3a575b5060209085831160011462001cb45795829173daf6f80ad2afdc45014c59bfe507ed728656d11b969760009362001ca8575b50508260011b92600019911b1c19161790555b6000600155600954161760095561076c600a55620001b8600b5462001e68565b81811162001c49575b5050606d600b557f697066733a2f2f516d57705334654474586e713932316d51386f6b544c5a35667f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db9557f6255425a7153355859746f673153795531505a4e732f000000000000000000007f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dba55600180547f39d96a4715bf3edf590d8c3024d8ce81f37bd7f3887bd005c4ee5d51ab9b7b3a80546001600160801b031981166001600160401b03808316601090810182169283176001600160401b0319909416909217604090811c909116909101811b6fffffffffffffffff00000000000000001691909117909155600082815260056020522080546001600160e01b0319164260a01b600160a01b600160e01b03161773d743b27d75a6dcdb34bafc6de0acb8cecb3ac43f1790559081905b156200034c575b6000600183019273d743b27d75a6dcdb34bafc6de0acb8cecb3ac43f600060008051602062004b718339815191528180a46200030e565b60108101821062000315575060018181557f9b0bc31a5979ab4a6bdf1f1b89c4157baca08bd1dbf373610e234ebc7705add680546001600160801b031981166001600160401b03808316601090810182169283176001600160401b0319909416909217604090811c909116909101811b6fffffffffffffffff00000000000000001691909117909155600083815260056020522080546001600160e01b0319164260a01b600160a01b600160e01b03161773a5d9232c831b61ef906f4e2643726840f8b3560417905581905b1562000456575b6000600183019273a5d9232c831b61ef906f4e2643726840f8b35604600060008051602062004b718339815191528180a462000418565b6010810182106200041f575060018181557f6c64cbb57279efdd0f631313efb83de45cb4bd333703f322e3a201a99415bf8080546001600160801b031981166001600160401b03808316601090810182169283176001600160401b0319909416909217604090811c909116909101811b6fffffffffffffffff00000000000000001691909117909155600083815260056020522080546001600160e01b0319164260a01b600160a01b600160e01b03161773e4f517a4ec86572a4fd5c3e074f4536d51f4f7b917905581905b1562000560575b6000600183019273e4f517a4ec86572a4fd5c3e074f4536d51f4f7b9600060008051602062004b718339815191528180a462000522565b60108101821062000529575060018181557f0ecd0d836021f8a5b90f6794cbaca852a3867c94bbf120f17794a9eb0fcb034f80546001600160801b031981166001600160401b03808316601090810182169283176001600160401b0319909416909217604090811c909116909101811b6fffffffffffffffff00000000000000001691909117909155600083815260056020522080546001600160e01b0319164260a01b600160a01b600160e01b03161773616fc752e4d9503b1b65b51f1113003ab2256ce917905581905b156200066a575b6000600183019273616fc752e4d9503b1b65b51f1113003ab2256ce9600060008051602062004b718339815191528180a46200062c565b60108101821062000633575060018181557f81e943072a9c23055507af92ae16142643c46aa37d3a3c399ef7dc67c45c4ca880546001600160801b031981166001600160401b03808316601090810182169283176001600160401b0319909416909217604090811c909116909101811b6fffffffffffffffff00000000000000001691909117909155600083815260056020522080546001600160e01b0319164260a01b600160a01b600160e01b03161773c7d7852c8936cffd7903e07ce0758527c4b3e9a117905581905b1562000774575b6000600183019273c7d7852c8936cffd7903e07ce0758527c4b3e9a1600060008051602062004b718339815191528180a462000736565b6010810182106200073d575060018181557ffa1a08c0025ecfe18b2de19a42a8d32e8bef90a83a152ebe9dae09fc0b28d29480546001600160801b031981166001600160401b03808316601090810182169283176001600160401b0319909416909217604090811c909116909101811b6fffffffffffffffff00000000000000001691909117909155600083815260056020522080546001600160e01b0319164260a01b600160a01b600160e01b031617730c192889c5a96fb5a541df829b5233b9df3418e617905581905b156200087e575b60006001830192730c192889c5a96fb5a541df829b5233b9df3418e6600060008051602062004b718339815191528180a462000840565b60108101821062000847575060018181557fa10de3d3c945bfc2ff98fb378e0da76966246159a27bea28ba3391bfc6d5933380546001600160801b031981166001600160401b03808316601090810182169283176001600160401b0319909416909217604090811c909116909101811b6fffffffffffffffff00000000000000001691909117909155600083815260056020522080546001600160e01b0319164260a01b600160a01b600160e01b0316177332f848b9436f6400e5fa1fd46e9b96f4541c096617905581905b1562000988575b600060018301927332f848b9436f6400e5fa1fd46e9b96f4541c0966600060008051602062004b718339815191528180a46200094a565b60108101821062000951575060018181557f8a71a2db629f5871cf7fe0016bbae2a9ede3407dc0489876ccbcab07348cdd5f80546001600160801b031981166001600160401b03808316601090810182169283176001600160401b0319909416909217604090811c909116909101811b6fffffffffffffffff00000000000000001691909117909155600083815260056020522080546001600160e01b0319164260a01b600160a01b600160e01b031617738c8bfa1b4ba3b71838f2386aaeba8c575396390317905581905b1562000a92575b60006001830192738c8bfa1b4ba3b71838f2386aaeba8c5753963903600060008051602062004b718339815191528180a462000a54565b60108101821062000a5b575060018181557f4b2c7418adcb4ea55b343fd62fd2239966dceb843a8154b6d67cfc56debe6c2580546001600160801b031981166001600160401b03808316601090810182169283176001600160401b0319909416909217604090811c909116909101811b6fffffffffffffffff00000000000000001691909117909155600083815260056020522080546001600160e01b0319164260a01b600160a01b600160e01b03161773d2af9f3e3435ffdef945830fce4eab40877e047517905581905b1562000b9c575b6000600183019273d2af9f3e3435ffdef945830fce4eab40877e0475600060008051602062004b718339815191528180a462000b5e565b60108101821062000b65575060018181557f0f7f90475e5b529973fcc14492d542be8df2d572270c0c93f36d9ba2539e866d80546001600160801b031981166001600160401b03808316601090810182169283176001600160401b0319909416909217604090811c909116909101811b6fffffffffffffffff00000000000000001691909117909155600083815260056020522080546001600160e01b0319164260a01b600160a01b600160e01b03161773bc89166fa7df2e8377c5ede90dc75936ba7aa69817905581905b1562000ca6575b6000600183019273bc89166fa7df2e8377c5ede90dc75936ba7aa698600060008051602062004b718339815191528180a462000c68565b60108101821062000c6f575060018181557f67889a214b36566ac166c9edb9b8f65127c8358d0e154458f49c3edc99b7020180546001600160801b031981166001600160401b03808316601090810182169283176001600160401b0319909416909217604090811c909116909101811b6fffffffffffffffff00000000000000001691909117909155600083815260056020522080546001600160e01b0319164260a01b600160a01b600160e01b031617737d42611012fdbe366bf4a0481fc0e1abf15e245a17905581905b1562000db0575b60006001830192737d42611012fdbe366bf4a0481fc0e1abf15e245a600060008051602062004b718339815191528180a462000d72565b60108101821062000d79575060018181557f5dd763619b29553b551d4c3e8aa7377628b54eb29e6efe362de9909d6cac6efd80546001600160801b031981166001600160401b03808316601090810182169283176001600160401b0319909416909217604090811c909116909101811b6fffffffffffffffff00000000000000001691909117909155600083815260056020522080546001600160e01b0319164260a01b600160a01b600160e01b031617739011eb570d1be09ea4d10f38c119dcdf29725c4117905581905b1562000eba575b60006001830192739011eb570d1be09ea4d10f38c119dcdf29725c41600060008051602062004b718339815191528180a462000e7c565b60108101821062000e83575060018181557f2d26efe65d304a51fa986f87045c3a7f4aff19814f230a597228505933d2413f80546001600160801b031981166001600160401b03808316600b90810182169283176001600160401b0319909416909217604090811c909116909101811b6fffffffffffffffff00000000000000001691909117909155600083815260056020522080546001600160e01b0319164260a01b600160a01b600160e01b0316177324c3833219ab8128644f37cbb51546cdfbce6c0217905581905b1562000fc4575b600060018301927324c3833219ab8128644f37cbb51546cdfbce6c02600060008051602062004b718339815191528180a462000f86565b600b8101821062000f8d575060018181557fa14de80b9591ec054548f5731b602e225ca04335e7a73fb04ecfd91f94cd4a8d80546001600160801b031981166001600160401b03808316600b90810182169283176001600160401b0319909416909217604090811c909116909101811b6fffffffffffffffff00000000000000001691909117909155600083815260056020522080546001600160e01b0319164260a01b600160a01b600160e01b031617735124b17b55f4c8f4395a06a461c5109cf3d5f7eb17905581905b15620010ce575b60006001830192735124b17b55f4c8f4395a06a461c5109cf3d5f7eb600060008051602062004b718339815191528180a462001090565b600b8101821062001097575060018181557fa623e5d53c4ba32e467f018fa84d85d2fcd0d3838e516a7b8332655af65eba7480546001600160801b031981166001600160401b03808316600b90810182169283176001600160401b0319909416909217604090811c909116909101811b6fffffffffffffffff00000000000000001691909117909155600083815260056020522080546001600160e01b0319164260a01b600160a01b600160e01b031617739ec9f30aec4a8077c425a4deae3df478c332204e17905581905b15620011d8575b60006001830192739ec9f30aec4a8077c425a4deae3df478c332204e600060008051602062004b718339815191528180a46200119a565b600b81018210620011a1575060018181557f240b101c52f2edb0c67164e4e0e3be6a03a40d1483f0e028ff7a99e093b2a25d80546001600160801b031981166001600160401b03808316600b90810182169283176001600160401b0319909416909217604090811c909116909101811b6fffffffffffffffff00000000000000001691909117909155600083815260056020522080546001600160e01b0319164260a01b600160a01b600160e01b031617739ba935567cbcdfb116773f487cb5e7d871e3446817905581905b15620012e2575b60006001830192739ba935567cbcdfb116773f487cb5e7d871e34468600060008051602062004b718339815191528180a4620012a4565b600b81018210620012ab575060018181557ff9c5fec26178283bfb876d699bda8d4d5bf8c9c25ee3cf767e7b0ce69839fca780546001600160801b031981166001600160401b03808316600b90810182169283176001600160401b0319909416909217604090811c909116909101811b6fffffffffffffffff00000000000000001691909117909155600083815260056020522080546001600160e01b0319164260a01b600160a01b600160e01b03161773a1df527dcd2c2257c2ccaaedbd0dd74377b81b3017905581905b15620013ec575b6000600183019273a1df527dcd2c2257c2ccaaedbd0dd74377b81b30600060008051602062004b718339815191528180a4620013ae565b600b81018210620013b5575060018181557f1d42d2071e5f973746d6762456ec81891717066fe9381698fd16bfc2f5cd777880546001600160801b031981166001600160401b03808316600b90810182169283176001600160401b0319909416909217604090811c909116909101811b6fffffffffffffffff00000000000000001691909117909155600083815260056020522080546001600160e01b0319164260a01b600160a01b600160e01b03161773b7734b5c378fd169d2b9720d0d5ac1a7b30f9fc917905581905b15620014f6575b6000600183019273b7734b5c378fd169d2b9720d0d5ac1a7b30f9fc9600060008051602062004b718339815191528180a4620014b8565b600b81018210620014bf575060018181557f1d37f3a614ebd0e30325f260cfea369af5624f5f54c717c080ceb96fb4e1545080546001600160801b031981166001600160401b03808316600b90810182169283176001600160401b0319909416909217604090811c909116909101811b6fffffffffffffffff00000000000000001691909117909155600083815260056020522080546001600160e01b0319164260a01b600160a01b600160e01b0316177367580561ba59d3d59dfc854c9399d63e93c08d2517905581905b1562001600575b600060018301927367580561ba59d3d59dfc854c9399d63e93c08d25600060008051602062004b718339815191528180a4620015c2565b600b81018210620015c9575060018181557fa67385b9f8edcf822cfcaf2274be0107a18061cbdbbcf2482334897aed4c1f3780546001600160801b031981166001600160401b03808316604c90810182169283176001600160401b0319909416909217604090811c909116909101811b6fffffffffffffffff00000000000000001691909117909155600083815260056020522080546001600160e01b0319164260a01b600160a01b600160e01b03161773b96e81f80b3aeef65cb6d0e280b15fd5dbe7193717905581905b156200170a575b6000600183019273b96e81f80b3aeef65cb6d0e280b15fd5dbe71937600060008051602062004b718339815191528180a4620016cc565b604c81018210620016d3575060018181557f40225fd943a62c538ceff31a6c52645e5218e59e4ed20bbe09f26436fa9d171a80546001600160801b031981166001600160401b03808316601390810182169283176001600160401b0319909416909217604090811c909116909101811b6fffffffffffffffff00000000000000001691909117909155600083815260056020522080546001600160e01b0319164260a01b600160a01b600160e01b03161773ffb6d97bd1e7b7bd08595096d15037401a1f416b17905581905b1562001814575b6000600183019273ffb6d97bd1e7b7bd08595096d15037401a1f416b600060008051602062004b718339815191528180a4620017d6565b601381018210620017dd575060018181557f2435091fe9f19f76036fd8ddb4c685107ffcf7e5d57931194de655ad460ad95580546001600160801b031981166001600160401b03808316601390810182169283176001600160401b0319909416909217604090811c909116909101811b6fffffffffffffffff00000000000000001691909117909155600083815260056020522080546001600160e01b0319164260a01b600160a01b600160e01b031617731de4d49959eafa01ab3706aa20707a3f1dbe242417905581905b156200191e575b60006001830192731de4d49959eafa01ab3706aa20707a3f1dbe2424600060008051602062004b718339815191528180a4620018e0565b601381018210620018e7575060018181557fd61df1a8ccbe73747b6fe37954807944d4403597afadcf3489fb16ebf6a885ec80546001600160801b031981166001600160401b03808316601390810182169283176001600160401b0319909416909217604090811c909116909101811b6fffffffffffffffff00000000000000001691909117909155600083815260056020522080546001600160e01b0319164260a01b600160a01b600160e01b031617734a934d0c751199365a3de094cad0ddcf742852b917905581905b1562001a28575b60006001830192734a934d0c751199365a3de094cad0ddcf742852b9600060008051602062004b718339815191528180a4620019ea565b601381018210620019f1575060018181557f66940fc6de5376cb1a72d68ba984272e3c4075281d850844b4bc378076256ce080546001600160801b031981166001600160401b03808316601390810182169283176001600160401b0319909416909217604090811c909116909101811b6fffffffffffffffff00000000000000001691909117909155600083815260056020522080546001600160e01b0319164260a01b600160a01b600160e01b031617735f9d41289ad44d17e6c51f889276999112e4fffc17905581905b1562001b32575b60006001830192735f9d41289ad44d17e6c51f889276999112e4fffc600060008051602062004b718339815191528180a462001af4565b60138101821062001afb575060018181557f3d7916a7f14d3e209334969290545831fc2d646562c863d067d10bae076ad04880546001600160801b031981166001600160401b03808316601390810182169283176001600160401b0319909416909217604090811c9091168201811b6fffffffffffffffff00000000000000001692909217909255600084815260056020522080546001600160e01b0319164260a01b600160a01b600160e01b031617732cb5ae51861a4a6e8568b527cafc3891317ac94d90811790915591908301905b1562001c2d575b6000600184019383600060008051602062004b718339815191528180a462001c03565b80831062001c0a5782600155604051612cb2908162001ebf8239f35b600b60005262001ca0910160051c7f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db9017f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01dbb62001ea5565b3880620001c1565b01519150388062000185565b90601f198316918460005260206000209260005b81811062001d2157509173daf6f80ad2afdc45014c59bfe507ed728656d11b9798918560019695941062001d06575b50505050811b01905562000198565b01519060f884600019921b161c191690553880808062001cf7565b9293602060018192878601518155019501930162001cc8565b62001d68908460005260206000208780860160051c8201926020871062001d6f575b0160051c019062001ea5565b3862000153565b9250819262001d5c565b604183634e487b7160e01b6000525260246000fd5b01519050388062000118565b6000898152602081209350601f198516905b81811062001deb575090846001959493921062001dd2575b505050811b0185556200012c565b0151600019838a1b60f8161c1916905538808062001dc4565b9293602060018192878601518155019501930162001dac565b62001e31908960005260206000208980860160051c8201926020871062001d6f570160051c019062001ea5565b3862000100565b604182634e487b7160e01b6000525260246000fd5b634e487b7160e01b600052604160045260246000fd5b600080fd5b90600182811c9216801562001e9a575b602083101462001e8457565b634e487b7160e01b600052602260045260246000fd5b91607f169162001e78565b81811062001eb1575050565b6000815560010162001ea556fe6080604052600436101561001257600080fd5b60003560e01c806301ffc9a714610257578063020c89621461025257806306fdde031461024d578063081812fc14610248578063095ea7b31461024357806309beb0c01461023e57806313b7b24c1461023957806318160ddd1461023457806323b872dd1461022f5780633192c6cf1461022a57806342842e0e146102255780634da7b73c146102205780634f2a5fac1461021b578063525a330e146102165780636352211e146102115780636c0360eb1461020c5780636d325d311461020757806370a0823114610202578063715018a6146101fd57806386a4fd73146101f85780638da5cb5b146101f3578063950c4606146101ee57806395d89b41146101e9578063a22cb465146101e4578063ac1a96ec146101df578063af426bb8146101da578063b27b38f1146101d5578063b88d4fde146101d0578063be8ca6a0146101cb578063c87b56dd146101c6578063cbf1468e146101c1578063cd27a036146101bc578063e9645003146101b7578063e985e9c5146101b2578063f2fde38b146101ad5763f77d22ff146101a857600080fd5b611aa7565b611999565b61192f565b611867565b61175f565b611738565b611512565b61144d565b6112ff565b611205565b6111a9565b611188565b61109c565b610feb565b610ebd565b610e96565b610db0565b610d3e565b610cc6565b610bbd565b610b8d565b61098b565b61092f565b6108e4565b6107b1565b610789565b610762565b61074b565b6106fc565b6106d0565b610690565b6105ac565b61056c565b610469565b6103bd565b61028b565b7fffffffff0000000000000000000000000000000000000000000000000000000081160361028657565b600080fd5b346102865760206003193601126102865760207fffffffff000000000000000000000000000000000000000000000000000000006004356102cb8161025c565b167f80ac58cd000000000000000000000000000000000000000000000000000000008114908115610333575b8115610309575b506040519015158152f35b7f01ffc9a700000000000000000000000000000000000000000000000000000000915014386102fe565b7f5b5e139f00000000000000000000000000000000000000000000000000000000811491506102f7565b9181601f840112156102865782359167ffffffffffffffff8311610286576020808501948460051b01011161028657565b6020600319820112610286576004359067ffffffffffffffff8211610286576103b99160040161035d565b9091565b34610286576103cb3661038e565b906103d4611ac5565b60005b8281106103e057005b806103f86103f26103fd9386866126b0565b3561281c565b612672565b6103d7565b600091031261028657565b60005b8381106104205750506000910152565b8181015183820152602001610410565b90601f19601f60209361044e8151809281875287808801910161040d565b0116010190565b906020610466928181520190610430565b90565b346102865760008060031936011261056957604051908060035461048c816109bb565b8085529160019180831690811561052157506001146104c6575b6104c2856104b681870382610a8e565b60405191829182610455565b0390f35b9250600383527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b8284106105095750505081016020016104b6826104c26104a6565b805460208587018101919091529093019281016104ee565b8695506104c2969350602092506104b69491507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001682840152151560051b82010192936104a6565b80fd5b3461028657602060031936011261028657602061058a600435611cbb565b6001600160a01b0360405191168152f35b6001600160a01b0381160361028657565b34610286576040600319360112610286576004356105c98161059b565b6001600160a01b03602435816105de82611b94565b51168092841614610666578133036105fc575b6105fa92612190565b005b81600052600860205261063761063361062c336040600020906001600160a01b0316600052602052604060002090565b5460ff1690565b1590565b156105f15760046040517fcfb3b942000000000000000000000000000000000000000000000000000000008152fd5b60046040517f943f7b8c000000000000000000000000000000000000000000000000000000008152fd5b3461028657600080600319360112610569576106aa611ac5565b80808080478181156106c7575b3390f1156106c25780f35b612250565b506108fc6106b7565b3461028657602060031936011261028657600435600052600d6020526020604060002054604051908152f35b346102865760006003193601126102865760206001546002549003604051908152f35b6003196060910112610286576004356107378161059b565b906024356107448161059b565b9060443590565b34610286576105fa61075c3661071f565b91611d92565b346102865760006003193601126102865760206001600160a01b0360095416604051908152f35b34610286576105fa61079a3661071f565b90604051926107a884610a72565b60008452611d0d565b34610286576020806003193601126102865767ffffffffffffffff6004358181116102865736602382011215610286578060040135918211610286576024903682848301011161028657610803611ac5565b61081783610812600b546109bb565b6127ab565b600093601f8411600114610858575092829360009361084b575b5050506000198260011b9260031b1c191617600b55600080f35b0101359050388080610831565b91601f1984169461088b600b6000527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db990565b9381905b8782106108ca57505084600196106108ae575b50505050811b01600b55005b60001960f88660031b161c1992010135169055388080806108a2565b80600184978683959689010135815501960192019061088f565b34610286576108f23661038e565b6108fa611ac5565b60005b81811061090657005b8061091561092a9284866126b0565b3581600052600d602052604060002055612672565b6108fd565b34610286576020600319360112610286576001600160a01b036004356109548161059b565b61095c611ac5565b167fffffffffffffffffffffffff00000000000000000000000000000000000000006009541617600955600080f35b346102865760206003193601126102865760206001600160a01b036109b1600435611b94565b5116604051908152f35b90600182811c92168015610a04575b60208310146109d557565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b91607f16916109ca565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b67ffffffffffffffff8111610a5157604052565b610a0e565b6060810190811067ffffffffffffffff821117610a5157604052565b6020810190811067ffffffffffffffff821117610a5157604052565b90601f601f19910116810190811067ffffffffffffffff821117610a5157604052565b60405190600082600b5491610ac5836109bb565b80835292600190818116908115610b4d5750600114610aee575b50610aec92500383610a8e565b565b600b600090815291507f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db95b848310610b325750610aec935050810160200138610adf565b81935090816020925483858a01015201910190918592610b19565b60209350610aec9592507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0091501682840152151560051b82010138610adf565b34610286576000600319360112610286576104c2610ba9610ab1565b604051918291602083526020830190610430565b3461028657602060031936011261028657600435610bfc610bf5610be9600c546001600160a01b031690565b6001600160a01b031690565b3314612b9d565b6040517f6352211e0000000000000000000000000000000000000000000000000000000081526004810182905290602082602481305afa9182156106c257600092610c92575b50610c7490610c5b6001600160a01b0384161515612c17565b610c648161281c565b600052600d602052604060002090565b54604080516001600160a01b03939093168352602083019190915290f35b610c74919250610cb89060203d8111610cbf575b610cb08183610a8e565b810190612c02565b9190610c42565b503d610ca6565b34610286576020600319360112610286576001600160a01b03600435610ceb8161059b565b168015610d14576000526006602052602067ffffffffffffffff60406000205416604051908152f35b60046040517f8f4eb604000000000000000000000000000000000000000000000000000000008152fd5b346102865760008060031936011261056957610d58611ac5565b806001600160a01b0381547fffffffffffffffffffffffff000000000000000000000000000000000000000081168355167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b3461028657604060031936011261028657600435610dcd8161059b565b6001600160a01b03600954163303610dec576105fa90602435906123ad565b60a46040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604360248201527f6f6e6c794d61726b6574706c616365207c204d50207c20606d73672e73656e6460448201527f657260204973204e6f7420546865204d61726b6574706c61636520436f6e747260648201527f61637400000000000000000000000000000000000000000000000000000000006084820152fd5b346102865760006003193601126102865760206001600160a01b0360005416604051908152f35b3461028657602080600319360112610286576001600160a01b03600435610ee38161059b565b610eeb611ac5565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529116908281602481855afa9081156106c2576000928492610f88928591610fbe575b50610f45811515612afd565b6040517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481019190915293849283919082906044820190565b03925af180156106c257610f9857005b816105fa92903d10610fb7575b610faf8183610a8e565b810190612b88565b503d610fa5565b610fde9150843d8611610fe4575b610fd68183610a8e565b810190612aee565b38610f39565b503d610fcc565b346102865760008060031936011261056957604051908060045461100e816109bb565b808552916001918083169081156105215750600114611037576104c2856104b681870382610a8e565b9250600483527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b5b82841061107a5750505081016020016104b6826104c26104a6565b8054602085870181019190915290930192810161105f565b8015150361028657565b34610286576040600319360112610286576004356110b98161059b565b6024356110c581611092565b6001600160a01b0382169133831461115e57611101903360005260086020526040600020906001600160a01b0316600052602052604060002090565b901515907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0081541660ff83161790556040519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3005b60046040517fb06307db000000000000000000000000000000000000000000000000000000008152fd5b34610286576020600319360112610286576111a1611ac5565b600435600a55005b34610286576020600319360112610286576001600160a01b036004356111ce8161059b565b6111d6611ac5565b167fffffffffffffffffffffffff0000000000000000000000000000000000000000600c541617600c55600080f35b34610286576040806003193601126102865767ffffffffffffffff906004358281116102865761123990369060040161035d565b926024359081116102865761125290369060040161035d565b61125d939193611ac5565b60005b81811061126957005b806112786112979284886126b0565b356112848289886126b0565b35600052600d6020528460002055612672565b611260565b67ffffffffffffffff8111610a5157601f01601f191660200190565b81601f82011215610286578035906112cf8261129c565b926112dd6040519485610a8e565b8284526020838301011161028657816000926020809301838601378301015290565b346102865760806003193601126102865760043561131c8161059b565b6024356113288161059b565b6064359167ffffffffffffffff83116102865761134c6105fa9336906004016112b8565b9160443591611d0d565b67ffffffffffffffff8111610a515760051b60200190565b81601f820112156102865780359161138583611356565b926113936040519485610a8e565b808452602092838086019260051b820101928311610286578301905b8282106113bd575050505090565b813581529083019083016113af565b9080601f83011215610286578135906113e482611356565b926113f26040519485610a8e565b828452602092838086019160051b8301019280841161028657848301915b8483106114205750505050505090565b823567ffffffffffffffff8111610286578691611442848480948901016112b8565b815201920191611410565b346102865760606003193601126102865767ffffffffffffffff600435818111610286573660238201121561028657806004013561148a81611356565b916114986040519384610a8e565b81835260209160248385019160051b8301019136831161028657602401905b8282106114f9578585602435828111610286576114d890369060040161136e565b604435928311610286576114f36105fa9336906004016113cc565b916126c5565b83809183356115078161059b565b8152019101906114b7565b346102865760206003193601126102865760043561152f81611d69565b1561170e5761153c610ab1565b8051600090156116f45750600091807a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000081818110156116e6575b50506d04ee2d6d415b85acef8100000000808310156116d7575b50662386f26fc10000808310156116c8575b506305f5e100808310156116b9575b50612710808310156116aa575b50606482101561169a575b600a80921015611690575b6001908160216115e0828801611c8a565b96870101905b61164d575b505050506104b66116109161163f6116166104c2956040519586946020860190611c73565b90611c73565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000815260050190565b03601f198101835282610a8e565b600019849101917f30313233343536373839616263646566000000000000000000000000000000008282061a83530491821561168b579190826115e6565b6115eb565b92600101926115cf565b92906064600291049101926115c4565b600491949204910192386115b9565b600891949204910192386115ac565b6010919492049101923861159d565b6020919492049101923861158b565b604095500491503880611571565b6040516104c29350915061170782610a72565b81526104b6565b60046040517fa14c4b50000000000000000000000000000000000000000000000000000000008152fd5b346102865760006003193601126102865760206001600160a01b03600c5416604051908152f35b34610286576060600319360112610286576004803561177d8161059b565b6024359161178a8361059b565b60443567ffffffffffffffff8111610286576117a9903690830161035d565b6117b4939193611ac5565b6001600160a01b0360009216915b8181106117cb57005b6117d68183876126b0565b3590833b1561028657604080517f23b872dd000000000000000000000000000000000000000000000000000000008152308782019081526001600160a01b038a1660208201529182019390935260009083908190606001038183885af19182156106c2576118499261184e575b50612672565b6117c2565b8061185b61186192610a3d565b80610402565b38611843565b34610286576040600319360112610286576004356118848161059b565b60243590611890611ac5565b81151580611925575b156118c7576001600160a01b036118c491600080809581948294165af16118be61225c565b50612a63565b80f35b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f496e76616c696420416d6f756e740000000000000000000000000000000000006044820152fd5b5047821115611899565b3461028657604060031936011261028657602060ff61198d6004356119538161059b565b6001600160a01b03602435916119688361059b565b16600052600884526040600020906001600160a01b0316600052602052604060002090565b54166040519015158152f35b34610286576020600319360112610286576004356119b68161059b565b6119be611ac5565b6001600160a01b038091168015611a23576000918254827fffffffffffffffffffffffff00000000000000000000000000000000000000008216178455167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152fd5b34610286576000600319360112610286576020600a54604051908152f35b6001600160a01b03600054163303611ad957565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b60405190611b4482610a56565b60006040838281528260208201520152565b90604051611b6381610a56565b604060ff8294546001600160a01b038116845267ffffffffffffffff8160a01c16602085015260e01c161515910152565b611b9c611b37565b508060019081548110611bd4575b60046040517fdf2d9b42000000000000000000000000000000000000000000000000000000008152fd5b611beb611bf0916000526005602052604060002090565b611b56565b611c006106336040830151151590565b15611baa576001600160a01b03611c1e82516001600160a01b031690565b16611c6d575090815b611c315780611baa565b6000190190611c4d611beb836000526005602052604060002090565b611c61610be982516001600160a01b031690565b611c6d57509081611c27565b91505090565b90611c866020928281519485920161040d565b0190565b90611c948261129c565b611ca16040519182610a8e565b828152601f19611cb1829461129c565b0190602036910137565b611cc481611d69565b15611ce35760005260076020526001600160a01b036040600020541690565b60046040517fcf4700e4000000000000000000000000000000000000000000000000000000008152fd5b929190611d1b828286611d92565b803b611d28575b50505050565b611d319361228c565b15611d3f5738808080611d22565b60046040517fd1a57ed6000000000000000000000000000000000000000000000000000000008152fd5b60015481109081611d78575090565b9050600052600560205260ff60406000205460e01c161590565b611d9b83611b94565b90611dad82516001600160a01b031690565b6001600160a01b03828116939181168490036121015783331480156120bf575b80156120ab575b1561208157841693841561205757611f4590611df0848861212b565b611e69611e10856001600160a01b03166000526006602052604060002090565b611e36611e25825467ffffffffffffffff1690565b6000190167ffffffffffffffff1690565b67ffffffffffffffff167fffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000825416179055565b611eae611e89826001600160a01b03166000526006602052604060002090565b611e36611e9e825467ffffffffffffffff1690565b60010167ffffffffffffffff1690565b611efa611ec5886000526005602052604060002090565b9182906001600160a01b03167fffffffffffffffffffffffff0000000000000000000000000000000000000000825416179055565b80547fffffffff0000000000000000ffffffffffffffffffffffffffffffffffffffff164260a01b7bffffffffffffffff000000000000000000000000000000000000000016179055565b6001850190611f5e826000526005602052604060002090565b91611f73610be984546001600160a01b031690565b15611fa4575b505050507fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4565b60015403611fb3575b80611f79565b602061200391611ff461204f9585906001600160a01b03167fffffffffffffffffffffffff0000000000000000000000000000000000000000825416179055565b015167ffffffffffffffff1690565b7fffffffff0000000000000000ffffffffffffffffffffffffffffffffffffffff7bffffffffffffffff000000000000000000000000000000000000000083549260a01b169116179055565b388080611fad565b60046040517fea553b34000000000000000000000000000000000000000000000000000000008152fd5b60046040517f59c896be000000000000000000000000000000000000000000000000000000008152fd5b50336120b9610be988611cbb565b14611dd4565b506120fc61062c336120e4866001600160a01b03166000526008602052604060002090565b906001600160a01b0316600052602052604060002090565b611dcd565b60046040517fa1148100000000000000000000000000000000000000000000000000000000008152fd5b906001600160a01b036000918383526007602052604083207fffffffffffffffffffffffff00000000000000000000000000000000000000008154169055167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258280a4565b9190918260005260076020526121d8816040600020906001600160a01b03167fffffffffffffffffffffffff0000000000000000000000000000000000000000825416179055565b6001600160a01b0380911691167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600080a4565b9081602091031261028657516104668161025c565b909261046694936080936001600160a01b03809216845216602083015260408201528160608201520190610430565b6040513d6000823e3d90fd5b3d15612287573d9061226d8261129c565b9161227b6040519384610a8e565b82523d6000602084013e565b606090565b926020916122d69360006001600160a01b036040518097819682957f150b7a02000000000000000000000000000000000000000000000000000000009b8c85523360048601612221565b0393165af16000918161234e575b50612328576122f161225c565b805190816123235760046040517fd1a57ed6000000000000000000000000000000000000000000000000000000008152fd5b602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000161490565b61237091925060203d8111612377575b6123688183610a8e565b81019061220c565b90386122e4565b503d61235e565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600154600254900382810180911161266d57600a541061260f5760018054926001600160a01b0383169283156125e55781156125bb5761255f906124fc67ffffffffffffffff916124b583861661243e61241a846001600160a01b03166000526006602052604060002090565b611e3683612430835467ffffffffffffffff1690565b0167ffffffffffffffff1690565b61247561245e846001600160a01b03166000526006602052604060002090565b91612430835467ffffffffffffffff9060401c1690565b7fffffffffffffffffffffffffffffffff0000000000000000ffffffffffffffff6fffffffffffffffff000000000000000083549260401b169116179055565b6124c9886000526005602052604060002090565b906001600160a01b03167fffffffffffffffffffffffff0000000000000000000000000000000000000000825416179055565b4216612512866000526005602052604060002090565b907fffffffff0000000000000000ffffffffffffffffffffffffffffffffffffffff7bffffffffffffffff000000000000000000000000000000000000000083549260a01b169116179055565b830181805b612576575b50505050610aec90600155565b156125ae575b6000828086019585837fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4612564565b80841061257c5780612569565b60046040517fb562e8dd000000000000000000000000000000000000000000000000000000008152fd5b60046040517f2e076300000000000000000000000000000000000000000000000000000000008152fd5b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4d503a204d617820537570706c792052656163686564000000000000000000006044820152fd5b61237e565b600019811461266d5760010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b91908110156126c05760051b0190565b612681565b90916126cf611ac5565b600091825b8151811015612790576001600160a01b036126ef8284612797565b511684806126fd8489612797565b516127088588612797565b51938451916020809601915af161271d61225c565b5015612732575061272d90612672565b6126d4565b606490604051907f08c379a00000000000000000000000000000000000000000000000000000000082526004820152601660248201527f692068617665206661696c6564207520616e616b696e000000000000000000006044820152fd5b5050505050565b80518210156126c05760209160051b010190565b601f81116127b7575050565b600090600b82527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db9906020601f850160051c83019410612812575b601f0160051c01915b82811061280757505050565b8181556001016127fb565b90925082906127f2565b600061282782611b94565b80516001600160a01b031661283c818561212b565b61290961285c826001600160a01b03166000526006602052604060002090565b6128a9612874611e25835467ffffffffffffffff1690565b829067ffffffffffffffff167fffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000825416179055565b80546128c19060801c67ffffffffffffffff16611e9e565b7fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff77ffffffffffffffff0000000000000000000000000000000083549260801b169116179055565b612995612920856000526005602052604060002090565b80547fffffff0000000000000000000000000000000000000000000000000000000000166001600160a01b038416177bffffffffffffffff00000000000000000000000000000000000000004260a01b16177c0100000000000000000000000000000000000000000000000000000000179055565b60018401916129ae836000526005602052604060002090565b6001600160a01b0393846129c983546001600160a01b031690565b1615612a0c575b505050167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8280a4610aec612a0760025460010190565b600255565b60015403612a1b575b806129d0565b6120036020612a5c93611ff48685906001600160a01b03167fffffffffffffffffffffffff0000000000000000000000000000000000000000825416179055565b3880612a15565b15612a6a57565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f556e61626c6520746f2057697468647261772c20526563697069656e74204d6160448201527f79204861766520526576657274656400000000000000000000000000000000006064820152fd5b90816020910312610286575190565b15612b0457565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f302045524332302042616c616e63652041742060546f6b656e4164647265737360448201527f60000000000000000000000000000000000000000000000000000000000000006064820152fd5b90816020910312610286575161046681611092565b15612ba457565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f4d503a2053656e646572204973204e6f74204c697665204d696e7400000000006044820152fd5b9081602091031261028657516104668161059b565b15612c1e57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4d503a20496e76616c696420526563697069656e7400000000000000000000006044820152fdfea2646970667358221220bc6138f1668ebf36ef672407089649b6e480bca8832dd8c42455e0773fdf320d64736f6c63430008130033ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef
Deployed Bytecode
0x6080604052600436101561001257600080fd5b60003560e01c806301ffc9a714610257578063020c89621461025257806306fdde031461024d578063081812fc14610248578063095ea7b31461024357806309beb0c01461023e57806313b7b24c1461023957806318160ddd1461023457806323b872dd1461022f5780633192c6cf1461022a57806342842e0e146102255780634da7b73c146102205780634f2a5fac1461021b578063525a330e146102165780636352211e146102115780636c0360eb1461020c5780636d325d311461020757806370a0823114610202578063715018a6146101fd57806386a4fd73146101f85780638da5cb5b146101f3578063950c4606146101ee57806395d89b41146101e9578063a22cb465146101e4578063ac1a96ec146101df578063af426bb8146101da578063b27b38f1146101d5578063b88d4fde146101d0578063be8ca6a0146101cb578063c87b56dd146101c6578063cbf1468e146101c1578063cd27a036146101bc578063e9645003146101b7578063e985e9c5146101b2578063f2fde38b146101ad5763f77d22ff146101a857600080fd5b611aa7565b611999565b61192f565b611867565b61175f565b611738565b611512565b61144d565b6112ff565b611205565b6111a9565b611188565b61109c565b610feb565b610ebd565b610e96565b610db0565b610d3e565b610cc6565b610bbd565b610b8d565b61098b565b61092f565b6108e4565b6107b1565b610789565b610762565b61074b565b6106fc565b6106d0565b610690565b6105ac565b61056c565b610469565b6103bd565b61028b565b7fffffffff0000000000000000000000000000000000000000000000000000000081160361028657565b600080fd5b346102865760206003193601126102865760207fffffffff000000000000000000000000000000000000000000000000000000006004356102cb8161025c565b167f80ac58cd000000000000000000000000000000000000000000000000000000008114908115610333575b8115610309575b506040519015158152f35b7f01ffc9a700000000000000000000000000000000000000000000000000000000915014386102fe565b7f5b5e139f00000000000000000000000000000000000000000000000000000000811491506102f7565b9181601f840112156102865782359167ffffffffffffffff8311610286576020808501948460051b01011161028657565b6020600319820112610286576004359067ffffffffffffffff8211610286576103b99160040161035d565b9091565b34610286576103cb3661038e565b906103d4611ac5565b60005b8281106103e057005b806103f86103f26103fd9386866126b0565b3561281c565b612672565b6103d7565b600091031261028657565b60005b8381106104205750506000910152565b8181015183820152602001610410565b90601f19601f60209361044e8151809281875287808801910161040d565b0116010190565b906020610466928181520190610430565b90565b346102865760008060031936011261056957604051908060035461048c816109bb565b8085529160019180831690811561052157506001146104c6575b6104c2856104b681870382610a8e565b60405191829182610455565b0390f35b9250600383527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b8284106105095750505081016020016104b6826104c26104a6565b805460208587018101919091529093019281016104ee565b8695506104c2969350602092506104b69491507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001682840152151560051b82010192936104a6565b80fd5b3461028657602060031936011261028657602061058a600435611cbb565b6001600160a01b0360405191168152f35b6001600160a01b0381160361028657565b34610286576040600319360112610286576004356105c98161059b565b6001600160a01b03602435816105de82611b94565b51168092841614610666578133036105fc575b6105fa92612190565b005b81600052600860205261063761063361062c336040600020906001600160a01b0316600052602052604060002090565b5460ff1690565b1590565b156105f15760046040517fcfb3b942000000000000000000000000000000000000000000000000000000008152fd5b60046040517f943f7b8c000000000000000000000000000000000000000000000000000000008152fd5b3461028657600080600319360112610569576106aa611ac5565b80808080478181156106c7575b3390f1156106c25780f35b612250565b506108fc6106b7565b3461028657602060031936011261028657600435600052600d6020526020604060002054604051908152f35b346102865760006003193601126102865760206001546002549003604051908152f35b6003196060910112610286576004356107378161059b565b906024356107448161059b565b9060443590565b34610286576105fa61075c3661071f565b91611d92565b346102865760006003193601126102865760206001600160a01b0360095416604051908152f35b34610286576105fa61079a3661071f565b90604051926107a884610a72565b60008452611d0d565b34610286576020806003193601126102865767ffffffffffffffff6004358181116102865736602382011215610286578060040135918211610286576024903682848301011161028657610803611ac5565b61081783610812600b546109bb565b6127ab565b600093601f8411600114610858575092829360009361084b575b5050506000198260011b9260031b1c191617600b55600080f35b0101359050388080610831565b91601f1984169461088b600b6000527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db990565b9381905b8782106108ca57505084600196106108ae575b50505050811b01600b55005b60001960f88660031b161c1992010135169055388080806108a2565b80600184978683959689010135815501960192019061088f565b34610286576108f23661038e565b6108fa611ac5565b60005b81811061090657005b8061091561092a9284866126b0565b3581600052600d602052604060002055612672565b6108fd565b34610286576020600319360112610286576001600160a01b036004356109548161059b565b61095c611ac5565b167fffffffffffffffffffffffff00000000000000000000000000000000000000006009541617600955600080f35b346102865760206003193601126102865760206001600160a01b036109b1600435611b94565b5116604051908152f35b90600182811c92168015610a04575b60208310146109d557565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b91607f16916109ca565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b67ffffffffffffffff8111610a5157604052565b610a0e565b6060810190811067ffffffffffffffff821117610a5157604052565b6020810190811067ffffffffffffffff821117610a5157604052565b90601f601f19910116810190811067ffffffffffffffff821117610a5157604052565b60405190600082600b5491610ac5836109bb565b80835292600190818116908115610b4d5750600114610aee575b50610aec92500383610a8e565b565b600b600090815291507f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db95b848310610b325750610aec935050810160200138610adf565b81935090816020925483858a01015201910190918592610b19565b60209350610aec9592507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0091501682840152151560051b82010138610adf565b34610286576000600319360112610286576104c2610ba9610ab1565b604051918291602083526020830190610430565b3461028657602060031936011261028657600435610bfc610bf5610be9600c546001600160a01b031690565b6001600160a01b031690565b3314612b9d565b6040517f6352211e0000000000000000000000000000000000000000000000000000000081526004810182905290602082602481305afa9182156106c257600092610c92575b50610c7490610c5b6001600160a01b0384161515612c17565b610c648161281c565b600052600d602052604060002090565b54604080516001600160a01b03939093168352602083019190915290f35b610c74919250610cb89060203d8111610cbf575b610cb08183610a8e565b810190612c02565b9190610c42565b503d610ca6565b34610286576020600319360112610286576001600160a01b03600435610ceb8161059b565b168015610d14576000526006602052602067ffffffffffffffff60406000205416604051908152f35b60046040517f8f4eb604000000000000000000000000000000000000000000000000000000008152fd5b346102865760008060031936011261056957610d58611ac5565b806001600160a01b0381547fffffffffffffffffffffffff000000000000000000000000000000000000000081168355167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b3461028657604060031936011261028657600435610dcd8161059b565b6001600160a01b03600954163303610dec576105fa90602435906123ad565b60a46040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604360248201527f6f6e6c794d61726b6574706c616365207c204d50207c20606d73672e73656e6460448201527f657260204973204e6f7420546865204d61726b6574706c61636520436f6e747260648201527f61637400000000000000000000000000000000000000000000000000000000006084820152fd5b346102865760006003193601126102865760206001600160a01b0360005416604051908152f35b3461028657602080600319360112610286576001600160a01b03600435610ee38161059b565b610eeb611ac5565b6040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201529116908281602481855afa9081156106c2576000928492610f88928591610fbe575b50610f45811515612afd565b6040517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481019190915293849283919082906044820190565b03925af180156106c257610f9857005b816105fa92903d10610fb7575b610faf8183610a8e565b810190612b88565b503d610fa5565b610fde9150843d8611610fe4575b610fd68183610a8e565b810190612aee565b38610f39565b503d610fcc565b346102865760008060031936011261056957604051908060045461100e816109bb565b808552916001918083169081156105215750600114611037576104c2856104b681870382610a8e565b9250600483527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b5b82841061107a5750505081016020016104b6826104c26104a6565b8054602085870181019190915290930192810161105f565b8015150361028657565b34610286576040600319360112610286576004356110b98161059b565b6024356110c581611092565b6001600160a01b0382169133831461115e57611101903360005260086020526040600020906001600160a01b0316600052602052604060002090565b901515907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0081541660ff83161790556040519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3005b60046040517fb06307db000000000000000000000000000000000000000000000000000000008152fd5b34610286576020600319360112610286576111a1611ac5565b600435600a55005b34610286576020600319360112610286576001600160a01b036004356111ce8161059b565b6111d6611ac5565b167fffffffffffffffffffffffff0000000000000000000000000000000000000000600c541617600c55600080f35b34610286576040806003193601126102865767ffffffffffffffff906004358281116102865761123990369060040161035d565b926024359081116102865761125290369060040161035d565b61125d939193611ac5565b60005b81811061126957005b806112786112979284886126b0565b356112848289886126b0565b35600052600d6020528460002055612672565b611260565b67ffffffffffffffff8111610a5157601f01601f191660200190565b81601f82011215610286578035906112cf8261129c565b926112dd6040519485610a8e565b8284526020838301011161028657816000926020809301838601378301015290565b346102865760806003193601126102865760043561131c8161059b565b6024356113288161059b565b6064359167ffffffffffffffff83116102865761134c6105fa9336906004016112b8565b9160443591611d0d565b67ffffffffffffffff8111610a515760051b60200190565b81601f820112156102865780359161138583611356565b926113936040519485610a8e565b808452602092838086019260051b820101928311610286578301905b8282106113bd575050505090565b813581529083019083016113af565b9080601f83011215610286578135906113e482611356565b926113f26040519485610a8e565b828452602092838086019160051b8301019280841161028657848301915b8483106114205750505050505090565b823567ffffffffffffffff8111610286578691611442848480948901016112b8565b815201920191611410565b346102865760606003193601126102865767ffffffffffffffff600435818111610286573660238201121561028657806004013561148a81611356565b916114986040519384610a8e565b81835260209160248385019160051b8301019136831161028657602401905b8282106114f9578585602435828111610286576114d890369060040161136e565b604435928311610286576114f36105fa9336906004016113cc565b916126c5565b83809183356115078161059b565b8152019101906114b7565b346102865760206003193601126102865760043561152f81611d69565b1561170e5761153c610ab1565b8051600090156116f45750600091807a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000081818110156116e6575b50506d04ee2d6d415b85acef8100000000808310156116d7575b50662386f26fc10000808310156116c8575b506305f5e100808310156116b9575b50612710808310156116aa575b50606482101561169a575b600a80921015611690575b6001908160216115e0828801611c8a565b96870101905b61164d575b505050506104b66116109161163f6116166104c2956040519586946020860190611c73565b90611c73565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000815260050190565b03601f198101835282610a8e565b600019849101917f30313233343536373839616263646566000000000000000000000000000000008282061a83530491821561168b579190826115e6565b6115eb565b92600101926115cf565b92906064600291049101926115c4565b600491949204910192386115b9565b600891949204910192386115ac565b6010919492049101923861159d565b6020919492049101923861158b565b604095500491503880611571565b6040516104c29350915061170782610a72565b81526104b6565b60046040517fa14c4b50000000000000000000000000000000000000000000000000000000008152fd5b346102865760006003193601126102865760206001600160a01b03600c5416604051908152f35b34610286576060600319360112610286576004803561177d8161059b565b6024359161178a8361059b565b60443567ffffffffffffffff8111610286576117a9903690830161035d565b6117b4939193611ac5565b6001600160a01b0360009216915b8181106117cb57005b6117d68183876126b0565b3590833b1561028657604080517f23b872dd000000000000000000000000000000000000000000000000000000008152308782019081526001600160a01b038a1660208201529182019390935260009083908190606001038183885af19182156106c2576118499261184e575b50612672565b6117c2565b8061185b61186192610a3d565b80610402565b38611843565b34610286576040600319360112610286576004356118848161059b565b60243590611890611ac5565b81151580611925575b156118c7576001600160a01b036118c491600080809581948294165af16118be61225c565b50612a63565b80f35b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f496e76616c696420416d6f756e740000000000000000000000000000000000006044820152fd5b5047821115611899565b3461028657604060031936011261028657602060ff61198d6004356119538161059b565b6001600160a01b03602435916119688361059b565b16600052600884526040600020906001600160a01b0316600052602052604060002090565b54166040519015158152f35b34610286576020600319360112610286576004356119b68161059b565b6119be611ac5565b6001600160a01b038091168015611a23576000918254827fffffffffffffffffffffffff00000000000000000000000000000000000000008216178455167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152fd5b34610286576000600319360112610286576020600a54604051908152f35b6001600160a01b03600054163303611ad957565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b60405190611b4482610a56565b60006040838281528260208201520152565b90604051611b6381610a56565b604060ff8294546001600160a01b038116845267ffffffffffffffff8160a01c16602085015260e01c161515910152565b611b9c611b37565b508060019081548110611bd4575b60046040517fdf2d9b42000000000000000000000000000000000000000000000000000000008152fd5b611beb611bf0916000526005602052604060002090565b611b56565b611c006106336040830151151590565b15611baa576001600160a01b03611c1e82516001600160a01b031690565b16611c6d575090815b611c315780611baa565b6000190190611c4d611beb836000526005602052604060002090565b611c61610be982516001600160a01b031690565b611c6d57509081611c27565b91505090565b90611c866020928281519485920161040d565b0190565b90611c948261129c565b611ca16040519182610a8e565b828152601f19611cb1829461129c565b0190602036910137565b611cc481611d69565b15611ce35760005260076020526001600160a01b036040600020541690565b60046040517fcf4700e4000000000000000000000000000000000000000000000000000000008152fd5b929190611d1b828286611d92565b803b611d28575b50505050565b611d319361228c565b15611d3f5738808080611d22565b60046040517fd1a57ed6000000000000000000000000000000000000000000000000000000008152fd5b60015481109081611d78575090565b9050600052600560205260ff60406000205460e01c161590565b611d9b83611b94565b90611dad82516001600160a01b031690565b6001600160a01b03828116939181168490036121015783331480156120bf575b80156120ab575b1561208157841693841561205757611f4590611df0848861212b565b611e69611e10856001600160a01b03166000526006602052604060002090565b611e36611e25825467ffffffffffffffff1690565b6000190167ffffffffffffffff1690565b67ffffffffffffffff167fffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000825416179055565b611eae611e89826001600160a01b03166000526006602052604060002090565b611e36611e9e825467ffffffffffffffff1690565b60010167ffffffffffffffff1690565b611efa611ec5886000526005602052604060002090565b9182906001600160a01b03167fffffffffffffffffffffffff0000000000000000000000000000000000000000825416179055565b80547fffffffff0000000000000000ffffffffffffffffffffffffffffffffffffffff164260a01b7bffffffffffffffff000000000000000000000000000000000000000016179055565b6001850190611f5e826000526005602052604060002090565b91611f73610be984546001600160a01b031690565b15611fa4575b505050507fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4565b60015403611fb3575b80611f79565b602061200391611ff461204f9585906001600160a01b03167fffffffffffffffffffffffff0000000000000000000000000000000000000000825416179055565b015167ffffffffffffffff1690565b7fffffffff0000000000000000ffffffffffffffffffffffffffffffffffffffff7bffffffffffffffff000000000000000000000000000000000000000083549260a01b169116179055565b388080611fad565b60046040517fea553b34000000000000000000000000000000000000000000000000000000008152fd5b60046040517f59c896be000000000000000000000000000000000000000000000000000000008152fd5b50336120b9610be988611cbb565b14611dd4565b506120fc61062c336120e4866001600160a01b03166000526008602052604060002090565b906001600160a01b0316600052602052604060002090565b611dcd565b60046040517fa1148100000000000000000000000000000000000000000000000000000000008152fd5b906001600160a01b036000918383526007602052604083207fffffffffffffffffffffffff00000000000000000000000000000000000000008154169055167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258280a4565b9190918260005260076020526121d8816040600020906001600160a01b03167fffffffffffffffffffffffff0000000000000000000000000000000000000000825416179055565b6001600160a01b0380911691167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600080a4565b9081602091031261028657516104668161025c565b909261046694936080936001600160a01b03809216845216602083015260408201528160608201520190610430565b6040513d6000823e3d90fd5b3d15612287573d9061226d8261129c565b9161227b6040519384610a8e565b82523d6000602084013e565b606090565b926020916122d69360006001600160a01b036040518097819682957f150b7a02000000000000000000000000000000000000000000000000000000009b8c85523360048601612221565b0393165af16000918161234e575b50612328576122f161225c565b805190816123235760046040517fd1a57ed6000000000000000000000000000000000000000000000000000000008152fd5b602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000161490565b61237091925060203d8111612377575b6123688183610a8e565b81019061220c565b90386122e4565b503d61235e565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600154600254900382810180911161266d57600a541061260f5760018054926001600160a01b0383169283156125e55781156125bb5761255f906124fc67ffffffffffffffff916124b583861661243e61241a846001600160a01b03166000526006602052604060002090565b611e3683612430835467ffffffffffffffff1690565b0167ffffffffffffffff1690565b61247561245e846001600160a01b03166000526006602052604060002090565b91612430835467ffffffffffffffff9060401c1690565b7fffffffffffffffffffffffffffffffff0000000000000000ffffffffffffffff6fffffffffffffffff000000000000000083549260401b169116179055565b6124c9886000526005602052604060002090565b906001600160a01b03167fffffffffffffffffffffffff0000000000000000000000000000000000000000825416179055565b4216612512866000526005602052604060002090565b907fffffffff0000000000000000ffffffffffffffffffffffffffffffffffffffff7bffffffffffffffff000000000000000000000000000000000000000083549260a01b169116179055565b830181805b612576575b50505050610aec90600155565b156125ae575b6000828086019585837fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4612564565b80841061257c5780612569565b60046040517fb562e8dd000000000000000000000000000000000000000000000000000000008152fd5b60046040517f2e076300000000000000000000000000000000000000000000000000000000008152fd5b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4d503a204d617820537570706c792052656163686564000000000000000000006044820152fd5b61237e565b600019811461266d5760010190565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b91908110156126c05760051b0190565b612681565b90916126cf611ac5565b600091825b8151811015612790576001600160a01b036126ef8284612797565b511684806126fd8489612797565b516127088588612797565b51938451916020809601915af161271d61225c565b5015612732575061272d90612672565b6126d4565b606490604051907f08c379a00000000000000000000000000000000000000000000000000000000082526004820152601660248201527f692068617665206661696c6564207520616e616b696e000000000000000000006044820152fd5b5050505050565b80518210156126c05760209160051b010190565b601f81116127b7575050565b600090600b82527f0175b7a638427703f0dbe7bb9bbf987a2551717b34e79f33b5b1008d1fa01db9906020601f850160051c83019410612812575b601f0160051c01915b82811061280757505050565b8181556001016127fb565b90925082906127f2565b600061282782611b94565b80516001600160a01b031661283c818561212b565b61290961285c826001600160a01b03166000526006602052604060002090565b6128a9612874611e25835467ffffffffffffffff1690565b829067ffffffffffffffff167fffffffffffffffffffffffffffffffffffffffffffffffff0000000000000000825416179055565b80546128c19060801c67ffffffffffffffff16611e9e565b7fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff77ffffffffffffffff0000000000000000000000000000000083549260801b169116179055565b612995612920856000526005602052604060002090565b80547fffffff0000000000000000000000000000000000000000000000000000000000166001600160a01b038416177bffffffffffffffff00000000000000000000000000000000000000004260a01b16177c0100000000000000000000000000000000000000000000000000000000179055565b60018401916129ae836000526005602052604060002090565b6001600160a01b0393846129c983546001600160a01b031690565b1615612a0c575b505050167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8280a4610aec612a0760025460010190565b600255565b60015403612a1b575b806129d0565b6120036020612a5c93611ff48685906001600160a01b03167fffffffffffffffffffffffff0000000000000000000000000000000000000000825416179055565b3880612a15565b15612a6a57565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602f60248201527f556e61626c6520746f2057697468647261772c20526563697069656e74204d6160448201527f79204861766520526576657274656400000000000000000000000000000000006064820152fd5b90816020910312610286575190565b15612b0457565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602160248201527f302045524332302042616c616e63652041742060546f6b656e4164647265737360448201527f60000000000000000000000000000000000000000000000000000000000000006064820152fd5b90816020910312610286575161046681611092565b15612ba457565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f4d503a2053656e646572204973204e6f74204c697665204d696e7400000000006044820152fd5b9081602091031261028657516104668161059b565b15612c1e57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4d503a20496e76616c696420526563697069656e7400000000000000000000006044820152fdfea2646970667358221220bc6138f1668ebf36ef672407089649b6e480bca8832dd8c42455e0773fdf320d64736f6c63430008130033
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.