ETH Price: $2,429.10 (+0.12%)
Gas: 0.09 GWei

Token

Scroll Origins NFT (Scroll Origins NFT)

Overview

Max Total Supply

928,453 Scroll Origins NFT

Holders

928,453

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-
Filtered by Token Holder
Null: 0x000...000
Balance
0 Scroll Origins NFT
0x0000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.

Contract Source Code Verified (Exact Match)

Contract Name:
ScrollOriginsNFT

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 200 runs

Other Settings:
paris EvmVersion
File 1 of 25 : ScrollOriginsNFT.sol
// SPDX-License-Identifier: MIT

pragma solidity =0.8.20;

import {ERC721Enumerable} from "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import {ERC721} from "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import {MerkleProof} from "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import {ReentrancyGuard} from "@openzeppelin/contracts/utils/ReentrancyGuard.sol";

import {NFTDescriptor} from "./NFTDescriptor.sol";

contract ScrollOriginsNFT is ERC721Enumerable, ReentrancyGuard {
    /**********
     * Errors *
     **********/

    /// @dev Thrown when transfer the token.
    error ErrorTransferIsForbidden();

    /// @dev Thrown when the proof is invalid.
    error ErrorInvalidProof();

    /// @dev Thrown when the caller is not deployer.
    error ErrorCallerIsNotDeployer();

    /// @dev Thrown when the deployer try to mint twice.
    error ErrorAlreadyMinted();

    /*************
     * Constants *
     *************/

    /// @notice The root of the metadata merkle tree.
    bytes32 public immutable root;

    /***********
     * Structs *
     ***********/

    /// @dev The metadata of the NFT.
    ///
    /// The encoding for the `rarityData`.
    /// |    4 bits    |   5 bits   |   32  bits   |   1 bit   | 1  bit | 8 bits | 205 bits |
    /// | deploy month | deploy day | deploy order | backgroud | stroke | rarity | reserved |
    /// [ LSB                                                                           MSB ]
    ///
    /// @param deployer The address of the deployer.
    /// @param firstDeployedContract The address of the first deployed contract by the deployer.
    /// @param bestDeployedContract The address of the best deployed contract by the deployer.
    /// @param rarityData Compacted rarity data for the NFT.
    struct Metadata {
        address deployer;
        address firstDeployedContract;
        address bestDeployedContract;
        uint256 rarityData;
    }

    /// @dev The minting metadata of the NFT.
    ///
    /// @param mintAt The block number when the NFT is minted.
    struct MintData {
        uint64 mintAt;
    }

    /*************
     * Variables *
     *************/

    /// @notice Mapping from token id to NFT metadata.
    mapping(uint256 => Metadata) public metadata;

    /// @notice Mapping from token id to NFT mint data.
    mapping(uint256 => MintData) public mintData;

    /// @notice Mapping from deployer address to minted status.
    mapping(address => bool) public minted;

    /// @dev The next token id for the NFT.
    uint256 private nextTokenId;

    /***************
     * Constructor *
     ***************/

    constructor(
        string memory _name,
        string memory _symbol,
        bytes32 _root
    ) ERC721(_name, _symbol) {
        root = _root;

        // start from 1
        nextTokenId = 1;
    }

    /*************************
     * Public View Functions *
     *************************/

    /// @inheritdoc ERC721
    function tokenURI(
        uint256 tokenId
    ) public view override returns (string memory) {
        _requireOwned(tokenId);

        Metadata memory meta = metadata[tokenId];
        return
            NFTDescriptor.constructTokenURI(
                NFTDescriptor.ConstructTokenURIParams({
                    tokenId: tokenId,
                    deployer: meta.deployer,
                    firstDeployedContract: meta.firstDeployedContract,
                    bestDeployedContract: meta.bestDeployedContract,
                    deployMonth: meta.rarityData & 0xf,
                    deployDay: (meta.rarityData >> 4) & 0x1f,
                    deployOrder: (meta.rarityData >> 9) & 0xffffffff,
                    background: (meta.rarityData >> 41) & 1,
                    stroke: (meta.rarityData >> 42) & 1,
                    rarity: (meta.rarityData >> 43) & 0xff
                })
            );
    }

    /*****************************
     * Public Mutating Functions *
     *****************************/

    /// @notice Mint a Scroll NFT with given metadata.
    /// @param receiver The address of NFT recipient.
    /// @param meta The metadata of the NFT.
    /// @param proof The proof used to verify the metadata.
    function mint(
        address receiver,
        Metadata memory meta,
        bytes32[] calldata proof
    ) external nonReentrant {
        if (_msgSender() != meta.deployer) {
            revert ErrorCallerIsNotDeployer();
        }
        if (minted[meta.deployer]) {
            revert ErrorAlreadyMinted();
        }
        minted[meta.deployer] = true;

        // verify proof
        bytes32 leaf = keccak256(
            abi.encodePacked(
                meta.deployer,
                meta.firstDeployedContract,
                meta.bestDeployedContract,
                meta.rarityData
            )
        );
        if (!MerkleProof.verifyCalldata(proof, root, leaf)) {
            revert ErrorInvalidProof();
        }

        // save metadata
        uint256 tokenId = nextTokenId;
        metadata[tokenId] = meta;
        mintData[tokenId] = MintData(uint64(block.number));
        unchecked {
            nextTokenId = tokenId + 1;
        }

        // mint token
        _mint(receiver, tokenId);
    }

    /**********************
     * Internal Functions *
     **********************/

    /// @inheritdoc ERC721
    function _update(
        address to,
        uint256 tokenId,
        address auth
    ) internal virtual override returns (address) {
        address previousOwner = ERC721Enumerable._update(to, tokenId, auth);
        if (previousOwner != address(0)) revert ErrorTransferIsForbidden();

        return previousOwner;
    }
}

File 2 of 25 : draft-IERC6093.sol
// 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);
}

File 3 of 25 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.20;

import {IERC721} from "./IERC721.sol";
import {IERC721Receiver} from "./IERC721Receiver.sol";
import {IERC721Metadata} from "./extensions/IERC721Metadata.sol";
import {Context} from "../../utils/Context.sol";
import {Strings} from "../../utils/Strings.sol";
import {IERC165, ERC165} from "../../utils/introspection/ERC165.sol";
import {IERC721Errors} from "../../interfaces/draft-IERC6093.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
abstract contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Errors {
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    mapping(uint256 tokenId => address) private _owners;

    mapping(address owner => uint256) private _balances;

    mapping(uint256 tokenId => address) private _tokenApprovals;

    mapping(address owner => mapping(address operator => bool)) private _operatorApprovals;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual returns (uint256) {
        if (owner == address(0)) {
            revert ERC721InvalidOwner(address(0));
        }
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual returns (address) {
        return _requireOwned(tokenId);
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual returns (string memory) {
        _requireOwned(tokenId);

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string.concat(baseURI, tokenId.toString()) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual {
        _approve(to, tokenId, _msgSender());
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual returns (address) {
        _requireOwned(tokenId);

        return _getApproved(tokenId);
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(address from, address to, uint256 tokenId) public virtual {
        if (to == address(0)) {
            revert ERC721InvalidReceiver(address(0));
        }
        // Setting an "auth" arguments enables the `_isAuthorized` check which verifies that the token exists
        // (from != 0). Therefore, it is not needed to verify that the return value is not 0 here.
        address previousOwner = _update(to, tokenId, _msgSender());
        if (previousOwner != from) {
            revert ERC721IncorrectOwner(from, tokenId, previousOwner);
        }
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) public {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data) public virtual {
        transferFrom(from, to, tokenId);
        _checkOnERC721Received(from, to, tokenId, data);
    }

    /**
     * @dev Returns the owner of the `tokenId`. Does NOT revert if token doesn't exist
     *
     * IMPORTANT: Any overrides to this function that add ownership of tokens not tracked by the
     * core ERC721 logic MUST be matched with the use of {_increaseBalance} to keep balances
     * consistent with ownership. The invariant to preserve is that for any address `a` the value returned by
     * `balanceOf(a)` must be equal to the number of tokens such that `_ownerOf(tokenId)` is `a`.
     */
    function _ownerOf(uint256 tokenId) internal view virtual returns (address) {
        return _owners[tokenId];
    }

    /**
     * @dev Returns the approved address for `tokenId`. Returns 0 if `tokenId` is not minted.
     */
    function _getApproved(uint256 tokenId) internal view virtual returns (address) {
        return _tokenApprovals[tokenId];
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `owner`'s tokens, or `tokenId` in
     * particular (ignoring whether it is owned by `owner`).
     *
     * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this
     * assumption.
     */
    function _isAuthorized(address owner, address spender, uint256 tokenId) internal view virtual returns (bool) {
        return
            spender != address(0) &&
            (owner == spender || isApprovedForAll(owner, spender) || _getApproved(tokenId) == spender);
    }

    /**
     * @dev Checks if `spender` can operate on `tokenId`, assuming the provided `owner` is the actual owner.
     * Reverts if `spender` does not have approval from the provided `owner` for the given token or for all its assets
     * the `spender` for the specific `tokenId`.
     *
     * WARNING: This function assumes that `owner` is the actual owner of `tokenId` and does not verify this
     * assumption.
     */
    function _checkAuthorized(address owner, address spender, uint256 tokenId) internal view virtual {
        if (!_isAuthorized(owner, spender, tokenId)) {
            if (owner == address(0)) {
                revert ERC721NonexistentToken(tokenId);
            } else {
                revert ERC721InsufficientApproval(spender, tokenId);
            }
        }
    }

    /**
     * @dev Unsafe write access to the balances, used by extensions that "mint" tokens using an {ownerOf} override.
     *
     * NOTE: the value is limited to type(uint128).max. This protect against _balance overflow. It is unrealistic that
     * a uint256 would ever overflow from increments when these increments are bounded to uint128 values.
     *
     * WARNING: Increasing an account's balance using this function tends to be paired with an override of the
     * {_ownerOf} function to resolve the ownership of the corresponding tokens so that balances and ownership
     * remain consistent with one another.
     */
    function _increaseBalance(address account, uint128 value) internal virtual {
        unchecked {
            _balances[account] += value;
        }
    }

    /**
     * @dev Transfers `tokenId` from its current owner to `to`, or alternatively mints (or burns) if the current owner
     * (or `to`) is the zero address. Returns the owner of the `tokenId` before the update.
     *
     * The `auth` argument is optional. If the value passed is non 0, then this function will check that
     * `auth` is either the owner of the token, or approved to operate on the token (by the owner).
     *
     * Emits a {Transfer} event.
     *
     * NOTE: If overriding this function in a way that tracks balances, see also {_increaseBalance}.
     */
    function _update(address to, uint256 tokenId, address auth) internal virtual returns (address) {
        address from = _ownerOf(tokenId);

        // Perform (optional) operator check
        if (auth != address(0)) {
            _checkAuthorized(from, auth, tokenId);
        }

        // Execute the update
        if (from != address(0)) {
            // Clear approval. No need to re-authorize or emit the Approval event
            _approve(address(0), tokenId, address(0), false);

            unchecked {
                _balances[from] -= 1;
            }
        }

        if (to != address(0)) {
            unchecked {
                _balances[to] += 1;
            }
        }

        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        return from;
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal {
        if (to == address(0)) {
            revert ERC721InvalidReceiver(address(0));
        }
        address previousOwner = _update(to, tokenId, address(0));
        if (previousOwner != address(0)) {
            revert ERC721InvalidSender(address(0));
        }
    }

    /**
     * @dev Mints `tokenId`, transfers it to `to` and checks for `to` acceptance.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(address to, uint256 tokenId, bytes memory data) internal virtual {
        _mint(to, tokenId);
        _checkOnERC721Received(address(0), to, tokenId, data);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     * This is an internal function that does not check if the sender is authorized to operate on the token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal {
        address previousOwner = _update(address(0), tokenId, address(0));
        if (previousOwner == address(0)) {
            revert ERC721NonexistentToken(tokenId);
        }
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(address from, address to, uint256 tokenId) internal {
        if (to == address(0)) {
            revert ERC721InvalidReceiver(address(0));
        }
        address previousOwner = _update(to, tokenId, address(0));
        if (previousOwner == address(0)) {
            revert ERC721NonexistentToken(tokenId);
        } else if (previousOwner != from) {
            revert ERC721IncorrectOwner(from, tokenId, previousOwner);
        }
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking that contract recipients
     * are aware of the ERC721 standard to prevent tokens from being forever locked.
     *
     * `data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is like {safeTransferFrom} in the sense that it invokes
     * {IERC721Receiver-onERC721Received} on the receiver, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `tokenId` token must exist and be owned by `from`.
     * - `to` cannot be the zero address.
     * - `from` cannot be the zero address.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(address from, address to, uint256 tokenId) internal {
        _safeTransfer(from, to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeTransfer-address-address-uint256-}[`_safeTransfer`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeTransfer(address from, address to, uint256 tokenId, bytes memory data) internal virtual {
        _transfer(from, to, tokenId);
        _checkOnERC721Received(from, to, tokenId, data);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * The `auth` argument is optional. If the value passed is non 0, then this function will check that `auth` is
     * either the owner of the token, or approved to operate on all tokens held by this owner.
     *
     * Emits an {Approval} event.
     *
     * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument.
     */
    function _approve(address to, uint256 tokenId, address auth) internal {
        _approve(to, tokenId, auth, true);
    }

    /**
     * @dev Variant of `_approve` with an optional flag to enable or disable the {Approval} event. The event is not
     * emitted in the context of transfers.
     */
    function _approve(address to, uint256 tokenId, address auth, bool emitEvent) internal virtual {
        // Avoid reading the owner unless necessary
        if (emitEvent || auth != address(0)) {
            address owner = _requireOwned(tokenId);

            // We do not use _isAuthorized because single-token approvals should not be able to call approve
            if (auth != address(0) && owner != auth && !isApprovedForAll(owner, auth)) {
                revert ERC721InvalidApprover(auth);
            }

            if (emitEvent) {
                emit Approval(owner, to, tokenId);
            }
        }

        _tokenApprovals[tokenId] = to;
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Requirements:
     * - operator can't be the address zero.
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(address owner, address operator, bool approved) internal virtual {
        if (operator == address(0)) {
            revert ERC721InvalidOperator(operator);
        }
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Reverts if the `tokenId` doesn't have a current owner (it hasn't been minted, or it has been burned).
     * Returns the owner.
     *
     * Overrides to ownership logic should be done to {_ownerOf}.
     */
    function _requireOwned(uint256 tokenId) internal view returns (address) {
        address owner = _ownerOf(tokenId);
        if (owner == address(0)) {
            revert ERC721NonexistentToken(tokenId);
        }
        return owner;
    }

    /**
     * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target address. This will revert if the
     * recipient doesn't accept the token transfer. The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param data bytes optional data to send along with the call
     */
    function _checkOnERC721Received(address from, address to, uint256 tokenId, bytes memory data) private {
        if (to.code.length > 0) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) {
                if (retval != IERC721Receiver.onERC721Received.selector) {
                    revert ERC721InvalidReceiver(to);
                }
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert ERC721InvalidReceiver(to);
                } else {
                    /// @solidity memory-safe-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        }
    }
}

File 4 of 25 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.20;

import {ERC721} from "../ERC721.sol";
import {IERC721Enumerable} from "./IERC721Enumerable.sol";
import {IERC165} from "../../../utils/introspection/ERC165.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds enumerability
 * of all the token ids in the contract as well as all token ids owned by each account.
 *
 * CAUTION: `ERC721` extensions that implement custom `balanceOf` logic, such as `ERC721Consecutive`,
 * interfere with enumerability and should not be used together with `ERC721Enumerable`.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    mapping(address owner => mapping(uint256 index => uint256)) private _ownedTokens;
    mapping(uint256 tokenId => uint256) private _ownedTokensIndex;

    uint256[] private _allTokens;
    mapping(uint256 tokenId => uint256) private _allTokensIndex;

    /**
     * @dev An `owner`'s token query was out of bounds for `index`.
     *
     * NOTE: The owner being `address(0)` indicates a global out of bounds index.
     */
    error ERC721OutOfBoundsIndex(address owner, uint256 index);

    /**
     * @dev Batch mint is not allowed.
     */
    error ERC721EnumerableForbiddenBatchMint();

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) {
        return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual returns (uint256) {
        if (index >= balanceOf(owner)) {
            revert ERC721OutOfBoundsIndex(owner, index);
        }
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual returns (uint256) {
        if (index >= totalSupply()) {
            revert ERC721OutOfBoundsIndex(address(0), index);
        }
        return _allTokens[index];
    }

    /**
     * @dev See {ERC721-_update}.
     */
    function _update(address to, uint256 tokenId, address auth) internal virtual override returns (address) {
        address previousOwner = super._update(to, tokenId, auth);

        if (previousOwner == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (previousOwner != to) {
            _removeTokenFromOwnerEnumeration(previousOwner, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (previousOwner != to) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }

        return previousOwner;
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = balanceOf(to) - 1;
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = balanceOf(from);
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }

    /**
     * See {ERC721-_increaseBalance}. We need that to account tokens that were minted in batch
     */
    function _increaseBalance(address account, uint128 amount) internal virtual override {
        if (amount > 0) {
            revert ERC721EnumerableForbiddenBatchMint();
        }
        super._increaseBalance(account, amount);
    }
}

File 5 of 25 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.20;

import {IERC721} from "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 6 of 25 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.20;

import {IERC721} from "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 7 of 25 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.20;

import {IERC165} from "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon
     *   a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId, bytes calldata data) external;

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or
     *   {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon
     *   a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(address from, address to, uint256 tokenId) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 tokenId) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the address zero.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);
}

File 8 of 25 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.20;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be
     * reverted.
     *
     * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 9 of 25 : Base64.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Base64.sol)

pragma solidity ^0.8.20;

/**
 * @dev Provides a set of functions to operate with Base64 strings.
 */
library Base64 {
    /**
     * @dev Base64 Encoding/Decoding Table
     */
    string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    /**
     * @dev Converts a `bytes` to its Bytes64 `string` representation.
     */
    function encode(bytes memory data) internal pure returns (string memory) {
        /**
         * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence
         * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol
         */
        if (data.length == 0) return "";

        // Loads the table into memory
        string memory table = _TABLE;

        // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter
        // and split into 4 numbers of 6 bits.
        // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up
        // - `data.length + 2`  -> Round up
        // - `/ 3`              -> Number of 3-bytes chunks
        // - `4 *`              -> 4 characters for each chunk
        string memory result = new string(4 * ((data.length + 2) / 3));

        /// @solidity memory-safe-assembly
        assembly {
            // Prepare the lookup table (skip the first "length" byte)
            let tablePtr := add(table, 1)

            // Prepare result pointer, jump over length
            let resultPtr := add(result, 32)

            // Run over the input, 3 bytes at a time
            for {
                let dataPtr := data
                let endPtr := add(data, mload(data))
            } lt(dataPtr, endPtr) {

            } {
                // Advance 3 bytes
                dataPtr := add(dataPtr, 3)
                let input := mload(dataPtr)

                // To write each character, shift the 3 bytes (18 bits) chunk
                // 4 times in blocks of 6 bits for each character (18, 12, 6, 0)
                // and apply logical AND with 0x3F which is the number of
                // the previous character in the ASCII table prior to the Base64 Table
                // The result is then added to the table to get the character to write,
                // and finally write it in the result pointer but with a left shift
                // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits

                mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance
            }

            // When data `bytes` is not exactly 3 bytes long
            // it is padded with `=` characters at the end
            switch mod(mload(data), 3)
            case 1 {
                mstore8(sub(resultPtr, 1), 0x3d)
                mstore8(sub(resultPtr, 2), 0x3d)
            }
            case 2 {
                mstore8(sub(resultPtr, 1), 0x3d)
            }
        }

        return result;
    }
}

File 10 of 25 : Context.sol
// 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;
    }
}

File 11 of 25 : MerkleProof.sol
// 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)
        }
    }
}

File 12 of 25 : ERC165.sol
// 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;
    }
}

