Feature Tip: Add private address tag to any address under My Name Tag !
ERC-1155
Overview
Max Total Supply
706 MASK
Holders
201
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:
TheCryptomasksCustom
Compiler Version
v0.8.22+commit.4fc1097e
Contract Source Code (Solidity Multiple files format)
// SPDX-License-Identifier: MIT // The Cryptomasks Custom // author: sadat.eth pragma solidity ^0.8.22; import "ERC1155.sol"; import "ERC2981.sol"; import "ReentrancyGuard.sol"; import "MerkleProof.sol"; import "Ownable.sol"; import "OperatorFilterer.sol"; contract TheCryptomasksCustom is ERC1155, ERC2981, ReentrancyGuard, Ownable, OperatorFilterer { string public name = "The Cryptomasks Custom"; string public symbol = "MASK"; struct Drop { uint256 tokenId; uint256 price; uint256 supply; uint256 starts; uint256 ends; uint256 minted; string uri; bytes32 allowlist; } mapping(uint256 => Drop) public drops; mapping(address => mapping(uint256 => uint256)) public myMints; bool public operatorFilteringEnabled; error invalidSupply(); error noSupply(); error noDrop(); error noFunds(); error mintEnded(); error notAllowed(); error maxMinted(); error dropExists(); constructor(address deployer) ERC1155("") Ownable(deployer) { _registerForOperatorFiltering(); operatorFilteringEnabled = true; _setDefaultRoyalty(0xB9aB0B590abC88037a45690a68e1Ee41c5ea7365, 700); } function createDrop( uint256 tokenId, uint256 price, uint256 supply, uint256 time, string calldata URI, bytes32 allowlist ) external onlyOwner { if (drops[tokenId].tokenId > 0) revert dropExists(); drops[tokenId] = Drop( tokenId, price, supply, block.timestamp, block.timestamp + (time * 1 hours), 0, URI, allowlist ); } function updateDrop( uint256 tokenId, uint256 price, uint256 supply, uint256 time, string calldata URI, bytes32 allowlist ) external onlyOwner { if (drops[tokenId].tokenId == 0) revert noDrop(); if (price != 0) { drops[tokenId].price = price; } if (supply != 0) { drops[tokenId].supply = supply; } if (time != 0) { drops[tokenId].ends = drops[tokenId].starts + (time * 1 hours); } if (bytes(URI).length != 0) { drops[tokenId].uri = URI; } if (allowlist != 0x0) { drops[tokenId].allowlist = allowlist; } } function mintDrop( uint256 tokenId, uint256 amount, uint256 mints, bytes32[] calldata proof ) external payable { Drop storage drop = drops[tokenId]; if (drop.tokenId == 0) revert noDrop(); if (block.timestamp > drop.ends) revert mintEnded(); if (drop.price != 0 && msg.value < drop.price * amount) revert noFunds(); if (drop.supply != 0 && drop.supply < drop.minted + amount) revert noSupply(); if (drop.allowlist != 0x0 && myMints[msg.sender][drop.tokenId] + amount > mints) revert maxMinted(); if (drop.allowlist != 0x0 && !allowed(tokenId, msg.sender, mints, proof)) revert notAllowed(); _mint(msg.sender, tokenId, amount, ""); drop.minted += amount; myMints[msg.sender][drop.tokenId] += amount; } function allowed(uint256 tokenId, address wallet, uint256 mints, bytes32[] memory proof) public view returns (bool verify_) { return MerkleProof.verify(proof,drops[tokenId].allowlist,keccak256(abi.encodePacked(wallet,mints))); } function burn(uint256 tokenId, uint256 amount) external { if (balanceOf(msg.sender, tokenId) < amount) revert invalidSupply(); _burn(msg.sender, tokenId, amount); } function uri(uint256 tokenId) public view virtual override returns (string memory) { return drops[tokenId].uri; } function totalSupply(uint256 tokenId) public view virtual returns (uint256) { return drops[tokenId].minted; } function withdraw(address to) public onlyOwner nonReentrant { (bool success, ) = payable(to).call{value: address(this).balance}(""); require(success); } function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) { super.setApprovalForAll(operator, approved); } // Standard functions override for royalties enforcement function safeTransferFrom( address from, address to, uint256 tokenId, uint256 amount, bytes memory data ) public override onlyAllowedOperator(from) { super.safeTransferFrom(from, to, tokenId, amount, data); } function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory amounts, bytes memory data ) public override onlyAllowedOperator(from) { super.safeBatchTransferFrom(from, to, ids, amounts, data); } function supportsInterface(bytes4 interfaceId) public view virtual override(ERC1155, ERC2981) returns (bool) { return ERC1155.supportsInterface(interfaceId) || ERC2981.supportsInterface(interfaceId); } function setDefaultRoyalty(address receiver, uint96 feeNumerator) public onlyOwner { _setDefaultRoyalty(receiver, feeNumerator); } function setOperatorFilteringEnabled(bool value) public onlyOwner { operatorFilteringEnabled = value; } function _operatorFilteringEnabled() internal view override returns (bool) { return operatorFilteringEnabled; } function _isPriorityOperator(address operator) internal pure override returns (bool) { return operator == address(0x1E0049783F008A0085193E00003D00cd54003c71); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Arrays.sol) pragma solidity ^0.8.20; import {StorageSlot} from "StorageSlot.sol"; import {Math} from "Math.sol"; /** * @dev Collection of functions related to array types. */ library Arrays { using StorageSlot for bytes32; /** * @dev Searches a sorted `array` and returns the first index that contains * a value greater or equal to `element`. If no such index exists (i.e. all * values in the array are strictly less than `element`), the array length is * returned. Time complexity O(log n). * * `array` is expected to be sorted in ascending order, and to contain no * repeated elements. */ function findUpperBound(uint256[] storage array, uint256 element) internal view returns (uint256) { uint256 low = 0; uint256 high = array.length; if (high == 0) { return 0; } while (low < high) { uint256 mid = Math.average(low, high); // Note that mid will always be strictly less than high (i.e. it will be a valid array index) // because Math.average rounds towards zero (it does integer division with truncation). if (unsafeAccess(array, mid).value > element) { high = mid; } else { low = mid + 1; } } // At this point `low` is the exclusive upper bound. We will return the inclusive upper bound. if (low > 0 && unsafeAccess(array, low - 1).value == element) { return low - 1; } else { return low; } } /** * @dev Access an array in an "unsafe" way. Skips solidity "index-out-of-range" check. * * WARNING: Only use if you are certain `pos` is lower than the array length. */ function unsafeAccess(address[] storage arr, uint256 pos) internal pure returns (StorageSlot.AddressSlot storage) { bytes32 slot; // We use assembly to calculate the storage slot of the element at index `pos` of the dynamic array `arr` // following https://docs.soliditylang.org/en/v0.8.20/internals/layout_in_storage.html#mappings-and-dynamic-arrays. /// @solidity memory-safe-assembly assembly { mstore(0, arr.slot) slot := add(keccak256(0, 0x20), pos) } return slot.getAddressSlot(); } /** * @dev Access an array in an "unsafe" way. Skips solidity "index-out-of-range" check. * * WARNING: Only use if you are certain `pos` is lower than the array length. */ function unsafeAccess(bytes32[] storage arr, uint256 pos) internal pure returns (StorageSlot.Bytes32Slot storage) { bytes32 slot; // We use assembly to calculate the storage slot of the element at index `pos` of the dynamic array `arr` // following https://docs.soliditylang.org/en/v0.8.20/internals/layout_in_storage.html#mappings-and-dynamic-arrays. /// @solidity memory-safe-assembly assembly { mstore(0, arr.slot) slot := add(keccak256(0, 0x20), pos) } return slot.getBytes32Slot(); } /** * @dev Access an array in an "unsafe" way. Skips solidity "index-out-of-range" check. * * WARNING: Only use if you are certain `pos` is lower than the array length. */ function unsafeAccess(uint256[] storage arr, uint256 pos) internal pure returns (StorageSlot.Uint256Slot storage) { bytes32 slot; // We use assembly to calculate the storage slot of the element at index `pos` of the dynamic array `arr` // following https://docs.soliditylang.org/en/v0.8.20/internals/layout_in_storage.html#mappings-and-dynamic-arrays. /// @solidity memory-safe-assembly assembly { mstore(0, arr.slot) slot := add(keccak256(0, 0x20), pos) } return slot.getUint256Slot(); } /** * @dev Access an array in an "unsafe" way. Skips solidity "index-out-of-range" check. * * WARNING: Only use if you are certain `pos` is lower than the array length. */ function unsafeMemoryAccess(uint256[] memory arr, uint256 pos) internal pure returns (uint256 res) { assembly { res := mload(add(add(arr, 0x20), mul(pos, 0x20))) } } /** * @dev Access an array in an "unsafe" way. Skips solidity "index-out-of-range" check. * * WARNING: Only use if you are certain `pos` is lower than the array length. */ function unsafeMemoryAccess(address[] memory arr, uint256 pos) internal pure returns (address res) { assembly { res := mload(add(add(arr, 0x20), mul(pos, 0x20))) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Context.sol) pragma solidity ^0.8.20; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol) pragma solidity ^0.8.20; /** * @dev Standard ERC20 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens. */ interface IERC20Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC20InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC20InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers. * @param spender Address that may be allowed to operate on tokens without being their owner. * @param allowance Amount of tokens a `spender` is allowed to operate with. * @param needed Minimum amount required to perform a transfer. */ error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC20InvalidApprover(address approver); /** * @dev Indicates a failure with the `spender` to be approved. Used in approvals. * @param spender Address that may be allowed to operate on tokens without being their owner. */ error ERC20InvalidSpender(address spender); } /** * @dev Standard ERC721 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens. */ interface IERC721Errors { /** * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20. * Used in balance queries. * @param owner Address of the current owner of a token. */ error ERC721InvalidOwner(address owner); /** * @dev Indicates a `tokenId` whose `owner` is the zero address. * @param tokenId Identifier number of a token. */ error ERC721NonexistentToken(uint256 tokenId); /** * @dev Indicates an error related to the ownership over a particular token. Used in transfers. * @param sender Address whose tokens are being transferred. * @param tokenId Identifier number of a token. * @param owner Address of the current owner of a token. */ error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC721InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC721InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param tokenId Identifier number of a token. */ error ERC721InsufficientApproval(address operator, uint256 tokenId); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC721InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC721InvalidOperator(address operator); } /** * @dev Standard ERC1155 Errors * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens. */ interface IERC1155Errors { /** * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. * @param balance Current balance for the interacting account. * @param needed Minimum amount required to perform a transfer. * @param tokenId Identifier number of a token. */ error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId); /** * @dev Indicates a failure with the token `sender`. Used in transfers. * @param sender Address whose tokens are being transferred. */ error ERC1155InvalidSender(address sender); /** * @dev Indicates a failure with the token `receiver`. Used in transfers. * @param receiver Address to which tokens are being transferred. */ error ERC1155InvalidReceiver(address receiver); /** * @dev Indicates a failure with the `operator`’s approval. Used in transfers. * @param operator Address that may be allowed to operate on tokens without being their owner. * @param owner Address of the current owner of a token. */ error ERC1155MissingApprovalForAll(address operator, address owner); /** * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. * @param approver Address initiating an approval operation. */ error ERC1155InvalidApprover(address approver); /** * @dev Indicates a failure with the `operator` to be approved. Used in approvals. * @param operator Address that may be allowed to operate on tokens without being their owner. */ error ERC1155InvalidOperator(address operator); /** * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. * Used in batch transfers. * @param idsLength Length of the array of token identifiers * @param valuesLength Length of the array of token amounts */ error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC1155/ERC1155.sol) pragma solidity ^0.8.20; import {IERC1155} from "IERC1155.sol"; import {IERC1155Receiver} from "IERC1155Receiver.sol"; import {IERC1155MetadataURI} from "IERC1155MetadataURI.sol"; import {Context} from "Context.sol"; import {IERC165, ERC165} from "ERC165.sol"; import {Arrays} from "Arrays.sol"; import {IERC1155Errors} from "draft-IERC6093.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 */ abstract contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI, IERC1155Errors { using Arrays for uint256[]; using Arrays for address[]; mapping(uint256 id => mapping(address account => uint256)) private _balances; mapping(address account => mapping(address operator => 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 /* id */) public view virtual returns (string memory) { return _uri; } /** * @dev See {IERC1155-balanceOf}. */ function balanceOf(address account, uint256 id) public view virtual returns (uint256) { 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 returns (uint256[] memory) { if (accounts.length != ids.length) { revert ERC1155InvalidArrayLength(ids.length, accounts.length); } uint256[] memory batchBalances = new uint256[](accounts.length); for (uint256 i = 0; i < accounts.length; ++i) { batchBalances[i] = balanceOf(accounts.unsafeMemoryAccess(i), ids.unsafeMemoryAccess(i)); } return batchBalances; } /** * @dev See {IERC1155-setApprovalForAll}. */ function setApprovalForAll(address operator, bool approved) public virtual { _setApprovalForAll(_msgSender(), operator, approved); } /** * @dev See {IERC1155-isApprovedForAll}. */ function isApprovedForAll(address account, address operator) public view virtual returns (bool) { return _operatorApprovals[account][operator]; } /** * @dev See {IERC1155-safeTransferFrom}. */ function safeTransferFrom(address from, address to, uint256 id, uint256 value, bytes memory data) public virtual { address sender = _msgSender(); if (from != sender && !isApprovedForAll(from, sender)) { revert ERC1155MissingApprovalForAll(sender, from); } _safeTransferFrom(from, to, id, value, data); } /** * @dev See {IERC1155-safeBatchTransferFrom}. */ function safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory values, bytes memory data ) public virtual { address sender = _msgSender(); if (from != sender && !isApprovedForAll(from, sender)) { revert ERC1155MissingApprovalForAll(sender, from); } _safeBatchTransferFrom(from, to, ids, values, data); } /** * @dev Transfers a `value` amount of tokens of type `id` from `from` to `to`. Will mint (or burn) if `from` * (or `to`) is the zero address. * * Emits a {TransferSingle} event if the arrays contain one element, and {TransferBatch} otherwise. * * Requirements: * * - If `to` refers to a smart contract, it must implement either {IERC1155Receiver-onERC1155Received} * or {IERC1155Receiver-onERC1155BatchReceived} and return the acceptance magic value. * - `ids` and `values` must have the same length. * * NOTE: The ERC-1155 acceptance check is not performed in this function. See {_updateWithAcceptanceCheck} instead. */ function _update(address from, address to, uint256[] memory ids, uint256[] memory values) internal virtual { if (ids.length != values.length) { revert ERC1155InvalidArrayLength(ids.length, values.length); } address operator = _msgSender(); for (uint256 i = 0; i < ids.length; ++i) { uint256 id = ids.unsafeMemoryAccess(i); uint256 value = values.unsafeMemoryAccess(i); if (from != address(0)) { uint256 fromBalance = _balances[id][from]; if (fromBalance < value) { revert ERC1155InsufficientBalance(from, fromBalance, value, id); } unchecked { // Overflow not possible: value <= fromBalance _balances[id][from] = fromBalance - value; } } if (to != address(0)) { _balances[id][to] += value; } } if (ids.length == 1) { uint256 id = ids.unsafeMemoryAccess(0); uint256 value = values.unsafeMemoryAccess(0); emit TransferSingle(operator, from, to, id, value); } else { emit TransferBatch(operator, from, to, ids, values); } } /** * @dev Version of {_update} that performs the token acceptance check by calling * {IERC1155Receiver-onERC1155Received} or {IERC1155Receiver-onERC1155BatchReceived} on the receiver address if it * contains code (eg. is a smart contract at the moment of execution). * * IMPORTANT: Overriding this function is discouraged because it poses a reentrancy risk from the receiver. So any * update to the contract state after this function would break the check-effect-interaction pattern. Consider * overriding {_update} instead. */ function _updateWithAcceptanceCheck( address from, address to, uint256[] memory ids, uint256[] memory values, bytes memory data ) internal virtual { _update(from, to, ids, values); if (to != address(0)) { address operator = _msgSender(); if (ids.length == 1) { uint256 id = ids.unsafeMemoryAccess(0); uint256 value = values.unsafeMemoryAccess(0); _doSafeTransferAcceptanceCheck(operator, from, to, id, value, data); } else { _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, values, data); } } } /** * @dev Transfers a `value` 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 `value` 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 value, bytes memory data) internal { if (to == address(0)) { revert ERC1155InvalidReceiver(address(0)); } if (from == address(0)) { revert ERC1155InvalidSender(address(0)); } (uint256[] memory ids, uint256[] memory values) = _asSingletonArrays(id, value); _updateWithAcceptanceCheck(from, to, ids, values, 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. * - `ids` and `values` must have the same length. */ function _safeBatchTransferFrom( address from, address to, uint256[] memory ids, uint256[] memory values, bytes memory data ) internal { if (to == address(0)) { revert ERC1155InvalidReceiver(address(0)); } if (from == address(0)) { revert ERC1155InvalidSender(address(0)); } _updateWithAcceptanceCheck(from, to, ids, values, 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 values 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 a `value` amount of tokens of 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 value, bytes memory data) internal { if (to == address(0)) { revert ERC1155InvalidReceiver(address(0)); } (uint256[] memory ids, uint256[] memory values) = _asSingletonArrays(id, value); _updateWithAcceptanceCheck(address(0), to, ids, values, data); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `values` must have the same length. * - `to` cannot be the zero address. * - 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 values, bytes memory data) internal { if (to == address(0)) { revert ERC1155InvalidReceiver(address(0)); } _updateWithAcceptanceCheck(address(0), to, ids, values, data); } /** * @dev Destroys a `value` amount of tokens of type `id` from `from` * * Emits a {TransferSingle} event. * * Requirements: * * - `from` cannot be the zero address. * - `from` must have at least `value` amount of tokens of type `id`. */ function _burn(address from, uint256 id, uint256 value) internal { if (from == address(0)) { revert ERC1155InvalidSender(address(0)); } (uint256[] memory ids, uint256[] memory values) = _asSingletonArrays(id, value); _updateWithAcceptanceCheck(from, address(0), ids, values, ""); } /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}. * * Emits a {TransferBatch} event. * * Requirements: * * - `from` cannot be the zero address. * - `from` must have at least `value` amount of tokens of type `id`. * - `ids` and `values` must have the same length. */ function _burnBatch(address from, uint256[] memory ids, uint256[] memory values) internal { if (from == address(0)) { revert ERC1155InvalidSender(address(0)); } _updateWithAcceptanceCheck(from, address(0), ids, values, ""); } /** * @dev Approve `operator` to operate on all of `owner` tokens * * Emits an {ApprovalForAll} event. * * Requirements: * * - `operator` cannot be the zero address. */ function _setApprovalForAll(address owner, address operator, bool approved) internal virtual { if (operator == address(0)) { revert ERC1155InvalidOperator(address(0)); } _operatorApprovals[owner][operator] = approved; emit ApprovalForAll(owner, operator, approved); } /** * @dev Performs an acceptance check by calling {IERC1155-onERC1155Received} on the `to` address * if it contains code at the moment of execution. */ function _doSafeTransferAcceptanceCheck( address operator, address from, address to, uint256 id, uint256 value, bytes memory data ) private { if (to.code.length > 0) { try IERC1155Receiver(to).onERC1155Received(operator, from, id, value, data) returns (bytes4 response) { if (response != IERC1155Receiver.onERC1155Received.selector) { // Tokens rejected revert ERC1155InvalidReceiver(to); } } catch (bytes memory reason) { if (reason.length == 0) { // non-ERC1155Receiver implementer revert ERC1155InvalidReceiver(to); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } } /** * @dev Performs a batch acceptance check by calling {IERC1155-onERC1155BatchReceived} on the `to` address * if it contains code at the moment of execution. */ function _doSafeBatchTransferAcceptanceCheck( address operator, address from, address to, uint256[] memory ids, uint256[] memory values, bytes memory data ) private { if (to.code.length > 0) { try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, values, data) returns ( bytes4 response ) { if (response != IERC1155Receiver.onERC1155BatchReceived.selector) { // Tokens rejected revert ERC1155InvalidReceiver(to); } } catch (bytes memory reason) { if (reason.length == 0) { // non-ERC1155Receiver implementer revert ERC1155InvalidReceiver(to); } else { /// @solidity memory-safe-assembly assembly { revert(add(32, reason), mload(reason)) } } } } } /** * @dev Creates an array in memory with only one value for each of the elements provided. */ function _asSingletonArrays( uint256 element1, uint256 element2 ) private pure returns (uint256[] memory array1, uint256[] memory array2) { /// @solidity memory-safe-assembly assembly { // Load the free memory pointer array1 := mload(0x40) // Set array length to 1 mstore(array1, 1) // Store the single element at the next word after the length (where content starts) mstore(add(array1, 0x20), element1) // Repeat for next array locating it right after the first array array2 := add(array1, 0x40) mstore(array2, 1) mstore(add(array2, 0x20), element2) // Update the free memory pointer by pointing after the second array mstore(0x40, add(array2, 0x40)) } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol) pragma solidity ^0.8.20; import {IERC165} from "IERC165.sol"; /** * @dev Implementation of the {IERC165} interface. * * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check * for the additional interface id that will be supported. For example: * * ```solidity * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); * } * ``` */ abstract contract ERC165 is IERC165 { /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { return interfaceId == type(IERC165).interfaceId; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/common/ERC2981.sol) pragma solidity ^0.8.20; import {IERC2981} from "IERC2981.sol"; import {IERC165, ERC165} from "ERC165.sol"; /** * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information. * * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first. * * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the * fee is specified in basis points by default. * * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported. */ abstract contract ERC2981 is IERC2981, ERC165 { struct RoyaltyInfo { address receiver; uint96 royaltyFraction; } RoyaltyInfo private _defaultRoyaltyInfo; mapping(uint256 tokenId => RoyaltyInfo) private _tokenRoyaltyInfo; /** * @dev The default royalty set is invalid (eg. (numerator / denominator) >= 1). */ error ERC2981InvalidDefaultRoyalty(uint256 numerator, uint256 denominator); /** * @dev The default royalty receiver is invalid. */ error ERC2981InvalidDefaultRoyaltyReceiver(address receiver); /** * @dev The royalty set for an specific `tokenId` is invalid (eg. (numerator / denominator) >= 1). */ error ERC2981InvalidTokenRoyalty(uint256 tokenId, uint256 numerator, uint256 denominator); /** * @dev The royalty receiver for `tokenId` is invalid. */ error ERC2981InvalidTokenRoyaltyReceiver(uint256 tokenId, address receiver); /** * @dev See {IERC165-supportsInterface}. */ function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) { return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId); } /** * @inheritdoc IERC2981 */ function royaltyInfo(uint256 tokenId, uint256 salePrice) public view virtual returns (address, uint256) { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[tokenId]; if (royalty.receiver == address(0)) { royalty = _defaultRoyaltyInfo; } uint256 royaltyAmount = (salePrice * royalty.royaltyFraction) / _feeDenominator(); return (royalty.receiver, royaltyAmount); } /** * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an * override. */ function _feeDenominator() internal pure virtual returns (uint96) { return 10000; } /** * @dev Sets the royalty information that all ids in this contract will default to. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual { uint256 denominator = _feeDenominator(); if (feeNumerator > denominator) { // Royalty fee will exceed the sale price revert ERC2981InvalidDefaultRoyalty(feeNumerator, denominator); } if (receiver == address(0)) { revert ERC2981InvalidDefaultRoyaltyReceiver(address(0)); } _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Removes default royalty information. */ function _deleteDefaultRoyalty() internal virtual { delete _defaultRoyaltyInfo; } /** * @dev Sets the royalty information for a specific token id, overriding the global default. * * Requirements: * * - `receiver` cannot be the zero address. * - `feeNumerator` cannot be greater than the fee denominator. */ function _setTokenRoyalty(uint256 tokenId, address receiver, uint96 feeNumerator) internal virtual { uint256 denominator = _feeDenominator(); if (feeNumerator > denominator) { // Royalty fee will exceed the sale price revert ERC2981InvalidTokenRoyalty(tokenId, feeNumerator, denominator); } if (receiver == address(0)) { revert ERC2981InvalidTokenRoyaltyReceiver(tokenId, address(0)); } _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator); } /** * @dev Resets royalty information for the token id back to the global default. */ function _resetTokenRoyalty(uint256 tokenId) internal virtual { delete _tokenRoyaltyInfo[tokenId]; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC1155/IERC1155.sol) pragma solidity ^0.8.20; import {IERC165} from "IERC165.sol"; /** * @dev Required interface of an ERC1155 compliant contract, as defined in the * https://eips.ethereum.org/EIPS/eip-1155[EIP]. */ interface IERC1155 is IERC165 { /** * @dev Emitted when `value` amount of tokens of 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 value 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 a `value` amount of tokens of type `id` from `from` to `to`. * * WARNING: This function can potentially allow a reentrancy attack when transferring tokens * to an untrusted contract, when invoking {onERC1155Received} on the receiver. * Ensure to follow the checks-effects-interactions pattern and consider employing * reentrancy guards when interacting with untrusted contracts. * * Emits a {TransferSingle} event. * * Requirements: * * - `to` cannot be the zero address. * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}. * - `from` must have a balance of tokens of type `id` of at least `value` 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 value, bytes calldata data) external; /** * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. * * * WARNING: This function can potentially allow a reentrancy attack when transferring tokens * to an untrusted contract, when invoking {onERC1155BatchReceived} on the receiver. * Ensure to follow the checks-effects-interactions pattern and consider employing * reentrancy guards when interacting with untrusted contracts. * * Emits a {TransferBatch} event. * * Requirements: * * - `ids` and `values` 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 values, bytes calldata data ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC1155/extensions/IERC1155MetadataURI.sol) pragma solidity ^0.8.20; import {IERC1155} from "IERC1155.sol"; /** * @dev Interface of the optional ERC1155MetadataExtension interface, as defined * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP]. */ 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC1155/IERC1155Receiver.sol) pragma solidity ^0.8.20; import {IERC165} from "IERC165.sol"; /** * @dev Interface that must be implemented by smart contracts in order to receive * ERC-1155 token transfers. */ 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol) pragma solidity ^0.8.20; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC2981.sol) pragma solidity ^0.8.20; import {IERC165} from "IERC165.sol"; /** * @dev Interface for the NFT Royalty Standard. * * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal * support for royalty payments across all NFT marketplaces and ecosystem participants. */ interface IERC2981 is IERC165 { /** * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of * exchange. The royalty amount is denominated and should be paid in that same unit of exchange. */ function royaltyInfo( uint256 tokenId, uint256 salePrice ) external view returns (address receiver, uint256 royaltyAmount); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol) pragma solidity ^0.8.20; /** * @dev Standard math utilities missing in the Solidity language. */ library Math { /** * @dev Muldiv operation overflow. */ error MathOverflowedMulDiv(); enum Rounding { Floor, // Toward negative infinity Ceil, // Toward positive infinity Trunc, // Toward zero Expand // Away from zero } /** * @dev Returns the addition of two unsigned integers, with an overflow flag. */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the largest of two numbers. */ function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } /** * @dev Returns the smallest of two numbers. */ function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } /** * @dev Returns the average of two numbers. The result is rounded towards * zero. */ function average(uint256 a, uint256 b) internal pure returns (uint256) { // (a + b) / 2 can overflow. return (a & b) + (a ^ b) / 2; } /** * @dev Returns the ceiling of the division of two numbers. * * This differs from standard division with `/` in that it rounds towards infinity instead * of rounding towards zero. */ function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { if (b == 0) { // Guarantee the same behavior as in a regular Solidity division. return a / b; } // (a + b - 1) / b can overflow on addition, so we distribute. return a == 0 ? 0 : (a - 1) / b + 1; } /** * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or * denominator == 0. * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by * Uniswap Labs also under MIT license. */ function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) { unchecked { // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256 // variables such that product = prod1 * 2^256 + prod0. uint256 prod0 = x * y; // Least significant 256 bits of the product uint256 prod1; // Most significant 256 bits of the product assembly { let mm := mulmod(x, y, not(0)) prod1 := sub(sub(mm, prod0), lt(mm, prod0)) } // Handle non-overflow cases, 256 by 256 division. if (prod1 == 0) { // Solidity will revert if denominator == 0, unlike the div opcode on its own. // The surrounding unchecked block does not change this fact. // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic. return prod0 / denominator; } // Make sure the result is less than 2^256. Also prevents denominator == 0. if (denominator <= prod1) { revert MathOverflowedMulDiv(); } /////////////////////////////////////////////// // 512 by 256 division. /////////////////////////////////////////////// // Make division exact by subtracting the remainder from [prod1 prod0]. uint256 remainder; assembly { // Compute remainder using mulmod. remainder := mulmod(x, y, denominator) // Subtract 256 bit number from 512 bit number. prod1 := sub(prod1, gt(remainder, prod0)) prod0 := sub(prod0, remainder) } // Factor powers of two out of denominator and compute largest power of two divisor of denominator. // Always >= 1. See https://cs.stackexchange.com/q/138556/92363. uint256 twos = denominator & (0 - denominator); assembly { // Divide denominator by twos. denominator := div(denominator, twos) // Divide [prod1 prod0] by twos. prod0 := div(prod0, twos) // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one. twos := add(div(sub(0, twos), twos), 1) } // Shift in bits from prod1 into prod0. prod0 |= prod1 * twos; // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for // four bits. That is, denominator * inv = 1 mod 2^4. uint256 inverse = (3 * denominator) ^ 2; // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also // works in modular arithmetic, doubling the correct bits in each step. inverse *= 2 - denominator * inverse; // inverse mod 2^8 inverse *= 2 - denominator * inverse; // inverse mod 2^16 inverse *= 2 - denominator * inverse; // inverse mod 2^32 inverse *= 2 - denominator * inverse; // inverse mod 2^64 inverse *= 2 - denominator * inverse; // inverse mod 2^128 inverse *= 2 - denominator * inverse; // inverse mod 2^256 // Because the division is now exact we can divide by multiplying with the modular inverse of denominator. // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1 // is no longer required. result = prod0 * inverse; return result; } } /** * @notice Calculates x * y / denominator with full precision, following the selected rounding direction. */ function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) { uint256 result = mulDiv(x, y, denominator); if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) { result += 1; } return result; } /** * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded * towards zero. * * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11). */ function sqrt(uint256 a) internal pure returns (uint256) { if (a == 0) { return 0; } // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target. // // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`. // // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)` // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))` // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)` // // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit. uint256 result = 1 << (log2(a) >> 1); // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128, // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision // into the expected uint128 result. unchecked { result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; result = (result + a / result) >> 1; return min(result, a / result); } } /** * @notice Calculates sqrt(a), following the selected rounding direction. */ function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = sqrt(a); return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0); } } /** * @dev Return the log in base 2 of a positive value rounded towards zero. * Returns 0 if given 0. */ function log2(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 128; } if (value >> 64 > 0) { value >>= 64; result += 64; } if (value >> 32 > 0) { value >>= 32; result += 32; } if (value >> 16 > 0) { value >>= 16; result += 16; } if (value >> 8 > 0) { value >>= 8; result += 8; } if (value >> 4 > 0) { value >>= 4; result += 4; } if (value >> 2 > 0) { value >>= 2; result += 2; } if (value >> 1 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 2, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log2(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log2(value); return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0); } } /** * @dev Return the log in base 10 of a positive value rounded towards zero. * Returns 0 if given 0. */ function log10(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >= 10 ** 64) { value /= 10 ** 64; result += 64; } if (value >= 10 ** 32) { value /= 10 ** 32; result += 32; } if (value >= 10 ** 16) { value /= 10 ** 16; result += 16; } if (value >= 10 ** 8) { value /= 10 ** 8; result += 8; } if (value >= 10 ** 4) { value /= 10 ** 4; result += 4; } if (value >= 10 ** 2) { value /= 10 ** 2; result += 2; } if (value >= 10 ** 1) { result += 1; } } return result; } /** * @dev Return the log in base 10, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log10(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log10(value); return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0); } } /** * @dev Return the log in base 256 of a positive value rounded towards zero. * Returns 0 if given 0. * * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string. */ function log256(uint256 value) internal pure returns (uint256) { uint256 result = 0; unchecked { if (value >> 128 > 0) { value >>= 128; result += 16; } if (value >> 64 > 0) { value >>= 64; result += 8; } if (value >> 32 > 0) { value >>= 32; result += 4; } if (value >> 16 > 0) { value >>= 16; result += 2; } if (value >> 8 > 0) { result += 1; } } return result; } /** * @dev Return the log in base 256, following the selected rounding direction, of a positive value. * Returns 0 if given 0. */ function log256(uint256 value, Rounding rounding) internal pure returns (uint256) { unchecked { uint256 result = log256(value); return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0); } } /** * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers. */ function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) { return uint8(rounding) % 2 == 1; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MerkleProof.sol) pragma solidity ^0.8.20; /** * @dev These functions deal with verification of Merkle Tree proofs. * * The tree and the proofs can be generated using our * https://github.com/OpenZeppelin/merkle-tree[JavaScript library]. * You will find a quickstart guide in the readme. * * WARNING: You should avoid using leaf values that are 64 bytes long prior to * hashing, or use a hash function other than keccak256 for hashing leaves. * This is because the concatenation of a sorted pair of internal nodes in * the Merkle tree could be reinterpreted as a leaf value. * OpenZeppelin's JavaScript library generates Merkle trees that are safe * against this attack out of the box. */ library MerkleProof { /** *@dev The multiproof provided is not valid. */ error MerkleProofInvalidMultiproof(); /** * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree * defined by `root`. For this, a `proof` must be provided, containing * sibling hashes on the branch from the leaf to the root of the tree. Each * pair of leaves and each pair of pre-images are assumed to be sorted. */ function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) { return processProof(proof, leaf) == root; } /** * @dev Calldata version of {verify} */ function verifyCalldata(bytes32[] calldata proof, bytes32 root, bytes32 leaf) internal pure returns (bool) { return processProofCalldata(proof, leaf) == root; } /** * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt * hash matches the root of the tree. When processing the proof, the pairs * of leafs & pre-images are assumed to be sorted. */ function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Calldata version of {processProof} */ function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) { bytes32 computedHash = leaf; for (uint256 i = 0; i < proof.length; i++) { computedHash = _hashPair(computedHash, proof[i]); } return computedHash; } /** * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a Merkle tree defined by * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}. * * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details. */ function multiProofVerify( bytes32[] memory proof, bool[] memory proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProof(proof, proofFlags, leaves) == root; } /** * @dev Calldata version of {multiProofVerify} * * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details. */ function multiProofVerifyCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32 root, bytes32[] memory leaves ) internal pure returns (bool) { return processMultiProofCalldata(proof, proofFlags, leaves) == root; } /** * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false * respectively. * * CAUTION: Not all Merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer). */ function processMultiProof( bytes32[] memory proof, bool[] memory proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the Merkle tree. uint256 leavesLen = leaves.length; uint256 proofLen = proof.length; uint256 totalHashes = proofFlags.length; // Check proof validity. if (leavesLen + proofLen != totalHashes + 1) { revert MerkleProofInvalidMultiproof(); } // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]) : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { if (proofPos != proofLen) { revert MerkleProofInvalidMultiproof(); } unchecked { return hashes[totalHashes - 1]; } } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Calldata version of {processMultiProof}. * * CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details. */ function processMultiProofCalldata( bytes32[] calldata proof, bool[] calldata proofFlags, bytes32[] memory leaves ) internal pure returns (bytes32 merkleRoot) { // This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of // the Merkle tree. uint256 leavesLen = leaves.length; uint256 proofLen = proof.length; uint256 totalHashes = proofFlags.length; // Check proof validity. if (leavesLen + proofLen != totalHashes + 1) { revert MerkleProofInvalidMultiproof(); } // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop". bytes32[] memory hashes = new bytes32[](totalHashes); uint256 leafPos = 0; uint256 hashPos = 0; uint256 proofPos = 0; // At each step, we compute the next hash using two values: // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we // get the next hash. // - depending on the flag, either another value from the "main queue" (merging branches) or an element from the // `proof` array. for (uint256 i = 0; i < totalHashes; i++) { bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]; bytes32 b = proofFlags[i] ? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++]) : proof[proofPos++]; hashes[i] = _hashPair(a, b); } if (totalHashes > 0) { if (proofPos != proofLen) { revert MerkleProofInvalidMultiproof(); } unchecked { return hashes[totalHashes - 1]; } } else if (leavesLen > 0) { return leaves[0]; } else { return proof[0]; } } /** * @dev Sorts the pair (a, b) and hashes the result. */ function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) { return a < b ? _efficientHash(a, b) : _efficientHash(b, a); } /** * @dev Implementation of keccak256(abi.encode(a, b)) that doesn't allocate or expand memory. */ function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) { /// @solidity memory-safe-assembly assembly { mstore(0x00, a) mstore(0x20, b) value := keccak256(0x00, 0x40) } } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; /// @notice Optimized and flexible operator filterer to abide to OpenSea's /// mandatory on-chain royalty enforcement in order for new collections to /// receive royalties. /// For more information, see: /// See: https://github.com/ProjectOpenSea/operator-filter-registry abstract contract OperatorFilterer { /// @dev The default OpenSea operator blocklist subscription. address internal constant _DEFAULT_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6; /// @dev The OpenSea operator filter registry. address internal constant _OPERATOR_FILTER_REGISTRY = 0x000000000000AAeB6D7670E522A718067333cd4E; /// @dev Registers the current contract to OpenSea's operator filter, /// and subscribe to the default OpenSea operator blocklist. /// Note: Will not revert nor update existing settings for repeated registration. function _registerForOperatorFiltering() internal virtual { _registerForOperatorFiltering(_DEFAULT_SUBSCRIPTION, true); } /// @dev Registers the current contract to OpenSea's operator filter. /// Note: Will not revert nor update existing settings for repeated registration. function _registerForOperatorFiltering(address subscriptionOrRegistrantToCopy, bool subscribe) internal virtual { /// @solidity memory-safe-assembly assembly { let functionSelector := 0x7d3e3dbe // `registerAndSubscribe(address,address)`. // Clean the upper 96 bits of `subscriptionOrRegistrantToCopy` in case they are dirty. subscriptionOrRegistrantToCopy := shr(96, shl(96, subscriptionOrRegistrantToCopy)) for {} iszero(subscribe) {} { if iszero(subscriptionOrRegistrantToCopy) { functionSelector := 0x4420e486 // `register(address)`. break } functionSelector := 0xa0af2903 // `registerAndCopyEntries(address,address)`. break } // Store the function selector. mstore(0x00, shl(224, functionSelector)) // Store the `address(this)`. mstore(0x04, address()) // Store the `subscriptionOrRegistrantToCopy`. mstore(0x24, subscriptionOrRegistrantToCopy) // Register into the registry. if iszero(call(gas(), _OPERATOR_FILTER_REGISTRY, 0, 0x00, 0x44, 0x00, 0x04)) { // If the function selector has not been overwritten, // it is an out-of-gas error. if eq(shr(224, mload(0x00)), functionSelector) { // To prevent gas under-estimation. revert(0, 0) } } // Restore the part of the free memory pointer that was overwritten, // which is guaranteed to be zero, because of Solidity's memory size limits. mstore(0x24, 0) } } /// @dev Modifier to guard a function and revert if the caller is a blocked operator. modifier onlyAllowedOperator(address from) virtual { if (from != msg.sender) { if (!_isPriorityOperator(msg.sender)) { if (_operatorFilteringEnabled()) _revertIfBlocked(msg.sender); } } _; } /// @dev Modifier to guard a function from approving a blocked operator.. modifier onlyAllowedOperatorApproval(address operator) virtual { if (!_isPriorityOperator(operator)) { if (_operatorFilteringEnabled()) _revertIfBlocked(operator); } _; } /// @dev Helper function that reverts if the `operator` is blocked by the registry. function _revertIfBlocked(address operator) private view { /// @solidity memory-safe-assembly assembly { // Store the function selector of `isOperatorAllowed(address,address)`, // shifted left by 6 bytes, which is enough for 8tb of memory. // We waste 6-3 = 3 bytes to save on 6 runtime gas (PUSH1 0x224 SHL). mstore(0x00, 0xc6171134001122334455) // Store the `address(this)`. mstore(0x1a, address()) // Store the `operator`. mstore(0x3a, operator) // `isOperatorAllowed` always returns true if it does not revert. if iszero(staticcall(gas(), _OPERATOR_FILTER_REGISTRY, 0x16, 0x44, 0x00, 0x00)) { // Bubble up the revert if the staticcall reverts. returndatacopy(0x00, 0x00, returndatasize()) revert(0x00, returndatasize()) } // We'll skip checking if `from` is inside the blacklist. // Even though that can block transferring out of wrapper contracts, // we don't want tokens to be stuck. // Restore the part of the free memory pointer that was overwritten, // which is guaranteed to be zero, if less than 8tb of memory is used. mstore(0x3a, 0) } } /// @dev For deriving contracts to override, so that operator filtering /// can be turned on / off. /// Returns true by default. function _operatorFilteringEnabled() internal view virtual returns (bool) { return true; } /// @dev For deriving contracts to override, so that preferred marketplaces can /// skip operator filtering, helping users save gas. /// Returns false for all inputs by default. function _isPriorityOperator(address) internal view virtual returns (bool) { return false; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * The initial owner is set to the address provided by the deployer. This can * later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == _ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/StorageSlot.sol) // This file was procedurally generated from scripts/generate/templates/StorageSlot.js. pragma solidity ^0.8.20; /** * @dev Library for reading and writing primitive types to specific storage slots. * * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts. * This library helps with reading and writing to such slots without the need for inline assembly. * * The functions in this library return Slot structs that contain a `value` member that can be used to read or write. * * Example usage to set ERC1967 implementation slot: * ```solidity * contract ERC1967 { * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; * * function _getImplementation() internal view returns (address) { * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value; * } * * function _setImplementation(address newImplementation) internal { * require(newImplementation.code.length > 0); * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; * } * } * ``` */ library StorageSlot { struct AddressSlot { address value; } struct BooleanSlot { bool value; } struct Bytes32Slot { bytes32 value; } struct Uint256Slot { uint256 value; } struct StringSlot { string value; } struct BytesSlot { bytes value; } /** * @dev Returns an `AddressSlot` with member `value` located at `slot`. */ function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BooleanSlot` with member `value` located at `slot`. */ function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Bytes32Slot` with member `value` located at `slot`. */ function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `Uint256Slot` with member `value` located at `slot`. */ function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `StringSlot` with member `value` located at `slot`. */ function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `StringSlot` representation of the string storage pointer `store`. */ function getStringSlot(string storage store) internal pure returns (StringSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := store.slot } } /** * @dev Returns an `BytesSlot` with member `value` located at `slot`. */ function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := slot } } /** * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`. */ function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) { /// @solidity memory-safe-assembly assembly { r.slot := store.slot } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"deployer","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"balance","type":"uint256"},{"internalType":"uint256","name":"needed","type":"uint256"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC1155InsufficientBalance","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC1155InvalidApprover","type":"error"},{"inputs":[{"internalType":"uint256","name":"idsLength","type":"uint256"},{"internalType":"uint256","name":"valuesLength","type":"uint256"}],"name":"ERC1155InvalidArrayLength","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"ERC1155InvalidOperator","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC1155InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC1155InvalidSender","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"owner","type":"address"}],"name":"ERC1155MissingApprovalForAll","type":"error"},{"inputs":[{"internalType":"uint256","name":"numerator","type":"uint256"},{"internalType":"uint256","name":"denominator","type":"uint256"}],"name":"ERC2981InvalidDefaultRoyalty","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC2981InvalidDefaultRoyaltyReceiver","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"numerator","type":"uint256"},{"internalType":"uint256","name":"denominator","type":"uint256"}],"name":"ERC2981InvalidTokenRoyalty","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC2981InvalidTokenRoyaltyReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"dropExists","type":"error"},{"inputs":[],"name":"invalidSupply","type":"error"},{"inputs":[],"name":"maxMinted","type":"error"},{"inputs":[],"name":"mintEnded","type":"error"},{"inputs":[],"name":"noDrop","type":"error"},{"inputs":[],"name":"noFunds","type":"error"},{"inputs":[],"name":"noSupply","type":"error"},{"inputs":[],"name":"notAllowed","type":"error"},{"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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","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"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"wallet","type":"address"},{"internalType":"uint256","name":"mints","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"allowed","outputs":[{"internalType":"bool","name":"verify_","type":"bool"}],"stateMutability":"view","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":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"supply","type":"uint256"},{"internalType":"uint256","name":"time","type":"uint256"},{"internalType":"string","name":"URI","type":"string"},{"internalType":"bytes32","name":"allowlist","type":"bytes32"}],"name":"createDrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"drops","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"supply","type":"uint256"},{"internalType":"uint256","name":"starts","type":"uint256"},{"internalType":"uint256","name":"ends","type":"uint256"},{"internalType":"uint256","name":"minted","type":"uint256"},{"internalType":"string","name":"uri","type":"string"},{"internalType":"bytes32","name":"allowlist","type":"bytes32"}],"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":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"mints","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mintDrop","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"myMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operatorFilteringEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256[]","name":"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":"tokenId","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":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"value","type":"bool"}],"name":"setOperatorFilteringEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"supply","type":"uint256"},{"internalType":"uint256","name":"time","type":"uint256"},{"internalType":"string","name":"URI","type":"string"},{"internalType":"bytes32","name":"allowlist","type":"bytes32"}],"name":"updateDrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"uri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60c0604052601660809081527f5468652043727970746f6d61736b7320437573746f6d0000000000000000000060a0526007906200003e908262000373565b506040805180820190915260048152634d41534b60e01b602082015260089062000069908262000373565b5034801562000076575f80fd5b50604051620028d7380380620028d783398101604081905262000099916200043f565b60408051602081019091525f81528190620000b48162000135565b5060016005556001600160a01b038116620000e957604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b620000f48162000147565b50620000ff62000198565b600b805460ff191660011790556200012e73b9ab0b590abc88037a45690a68e1ee41c5ea73656102bc620001bb565b506200046e565b600262000143828262000373565b5050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b620001b9733cc6cdda760b79bafa08df41ecfa224f810dceb6600162000261565b565b6127106001600160601b038216811015620001fc57604051636f483d0960e01b81526001600160601b038316600482015260248101829052604401620000e0565b6001600160a01b0383166200022757604051635b6cc80560e11b81525f6004820152602401620000e0565b50604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600355565b6001600160a01b0390911690637d3e3dbe816200029157826200028a5750634420e48662000291565b5063a0af29035b8060e01b5f52306004528260245260045f60445f806daaeb6d7670e522a718067333cd4e5af1620002cc57805f5160e01c03620002cc575f80fd5b505f6024525050565b634e487b7160e01b5f52604160045260245ffd5b600181811c90821680620002fe57607f821691505b6020821081036200031d57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156200036e57805f5260205f20601f840160051c810160208510156200034a5750805b601f840160051c820191505b818110156200036b575f815560010162000356565b50505b505050565b81516001600160401b038111156200038f576200038f620002d5565b620003a781620003a08454620002e9565b8462000323565b602080601f831160018114620003dd575f8415620003c55750858301515b5f19600386901b1c1916600185901b17855562000437565b5f85815260208120601f198616915b828110156200040d57888601518255948401946001909101908401620003ec565b50858210156200042b57878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b5f6020828403121562000450575f80fd5b81516001600160a01b038116811462000467575f80fd5b9392505050565b61245b806200047c5f395ff3fe60806040526004361061017a575f3560e01c806383c33fbf116100cd578063b7c0b8e811610087578063e985e9c511610062578063e985e9c51461049b578063f242432a146104ba578063f2fde38b146104d9578063fb796e6c146104f8575f80fd5b8063b7c0b8e81461042f578063bd85b0391461044e578063dee225e91461047c575f80fd5b806383c33fbf146103845780638da5cb5b146103a3578063935a1976146103ca57806395d89b41146103dd578063a22cb465146103f1578063b390c0ab14610410575f80fd5b80632a55205a1161013857806351cff8d91161011357806351cff8d9146102e85780635eb39968146103075780636d0a51a41461033a578063715018a614610370575f80fd5b80632a55205a1461025f5780632eb2c2d61461029d5780634e1273f4146102bc575f80fd5b8062fdd58e1461017e57806301ffc9a7146101b057806304634d8d146101df57806306fdde03146102005780630e89341c14610221578063280d4ac414610240575b5f80fd5b348015610189575f80fd5b5061019d6101983660046119bd565b610511565b6040519081526020015b60405180910390f35b3480156101bb575f80fd5b506101cf6101ca3660046119fa565b610538565b60405190151581526020016101a7565b3480156101ea575f80fd5b506101fe6101f9366004611a15565b610551565b005b34801561020b575f80fd5b50610214610567565b6040516101a79190611a98565b34801561022c575f80fd5b5061021461023b366004611aaa565b6105f3565b34801561024b575f80fd5b506101fe61025a366004611ac1565b610695565b34801561026a575f80fd5b5061027e610279366004611b5b565b610783565b604080516001600160a01b0390931683526020830191909152016101a7565b3480156102a8575f80fd5b506101fe6102b7366004611cbb565b61082d565b3480156102c7575f80fd5b506102db6102d6366004611d5e565b610882565b6040516101a79190611e52565b3480156102f3575f80fd5b506101fe610302366004611e64565b610952565b348015610312575f80fd5b50610326610321366004611aaa565b6109cb565b6040516101a7989796959493929190611e7d565b348015610345575f80fd5b5061019d6103543660046119bd565b600a60209081525f928352604080842090915290825290205481565b34801561037b575f80fd5b506101fe610a95565b34801561038f575f80fd5b506101fe61039e366004611ac1565b610aa8565b3480156103ae575f80fd5b506006546040516001600160a01b0390911681526020016101a7565b6101fe6103d8366004611eca565b610bcd565b3480156103e8575f80fd5b50610214610dce565b3480156103fc575f80fd5b506101fe61040b366004611f61565b610ddb565b34801561041b575f80fd5b506101fe61042a366004611b5b565b610e23565b34801561043a575f80fd5b506101fe610449366004611f92565b610e58565b348015610459575f80fd5b5061019d610468366004611aaa565b5f9081526009602052604090206005015490565b348015610487575f80fd5b506101cf610496366004611fab565b610e73565b3480156104a6575f80fd5b506101cf6104b536600461205a565b610ed9565b3480156104c5575f80fd5b506101fe6104d4366004612082565b610f06565b3480156104e4575f80fd5b506101fe6104f3366004611e64565b610f53565b348015610503575f80fd5b50600b546101cf9060ff1681565b5f818152602081815260408083206001600160a01b03861684529091529020545b92915050565b5f61054282610f8d565b80610532575061053282610fdc565b610559611000565b610563828261102d565b5050565b60078054610574906120e2565b80601f01602080910402602001604051908101604052809291908181526020018280546105a0906120e2565b80156105eb5780601f106105c2576101008083540402835291602001916105eb565b820191905f5260205f20905b8154815290600101906020018083116105ce57829003601f168201915b505050505081565b5f818152600960205260409020600601805460609190610612906120e2565b80601f016020809104026020016040519081016040528092919081815260200182805461063e906120e2565b80156106895780601f1061066057610100808354040283529160200191610689565b820191905f5260205f20905b81548152906001019060200180831161066c57829003601f168201915b50505050509050919050565b61069d611000565b5f8781526009602052604081205490036106ca5760405163dbe2625b60e01b815260040160405180910390fd5b85156106e4575f8781526009602052604090206001018690555b84156106fe575f8781526009602052604090206002018590555b831561073d5761071084610e1061212e565b5f8881526009602052604090206003015461072b9190612145565b5f888152600960205260409020600401555b8115610760575f87815260096020526040902060060161075e83858361219c565b505b801561077a575f8781526009602052604090206007018190555b50505050505050565b5f8281526004602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916107f75750604080518082019091526003546001600160a01b0381168252600160a01b90046001600160601b031660208201525b60208101515f9061271090610815906001600160601b03168761212e565b61081f9190612256565b915196919550909350505050565b846001600160a01b038116331461086d57731e0049783f008a0085193e00003d00cd54003c71331461086d57600b5460ff161561086d5761086d336110cf565b61087a868686868661110e565b505050505050565b606081518351146108b85781518351604051635b05999160e01b8152600481019290925260248201526044015b60405180910390fd5b5f835167ffffffffffffffff8111156108d3576108d3611b7b565b6040519080825280602002602001820160405280156108fc578160200160208202803683370190505b5090505f5b845181101561094a5760208082028601015161092590602080840287010151610511565b82828151811061093757610937612275565b6020908102919091010152600101610901565b509392505050565b61095a611000565b61096261116d565b5f816001600160a01b0316476040515f6040518083038185875af1925050503d805f81146109ab576040519150601f19603f3d011682016040523d82523d5f602084013e6109b0565b606091505b50509050806109bd575f80fd5b506109c86001600555565b50565b6009602052805f5260405f205f91509050805f015490806001015490806002015490806003015490806004015490806005015490806006018054610a0e906120e2565b80601f0160208091040260200160405190810160405280929190818152602001828054610a3a906120e2565b8015610a855780601f10610a5c57610100808354040283529160200191610a85565b820191905f5260205f20905b815481529060010190602001808311610a6857829003601f168201915b5050505050908060070154905088565b610a9d611000565b610aa65f6111c6565b565b610ab0611000565b5f8781526009602052604090205415610adc5760405163371c932360e21b815260040160405180910390fd5b60405180610100016040528088815260200187815260200186815260200142815260200185610e10610b0e919061212e565b610b189042612145565b81526020015f815260200184848080601f0160208091040260200160405190810160405280939291908181526020018383808284375f920182905250938552505050602091820184905289815260098252604090819020835181559183015160018301558201516002820155606082015160038201556080820151600482015560a0820151600582015560c08201516006820190610bb69082612289565b5060e0820151816007015590505050505050505050565b5f8581526009602052604081208054909103610bfc5760405163dbe2625b60e01b815260040160405180910390fd5b8060040154421115610c215760405163021313cf60e01b815260040160405180910390fd5b600181015415801590610c425750848160010154610c3f919061212e565b34105b15610c60576040516319739e2760e31b815260040160405180910390fd5b600281015415801590610c855750848160050154610c7e9190612145565b8160020154105b15610ca357604051633fbc2eaf60e11b815260040160405180910390fd5b600781015415801590610cdb5750335f908152600a60209081526040808320845484529091529020548490610cd9908790612145565b115b15610cf9576040516304c6a44b60e31b815260040160405180910390fd5b600781015415801590610d475750610d458633868686808060200260200160405190810160405280939291908181526020018383602002808284375f92019190915250610e7392505050565b155b15610d6557604051634994c26960e11b815260040160405180910390fd5b610d7f33878760405180602001604052805f815250611217565b84816005015f828254610d929190612145565b9091555050335f908152600a602090815260408083208454845290915281208054879290610dc1908490612145565b9091555050505050505050565b60088054610574906120e2565b81731e0049783f008a0085193e00003d00cd54003c716001600160a01b03821614610e1457600b5460ff1615610e1457610e14816110cf565b610e1e8383611272565b505050565b80610e2e3384610511565b1015610e4d5760405163b80b89f160e01b815260040160405180910390fd5b61056333838361127d565b610e60611000565b600b805460ff1916911515919091179055565b5f8481526009602090815260408083206007015490516bffffffffffffffffffffffff19606088901b169281019290925260348201859052610ed091849190605401604051602081830303815290604052805190602001206112ea565b95945050505050565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205460ff1690565b846001600160a01b0381163314610f4657731e0049783f008a0085193e00003d00cd54003c713314610f4657600b5460ff1615610f4657610f46336110cf565b61087a86868686866112ff565b610f5b611000565b6001600160a01b038116610f8457604051631e4fbdf760e01b81525f60048201526024016108af565b6109c8816111c6565b5f6001600160e01b03198216636cdb3d1360e11b1480610fbd57506001600160e01b031982166303a24d0760e21b145b8061053257506301ffc9a760e01b6001600160e01b0319831614610532565b5f6001600160e01b0319821663152a902d60e11b1480610532575061053282610f8d565b6006546001600160a01b03163314610aa65760405163118cdaa760e01b81523360048201526024016108af565b6127106001600160601b03821681101561106c57604051636f483d0960e01b81526001600160601b0383166004820152602481018290526044016108af565b6001600160a01b03831661109557604051635b6cc80560e11b81525f60048201526024016108af565b50604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600355565b69c61711340011223344555f5230601a5280603a525f80604460166daaeb6d7670e522a718067333cd4e5afa611107573d5f803e3d5ffd5b5f603a5250565b336001600160a01b038616811480159061112f575061112d8682610ed9565b155b156111605760405163711bec9160e11b81526001600160a01b038083166004830152871660248201526044016108af565b61087a868686868661135e565b6002600554036111bf5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108af565b6002600555565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b03841661124057604051632bfa23e760e11b81525f60048201526024016108af565b6040805160018082526020820186905281830190815260608201859052608082019092529061087a5f878484876113b8565b61056333838361140b565b6001600160a01b0383166112a557604051626a0d4560e21b81525f60048201526024016108af565b604080516001808252602082018590528183019081526060820184905260a082019092525f608082018181529192916112e3918791859085906113b8565b5050505050565b5f826112f6858461149f565b14949350505050565b336001600160a01b0386168114801590611320575061131e8682610ed9565b155b156113515760405163711bec9160e11b81526001600160a01b038083166004830152871660248201526044016108af565b61087a86868686866114d9565b6001600160a01b03841661138757604051632bfa23e760e11b81525f60048201526024016108af565b6001600160a01b0385166113af57604051626a0d4560e21b81525f60048201526024016108af565b6112e385858585855b6113c48585858561155c565b6001600160a01b038416156112e357825133906001036113fd57602084810151908401516113f683898985858961176b565b505061087a565b61087a81878787878761188c565b6001600160a01b0382166114335760405162ced3e160e81b81525f60048201526024016108af565b6001600160a01b038381165f81815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b5f81815b845181101561094a576114cf828683815181106114c2576114c2612275565b6020026020010151611973565b91506001016114a3565b6001600160a01b03841661150257604051632bfa23e760e11b81525f60048201526024016108af565b6001600160a01b03851661152a57604051626a0d4560e21b81525f60048201526024016108af565b6040805160018082526020820186905281830190815260608201859052608082019092529061077a87878484876113b8565b805182511461158b5781518151604051635b05999160e01b8152600481019290925260248201526044016108af565b335f5b835181101561168d576020818102858101820151908501909101516001600160a01b0388161561163f575f828152602081815260408083206001600160a01b038c16845290915290205481811015611619576040516303dee4c560e01b81526001600160a01b038a1660048201526024810182905260448101839052606481018490526084016108af565b5f838152602081815260408083206001600160a01b038d16845290915290209082900390555b6001600160a01b03871615611683575f828152602081815260408083206001600160a01b038b1684529091528120805483929061167d908490612145565b90915550505b505060010161158e565b50825160010361170d5760208301515f906020840151909150856001600160a01b0316876001600160a01b0316846001600160a01b03167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6285856040516116fe929190918252602082015260400190565b60405180910390a450506112e3565b836001600160a01b0316856001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb868660405161175c929190612345565b60405180910390a45050505050565b6001600160a01b0384163b1561087a5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906117af9089908990889088908890600401612369565b6020604051808303815f875af19250505080156117e9575060408051601f3d908101601f191682019092526117e6918101906123ad565b60015b611850573d808015611816576040519150601f19603f3d011682016040523d82523d5f602084013e61181b565b606091505b5080515f0361184857604051632bfa23e760e11b81526001600160a01b03861660048201526024016108af565b805181602001fd5b6001600160e01b0319811663f23a6e6160e01b1461077a57604051632bfa23e760e11b81526001600160a01b03861660048201526024016108af565b6001600160a01b0384163b1561087a5760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906118d090899089908890889088906004016123c8565b6020604051808303815f875af192505050801561190a575060408051601f3d908101601f19168201909252611907918101906123ad565b60015b611937573d808015611816576040519150601f19603f3d011682016040523d82523d5f602084013e61181b565b6001600160e01b0319811663bc197c8160e01b1461077a57604051632bfa23e760e11b81526001600160a01b03861660048201526024016108af565b5f81831061198d575f82815260208490526040902061199b565b5f8381526020839052604090205b9392505050565b80356001600160a01b03811681146119b8575f80fd5b919050565b5f80604083850312156119ce575f80fd5b6119d7836119a2565b946020939093013593505050565b6001600160e01b0319811681146109c8575f80fd5b5f60208284031215611a0a575f80fd5b813561199b816119e5565b5f8060408385031215611a26575f80fd5b611a2f836119a2565b915060208301356001600160601b0381168114611a4a575f80fd5b809150509250929050565b5f81518084525f5b81811015611a7957602081850181015186830182015201611a5d565b505f602082860101526020601f19601f83011685010191505092915050565b602081525f61199b6020830184611a55565b5f60208284031215611aba575f80fd5b5035919050565b5f805f805f805f60c0888a031215611ad7575f80fd5b87359650602088013595506040880135945060608801359350608088013567ffffffffffffffff80821115611b0a575f80fd5b818a0191508a601f830112611b1d575f80fd5b813581811115611b2b575f80fd5b8b6020828501011115611b3c575f80fd5b60208301955080945050505060a0880135905092959891949750929550565b5f8060408385031215611b6c575f80fd5b50508035926020909101359150565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611bb857611bb8611b7b565b604052919050565b5f67ffffffffffffffff821115611bd957611bd9611b7b565b5060051b60200190565b5f82601f830112611bf2575f80fd5b81356020611c07611c0283611bc0565b611b8f565b8083825260208201915060208460051b870101935086841115611c28575f80fd5b602086015b84811015611c445780358352918301918301611c2d565b509695505050505050565b5f82601f830112611c5e575f80fd5b813567ffffffffffffffff811115611c7857611c78611b7b565b611c8b601f8201601f1916602001611b8f565b818152846020838601011115611c9f575f80fd5b816020850160208301375f918101602001919091529392505050565b5f805f805f60a08688031215611ccf575f80fd5b611cd8866119a2565b9450611ce6602087016119a2565b9350604086013567ffffffffffffffff80821115611d02575f80fd5b611d0e89838a01611be3565b94506060880135915080821115611d23575f80fd5b611d2f89838a01611be3565b93506080880135915080821115611d44575f80fd5b50611d5188828901611c4f565b9150509295509295909350565b5f8060408385031215611d6f575f80fd5b823567ffffffffffffffff80821115611d86575f80fd5b818501915085601f830112611d99575f80fd5b81356020611da9611c0283611bc0565b82815260059290921b84018101918181019089841115611dc7575f80fd5b948201945b83861015611dec57611ddd866119a2565b82529482019490820190611dcc565b96505086013592505080821115611e01575f80fd5b50611e0e85828601611be3565b9150509250929050565b5f815180845260208085019450602084015f5b83811015611e4757815187529582019590820190600101611e2b565b509495945050505050565b602081525f61199b6020830184611e18565b5f60208284031215611e74575f80fd5b61199b826119a2565b5f6101008a83528960208401528860408401528760608401528660808401528560a08401528060c0840152611eb481840186611a55565b9150508260e08301529998505050505050505050565b5f805f805f60808688031215611ede575f80fd5b853594506020860135935060408601359250606086013567ffffffffffffffff80821115611f0a575f80fd5b818801915088601f830112611f1d575f80fd5b813581811115611f2b575f80fd5b8960208260051b8501011115611f3f575f80fd5b9699959850939650602001949392505050565b803580151581146119b8575f80fd5b5f8060408385031215611f72575f80fd5b611f7b836119a2565b9150611f8960208401611f52565b90509250929050565b5f60208284031215611fa2575f80fd5b61199b82611f52565b5f805f8060808587031215611fbe575f80fd5b843593506020611fcf8187016119a2565b935060408601359250606086013567ffffffffffffffff811115611ff1575f80fd5b8601601f81018813612001575f80fd5b803561200f611c0282611bc0565b81815260059190911b8201830190838101908a83111561202d575f80fd5b928401925b8284101561204b57833582529284019290840190612032565b979a9699509497505050505050565b5f806040838503121561206b575f80fd5b612074836119a2565b9150611f89602084016119a2565b5f805f805f60a08688031215612096575f80fd5b61209f866119a2565b94506120ad602087016119a2565b93506040860135925060608601359150608086013567ffffffffffffffff8111156120d6575f80fd5b611d5188828901611c4f565b600181811c908216806120f657607f821691505b60208210810361211457634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176105325761053261211a565b808201808211156105325761053261211a565b601f821115610e1e57805f5260205f20601f840160051c8101602085101561217d5750805b601f840160051c820191505b818110156112e3575f8155600101612189565b67ffffffffffffffff8311156121b4576121b4611b7b565b6121c8836121c283546120e2565b83612158565b5f601f8411600181146121f9575f85156121e25750838201355b5f19600387901b1c1916600186901b1783556112e3565b5f83815260208120601f198716915b828110156122285786850135825560209485019460019092019101612208565b5086821015612244575f1960f88860031b161c19848701351681555b505060018560011b0183555050505050565b5f8261227057634e487b7160e01b5f52601260045260245ffd5b500490565b634e487b7160e01b5f52603260045260245ffd5b815167ffffffffffffffff8111156122a3576122a3611b7b565b6122b7816122b184546120e2565b84612158565b602080601f8311600181146122ea575f84156122d35750858301515b5f19600386901b1c1916600185901b17855561087a565b5f85815260208120601f198616915b82811015612318578886015182559484019460019091019084016122f9565b508582101561233557878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b604081525f6123576040830185611e18565b8281036020840152610ed08185611e18565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190525f906123a290830184611a55565b979650505050505050565b5f602082840312156123bd575f80fd5b815161199b816119e5565b6001600160a01b0386811682528516602082015260a0604082018190525f906123f390830186611e18565b82810360608401526124058186611e18565b905082810360808401526124198185611a55565b9897505050505050505056fea264697066735822122037261356ba224cef788ded540ce5a803b50b966e0167f4089c5c3aa3e78b18f364736f6c63430008160033000000000000000000000000378f18b1e9070d0729359cf0829884831dd344f9
Deployed Bytecode
0x60806040526004361061017a575f3560e01c806383c33fbf116100cd578063b7c0b8e811610087578063e985e9c511610062578063e985e9c51461049b578063f242432a146104ba578063f2fde38b146104d9578063fb796e6c146104f8575f80fd5b8063b7c0b8e81461042f578063bd85b0391461044e578063dee225e91461047c575f80fd5b806383c33fbf146103845780638da5cb5b146103a3578063935a1976146103ca57806395d89b41146103dd578063a22cb465146103f1578063b390c0ab14610410575f80fd5b80632a55205a1161013857806351cff8d91161011357806351cff8d9146102e85780635eb39968146103075780636d0a51a41461033a578063715018a614610370575f80fd5b80632a55205a1461025f5780632eb2c2d61461029d5780634e1273f4146102bc575f80fd5b8062fdd58e1461017e57806301ffc9a7146101b057806304634d8d146101df57806306fdde03146102005780630e89341c14610221578063280d4ac414610240575b5f80fd5b348015610189575f80fd5b5061019d6101983660046119bd565b610511565b6040519081526020015b60405180910390f35b3480156101bb575f80fd5b506101cf6101ca3660046119fa565b610538565b60405190151581526020016101a7565b3480156101ea575f80fd5b506101fe6101f9366004611a15565b610551565b005b34801561020b575f80fd5b50610214610567565b6040516101a79190611a98565b34801561022c575f80fd5b5061021461023b366004611aaa565b6105f3565b34801561024b575f80fd5b506101fe61025a366004611ac1565b610695565b34801561026a575f80fd5b5061027e610279366004611b5b565b610783565b604080516001600160a01b0390931683526020830191909152016101a7565b3480156102a8575f80fd5b506101fe6102b7366004611cbb565b61082d565b3480156102c7575f80fd5b506102db6102d6366004611d5e565b610882565b6040516101a79190611e52565b3480156102f3575f80fd5b506101fe610302366004611e64565b610952565b348015610312575f80fd5b50610326610321366004611aaa565b6109cb565b6040516101a7989796959493929190611e7d565b348015610345575f80fd5b5061019d6103543660046119bd565b600a60209081525f928352604080842090915290825290205481565b34801561037b575f80fd5b506101fe610a95565b34801561038f575f80fd5b506101fe61039e366004611ac1565b610aa8565b3480156103ae575f80fd5b506006546040516001600160a01b0390911681526020016101a7565b6101fe6103d8366004611eca565b610bcd565b3480156103e8575f80fd5b50610214610dce565b3480156103fc575f80fd5b506101fe61040b366004611f61565b610ddb565b34801561041b575f80fd5b506101fe61042a366004611b5b565b610e23565b34801561043a575f80fd5b506101fe610449366004611f92565b610e58565b348015610459575f80fd5b5061019d610468366004611aaa565b5f9081526009602052604090206005015490565b348015610487575f80fd5b506101cf610496366004611fab565b610e73565b3480156104a6575f80fd5b506101cf6104b536600461205a565b610ed9565b3480156104c5575f80fd5b506101fe6104d4366004612082565b610f06565b3480156104e4575f80fd5b506101fe6104f3366004611e64565b610f53565b348015610503575f80fd5b50600b546101cf9060ff1681565b5f818152602081815260408083206001600160a01b03861684529091529020545b92915050565b5f61054282610f8d565b80610532575061053282610fdc565b610559611000565b610563828261102d565b5050565b60078054610574906120e2565b80601f01602080910402602001604051908101604052809291908181526020018280546105a0906120e2565b80156105eb5780601f106105c2576101008083540402835291602001916105eb565b820191905f5260205f20905b8154815290600101906020018083116105ce57829003601f168201915b505050505081565b5f818152600960205260409020600601805460609190610612906120e2565b80601f016020809104026020016040519081016040528092919081815260200182805461063e906120e2565b80156106895780601f1061066057610100808354040283529160200191610689565b820191905f5260205f20905b81548152906001019060200180831161066c57829003601f168201915b50505050509050919050565b61069d611000565b5f8781526009602052604081205490036106ca5760405163dbe2625b60e01b815260040160405180910390fd5b85156106e4575f8781526009602052604090206001018690555b84156106fe575f8781526009602052604090206002018590555b831561073d5761071084610e1061212e565b5f8881526009602052604090206003015461072b9190612145565b5f888152600960205260409020600401555b8115610760575f87815260096020526040902060060161075e83858361219c565b505b801561077a575f8781526009602052604090206007018190555b50505050505050565b5f8281526004602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916107f75750604080518082019091526003546001600160a01b0381168252600160a01b90046001600160601b031660208201525b60208101515f9061271090610815906001600160601b03168761212e565b61081f9190612256565b915196919550909350505050565b846001600160a01b038116331461086d57731e0049783f008a0085193e00003d00cd54003c71331461086d57600b5460ff161561086d5761086d336110cf565b61087a868686868661110e565b505050505050565b606081518351146108b85781518351604051635b05999160e01b8152600481019290925260248201526044015b60405180910390fd5b5f835167ffffffffffffffff8111156108d3576108d3611b7b565b6040519080825280602002602001820160405280156108fc578160200160208202803683370190505b5090505f5b845181101561094a5760208082028601015161092590602080840287010151610511565b82828151811061093757610937612275565b6020908102919091010152600101610901565b509392505050565b61095a611000565b61096261116d565b5f816001600160a01b0316476040515f6040518083038185875af1925050503d805f81146109ab576040519150601f19603f3d011682016040523d82523d5f602084013e6109b0565b606091505b50509050806109bd575f80fd5b506109c86001600555565b50565b6009602052805f5260405f205f91509050805f015490806001015490806002015490806003015490806004015490806005015490806006018054610a0e906120e2565b80601f0160208091040260200160405190810160405280929190818152602001828054610a3a906120e2565b8015610a855780601f10610a5c57610100808354040283529160200191610a85565b820191905f5260205f20905b815481529060010190602001808311610a6857829003601f168201915b5050505050908060070154905088565b610a9d611000565b610aa65f6111c6565b565b610ab0611000565b5f8781526009602052604090205415610adc5760405163371c932360e21b815260040160405180910390fd5b60405180610100016040528088815260200187815260200186815260200142815260200185610e10610b0e919061212e565b610b189042612145565b81526020015f815260200184848080601f0160208091040260200160405190810160405280939291908181526020018383808284375f920182905250938552505050602091820184905289815260098252604090819020835181559183015160018301558201516002820155606082015160038201556080820151600482015560a0820151600582015560c08201516006820190610bb69082612289565b5060e0820151816007015590505050505050505050565b5f8581526009602052604081208054909103610bfc5760405163dbe2625b60e01b815260040160405180910390fd5b8060040154421115610c215760405163021313cf60e01b815260040160405180910390fd5b600181015415801590610c425750848160010154610c3f919061212e565b34105b15610c60576040516319739e2760e31b815260040160405180910390fd5b600281015415801590610c855750848160050154610c7e9190612145565b8160020154105b15610ca357604051633fbc2eaf60e11b815260040160405180910390fd5b600781015415801590610cdb5750335f908152600a60209081526040808320845484529091529020548490610cd9908790612145565b115b15610cf9576040516304c6a44b60e31b815260040160405180910390fd5b600781015415801590610d475750610d458633868686808060200260200160405190810160405280939291908181526020018383602002808284375f92019190915250610e7392505050565b155b15610d6557604051634994c26960e11b815260040160405180910390fd5b610d7f33878760405180602001604052805f815250611217565b84816005015f828254610d929190612145565b9091555050335f908152600a602090815260408083208454845290915281208054879290610dc1908490612145565b9091555050505050505050565b60088054610574906120e2565b81731e0049783f008a0085193e00003d00cd54003c716001600160a01b03821614610e1457600b5460ff1615610e1457610e14816110cf565b610e1e8383611272565b505050565b80610e2e3384610511565b1015610e4d5760405163b80b89f160e01b815260040160405180910390fd5b61056333838361127d565b610e60611000565b600b805460ff1916911515919091179055565b5f8481526009602090815260408083206007015490516bffffffffffffffffffffffff19606088901b169281019290925260348201859052610ed091849190605401604051602081830303815290604052805190602001206112ea565b95945050505050565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205460ff1690565b846001600160a01b0381163314610f4657731e0049783f008a0085193e00003d00cd54003c713314610f4657600b5460ff1615610f4657610f46336110cf565b61087a86868686866112ff565b610f5b611000565b6001600160a01b038116610f8457604051631e4fbdf760e01b81525f60048201526024016108af565b6109c8816111c6565b5f6001600160e01b03198216636cdb3d1360e11b1480610fbd57506001600160e01b031982166303a24d0760e21b145b8061053257506301ffc9a760e01b6001600160e01b0319831614610532565b5f6001600160e01b0319821663152a902d60e11b1480610532575061053282610f8d565b6006546001600160a01b03163314610aa65760405163118cdaa760e01b81523360048201526024016108af565b6127106001600160601b03821681101561106c57604051636f483d0960e01b81526001600160601b0383166004820152602481018290526044016108af565b6001600160a01b03831661109557604051635b6cc80560e11b81525f60048201526024016108af565b50604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600355565b69c61711340011223344555f5230601a5280603a525f80604460166daaeb6d7670e522a718067333cd4e5afa611107573d5f803e3d5ffd5b5f603a5250565b336001600160a01b038616811480159061112f575061112d8682610ed9565b155b156111605760405163711bec9160e11b81526001600160a01b038083166004830152871660248201526044016108af565b61087a868686868661135e565b6002600554036111bf5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016108af565b6002600555565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b03841661124057604051632bfa23e760e11b81525f60048201526024016108af565b6040805160018082526020820186905281830190815260608201859052608082019092529061087a5f878484876113b8565b61056333838361140b565b6001600160a01b0383166112a557604051626a0d4560e21b81525f60048201526024016108af565b604080516001808252602082018590528183019081526060820184905260a082019092525f608082018181529192916112e3918791859085906113b8565b5050505050565b5f826112f6858461149f565b14949350505050565b336001600160a01b0386168114801590611320575061131e8682610ed9565b155b156113515760405163711bec9160e11b81526001600160a01b038083166004830152871660248201526044016108af565b61087a86868686866114d9565b6001600160a01b03841661138757604051632bfa23e760e11b81525f60048201526024016108af565b6001600160a01b0385166113af57604051626a0d4560e21b81525f60048201526024016108af565b6112e385858585855b6113c48585858561155c565b6001600160a01b038416156112e357825133906001036113fd57602084810151908401516113f683898985858961176b565b505061087a565b61087a81878787878761188c565b6001600160a01b0382166114335760405162ced3e160e81b81525f60048201526024016108af565b6001600160a01b038381165f81815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b5f81815b845181101561094a576114cf828683815181106114c2576114c2612275565b6020026020010151611973565b91506001016114a3565b6001600160a01b03841661150257604051632bfa23e760e11b81525f60048201526024016108af565b6001600160a01b03851661152a57604051626a0d4560e21b81525f60048201526024016108af565b6040805160018082526020820186905281830190815260608201859052608082019092529061077a87878484876113b8565b805182511461158b5781518151604051635b05999160e01b8152600481019290925260248201526044016108af565b335f5b835181101561168d576020818102858101820151908501909101516001600160a01b0388161561163f575f828152602081815260408083206001600160a01b038c16845290915290205481811015611619576040516303dee4c560e01b81526001600160a01b038a1660048201526024810182905260448101839052606481018490526084016108af565b5f838152602081815260408083206001600160a01b038d16845290915290209082900390555b6001600160a01b03871615611683575f828152602081815260408083206001600160a01b038b1684529091528120805483929061167d908490612145565b90915550505b505060010161158e565b50825160010361170d5760208301515f906020840151909150856001600160a01b0316876001600160a01b0316846001600160a01b03167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6285856040516116fe929190918252602082015260400190565b60405180910390a450506112e3565b836001600160a01b0316856001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb868660405161175c929190612345565b60405180910390a45050505050565b6001600160a01b0384163b1561087a5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906117af9089908990889088908890600401612369565b6020604051808303815f875af19250505080156117e9575060408051601f3d908101601f191682019092526117e6918101906123ad565b60015b611850573d808015611816576040519150601f19603f3d011682016040523d82523d5f602084013e61181b565b606091505b5080515f0361184857604051632bfa23e760e11b81526001600160a01b03861660048201526024016108af565b805181602001fd5b6001600160e01b0319811663f23a6e6160e01b1461077a57604051632bfa23e760e11b81526001600160a01b03861660048201526024016108af565b6001600160a01b0384163b1561087a5760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906118d090899089908890889088906004016123c8565b6020604051808303815f875af192505050801561190a575060408051601f3d908101601f19168201909252611907918101906123ad565b60015b611937573d808015611816576040519150601f19603f3d011682016040523d82523d5f602084013e61181b565b6001600160e01b0319811663bc197c8160e01b1461077a57604051632bfa23e760e11b81526001600160a01b03861660048201526024016108af565b5f81831061198d575f82815260208490526040902061199b565b5f8381526020839052604090205b9392505050565b80356001600160a01b03811681146119b8575f80fd5b919050565b5f80604083850312156119ce575f80fd5b6119d7836119a2565b946020939093013593505050565b6001600160e01b0319811681146109c8575f80fd5b5f60208284031215611a0a575f80fd5b813561199b816119e5565b5f8060408385031215611a26575f80fd5b611a2f836119a2565b915060208301356001600160601b0381168114611a4a575f80fd5b809150509250929050565b5f81518084525f5b81811015611a7957602081850181015186830182015201611a5d565b505f602082860101526020601f19601f83011685010191505092915050565b602081525f61199b6020830184611a55565b5f60208284031215611aba575f80fd5b5035919050565b5f805f805f805f60c0888a031215611ad7575f80fd5b87359650602088013595506040880135945060608801359350608088013567ffffffffffffffff80821115611b0a575f80fd5b818a0191508a601f830112611b1d575f80fd5b813581811115611b2b575f80fd5b8b6020828501011115611b3c575f80fd5b60208301955080945050505060a0880135905092959891949750929550565b5f8060408385031215611b6c575f80fd5b50508035926020909101359150565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff81118282101715611bb857611bb8611b7b565b604052919050565b5f67ffffffffffffffff821115611bd957611bd9611b7b565b5060051b60200190565b5f82601f830112611bf2575f80fd5b81356020611c07611c0283611bc0565b611b8f565b8083825260208201915060208460051b870101935086841115611c28575f80fd5b602086015b84811015611c445780358352918301918301611c2d565b509695505050505050565b5f82601f830112611c5e575f80fd5b813567ffffffffffffffff811115611c7857611c78611b7b565b611c8b601f8201601f1916602001611b8f565b818152846020838601011115611c9f575f80fd5b816020850160208301375f918101602001919091529392505050565b5f805f805f60a08688031215611ccf575f80fd5b611cd8866119a2565b9450611ce6602087016119a2565b9350604086013567ffffffffffffffff80821115611d02575f80fd5b611d0e89838a01611be3565b94506060880135915080821115611d23575f80fd5b611d2f89838a01611be3565b93506080880135915080821115611d44575f80fd5b50611d5188828901611c4f565b9150509295509295909350565b5f8060408385031215611d6f575f80fd5b823567ffffffffffffffff80821115611d86575f80fd5b818501915085601f830112611d99575f80fd5b81356020611da9611c0283611bc0565b82815260059290921b84018101918181019089841115611dc7575f80fd5b948201945b83861015611dec57611ddd866119a2565b82529482019490820190611dcc565b96505086013592505080821115611e01575f80fd5b50611e0e85828601611be3565b9150509250929050565b5f815180845260208085019450602084015f5b83811015611e4757815187529582019590820190600101611e2b565b509495945050505050565b602081525f61199b6020830184611e18565b5f60208284031215611e74575f80fd5b61199b826119a2565b5f6101008a83528960208401528860408401528760608401528660808401528560a08401528060c0840152611eb481840186611a55565b9150508260e08301529998505050505050505050565b5f805f805f60808688031215611ede575f80fd5b853594506020860135935060408601359250606086013567ffffffffffffffff80821115611f0a575f80fd5b818801915088601f830112611f1d575f80fd5b813581811115611f2b575f80fd5b8960208260051b8501011115611f3f575f80fd5b9699959850939650602001949392505050565b803580151581146119b8575f80fd5b5f8060408385031215611f72575f80fd5b611f7b836119a2565b9150611f8960208401611f52565b90509250929050565b5f60208284031215611fa2575f80fd5b61199b82611f52565b5f805f8060808587031215611fbe575f80fd5b843593506020611fcf8187016119a2565b935060408601359250606086013567ffffffffffffffff811115611ff1575f80fd5b8601601f81018813612001575f80fd5b803561200f611c0282611bc0565b81815260059190911b8201830190838101908a83111561202d575f80fd5b928401925b8284101561204b57833582529284019290840190612032565b979a9699509497505050505050565b5f806040838503121561206b575f80fd5b612074836119a2565b9150611f89602084016119a2565b5f805f805f60a08688031215612096575f80fd5b61209f866119a2565b94506120ad602087016119a2565b93506040860135925060608601359150608086013567ffffffffffffffff8111156120d6575f80fd5b611d5188828901611c4f565b600181811c908216806120f657607f821691505b60208210810361211457634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176105325761053261211a565b808201808211156105325761053261211a565b601f821115610e1e57805f5260205f20601f840160051c8101602085101561217d5750805b601f840160051c820191505b818110156112e3575f8155600101612189565b67ffffffffffffffff8311156121b4576121b4611b7b565b6121c8836121c283546120e2565b83612158565b5f601f8411600181146121f9575f85156121e25750838201355b5f19600387901b1c1916600186901b1783556112e3565b5f83815260208120601f198716915b828110156122285786850135825560209485019460019092019101612208565b5086821015612244575f1960f88860031b161c19848701351681555b505060018560011b0183555050505050565b5f8261227057634e487b7160e01b5f52601260045260245ffd5b500490565b634e487b7160e01b5f52603260045260245ffd5b815167ffffffffffffffff8111156122a3576122a3611b7b565b6122b7816122b184546120e2565b84612158565b602080601f8311600181146122ea575f84156122d35750858301515b5f19600386901b1c1916600185901b17855561087a565b5f85815260208120601f198616915b82811015612318578886015182559484019460019091019084016122f9565b508582101561233557878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b604081525f6123576040830185611e18565b8281036020840152610ed08185611e18565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190525f906123a290830184611a55565b979650505050505050565b5f602082840312156123bd575f80fd5b815161199b816119e5565b6001600160a01b0386811682528516602082015260a0604082018190525f906123f390830186611e18565b82810360608401526124058186611e18565b905082810360808401526124198185611a55565b9897505050505050505056fea264697066735822122037261356ba224cef788ded540ce5a803b50b966e0167f4089c5c3aa3e78b18f364736f6c63430008160033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000378f18b1e9070d0729359cf0829884831dd344f9
-----Decoded View---------------
Arg [0] : deployer (address): 0x378F18b1e9070d0729359CF0829884831dd344f9
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000378f18b1e9070d0729359cf0829884831dd344f9
Deployed Bytecode Sourcemap
261:5456:17:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2163:132:2;;;;;;;;;;-1:-1:-1;2163:132:2;;;;;:::i;:::-;;:::i;:::-;;;597:25:18;;;585:2;570:18;2163:132:2;;;;;;;;4882:257:17;;;;;;;;;;-1:-1:-1;4882:257:17;;;;;:::i;:::-;;:::i;:::-;;;1184:14:18;;1177:22;1159:41;;1147:2;1132:18;4882:257:17;1019:187:18;5145:142:17;;;;;;;;;;-1:-1:-1;5145:142:17;;;;;:::i;:::-;;:::i;:::-;;362:45;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;3610:125::-;;;;;;;;;;-1:-1:-1;3610:125:17;;;;;:::i;:::-;;:::i;1734:608::-;;;;;;;;;;-1:-1:-1;1734:608:17;;;;;:::i;:::-;;:::i;2336:419:4:-;;;;;;;;;;-1:-1:-1;2336:419:4;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;3805:32:18;;;3787:51;;3869:2;3854:18;;3847:34;;;;3760:18;2336:419:4;3613:274:18;4590:286:17;;;;;;;;;;-1:-1:-1;4590:286:17;;;;;:::i;:::-;;:::i;2452:552:2:-;;;;;;;;;;-1:-1:-1;2452:552:2;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;3872:172:17:-;;;;;;;;;;-1:-1:-1;3872:172:17;;;;;:::i;:::-;;:::i;661:37::-;;;;;;;;;;-1:-1:-1;661:37:17;;;;;:::i;:::-;;:::i;:::-;;;;;;;;;;;;;;:::i;704:62::-;;;;;;;;;;-1:-1:-1;704:62:17;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;2284:101:13;;;;;;;;;;;;;:::i;1232:496:17:-;;;;;;;;;;-1:-1:-1;1232:496:17;;;;;:::i;:::-;;:::i;1629:85:13:-;;;;;;;;;;-1:-1:-1;1701:6:13;;1629:85;;-1:-1:-1;;;;;1701:6:13;;;9594:51:18;;9582:2;9567:18;1629:85:13;9448:203:18;2348:820:17;;;;;;:::i;:::-;;:::i;413:29::-;;;;;;;;;;;;;:::i;4050:202::-;;;;;;;;;;-1:-1:-1;4050:202:17;;;;;:::i;:::-;;:::i;3420:184::-;;;;;;;;;;-1:-1:-1;3420:184:17;;;;;:::i;:::-;;:::i;5293:115::-;;;;;;;;;;-1:-1:-1;5293:115:17;;;;;:::i;:::-;;:::i;3741:121::-;;;;;;;;;;-1:-1:-1;3741:121:17;;;;;:::i;:::-;3808:7;3834:14;;;:5;:14;;;;;:21;;;;3741:121;3174:240;;;;;;;;;;-1:-1:-1;3174:240:17;;;;;:::i;:::-;;:::i;3283:157:2:-;;;;;;;;;;-1:-1:-1;3283:157:2;;;;;:::i;:::-;;:::i;4320:264:17:-;;;;;;;;;;-1:-1:-1;4320:264:17;;;;;:::i;:::-;;:::i;2534:215:13:-;;;;;;;;;;-1:-1:-1;2534:215:13;;;;;:::i;:::-;;:::i;772:36:17:-;;;;;;;;;;-1:-1:-1;772:36:17;;;;;;;;2163:132:2;2240:7;2266:13;;;;;;;;;;;-1:-1:-1;;;;;2266:22:2;;;;;;;;;;2163:132;;;;;:::o;4882:257:17:-;5025:4;5052:38;5078:11;5052:25;:38::i;:::-;:80;;;;5094:38;5120:11;5094:25;:38::i;5145:142::-;1522:13:13;:11;:13::i;:::-;5238:42:17::1;5257:8;5267:12;5238:18;:42::i;:::-;5145:142:::0;;:::o;362:45::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;3610:125::-;3710:14;;;;:5;:14;;;;;:18;;3703:25;;3678:13;;3710:18;3703:25;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3610:125;;;:::o;1734:608::-;1522:13:13;:11;:13::i;:::-;1943:14:17::1;::::0;;;:5:::1;:14;::::0;;;;:22;:27;;1939:48:::1;;1979:8;;-1:-1:-1::0;;;1979:8:17::1;;;;;;;;;;;1939:48;2001:10:::0;;1997:49:::1;;2015:14;::::0;;;:5:::1;:14;::::0;;;;:20:::1;;:28:::0;;;1997:49:::1;2059:11:::0;;2055:52:::1;;2074:14;::::0;;;:5:::1;:14;::::0;;;;:21:::1;;:30:::0;;;2055:52:::1;2120:9:::0;;2116:82:::1;;2180:14;:4:::0;2187:7:::1;2180:14;:::i;:::-;2155;::::0;;;:5:::1;:14;::::0;;;;:21:::1;;::::0;:40:::1;::::0;;::::1;:::i;:::-;2133:14;::::0;;;:5:::1;:14;::::0;;;;:19:::1;;:62:::0;2116:82:::1;2211:22:::0;;2207:57:::1;;2237:14;::::0;;;:5:::1;:14;::::0;;;;:18:::1;;:24;2258:3:::0;;2237:18;:24:::1;:::i;:::-;;2207:57;2277:16:::0;;2273:63:::1;;2297:14;::::0;;;:5:::1;:14;::::0;;;;:24:::1;;:36:::0;;;2273:63:::1;1734:608:::0;;;;;;;:::o;2336:419:4:-;2422:7;2479:26;;;:17;:26;;;;;;;;2450:55;;;;;;;;;-1:-1:-1;;;;;2450:55:4;;;;;-1:-1:-1;;;2450:55:4;;;-1:-1:-1;;;;;2450:55:4;;;;;;;;2422:7;;2516:90;;-1:-1:-1;2566:29:4;;;;;;;;;2576:19;2566:29;-1:-1:-1;;;;;2566:29:4;;;;-1:-1:-1;;;2566:29:4;;-1:-1:-1;;;;;2566:29:4;;;;;2516:90;2653:23;;;;2616:21;;3113:5;;2641:35;;-1:-1:-1;;;;;2641:35:4;:9;:35;:::i;:::-;2640:57;;;;:::i;:::-;2716:16;;;;;-1:-1:-1;2336:419:4;;-1:-1:-1;;;;2336:419:4:o;4590:286:17:-;4796:4;-1:-1:-1;;;;;3147:18:12;;3155:10;3147:18;3143:180;;5665:42:17;3206:10:12;5645:63:17;3181:132:12;;5506:24:17;;;;3237:61:12;;;3270:28;3287:10;3270:16;:28::i;:::-;4812:57:17::1;4840:4;4846:2;4850:3;4855:7;4864:4;4812:27;:57::i;:::-;4590:286:::0;;;;;;:::o;2452:552:2:-;2576:16;2627:3;:10;2608:8;:15;:29;2604:121;;2686:10;;2698:15;;2660:54;;-1:-1:-1;;;2660:54:2;;;;;16312:25:18;;;;16353:18;;;16346:34;16285:18;;2660:54:2;;;;;;;;2604:121;2735:30;2782:8;:15;2768:30;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2768:30:2;;2735:63;;2814:9;2809:158;2833:8;:15;2829:1;:19;2809:158;;;4768:4:0;4759:14;;;4739:35;;;4733:42;2888:68:2;;4768:4:0;4759:14;;;4739:35;;;4733:42;2163:132:2;:::i;2888:68::-;2869:13;2883:1;2869:16;;;;;;;;:::i;:::-;;;;;;;;;;:87;2850:3;;2809:158;;;-1:-1:-1;2984:13:2;2452:552;-1:-1:-1;;;2452:552:2:o;3872:172:17:-;1522:13:13;:11;:13::i;:::-;2261:21:14::1;:19;:21::i;:::-;3943:12:17::2;3969:2;-1:-1:-1::0;;;;;3961:16:17::2;3985:21;3961:50;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3942:69;;;4029:7;4021:16;;;::::0;::::2;;3932:112;2303:20:14::1;1716:1:::0;2809:7;:22;2629:209;2303:20:::1;3872:172:17::0;:::o;661:37::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;2284:101:13:-;1522:13;:11;:13::i;:::-;2348:30:::1;2375:1;2348:18;:30::i;:::-;2284:101::o:0;1232:496:17:-;1522:13:13;:11;:13::i;:::-;1466:1:17::1;1441:14:::0;;;:5:::1;:14;::::0;;;;:22;:26;1437:51:::1;;1476:12;;-1:-1:-1::0;;;1476:12:17::1;;;;;;;;;;;1437:51;1515:206;;;;;;;;1533:7;1515:206;;;;1554:5;1515:206;;;;1573:6;1515:206;;;;1593:15;1515:206;;;;1641:4;1648:7;1641:14;;;;:::i;:::-;1622:34;::::0;:15:::1;:34;:::i;:::-;1515:206;;;;1670:1;1515:206;;;;1685:3;;1515:206;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;::::0;;;-1:-1:-1;1515:206:17;;;-1:-1:-1;;;1515:206:17::1;::::0;;::::1;::::0;;;1498:14;;;:5:::1;:14:::0;;;;;;;:223;;;;;;::::1;::::0;::::1;::::0;::::1;::::0;;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;::::1;::::0;;::::1;:::i;:::-;;;;;;;;;;;;;1232:496:::0;;;;;;;:::o;2348:820::-;2505:17;2525:14;;;:5;:14;;;;;2553:12;;2525:14;;2553:17;2549:38;;2579:8;;-1:-1:-1;;;2579:8:17;;;;;;;;;;;2549:38;2619:4;:9;;;2601:15;:27;2597:51;;;2637:11;;-1:-1:-1;;;2637:11:17;;;;;;;;;;;2597:51;2662:10;;;;:15;;;;:50;;;2706:6;2693:4;:10;;;:19;;;;:::i;:::-;2681:9;:31;2662:50;2658:72;;;2721:9;;-1:-1:-1;;;2721:9:17;;;;;;;;;;;2658:72;2744:11;;;;:16;;;;:54;;;2792:6;2778:4;:11;;;:20;;;;:::i;:::-;2764:4;:11;;;:34;2744:54;2740:77;;;2807:10;;-1:-1:-1;;;2807:10:17;;;;;;;;;;;2740:77;2831:14;;;;:21;;;;:75;;-1:-1:-1;2864:10:17;2856:19;;;;:7;:19;;;;;;;;2876:12;;2856:33;;;;;;;;2901:5;;2856:42;;2892:6;;2856:42;:::i;:::-;:50;2831:75;2827:99;;;2915:11;;-1:-1:-1;;;2915:11:17;;;;;;;;;;;2827:99;2940:14;;;;:21;;;;:68;;;2966:42;2974:7;2983:10;2995:5;3002;;2966:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;2966:7:17;;-1:-1:-1;;;2966:42:17:i;:::-;2965:43;2940:68;2936:93;;;3017:12;;-1:-1:-1;;;3017:12:17;;;;;;;;;;;2936:93;3039:38;3045:10;3057:7;3066:6;3039:38;;;;;;;;;;;;:5;:38::i;:::-;3102:6;3087:4;:11;;;:21;;;;;;;:::i;:::-;;;;-1:-1:-1;;3126:10:17;3118:19;;;;:7;:19;;;;;;;;3138:12;;3118:33;;;;;;;:43;;3155:6;;3118:19;:43;;3155:6;;3118:43;:::i;:::-;;;;-1:-1:-1;;;;;;;;2348:820:17:o;413:29::-;;;;;;;:::i;4050:202::-;4178:8;5665:42;-1:-1:-1;;;;;5645:63:17;;;3497:120:12;;5506:24:17;;;;3547:59:12;;;3580:26;3597:8;3580:16;:26::i;:::-;4202:43:17::1;4226:8;4236;4202:23;:43::i;:::-;4050:202:::0;;;:::o;3420:184::-;3523:6;3490:30;3500:10;3512:7;3490:9;:30::i;:::-;:39;3486:67;;;3538:15;;-1:-1:-1;;;3538:15:17;;;;;;;;;;;3486:67;3563:34;3569:10;3581:7;3590:6;3563:5;:34::i;5293:115::-;1522:13:13;:11;:13::i;:::-;5369:24:17::1;:32:::0;;-1:-1:-1;;5369:32:17::1;::::0;::::1;;::::0;;;::::1;::::0;;5293:115::o;3174:240::-;3284:12;3340:14;;;:5;:14;;;;;;;;:24;;;3375:30;;-1:-1:-1;;18260:2:18;18256:15;;;18252:53;3375:30:17;;;18240:66:18;;;;18322:12;;;18315:28;;;3315:92:17;;3334:5;;3340:24;18359:12:18;;3375:30:17;;;;;;;;;;;;3365:41;;;;;;3315:18;:92::i;:::-;3308:99;3174:240;-1:-1:-1;;;;;3174:240:17:o;3283:157:2:-;-1:-1:-1;;;;;3396:27:2;;;3373:4;3396:27;;;:18;:27;;;;;;;;:37;;;;;;;;;;;;;;;3283:157::o;4320:264:17:-;4506:4;-1:-1:-1;;;;;3147:18:12;;3155:10;3147:18;3143:180;;5665:42:17;3206:10:12;5645:63:17;3181:132:12;;5506:24:17;;;;3237:61:12;;;3270:28;3287:10;3270:16;:28::i;:::-;4522:55:17::1;4545:4;4551:2;4555:7;4564:6;4572:4;4522:22;:55::i;2534:215:13:-:0;1522:13;:11;:13::i;:::-;-1:-1:-1;;;;;2618:22:13;::::1;2614:91;;2663:31;::::0;-1:-1:-1;;;2663:31:13;;2691:1:::1;2663:31;::::0;::::1;9594:51:18::0;9567:18;;2663:31:13::1;9448:203:18::0;2614:91:13::1;2714:28;2733:8;2714:18;:28::i;1296:305:2:-:0;1398:4;-1:-1:-1;;;;;;1433:41:2;;-1:-1:-1;;;1433:41:2;;:109;;-1:-1:-1;;;;;;;1490:52:2;;-1:-1:-1;;;1490:52:2;1433:109;:161;;;-1:-1:-1;;;;;;;;;;859:40:3;;;1558:36:2;760:146:3;2073:213:4;2175:4;-1:-1:-1;;;;;;2198:41:4;;-1:-1:-1;;;2198:41:4;;:81;;;2243:36;2267:11;2243:23;:36::i;1787:162:13:-;1701:6;;-1:-1:-1;;;;;1701:6:13;735:10:1;1846:23:13;1842:101;;1892:40;;-1:-1:-1;;;1892:40:13;;735:10:1;1892:40:13;;;9594:51:18;9567:18;;1892:40:13;9448:203:18;3386:507:4;3113:5;-1:-1:-1;;;;;3533:26:4;;;-1:-1:-1;3529:173:4;;;3636:55;;-1:-1:-1;;;3636:55:4;;-1:-1:-1;;;;;18573:39:18;;3636:55:4;;;18555:58:18;18629:18;;;18622:34;;;18528:18;;3636:55:4;18382:280:18;3529:173:4;-1:-1:-1;;;;;3715:22:4;;3711:108;;3760:48;;-1:-1:-1;;;3760:48:4;;3805:1;3760:48;;;9594:51:18;9567:18;;3760:48:4;9448:203:18;3711:108:4;-1:-1:-1;3851:35:4;;;;;;;;;-1:-1:-1;;;;;3851:35:4;;;;;;-1:-1:-1;;;;;3851:35:4;;;;;;;;;;-1:-1:-1;;;3829:57:4;;;;:19;:57;3386:507::o;3728:1332:12:-;4115:22;4109:4;4102:36;4206:9;4200:4;4193:23;4279:8;4273:4;4266:22;4453:4;4447;4441;4435;4408:25;4401:5;4390:68;4380:270;;4572:16;4566:4;4560;4545:44;4619:16;4613:4;4606:30;4380:270;5042:1;5036:4;5029:15;3728:1332;:::o;3930:429:2:-;735:10:1;-1:-1:-1;;;;;4167:14:2;;;;;;;:49;;;4186:30;4203:4;4209:6;4186:16;:30::i;:::-;4185:31;4167:49;4163:129;;;4239:42;;-1:-1:-1;;;4239:42:2;;-1:-1:-1;;;;;18897:15:18;;;4239:42:2;;;18879:34:18;18949:15;;18929:18;;;18922:43;18814:18;;4239:42:2;18667:304:18;4163:129:2;4301:51;4324:4;4330:2;4334:3;4339:6;4347:4;4301:22;:51::i;2336:287:14:-;1759:1;2468:7;;:19;2460:63;;;;-1:-1:-1;;;2460:63:14;;19178:2:18;2460:63:14;;;19160:21:18;19217:2;19197:18;;;19190:30;19256:33;19236:18;;;19229:61;19307:18;;2460:63:14;18976:355:18;2460:63:14;1759:1;2598:7;:18;2336:287::o;2903:187:13:-;2995:6;;;-1:-1:-1;;;;;3011:17:13;;;-1:-1:-1;;;;;;3011:17:13;;;;;;;3043:40;;2995:6;;;3011:17;2995:6;;3043:40;;2976:16;;3043:40;2966:124;2903:187;:::o;10662:346:2:-;-1:-1:-1;;;;;10758:16:2;;10754:88;;10797:34;;-1:-1:-1;;;10797:34:2;;10828:1;10797:34;;;9594:51:18;9567:18;;10797:34:2;9448:203:18;10754:88:2;16290:4;16284:11;;16360:1;16345:17;;;16491:4;16479:17;;16472:35;;;16608:17;;;16638;;;16104:23;16675:17;;16668:35;;;16811:17;;;16798:31;;;16284:11;10940:61;-1:-1:-1;10979:2:2;16284:11;16608:17;10996:4;10940:26;:61::i;3072:144::-;3157:52;735:10:1;3190:8:2;3200;3157:18;:52::i;12015:329::-;-1:-1:-1;;;;;12094:18:2;;12090:88;;12135:32;;-1:-1:-1;;;12135:32:2;;12164:1;12135:32;;;9594:51:18;9567:18;;12135:32:2;9448:203:18;12090:88:2;16290:4;16284:11;;16360:1;16345:17;;;16491:4;16479:17;;16472:35;;;16608:17;;;16638;;;16104:23;16675:17;;16668:35;;;12276:61;;;;;;-1:-1:-1;16811:17:2;;;12276:61;;;16284:11;;16608:17;12276:61;;12303:4;;16284:11;;16608:17;;12276:26;:61::i;:::-;12080:264;;12015:329;;;:::o;1265:154:11:-;1356:4;1408;1379:25;1392:5;1399:4;1379:12;:25::i;:::-;:33;;1265:154;-1:-1:-1;;;;1265:154:11:o;3507:351:2:-;735:10:1;-1:-1:-1;;;;;3673:14:2;;;;;;;:49;;;3692:30;3709:4;3715:6;3692:16;:30::i;:::-;3691:31;3673:49;3669:129;;;3745:42;;-1:-1:-1;;;3745:42:2;;-1:-1:-1;;;;;18897:15:18;;;3745:42:2;;;18879:34:18;18949:15;;18929:18;;;18922:43;18814:18;;3745:42:2;18667:304:18;3669:129:2;3807:44;3825:4;3831:2;3835;3839:5;3846:4;3807:17;:44::i;8931:445::-;-1:-1:-1;;;;;9124:16:2;;9120:88;;9163:34;;-1:-1:-1;;;9163:34:2;;9194:1;9163:34;;;9594:51:18;9567:18;;9163:34:2;9448:203:18;9120:88:2;-1:-1:-1;;;;;9221:18:2;;9217:88;;9262:32;;-1:-1:-1;;;9262:32:2;;9291:1;9262:32;;;9594:51:18;9567:18;;9262:32:2;9448:203:18;9217:88:2;9314:55;9341:4;9347:2;9351:3;9356:6;9364:4;6920:690;7121:30;7129:4;7135:2;7139:3;7144:6;7121:7;:30::i;:::-;-1:-1:-1;;;;;7165:16:2;;;7161:443;;7246:10;;735::1;;7260:1:2;7246:15;7242:352;;4768:4:0;4739:35;;;4733:42;4739:35;;;4733:42;7399:67:2;7430:8;7440:4;7446:2;4733:42:0;;7461:4:2;7399:30;:67::i;:::-;7263:218;;7242:352;;;7505:74;7541:8;7551:4;7557:2;7561:3;7566:6;7574:4;7505:35;:74::i;13184:315::-;-1:-1:-1;;;;;13291:22:2;;13287:94;;13336:34;;-1:-1:-1;;;13336:34:2;;13367:1;13336:34;;;9594:51:18;9567:18;;13336:34:2;9448:203:18;13287:94:2;-1:-1:-1;;;;;13390:25:2;;;;;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;:46;;-1:-1:-1;;13390:46:2;;;;;;;;;;13451:41;;1159::18;;;13451::2;;1132:18:18;13451:41:2;;;;;;;13184:315;;;:::o;1967:290:11:-;2050:7;2092:4;2050:7;2106:116;2130:5;:12;2126:1;:16;2106:116;;;2178:33;2188:12;2202:5;2208:1;2202:8;;;;;;;;:::i;:::-;;;;;;;2178:9;:33::i;:::-;2163:48;-1:-1:-1;2144:3:11;;2106:116;;8067:463:2;-1:-1:-1;;;;;8189:16:2;;8185:88;;8228:34;;-1:-1:-1;;;8228:34:2;;8259:1;8228:34;;;9594:51:18;9567:18;;8228:34:2;9448:203:18;8185:88:2;-1:-1:-1;;;;;8286:18:2;;8282:88;;8327:32;;-1:-1:-1;;;8327:32:2;;8356:1;8327:32;;;9594:51:18;9567:18;;8327:32:2;9448:203:18;8282:88:2;16290:4;16284:11;;16360:1;16345:17;;;16491:4;16479:17;;16472:35;;;16608:17;;;16638;;;16104:23;16675:17;;16668:35;;;16811:17;;;16798:31;;;16284:11;8468:55;8495:4;8501:2;16284:11;16608:17;8518:4;8468:26;:55::i;5060:1281::-;5195:6;:13;5181:3;:10;:27;5177:117;;5257:10;;5269:13;;5231:52;;-1:-1:-1;;;5231:52:2;;;;;16312:25:18;;;;16353:18;;;16346:34;16285:18;;5231:52:2;16138:248:18;5177:117:2;735:10:1;5304:16:2;5346:691;5370:3;:10;5366:1;:14;5346:691;;;4768:4:0;4759:14;;;4739:35;;;;;4733:42;4739:35;;;;;;4733:42;-1:-1:-1;;;;;5516:18:2;;;5512:420;;5554:19;5576:13;;;;;;;;;;;-1:-1:-1;;;;;5576:19:2;;;;;;;;;;5617;;;5613:129;;;5667:56;;-1:-1:-1;;;5667:56:2;;-1:-1:-1;;;;;19585:32:18;;5667:56:2;;;19567:51:18;19634:18;;;19627:34;;;19677:18;;;19670:34;;;19720:18;;;19713:34;;;19539:19;;5667:56:2;19336:417:18;5613:129:2;5858:9;:13;;;;;;;;;;;-1:-1:-1;;;;;5858:19:2;;;;;;;;;5880;;;;5858:41;;5512:420;-1:-1:-1;;;;;5950:16:2;;;5946:81;;5986:9;:13;;;;;;;;;;;-1:-1:-1;;;;;5986:17:2;;;;;;;;;:26;;6007:5;;5986:9;:26;;6007:5;;5986:26;:::i;:::-;;;;-1:-1:-1;;5946:81:2;-1:-1:-1;;5382:3:2;;5346:691;;;;6051:3;:10;6065:1;6051:15;6047:288;;4768:4:0;4739:35;;4733:42;6082:10:2;;4768:4:0;4739:35;;4733:42;6082:38:2;;-1:-1:-1;6228:2:2;-1:-1:-1;;;;;6197:45:2;6222:4;-1:-1:-1;;;;;6197:45:2;6212:8;-1:-1:-1;;;;;6197:45:2;;6232:2;6236:5;6197:45;;;;;;16312:25:18;;;16368:2;16353:18;;16346:34;16300:2;16285:18;;16138:248;6197:45:2;;;;;;;;6068:185;;6047:288;;;6308:2;-1:-1:-1;;;;;6278:46:2;6302:4;-1:-1:-1;;;;;6278:46:2;6292:8;-1:-1:-1;;;;;6278:46:2;;6312:3;6317:6;6278:46;;;;;;;:::i;:::-;;;;;;;;5167:1174;5060:1281;;;;:::o;13677:974::-;-1:-1:-1;;;;;13883:14:2;;;:18;13879:766;;13921:71;;-1:-1:-1;;;13921:71:2;;-1:-1:-1;;;;;13921:38:2;;;;;:71;;13960:8;;13970:4;;13976:2;;13980:5;;13987:4;;13921:71;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;13921:71:2;;;;;;;;-1:-1:-1;;13921:71:2;;;;;;;;;;;;:::i;:::-;;;13917:718;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;14276:6;:13;14293:1;14276:18;14272:349;;14380:26;;-1:-1:-1;;;14380:26:2;;-1:-1:-1;;;;;9612:32:18;;14380:26:2;;;9594:51:18;9567:18;;14380:26:2;9448:203:18;14272:349:2;14573:6;14567:13;14558:6;14554:2;14550:15;14543:38;13917:718;-1:-1:-1;;;;;;14041:55:2;;-1:-1:-1;;;14041:55:2;14037:174;;14166:26;;-1:-1:-1;;;14166:26:2;;-1:-1:-1;;;;;9612:32:18;;14166:26:2;;;9594:51:18;9567:18;;14166:26:2;9448:203:18;14839:1041:2;-1:-1:-1;;;;;15070:14:2;;;:18;15066:808;;15108:78;;-1:-1:-1;;;15108:78:2;;-1:-1:-1;;;;;15108:43:2;;;;;:78;;15152:8;;15162:4;;15168:3;;15173:6;;15181:4;;15108:78;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;15108:78:2;;;;;;;;-1:-1:-1;;15108:78:2;;;;;;;;;;;;:::i;:::-;;;15104:760;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;15265:60:2;;-1:-1:-1;;;15265:60:2;15261:179;;15395:26;;-1:-1:-1;;;15395:26:2;;-1:-1:-1;;;;;9612:32:18;;15395:26:2;;;9594:51:18;9567:18;;15395:26:2;9448:203:18;9229:147:11;9292:7;9322:1;9318;:5;:51;;9564:13;9655:15;;;9690:4;9683:15;;;9736:4;9720:21;;9318:51;;;9564:13;9655:15;;;9690:4;9683:15;;;9736:4;9720:21;;9326:20;9311:58;9229:147;-1:-1:-1;;;9229:147:11:o;14:173:18:-;82:20;;-1:-1:-1;;;;;131:31:18;;121:42;;111:70;;177:1;174;167:12;111:70;14:173;;;:::o;192:254::-;260:6;268;321:2;309:9;300:7;296:23;292:32;289:52;;;337:1;334;327:12;289:52;360:29;379:9;360:29;:::i;:::-;350:39;436:2;421:18;;;;408:32;;-1:-1:-1;;;192:254:18:o;633:131::-;-1:-1:-1;;;;;;707:32:18;;697:43;;687:71;;754:1;751;744:12;769:245;827:6;880:2;868:9;859:7;855:23;851:32;848:52;;;896:1;893;886:12;848:52;935:9;922:23;954:30;978:5;954:30;:::i;1211:366::-;1278:6;1286;1339:2;1327:9;1318:7;1314:23;1310:32;1307:52;;;1355:1;1352;1345:12;1307:52;1378:29;1397:9;1378:29;:::i;:::-;1368:39;;1457:2;1446:9;1442:18;1429:32;-1:-1:-1;;;;;1494:5:18;1490:38;1483:5;1480:49;1470:77;;1543:1;1540;1533:12;1470:77;1566:5;1556:15;;;1211:366;;;;;:::o;1582:423::-;1624:3;1662:5;1656:12;1689:6;1684:3;1677:19;1714:1;1724:162;1738:6;1735:1;1732:13;1724:162;;;1800:4;1856:13;;;1852:22;;1846:29;1828:11;;;1824:20;;1817:59;1753:12;1724:162;;;1728:3;1931:1;1924:4;1915:6;1910:3;1906:16;1902:27;1895:38;1994:4;1987:2;1983:7;1978:2;1970:6;1966:15;1962:29;1957:3;1953:39;1949:50;1942:57;;;1582:423;;;;:::o;2010:220::-;2159:2;2148:9;2141:21;2122:4;2179:45;2220:2;2209:9;2205:18;2197:6;2179:45;:::i;2235:180::-;2294:6;2347:2;2335:9;2326:7;2322:23;2318:32;2315:52;;;2363:1;2360;2353:12;2315:52;-1:-1:-1;2386:23:18;;2235:180;-1:-1:-1;2235:180:18:o;2420:935::-;2536:6;2544;2552;2560;2568;2576;2584;2637:3;2625:9;2616:7;2612:23;2608:33;2605:53;;;2654:1;2651;2644:12;2605:53;2690:9;2677:23;2667:33;;2747:2;2736:9;2732:18;2719:32;2709:42;;2798:2;2787:9;2783:18;2770:32;2760:42;;2849:2;2838:9;2834:18;2821:32;2811:42;;2904:3;2893:9;2889:19;2876:33;2928:18;2969:2;2961:6;2958:14;2955:34;;;2985:1;2982;2975:12;2955:34;3023:6;3012:9;3008:22;2998:32;;3068:7;3061:4;3057:2;3053:13;3049:27;3039:55;;3090:1;3087;3080:12;3039:55;3130:2;3117:16;3156:2;3148:6;3145:14;3142:34;;;3172:1;3169;3162:12;3142:34;3217:7;3212:2;3203:6;3199:2;3195:15;3191:24;3188:37;3185:57;;;3238:1;3235;3228:12;3185:57;3269:2;3265;3261:11;3251:21;;3291:6;3281:16;;;;;3344:3;3333:9;3329:19;3316:33;3306:43;;2420:935;;;;;;;;;;:::o;3360:248::-;3428:6;3436;3489:2;3477:9;3468:7;3464:23;3460:32;3457:52;;;3505:1;3502;3495:12;3457:52;-1:-1:-1;;3528:23:18;;;3598:2;3583:18;;;3570:32;;-1:-1:-1;3360:248:18:o;3892:127::-;3953:10;3948:3;3944:20;3941:1;3934:31;3984:4;3981:1;3974:15;4008:4;4005:1;3998:15;4024:275;4095:2;4089:9;4160:2;4141:13;;-1:-1:-1;;4137:27:18;4125:40;;4195:18;4180:34;;4216:22;;;4177:62;4174:88;;;4242:18;;:::i;:::-;4278:2;4271:22;4024:275;;-1:-1:-1;4024:275:18:o;4304:183::-;4364:4;4397:18;4389:6;4386:30;4383:56;;;4419:18;;:::i;:::-;-1:-1:-1;4464:1:18;4460:14;4476:4;4456:25;;4304:183::o;4492:668::-;4546:5;4599:3;4592:4;4584:6;4580:17;4576:27;4566:55;;4617:1;4614;4607:12;4566:55;4653:6;4640:20;4679:4;4703:60;4719:43;4759:2;4719:43;:::i;:::-;4703:60;:::i;:::-;4785:3;4809:2;4804:3;4797:15;4837:4;4832:3;4828:14;4821:21;;4894:4;4888:2;4885:1;4881:10;4873:6;4869:23;4865:34;4851:48;;4922:3;4914:6;4911:15;4908:35;;;4939:1;4936;4929:12;4908:35;4975:4;4967:6;4963:17;4989:142;5005:6;5000:3;4997:15;4989:142;;;5071:17;;5059:30;;5109:12;;;;5022;;4989:142;;;-1:-1:-1;5149:5:18;4492:668;-1:-1:-1;;;;;;4492:668:18:o;5165:530::-;5207:5;5260:3;5253:4;5245:6;5241:17;5237:27;5227:55;;5278:1;5275;5268:12;5227:55;5314:6;5301:20;5340:18;5336:2;5333:26;5330:52;;;5362:18;;:::i;:::-;5406:55;5449:2;5430:13;;-1:-1:-1;;5426:27:18;5455:4;5422:38;5406:55;:::i;:::-;5486:2;5477:7;5470:19;5532:3;5525:4;5520:2;5512:6;5508:15;5504:26;5501:35;5498:55;;;5549:1;5546;5539:12;5498:55;5614:2;5607:4;5599:6;5595:17;5588:4;5579:7;5575:18;5562:55;5662:1;5637:16;;;5655:4;5633:27;5626:38;;;;5641:7;5165:530;-1:-1:-1;;;5165:530:18:o;5700:943::-;5854:6;5862;5870;5878;5886;5939:3;5927:9;5918:7;5914:23;5910:33;5907:53;;;5956:1;5953;5946:12;5907:53;5979:29;5998:9;5979:29;:::i;:::-;5969:39;;6027:38;6061:2;6050:9;6046:18;6027:38;:::i;:::-;6017:48;;6116:2;6105:9;6101:18;6088:32;6139:18;6180:2;6172:6;6169:14;6166:34;;;6196:1;6193;6186:12;6166:34;6219:61;6272:7;6263:6;6252:9;6248:22;6219:61;:::i;:::-;6209:71;;6333:2;6322:9;6318:18;6305:32;6289:48;;6362:2;6352:8;6349:16;6346:36;;;6378:1;6375;6368:12;6346:36;6401:63;6456:7;6445:8;6434:9;6430:24;6401:63;:::i;:::-;6391:73;;6517:3;6506:9;6502:19;6489:33;6473:49;;6547:2;6537:8;6534:16;6531:36;;;6563:1;6560;6553:12;6531:36;;6586:51;6629:7;6618:8;6607:9;6603:24;6586:51;:::i;:::-;6576:61;;;5700:943;;;;;;;;:::o;6648:1146::-;6766:6;6774;6827:2;6815:9;6806:7;6802:23;6798:32;6795:52;;;6843:1;6840;6833:12;6795:52;6883:9;6870:23;6912:18;6953:2;6945:6;6942:14;6939:34;;;6969:1;6966;6959:12;6939:34;7007:6;6996:9;6992:22;6982:32;;7052:7;7045:4;7041:2;7037:13;7033:27;7023:55;;7074:1;7071;7064:12;7023:55;7110:2;7097:16;7132:4;7156:60;7172:43;7212:2;7172:43;:::i;7156:60::-;7250:15;;;7332:1;7328:10;;;;7320:19;;7316:28;;;7281:12;;;;7356:19;;;7353:39;;;7388:1;7385;7378:12;7353:39;7412:11;;;;7432:148;7448:6;7443:3;7440:15;7432:148;;;7514:23;7533:3;7514:23;:::i;:::-;7502:36;;7465:12;;;;7558;;;;7432:148;;;7599:5;-1:-1:-1;;7642:18:18;;7629:32;;-1:-1:-1;;7673:16:18;;;7670:36;;;7702:1;7699;7692:12;7670:36;;7725:63;7780:7;7769:8;7758:9;7754:24;7725:63;:::i;:::-;7715:73;;;6648:1146;;;;;:::o;7799:439::-;7852:3;7890:5;7884:12;7917:6;7912:3;7905:19;7943:4;7972;7967:3;7963:14;7956:21;;8011:4;8004:5;8000:16;8034:1;8044:169;8058:6;8055:1;8052:13;8044:169;;;8119:13;;8107:26;;8153:12;;;;8188:15;;;;8080:1;8073:9;8044:169;;;-1:-1:-1;8229:3:18;;7799:439;-1:-1:-1;;;;;7799:439:18:o;8243:261::-;8422:2;8411:9;8404:21;8385:4;8442:56;8494:2;8483:9;8479:18;8471:6;8442:56;:::i;8509:186::-;8568:6;8621:2;8609:9;8600:7;8596:23;8592:32;8589:52;;;8637:1;8634;8627:12;8589:52;8660:29;8679:9;8660:29;:::i;8700:743::-;9008:4;9037:3;9067:6;9056:9;9049:25;9110:6;9105:2;9094:9;9090:18;9083:34;9153:6;9148:2;9137:9;9133:18;9126:34;9196:6;9191:2;9180:9;9176:18;9169:34;9240:6;9234:3;9223:9;9219:19;9212:35;9284:6;9278:3;9267:9;9263:19;9256:35;9328:2;9322:3;9311:9;9307:19;9300:31;9348:45;9389:2;9378:9;9374:18;9366:6;9348:45;:::i;:::-;9340:53;;;9430:6;9424:3;9413:9;9409:19;9402:35;8700:743;;;;;;;;;;;:::o;9656:820::-;9769:6;9777;9785;9793;9801;9854:3;9842:9;9833:7;9829:23;9825:33;9822:53;;;9871:1;9868;9861:12;9822:53;9907:9;9894:23;9884:33;;9964:2;9953:9;9949:18;9936:32;9926:42;;10015:2;10004:9;10000:18;9987:32;9977:42;;10070:2;10059:9;10055:18;10042:32;10093:18;10134:2;10126:6;10123:14;10120:34;;;10150:1;10147;10140:12;10120:34;10188:6;10177:9;10173:22;10163:32;;10233:7;10226:4;10222:2;10218:13;10214:27;10204:55;;10255:1;10252;10245:12;10204:55;10295:2;10282:16;10321:2;10313:6;10310:14;10307:34;;;10337:1;10334;10327:12;10307:34;10390:7;10385:2;10375:6;10372:1;10368:14;10364:2;10360:23;10356:32;10353:45;10350:65;;;10411:1;10408;10401:12;10350:65;9656:820;;;;-1:-1:-1;9656:820:18;;-1:-1:-1;10442:2:18;10434:11;;10464:6;9656:820;-1:-1:-1;;;9656:820:18:o;10481:160::-;10546:20;;10602:13;;10595:21;10585:32;;10575:60;;10631:1;10628;10621:12;10646:254;10711:6;10719;10772:2;10760:9;10751:7;10747:23;10743:32;10740:52;;;10788:1;10785;10778:12;10740:52;10811:29;10830:9;10811:29;:::i;:::-;10801:39;;10859:35;10890:2;10879:9;10875:18;10859:35;:::i;:::-;10849:45;;10646:254;;;;;:::o;10905:180::-;10961:6;11014:2;11002:9;10993:7;10989:23;10985:32;10982:52;;;11030:1;11027;11020:12;10982:52;11053:26;11069:9;11053:26;:::i;11090:1102::-;11201:6;11209;11217;11225;11278:3;11266:9;11257:7;11253:23;11249:33;11246:53;;;11295:1;11292;11285:12;11246:53;11331:9;11318:23;11308:33;;11360:2;11381:38;11415:2;11404:9;11400:18;11381:38;:::i;:::-;11371:48;;11466:2;11455:9;11451:18;11438:32;11428:42;;11521:2;11510:9;11506:18;11493:32;11548:18;11540:6;11537:30;11534:50;;;11580:1;11577;11570:12;11534:50;11603:22;;11656:4;11648:13;;11644:27;-1:-1:-1;11634:55:18;;11685:1;11682;11675:12;11634:55;11721:2;11708:16;11744:60;11760:43;11800:2;11760:43;:::i;11744:60::-;11838:15;;;11920:1;11916:10;;;;11908:19;;11904:28;;;11869:12;;;;11944:19;;;11941:39;;;11976:1;11973;11966:12;11941:39;12000:11;;;;12020:142;12036:6;12031:3;12028:15;12020:142;;;12102:17;;12090:30;;12053:12;;;;12140;;;;12020:142;;;11090:1102;;;;-1:-1:-1;11090:1102:18;;-1:-1:-1;;;;;;11090:1102:18:o;12197:260::-;12265:6;12273;12326:2;12314:9;12305:7;12301:23;12297:32;12294:52;;;12342:1;12339;12332:12;12294:52;12365:29;12384:9;12365:29;:::i;:::-;12355:39;;12413:38;12447:2;12436:9;12432:18;12413:38;:::i;12462:606::-;12566:6;12574;12582;12590;12598;12651:3;12639:9;12630:7;12626:23;12622:33;12619:53;;;12668:1;12665;12658:12;12619:53;12691:29;12710:9;12691:29;:::i;:::-;12681:39;;12739:38;12773:2;12762:9;12758:18;12739:38;:::i;:::-;12729:48;;12824:2;12813:9;12809:18;12796:32;12786:42;;12875:2;12864:9;12860:18;12847:32;12837:42;;12930:3;12919:9;12915:19;12902:33;12958:18;12950:6;12947:30;12944:50;;;12990:1;12987;12980:12;12944:50;13013:49;13054:7;13045:6;13034:9;13030:22;13013:49;:::i;13073:380::-;13152:1;13148:12;;;;13195;;;13216:61;;13270:4;13262:6;13258:17;13248:27;;13216:61;13323:2;13315:6;13312:14;13292:18;13289:38;13286:161;;13369:10;13364:3;13360:20;13357:1;13350:31;13404:4;13401:1;13394:15;13432:4;13429:1;13422:15;13286:161;;13073:380;;;:::o;13458:127::-;13519:10;13514:3;13510:20;13507:1;13500:31;13550:4;13547:1;13540:15;13574:4;13571:1;13564:15;13590:168;13663:9;;;13694;;13711:15;;;13705:22;;13691:37;13681:71;;13732:18;;:::i;13763:125::-;13828:9;;;13849:10;;;13846:36;;;13862:18;;:::i;14019:518::-;14121:2;14116:3;14113:11;14110:421;;;14157:5;14154:1;14147:16;14201:4;14198:1;14188:18;14271:2;14259:10;14255:19;14252:1;14248:27;14242:4;14238:38;14307:4;14295:10;14292:20;14289:47;;;-1:-1:-1;14330:4:18;14289:47;14385:2;14380:3;14376:12;14373:1;14369:20;14363:4;14359:31;14349:41;;14440:81;14458:2;14451:5;14448:13;14440:81;;;14517:1;14503:16;;14484:1;14473:13;14440:81;;14713:1198;14837:18;14832:3;14829:27;14826:53;;;14859:18;;:::i;:::-;14888:94;14978:3;14938:38;14970:4;14964:11;14938:38;:::i;:::-;14932:4;14888:94;:::i;:::-;15008:1;15033:2;15028:3;15025:11;15050:1;15045:608;;;;15697:1;15714:3;15711:93;;;-1:-1:-1;15770:19:18;;;15757:33;15711:93;-1:-1:-1;;14670:1:18;14666:11;;;14662:24;14658:29;14648:40;14694:1;14690:11;;;14645:57;15817:78;;15018:887;;15045:608;13966:1;13959:14;;;14003:4;13990:18;;-1:-1:-1;;15081:17:18;;;15196:229;15210:7;15207:1;15204:14;15196:229;;;15299:19;;;15286:33;15271:49;;15406:4;15391:20;;;;15359:1;15347:14;;;;15226:12;15196:229;;;15200:3;15453;15444:7;15441:16;15438:159;;;15577:1;15573:6;15567:3;15561;15558:1;15554:11;15550:21;15546:34;15542:39;15529:9;15524:3;15520:19;15507:33;15503:79;15495:6;15488:95;15438:159;;;15640:1;15634:3;15631:1;15627:11;15623:19;15617:4;15610:33;15018:887;;14713:1198;;;:::o;15916:217::-;15956:1;15982;15972:132;;16026:10;16021:3;16017:20;16014:1;16007:31;16061:4;16058:1;16051:15;16089:4;16086:1;16079:15;15972:132;-1:-1:-1;16118:9:18;;15916:217::o;16391:127::-;16452:10;16447:3;16443:20;16440:1;16433:31;16483:4;16480:1;16473:15;16507:4;16504:1;16497:15;16733:1345;16859:3;16853:10;16886:18;16878:6;16875:30;16872:56;;;16908:18;;:::i;:::-;16937:97;17027:6;16987:38;17019:4;17013:11;16987:38;:::i;:::-;16981:4;16937:97;:::i;:::-;17089:4;;17146:2;17135:14;;17163:1;17158:663;;;;17865:1;17882:6;17879:89;;;-1:-1:-1;17934:19:18;;;17928:26;17879:89;-1:-1:-1;;14670:1:18;14666:11;;;14662:24;14658:29;14648:40;14694:1;14690:11;;;14645:57;17981:81;;17128:944;;17158:663;13966:1;13959:14;;;14003:4;13990:18;;-1:-1:-1;;17194:20:18;;;17312:236;17326:7;17323:1;17320:14;17312:236;;;17415:19;;;17409:26;17394:42;;17507:27;;;;17475:1;17463:14;;;;17342:19;;17312:236;;;17316:3;17576:6;17567:7;17564:19;17561:201;;;17637:19;;;17631:26;-1:-1:-1;;17720:1:18;17716:14;;;17732:3;17712:24;17708:37;17704:42;17689:58;17674:74;;17561:201;-1:-1:-1;;;;;17808:1:18;17792:14;;;17788:22;17775:36;;-1:-1:-1;16733:1345:18:o;19758:465::-;20015:2;20004:9;19997:21;19978:4;20041:56;20093:2;20082:9;20078:18;20070:6;20041:56;:::i;:::-;20145:9;20137:6;20133:22;20128:2;20117:9;20113:18;20106:50;20173:44;20210:6;20202;20173:44;:::i;20228:561::-;-1:-1:-1;;;;;20525:15:18;;;20507:34;;20577:15;;20572:2;20557:18;;20550:43;20624:2;20609:18;;20602:34;;;20667:2;20652:18;;20645:34;;;20487:3;20710;20695:19;;20688:32;;;20450:4;;20737:46;;20763:19;;20755:6;20737:46;:::i;:::-;20729:54;20228:561;-1:-1:-1;;;;;;;20228:561:18:o;20794:249::-;20863:6;20916:2;20904:9;20895:7;20891:23;20887:32;20884:52;;;20932:1;20929;20922:12;20884:52;20964:9;20958:16;20983:30;21007:5;20983:30;:::i;21048:827::-;-1:-1:-1;;;;;21445:15:18;;;21427:34;;21497:15;;21492:2;21477:18;;21470:43;21407:3;21544:2;21529:18;;21522:31;;;21370:4;;21576:57;;21613:19;;21605:6;21576:57;:::i;:::-;21681:9;21673:6;21669:22;21664:2;21653:9;21649:18;21642:50;21715:44;21752:6;21744;21715:44;:::i;:::-;21701:58;;21808:9;21800:6;21796:22;21790:3;21779:9;21775:19;21768:51;21836:33;21862:6;21854;21836:33;:::i;:::-;21828:41;21048:827;-1:-1:-1;;;;;;;;21048:827:18:o
Swarm Source
ipfs://37261356ba224cef788ded540ce5a803b50b966e0167f4089c5c3aa3e78b18f3
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.