ERC-1155
Overview
Max Total Supply
620
Holders
123
Market
Volume (24H)
N/A
Min Price (24H)
N/A
Max Price (24H)
N/A
Other Info
Token Contract
Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Encantos
Compiler Version
v0.8.4+commit.c7e474f2
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
/** * SourceUnit: /Users/keithelliott/repos/kikiNFT/contracts/Encantos.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: 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); } /** * SourceUnit: /Users/keithelliott/repos/kikiNFT/contracts/Encantos.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.0; ////import "../../utils/introspection/IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. * * _Available since v3.1._ */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`. */ event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value); /** * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all * transfers. */ event TransferBatch( address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values ); /** * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to * `approved`. */ event ApprovalForAll(address indexed account, address indexed operator, bool approved); /** * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. * * If an {URI} event was emitted for `id`, the standard * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value * returned by {IERC1155MetadataURI-uri}. */ event URI(string value, uint256 indexed id); /** * @dev Returns the amount of tokens of token type `id` owned by `account`. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) external view returns (uint256); /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids) external view returns (uint256[] memory); /** * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the caller. */ function setApprovalForAll(address operator, bool approved) external; /** * @dev Returns true if `operator` is approved to transfer ``account``'s tokens. * * See {setApprovalForAll}. */ function isApprovedForAll(address account, address operator) external view returns (bool); /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes calldata data ) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function safeBatchTransferFrom( address from, address to, uint256[] calldata ids, uint256[] calldata amounts, bytes calldata data ) external; } /** * SourceUnit: /Users/keithelliott/repos/kikiNFT/contracts/Encantos.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: 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; } } /** * SourceUnit: /Users/keithelliott/repos/kikiNFT/contracts/Encantos.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: 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; } } /** * SourceUnit: /Users/keithelliott/repos/kikiNFT/contracts/Encantos.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [////IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * ////IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "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"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(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) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(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) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason 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 { // 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 assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } /** * SourceUnit: /Users/keithelliott/repos/kikiNFT/contracts/Encantos.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol) pragma solidity ^0.8.0; ////import "../IERC1155.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. * * _Available since v3.1._ */ interface IERC1155MetadataURI is IERC1155 { /** * @dev Returns the URI for token type `id`. * * If the `\{id\}` substring is present in the URI, it must be replaced by * clients with the actual token type ID. */ function uri(uint256 id) external view returns (string memory); } /** * SourceUnit: /Users/keithelliott/repos/kikiNFT/contracts/Encantos.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT // OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.0; ////import "../../utils/introspection/IERC165.sol"; /** * @dev _Available since v3.1._ */ interface IERC1155Receiver is IERC165 { /** * @dev Handles the receipt of a single ERC1155 token type. This function is * called at the end of a `safeTransferFrom` after the balance has been updated. * * NOTE: To accept the transfer, this must return * `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` * (i.e. 0xf23a6e61, or its own function selector). * * @param operator The address which initiated the transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param id The ID of the token being transferred * @param value The amount of tokens being transferred * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed */ function onERC1155Received( address operator, address from, uint256 id, uint256 value, bytes calldata data ) external returns (bytes4); /** * @dev Handles the receipt of a multiple ERC1155 token types. This function * is called at the end of a `safeBatchTransferFrom` after the balances have * been updated. * * NOTE: To accept the transfer(s), this must return * `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` * (i.e. 0xbc197c81, or its own function selector). * * @param operator The address which initiated the batch transfer (i.e. msg.sender) * @param from The address which previously owned the token * @param ids An array containing ids of each token being transferred (order and length must match values array) * @param values An array containing amounts of each token being transferred (order and length must match ids array) * @param data Additional data with no specified format * @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed */ function onERC1155BatchReceived( address operator, address from, uint256[] calldata ids, uint256[] calldata values, bytes calldata data ) external returns (bytes4); } /** * SourceUnit: /Users/keithelliott/repos/kikiNFT/contracts/Encantos.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT // OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.0; /** * @dev These functions deal with verification of Merkle Trees proofs. * * The proofs can be generated using the JavaScript library * https://github.com/miguelmota/merkletreejs[merkletreejs]. * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled. * * See `test/utils/cryptography/MerkleProof.test.js` for some examples. */ library MerkleProof { /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify( bytes32[] memory proof, bytes32 root, bytes32 leaf ) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. * * _Available since v4.4._ */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { bytes32 proofElement = proof[i]; if (computedHash <= proofElement) { // Hash(current computed hash + current element of the proof) computedHash = _efficientHash(computedHash, proofElement); } else { // Hash(current element of the proof + current computed hash) computedHash = _efficientHash(proofElement, computedHash); } } return computedHash; } function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } } /** * SourceUnit: /Users/keithelliott/repos/kikiNFT/contracts/Encantos.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal representation. */ function toString(uint256 value) internal pure returns (string memory) { // Inspired by OraclizeAPI's implementation - MIT licence // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(digits); while (value != 0) { digits -= 1; buffer[digits] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } return string(buffer); } /** * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation. */ function toHexString(uint256 value) internal pure returns (string memory) { if (value == 0) { return "0x00"; } uint256 temp = value; uint256 length = 0; while (temp != 0) { length++; temp >>= 8; } return toHexString(value, length); } /** * @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] = _HEX_SYMBOLS[value & 0xf]; value >>= 4; } require(value == 0, "Strings: hex length insufficient"); return string(buffer); } } /** * SourceUnit: /Users/keithelliott/repos/kikiNFT/contracts/Encantos.sol */ ////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC1155/ERC1155.sol) pragma solidity ^0.8.0; ////import "./IERC1155.sol"; ////import "./IERC1155Receiver.sol"; ////import "./extensions/IERC1155MetadataURI.sol"; ////import "../../utils/Address.sol"; ////import "../../utils/Context.sol"; ////import "../../utils/introspection/ERC165.sol"; /** * @dev Implementation of the basic standard multi-token. * See https://eips.ethereum.org/EIPS/eip-1155 * Originally based on code by Enjin: https://github.com/enjin/erc-1155 * * _Available since v3.1._ */ contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI { using Address for address; // Mapping from token ID to account balances mapping(uint256 => mapping(address => uint256)) private _balances; // Mapping from account to operator approvals mapping(address => mapping(address => bool)) private _operatorApprovals; // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json string private _uri; /** * @dev See {_setURI}. */ constructor(string memory uri_) { _setURI(uri_); } /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { return interfaceId == type(IERC1155).interfaceId || interfaceId == type(IERC1155MetadataURI).interfaceId || super.supportsInterface(interfaceId); } /** * @dev See {IERC1155MetadataURI-uri}. * * This implementation returns the same URI for *all* token types. It relies * on the token type ID substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * Clients calling this function must replace the `\{id\}` substring with the * actual token type ID. */ function uri(uint256) public view virtual override returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. * * Requirements: * * - `account` cannot be the zero address. */ function balanceOf(address account, uint256 id) public view virtual override returns (uint256) { require(account != address(0), "ERC1155: balance query for the zero address"); return _balances[id][account]; } /** * @dev See {IERC1155-balanceOfBatch}. * * Requirements: * * - `accounts` and `ids` must have the same length. */ function balanceOfBatch(address[] memory accounts, uint256[] memory ids) public view virtual override returns (uint256[] memory) { require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch"); uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts[i], ids[i]); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual override { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual override returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: caller is not owner nor approved" ); _safeTransferFrom(from, to, id, amount, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) public virtual override { require( from == _msgSender() || isApprovedForAll(from, _msgSender()), "ERC1155: transfer caller is not owner nor approved" ); _safeBatchTransferFrom(from, to, ids, amounts, data); } /** * @dev Transfers `amount` tokens of token type `id` from `from` to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - `from` must have a balance of tokens of type `id` of at least `amount`. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _safeTransferFrom( address from, address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; emit TransferSingle(operator, from, to, id, amount); _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}. * * Emits a {TransferBatch} event. * * Requirements: * * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); require(to != address(0), "ERC1155: transfer to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, to, ids, amounts, data); for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: insufficient balance for transfer"); unchecked { _balances[id][from] = fromBalance - amount; } _balances[id][to] += amount; } emit TransferBatch(operator, from, to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data); } /** * @dev Sets a new URI for all token types, by relying on the token type ID * substitution mechanism * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. * * By this mechanism, any occurrence of the `\{id\}` substring in either the * URI or any of the amounts in the JSON file at said URI will be replaced by * clients with the token type ID. * * For example, the `https://token-cdn-domain/\{id\}.json` URI would be * interpreted by clients as * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json` * for token type ID 0x4cce0. * * See {uri}. * * Because these URIs cannot be meaningfully represented by the {URI} event, * this function emits no events. */ function _setURI(string memory newuri) internal virtual { _uri = newuri; } /** * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the * acceptance magic value. */ function _mint( address to, uint256 id, uint256 amount, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, _asSingletonArray(id), _asSingletonArray(amount), data); _balances[id][to] += amount; emit TransferSingle(operator, address(0), to, id, amount); _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * Requirements: * * - `ids` and `amounts` must have the same length. * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the * acceptance magic value. */ function _mintBatch( address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual { require(to != address(0), "ERC1155: mint to the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, address(0), to, ids, amounts, data); for (uint256 i = 0; i < ids.length; i++) { _balances[ids[i]][to] += amounts[i]; } emit TransferBatch(operator, address(0), to, ids, amounts); _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data); } /** * @dev Destroys `amount` tokens of token type `id` from `from` * * Requirements: * * - `from` cannot be the zero address. * - `from` must have at least `amount` tokens of token type `id`. */ function _burn( address from, uint256 id, uint256 amount ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), _asSingletonArray(id), _asSingletonArray(amount), ""); uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } emit TransferSingle(operator, from, address(0), id, amount); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Requirements: * * - `ids` and `amounts` must have the same length. */ function _burnBatch( address from, uint256[] memory ids, uint256[] memory amounts ) internal virtual { require(from != address(0), "ERC1155: burn from the zero address"); require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch"); address operator = _msgSender(); _beforeTokenTransfer(operator, from, address(0), ids, amounts, ""); for (uint256 i = 0; i < ids.length; i++) { uint256 id = ids[i]; uint256 amount = amounts[i]; uint256 fromBalance = _balances[id][from]; require(fromBalance >= amount, "ERC1155: burn amount exceeds balance"); unchecked { _balances[id][from] = fromBalance - amount; } } emit TransferBatch(operator, from, address(0), ids, amounts); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits a {ApprovalForAll} event. */ function _setApprovalForAll( address owner, address operator, bool approved ) internal virtual { require(owner != operator, "ERC1155: setting approval status for self"); _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Hook that is called before any token transfer. This includes minting * and burning, as well as batched variants. * * The same hook is called on both single and batched variants. For single * transfers, the length of the `id` and `amount` arrays will be 1. * * Calling conditions (for each `id` and `amount` pair): * * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens * of token type `id` will be transferred to `to`. * - When `from` is zero, `amount` tokens of token type `id` will be minted * for `to`. * - when `to` is zero, `amount` of ``from``'s tokens of token type `id` * will be burned. * - `from` and `to` are never both zero. * - `ids` and `amounts` have the same, non-zero length. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) internal virtual {} function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 amount, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) { if (response != IERC1155Receiver.onERC1155Received.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) private { if (to.isContract()) { try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns ( bytes4 response ) { if (response != IERC1155Receiver.onERC1155BatchReceived.selector) { revert("ERC1155: ERC1155Receiver rejected tokens"); } } catch Error(string memory reason) { revert(reason); } catch { revert("ERC1155: transfer to non ERC1155Receiver implementer"); } } } function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) { uint256[] memory array = new uint256[](1); array[0] = element; return array; } } /** * SourceUnit: /Users/keithelliott/repos/kikiNFT/contracts/Encantos.sol */ // contracts/Encantos.sol //SPDX-License-Identifier: Unlicense pragma solidity ^0.8.4; ////import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol"; ////import "@openzeppelin/contracts/utils/Strings.sol"; ////import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol"; contract Encantos is ERC1155 { using Strings for uint256; struct PricingStrategy { uint256 price; uint256 totalForDiscount; uint256 discountedPrice; } struct Range { uint256 low; uint256 high; string uri; } struct CollectionId { uint256 id; bool exists; } address payable public owner; bool public locked; uint256[] private _uriKeys; mapping(uint256 => uint256) private _tokenPrices; mapping(uint256 => uint256) private _nftMaxTokens; mapping(uint256 => uint256) private _totalSupply; mapping(uint256 => bytes32) public _merkleRootPerCollection; mapping(uint256 => Range[]) private _baseMetadaUris; mapping(uint256 => CollectionId) private _collectionForIds; mapping(uint256 => mapping(uint256 => bool)) private _mintingStatusByCollectionAndGroup; mapping(uint256 => mapping(uint256 => uint256)) private _mintMaxByCollectionAndGroup; mapping(uint256 => mapping(uint256 => PricingStrategy)) private pricingStrategy; constructor(bytes32 root, string memory _url) payable ERC1155(_url) { owner = payable(msg.sender); setMintMaxForGroup(0 , 0, 3); setMintMaxForGroup(0, 1, 5); setMintMaxForGroup(0 ,2, 10); setMintMaxForGroup(0 , 3, 1); setPricingStrategy(0, 3, 0.04 ether, 1, 0.04 ether); setPricingStrategy(0, 2, 0.04 ether, 10, 0.03 ether); setPricingStrategy(0, 1, 0.05 ether, 5, 0.04 ether); _tokenPrices[0] = 0.06 ether; _nftMaxTokens[0] = 500; setMerkleRootPerCollection(0, root); setBaseMetadataURI(0,_url, 500); } function _onlyOwner() private view { require(owner == msg.sender, "caller not owner"); } /** Modifiers */ modifier ownerOnly() { _onlyOwner(); _; } modifier noReentrancy() { require(!locked, "No reentrancy"); locked = true; _; locked = false; } modifier validAddress(address _addr) { require(_addr != address(0), "Not valid address"); _; } function transferOwnership(address payable newOwner) public ownerOnly validAddress(newOwner) { owner = newOwner; } function totalSupply(uint256 collection) public view virtual returns (uint256) { return _totalSupply[collection]; } function tokenPrice(uint256 collection) public view virtual returns (uint256) { return _tokenPrices[collection]; } function nftMaxTokens(uint256 collection) public view virtual returns (uint256) { return _nftMaxTokens[collection]; } function collectionForTokenId(uint256 id) public view virtual returns (uint256) { require(_collectionForIds[id].exists, "id does not exist"); return _collectionForIds[id].id; } function statusForCollectionAndMintGroup(uint256 collection, uint256 mintGroup) public view virtual returns (bool) { return _mintingStatusByCollectionAndGroup[collection][mintGroup]; } function mintMaxByCollectionAndGroup(uint256 collection, uint256 mintGroup) public view virtual returns (uint256) { return _mintMaxByCollectionAndGroup[collection][mintGroup]; } function getPricingStrategy(uint256 collection, uint256 mintGroup) public view virtual returns (PricingStrategy memory) { return pricingStrategy[collection][mintGroup]; } function setTokenPrices(uint256[] memory ids, uint256[] memory prices) public ownerOnly { require(ids.length == prices.length, "lengths don't match"); for (uint256 i = 0; i < ids.length; ++i) { _tokenPrices[ids[i]] = prices[i]; } } function setCollectionTokenMaximums(uint256[] memory collections, uint256[] memory maxAmounts) public ownerOnly { require(collections.length == maxAmounts.length, "lengths don't match"); for(uint256 i = 0; i < collections.length; ++i) { _nftMaxTokens[collections[i]] = maxAmounts[i]; } } function setBaseMetadataURI(uint256 collection, string memory _uri, uint256 max) public ownerOnly { setNextUri(collection, max, _uri); } function setMerkleRootPerCollection(uint256 collection, bytes32 merkleRoot) public ownerOnly { _merkleRootPerCollection[collection] = merkleRoot; } function setMintingStatus(uint256 collection, uint256 mintGroup, bool status) public ownerOnly { _mintingStatusByCollectionAndGroup[collection][mintGroup] = status; } function setMintMaxForGroup(uint256 collection, uint256 mintGroup, uint256 maxMints) public ownerOnly { _mintMaxByCollectionAndGroup[collection][mintGroup] = maxMints; } function setPricingStrategy(uint256 collection, uint256 mintGroup, uint256 price, uint256 total, uint256 discountedPrice) public ownerOnly { pricingStrategy[collection][mintGroup] = PricingStrategy({totalForDiscount: total, price: price, discountedPrice: discountedPrice }); } function privilegedMint(uint256 collection, uint256 mintGroup, uint256 numToMint, address acct, bytes32[] calldata merkleProof) public payable { bytes32 node = keccak256(abi.encodePacked(acct, mintGroup, collection)); require(MerkleProof.verify(merkleProof, _merkleRootPerCollection[collection], node), "not on list"); require(numToMint > 0, "no tokens requested"); require(_mintingStatusByCollectionAndGroup[collection][mintGroup] == true, "mint group not active"); if( numToMint == (pricingStrategy[collection][mintGroup]).totalForDiscount) { require(msg.value >= (pricingStrategy[collection][mintGroup]).discountedPrice, "insufficient fund to mint"); } else { require(msg.value >= (pricingStrategy[collection][mintGroup]).price,"insufficient funds to mint"); } require(numToMint < _mintMaxByCollectionAndGroup[collection][mintGroup] + 1,"to many mints requested"); for (uint256 i = _totalSupply[collection]; i < (_totalSupply[collection] + numToMint); i++) { uint256 token = collection + i + 1; _mint(msg.sender, token, 1,""); _collectionForIds[token] = CollectionId({ id: collection, exists: true}); } _totalSupply[collection] += numToMint; } function mint(uint256 collection, uint256 numToMint) public payable { require(numToMint > 0, "no tokens requested"); require(_mintingStatusByCollectionAndGroup[collection][0] == true, "mint group not active"); require(numToMint < _mintMaxByCollectionAndGroup[collection][0] + 1,"to many mints requested"); require(msg.value >= (_tokenPrices[collection] * numToMint),"insufficient funds to mint"); for (uint256 i = _totalSupply[collection]; i < (_totalSupply[collection] + numToMint); i++) { uint256 token = collection+ i + 1; _mint(msg.sender, token, 1,""); _collectionForIds[token] = CollectionId({ id: collection, exists: true}); } _totalSupply[collection] += numToMint; } function airdropNFTs(uint256 collection, address[] memory to) public payable ownerOnly { uint256[] memory nftIds = new uint256[](to.length); uint256[] memory amounts = new uint256[](to.length); uint256 count = 0; for(uint256 i = _totalSupply[collection]; i < (_totalSupply[collection] + to.length); ++i) { uint256 token = collection + i + 1; _mint(msg.sender, token, 1, ""); _collectionForIds[token] = CollectionId({ id: collection, exists: true}); nftIds[count] = token; amounts[count] = 1; count++; } _totalSupply[collection] += to.length; for (uint256 i = 0; i < to.length; ++i) { require(to[i] != address(0), "invalid address input"); safeTransferFrom(msg.sender, to[i], nftIds[i], amounts[i], ""); } } function uri(uint256 _id) public view override returns (string memory) { uint256 collectionId = collectionForTokenId(_id); string memory paddedId = paddedString(_id, 64); string memory _uri = getUri(collectionId, _id); return string(abi.encodePacked(_uri, paddedId, ".json")); } function _beforeTokenTransfer(address operator, address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data) internal virtual override { super._beforeTokenTransfer(operator,from,to,ids, amounts,data); if (from == address(0)) { for (uint256 i = 0; i < ids.length; ++i) { _totalSupply[ids[i]] += amounts[i]; } } if ( to == address(0)) { for (uint256 i = 0; i < ids.length; ++i) { _totalSupply[ids[i]] -= amounts[i]; } } } function exists(uint256 id) public view virtual returns (bool) { require(_collectionForIds[id].exists, "id does not exist"); return true; } function paddedString(uint256 value, uint256 length) internal pure returns (string memory) { if (value == 0) { return "0"; } uint256 temp = value; uint256 digits; while (temp != 0) { digits++; temp /= 10; } bytes memory buffer = new bytes(length); uint256 counter = length; while (counter != 0) { if (digits != 0){ digits -= 1; counter -= 1; buffer[counter] = bytes1(uint8(48 + uint256(value % 10))); value /= 10; } else { counter -= 1; buffer[counter] = "0"; } } return string(buffer); } function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return ERC1155.supportsInterface(interfaceId); } function deposit() public payable {} function withdraw(address payable _to) public payable ownerOnly noReentrancy { // get the amount of Ether stored in this contract uint amount = address(this).balance; // send all Ether to owner // Owner can receive Ether since the address of owner is payable (bool success, ) = _to.call{value: amount}(""); require(success, "Failed to send Ether"); } function transfer(address payable _to) public payable ownerOnly noReentrancy { // Note that "to" is declared as payable (bool success, ) = _to.call{value: msg.value}(""); require(success, "Failed to send Ether"); } // Function to receive Ether. msg.data must be empty receive() external payable {} // Fallback function is called when msg.data is not empty fallback() external payable {} function getBalance() public view returns (uint) { return address(this).balance; } function getUriKeyAtIndex(uint collection, uint index) internal view returns (Range memory) { return _baseMetadaUris[collection][index]; } function getUri(uint256 collection, uint256 id) internal view returns (string memory) { if (_baseMetadaUris[collection].length == 0 ){ return _baseMetadaUris[collection][0].uri; } for (uint256 i = 0; i < _baseMetadaUris[collection].length; ++i) { Range memory rng = getUriKeyAtIndex(collection, i); if (id + 1 > rng.low && id < rng.high + 1){ return _baseMetadaUris[collection][i].uri; } } return ""; } function setNextUri(uint256 collection, uint256 high, string memory _uri) internal{ if (_baseMetadaUris[collection].length > 0) { uint256 index = _baseMetadaUris[collection].length - 1; Range memory rng = _baseMetadaUris[collection][index]; if (high + 1 > rng.high){ _baseMetadaUris[collection].push(Range({uri: _uri, low: rng.high, high: high})); } else{ // can only replace last entry _baseMetadaUris[collection][index].high = high; } } else { _baseMetadaUris[collection].push(Range({uri: _uri, low: collection, high: high})); } } }
{ "optimizer": { "enabled": true, "runs": 1000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"bytes32","name":"root","type":"bytes32"},{"internalType":"string","name":"_url","type":"string"}],"stateMutability":"payable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"account","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":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"indexed":false,"internalType":"uint256[]","name":"values","type":"uint256[]"}],"name":"TransferBatch","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TransferSingle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"value","type":"string"},{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"URI","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"_merkleRootPerCollection","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"collection","type":"uint256"},{"internalType":"address[]","name":"to","type":"address[]"}],"name":"airdropNFTs","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"}],"name":"balanceOfBatch","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"collectionForTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"collection","type":"uint256"},{"internalType":"uint256","name":"mintGroup","type":"uint256"}],"name":"getPricingStrategy","outputs":[{"components":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"totalForDiscount","type":"uint256"},{"internalType":"uint256","name":"discountedPrice","type":"uint256"}],"internalType":"struct Encantos.PricingStrategy","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"locked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"collection","type":"uint256"},{"internalType":"uint256","name":"numToMint","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"collection","type":"uint256"},{"internalType":"uint256","name":"mintGroup","type":"uint256"}],"name":"mintMaxByCollectionAndGroup","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"collection","type":"uint256"}],"name":"nftMaxTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"collection","type":"uint256"},{"internalType":"uint256","name":"mintGroup","type":"uint256"},{"internalType":"uint256","name":"numToMint","type":"uint256"},{"internalType":"address","name":"acct","type":"address"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"privilegedMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeBatchTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"amount","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":"uint256","name":"collection","type":"uint256"},{"internalType":"string","name":"_uri","type":"string"},{"internalType":"uint256","name":"max","type":"uint256"}],"name":"setBaseMetadataURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"collections","type":"uint256[]"},{"internalType":"uint256[]","name":"maxAmounts","type":"uint256[]"}],"name":"setCollectionTokenMaximums","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"collection","type":"uint256"},{"internalType":"bytes32","name":"merkleRoot","type":"bytes32"}],"name":"setMerkleRootPerCollection","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"collection","type":"uint256"},{"internalType":"uint256","name":"mintGroup","type":"uint256"},{"internalType":"uint256","name":"maxMints","type":"uint256"}],"name":"setMintMaxForGroup","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"collection","type":"uint256"},{"internalType":"uint256","name":"mintGroup","type":"uint256"},{"internalType":"bool","name":"status","type":"bool"}],"name":"setMintingStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"collection","type":"uint256"},{"internalType":"uint256","name":"mintGroup","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"total","type":"uint256"},{"internalType":"uint256","name":"discountedPrice","type":"uint256"}],"name":"setPricingStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"ids","type":"uint256[]"},{"internalType":"uint256[]","name":"prices","type":"uint256[]"}],"name":"setTokenPrices","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"collection","type":"uint256"},{"internalType":"uint256","name":"mintGroup","type":"uint256"}],"name":"statusForCollectionAndMintGroup","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"collection","type":"uint256"}],"name":"tokenPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"collection","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"_to","type":"address"}],"name":"transfer","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address payable","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address payable","name":"_to","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6080604052604051620040a3380380620040a3833981016040819052620000269162000597565b8062000032816200015b565b50600380546001600160a01b031916331781556200005590600090819062000174565b6200006560006001600562000174565b6200007560006002600a62000174565b6200008560006003600162000174565b6200009e60006003668e1bc9bf0400006001816200019a565b620000be60006002668e1bc9bf040000600a666a94d74f4300006200019a565b620000de6000600166b1a2bc2ec500006005668e1bc9bf0400006200019a565b600080805266d529ae9e8600007f05b8ccbb9d4d8fb16ea74ce3c29a41f1b461fbdaff4714a0d9a8eb05499746bc5560066020526101f47f54cdd369e4e8a8515e52ca72ec816c2101831ad1f18bf44102ed171459c9b4f855620001439083620001ea565b620001536000826101f462000206565b505062000719565b805162000170906002906020840190620004f1565b5050565b6200017e62000222565b6000928352600c60209081526040808520938552929052912055565b620001a462000222565b6040805160608101825293845260208085019384528482019283526000968752600d81528187209587529490945292909320905181559151600183015551600290910155565b620001f462000222565b60009182526008602052604090912055565b6200021062000222565b6200021d83828462000276565b505050565b6003546001600160a01b03163314620002745760405162461bcd60e51b815260206004820152601060248201526f31b0b63632b9103737ba1037bbb732b960811b604482015260640160405180910390fd5b565b600083815260096020526040902054156200048257600083815260096020526040812054620002a89060019062000696565b60008581526009602052604081208054929350909183908110620002dc57634e487b7160e01b600052603260045260246000fd5b906000526020600020906003020160405180606001604052908160008201548152602001600182015481526020016002820180546200031b90620006b0565b80601f01602080910402602001604051908101604052809291908181526020018280546200034990620006b0565b80156200039a5780601f106200036e576101008083540402835291602001916200039a565b820191906000526020600020905b8154815290600101906020018083116200037c57829003601f168201915b50505050508152505090508060200151846001620003b991906200067b565b1115620004335760008581526009602090815260408083208151606081018352858401518152808401898152928101888152825460018181018555938752958590208251600390970201958655925191850191909155905180519193926200042a92600285019290910190620004f1565b5050506200047b565b60008581526009602052604090208054859190849081106200046557634e487b7160e01b600052603260045260246000fd5b9060005260206000209060030201600101819055505b5050505050565b6000838152600960209081526040808320815160608101835287815280840187815292810186815282546001818101855593875295859020825160039097020195865592519185019190915590518051919392620004e992600285019290910190620004f1565b505050505050565b828054620004ff90620006b0565b90600052602060002090601f0160209004810192826200052357600085556200056e565b82601f106200053e57805160ff19168380011785556200056e565b828001600101855582156200056e579182015b828111156200056e57825182559160200191906001019062000551565b506200057c92915062000580565b5090565b5b808211156200057c576000815560010162000581565b60008060408385031215620005aa578182fd5b8251602080850151919350906001600160401b0380821115620005cb578384fd5b818601915086601f830112620005df578384fd5b815181811115620005f457620005f462000703565b604051601f8201601f19908116603f011681019083821181831017156200061f576200061f62000703565b81604052828152898684870101111562000637578687fd5b8693505b828410156200065a57848401860151818501870152928501926200063b565b828411156200066b57868684830101525b8096505050505050509250929050565b60008219821115620006915762000691620006ed565b500190565b600082821015620006ab57620006ab620006ed565b500390565b600181811c90821680620006c557607f821691505b60208210811415620006e757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b61397a80620007296000396000f3fe6080604052600436106101fe5760003560e01c80638ce44db91161010e578063d4ddce8a116100a7578063f242432a11610079578063f2fde38b11610061578063f2fde38b14610681578063f4e3204a146106a1578063f560aa57146106c157005b8063f242432a14610641578063f2c6ea031461066157005b8063d4ddce8a14610598578063d70763c3146105c5578063e026613b146105d8578063e985e9c5146105f857005b8063bd85b039116100e0578063bd85b0391461052a578063c12758d514610557578063cf30901214610577578063d0e30db01461020557005b80638ce44db91461046a5780638da5cb5b1461049757806393cdf05a146104cf578063a22cb4651461050a57005b80632b56908d116101985780634e1273f41161016a5780635029b899116101525780635029b8991461042457806351cff8d91461044457806367d06ac91461045757005b80634e1273f4146103d75780634f558e791461040457005b80632b56908d146103325780632eb2c2d61461035257806337de46db146103725780634a57b93b1461039f57005b80631a695230116101d15780631a695230146102aa5780631acf59c0146102bd5780631b2ef1ca146102ff578063204bc6351461031257005b8062fdd58e1461020757806301ffc9a71461023a5780630e89341c1461026a57806312065fe01461029757005b3661020557005b005b34801561021357600080fd5b5061022761022236600461322d565b6106e1565b6040519081526020015b60405180910390f35b34801561024657600080fd5b5061025a6102553660046132ee565b61078d565b6040519015158152602001610231565b34801561027657600080fd5b5061028a610285366004613326565b610798565b60405161023191906136d2565b3480156102a357600080fd5b5047610227565b6102056102b8366004613094565b6107f0565b3480156102c957600080fd5b506102dd6102d8366004613379565b610907565b6040805182518152602080840151908201529181015190820152606001610231565b61020561030d366004613379565b61096a565b34801561031e57600080fd5b5061020561032d36600461342f565b610bdf565b34801561033e57600080fd5b5061020561034d3660046134f9565b610c03565b34801561035e57600080fd5b5061020561036d3660046130e8565b610c51565b34801561037e57600080fd5b5061022761038d366004613326565b60009081526006602052604090205490565b3480156103ab57600080fd5b506102276103ba366004613379565b6000918252600c6020908152604080842092845291905290205490565b3480156103e357600080fd5b506103f76103f2366004613258565b610cf3565b6040516102319190613691565b34801561041057600080fd5b5061025a61041f366004613326565b610e69565b34801561043057600080fd5b5061020561043f3660046133fb565b610ed2565b610205610452366004613094565b610f04565b61020561046536600461345a565b61101e565b34801561047657600080fd5b50610227610485366004613326565b60086020526000908152604090205481565b3480156104a357600080fd5b506003546104b7906001600160a01b031681565b6040516001600160a01b039091168152602001610231565b3480156104db57600080fd5b5061025a6104ea366004613379565b6000918252600b6020908152604080842092845291905290205460ff1690565b34801561051657600080fd5b506102056105253660046131f9565b61140c565b34801561053657600080fd5b50610227610545366004613326565b60009081526007602052604090205490565b34801561056357600080fd5b5061020561057236600461339a565b61141b565b34801561058357600080fd5b5060035461025a90600160a01b900460ff1681565b3480156105a457600080fd5b506102276105b3366004613326565b60009081526005602052604090205490565b6102056105d336600461333e565b611435565b3480156105e457600080fd5b506102056105f3366004613379565b61176e565b34801561060457600080fd5b5061025a6106133660046130b0565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561064d57600080fd5b5061020561065c366004613192565b611788565b34801561066d57600080fd5b5061020561067c3660046132b9565b611823565b34801561068d57600080fd5b5061020561069c366004613094565b6118ff565b3480156106ad57600080fd5b506102276106bc366004613326565b611999565b3480156106cd57600080fd5b506102056106dc3660046132b9565b611a0d565b60006001600160a01b0383166107645760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201527f65726f206164647265737300000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b600061078782611ae9565b606060006107a583611999565b905060006107b4846040611b84565b905060006107c28386611d3b565b905080826040516020016107d7929190613599565b6040516020818303038152906040529350505050919050565b6107f8611f6d565b600354600160a01b900460ff16156108425760405162461bcd60e51b815260206004820152600d60248201526c4e6f207265656e7472616e637960981b604482015260640161075b565b6003805460ff60a01b1916600160a01b1790556040516000906001600160a01b0383169034908381818185875af1925050503d80600081146108a0576040519150601f19603f3d011682016040523d82523d6000602084013e6108a5565b606091505b50509050806108f65760405162461bcd60e51b815260206004820152601460248201527f4661696c656420746f2073656e64204574686572000000000000000000000000604482015260640161075b565b50506003805460ff60a01b19169055565b61092b60405180606001604052806000815260200160008152602001600081525090565b506000918252600d6020908152604080842092845291815291819020815160608101835281548152600182015493810193909352600201549082015290565b600081116109ba5760405162461bcd60e51b815260206004820152601360248201527f6e6f20746f6b656e732072657175657374656400000000000000000000000000604482015260640161075b565b6000828152600b6020908152604080832083805290915290205460ff161515600114610a285760405162461bcd60e51b815260206004820152601560248201527f6d696e742067726f7570206e6f74206163746976650000000000000000000000604482015260640161075b565b6000828152600c60209081526040808320838052909152902054610a4d906001613709565b8110610a9b5760405162461bcd60e51b815260206004820152601760248201527f746f206d616e79206d696e747320726571756573746564000000000000000000604482015260640161075b565b600082815260056020526040902054610ab5908290613735565b341015610b045760405162461bcd60e51b815260206004820152601a60248201527f696e73756666696369656e742066756e647320746f206d696e74000000000000604482015260640161075b565b6000828152600760205260409020545b600083815260076020526040902054610b2e908390613709565b811015610bb7576000610b418285613709565b610b4c906001613709565b9050610b6a3382600160405180602001604052806000815250611fc7565b604080518082018252858152600160208083018281526000958652600a909152929093209051815590519101805460ff191691151591909117905580610baf81613803565b915050610b14565b5060008281526007602052604081208054839290610bd6908490613709565b90915550505050565b610be7611f6d565b6000928352600c60209081526040808520938552929052912055565b610c0b611f6d565b6040805160608101825293845260208085019384528482019283526000968752600d81528187209587529490945292909320905181559151600183015551600290910155565b6001600160a01b038516331480610c6d5750610c6d8533610613565b610cdf5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000606482015260840161075b565b610cec85858585856120f3565b5050505050565b60608151835114610d6c5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d617463680000000000000000000000000000000000000000000000606482015260840161075b565b6000835167ffffffffffffffff811115610d9657634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610dbf578160200160208202803683370190505b50905060005b8451811015610e6157610e26858281518110610df157634e487b7160e01b600052603260045260246000fd5b6020026020010151858381518110610e1957634e487b7160e01b600052603260045260246000fd5b60200260200101516106e1565b828281518110610e4657634e487b7160e01b600052603260045260246000fd5b6020908102919091010152610e5a81613803565b9050610dc5565b509392505050565b6000818152600a602052604081206001015460ff16610eca5760405162461bcd60e51b815260206004820152601160248201527f696420646f6573206e6f74206578697374000000000000000000000000000000604482015260640161075b565b506001919050565b610eda611f6d565b6000928352600b602090815260408085209385529290529120805460ff1916911515919091179055565b610f0c611f6d565b600354600160a01b900460ff1615610f565760405162461bcd60e51b815260206004820152600d60248201526c4e6f207265656e7472616e637960981b604482015260640161075b565b6003805460ff60a01b1916600160a01b17905560405147906000906001600160a01b0384169083908381818185875af1925050503d8060008114610fb6576040519150601f19603f3d011682016040523d82523d6000602084013e610fbb565b606091505b505090508061100c5760405162461bcd60e51b815260206004820152601460248201527f4661696c656420746f2073656e64204574686572000000000000000000000000604482015260640161075b565b50506003805460ff60a01b1916905550565b6040516bffffffffffffffffffffffff19606085901b16602082015260348101869052605481018790526000906074016040516020818303038152906040528051906020012090506110b183838080602002602001604051908101604052809392919081815260200183836020028082843760009201829052508c81526008602052604090205492508591506123889050565b6110fd5760405162461bcd60e51b815260206004820152600b60248201527f6e6f74206f6e206c697374000000000000000000000000000000000000000000604482015260640161075b565b6000851161114d5760405162461bcd60e51b815260206004820152601360248201527f6e6f20746f6b656e732072657175657374656400000000000000000000000000604482015260640161075b565b6000878152600b6020908152604080832089845290915290205460ff1615156001146111bb5760405162461bcd60e51b815260206004820152601560248201527f6d696e742067726f7570206e6f74206163746976650000000000000000000000604482015260640161075b565b6000878152600d60209081526040808320898452909152902060010154851415611250576000878152600d6020908152604080832089845290915290206002015434101561124b5760405162461bcd60e51b815260206004820152601960248201527f696e73756666696369656e742066756e6420746f206d696e7400000000000000604482015260640161075b565b6112b9565b6000878152600d602090815260408083208984529091529020543410156112b95760405162461bcd60e51b815260206004820152601a60248201527f696e73756666696369656e742066756e647320746f206d696e74000000000000604482015260640161075b565b6000878152600c602090815260408083208984529091529020546112de906001613709565b851061132c5760405162461bcd60e51b815260206004820152601760248201527f746f206d616e79206d696e747320726571756573746564000000000000000000604482015260640161075b565b6000878152600760205260409020545b600088815260076020526040902054611356908790613709565b8110156113df576000611369828a613709565b611374906001613709565b90506113923382600160405180602001604052806000815250611fc7565b6040805180820182528a8152600160208083018281526000958652600a909152929093209051815590519101805460ff1916911515919091179055806113d781613803565b91505061133c565b50600087815260076020526040812080548792906113fe908490613709565b909155505050505050505050565b61141733838361239e565b5050565b611423611f6d565b61142e838284612493565b505050565b565b61143d611f6d565b6000815167ffffffffffffffff81111561146757634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611490578160200160208202803683370190505b5090506000825167ffffffffffffffff8111156114bd57634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156114e6578160200160208202803683370190505b50600085815260076020526040812054919250905b84516000878152600760205260409020546115169190613709565b8110156116085760006115298288613709565b611534906001613709565b90506115523382600160405180602001604052806000815250611fc7565b604080518082018252888152600160208083018281526000868152600a9092529390209151825591519101805460ff1916911515919091179055845181908690859081106115b057634e487b7160e01b600052603260045260246000fd5b60200260200101818152505060018484815181106115de57634e487b7160e01b600052603260045260246000fd5b6020908102919091010152826115f381613803565b935050508061160190613803565b90506114fb565b50835160008681526007602052604081208054909190611629908490613709565b90915550600090505b84518110156117665760006001600160a01b031685828151811061166657634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b031614156116c55760405162461bcd60e51b815260206004820152601560248201527f696e76616c6964206164647265737320696e7075740000000000000000000000604482015260640161075b565b611756338683815181106116e957634e487b7160e01b600052603260045260246000fd5b602002602001015186848151811061171157634e487b7160e01b600052603260045260246000fd5b602002602001015186858151811061173957634e487b7160e01b600052603260045260246000fd5b602002602001015160405180602001604052806000815250611788565b61175f81613803565b9050611632565b505050505050565b611776611f6d565b60009182526008602052604090912055565b6001600160a01b0385163314806117a457506117a48533610613565b6118165760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527f20617070726f7665640000000000000000000000000000000000000000000000606482015260840161075b565b610cec85858585856126f0565b61182b611f6d565b805182511461187c5760405162461bcd60e51b815260206004820152601360248201527f6c656e6774687320646f6e2774206d6174636800000000000000000000000000604482015260640161075b565b60005b825181101561142e578181815181106118a857634e487b7160e01b600052603260045260246000fd5b6020026020010151600660008584815181106118d457634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002081905550806118f890613803565b905061187f565b611907611f6d565b806001600160a01b03811661195e5760405162461bcd60e51b815260206004820152601160248201527f4e6f742076616c69642061646472657373000000000000000000000000000000604482015260640161075b565b50600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6000818152600a602052604081206001015460ff166119fa5760405162461bcd60e51b815260206004820152601160248201527f696420646f6573206e6f74206578697374000000000000000000000000000000604482015260640161075b565b506000908152600a602052604090205490565b611a15611f6d565b8051825114611a665760405162461bcd60e51b815260206004820152601360248201527f6c656e6774687320646f6e2774206d6174636800000000000000000000000000604482015260640161075b565b60005b825181101561142e57818181518110611a9257634e487b7160e01b600052603260045260246000fd5b602002602001015160056000858481518110611abe57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000208190555080611ae290613803565b9050611a69565b60006001600160e01b031982167fd9b67a26000000000000000000000000000000000000000000000000000000001480611b4c57506001600160e01b031982167f0e89341c00000000000000000000000000000000000000000000000000000000145b8061078757507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610787565b606082611ba957506040805180820190915260018152600360fc1b6020820152610787565b8260005b8115611bd35780611bbd81613803565b9150611bcc9050600a83613721565b9150611bad565b60008467ffffffffffffffff811115611bfc57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611c26576020820181803683370190505b509050845b8015611d31578215611ccb57611c42600184613754565b9250611c4f600182613754565b9050611c5c600a8861381e565b611c67906030613709565b60f81b828281518110611c8a57634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611cc4600a88613721565b9650611c2b565b611cd6600182613754565b9050600360fc1b828281518110611cfd57634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611c2b565b5095945050505050565b600082815260096020526040902054606090611e1f5760008381526009602052604081208054909190611d7e57634e487b7160e01b600052603260045260246000fd5b90600052602060002090600302016002018054611d9a9061379b565b80601f0160208091040260200160405190810160405280929190818152602001828054611dc69061379b565b8015611e135780601f10611de857610100808354040283529160200191611e13565b820191906000526020600020905b815481529060010190602001808311611df657829003601f168201915b50505050509050610787565b60005b600084815260096020526040902054811015611f56576000611e44858361288e565b8051909150611e54856001613709565b118015611e6f57506020810151611e6c906001613709565b84105b15611f45576000858152600960205260409020805483908110611ea257634e487b7160e01b600052603260045260246000fd5b90600052602060002090600302016002018054611ebe9061379b565b80601f0160208091040260200160405190810160405280929190818152602001828054611eea9061379b565b8015611f375780601f10611f0c57610100808354040283529160200191611f37565b820191906000526020600020905b815481529060010190602001808311611f1a57829003601f168201915b505050505092505050610787565b50611f4f81613803565b9050611e22565b505060408051602081019091526000815292915050565b6003546001600160a01b031633146114335760405162461bcd60e51b815260206004820152601060248201527f63616c6c6572206e6f74206f776e657200000000000000000000000000000000604482015260640161075b565b6001600160a01b0384166120435760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f7300000000000000000000000000000000000000000000000000000000000000606482015260840161075b565b3361206381600087612054886129a7565b61205d886129a7565b87612a00565b6000848152602081815260408083206001600160a01b038916845290915281208054859290612093908490613709565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610cec81600087878787612b44565b815183511461216a5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d61746368000000000000000000000000000000000000000000000000606482015260840161075b565b6001600160a01b0384166121ce5760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b606482015260840161075b565b336121dd818787878787612a00565b60005b845181101561232257600085828151811061220b57634e487b7160e01b600052603260045260246000fd5b60200260200101519050600085838151811061223757634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156122ca5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b606482015260840161075b565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290612307908490613709565b925050819055505050508061231b90613803565b90506121e0565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516123729291906136a4565b60405180910390a4611766818787878787612cf9565b6000826123958584612e04565b14949350505050565b816001600160a01b0316836001600160a01b031614156124265760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c660000000000000000000000000000000000000000000000606482015260840161075b565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6000838152600960205260409020541561268b576000838152600960205260408120546124c290600190613754565b600085815260096020526040812080549293509091839081106124f557634e487b7160e01b600052603260045260246000fd5b906000526020600020906003020160405180606001604052908160008201548152602001600182015481526020016002820180546125329061379b565b80601f016020809104026020016040519081016040528092919081815260200182805461255e9061379b565b80156125ab5780601f10612580576101008083540402835291602001916125ab565b820191906000526020600020905b81548152906001019060200180831161258e57829003601f168201915b505050505081525050905080602001518460016125c89190613709565b111561263e57600085815260096020908152604080832081516060810183528584015181528084018981529281018881528254600181810185559387529585902082516003909702019586559251918501919091559051805191939261263692600285019290910190612e7e565b505050610cec565b600085815260096020526040902080548591908490811061266f57634e487b7160e01b600052603260045260246000fd5b9060005260206000209060030201600101819055505050505050565b600083815260096020908152604080832081516060810183528781528084018781529281018681528254600181810185559387529585902082516003909702019586559251918501919091559051805191939261176692600285019290910190612e7e565b6001600160a01b0384166127545760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b606482015260840161075b565b33612764818787612054886129a7565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156127e85760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b606482015260840161075b565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290612825908490613709565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612885828888888888612b44565b50505050505050565b6128b260405180606001604052806000815260200160008152602001606081525090565b60008381526009602052604090208054839081106128e057634e487b7160e01b600052603260045260246000fd5b9060005260206000209060030201604051806060016040529081600082015481526020016001820154815260200160028201805461291d9061379b565b80601f01602080910402602001604051908101604052809291908181526020018280546129499061379b565b80156129965780601f1061296b57610100808354040283529160200191612996565b820191906000526020600020905b81548152906001019060200180831161297957829003601f168201915b505050505081525050905092915050565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106129ef57634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b038516612aa35760005b8351811015612aa157828181518110612a3a57634e487b7160e01b600052603260045260246000fd5b602002602001015160076000868481518110612a6657634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000828254612a8b9190613709565b90915550612a9a905081613803565b9050612a11565b505b6001600160a01b0384166117665760005b835181101561288557828181518110612add57634e487b7160e01b600052603260045260246000fd5b602002602001015160076000868481518110612b0957634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000828254612b2e9190613754565b90915550612b3d905081613803565b9050612ab4565b6001600160a01b0384163b156117665760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190612b88908990899088908890889060040161364e565b602060405180830381600087803b158015612ba257600080fd5b505af1925050508015612bd2575060408051601f3d908101601f19168201909252612bcf9181019061330a565b60015b612c8857612bde613874565b806308c379a01415612c185750612bf361388c565b80612bfe5750612c1a565b8060405162461bcd60e51b815260040161075b91906136d2565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e746572000000000000000000000000606482015260840161075b565b6001600160e01b0319811663f23a6e6160e01b146128855760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b606482015260840161075b565b6001600160a01b0384163b156117665760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612d3d90899089908890889088906004016135f0565b602060405180830381600087803b158015612d5757600080fd5b505af1925050508015612d87575060408051601f3d908101601f19168201909252612d849181019061330a565b60015b612d9357612bde613874565b6001600160e01b0319811663bc197c8160e01b146128855760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b606482015260840161075b565b600081815b8451811015610e61576000858281518110612e3457634e487b7160e01b600052603260045260246000fd5b60200260200101519050808311612e5a5760008381526020829052604090209250612e6b565b600081815260208490526040902092505b5080612e7681613803565b915050612e09565b828054612e8a9061379b565b90600052602060002090601f016020900481019282612eac5760008555612ef2565b82601f10612ec557805160ff1916838001178555612ef2565b82800160010185558215612ef2579182015b82811115612ef2578251825591602001919060010190612ed7565b50612efe929150612f02565b5090565b5b80821115612efe5760008155600101612f03565b600067ffffffffffffffff831115612f3157612f3161385e565b604051612f48601f8501601f1916602001826137d6565b809150838152848484011115612f5d57600080fd5b83836020830137600060208583010152509392505050565b600082601f830112612f85578081fd5b81356020612f92826136e5565b604051612f9f82826137d6565b8381528281019150858301600585901b87018401881015612fbe578586fd5b855b85811015612fe5578135612fd381613916565b84529284019290840190600101612fc0565b5090979650505050505050565b600082601f830112613002578081fd5b8135602061300f826136e5565b60405161301c82826137d6565b8381528281019150858301600585901b8701840188101561303b578586fd5b855b85811015612fe55781358452928401929084019060010161303d565b8035801515811461306957600080fd5b919050565b600082601f83011261307e578081fd5b61308d83833560208501612f17565b9392505050565b6000602082840312156130a5578081fd5b813561308d81613916565b600080604083850312156130c2578081fd5b82356130cd81613916565b915060208301356130dd81613916565b809150509250929050565b600080600080600060a086880312156130ff578081fd5b853561310a81613916565b9450602086013561311a81613916565b9350604086013567ffffffffffffffff80821115613136578283fd5b61314289838a01612ff2565b94506060880135915080821115613157578283fd5b61316389838a01612ff2565b93506080880135915080821115613178578283fd5b506131858882890161306e565b9150509295509295909350565b600080600080600060a086880312156131a9578081fd5b85356131b481613916565b945060208601356131c481613916565b93506040860135925060608601359150608086013567ffffffffffffffff8111156131ed578182fd5b6131858882890161306e565b6000806040838503121561320b578182fd5b823561321681613916565b915061322460208401613059565b90509250929050565b6000806040838503121561323f578182fd5b823561324a81613916565b946020939093013593505050565b6000806040838503121561326a578081fd5b823567ffffffffffffffff80821115613281578283fd5b61328d86838701612f75565b935060208501359150808211156132a2578283fd5b506132af85828601612ff2565b9150509250929050565b600080604083850312156132cb578182fd5b823567ffffffffffffffff808211156132e2578384fd5b61328d86838701612ff2565b6000602082840312156132ff578081fd5b813561308d8161392e565b60006020828403121561331b578081fd5b815161308d8161392e565b600060208284031215613337578081fd5b5035919050565b60008060408385031215613350578182fd5b82359150602083013567ffffffffffffffff81111561336d578182fd5b6132af85828601612f75565b6000806040838503121561338b578182fd5b50508035926020909101359150565b6000806000606084860312156133ae578081fd5b83359250602084013567ffffffffffffffff8111156133cb578182fd5b8401601f810186136133db578182fd5b6133ea86823560208401612f17565b925050604084013590509250925092565b60008060006060848603121561340f578081fd5b833592506020840135915061342660408501613059565b90509250925092565b600080600060608486031215613443578081fd5b505081359360208301359350604090920135919050565b60008060008060008060a08789031215613472578384fd5b863595506020870135945060408701359350606087013561349281613916565b9250608087013567ffffffffffffffff808211156134ae578283fd5b818901915089601f8301126134c1578283fd5b8135818111156134cf578384fd5b8a60208260051b85010111156134e3578384fd5b6020830194508093505050509295509295509295565b600080600080600060a08688031215613510578283fd5b505083359560208501359550604085013594606081013594506080013592509050565b6000815180845260208085019450808401835b8381101561356257815187529582019590820190600101613546565b509495945050505050565b6000815180845261358581602086016020860161376b565b601f01601f19169290920160200192915050565b600083516135ab81846020880161376b565b8351908301906135bf81836020880161376b565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b60006001600160a01b03808816835280871660208401525060a0604083015261361c60a0830186613533565b828103606084015261362e8186613533565b90508281036080840152613642818561356d565b98975050505050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a0608083015261368660a083018461356d565b979650505050505050565b60208152600061308d6020830184613533565b6040815260006136b76040830185613533565b82810360208401526136c98185613533565b95945050505050565b60208152600061308d602083018461356d565b600067ffffffffffffffff8211156136ff576136ff61385e565b5060051b60200190565b6000821982111561371c5761371c613832565b500190565b60008261373057613730613848565b500490565b600081600019048311821515161561374f5761374f613832565b500290565b60008282101561376657613766613832565b500390565b60005b8381101561378657818101518382015260200161376e565b83811115613795576000848401525b50505050565b600181811c908216806137af57607f821691505b602082108114156137d057634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f1916810167ffffffffffffffff811182821017156137fc576137fc61385e565b6040525050565b600060001982141561381757613817613832565b5060010190565b60008261382d5761382d613848565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d111561388957600481823e5160e01c5b90565b600060443d101561389a5790565b6040516003193d81016004833e81513d67ffffffffffffffff81602484011181841117156138ca57505050505090565b82850191508151818111156138e25750505050505090565b843d87010160208285010111156138fc5750505050505090565b61390b602082860101876137d6565b509095945050505050565b6001600160a01b038116811461392b57600080fd5b50565b6001600160e01b03198116811461392b57600080fdfea2646970667358221220acaa75109158f202592ce248a321ad2328e2a4476aac17391c564a2a3c95694c64736f6c63430008040033d479f354c1800228ba5325c4af0e0911ff3cc35c11a4438c66ead78b4ce322170000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000005468747470733a2f2f656e63616e746f732e6d7970696e6174612e636c6f75642f697066732f516d655a48374363756b696a47756a785976325938334b727850434e47654e764266744e794868725532667731652f000000000000000000000000
Deployed Bytecode
0x6080604052600436106101fe5760003560e01c80638ce44db91161010e578063d4ddce8a116100a7578063f242432a11610079578063f2fde38b11610061578063f2fde38b14610681578063f4e3204a146106a1578063f560aa57146106c157005b8063f242432a14610641578063f2c6ea031461066157005b8063d4ddce8a14610598578063d70763c3146105c5578063e026613b146105d8578063e985e9c5146105f857005b8063bd85b039116100e0578063bd85b0391461052a578063c12758d514610557578063cf30901214610577578063d0e30db01461020557005b80638ce44db91461046a5780638da5cb5b1461049757806393cdf05a146104cf578063a22cb4651461050a57005b80632b56908d116101985780634e1273f41161016a5780635029b899116101525780635029b8991461042457806351cff8d91461044457806367d06ac91461045757005b80634e1273f4146103d75780634f558e791461040457005b80632b56908d146103325780632eb2c2d61461035257806337de46db146103725780634a57b93b1461039f57005b80631a695230116101d15780631a695230146102aa5780631acf59c0146102bd5780631b2ef1ca146102ff578063204bc6351461031257005b8062fdd58e1461020757806301ffc9a71461023a5780630e89341c1461026a57806312065fe01461029757005b3661020557005b005b34801561021357600080fd5b5061022761022236600461322d565b6106e1565b6040519081526020015b60405180910390f35b34801561024657600080fd5b5061025a6102553660046132ee565b61078d565b6040519015158152602001610231565b34801561027657600080fd5b5061028a610285366004613326565b610798565b60405161023191906136d2565b3480156102a357600080fd5b5047610227565b6102056102b8366004613094565b6107f0565b3480156102c957600080fd5b506102dd6102d8366004613379565b610907565b6040805182518152602080840151908201529181015190820152606001610231565b61020561030d366004613379565b61096a565b34801561031e57600080fd5b5061020561032d36600461342f565b610bdf565b34801561033e57600080fd5b5061020561034d3660046134f9565b610c03565b34801561035e57600080fd5b5061020561036d3660046130e8565b610c51565b34801561037e57600080fd5b5061022761038d366004613326565b60009081526006602052604090205490565b3480156103ab57600080fd5b506102276103ba366004613379565b6000918252600c6020908152604080842092845291905290205490565b3480156103e357600080fd5b506103f76103f2366004613258565b610cf3565b6040516102319190613691565b34801561041057600080fd5b5061025a61041f366004613326565b610e69565b34801561043057600080fd5b5061020561043f3660046133fb565b610ed2565b610205610452366004613094565b610f04565b61020561046536600461345a565b61101e565b34801561047657600080fd5b50610227610485366004613326565b60086020526000908152604090205481565b3480156104a357600080fd5b506003546104b7906001600160a01b031681565b6040516001600160a01b039091168152602001610231565b3480156104db57600080fd5b5061025a6104ea366004613379565b6000918252600b6020908152604080842092845291905290205460ff1690565b34801561051657600080fd5b506102056105253660046131f9565b61140c565b34801561053657600080fd5b50610227610545366004613326565b60009081526007602052604090205490565b34801561056357600080fd5b5061020561057236600461339a565b61141b565b34801561058357600080fd5b5060035461025a90600160a01b900460ff1681565b3480156105a457600080fd5b506102276105b3366004613326565b60009081526005602052604090205490565b6102056105d336600461333e565b611435565b3480156105e457600080fd5b506102056105f3366004613379565b61176e565b34801561060457600080fd5b5061025a6106133660046130b0565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b34801561064d57600080fd5b5061020561065c366004613192565b611788565b34801561066d57600080fd5b5061020561067c3660046132b9565b611823565b34801561068d57600080fd5b5061020561069c366004613094565b6118ff565b3480156106ad57600080fd5b506102276106bc366004613326565b611999565b3480156106cd57600080fd5b506102056106dc3660046132b9565b611a0d565b60006001600160a01b0383166107645760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201527f65726f206164647265737300000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b600061078782611ae9565b606060006107a583611999565b905060006107b4846040611b84565b905060006107c28386611d3b565b905080826040516020016107d7929190613599565b6040516020818303038152906040529350505050919050565b6107f8611f6d565b600354600160a01b900460ff16156108425760405162461bcd60e51b815260206004820152600d60248201526c4e6f207265656e7472616e637960981b604482015260640161075b565b6003805460ff60a01b1916600160a01b1790556040516000906001600160a01b0383169034908381818185875af1925050503d80600081146108a0576040519150601f19603f3d011682016040523d82523d6000602084013e6108a5565b606091505b50509050806108f65760405162461bcd60e51b815260206004820152601460248201527f4661696c656420746f2073656e64204574686572000000000000000000000000604482015260640161075b565b50506003805460ff60a01b19169055565b61092b60405180606001604052806000815260200160008152602001600081525090565b506000918252600d6020908152604080842092845291815291819020815160608101835281548152600182015493810193909352600201549082015290565b600081116109ba5760405162461bcd60e51b815260206004820152601360248201527f6e6f20746f6b656e732072657175657374656400000000000000000000000000604482015260640161075b565b6000828152600b6020908152604080832083805290915290205460ff161515600114610a285760405162461bcd60e51b815260206004820152601560248201527f6d696e742067726f7570206e6f74206163746976650000000000000000000000604482015260640161075b565b6000828152600c60209081526040808320838052909152902054610a4d906001613709565b8110610a9b5760405162461bcd60e51b815260206004820152601760248201527f746f206d616e79206d696e747320726571756573746564000000000000000000604482015260640161075b565b600082815260056020526040902054610ab5908290613735565b341015610b045760405162461bcd60e51b815260206004820152601a60248201527f696e73756666696369656e742066756e647320746f206d696e74000000000000604482015260640161075b565b6000828152600760205260409020545b600083815260076020526040902054610b2e908390613709565b811015610bb7576000610b418285613709565b610b4c906001613709565b9050610b6a3382600160405180602001604052806000815250611fc7565b604080518082018252858152600160208083018281526000958652600a909152929093209051815590519101805460ff191691151591909117905580610baf81613803565b915050610b14565b5060008281526007602052604081208054839290610bd6908490613709565b90915550505050565b610be7611f6d565b6000928352600c60209081526040808520938552929052912055565b610c0b611f6d565b6040805160608101825293845260208085019384528482019283526000968752600d81528187209587529490945292909320905181559151600183015551600290910155565b6001600160a01b038516331480610c6d5750610c6d8533610613565b610cdf5760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f742060448201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000606482015260840161075b565b610cec85858585856120f3565b5050505050565b60608151835114610d6c5760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e67746860448201527f206d69736d617463680000000000000000000000000000000000000000000000606482015260840161075b565b6000835167ffffffffffffffff811115610d9657634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610dbf578160200160208202803683370190505b50905060005b8451811015610e6157610e26858281518110610df157634e487b7160e01b600052603260045260246000fd5b6020026020010151858381518110610e1957634e487b7160e01b600052603260045260246000fd5b60200260200101516106e1565b828281518110610e4657634e487b7160e01b600052603260045260246000fd5b6020908102919091010152610e5a81613803565b9050610dc5565b509392505050565b6000818152600a602052604081206001015460ff16610eca5760405162461bcd60e51b815260206004820152601160248201527f696420646f6573206e6f74206578697374000000000000000000000000000000604482015260640161075b565b506001919050565b610eda611f6d565b6000928352600b602090815260408085209385529290529120805460ff1916911515919091179055565b610f0c611f6d565b600354600160a01b900460ff1615610f565760405162461bcd60e51b815260206004820152600d60248201526c4e6f207265656e7472616e637960981b604482015260640161075b565b6003805460ff60a01b1916600160a01b17905560405147906000906001600160a01b0384169083908381818185875af1925050503d8060008114610fb6576040519150601f19603f3d011682016040523d82523d6000602084013e610fbb565b606091505b505090508061100c5760405162461bcd60e51b815260206004820152601460248201527f4661696c656420746f2073656e64204574686572000000000000000000000000604482015260640161075b565b50506003805460ff60a01b1916905550565b6040516bffffffffffffffffffffffff19606085901b16602082015260348101869052605481018790526000906074016040516020818303038152906040528051906020012090506110b183838080602002602001604051908101604052809392919081815260200183836020028082843760009201829052508c81526008602052604090205492508591506123889050565b6110fd5760405162461bcd60e51b815260206004820152600b60248201527f6e6f74206f6e206c697374000000000000000000000000000000000000000000604482015260640161075b565b6000851161114d5760405162461bcd60e51b815260206004820152601360248201527f6e6f20746f6b656e732072657175657374656400000000000000000000000000604482015260640161075b565b6000878152600b6020908152604080832089845290915290205460ff1615156001146111bb5760405162461bcd60e51b815260206004820152601560248201527f6d696e742067726f7570206e6f74206163746976650000000000000000000000604482015260640161075b565b6000878152600d60209081526040808320898452909152902060010154851415611250576000878152600d6020908152604080832089845290915290206002015434101561124b5760405162461bcd60e51b815260206004820152601960248201527f696e73756666696369656e742066756e6420746f206d696e7400000000000000604482015260640161075b565b6112b9565b6000878152600d602090815260408083208984529091529020543410156112b95760405162461bcd60e51b815260206004820152601a60248201527f696e73756666696369656e742066756e647320746f206d696e74000000000000604482015260640161075b565b6000878152600c602090815260408083208984529091529020546112de906001613709565b851061132c5760405162461bcd60e51b815260206004820152601760248201527f746f206d616e79206d696e747320726571756573746564000000000000000000604482015260640161075b565b6000878152600760205260409020545b600088815260076020526040902054611356908790613709565b8110156113df576000611369828a613709565b611374906001613709565b90506113923382600160405180602001604052806000815250611fc7565b6040805180820182528a8152600160208083018281526000958652600a909152929093209051815590519101805460ff1916911515919091179055806113d781613803565b91505061133c565b50600087815260076020526040812080548792906113fe908490613709565b909155505050505050505050565b61141733838361239e565b5050565b611423611f6d565b61142e838284612493565b505050565b565b61143d611f6d565b6000815167ffffffffffffffff81111561146757634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611490578160200160208202803683370190505b5090506000825167ffffffffffffffff8111156114bd57634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156114e6578160200160208202803683370190505b50600085815260076020526040812054919250905b84516000878152600760205260409020546115169190613709565b8110156116085760006115298288613709565b611534906001613709565b90506115523382600160405180602001604052806000815250611fc7565b604080518082018252888152600160208083018281526000868152600a9092529390209151825591519101805460ff1916911515919091179055845181908690859081106115b057634e487b7160e01b600052603260045260246000fd5b60200260200101818152505060018484815181106115de57634e487b7160e01b600052603260045260246000fd5b6020908102919091010152826115f381613803565b935050508061160190613803565b90506114fb565b50835160008681526007602052604081208054909190611629908490613709565b90915550600090505b84518110156117665760006001600160a01b031685828151811061166657634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b031614156116c55760405162461bcd60e51b815260206004820152601560248201527f696e76616c6964206164647265737320696e7075740000000000000000000000604482015260640161075b565b611756338683815181106116e957634e487b7160e01b600052603260045260246000fd5b602002602001015186848151811061171157634e487b7160e01b600052603260045260246000fd5b602002602001015186858151811061173957634e487b7160e01b600052603260045260246000fd5b602002602001015160405180602001604052806000815250611788565b61175f81613803565b9050611632565b505050505050565b611776611f6d565b60009182526008602052604090912055565b6001600160a01b0385163314806117a457506117a48533610613565b6118165760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260448201527f20617070726f7665640000000000000000000000000000000000000000000000606482015260840161075b565b610cec85858585856126f0565b61182b611f6d565b805182511461187c5760405162461bcd60e51b815260206004820152601360248201527f6c656e6774687320646f6e2774206d6174636800000000000000000000000000604482015260640161075b565b60005b825181101561142e578181815181106118a857634e487b7160e01b600052603260045260246000fd5b6020026020010151600660008584815181106118d457634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002081905550806118f890613803565b905061187f565b611907611f6d565b806001600160a01b03811661195e5760405162461bcd60e51b815260206004820152601160248201527f4e6f742076616c69642061646472657373000000000000000000000000000000604482015260640161075b565b50600380547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6000818152600a602052604081206001015460ff166119fa5760405162461bcd60e51b815260206004820152601160248201527f696420646f6573206e6f74206578697374000000000000000000000000000000604482015260640161075b565b506000908152600a602052604090205490565b611a15611f6d565b8051825114611a665760405162461bcd60e51b815260206004820152601360248201527f6c656e6774687320646f6e2774206d6174636800000000000000000000000000604482015260640161075b565b60005b825181101561142e57818181518110611a9257634e487b7160e01b600052603260045260246000fd5b602002602001015160056000858481518110611abe57634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000208190555080611ae290613803565b9050611a69565b60006001600160e01b031982167fd9b67a26000000000000000000000000000000000000000000000000000000001480611b4c57506001600160e01b031982167f0e89341c00000000000000000000000000000000000000000000000000000000145b8061078757507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614610787565b606082611ba957506040805180820190915260018152600360fc1b6020820152610787565b8260005b8115611bd35780611bbd81613803565b9150611bcc9050600a83613721565b9150611bad565b60008467ffffffffffffffff811115611bfc57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015611c26576020820181803683370190505b509050845b8015611d31578215611ccb57611c42600184613754565b9250611c4f600182613754565b9050611c5c600a8861381e565b611c67906030613709565b60f81b828281518110611c8a57634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611cc4600a88613721565b9650611c2b565b611cd6600182613754565b9050600360fc1b828281518110611cfd57634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350611c2b565b5095945050505050565b600082815260096020526040902054606090611e1f5760008381526009602052604081208054909190611d7e57634e487b7160e01b600052603260045260246000fd5b90600052602060002090600302016002018054611d9a9061379b565b80601f0160208091040260200160405190810160405280929190818152602001828054611dc69061379b565b8015611e135780601f10611de857610100808354040283529160200191611e13565b820191906000526020600020905b815481529060010190602001808311611df657829003601f168201915b50505050509050610787565b60005b600084815260096020526040902054811015611f56576000611e44858361288e565b8051909150611e54856001613709565b118015611e6f57506020810151611e6c906001613709565b84105b15611f45576000858152600960205260409020805483908110611ea257634e487b7160e01b600052603260045260246000fd5b90600052602060002090600302016002018054611ebe9061379b565b80601f0160208091040260200160405190810160405280929190818152602001828054611eea9061379b565b8015611f375780601f10611f0c57610100808354040283529160200191611f37565b820191906000526020600020905b815481529060010190602001808311611f1a57829003601f168201915b505050505092505050610787565b50611f4f81613803565b9050611e22565b505060408051602081019091526000815292915050565b6003546001600160a01b031633146114335760405162461bcd60e51b815260206004820152601060248201527f63616c6c6572206e6f74206f776e657200000000000000000000000000000000604482015260640161075b565b6001600160a01b0384166120435760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f2061646472657360448201527f7300000000000000000000000000000000000000000000000000000000000000606482015260840161075b565b3361206381600087612054886129a7565b61205d886129a7565b87612a00565b6000848152602081815260408083206001600160a01b038916845290915281208054859290612093908490613709565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610cec81600087878787612b44565b815183511461216a5760405162461bcd60e51b815260206004820152602860248201527f455243313135353a2069647320616e6420616d6f756e7473206c656e6774682060448201527f6d69736d61746368000000000000000000000000000000000000000000000000606482015260840161075b565b6001600160a01b0384166121ce5760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b606482015260840161075b565b336121dd818787878787612a00565b60005b845181101561232257600085828151811061220b57634e487b7160e01b600052603260045260246000fd5b60200260200101519050600085838151811061223757634e487b7160e01b600052603260045260246000fd5b602090810291909101810151600084815280835260408082206001600160a01b038e1683529093529190912054909150818110156122ca5760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b606482015260840161075b565b6000838152602081815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290612307908490613709565b925050819055505050508061231b90613803565b90506121e0565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb87876040516123729291906136a4565b60405180910390a4611766818787878787612cf9565b6000826123958584612e04565b14949350505050565b816001600160a01b0316836001600160a01b031614156124265760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c2073746174757360448201527f20666f722073656c660000000000000000000000000000000000000000000000606482015260840161075b565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6000838152600960205260409020541561268b576000838152600960205260408120546124c290600190613754565b600085815260096020526040812080549293509091839081106124f557634e487b7160e01b600052603260045260246000fd5b906000526020600020906003020160405180606001604052908160008201548152602001600182015481526020016002820180546125329061379b565b80601f016020809104026020016040519081016040528092919081815260200182805461255e9061379b565b80156125ab5780601f10612580576101008083540402835291602001916125ab565b820191906000526020600020905b81548152906001019060200180831161258e57829003601f168201915b505050505081525050905080602001518460016125c89190613709565b111561263e57600085815260096020908152604080832081516060810183528584015181528084018981529281018881528254600181810185559387529585902082516003909702019586559251918501919091559051805191939261263692600285019290910190612e7e565b505050610cec565b600085815260096020526040902080548591908490811061266f57634e487b7160e01b600052603260045260246000fd5b9060005260206000209060030201600101819055505050505050565b600083815260096020908152604080832081516060810183528781528084018781529281018681528254600181810185559387529585902082516003909702019586559251918501919091559051805191939261176692600285019290910190612e7e565b6001600160a01b0384166127545760405162461bcd60e51b815260206004820152602560248201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604482015264647265737360d81b606482015260840161075b565b33612764818787612054886129a7565b6000848152602081815260408083206001600160a01b038a168452909152902054838110156127e85760405162461bcd60e51b815260206004820152602a60248201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60448201526939103a3930b739b332b960b11b606482015260840161075b565b6000858152602081815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290612825908490613709565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4612885828888888888612b44565b50505050505050565b6128b260405180606001604052806000815260200160008152602001606081525090565b60008381526009602052604090208054839081106128e057634e487b7160e01b600052603260045260246000fd5b9060005260206000209060030201604051806060016040529081600082015481526020016001820154815260200160028201805461291d9061379b565b80601f01602080910402602001604051908101604052809291908181526020018280546129499061379b565b80156129965780601f1061296b57610100808354040283529160200191612996565b820191906000526020600020905b81548152906001019060200180831161297957829003601f168201915b505050505081525050905092915050565b604080516001808252818301909252606091600091906020808301908036833701905050905082816000815181106129ef57634e487b7160e01b600052603260045260246000fd5b602090810291909101015292915050565b6001600160a01b038516612aa35760005b8351811015612aa157828181518110612a3a57634e487b7160e01b600052603260045260246000fd5b602002602001015160076000868481518110612a6657634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000828254612a8b9190613709565b90915550612a9a905081613803565b9050612a11565b505b6001600160a01b0384166117665760005b835181101561288557828181518110612add57634e487b7160e01b600052603260045260246000fd5b602002602001015160076000868481518110612b0957634e487b7160e01b600052603260045260246000fd5b602002602001015181526020019081526020016000206000828254612b2e9190613754565b90915550612b3d905081613803565b9050612ab4565b6001600160a01b0384163b156117665760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190612b88908990899088908890889060040161364e565b602060405180830381600087803b158015612ba257600080fd5b505af1925050508015612bd2575060408051601f3d908101601f19168201909252612bcf9181019061330a565b60015b612c8857612bde613874565b806308c379a01415612c185750612bf361388c565b80612bfe5750612c1a565b8060405162461bcd60e51b815260040161075b91906136d2565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e204552433131353560448201527f526563656976657220696d706c656d656e746572000000000000000000000000606482015260840161075b565b6001600160e01b0319811663f23a6e6160e01b146128855760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b606482015260840161075b565b6001600160a01b0384163b156117665760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190612d3d90899089908890889088906004016135f0565b602060405180830381600087803b158015612d5757600080fd5b505af1925050508015612d87575060408051601f3d908101601f19168201909252612d849181019061330a565b60015b612d9357612bde613874565b6001600160e01b0319811663bc197c8160e01b146128855760405162461bcd60e51b815260206004820152602860248201527f455243313135353a204552433131353552656365697665722072656a656374656044820152676420746f6b656e7360c01b606482015260840161075b565b600081815b8451811015610e61576000858281518110612e3457634e487b7160e01b600052603260045260246000fd5b60200260200101519050808311612e5a5760008381526020829052604090209250612e6b565b600081815260208490526040902092505b5080612e7681613803565b915050612e09565b828054612e8a9061379b565b90600052602060002090601f016020900481019282612eac5760008555612ef2565b82601f10612ec557805160ff1916838001178555612ef2565b82800160010185558215612ef2579182015b82811115612ef2578251825591602001919060010190612ed7565b50612efe929150612f02565b5090565b5b80821115612efe5760008155600101612f03565b600067ffffffffffffffff831115612f3157612f3161385e565b604051612f48601f8501601f1916602001826137d6565b809150838152848484011115612f5d57600080fd5b83836020830137600060208583010152509392505050565b600082601f830112612f85578081fd5b81356020612f92826136e5565b604051612f9f82826137d6565b8381528281019150858301600585901b87018401881015612fbe578586fd5b855b85811015612fe5578135612fd381613916565b84529284019290840190600101612fc0565b5090979650505050505050565b600082601f830112613002578081fd5b8135602061300f826136e5565b60405161301c82826137d6565b8381528281019150858301600585901b8701840188101561303b578586fd5b855b85811015612fe55781358452928401929084019060010161303d565b8035801515811461306957600080fd5b919050565b600082601f83011261307e578081fd5b61308d83833560208501612f17565b9392505050565b6000602082840312156130a5578081fd5b813561308d81613916565b600080604083850312156130c2578081fd5b82356130cd81613916565b915060208301356130dd81613916565b809150509250929050565b600080600080600060a086880312156130ff578081fd5b853561310a81613916565b9450602086013561311a81613916565b9350604086013567ffffffffffffffff80821115613136578283fd5b61314289838a01612ff2565b94506060880135915080821115613157578283fd5b61316389838a01612ff2565b93506080880135915080821115613178578283fd5b506131858882890161306e565b9150509295509295909350565b600080600080600060a086880312156131a9578081fd5b85356131b481613916565b945060208601356131c481613916565b93506040860135925060608601359150608086013567ffffffffffffffff8111156131ed578182fd5b6131858882890161306e565b6000806040838503121561320b578182fd5b823561321681613916565b915061322460208401613059565b90509250929050565b6000806040838503121561323f578182fd5b823561324a81613916565b946020939093013593505050565b6000806040838503121561326a578081fd5b823567ffffffffffffffff80821115613281578283fd5b61328d86838701612f75565b935060208501359150808211156132a2578283fd5b506132af85828601612ff2565b9150509250929050565b600080604083850312156132cb578182fd5b823567ffffffffffffffff808211156132e2578384fd5b61328d86838701612ff2565b6000602082840312156132ff578081fd5b813561308d8161392e565b60006020828403121561331b578081fd5b815161308d8161392e565b600060208284031215613337578081fd5b5035919050565b60008060408385031215613350578182fd5b82359150602083013567ffffffffffffffff81111561336d578182fd5b6132af85828601612f75565b6000806040838503121561338b578182fd5b50508035926020909101359150565b6000806000606084860312156133ae578081fd5b83359250602084013567ffffffffffffffff8111156133cb578182fd5b8401601f810186136133db578182fd5b6133ea86823560208401612f17565b925050604084013590509250925092565b60008060006060848603121561340f578081fd5b833592506020840135915061342660408501613059565b90509250925092565b600080600060608486031215613443578081fd5b505081359360208301359350604090920135919050565b60008060008060008060a08789031215613472578384fd5b863595506020870135945060408701359350606087013561349281613916565b9250608087013567ffffffffffffffff808211156134ae578283fd5b818901915089601f8301126134c1578283fd5b8135818111156134cf578384fd5b8a60208260051b85010111156134e3578384fd5b6020830194508093505050509295509295509295565b600080600080600060a08688031215613510578283fd5b505083359560208501359550604085013594606081013594506080013592509050565b6000815180845260208085019450808401835b8381101561356257815187529582019590820190600101613546565b509495945050505050565b6000815180845261358581602086016020860161376b565b601f01601f19169290920160200192915050565b600083516135ab81846020880161376b565b8351908301906135bf81836020880161376b565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b60006001600160a01b03808816835280871660208401525060a0604083015261361c60a0830186613533565b828103606084015261362e8186613533565b90508281036080840152613642818561356d565b98975050505050505050565b60006001600160a01b03808816835280871660208401525084604083015283606083015260a0608083015261368660a083018461356d565b979650505050505050565b60208152600061308d6020830184613533565b6040815260006136b76040830185613533565b82810360208401526136c98185613533565b95945050505050565b60208152600061308d602083018461356d565b600067ffffffffffffffff8211156136ff576136ff61385e565b5060051b60200190565b6000821982111561371c5761371c613832565b500190565b60008261373057613730613848565b500490565b600081600019048311821515161561374f5761374f613832565b500290565b60008282101561376657613766613832565b500390565b60005b8381101561378657818101518382015260200161376e565b83811115613795576000848401525b50505050565b600181811c908216806137af57607f821691505b602082108114156137d057634e487b7160e01b600052602260045260246000fd5b50919050565b601f8201601f1916810167ffffffffffffffff811182821017156137fc576137fc61385e565b6040525050565b600060001982141561381757613817613832565b5060010190565b60008261382d5761382d613848565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b600060033d111561388957600481823e5160e01c5b90565b600060443d101561389a5790565b6040516003193d81016004833e81513d67ffffffffffffffff81602484011181841117156138ca57505050505090565b82850191508151818111156138e25750505050505090565b843d87010160208285010111156138fc5750505050505090565b61390b602082860101876137d6565b509095945050505050565b6001600160a01b038116811461392b57600080fd5b50565b6001600160e01b03198116811461392b57600080fdfea2646970667358221220acaa75109158f202592ce248a321ad2328e2a4476aac17391c564a2a3c95694c64736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
d479f354c1800228ba5325c4af0e0911ff3cc35c11a4438c66ead78b4ce322170000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000005468747470733a2f2f656e63616e746f732e6d7970696e6174612e636c6f75642f697066732f516d655a48374363756b696a47756a785976325938334b727850434e47654e764266744e794868725532667731652f000000000000000000000000
-----Decoded View---------------
Arg [0] : root (bytes32): 0xd479f354c1800228ba5325c4af0e0911ff3cc35c11a4438c66ead78b4ce32217
Arg [1] : _url (string): https://encantos.mypinata.cloud/ipfs/QmeZH7CcukijGujxYv2Y83KrxPCNGeNvBftNyHhrU2fw1e/
-----Encoded View---------------
6 Constructor Arguments found :
Arg [0] : d479f354c1800228ba5325c4af0e0911ff3cc35c11a4438c66ead78b4ce32217
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000054
Arg [3] : 68747470733a2f2f656e63616e746f732e6d7970696e6174612e636c6f75642f
Arg [4] : 697066732f516d655a48374363756b696a47756a785976325938334b72785043
Arg [5] : 4e47654e764266744e794868725532667731652f000000000000000000000000
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.