File 13 of 25 : IERC165.sol
// 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);
}

File 14 of 25 : Math.sol
// 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;
    }
}

File 15 of 25 : SignedMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.20;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two signed numbers.
     */
    function min(int256 a, int256 b) internal pure returns (int256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

File 16 of 25 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/ReentrancyGuard.sol)

pragma solidity ^0.8.20;

/**
 * @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;

    /**
     * @dev Unauthorized reentrant call.
     */
    error ReentrancyGuardReentrantCall();

    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
        if (_status == ENTERED) {
            revert ReentrancyGuardReentrantCall();
        }

        // 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;
    }
}

File 17 of 25 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol)

pragma solidity ^0.8.20;

import {Math} from "./math/Math.sol";
import {SignedMath} from "./math/SignedMath.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant HEX_DIGITS = "0123456789abcdef";
    uint8 private constant ADDRESS_LENGTH = 20;

    /**
     * @dev The `value` string doesn't fit in the specified `length`.
     */
    error StringsInsufficientHexLength(uint256 value, uint256 length);

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toStringSigned(int256 value) internal pure returns (string memory) {
        return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value)));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        uint256 localValue = value;
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = HEX_DIGITS[localValue & 0xf];
            localValue >>= 4;
        }
        if (localValue != 0) {
            revert StringsInsufficientHexLength(value, length);
        }
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal
     * representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);
    }

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

File 18 of 25 : FixedPoint.sol
// SPDX-License-Identifier: MIT

pragma solidity =0.8.20;

import {Strings} from "@openzeppelin/contracts/utils/Strings.sol";

library FixedPoint {
    bytes16 private constant HEX_DIGITS = "0123456789abcdef";
    int256 internal constant ONE = 1e18; // 18 decimal places
    int256 internal constant TWO = 2e18; // 18 decimal places
    int256 internal constant THREE = 3e18; // 18 decimal places
    int256 internal constant FOUR = 4e18; // 18 decimal places

    function mul(int256 a, int256 b) internal pure returns (int256) {
        int256 product = a * b;
        return product / ONE;
    }

    function div(int256 a, int256 b) internal pure returns (int256) {
        int256 aInflated = a * ONE;
        return aInflated / b;
    }

    function toFixedString(
        int256 a,
        uint256 decimals
    ) internal pure returns (string memory) {
        a /= int256(10 ** (18 - decimals));
        bool isNeg;
        if (a < 0) {
            isNeg = true;
            a = -a;
        }

        string memory buffer = new string(decimals);
        uint256 ptr;
        /// @solidity memory-safe-assembly
        assembly {
            ptr := add(buffer, add(32, decimals))
        }
        for (uint256 j = 0; j < decimals; ++j) {
            ptr--;
            /// @solidity memory-safe-assembly
            assembly {
                mstore8(ptr, byte(mod(a, 10), HEX_DIGITS))
            }
            a /= 10;
        }
        return
            string(
                abi.encodePacked(
                    isNeg ? "-" : "",
                    Strings.toString(uint256(a)),
                    ".",
                    buffer
                )
            );
    }
}

File 19 of 25 : Polynomial.sol
// SPDX-License-Identifier: MIT

pragma solidity =0.8.20;

import {FixedPoint} from "./FixedPoint.sol";

library Polynomial {
    using FixedPoint for int256;

    /// @dev Compute the coefficients of the polynomial with roots at the given roots.
    /// The roots may be in any order. They are all in the range [-1, 1]. The polynomial should also pass
    /// the origin (the (0, 0) coordinates), i.e., the constant term is zero.
    ///
    /// The polynomial is (x-roots[0]) * (x-roots[1]) * ... * (x-roots[n-1]).
    ///
    /// @param roots The list of roots of the polynomial.
    /// @return coefs The list of coefficients of the polynomial.
    function generatePolynomialByRoots(
        int256[] memory roots
    ) internal pure returns (int256[] memory coefs) {
        uint256 n = roots.length;
        coefs = new int256[](n + 1);
        coefs[0] = FixedPoint.ONE;
        for (uint256 i = 0; i < n; ++i) {
            int256 r = roots[i];
            coefs[i + 1] = coefs[i];
            for (uint256 j = i; j > 0; --j) {
                coefs[j] = coefs[j - 1] - r.mul(coefs[j]);
            }
            coefs[0] = -r.mul(coefs[0]);
        }
    }

    /// @dev Compute the roots of the given polynomial with known extremums.
    /// Here, we use binary search to find roots between adjacent extremums.
    ///
    /// @param poly The coefficients of the polynomial.
    /// @param extremums The list of extremums.
    /// @return roots The list of roots of the polynomial.
    function generateRootsByExtremums(
        int256[] memory poly,
        int256[] memory extremums
    ) internal pure returns (int256[] memory roots) {
        uint256 n = extremums.length;
        int256 px = -FixedPoint.ONE;
        int256 py = evalPoly(poly, px);
        int256[] memory troots = new int256[](n + 1);
        uint256 index = 0;
        for (uint256 i = 0; i <= n; ++i) {
            int256 nx = i == n ? FixedPoint.ONE : extremums[i];
            int256 ny = evalPoly(poly, nx);
            if (py * ny <= 0) {
                for (uint256 it = 0; it < 20; ++it) {
                    int256 x = (px + nx) / 2;
                    int256 y = evalPoly(poly, x);
                    if (y * py > 0) px = x + 1;
                    else nx = x;
                }
                troots[index] = nx;
                index += 1;
            }
            px = i == n ? FixedPoint.ONE : extremums[i];
            py = ny;
        }
        roots = new int256[](index);
        for (uint256 i = 0; i < index; ++i) {
            roots[i] = troots[i];
        }
    }

    function normalizeRoots(
        int256[] memory roots,
        int256 left,
        int256 right
    ) internal pure {
        int256 max = roots[0];
        int256 min = roots[0];
        for (uint256 i = 1; i < roots.length; i++) {
            if (roots[i] > max) max = roots[i];
            if (roots[i] < min) min = roots[i];
        }
        int256 scale = (right - left).div(max - min);
        int256 shift = right - max.mul(scale);
        for (uint256 i = 0; i < roots.length; i++) {
            roots[i] = roots[i].mul(scale) + shift;
        }
    }

    function inverseDerivative(
        int256[] memory poly
    ) internal pure returns (int256[] memory) {
        int256[] memory ret = new int256[](poly.length + 1);
        for (uint256 i = 0; i < poly.length; i++) {
            ret[i + 1] = poly[i] / int256(i + 1);
        }
        return ret;
    }

    function normalizePolynomial(
        int256[] memory poly,
        int256[] memory roots
    ) internal pure returns (int256[] memory npoly) {
        int256 min = evalPoly(poly, -FixedPoint.ONE);
        int256 max = evalPoly(poly, -FixedPoint.ONE);
        int256 y = evalPoly(poly, FixedPoint.ONE);
        if (y < min) min = y;
        if (y > max) max = y;
        for (uint256 i = 0; i < roots.length; i++) {
            y = evalPoly(poly, roots[i]);
            if (y < min) min = y;
            if (y > max) max = y;
        }
        if (min < 0) min = -min;
        if (max < 0) max = -max;
        int256 normalizeFactor;
        if (min < max) normalizeFactor = max;
        else normalizeFactor = min;
        if (normalizeFactor < 10000000000000) normalizeFactor = 10000000000000;

        npoly = new int256[](poly.length);
        for (uint256 i = 0; i < poly.length; i++) {
            npoly[i] = poly[i].div(normalizeFactor);
        }
    }

    function evalPoly(
        int256[] memory poly,
        int256 x
    ) internal pure returns (int256 y) {
        uint256 n = poly.length;
        for (uint256 i = 0; i < n; i++) {
            y = y.mul(x) + poly[n - 1 - i];
        }
    }
}

File 20 of 25 : Random.sol
// SPDX-License-Identifier: MIT

pragma solidity =0.8.20;

import {Strings} from "@openzeppelin/contracts/utils/Strings.sol";

import {FixedPoint} from "./FixedPoint.sol";

library Random {
    using FixedPoint for int256;

    /// @dev Generate a random boolean based on the given `inputString`.
    function genBool(string memory inputString) internal pure returns (bool) {
        return
            (uint256(keccak256(abi.encodePacked(inputString))) >> 23) & 1 == 1;
    }

    /// @dev Generate a list of random floats based on the given `inputString`.
    function genMultipleFloat(
        string memory inputString,
        uint256 num,
        int256 minDis,
        uint256 counter
    ) internal pure returns (int256[] memory floats) {
        floats = new int256[](num);
        uint256 index = 0;
        while (index < num) {
            int256 x = int256(
                uint256(
                    keccak256(
                        abi.encodePacked(
                            inputString,
                            "||",
                            Strings.toString(counter)
                        )
                    )
                ) & 65535
            ).div(32768) - FixedPoint.ONE;
            if (index == 0) {
                floats[index] = x;
                index += 1;
            } else {
                int256 dist = type(int256).max;
                for (uint256 i = 0; i < index; i++) {
                    int256 delta;
                    if (x > floats[i]) delta = x - floats[i];
                    else delta = floats[i] - x;
                    if (delta < dist) dist = delta;
                }
                if (dist > minDis) {
                    floats[index] = x;
                    index += 1;
                }
            }
            counter += 1;
        }
    }
}

File 21 of 25 : NFTDescriptor.sol
// SPDX-License-Identifier: MIT

pragma solidity =0.8.20;

import {Base64} from "@openzeppelin/contracts/utils/Base64.sol";
import {Strings} from "@openzeppelin/contracts/utils/Strings.sol";

import {FixedPoint} from "./math/FixedPoint.sol";
import {Polynomial} from "./math/Polynomial.sol";
import {Random} from "./math/Random.sol";

import {GradientBackgroundSVGGenerator} from "./svg-generator/GradientBackgroundSVGGenerator.sol";
import {GradientStrokeSVGGenerator} from "./svg-generator/GradientStrokeSVGGenerator.sol";
import {ISVGGenerator} from "./svg-generator/ISVGGenerator.sol";
import {SVGGenerator} from "./svg-generator/SVGGenerator.sol";

library NFTDescriptor {
    using FixedPoint for int256;

    bytes16 private constant HEX_DIGITS = "0123456789abcdef";

    /// @dev The year of the genesis block.
    uint32 internal constant genesisYear = 2023;

    /// @dev The month of the genesis block.
    uint32 internal constant genesisMonth = 10;

    /// @dev The day of the genesis block.
    uint32 internal constant genesisDay = 10;

    string internal constant Tier1Color0 = "#EDCCA2";
    string internal constant Tier1Color1 = "#EBC28E";
    uint256 internal constant Tier1Degree = 5;

    string internal constant Tier2Color0 = "#93FBED";
    string internal constant Tier2Color1 = "#62E6D4";
    uint256 internal constant Tier2Degree = 4;

    string internal constant Tier3Color0 = "#FF684B";
    string internal constant Tier3Color1 = "#EE5132";
    uint256 internal constant Tier3Degree = 3;

    int256 internal constant maxViewportX = 153620000000000000000;
    int256 internal constant maxViewportY = 153620000000000000000;

    struct ConstructTokenURIParams {
        uint256 tokenId;
        address deployer;
        address firstDeployedContract;
        address bestDeployedContract;
        uint256 deployMonth;
        uint256 deployDay;
        uint256 deployOrder;
        uint256 background;
        uint256 stroke;
        uint256 rarity;
    }

    function constructTokenURI(
        ConstructTokenURIParams memory params
    ) internal pure returns (string memory) {
        uint256 degree;
        ISVGGenerator.GenerateSVGParams memory svgParams;
        (svgParams.color0, svgParams.color1, degree) = getTier(
            params.deployMonth,
            params.deployDay
        );
        svgParams.deployDate = generateDate(
            params.deployMonth,
            params.deployDay
        );
        svgParams.deployOrder = Strings.toString(params.deployOrder);
        svgParams.id = Strings.toHexString(params.bestDeployedContract);

        {
            string memory rank = string(
                abi.encodePacked(
                    svgParams.deployDate,
                    svgParams.deployOrder,
                    params.deployer,
                    params.firstDeployedContract,
                    params.bestDeployedContract,
                    params.rarity,
                    params.background,
                    params.stroke
                )
            );
            // generate polynomial
            (
                int256[] memory poly,
                int256[] memory extremums,
                int256[] memory roots
            ) = generatePolynomialByRank(rank, degree);
            svgParams.path = generatePathByPolynomial(poly, extremums, roots);
            svgParams.polyStr = generatePolynomialString(poly);
        }

        // generate SVG and base64 compress
        string memory image;
        if (params.background > 0) {
            image = GradientBackgroundSVGGenerator.generateSVGImage(svgParams);
        } else if (params.stroke > 0) {
            image = GradientStrokeSVGGenerator.generateSVGImage(svgParams);
        } else {
            image = SVGGenerator.generateSVGImage(svgParams);
        }
        image = Base64.encode(bytes(image));

        return
            string(
                abi.encodePacked(
                    "data:application/json;base64,",
                    Base64.encode(
                        bytes(
                            abi.encodePacked(
                                '{"name":"Scroll Genesis NFT #',
                                Strings.toString(params.tokenId),
                                '", "description":"',
                                generateDescription(),
                                '", "attributes":',
                                generateAttributes(
                                    degree,
                                    params.rarity,
                                    params.background,
                                    params.stroke
                                ),
                                ', "image": "',
                                "data:image/svg+xml;base64,",
                                image,
                                '"}'
                            )
                        )
                    )
                )
            );
    }

    /// @dev Return the description of Scroll Origins NFT.
    function generateDescription()
        internal
        pure
        returns (string memory description)
    {
        return
            "The Scroll Origins NFT is a soulbound NFT that serves to recognize the early builders of Scroll. Eligible minters have deployed a smart contract to Scroll Mainnetwithin 60 days of the Genesis Block. Higher levels of rarity are are rewarded to smart contracts that have contributed significant levels of interaction or value to the network.";
    }

    function generateAttributes(
        uint256 curvature,
        uint256 rarity,
        uint256 background,
        uint256 stroke
    ) internal pure returns (string memory attributes) {
        attributes = '[{"trait_type":"Curvature","value":';
        // Curvature
        if (curvature == 3) {
            attributes = string(abi.encodePacked(attributes, '"Cubic"}'));
        } else if (curvature == 4) {
            attributes = string(abi.encodePacked(attributes, '"Quartic"}'));
        } else {
            attributes = string(abi.encodePacked(attributes, '"Quintic"}'));
        }

        // Rarity
        attributes = string(
            abi.encodePacked(
                attributes,
                ',{"trait_type":"Rarity","value":"',
                Strings.toString(rarity),
                '"}'
            )
        );

        // Exceptional Recognition
        if (background > 0) {
            attributes = string(
                abi.encodePacked(
                    attributes,
                    ',{"trait_type":"Exceptional Recognition","value":"Rainbow Background"}'
                )
            );
        }
        if (stroke > 0) {
            attributes = string(
                abi.encodePacked(
                    attributes,
                    ',{"trait_type":"Exceptional Recognition","value":"Rainbow Stroke"}'
                )
            );
        }

        attributes = string(abi.encodePacked(attributes, "]"));
    }

    /// @dev Return the deployment date string of the contract.
    function generateDate(
        uint256 month,
        uint256 day
    ) internal pure returns (string memory dateStr) {
        string memory monthString;
        string memory dayString;
        if (month == 10) monthString = "Oct ";
        if (month == 11) monthString = "Nov ";
        if (month == 12) monthString = "Dec ";
        if (day < 10)
            dayString = string(abi.encodePacked("0", Strings.toString(day)));
        else dayString = Strings.toString(day);
        return string(abi.encodePacked(monthString, dayString, ", 2023"));
    }

    function generatePolynomialString(
        int256[] memory poly
    ) internal pure returns (string memory polyStr) {
        uint256 n = poly.length;
        for (uint256 i = 1; i < n; ++i) {
            int256 w = poly[i] / 1e14; // fixed 4 decimal points
            bool isNeg;
            if (w < 0) {
                isNeg = true;
                w = -w;
            }
            string memory buffer = new string(4);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, 36)
            }
            for (uint256 j = 0; j < 4; ++j) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(w, 10), HEX_DIGITS))
                }
                w /= 10;
            }
            string memory item = string(
                abi.encodePacked(
                    isNeg
                        ? (i == n - 1 ? " -" : " - ")
                        : (i == n - 1 ? " " : " + "),
                    Strings.toString(uint256(w)),
                    ".",
                    buffer
                )
            );
            if (i == 1) {
                item = string(abi.encodePacked(item, "x"));
            } else {
                item = string(
                    abi.encodePacked(item, "x<sup>", Strings.toString((i)), "</sup>")
                );
            }
            polyStr = string(abi.encodePacked(item, polyStr));
        }
        polyStr = string(abi.encodePacked("f(x) =", polyStr));
    }

    function generatePathByPolynomial(
        int256[] memory poly,
        int256[] memory extremums,
        int256[] memory roots
    ) internal pure returns (string memory pathStr) {
        // merge sort extremums and roots to x
        int256[] memory x = new int256[](extremums.length + roots.length + 2);
        x[0] = -FixedPoint.ONE;
        x[1] = FixedPoint.ONE;
        uint256 index = 2;
        for (uint256 i = 0; i < extremums.length; ++i) {
            x[index] = extremums[i];
            index += 1;
        }
        for (uint256 i = 0; i < roots.length; ++i) {
            x[index] = roots[i];
            index += 1;
        }
        sort(x);
        int256 px = x[0];

        (int256 vx, int256 vy) = translatePoint(poly, px);
        pathStr = string(
            abi.encodePacked("M", vx.toFixedString(3), " ", vy.toFixedString(3))
        );
        index = 1;
        for (uint256 i = 1; i < x.length; ++i) {
            int256 nx = x[i];
            // diff at least 1e-4
            if (nx - px > 100000000000000) {
                int256 dx = (nx - px) / 25;
                for (int256 j = 1; j <= 25; ++j) {
                    (vx, vy) = translatePoint(poly, px + dx * j);
                    if (index % 2 == 0) {
                        pathStr = string(
                            abi.encodePacked(
                                pathStr,
                                " ",
                                vx.toFixedString(3),
                                " ",
                                vy.toFixedString(3)
                            )
                        );
                    } else {
                        pathStr = string(
                            abi.encodePacked(
                                pathStr,
                                " Q",
                                vx.toFixedString(3),
                                " ",
                                vy.toFixedString(3),
                                ","
                            )
                        );
                    }
                    index += 1;
                }
                px = nx;
            }
        }
    }

    function translatePoint(
        int256[] memory poly,
        int256 x
    ) internal pure returns (int256, int256) {
        int256 y = Polynomial.evalPoly(poly, x);
        int256 dx = maxViewportX / 2;
        if (x < 0) {
            x = dx - dx.mul(-x);
        } else {
            x = dx + dx.mul(x);
        }
        int256 dy = maxViewportY / 2;
        if (y < 0) {
            y = dy + dy.mul(-y);
        } else {
            y = dy - dy.mul(y);
        }
        return (x, y);
    }

    function getTier(
        uint256 deployMonth,
        uint256 deployDay
    ) internal pure returns (string memory, string memory, uint256) {
        uint256 numOfDay;
        if (deployMonth == 10) numOfDay = deployDay - genesisDay;
        else if (deployMonth == 11) numOfDay = deployDay + 21;
        else if (deployMonth == 12) numOfDay = deployDay + 51;
        else numOfDay = 100;

        if (numOfDay <= 30) return (Tier1Color0, Tier1Color1, Tier1Degree);
        else if (numOfDay <= 45) return (Tier2Color0, Tier2Color1, Tier2Degree);
        else return (Tier3Color0, Tier3Color1, Tier3Degree);
    }

    /// @dev generate polynomial by rank and degree
    function generatePolynomialByRank(
        string memory rank,
        uint256 degree
    )
        internal
        pure
        returns (
            int256[] memory npoly,
            int256[] memory extremums,
            int256[] memory roots
        )
    {
        // generate roots for derivative polynomial
        roots = Random.genMultipleFloat(
            rank,
            degree - 1,
            FixedPoint.ONE / int256(degree - 1),
            0
        );
        {
            int256[] memory boundary = Random.genMultipleFloat(
                rank,
                2,
                0,
                1000
            );
            int256 left = (boundary[0] - FixedPoint.THREE).div(FixedPoint.FOUR);
            int256 right = (boundary[1] + FixedPoint.THREE).div(
                FixedPoint.FOUR
            );
            Polynomial.normalizeRoots(roots, left, right);
        }

        int256[] memory dpoly = Polynomial.generatePolynomialByRoots(roots);
        int256[] memory poly = Polynomial.inverseDerivative(dpoly);
        npoly = Polynomial.normalizePolynomial(poly, roots);

        // whether we flip the polynomial
        if (Random.genBool(rank)) {
            for (uint256 i = 0; i < npoly.length; i++) {
                npoly[i] = -npoly[i];
            }
        }

        extremums = roots;
        sort(extremums);
        roots = Polynomial.generateRootsByExtremums(npoly, extremums);
    }

    function sort(int256[] memory a) internal pure {
        uint256 n = a.length;
        unchecked {
            for (uint256 i = 0; i < n - 1; ++i) {
                for (uint256 j = 0; j < n - 1 - i; ++j) {
                    if (a[j] > a[j + 1]) {
                        (a[j], a[j + 1]) = (a[j + 1], a[j]);
                    }
                }
            }
        }
    }
}

File 22 of 25 : GradientBackgroundSVGGenerator.sol
// SPDX-License-Identifier: MIT

pragma solidity =0.8.20;

import {ISVGGenerator} from "./ISVGGenerator.sol";

library GradientBackgroundSVGGenerator {
    function generateSVGImage(
        ISVGGenerator.GenerateSVGParams memory params
    ) external pure returns (string memory svg) {
        svg = string(
            abi.encodePacked(
                '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 368.5 368.5" style="enable-background:new 0 0 368.5 368.5;" xml:space="preserve">\n',
                '  <style type="text/css">\n',
                "    .st0{fill:#050308;}\n",
                "    .st2{stroke:#050308;stroke-width:3;stroke-miterlimit:10;}\n",
                "    .st4{fill:none;stroke:#050308;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}\n",
                "    .st6{fill:none;stroke:", params.color0, ";stroke-width:0.25;stroke-linecap:round;stroke-linejoin:round;}\n",
                "    .st7{fill:", params.color0, ";}\n",
                "    .st8{fill:#050308;stroke:", params.color0, ";stroke-miterlimit:10;}\n",
                "    .st45{stroke:#050308;stroke-width:3;stroke-miterlimit:10;}\n",
                "    .row{margin:0;}\n",
                "    .row span{display:inline-block;height:14px;line-height:14px;background:#050308;padding:0 3px;border:1px solid ", params.color1, ";}\n",
                "    .row span:nth-child(even){\n",
                "      border-left:none;\n",
                "    }\n",
                "    .row:nth-child(n+2) span{\n",
                "      margin-top: -0.9px\n",
                "    }\n",
                "    .row:nth-child(n+2) span:nth-child(1){\n",
                "      width: 55.8px\n",
                "    }\n",
                "    .st61{\n",
                "      fill:none;\n",
                "      stroke:#90F9EA;\n",
                "      stroke-width:4;\n",
                "      stroke-linecap:round;\n",
                "      stroke-miterlimit:10;\n",
                "      stroke-dasharray: 1000;\n",
                "      animation: draw 3s linear 4ms infinite;\n",
                "    }\n",
                "    @keyframes draw{\n",
                "      from{\n",
                "        stroke-dashoffset: 1000\n",
                "      }\n",
                "      to{\n",
                "        stroke-dashoffset: 0\n",
                "      }\n",
                "    }\n",
                "  </style>\n",
                "  <g>\n",
                "    <g>\n",
                "      <g>\n",
                '        <path class="st45" fill="url(#gradient1)" d="M52.35,3.21c-9.67,0-17.62,7.31-18.65,16.7c-1.97,15.16,8.18,22.06,8.18,22.06h29.24V21.98     C71.12,11.62,62.72,3.21,52.35,3.21z"/>\n',
                '        <path class="st2" fill="url(#gradient2)" d="M278.85,3.21H71.12H52.35c10.37,0,18.77,8.4,18.77,18.77v322.64c0,11.42,9.25,20.67,20.67,20.67h205.83     V21.98C297.62,11.62,289.22,3.21,278.85,3.21z"/>\n',
                "      </g>\n",
                '      <path class="st45" fill="url(#gradient3)" d="M334.31,324.52H109.34c4.23,4.36,6.84,10.3,6.84,16.85c0,12.07-8.83,22.07-20.38,23.91h224.97    c11.55-1.84,20.38-11.84,20.38-23.91C341.15,334.82,338.54,328.88,334.31,324.52z"/>\n',
                '      <rect x="79.69" y="15.45" transform="matrix(-1 -1.224647e-16 1.224647e-16 -1 335.9427 77.7668)" class="st4" width="176.55" height="46.86"/>\n',
                "    </g>\n",
                "    <g>\n",
                "      <g>\n",
                '        <polygon class="st0" points="79.36,73.71 79.36,252.15 98.72,271.33 288.28,271.33 288.28,106.52 255.48,73.71"/>\n',
                "      </g>\n",
                '      <mask id="polygon" style="mask-type:luminance" maskUnits="userSpaceOnUse">\n',
                '        <path d="M79.36 73.71L79.36 252.15 L98.72 271.33 L288.28 271.33 L288.28 106.52 L255.48 73.71Z" fill="white"/>\n',
                "      </mask>\n",
                '      <g mask="url(#polygon)">\n',
                "        <g>\n",
                "          <g>\n",
                '            <polygon class="st7" points="183.82,85.77 179.15,98.58 188.49,98.58"/>\n',
                '            <polygon class="st7" points="183.82,259.27 188.49,246.46 179.15,246.46"/>\n',
                '            <line x1="183.82" y1="95.71" x2="183.82" y2="250.53" stroke="', params.color0, '" stroke-width="2" />\n',
                '            <polygon class="st7" points="270.57,172.52 257.76,167.85 257.76,177.19"/>\n',
                '            <polygon class="st7" points="97.07,172.52 109.88,177.19 109.88,167.85"/>\n',
                '            <line x1="107.01" y1="172.52" x2="260.63" y2="172.52" stroke="', params.color0, '" stroke-width="2" />\n',
                "          </g>\n",
                "          <g>\n",
                '            <line class="st6" x1="79.36" y1="85.77" x2="288.28" y2="85.77"/>\n',
                '            <line class="st6" x1="79.36" y1="103.12" x2="288.28" y2="103.12"/>\n',
                '            <line class="st6" x1="79.36" y1="120.47" x2="288.28" y2="120.47"/>\n',
                '            <line class="st6" x1="79.36" y1="137.82" x2="288.28" y2="137.82"/>\n',
                '            <line class="st6" x1="79.36" y1="155.17" x2="288.28" y2="155.17"/>\n',
                '            <line class="st6" x1="79.36" y1="172.52" x2="288.28" y2="172.52"/>\n',
                '            <line class="st6" x1="79.36" y1="189.87" x2="288.28" y2="189.87"/>\n',
                '            <line class="st6" x1="79.36" y1="207.22" x2="288.28" y2="207.22"/>\n',
                '            <line class="st6" x1="79.36" y1="224.57" x2="288.28" y2="224.57"/>\n',
                '            <line class="st6" x1="79.36" y1="241.92" x2="288.28" y2="241.92"/>\n',
                '            <line class="st6" x1="79.36" y1="259.27" x2="288.28" y2="259.27"/>\n',
                '            <line class="st6" x1="270.57" y1="73.71" x2="270.57" y2="288.28"/>\n',
                '            <line class="st6" x1="253.22" y1="73.71" x2="253.22" y2="288.28"/>\n',
                '            <line class="st6" x1="235.87" y1="73.71" x2="235.87" y2="288.28"/>\n',
                '            <line class="st6" x1="218.52" y1="73.71" x2="218.52" y2="288.28"/>\n',
                '            <line class="st6" x1="201.17" y1="73.71" x2="201.17" y2="288.28"/>\n',
                '            <line class="st6 y" x1="183.82" y1="73.71" x2="183.82" y2="288.28"/>\n',
                '            <line class="st6" x1="166.47" y1="73.71" x2="166.47" y2="288.28"/>\n',
                '            <line class="st6" x1="149.12" y1="73.71" x2="149.12" y2="288.28"/>\n',
                '            <line class="st6" x1="131.77" y1="73.71" x2="131.77" y2="288.28"/>\n',
                '            <line class="st6" x1="114.42" y1="73.71" x2="114.42" y2="288.28"/>\n',
                '            <line class="st6" x1="97.07" y1="73.71" x2="97.07" y2="288.28"/>\n',
                "          </g>\n",
                "        </g>\n",
                "      </g>\n",
                "    </g>\n",
                '    <foreignObject width="176.55" height="46.86" transform="translate(79.69, 15.45)" >\n',
                '      <body xmlns="http://www.w3.org/1999/xhtml" style="margin:0;height:100%;display:flex;align-items:center;padding:0 4px;">\n',
                "        <p style=\"font-family:'Arial';font-size:11px;line-height:1.2\">", params.polyStr, "</p>\n",
                "      </body>\n",
                "    </foreignObject> \n",
                '    <foreignObject width="189.56" height="46" transform="translate(98.72, 271.33)" >\n',
                '      <body xmlns="http://www.w3.org/1999/xhtml" style="margin:0;height:100%;font-size:7px;font-family:\'Arial\';color:white">\n',
                '        <p class="row"><span>ID</span><span>', params.id, '</span></p>\n',
                '        <p class="row"><span>Deployment Rank</span><span>', params.deployOrder, '</span></p>\n',
                '        <p class="row"><span>First Deployment</span><span>', params.deployDate, '</span></p>\n',
                "      </body>\n",
                "    </foreignObject>\n",
                '    <polygon class="st4" points="288.46,94.66 256.3,62.31 256.3,15.45 288.46,47.8"/>\n',
                "  </g>\n",
                '  <g transform="translate(107.01, 95.71)">\n',
                '    <path class="st61" d="', params.path, '"/>\n',
                "  </g>\n",
                "  <defs>\n",
                '    <linearGradient id="gradient1" x1="32.15344" y1="39.3417" x2="71.3854" y2="9.9467" gradientUnits="userSpaceOnUse">\n',
                '      <stop stop-color="#93FBED"/>\n',
                '      <stop offset="0.25" stop-color="#F49BFF"/>\n',
                '      <stop offset="0.64" stop-color="#FFBC4F"/>\n',
                '      <stop offset="1" stop-color="#FF684B"/>\n',
                "    </linearGradient>\n",
                '    <linearGradient id="gradient2" x1="61.5358" y1="350.831" x2="374.895" y2="187.201" gradientUnits="userSpaceOnUse">\n',
                '      <stop stop-color="#93FBED"/>\n',
                '      <stop offset="0.25" stop-color="#F49BFF"/>\n',
                '      <stop offset="0.64" stop-color="#FFBC4F"/>\n',
                '      <stop offset="1" stop-color="#FF684B"/>\n',
                "    </linearGradient>\n",
                '    <linearGradient id="gradient3" x1="104.9998" y1="362.579" x2="122.7058" y2="280.42" gradientUnits="userSpaceOnUse">\n',
                '      <stop stop-color="#93FBED"/>\n',
                '      <stop offset="0.25" stop-color="#F49BFF"/>\n',
                '      <stop offset="0.64" stop-color="#FFBC4F"/>\n',
                '      <stop offset="1" stop-color="#FF684B"/>\n',
                "    </linearGradient>\n",
                "  </defs>\n",
                "</svg> \n"
            )
        );
    }
}

File 23 of 25 : GradientStrokeSVGGenerator.sol
// SPDX-License-Identifier: MIT

pragma solidity =0.8.20;

import {ISVGGenerator} from "./ISVGGenerator.sol";

library GradientStrokeSVGGenerator {
    function generateSVGImage(
        ISVGGenerator.GenerateSVGParams memory params
    ) external pure returns (string memory svg) {
        svg = string(
            abi.encodePacked(
                '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 368.5 368.5" style="enable-background:new 0 0 368.5 368.5;" xml:space="preserve">\n',
                '  <style type="text/css">\n',
                "    .st0{fill:#050308;}\n",
                "    .st2{fill:", params.color0, ";stroke:#050308;stroke-width:3;stroke-miterlimit:10;}\n",
                "    .st4{fill:none;stroke:#050308;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}\n",
                "    .st6{fill:none;stroke:", params.color0, ";stroke-width:0.25;stroke-linecap:round;stroke-linejoin:round;}\n",
                "    .st7{fill:", params.color0, ";}\n",
                "    .st8{fill:#050308;stroke:", params.color0, ";stroke-miterlimit:10;}\n",
                "    .st45{fill:", params.color1, ";stroke:#050308;stroke-width:3;stroke-miterlimit:10;}\n",
                "    .row{margin:0;}\n",
                "    .row span{display:inline-block;height:14px;line-height:14px;background:#050308;padding:0 3px;border:1px solid ", params.color1, ";}\n",
                "    .row span:nth-child(even){\n",
                "      border-left:none;\n",
                "     }\n",
                "    .row:nth-child(n+2) span{\n",
                "      margin-top: -0.9px\n",
                "    }\n",
                "    .row:nth-child(n+2) span:nth-child(1){\n",
                "      width: 55.8px\n",
                "    }\n",
                "    .st61{\n",
                "      fill:none;\n",
                "      stroke-width:4;\n",
                "      stroke-linecap:round;\n",
                "      stroke-miterlimit:10;\n",
                "      stroke-dasharray: 1000;\n",
                "      animation: draw 3s linear 4ms infinite;\n",
                "    }\n",
                "    @keyframes draw{\n",
                "      from{\n",
                "        stroke-dashoffset: 1000\n",
                "      }\n",
                "      to{\n",
                "        stroke-dashoffset: 0\n",
                "      }\n",
                "    }\n",
                "  </style>\n",
                "  <g>\n",
                "    <g>\n",
                "      <g>\n",
                '        <path class="st45" d="M52.35,3.21c-9.67,0-17.62,7.31-18.65,16.7c-1.97,15.16,8.18,22.06,8.18,22.06h29.24V21.98     C71.12,11.62,62.72,3.21,52.35,3.21z"/>\n',
                '        <path class="st2" d="M278.85,3.21H71.12H52.35c10.37,0,18.77,8.4,18.77,18.77v322.64c0,11.42,9.25,20.67,20.67,20.67h205.83     V21.98C297.62,11.62,289.22,3.21,278.85,3.21z"/>\n',
                "      </g>\n",
                '      <path class="st45" d="M334.31,324.52H109.34c4.23,4.36,6.84,10.3,6.84,16.85c0,12.07-8.83,22.07-20.38,23.91h224.97    c11.55-1.84,20.38-11.84,20.38-23.91C341.15,334.82,338.54,328.88,334.31,324.52z"/>\n',
                '      <rect x="79.69" y="15.45" transform="matrix(-1 -1.224647e-16 1.224647e-16 -1 335.9427 77.7668)" class="st4" width="176.55" height="46.86"/>\n',
                "    </g>\n",
                "    <g>\n",
                "      <g>\n",
                '        <polygon class="st0" points="79.36,73.71 79.36,252.15 98.72,271.33 288.28,271.33 288.28,106.52 255.48,73.71"/>\n',
                "      </g>\n",
                "      <g>\n",
                "        <g>\n",
                "          <g>\n",
                '            <polygon class="st7" points="183.82,85.77 179.15,98.58 188.49,98.58"/>\n',
                '            <polygon class="st7" points="183.82,259.27 188.49,246.46 179.15,246.46"/>\n',
                '            <line x1="183.82" y1="95.71" x2="183.82" y2="250.53" stroke="', params.color0, '" stroke-width="2" />\n',
                '            <polygon class="st7" points="270.57,172.52 257.76,167.85 257.76,177.19"/>\n',
                '            <polygon class="st7" points="97.07,172.52 109.88,177.19 109.88,167.85"/>\n',
                '            <line x1="107.01" y1="172.52" x2="260.63" y2="172.52" stroke="', params.color0, '" stroke-width="2" />\n',
                "          </g>\n",
                "          <g>\n",
                '            <line class="st6" x1="79.36" y1="85.77" x2="288.28" y2="85.77"/>\n',
                '            <line class="st6" x1="79.36" y1="103.12" x2="288.28" y2="103.12"/>\n',
                '            <line class="st6" x1="79.36" y1="120.47" x2="288.28" y2="120.47"/>\n',
                '            <line class="st6" x1="79.36" y1="137.82" x2="288.28" y2="137.82"/>\n',
                '            <line class="st6" x1="79.36" y1="155.17" x2="288.28" y2="155.17"/>\n',
                '            <line class="st6" x1="79.36" y1="172.52" x2="288.28" y2="172.52"/>\n',
                '            <line class="st6" x1="79.36" y1="189.87" x2="288.28" y2="189.87"/>\n',
                '            <line class="st6" x1="79.36" y1="207.22" x2="288.28" y2="207.22"/>\n',
                '            <line class="st6" x1="79.36" y1="224.57" x2="288.28" y2="224.57"/>\n',
                '            <line class="st6" x1="79.36" y1="241.92" x2="288.28" y2="241.92"/>\n',
                '            <line class="st6" x1="79.36" y1="259.27" x2="288.28" y2="259.27"/>\n',
                '            <line class="st6" x1="270.57" y1="73.71" x2="270.57" y2="288.28"/>\n',
                '            <line class="st6" x1="253.22" y1="73.71" x2="253.22" y2="288.28"/>\n',
                '            <line class="st6" x1="235.87" y1="73.71" x2="235.87" y2="288.28"/>\n',
                '            <line class="st6" x1="218.52" y1="73.71" x2="218.52" y2="288.28"/>\n',
                '            <line class="st6" x1="201.17" y1="73.71" x2="201.17" y2="288.28"/>\n',
                '            <line class="st6 y" x1="183.82" y1="73.71" x2="183.82" y2="288.28"/>\n',
                '            <line class="st6" x1="166.47" y1="73.71" x2="166.47" y2="288.28"/>\n',
                '            <line class="st6" x1="149.12" y1="73.71" x2="149.12" y2="288.28"/>\n',
                '            <line class="st6" x1="131.77" y1="73.71" x2="131.77" y2="288.28"/>\n',
                '            <line class="st6" x1="114.42" y1="73.71" x2="114.42" y2="288.28"/>\n',
                '            <line class="st6" x1="97.07" y1="73.71" x2="97.07" y2="288.28"/>\n',
                "          </g>\n",
                "        </g>\n",
                "      </g>\n",
                "    </g>\n",
                '    <foreignObject width="176.55" height="46.86" transform="translate(79.69, 15.45)" >\n',
                '      <body xmlns="http://www.w3.org/1999/xhtml" style="margin:0;height:100%;display:flex;align-items:center;padding:0 4px;">\n',
                "        <p style=\"font-family:'Arial';font-size:11px;line-height:1.2\">", params.polyStr, "</p>\n",
                "      </body>\n",
                "    </foreignObject>\n",
                '    <foreignObject width="189.56" height="46" transform="translate(98.72, 271.33)" >\n',
                '      <body xmlns="http://www.w3.org/1999/xhtml" style="margin:0;height:100%;font-size:7px;font-family:\'Arial\';color:white">\n',
                '        <p class="row"><span>ID</span><span>', params.id, '</span></p>\n',
                '        <p class="row"><span>Deployment Rank</span><span>', params.deployOrder, '</span></p>\n',
                '        <p class="row"><span>First Deployment</span><span>', params.deployDate, '</span></p>\n',
                "      </body>\n",
                "    </foreignObject>\n",
                '    <polygon class="st4" points="288.46,94.66 256.3,62.31 256.3,15.45 288.46,47.8"/>\n',
                "  </g>\n",
                '  <g transform="translate(107.01, 95.71)">\n',
                '    <path class="st61" stroke="url(#gradient)" d="', params.path, '"/>\n',
                "  </g>\n",
                "  <defs>\n",
                '    <linearGradient id="gradient">\n',
                '      <stop stop-color="#93FBED"/>\n',
                '      <stop offset="0.25" stop-color="#F49BFF"/>\n',
                '      <stop offset="0.64" stop-color="#FFBC4F"/>\n',
                '      <stop offset="1" stop-color="#FF684B"/>\n',
                "    </linearGradient>\n",
                "  </defs>\n",
                "</svg>\n"
            )
        );
    }
}

File 24 of 25 : ISVGGenerator.sol
// SPDX-License-Identifier: MIT

pragma solidity =0.8.20;

interface ISVGGenerator {
    struct GenerateSVGParams {
        string color0;
        string color1;
        string deployDate;
        string deployOrder;
        string id;
        string polyStr;
        string path;
    }
}

File 25 of 25 : SVGGenerator.sol
// SPDX-License-Identifier: MIT

pragma solidity =0.8.20;

import {ISVGGenerator} from "./ISVGGenerator.sol";

library SVGGenerator {
    function generateSVGImage(
        ISVGGenerator.GenerateSVGParams memory params
    ) external pure returns (string memory svg) {
        svg = string(
            abi.encodePacked(
                '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 368.5 368.5" style="enable-background:new 0 0 368.5 368.5;" xml:space="preserve">\n',
                '  <style type="text/css">\n',
                "    .st0{fill:#050308;}\n",
                "    .st2{fill:", params.color0, ";stroke:#050308;stroke-width:3;stroke-miterlimit:10;}\n",
                "    .st4{fill:none;stroke:#050308;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}\n",
                "    .st6{fill:none;stroke:", params.color0, ";stroke-width:0.25;stroke-linecap:round;stroke-linejoin:round;}\n",
                "    .st7{fill:", params.color0, ";}\n",
                "    .st8{fill:#050308;stroke:", params.color0, ";stroke-miterlimit:10;}\n",
                "    .st45{fill:", params.color1, ";stroke:#050308;stroke-width:3;stroke-miterlimit:10;}\n",
                "    .row{margin:0;}\n",
                "    .row span{display:inline-block;height:14px;line-height:14px;background:#050308;padding:0 3px;border:1px solid ", params.color1, ";}\n",
                "    .row span:nth-child(even){\n",
                "      border-left:none;\n",
                "    }\n",
                "    .row:nth-child(n+2) span{\n",
                "      margin-top: -0.9px\n",
                "    }\n",
                "    .row:nth-child(n+2) span:nth-child(1){\n",
                "      width: 55.8px\n",
                "    }\n",
                "    .st61{\n",
                "      fill:none;\n",
                "      stroke:#90F9EA;\n",
                "      stroke-width:4;\n",
                "      stroke-linecap:round;\n",
                "      stroke-miterlimit:10;\n",
                "      stroke-dasharray: 1000;\n",
                "      animation: draw 3s linear 4ms infinite;\n",
                "    }\n",
                "    @keyframes draw{\n",
                "      from{\n",
                "        stroke-dashoffset: 1000\n",
                "      }\n",
                "      to{\n",
                "        stroke-dashoffset: 0\n",
                "      }\n",
                "    }\n",
                "  </style>\n",
                "  <g>\n",
                "    <g>\n",
                "      <g>\n",
                '        <path class="st45" d="M52.35,3.21c-9.67,0-17.62,7.31-18.65,16.7c-1.97,15.16,8.18,22.06,8.18,22.06h29.24V21.98     C71.12,11.62,62.72,3.21,52.35,3.21z"/>\n',
                '        <path class="st2" d="M278.85,3.21H71.12H52.35c10.37,0,18.77,8.4,18.77,18.77v322.64c0,11.42,9.25,20.67,20.67,20.67h205.83     V21.98C297.62,11.62,289.22,3.21,278.85,3.21z"/>\n',
                "      </g>\n",
                '      <path class="st45" d="M334.31,324.52H109.34c4.23,4.36,6.84,10.3,6.84,16.85c0,12.07-8.83,22.07-20.38,23.91h224.97    c11.55-1.84,20.38-11.84,20.38-23.91C341.15,334.82,338.54,328.88,334.31,324.52z"/>\n',
                '      <rect x="79.69" y="15.45" transform="matrix(-1 -1.224647e-16 1.224647e-16 -1 335.9427 77.7668)" class="st4" width="176.55" height="46.86"/>\n',
                "    </g>\n",
                "    <g>\n",
                "      <g>\n",
                '        <polygon class="st0" points="79.36,73.71 79.36,252.15 98.72,271.33 288.28,271.33 288.28,106.52 255.48,73.71"/>\n',
                "      </g>\n",
                "      <g>\n",
                "        <g>\n",
                "          <g>\n",
                '            <polygon class="st7" points="183.82,85.77 179.15,98.58 188.49,98.58"/>\n',
                '            <polygon class="st7" points="183.82,259.27 188.49,246.46 179.15,246.46"/>\n',
                '            <line x1="183.82" y1="95.71" x2="183.82" y2="250.53" stroke="', params.color0, '" stroke-width="2" />\n',
                '            <polygon class="st7" points="270.57,172.52 257.76,167.85 257.76,177.19"/>\n',
                '            <polygon class="st7" points="97.07,172.52 109.88,177.19 109.88,167.85"/>\n',
                '            <line x1="107.01" y1="172.52" x2="260.63" y2="172.52" stroke="', params.color0, '" stroke-width="2" />\n',
                "          </g>\n",
                "          <g>\n",
                '            <line class="st6" x1="79.36" y1="85.77" x2="288.28" y2="85.77"/>\n',
                '            <line class="st6" x1="79.36" y1="103.12" x2="288.28" y2="103.12"/>\n',
                '            <line class="st6" x1="79.36" y1="120.47" x2="288.28" y2="120.47"/>\n',
                '            <line class="st6" x1="79.36" y1="137.82" x2="288.28" y2="137.82"/>\n',
                '            <line class="st6" x1="79.36" y1="155.17" x2="288.28" y2="155.17"/>\n',
                '            <line class="st6" x1="79.36" y1="172.52" x2="288.28" y2="172.52"/>\n',
                '            <line class="st6" x1="79.36" y1="189.87" x2="288.28" y2="189.87"/>\n',
                '            <line class="st6" x1="79.36" y1="207.22" x2="288.28" y2="207.22"/>\n',
                '            <line class="st6" x1="79.36" y1="224.57" x2="288.28" y2="224.57"/>\n',
                '            <line class="st6" x1="79.36" y1="241.92" x2="288.28" y2="241.92"/>\n',
                '            <line class="st6" x1="79.36" y1="259.27" x2="288.28" y2="259.27"/>\n',
                '            <line class="st6" x1="270.57" y1="73.71" x2="270.57" y2="288.28"/>\n',
                '            <line class="st6" x1="253.22" y1="73.71" x2="253.22" y2="288.28"/>\n',
                '            <line class="st6" x1="235.87" y1="73.71" x2="235.87" y2="288.28"/>\n',
                '            <line class="st6" x1="218.52" y1="73.71" x2="218.52" y2="288.28"/>\n',
                '            <line class="st6" x1="201.17" y1="73.71" x2="201.17" y2="288.28"/>\n',
                '            <line class="st6 y" x1="183.82" y1="73.71" x2="183.82" y2="288.28"/>\n',
                '            <line class="st6" x1="166.47" y1="73.71" x2="166.47" y2="288.28"/>\n',
                '            <line class="st6" x1="149.12" y1="73.71" x2="149.12" y2="288.28"/>\n',
                '            <line class="st6" x1="131.77" y1="73.71" x2="131.77" y2="288.28"/>\n',
                '            <line class="st6" x1="114.42" y1="73.71" x2="114.42" y2="288.28"/>\n',
                '            <line class="st6" x1="97.07" y1="73.71" x2="97.07" y2="288.28"/>\n',
                "          </g>\n",
                "        </g>\n",
                "      </g>\n",
                "    </g>\n",
                '    <foreignObject width="176.55" height="46.86" transform="translate(79.69, 15.45)" >\n',
                '      <body xmlns="http://www.w3.org/1999/xhtml" style="margin:0;height:100%;display:flex;align-items:center;padding:0 4px;">\n',
                "        <p style=\"font-family:'Arial';font-size:11px;line-height:1.2\">", params.polyStr, "</p>\n",
                "      </body>\n",
                "    </foreignObject>\n",
                '    <foreignObject width="189.56" height="46" transform="translate(98.72, 271.33)" >\n',
                '      <body xmlns="http://www.w3.org/1999/xhtml" style="margin:0;height:100%;font-size:7px;font-family:\'Arial\';color:white">\n',
                '        <p class="row"><span>ID</span><span>', params.id, '</span></p>\n',
                '        <p class="row"><span>Deployment Rank</span><span>', params.deployOrder, '</span></p>\n',
                '        <p class="row"><span>First Deployment</span><span>', params.deployDate, '</span></p>\n',
                "      </body>\n",
                "    </foreignObject>\n",
                '    <polygon class="st4" points="288.46,94.66 256.3,62.31 256.3,15.45 288.46,47.8"/>\n',
                "  </g>\n",
                '  <g transform="translate(107.01, 95.71)">\n',
                '  <path class="st61" d="', params.path, '"/>\n',
                "  </g>\n",
                "</svg>\n"
            )
        );
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "viaIR": true,
  "evmVersion": "paris",
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {
    "contracts/svg-generator/GradientBackgroundSVGGenerator.sol": {
      "GradientBackgroundSVGGenerator": "0x9dc2684e434757ccc309963bd568932ecebc8fd9"
    },
    "contracts/svg-generator/GradientStrokeSVGGenerator.sol": {
      "GradientStrokeSVGGenerator": "0x4d88fcfc4294a675968ae98cfefe436d3e47a8d4"
    },
    "contracts/svg-generator/SVGGenerator.sol": {
      "SVGGenerator": "0xf76de5c08432074496038a01f00598243a83fc59"
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"bytes32","name":"_root","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ERC721EnumerableForbiddenBatchMint","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721IncorrectOwner","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721InsufficientApproval","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC721InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"ERC721InvalidOperator","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721InvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC721InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC721InvalidSender","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721NonexistentToken","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"ERC721OutOfBoundsIndex","type":"error"},{"inputs":[],"name":"ErrorAlreadyMinted","type":"error"},{"inputs":[],"name":"ErrorCallerIsNotDeployer","type":"error"},{"inputs":[],"name":"ErrorInvalidProof","type":"error"},{"inputs":[],"name":"ErrorTransferIsForbidden","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"length","type":"uint256"}],"name":"StringsInsufficientHexLength","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"metadata","outputs":[{"internalType":"address","name":"deployer","type":"address"},{"internalType":"address","name":"firstDeployedContract","type":"address"},{"internalType":"address","name":"bestDeployedContract","type":"address"},{"internalType":"uint256","name":"rarityData","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"components":[{"internalType":"address","name":"deployer","type":"address"},{"internalType":"address","name":"firstDeployedContract","type":"address"},{"internalType":"address","name":"bestDeployedContract","type":"address"},{"internalType":"uint256","name":"rarityData","type":"uint256"}],"internalType":"struct ScrollOriginsNFT.Metadata","name":"meta","type":"tuple"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"mintData","outputs":[{"internalType":"uint64","name":"mintAt","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"minted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"root","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"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":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a060405234620003405762003dc4803803806200001d8162000345565b928339810190606081830312620003405780516001600160401b039190828111620003405783620000509183016200036b565b91602093848301518281116200034057604091620000709185016200036b565b920151918351908282116200032a5760008054926001968785811c951680156200031f575b898610146200030b578190601f95868111620002b8575b5089908683116001146200025457849262000248575b5050600019600383901b1c191690871b1781555b8151938411620002345785548681811c9116801562000229575b888210146200021557838111620001cd575b5086928411600114620001655783949596509262000159575b5050600019600383901b1c191690831b1782555b81600a55608052600e556040516139e69081620003de823960805181818161015801526123540152f35b0151905038806200011b565b9190601f1984169686845280842093905b888210620001b5575050838697969596106200019b575b505050811b0182556200012f565b015160001960f88460031b161c191690553880806200018d565b80888596829496860151815501950193019062000176565b8682528782208480870160051c8201928a88106200020b575b0160051c019087905b828110620001ff57505062000102565b838155018790620001ef565b92508192620001e6565b634e487b7160e01b82526022600452602482fd5b90607f1690620000f0565b634e487b7160e01b81526041600452602490fd5b015190503880620000c2565b8480528a85208a94509190601f198416865b8d828210620002a1575050841162000287575b505050811b018155620000d6565b015160001960f88460031b161c1916905538808062000279565b8385015186558d9790950194938401930162000266565b9091508380528984208680850160051c8201928c861062000301575b918b91869594930160051c01915b828110620002f2575050620000ac565b8681558594508b9101620002e2565b92508192620002d4565b634e487b7160e01b83526022600452602483fd5b94607f169462000095565b634e487b7160e01b600052604160045260246000fd5b600080fd5b6040519190601f01601f191682016001600160401b038111838210176200032a57604052565b919080601f84011215620003405782516001600160401b0381116200032a57602090620003a1601f8201601f1916830162000345565b92818452828287010111620003405760005b818110620003c957508260009394955001015290565b8581018301518482018401528201620003b356fe608080604052600436101561001357600080fd5b60003560e01c90816301ffc9a71461291b5750806306fdde031461285c578063081812fc1461281e578063095ea7b31461273757806318160ddd14612719578063186aaba2146121cc5780631e7269c51461218d57806323b872dd146121765780632f745c59146120f257806342842e0e146120ca5780634f6ccce7146120745780636352211e1461204457806370a082311461201957806395d89b4114611f0e578063a22cb46514611e69578063b88d4fde14611ddf578063c87b56dd1461022b578063e3684e39146101d1578063e985e9c51461017b578063ebf0c717146101405763f7f8c5a51461010657600080fd5b3461013b57602036600319011261013b57600435600052600c60205260206001600160401b0360406000205416604051908152f35b600080fd5b3461013b57600036600319011261013b5760206040517f00000000000000000000000000000000000000000000000000000000000000008152f35b3461013b57604036600319011261013b576101946129e8565b61019c6129fe565b9060018060a01b03809116600052600560205260406000209116600052602052602060ff604060002054166040519015158152f35b3461013b57602036600319011261013b57600435600052600b6020526080604060002060018060a01b0380825416916003826001830154169260028301541691015491604051938452602084015260408301526060820152f35b3461013b57602036600319011261013b57610247600435612f38565b50600435600052600b60205260406000206040519061026582612a14565b606060018060a01b038254169182845260018060a01b0360018201541693846020820152600360018060a01b03600284015416928360408401520154928391015260405193846101408101106001600160401b03610140870111176114305760ff9361014086016040526004358652602086015260408501526060840152600f81166080840152601f8160041c1660a084015263ffffffff8160091c1660c084015260018160291c1660e0840152600181602a1c16610100840152602b1c166101208201526040518060e08101106001600160401b0360e0830111176114305760e0810160405260608152606060208201526060604082015260608082015260606080820152606060a0820152606060c082015261038c608083015160a0840151906135b3565b919060208401528252608083015160a0840151606091600a8114611dba575b600b8114611d91575b600c14611d64575b602681600a61045b9310600014611d55576103d69061322f565b61040d60216040518093600360fc1b60208301526103fd81518092602086860191016129a0565b8101036001810184520182612a80565b925b60405193816104288693518092602080870191016129a0565b820161043d82518093602080850191016129a0565b01652c203230323360d01b6020820152036006810184520182612a80565b604083015261046d60c084015161322f565b606083810191909152830151604051906001600160a01b03168061049083612a65565b602a83526040366020850137825115611d3f5760306020840153825160011015611d3f576078602184015360295b60018111611cf75750611cd857506080830152604082015161057960bc606085015192602087015160408801516060890151906101208a015160e08b0151916101008c015193604051998761051d8c995180926020808d0191016129a0565b880161053282518093602080850191016129a0565b01956001600160601b03199283809260601b16602089015260601b16603487015260601b166048850152605c840152607c830152609c82015203609c810184520182612a80565b816000198101116107fa57600019820115611cc25760009161059e600019820161340f565b9260005b60001983018110611bdc575050604051936103e86105bf86612a65565b60028652604036602088013760005b60028110611aa75750506105e18561338e565b516729a2241af62bffff1981019081136001166107fa57673782dace9d90000061060d6106149261348d565b059561339b565b516729a2241af62c0000908180820112600082129080158216911516176107fa57673782dace9d90000091610649910161348d565b05956106548561338e565b519361065f8661338e565b519760015b87518110156106ca5786610678828a6133ab565b51136106b7575b8961068a828a6133ab565b511261069f575b61069a9061337f565b610664565b985061069a6106ae8a896133ab565b51999050610691565b95506106c386886133ab565b519561067f565b5090929661070c61070561071394969a6107006106fa6106f3670de0b6b3a76400009688613474565b928b613474565b9161348d565b6133bf565b80976134c3565b0590613474565b9560005b8551811015610760578061074b89670de0b6b3a76400006107458961073f61075b978d6133ab565b516134c3565b056134ff565b61075582896133ab565b5261337f565b610717565b5084868151926001840184116107fa5761077c6001850161340f565b93670de0b6b3a764000061078f8661338e565b5260005b8181106119e957505083516001810181116107fa5760016107b4910161340f565b9560005b8551811015610810576107cb81876133ab565b51906001810181116107fa576107e86107f59260018301906133bf565b610755600183018b6133ab565b6107b8565b634e487b7160e01b600052601160045260246000fd5b50868661081c826138bd565b93610826836138bd565b93600084516000905b808210611998575050868112611990575b858113611988575b5060005b885181101561089a57610869610862828b6133ab565b5186613940565b878112610892575b868113610888575b506108839061337f565b61084c565b9550610883610879565b965086610871565b508792938786886000811261197a575b6000821261196a575b818112156119625750925b6509184e72a00080851261195a575b506108d8835161340f565b9460005b845181101561090f5780610900876107006108fa61090a958a6133ab565b5161348d565b610755828a6133ab565b6108dc565b5085876001808b6040516109406020828161093381830196878151938492016129a0565b8101038084520182612a80565b51902060171c161461191c575b610956816136fe565b8051670de0b6b3a763ffff19939061096d846138bd565b906001810181116107fa576109876001829793970161340f565b956000926000905b8382111561180c57505050506109a48161340f565b9460005b8281106117ee575050508151845181018091116107fa576002810181116107fa5760026109d5910161340f565b93670de0b6b3a763ffff196109e98661338e565b52670de0b6b3a76400006109fc8661339b565b526002966000945b8451861015610a4357610a1786866133ab565b51610a228a896133ab565b526001890189116107fa576001610a3c990198899661337f565b9550610a04565b929691945092506000965b8451881015610a8a57610a6188866133ab565b51610a6c82886133ab565b526001810181116107fa576001610a8491019761337f565b96610a4e565b5084935085610a98856136fe565b610aa18561338e565b5194610abf610b186022610ac5610ab88a8961351b565b949061378e565b9361378e565b92604051938491604d60f81b6020840152610aea8151809260206021870191016129a0565b8201600160fd1b6021820152610b0982518093602087850191016129a0565b01036002810184520182612a80565b9160019360015b8351811015610ccd57610b3281856133ab565b51655af3107a4000610b448b83613474565b13610b59575b50610b549061337f565b610b1f565b90986019610b678284613474565b056001915b6019831315610b8357505050610b54909890610b4a565b90919796610ba3610b9d610b978b866134c3565b846134ff565b8b61351b565b919060018a16610c4257610c1c91610bc5610bbf60229361378e565b9461378e565b6040519482610bde8794518092602080880191016129a0565b8301600160fd1b6020820152610bfe8251809360206021850191016129a0565b01600160fd1b6021820152610b0982518093602087850191016129a0565b965b600181018091116107fa57976001600160ff1b0381146107fa576001019190610b6c565b610cc791610c54610bbf60249361378e565b600b60fa1b6040519583610c728895518092602080890191016129a0565b840161205160f01b6020820152610c938251809360206022850191016129a0565b01600160fd1b6022820152825190610cb482602395602087850191016129a0565b0191820152036004810184520182612a80565b96610c1e565b5086868560c083015260609080516001915b81831061152057505050610d25602660405180936566287829203d60d01b6020830152610d1581518092602086860191016129a0565b8101036006810184520182612a80565b60a082015260e082015115611475576000610d54916040518093819263dbe2254760e01b83526004830161300b565b0381739dc2684e434757ccc309963bd568932ecebc8fd95af4801561146957610d8691600091611446575b505b6130e9565b90610d91815161322f565b9160405191826101808101106001600160401b0361018085011117611430576101808301604052610153835260208301927f546865205363726f6c6c204f726967696e73204e4654206973206120736f756c84527f626f756e64204e465420746861742073657276657320746f207265636f676e6960408201527f7a6520746865206561726c79206275696c64657273206f66205363726f6c6c2e60608201527f20456c696769626c65206d696e746572732068617665206465706c6f7965642060808201527f6120736d61727420636f6e747261637420746f205363726f6c6c204d61696e6e60a08201527f657477697468696e2036302064617973206f66207468652047656e657369732060c08201527f426c6f636b2e20486967686572206c6576656c73206f6620726172697479206160e08201527f72652061726520726577617264656420746f20736d61727420636f6e747261636101008201527f74732074686174206861766520636f6e7472696275746564207369676e6966696101208201527f63616e74206c6576656c73206f6620696e746572616374696f6e206f7220766161014082015272363ab2903a37903a3432903732ba3bb7b9359760691b6101608201526101208201519361010060e084015193015160405195610f7a87612a65565b60238088527f5b7b2274726169745f74797065223a22437572766174757265222c2276616c7560208901526232911d60e91b6040890152969889906003810361136d575050936111e3979361112b9793610d81979360879761101d61124a9d611017602860405183610ff68295518092602080860191016129a0565b810167224375626963227d60c01b6020820152036008810184520182612a80565b9161322f565b9061109f604360405193602061103c81870195868151938492016129a0565b85017f2c7b2274726169745f74797065223a22526172697479222c2276616c7565223a6020820152601160f91b60408201526110828251809360206041850191016129a0565b01998461227d60f01b9b8c60418201520390810185520183612a80565b81956112da575b505061124e575b61117e90604051926110ea60218560206110d0818301998a8151938492016129a0565b8101605d60f81b6020820152036001810187520185612a80565b611156603d6040519c8d809b7f7b226e616d65223a225363726f6c6c2047656e65736973204e465420230000006020830152602081519485930191016129a0565b89019171111610113232b9b1b934b83a34b7b7111d1160711b603d840152518093604f8401906129a0565b01916f1116101130ba3a3934b13aba32b9911d60811b604f840152518093605f8401906129a0565b016b16101134b6b0b3b2911d101160a11b605f8201527f646174613a696d6167652f7376672b786d6c3b6261736536342c000000000000606b8201526111ce8251809360206085850191016129a0565b01906085820152036067810184520182612a80565b611236603d60405180937f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000602083015261122681518092602086860191016129a0565b810103601d810184520182612a80565b6040519182916020835260208301906129c3565b0390f35b9161117e906112d26062604051836112708295518092602080860191016129a0565b81017f2c7b2274726169745f74797065223a22457863657074696f6e616c205265636f60208201527f676e6974696f6e222c2276616c7565223a225261696e626f77205374726f6b656040820152896060820152036042810184520182612a80565b9290506110ad565b6112fa9295506113659160669160405194859251809260208501906129a0565b81017f2c7b2274726169745f74797065223a22457863657074696f6e616c205265636f60208201527f676e6974696f6e222c2276616c7565223a225261696e626f77204261636b67726040820152656f756e64227d60d01b6060820152036046810184520182612a80565b928c806110a6565b6004036113cf5750936111e3979361112b9793610d81979360879761101d61124a9d611017602a604051836113ac8295518092602080860191016129a0565b8101692251756172746963227d60b01b602082015203600a810184520182612a80565b985060405160005b88811061141b575061124a99509361112b9793610d8197936087979361101d6111e39c9869225175696e746963227d60b01b6043820152602d815261101781612a65565b80602080928d010151828285010152016113d7565b634e487b7160e01b600052604160045260246000fd5b61146391503d806000833e61145b8183612a80565b810190612faa565b84610d7f565b6040513d6000823e3d90fd5b610100820151156114d05760006114a0916040518093819263dbe2254760e01b83526004830161300b565b0381734d88fcfc4294a675968ae98cfefe436d3e47a8d45af4801561146957610d869160009161144657506130e9565b60006114f0916040518093819263dbe2254760e01b83526004830161300b565b038173f76de5c08432074496038a01f00598243a83fc595af4801561146957610d869160009161144657506130e9565b909192655af3107a400061153485846133ab565b510590600091600081126117dc575b6040519261155084612a4a565b60048452602036818601376000602485015b600482106117a35750501561173357846000198101116107fa5761169692611690916020916000198801890361170b5761161460216115bb6040516115a681612a4a565b6002815261202d60f01b878201525b9461322f565b604051938491876115d581850198898151938492016129a0565b83016115e9825180938b80850191016129a0565b01601760f91b88820152611605825180938a87850191016129a0565b01036001810184520182612a80565b809160018a1460001461169d57505061165860216040518361163f82955180928880860191016129a0565b8101600f60fb1b86820152036001810184520182612a80565b604051938161167086935180928680870191016129a0565b8201611684825180938680850191016129a0565b01038084520182612a80565b9361337f565b9190610cdf565b6116c5925061170691602c916116b28c61322f565b90604051958693518092898601906129a0565b8201653c1e39bab81f60d11b878201526116e882518093896026850191016129a0565b01651e17b9bab81f60d11b602682015203600c810184520182612a80565b611658565b61161460216115bb60405161171f81612a4a565b600381526201016960ed1b878201526115b5565b846000198101116107fa5761169692611690916020916000198801890361177b5761161460216115bb60405161176881612a4a565b60018152600160fd1b878201529461322f565b61161460216115bb60405161178f81612a4a565b600381526201015960ed1b878201526115b5565b600a6117b46117d692959395613372565b926f181899199a1a9b1b9c1cb0b131b232b360811b8282061a8453059361337f565b90611562565b91506117e96001926133da565b611543565b806117fc61180792846133ab565b51610755828a6133ab565b6109a8565b81840361190b57670de0b6b3a7640000905b611828828a613940565b93600061183586836134c3565b1315611874575b5050508083036118615761185a670de0b6b3a76400005b929161337f565b909161098f565b61185a61186e82886133ab565b51611853565b896000979497925b601484106118a95750505050611892828a6133ab565b526001810181116107fa57600101928a808061183c565b60006118cb846118c660026118be8a876134ff565b058096613940565b6134c3565b13156118fe5750600181019060006001831291129080158216911516176107fa576118f6909261337f565b918a9061187c565b9293506118f6909361337f565b61191582886133ab565b519061181e565b92909160005b8351811015611951578061194261193c61194c93876133ab565b516133da565b61075582876133ab565b611922565b5091909261094d565b9350876108cd565b9050926108be565b90611974906133da565b906108b3565b611983906133da565b6108aa565b945088610848565b955085610840565b90916119ac670de0b6b3a76400009161348d565b05816000198101116107fa576119dd6119e3916119d66119d08660001987016133eb565b8a6133ab565b51906134ff565b9261337f565b9061082f565b6119f381866133ab565b516119fe82886133ab565b51600183018084116107fa57611a1490896133ab565b5281805b611a55575090611a47670de0b6b3a7640000611a41611a5094611a3a8b61338e565b51906134c3565b056133da565b6107558861338e565b610793565b6000198101908082116107fa57611a9189670de0b6b3a764000061070c611a8a85611a83611aa198866133ab565b51946133ab565b51876134c3565b611a9b828b6133ab565b52613372565b80611a18565b611b0c618000611b0661ffff88611abd8761322f565b611afd60405191826020611ada81830196878151938492016129a0565b8101611f1f60f21b6020820152825190610b0982602295602087850191016129a0565b5190201661348d565b05613437565b81611b3c57611b1b82896133ab565b526001810181116107fa57600101905b600181018091116107fa57906105ce565b6001600160ff1b0360005b838110611b7c5750600012611b5e575b5090611b2b565b611b6882896133ab565b526001810181116107fa5760010188611b57565b611b86818b6133ab565b51831315611bc357611ba2611b9b828c6133ab565b5184613474565b828112611bb9575b50611bb49061337f565b611b47565b9150611bb4611baa565b611bd783611bd1838d6133ab565b51613474565b611ba2565b611bf2618000611b0661ffff87611abd8761322f565b81611c2257611c0182876133ab565b526001810181116107fa57600101905b600181018091116107fa57906105a2565b6001600160ff1b0360005b838110611c6f57506000198501670de0b6b3a76400000512611c51575b5090611c11565b611c5b82876133ab565b526001810181116107fa5760010187611c4a565b611c7981896133ab565b51831315611caf57611c8e611b9b828a6133ab565b828112611ca5575b50611ca09061337f565b611c2d565b9150611ca0611c96565b611cbd83611bd1838b6133ab565b611c8e565b634e487b7160e01b600052601260045260246000fd5b6044906040519063e22e27eb60e01b8252600482015260146024820152fd5b906010600f82161015611d3f578351821015611d3f57611d3a906f181899199a1a9b1b9c1cb0b131b232b360811b600f82161a8584016020015360041c91613372565b6104be565b634e487b7160e01b600052603260045260246000fd5b611d5e9061322f565b9261040f565b905061045b6026604051611d7781612a4a565b600481526302232b1960e51b6020820152929150506103bc565b9150600c604051611da181612a4a565b600481526302737bb160e51b60208201529290506103b4565b9150604051611dc881612a4a565b6004815263027b1ba160e51b6020820152916103ab565b3461013b57608036600319011261013b57611df86129e8565b611e006129fe565b606435916001600160401b03831161013b573660238401121561013b57826004013591611e2c83612ad6565b92611e3a6040519485612a80565b808452366024828701011161013b576020816000926024611e679801838801378501015260443591612de5565b005b3461013b57604036600319011261013b57611e826129e8565b6024359081151580920361013b576001600160a01b0316908115611ef557336000526005602052604060002082600052602052604060002060ff1981541660ff83161790556040519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3005b604051630b61174360e31b815260048101839052602490fd5b3461013b57600036600319011261013b57604051600060019081549182811c9181841691821561200f575b6020948585108414611ff9578587948686529182600014611fd9575050600114611f7f575b50611f6b92500383612a80565b61124a6040519282849384528301906129c3565b6000818152859250907fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf65b858310611fc1575050611f6b935082010185611f5e565b80548389018501528794508693909201918101611faa565b60ff191685820152611f6b95151560051b8501019250879150611f5e9050565b634e487b7160e01b600052602260045260246000fd5b92607f1692611f39565b3461013b57602036600319011261013b57602061203c6120376129e8565b612af1565b604051908152f35b3461013b57602036600319011261013b576020612062600435612f38565b6040516001600160a01b039091168152f35b3461013b57602036600319011261013b576004356008548110156120ab5761209d602091612f73565b90546040519160031b1c8152f35b6044906040519063295f44f760e21b8252600060048301526024820152fd5b3461013b57611e676120db36612aa1565b90604051926120e984612a2f565b60008452612de5565b3461013b57604036600319011261013b5761210b6129e8565b6024359061211881612af1565b82101561214b5760018060a01b031660005260066020526040600020906000526020526020604060002054604051908152f35b60405163295f44f760e21b81526001600160a01b039190911660048201526024810191909152604490fd5b3461013b57611e6761218736612aa1565b91612b2a565b3461013b57602036600319011261013b576001600160a01b036121ae6129e8565b16600052600d602052602060ff604060002054166040519015158152f35b3461013b5760c036600319011261013b576121e56129e8565b608036602319011261013b57604051906121fe82612a14565b6122066129fe565b82526044356001600160a01b038116810361013b5760208301526064356001600160a01b038116810361013b57604083015260843560608301526001600160401b0360a4351161013b5736602360a43501121561013b576001600160401b0360a435600401351161013b5736602460a4356004013560051b60a43501011161013b576002600a5414612707576002600a5581516001600160a01b031633036126f55781516001600160a01b03166000908152600d602052604090205460ff166126e35760018060a01b03825116600052600d6020526040600020600160ff19825416179055815160208301516040840151906060850151906040519260208401946001600160601b03199283809260601b16875260601b16603485015260601b166048830152605c820152605c815261233e81612a14565b51902060005b60a43560040135811061269d57507f00000000000000000000000000000000000000000000000000000000000000000361268b57600e549182600052600b6020526003606060406000209260018060a01b038151166001600160601b0360a01b8554161784556001840160018060a01b036020830151166001600160601b0360a01b8254161790556002840160018060a01b036040830151166001600160601b0360a01b8254161790550151910155604051602081018181106001600160401b03821117611430576040526001600160401b034316815282600052600c6020526001600160401b0360406000209151166001600160401b031982541617905560018201600e5560018060a01b03811615612672576000828152600260205260409020546001600160a01b0316918261263b575b6001600160a01b0382166000818152600360209081526040808320805460010190558483526002909152812080546001600160a01b0319168317905582919085907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9080a4826125ab5760085481600052600960205280604060002055600160401b811015611430578161251482600161252d9401600855612f73565b90919082549060031b91821b91600019901b1916179055565b6001600160a01b038216830361255d575b505061254b576001600a55005b604051636bf4035360e11b8152600490fd5b61256682612af1565b6000198101929083116107fa5760018060a01b03166000526006602052604060002082600052602052806040600020556000526007602052604060002055818061253e565b6001600160a01b038216831461252d576125c483612af1565b816000526007602052604060002054818103612608575b5081600052600060408120558360005260066020526040600020906000526020526000604081205561252d565b600085815260066020908152604080832085845282528083205484845281842081905583526007909152902055846125db565b600081815260046020526040902080546001600160a01b031916905582600052600360205260406000206000198154019055612477565b604051633250574960e11b815260006004820152602490fd5b604051635f48f6df60e11b8152600490fd5b9060248260051b60a435010135908181106000146126cf576000526020526126ca60406000205b9161337f565b612344565b906000526020526126ca60406000206126c4565b604051632ff361bd60e01b8152600490fd5b604051630d7ba7af60e31b8152600490fd5b604051633ee5aeb560e01b8152600490fd5b3461013b57600036600319011261013b576020600854604051908152f35b3461013b57604036600319011261013b576127506129e8565b60243561275c81612f38565b3315158061280b575b806127de575b6127c6576001600160a01b039283169282918491167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600080a4600090815260046020526040902080546001600160a01b0319169091179055005b60405163a9fbf51f60e01b8152336004820152602490fd5b5060018060a01b038116600052600560205260406000203360005260205260ff604060002054161561276b565b506001600160a01b038116331415612765565b3461013b57602036600319011261013b5760043561283b81612f38565b506000526004602052602060018060a01b0360406000205416604051908152f35b3461013b57600036600319011261013b576040516000805490600182811c91818416918215612911575b6020948585108414611ff9578587948686529182600014611fd95750506001146128b75750611f6b92500383612a80565b6000808052859250907f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5635b8583106128f9575050611f6b935082010185611f5e565b805483890185015287945086939092019181016128e2565b92607f1692612886565b3461013b57602036600319011261013b576004359063ffffffff60e01b821680920361013b5760209163780e9d6360e01b811490811561295d575b5015158152f35b6380ac58cd60e01b81149150811561298f575b811561297e575b5083612956565b6301ffc9a760e01b14905083612977565b635b5e139f60e01b81149150612970565b60005b8381106129b35750506000910152565b81810151838201526020016129a3565b906020916129dc815180928185528580860191016129a0565b601f01601f1916010190565b600435906001600160a01b038216820361013b57565b602435906001600160a01b038216820361013b57565b608081019081106001600160401b0382111761143057604052565b602081019081106001600160401b0382111761143057604052565b604081019081106001600160401b0382111761143057604052565b606081019081106001600160401b0382111761143057604052565b90601f801991011681019081106001600160401b0382111761143057604052565b606090600319011261013b576001600160a01b0390600435828116810361013b5791602435908116810361013b579060443590565b6001600160401b03811161143057601f01601f191660200190565b6001600160a01b03168015612b1157600052600360205260406000205490565b6040516322718ad960e21b815260006004820152602490fd5b90916001600160a01b0380841692831561267257600094838652602094600286526040968488822054169633151580612d57575b5087159384159485612d24575b848452600383528a842080546001019055888452600283528a842080546001600160a01b0319168617905588858b7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8780a415612ca85760085488845260098352808b852055600160401b811015612c945788612514826001612bf19401600855612f73565b838903612c42575b50505050612c31571692838303612c105750505050565b6064945051926364283d7b60e01b8452600484015260248301526044820152fd5b8451636bf4035360e11b8152600490fd5b612c4b90612af1565b600019810193908411612c805782916007918b9452600681528383208584528152888484205588835252205538808080612bf9565b634e487b7160e01b83526011600452602483fd5b634e487b7160e01b84526041600452602484fd5b888414612bf157612cb889612af1565b888452600783528a842054818103612ced575b50888452838b812055898452600683528a84209084528252828a812055612bf1565b8a8552600684528b852082865284528b8520548b8652600685528c86208287528552808d8720558552600784528b85205538612ccb565b600089815260046020526040902080546001600160a01b0319169055898452600383528a84208054600019019055612b6b565b80612da4575b15612d685738612b5e565b888789612d85576024915190637e27328960e01b82526004820152fd5b905163177e802f60e01b81523360048201526024810191909152604490fd5b503388148015612dc9575b80612d5d57508682526004815233868a8420541614612d5d565b5087825260058152888220338352815260ff8983205416612daf565b612df0838383612b2a565b813b612dfd575b50505050565b604051630a85bd0160e11b8082523360048301526001600160a01b03928316602483015260448201949094526080606482015260209592909116939092908390612e4b9060848301906129c3565b039285816000958187895af1849181612ef4575b50612ebf575050503d600014612eb7573d612e7981612ad6565b90612e876040519283612a80565b81528091843d92013e5b80519283612eb257604051633250574960e11b815260048101849052602490fd5b019050fd5b506060612e91565b919450915063ffffffff60e01b1603612edc575038808080612df7565b60249060405190633250574960e11b82526004820152fd5b9091508681813d8311612f31575b612f0c8183612a80565b81010312612f2d57516001600160e01b031981168103612f2d579038612e5f565b8480fd5b503d612f02565b6000818152600260205260409020546001600160a01b0316908115612f5b575090565b60249060405190637e27328960e01b82526004820152fd5b600854811015611d3f5760086000527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30190600090565b60208183031261013b578051906001600160401b03821161013b570181601f8201121561013b578051612fdc81612ad6565b92612fea6040519485612a80565b8184526020828401011161013b5761300891602080850191016129a0565b90565b90613008916020815261302b825160e060208401526101008301906129c3565b9060e060c06130a761309461308061306c61305860208a015198601f19998a8a83030160408b01526129c3565b60408a0151898983030160608a01526129c3565b6060890151888883030160808901526129c3565b6080880151878783030160a08801526129c3565b60a08701518686830301848701526129c3565b94015192828503019101526129c3565b906130c182612ad6565b6130ce6040519182612a80565b82815280926130df601f1991612ad6565b0190602036910137565b80511561321b576040516130fc81612a65565b604081527f4142434445464748494a4b4c4d4e4f505152535455565758595a61626364656660208201527f6768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f604082015281516002928382018092116107fa576003918290046001600160fe1b03811681036107fa5761317e908594951b6130b7565b936020850193829183518401925b8381106131ca57505050505106806001146131b7576002146131ac575090565b603d90600019015390565b50603d9081600019820153600119015390565b85600491979293949701918251600190603f9082828260121c16880101518453828282600c1c16880101518385015382828260061c168801015188850153168501015187820153019592919061318c565b5060405161322881612a2f565b6000815290565b806000917a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000080821015613364575b506d04ee2d6d415b85acef810000000080831015613355575b50662386f26fc1000080831015613346575b506305f5e10080831015613337575b5061271080831015613328575b506064821015613318575b600a8092101561330e575b6001908160216132c68287016130b7565b95860101905b6132d8575b5050505090565b600019019083906f181899199a1a9b1b9c1cb0b131b232b360811b8282061a835304918215613309579190826132cc565b6132d1565b91600101916132b5565b91906064600291049101916132aa565b6004919392049101913861329f565b60089193920491019138613292565b60109193920491019138613283565b60209193920491019138613271565b604093508104915038613258565b80156107fa576000190190565b60001981146107fa5760010190565b805115611d3f5760200190565b805160011015611d3f5760400190565b8051821015611d3f5760209160051b010190565b8115611cc257600160ff1b81146000198314166107fa570590565b600160ff1b81146107fa5760000390565b919082039182116107fa57565b6001600160401b0381116114305760051b60200190565b90613419826133f8565b6134266040519182612a80565b82815280926130df601f19916133f8565b90670de0b6b3a763ffff1982019182136001166107fa57565b90680429f3f00b0dc10000600083820393128184128116918413901516176107fa57565b818103929160001380158285131691841216176107fa57565b90670de0b6b3a7640000918281029281840514901517156107fa57565b90680429f3f00b0dc1000091808302928305036107fa57565b818102929160008212600160ff1b8214166107fa5781840514901517156107fa57565b9081680429f3f00b0dc10000019182126001166107fa57565b919091600083820193841291129080158216911516176107fa57565b8161352891939293613940565b918290600081121561359857670de0b6b3a764000061355161354c613557936133da565b6134aa565b05613450565b925b60008112156135815750670de0b6b3a764000061357b61354c613008936133da565b056134e6565b6130089150613551670de0b6b3a7640000916134aa565b670de0b6b3a764000061357b6135ad926134aa565b92613559565b600a81036136b4575060091981019081116107fa575b601e811161361b5750604051906135df82612a4a565b600782526611a2a221a1a09960c91b60208301526040519161360083612a4a565b60078352662345424332384560c81b60208401529190600590565b602d1061366b576040519061362f82612a4a565b600782526608ce4cd190915160ca1b60208301526040519161365083612a4a565b600783526608cd8c914d910d60ca1b60208401529190600490565b6040519061367882612a4a565b600782526611a3231b1c1a2160c91b60208301526040519161369983612a4a565b600783526611a2a29a98999960c91b60208401529190600390565b600b81036136cd5750601581018091116107fa576135c9565b600c036136f65760338101809111156135c957634e487b7160e01b600052601160045260246000fd5b5060646135c9565b805160001980820192906000805b85811061371b57505050505050565b815b83828703018110613731575060010161370c565b8061373e600192876133ab565b518282019061374d82896133ab565b511261375b575b500161371d565b61376581886133ab565b519061377c613774848a6133ab565b5191896133ab565b5261378782886133ab565b5238613754565b66038d7ea4c680009005806000918281126138a9575b50604051916137b283612a4a565b6003908184526020908185019282368537600090602387015b81831061386d57505050916130089391602193600090600014613851575061160561380e6040516137fb81612a4a565b60018152602d60f81b848201529461322f565b96601760f91b604051988661382c8b9851809288808c0191016129a0565b8701613840825180938880850191016129a0565b0193840152518093868401906129a0565b61380e611605916040519061386582612a2f565b81529461322f565b61387d6138a29197929397613372565b91600a906f181899199a1a9b1b9c1cb0b131b232b360811b8282061a8453059661337f565b91906137cb565b9150506138b76001916133da565b386137a4565b8051600092918391906000198201838382115b8486106138df57505050505050565b909192939496670de0b6b3a763ffff1990818102918183051490151715612c805781612c805761393061393691670de0b6b3a76400006139286139228c896133eb565b896133ab565b5191056134ff565b9761337f565b94939291906138d0565b80516000939284926000198301838111939285905b8487106139655750505050505050565b9091929394670de0b6b3a764000061397f8383999b6134c3565b0590612c805761399f6139a5916119d66139998c886133eb565b886133ab565b9861337f565b95949392919061395556fea264697066735822122087e8b1d6ff7807c74e651210f16080f430df9ac05e7f8e96292f92e258ac5a6c64736f6c63430008140033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a062a0377b43de41ed9087da0e2c9aa7369f9b372998f0e84ad1a1d98c9bc09c3a00000000000000000000000000000000000000000000000000000000000000125363726f6c6c204f726967696e73204e4654000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000125363726f6c6c204f726967696e73204e46540000000000000000000000000000

Deployed Bytecode

0x608080604052600436101561001357600080fd5b60003560e01c90816301ffc9a71461291b5750806306fdde031461285c578063081812fc1461281e578063095ea7b31461273757806318160ddd14612719578063186aaba2146121cc5780631e7269c51461218d57806323b872dd146121765780632f745c59146120f257806342842e0e146120ca5780634f6ccce7146120745780636352211e1461204457806370a082311461201957806395d89b4114611f0e578063a22cb46514611e69578063b88d4fde14611ddf578063c87b56dd1461022b578063e3684e39146101d1578063e985e9c51461017b578063ebf0c717146101405763f7f8c5a51461010657600080fd5b3461013b57602036600319011261013b57600435600052600c60205260206001600160401b0360406000205416604051908152f35b600080fd5b3461013b57600036600319011261013b5760206040517f62a0377b43de41ed9087da0e2c9aa7369f9b372998f0e84ad1a1d98c9bc09c3a8152f35b3461013b57604036600319011261013b576101946129e8565b61019c6129fe565b9060018060a01b03809116600052600560205260406000209116600052602052602060ff604060002054166040519015158152f35b3461013b57602036600319011261013b57600435600052600b6020526080604060002060018060a01b0380825416916003826001830154169260028301541691015491604051938452602084015260408301526060820152f35b3461013b57602036600319011261013b57610247600435612f38565b50600435600052600b60205260406000206040519061026582612a14565b606060018060a01b038254169182845260018060a01b0360018201541693846020820152600360018060a01b03600284015416928360408401520154928391015260405193846101408101106001600160401b03610140870111176114305760ff9361014086016040526004358652602086015260408501526060840152600f81166080840152601f8160041c1660a084015263ffffffff8160091c1660c084015260018160291c1660e0840152600181602a1c16610100840152602b1c166101208201526040518060e08101106001600160401b0360e0830111176114305760e0810160405260608152606060208201526060604082015260608082015260606080820152606060a0820152606060c082015261038c608083015160a0840151906135b3565b919060208401528252608083015160a0840151606091600a8114611dba575b600b8114611d91575b600c14611d64575b602681600a61045b9310600014611d55576103d69061322f565b61040d60216040518093600360fc1b60208301526103fd81518092602086860191016129a0565b8101036001810184520182612a80565b925b60405193816104288693518092602080870191016129a0565b820161043d82518093602080850191016129a0565b01652c203230323360d01b6020820152036006810184520182612a80565b604083015261046d60c084015161322f565b606083810191909152830151604051906001600160a01b03168061049083612a65565b602a83526040366020850137825115611d3f5760306020840153825160011015611d3f576078602184015360295b60018111611cf75750611cd857506080830152604082015161057960bc606085015192602087015160408801516060890151906101208a015160e08b0151916101008c015193604051998761051d8c995180926020808d0191016129a0565b880161053282518093602080850191016129a0565b01956001600160601b03199283809260601b16602089015260601b16603487015260601b166048850152605c840152607c830152609c82015203609c810184520182612a80565b816000198101116107fa57600019820115611cc25760009161059e600019820161340f565b9260005b60001983018110611bdc575050604051936103e86105bf86612a65565b60028652604036602088013760005b60028110611aa75750506105e18561338e565b516729a2241af62bffff1981019081136001166107fa57673782dace9d90000061060d6106149261348d565b059561339b565b516729a2241af62c0000908180820112600082129080158216911516176107fa57673782dace9d90000091610649910161348d565b05956106548561338e565b519361065f8661338e565b519760015b87518110156106ca5786610678828a6133ab565b51136106b7575b8961068a828a6133ab565b511261069f575b61069a9061337f565b610664565b985061069a6106ae8a896133ab565b51999050610691565b95506106c386886133ab565b519561067f565b5090929661070c61070561071394969a6107006106fa6106f3670de0b6b3a76400009688613474565b928b613474565b9161348d565b6133bf565b80976134c3565b0590613474565b9560005b8551811015610760578061074b89670de0b6b3a76400006107458961073f61075b978d6133ab565b516134c3565b056134ff565b61075582896133ab565b5261337f565b610717565b5084868151926001840184116107fa5761077c6001850161340f565b93670de0b6b3a764000061078f8661338e565b5260005b8181106119e957505083516001810181116107fa5760016107b4910161340f565b9560005b8551811015610810576107cb81876133ab565b51906001810181116107fa576107e86107f59260018301906133bf565b610755600183018b6133ab565b6107b8565b634e487b7160e01b600052601160045260246000fd5b50868661081c826138bd565b93610826836138bd565b93600084516000905b808210611998575050868112611990575b858113611988575b5060005b885181101561089a57610869610862828b6133ab565b5186613940565b878112610892575b868113610888575b506108839061337f565b61084c565b9550610883610879565b965086610871565b508792938786886000811261197a575b6000821261196a575b818112156119625750925b6509184e72a00080851261195a575b506108d8835161340f565b9460005b845181101561090f5780610900876107006108fa61090a958a6133ab565b5161348d565b610755828a6133ab565b6108dc565b5085876001808b6040516109406020828161093381830196878151938492016129a0565b8101038084520182612a80565b51902060171c161461191c575b610956816136fe565b8051670de0b6b3a763ffff19939061096d846138bd565b906001810181116107fa576109876001829793970161340f565b956000926000905b8382111561180c57505050506109a48161340f565b9460005b8281106117ee575050508151845181018091116107fa576002810181116107fa5760026109d5910161340f565b93670de0b6b3a763ffff196109e98661338e565b52670de0b6b3a76400006109fc8661339b565b526002966000945b8451861015610a4357610a1786866133ab565b51610a228a896133ab565b526001890189116107fa576001610a3c990198899661337f565b9550610a04565b929691945092506000965b8451881015610a8a57610a6188866133ab565b51610a6c82886133ab565b526001810181116107fa576001610a8491019761337f565b96610a4e565b5084935085610a98856136fe565b610aa18561338e565b5194610abf610b186022610ac5610ab88a8961351b565b949061378e565b9361378e565b92604051938491604d60f81b6020840152610aea8151809260206021870191016129a0565b8201600160fd1b6021820152610b0982518093602087850191016129a0565b01036002810184520182612a80565b9160019360015b8351811015610ccd57610b3281856133ab565b51655af3107a4000610b448b83613474565b13610b59575b50610b549061337f565b610b1f565b90986019610b678284613474565b056001915b6019831315610b8357505050610b54909890610b4a565b90919796610ba3610b9d610b978b866134c3565b846134ff565b8b61351b565b919060018a16610c4257610c1c91610bc5610bbf60229361378e565b9461378e565b6040519482610bde8794518092602080880191016129a0565b8301600160fd1b6020820152610bfe8251809360206021850191016129a0565b01600160fd1b6021820152610b0982518093602087850191016129a0565b965b600181018091116107fa57976001600160ff1b0381146107fa576001019190610b6c565b610cc791610c54610bbf60249361378e565b600b60fa1b6040519583610c728895518092602080890191016129a0565b840161205160f01b6020820152610c938251809360206022850191016129a0565b01600160fd1b6022820152825190610cb482602395602087850191016129a0565b0191820152036004810184520182612a80565b96610c1e565b5086868560c083015260609080516001915b81831061152057505050610d25602660405180936566287829203d60d01b6020830152610d1581518092602086860191016129a0565b8101036006810184520182612a80565b60a082015260e082015115611475576000610d54916040518093819263dbe2254760e01b83526004830161300b565b0381739dc2684e434757ccc309963bd568932ecebc8fd95af4801561146957610d8691600091611446575b505b6130e9565b90610d91815161322f565b9160405191826101808101106001600160401b0361018085011117611430576101808301604052610153835260208301927f546865205363726f6c6c204f726967696e73204e4654206973206120736f756c84527f626f756e64204e465420746861742073657276657320746f207265636f676e6960408201527f7a6520746865206561726c79206275696c64657273206f66205363726f6c6c2e60608201527f20456c696769626c65206d696e746572732068617665206465706c6f7965642060808201527f6120736d61727420636f6e747261637420746f205363726f6c6c204d61696e6e60a08201527f657477697468696e2036302064617973206f66207468652047656e657369732060c08201527f426c6f636b2e20486967686572206c6576656c73206f6620726172697479206160e08201527f72652061726520726577617264656420746f20736d61727420636f6e747261636101008201527f74732074686174206861766520636f6e7472696275746564207369676e6966696101208201527f63616e74206c6576656c73206f6620696e746572616374696f6e206f7220766161014082015272363ab2903a37903a3432903732ba3bb7b9359760691b6101608201526101208201519361010060e084015193015160405195610f7a87612a65565b60238088527f5b7b2274726169745f74797065223a22437572766174757265222c2276616c7560208901526232911d60e91b6040890152969889906003810361136d575050936111e3979361112b9793610d81979360879761101d61124a9d611017602860405183610ff68295518092602080860191016129a0565b810167224375626963227d60c01b6020820152036008810184520182612a80565b9161322f565b9061109f604360405193602061103c81870195868151938492016129a0565b85017f2c7b2274726169745f74797065223a22526172697479222c2276616c7565223a6020820152601160f91b60408201526110828251809360206041850191016129a0565b01998461227d60f01b9b8c60418201520390810185520183612a80565b81956112da575b505061124e575b61117e90604051926110ea60218560206110d0818301998a8151938492016129a0565b8101605d60f81b6020820152036001810187520185612a80565b611156603d6040519c8d809b7f7b226e616d65223a225363726f6c6c2047656e65736973204e465420230000006020830152602081519485930191016129a0565b89019171111610113232b9b1b934b83a34b7b7111d1160711b603d840152518093604f8401906129a0565b01916f1116101130ba3a3934b13aba32b9911d60811b604f840152518093605f8401906129a0565b016b16101134b6b0b3b2911d101160a11b605f8201527f646174613a696d6167652f7376672b786d6c3b6261736536342c000000000000606b8201526111ce8251809360206085850191016129a0565b01906085820152036067810184520182612a80565b611236603d60405180937f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000602083015261122681518092602086860191016129a0565b810103601d810184520182612a80565b6040519182916020835260208301906129c3565b0390f35b9161117e906112d26062604051836112708295518092602080860191016129a0565b81017f2c7b2274726169745f74797065223a22457863657074696f6e616c205265636f60208201527f676e6974696f6e222c2276616c7565223a225261696e626f77205374726f6b656040820152896060820152036042810184520182612a80565b9290506110ad565b6112fa9295506113659160669160405194859251809260208501906129a0565b81017f2c7b2274726169745f74797065223a22457863657074696f6e616c205265636f60208201527f676e6974696f6e222c2276616c7565223a225261696e626f77204261636b67726040820152656f756e64227d60d01b6060820152036046810184520182612a80565b928c806110a6565b6004036113cf5750936111e3979361112b9793610d81979360879761101d61124a9d611017602a604051836113ac8295518092602080860191016129a0565b8101692251756172746963227d60b01b602082015203600a810184520182612a80565b985060405160005b88811061141b575061124a99509361112b9793610d8197936087979361101d6111e39c9869225175696e746963227d60b01b6043820152602d815261101781612a65565b80602080928d010151828285010152016113d7565b634e487b7160e01b600052604160045260246000fd5b61146391503d806000833e61145b8183612a80565b810190612faa565b84610d7f565b6040513d6000823e3d90fd5b610100820151156114d05760006114a0916040518093819263dbe2254760e01b83526004830161300b565b0381734d88fcfc4294a675968ae98cfefe436d3e47a8d45af4801561146957610d869160009161144657506130e9565b60006114f0916040518093819263dbe2254760e01b83526004830161300b565b038173f76de5c08432074496038a01f00598243a83fc595af4801561146957610d869160009161144657506130e9565b909192655af3107a400061153485846133ab565b510590600091600081126117dc575b6040519261155084612a4a565b60048452602036818601376000602485015b600482106117a35750501561173357846000198101116107fa5761169692611690916020916000198801890361170b5761161460216115bb6040516115a681612a4a565b6002815261202d60f01b878201525b9461322f565b604051938491876115d581850198898151938492016129a0565b83016115e9825180938b80850191016129a0565b01601760f91b88820152611605825180938a87850191016129a0565b01036001810184520182612a80565b809160018a1460001461169d57505061165860216040518361163f82955180928880860191016129a0565b8101600f60fb1b86820152036001810184520182612a80565b604051938161167086935180928680870191016129a0565b8201611684825180938680850191016129a0565b01038084520182612a80565b9361337f565b9190610cdf565b6116c5925061170691602c916116b28c61322f565b90604051958693518092898601906129a0565b8201653c1e39bab81f60d11b878201526116e882518093896026850191016129a0565b01651e17b9bab81f60d11b602682015203600c810184520182612a80565b611658565b61161460216115bb60405161171f81612a4a565b600381526201016960ed1b878201526115b5565b846000198101116107fa5761169692611690916020916000198801890361177b5761161460216115bb60405161176881612a4a565b60018152600160fd1b878201529461322f565b61161460216115bb60405161178f81612a4a565b600381526201015960ed1b878201526115b5565b600a6117b46117d692959395613372565b926f181899199a1a9b1b9c1cb0b131b232b360811b8282061a8453059361337f565b90611562565b91506117e96001926133da565b611543565b806117fc61180792846133ab565b51610755828a6133ab565b6109a8565b81840361190b57670de0b6b3a7640000905b611828828a613940565b93600061183586836134c3565b1315611874575b5050508083036118615761185a670de0b6b3a76400005b929161337f565b909161098f565b61185a61186e82886133ab565b51611853565b896000979497925b601484106118a95750505050611892828a6133ab565b526001810181116107fa57600101928a808061183c565b60006118cb846118c660026118be8a876134ff565b058096613940565b6134c3565b13156118fe5750600181019060006001831291129080158216911516176107fa576118f6909261337f565b918a9061187c565b9293506118f6909361337f565b61191582886133ab565b519061181e565b92909160005b8351811015611951578061194261193c61194c93876133ab565b516133da565b61075582876133ab565b611922565b5091909261094d565b9350876108cd565b9050926108be565b90611974906133da565b906108b3565b611983906133da565b6108aa565b945088610848565b955085610840565b90916119ac670de0b6b3a76400009161348d565b05816000198101116107fa576119dd6119e3916119d66119d08660001987016133eb565b8a6133ab565b51906134ff565b9261337f565b9061082f565b6119f381866133ab565b516119fe82886133ab565b51600183018084116107fa57611a1490896133ab565b5281805b611a55575090611a47670de0b6b3a7640000611a41611a5094611a3a8b61338e565b51906134c3565b056133da565b6107558861338e565b610793565b6000198101908082116107fa57611a9189670de0b6b3a764000061070c611a8a85611a83611aa198866133ab565b51946133ab565b51876134c3565b611a9b828b6133ab565b52613372565b80611a18565b611b0c618000611b0661ffff88611abd8761322f565b611afd60405191826020611ada81830196878151938492016129a0565b8101611f1f60f21b6020820152825190610b0982602295602087850191016129a0565b5190201661348d565b05613437565b81611b3c57611b1b82896133ab565b526001810181116107fa57600101905b600181018091116107fa57906105ce565b6001600160ff1b0360005b838110611b7c5750600012611b5e575b5090611b2b565b611b6882896133ab565b526001810181116107fa5760010188611b57565b611b86818b6133ab565b51831315611bc357611ba2611b9b828c6133ab565b5184613474565b828112611bb9575b50611bb49061337f565b611b47565b9150611bb4611baa565b611bd783611bd1838d6133ab565b51613474565b611ba2565b611bf2618000611b0661ffff87611abd8761322f565b81611c2257611c0182876133ab565b526001810181116107fa57600101905b600181018091116107fa57906105a2565b6001600160ff1b0360005b838110611c6f57506000198501670de0b6b3a76400000512611c51575b5090611c11565b611c5b82876133ab565b526001810181116107fa5760010187611c4a565b611c7981896133ab565b51831315611caf57611c8e611b9b828a6133ab565b828112611ca5575b50611ca09061337f565b611c2d565b9150611ca0611c96565b611cbd83611bd1838b6133ab565b611c8e565b634e487b7160e01b600052601260045260246000fd5b6044906040519063e22e27eb60e01b8252600482015260146024820152fd5b906010600f82161015611d3f578351821015611d3f57611d3a906f181899199a1a9b1b9c1cb0b131b232b360811b600f82161a8584016020015360041c91613372565b6104be565b634e487b7160e01b600052603260045260246000fd5b611d5e9061322f565b9261040f565b905061045b6026604051611d7781612a4a565b600481526302232b1960e51b6020820152929150506103bc565b9150600c604051611da181612a4a565b600481526302737bb160e51b60208201529290506103b4565b9150604051611dc881612a4a565b6004815263027b1ba160e51b6020820152916103ab565b3461013b57608036600319011261013b57611df86129e8565b611e006129fe565b606435916001600160401b03831161013b573660238401121561013b57826004013591611e2c83612ad6565b92611e3a6040519485612a80565b808452366024828701011161013b576020816000926024611e679801838801378501015260443591612de5565b005b3461013b57604036600319011261013b57611e826129e8565b6024359081151580920361013b576001600160a01b0316908115611ef557336000526005602052604060002082600052602052604060002060ff1981541660ff83161790556040519081527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3160203392a3005b604051630b61174360e31b815260048101839052602490fd5b3461013b57600036600319011261013b57604051600060019081549182811c9181841691821561200f575b6020948585108414611ff9578587948686529182600014611fd9575050600114611f7f575b50611f6b92500383612a80565b61124a6040519282849384528301906129c3565b6000818152859250907fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf65b858310611fc1575050611f6b935082010185611f5e565b80548389018501528794508693909201918101611faa565b60ff191685820152611f6b95151560051b8501019250879150611f5e9050565b634e487b7160e01b600052602260045260246000fd5b92607f1692611f39565b3461013b57602036600319011261013b57602061203c6120376129e8565b612af1565b604051908152f35b3461013b57602036600319011261013b576020612062600435612f38565b6040516001600160a01b039091168152f35b3461013b57602036600319011261013b576004356008548110156120ab5761209d602091612f73565b90546040519160031b1c8152f35b6044906040519063295f44f760e21b8252600060048301526024820152fd5b3461013b57611e676120db36612aa1565b90604051926120e984612a2f565b60008452612de5565b3461013b57604036600319011261013b5761210b6129e8565b6024359061211881612af1565b82101561214b5760018060a01b031660005260066020526040600020906000526020526020604060002054604051908152f35b60405163295f44f760e21b81526001600160a01b039190911660048201526024810191909152604490fd5b3461013b57611e6761218736612aa1565b91612b2a565b3461013b57602036600319011261013b576001600160a01b036121ae6129e8565b16600052600d602052602060ff604060002054166040519015158152f35b3461013b5760c036600319011261013b576121e56129e8565b608036602319011261013b57604051906121fe82612a14565b6122066129fe565b82526044356001600160a01b038116810361013b5760208301526064356001600160a01b038116810361013b57604083015260843560608301526001600160401b0360a4351161013b5736602360a43501121561013b576001600160401b0360a435600401351161013b5736602460a4356004013560051b60a43501011161013b576002600a5414612707576002600a5581516001600160a01b031633036126f55781516001600160a01b03166000908152600d602052604090205460ff166126e35760018060a01b03825116600052600d6020526040600020600160ff19825416179055815160208301516040840151906060850151906040519260208401946001600160601b03199283809260601b16875260601b16603485015260601b166048830152605c820152605c815261233e81612a14565b51902060005b60a43560040135811061269d57507f62a0377b43de41ed9087da0e2c9aa7369f9b372998f0e84ad1a1d98c9bc09c3a0361268b57600e549182600052600b6020526003606060406000209260018060a01b038151166001600160601b0360a01b8554161784556001840160018060a01b036020830151166001600160601b0360a01b8254161790556002840160018060a01b036040830151166001600160601b0360a01b8254161790550151910155604051602081018181106001600160401b03821117611430576040526001600160401b034316815282600052600c6020526001600160401b0360406000209151166001600160401b031982541617905560018201600e5560018060a01b03811615612672576000828152600260205260409020546001600160a01b0316918261263b575b6001600160a01b0382166000818152600360209081526040808320805460010190558483526002909152812080546001600160a01b0319168317905582919085907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9080a4826125ab5760085481600052600960205280604060002055600160401b811015611430578161251482600161252d9401600855612f73565b90919082549060031b91821b91600019901b1916179055565b6001600160a01b038216830361255d575b505061254b576001600a55005b604051636bf4035360e11b8152600490fd5b61256682612af1565b6000198101929083116107fa5760018060a01b03166000526006602052604060002082600052602052806040600020556000526007602052604060002055818061253e565b6001600160a01b038216831461252d576125c483612af1565b816000526007602052604060002054818103612608575b5081600052600060408120558360005260066020526040600020906000526020526000604081205561252d565b600085815260066020908152604080832085845282528083205484845281842081905583526007909152902055846125db565b600081815260046020526040902080546001600160a01b031916905582600052600360205260406000206000198154019055612477565b604051633250574960e11b815260006004820152602490fd5b604051635f48f6df60e11b8152600490fd5b9060248260051b60a435010135908181106000146126cf576000526020526126ca60406000205b9161337f565b612344565b906000526020526126ca60406000206126c4565b604051632ff361bd60e01b8152600490fd5b604051630d7ba7af60e31b8152600490fd5b604051633ee5aeb560e01b8152600490fd5b3461013b57600036600319011261013b576020600854604051908152f35b3461013b57604036600319011261013b576127506129e8565b60243561275c81612f38565b3315158061280b575b806127de575b6127c6576001600160a01b039283169282918491167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925600080a4600090815260046020526040902080546001600160a01b0319169091179055005b60405163a9fbf51f60e01b8152336004820152602490fd5b5060018060a01b038116600052600560205260406000203360005260205260ff604060002054161561276b565b506001600160a01b038116331415612765565b3461013b57602036600319011261013b5760043561283b81612f38565b506000526004602052602060018060a01b0360406000205416604051908152f35b3461013b57600036600319011261013b576040516000805490600182811c91818416918215612911575b6020948585108414611ff9578587948686529182600014611fd95750506001146128b75750611f6b92500383612a80565b6000808052859250907f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e5635b8583106128f9575050611f6b935082010185611f5e565b805483890185015287945086939092019181016128e2565b92607f1692612886565b3461013b57602036600319011261013b576004359063ffffffff60e01b821680920361013b5760209163780e9d6360e01b811490811561295d575b5015158152f35b6380ac58cd60e01b81149150811561298f575b811561297e575b5083612956565b6301ffc9a760e01b14905083612977565b635b5e139f60e01b81149150612970565b60005b8381106129b35750506000910152565b81810151838201526020016129a3565b906020916129dc815180928185528580860191016129a0565b601f01601f1916010190565b600435906001600160a01b038216820361013b57565b602435906001600160a01b038216820361013b57565b608081019081106001600160401b0382111761143057604052565b602081019081106001600160401b0382111761143057604052565b604081019081106001600160401b0382111761143057604052565b606081019081106001600160401b0382111761143057604052565b90601f801991011681019081106001600160401b0382111761143057604052565b606090600319011261013b576001600160a01b0390600435828116810361013b5791602435908116810361013b579060443590565b6001600160401b03811161143057601f01601f191660200190565b6001600160a01b03168015612b1157600052600360205260406000205490565b6040516322718ad960e21b815260006004820152602490fd5b90916001600160a01b0380841692831561267257600094838652602094600286526040968488822054169633151580612d57575b5087159384159485612d24575b848452600383528a842080546001019055888452600283528a842080546001600160a01b0319168617905588858b7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8780a415612ca85760085488845260098352808b852055600160401b811015612c945788612514826001612bf19401600855612f73565b838903612c42575b50505050612c31571692838303612c105750505050565b6064945051926364283d7b60e01b8452600484015260248301526044820152fd5b8451636bf4035360e11b8152600490fd5b612c4b90612af1565b600019810193908411612c805782916007918b9452600681528383208584528152888484205588835252205538808080612bf9565b634e487b7160e01b83526011600452602483fd5b634e487b7160e01b84526041600452602484fd5b888414612bf157612cb889612af1565b888452600783528a842054818103612ced575b50888452838b812055898452600683528a84209084528252828a812055612bf1565b8a8552600684528b852082865284528b8520548b8652600685528c86208287528552808d8720558552600784528b85205538612ccb565b600089815260046020526040902080546001600160a01b0319169055898452600383528a84208054600019019055612b6b565b80612da4575b15612d685738612b5e565b888789612d85576024915190637e27328960e01b82526004820152fd5b905163177e802f60e01b81523360048201526024810191909152604490fd5b503388148015612dc9575b80612d5d57508682526004815233868a8420541614612d5d565b5087825260058152888220338352815260ff8983205416612daf565b612df0838383612b2a565b813b612dfd575b50505050565b604051630a85bd0160e11b8082523360048301526001600160a01b03928316602483015260448201949094526080606482015260209592909116939092908390612e4b9060848301906129c3565b039285816000958187895af1849181612ef4575b50612ebf575050503d600014612eb7573d612e7981612ad6565b90612e876040519283612a80565b81528091843d92013e5b80519283612eb257604051633250574960e11b815260048101849052602490fd5b019050fd5b506060612e91565b919450915063ffffffff60e01b1603612edc575038808080612df7565b60249060405190633250574960e11b82526004820152fd5b9091508681813d8311612f31575b612f0c8183612a80565b81010312612f2d57516001600160e01b031981168103612f2d579038612e5f565b8480fd5b503d612f02565b6000818152600260205260409020546001600160a01b0316908115612f5b575090565b60249060405190637e27328960e01b82526004820152fd5b600854811015611d3f5760086000527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30190600090565b60208183031261013b578051906001600160401b03821161013b570181601f8201121561013b578051612fdc81612ad6565b92612fea6040519485612a80565b8184526020828401011161013b5761300891602080850191016129a0565b90565b90613008916020815261302b825160e060208401526101008301906129c3565b9060e060c06130a761309461308061306c61305860208a015198601f19998a8a83030160408b01526129c3565b60408a0151898983030160608a01526129c3565b6060890151888883030160808901526129c3565b6080880151878783030160a08801526129c3565b60a08701518686830301848701526129c3565b94015192828503019101526129c3565b906130c182612ad6565b6130ce6040519182612a80565b82815280926130df601f1991612ad6565b0190602036910137565b80511561321b576040516130fc81612a65565b604081527f4142434445464748494a4b4c4d4e4f505152535455565758595a61626364656660208201527f6768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f604082015281516002928382018092116107fa576003918290046001600160fe1b03811681036107fa5761317e908594951b6130b7565b936020850193829183518401925b8381106131ca57505050505106806001146131b7576002146131ac575090565b603d90600019015390565b50603d9081600019820153600119015390565b85600491979293949701918251600190603f9082828260121c16880101518453828282600c1c16880101518385015382828260061c168801015188850153168501015187820153019592919061318c565b5060405161322881612a2f565b6000815290565b806000917a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000080821015613364575b506d04ee2d6d415b85acef810000000080831015613355575b50662386f26fc1000080831015613346575b506305f5e10080831015613337575b5061271080831015613328575b506064821015613318575b600a8092101561330e575b6001908160216132c68287016130b7565b95860101905b6132d8575b5050505090565b600019019083906f181899199a1a9b1b9c1cb0b131b232b360811b8282061a835304918215613309579190826132cc565b6132d1565b91600101916132b5565b91906064600291049101916132aa565b6004919392049101913861329f565b60089193920491019138613292565b60109193920491019138613283565b60209193920491019138613271565b604093508104915038613258565b80156107fa576000190190565b60001981146107fa5760010190565b805115611d3f5760200190565b805160011015611d3f5760400190565b8051821015611d3f5760209160051b010190565b8115611cc257600160ff1b81146000198314166107fa570590565b600160ff1b81146107fa5760000390565b919082039182116107fa57565b6001600160401b0381116114305760051b60200190565b90613419826133f8565b6134266040519182612a80565b82815280926130df601f19916133f8565b90670de0b6b3a763ffff1982019182136001166107fa57565b90680429f3f00b0dc10000600083820393128184128116918413901516176107fa57565b818103929160001380158285131691841216176107fa57565b90670de0b6b3a7640000918281029281840514901517156107fa57565b90680429f3f00b0dc1000091808302928305036107fa57565b818102929160008212600160ff1b8214166107fa5781840514901517156107fa57565b9081680429f3f00b0dc10000019182126001166107fa57565b919091600083820193841291129080158216911516176107fa57565b8161352891939293613940565b918290600081121561359857670de0b6b3a764000061355161354c613557936133da565b6134aa565b05613450565b925b60008112156135815750670de0b6b3a764000061357b61354c613008936133da565b056134e6565b6130089150613551670de0b6b3a7640000916134aa565b670de0b6b3a764000061357b6135ad926134aa565b92613559565b600a81036136b4575060091981019081116107fa575b601e811161361b5750604051906135df82612a4a565b600782526611a2a221a1a09960c91b60208301526040519161360083612a4a565b60078352662345424332384560c81b60208401529190600590565b602d1061366b576040519061362f82612a4a565b600782526608ce4cd190915160ca1b60208301526040519161365083612a4a565b600783526608cd8c914d910d60ca1b60208401529190600490565b6040519061367882612a4a565b600782526611a3231b1c1a2160c91b60208301526040519161369983612a4a565b600783526611a2a29a98999960c91b60208401529190600390565b600b81036136cd5750601581018091116107fa576135c9565b600c036136f65760338101809111156135c957634e487b7160e01b600052601160045260246000fd5b5060646135c9565b805160001980820192906000805b85811061371b57505050505050565b815b83828703018110613731575060010161370c565b8061373e600192876133ab565b518282019061374d82896133ab565b511261375b575b500161371d565b61376581886133ab565b519061377c613774848a6133ab565b5191896133ab565b5261378782886133ab565b5238613754565b66038d7ea4c680009005806000918281126138a9575b50604051916137b283612a4a565b6003908184526020908185019282368537600090602387015b81831061386d57505050916130089391602193600090600014613851575061160561380e6040516137fb81612a4a565b60018152602d60f81b848201529461322f565b96601760f91b604051988661382c8b9851809288808c0191016129a0565b8701613840825180938880850191016129a0565b0193840152518093868401906129a0565b61380e611605916040519061386582612a2f565b81529461322f565b61387d6138a29197929397613372565b91600a906f181899199a1a9b1b9c1cb0b131b232b360811b8282061a8453059661337f565b91906137cb565b9150506138b76001916133da565b386137a4565b8051600092918391906000198201838382115b8486106138df57505050505050565b909192939496670de0b6b3a763ffff1990818102918183051490151715612c805781612c805761393061393691670de0b6b3a76400006139286139228c896133eb565b896133ab565b5191056134ff565b9761337f565b94939291906138d0565b80516000939284926000198301838111939285905b8487106139655750505050505050565b9091929394670de0b6b3a764000061397f8383999b6134c3565b0590612c805761399f6139a5916119d66139998c886133eb565b886133ab565b9861337f565b95949392919061395556fea264697066735822122087e8b1d6ff7807c74e651210f16080f430df9ac05e7f8e96292f92e258ac5a6c64736f6c63430008140033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a062a0377b43de41ed9087da0e2c9aa7369f9b372998f0e84ad1a1d98c9bc09c3a00000000000000000000000000000000000000000000000000000000000000125363726f6c6c204f726967696e73204e4654000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000125363726f6c6c204f726967696e73204e46540000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): Scroll Origins NFT
Arg [1] : _symbol (string): Scroll Origins NFT
Arg [2] : _root (bytes32): 0x62a0377b43de41ed9087da0e2c9aa7369f9b372998f0e84ad1a1d98c9bc09c3a

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 62a0377b43de41ed9087da0e2c9aa7369f9b372998f0e84ad1a1d98c9bc09c3a
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [4] : 5363726f6c6c204f726967696e73204e46540000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [6] : 5363726f6c6c204f726967696e73204e46540000000000000000000000000000


[ 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.