ETH Price: $3,873.83 (+5.49%)

Contract

0xda5d7f7BD4316752C5C88443cc524a6393D3FA1D

Overview

ETH Balance

0 ETH

ETH Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SettlementsFacet

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 20000 runs

Other Settings:
default evmVersion
File 1 of 26 : SettlementsFacet.sol
// SPDX-License-Identifier: GNU GPLv3
pragma solidity 0.8.20;
import "hardhat/console.sol";

import {AppStorage} from "../../libraries/AppStorage.sol";

import {ECDSAUtils} from "../../utils/ECDSAUtils.sol";
import {QueueUtils} from "../../utils/QueueUtils.sol";
import {MerkleUtils} from "../../utils/MerkleUtils.sol";
import {PaymentUtils} from "../../utils/PaymentUtils.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";

contract SettlementsFacet is ReentrancyGuard {
    error InvalidQueueId(uint256 id);
    event ExodusModeEntered(uint256 queueIndex);

    event SettlementNotarized(
        bytes32 newSettlementsRoot,
        bytes32 newNFTCollectionsRoot,
        uint256 numeBlockNumber
    );

    event CancelSubscriptionRequest(
        address user,
        uint256 subscriptionSettlementnumber,
        uint256 blockNumber
    );

    /// @notice Returns the last finalized settlements root.
    function getSettlementsRoot() external view returns (bytes32) {
        return AppStorage.configStorage().settlementsRoot;
    }

    /// @notice Returns the last finalized nft collections root.
    function getNFTCollectionsRoot() external view returns (bytes32) {
        return AppStorage.configStorage().nftCollectionsRoot;
    }

    /// @notice Returns the current block number.
    function getNumeBlockNumber() external view returns (uint256) {
        return AppStorage.configStorage().numeBlockNumber;
    }

    /// @notice Returns settlements root queue.
    function getSettlementsRootQueue()
        external
        view
        returns (bytes32[] memory)
    {
        return AppStorage.configStorage().SettlementsRootQueue;
    }

    /// @notice Returns nft collections root queue.
    function getNftCollectionsRootQueue()
        external
        view
        returns (bytes32[] memory)
    {
        return AppStorage.configStorage().NftCollectionsRootQueue;
    }

    /// @notice Returns the last finalised cancel subscriptions queue index.
    function getLastFinalisedCancelSubscriptionsQueueIndex()
        external
        view
        returns (uint256)
    {
        return
            AppStorage
                .configStorage()
                .lastFinalizedCancelSubsciptionsQueueIndex;
    }

    /// @notice Returns the current finalised cancel subscriptions queue index.
    function getCurrentCancelSubscriptionsQueueIndex()
        external
        view
        returns (uint256)
    {
        return AppStorage.configStorage().currCancelSubsciptionsQueueIndex;
    }

    /// @notice Returns the cancel subscription queue element at the given index.
    /// @param _queueIndex The index of the cancel subscription queue element.
    function getCancelSubscriptioQueueElement(
        uint256 _queueIndex
    ) external view returns (bytes32) {
        return AppStorage.queueStorage().cancelSubsciptionsQueue[_queueIndex];
    }

    /// @notice Returns the status of cancel subscription of an user.
    /// @param _user The address of the user.
    function getCancelSubscriptionStatus(
        address _user
    ) external view returns (bool) {
        return AppStorage.numeStorage().cancelSubscriptionRequests[_user];
    }

    /// @notice Returns the cancel subscription request timestamp at the given index.
    /// @param _queueIndex The index of the cancel subscription request.
    function getCancelSubscriptionRequestTimestamp(
        uint256 _queueIndex
    ) external view returns (uint256) {
        return
            AppStorage.numeStorage().cancelSubscriptionRequestTimestamps[
                _queueIndex
            ];
    }

    /// @notice Returns facet name.
    function getSettlementsFacetName() external pure returns (bytes4) {
        return bytes4(keccak256(bytes("SettlementsFacet")));
    }

    /// @notice Returns the queue hash for given limit.
    /// @param _id The ID of the queue to return the hash for.
    /// @param _upperLimit The upper limit of the queue window.
    /// @param _lowerLimit The lower limit of the queue window.
    function getQueueHash(
        uint256 _id,
        uint256 _upperLimit,
        uint256 _lowerLimit
    ) external view returns (bytes32) {
        bytes32[] storage queue;

        if (_id == 1) {
            queue = AppStorage.queueStorage().depositsQueue;
        }
        if (_id == 2) {
            queue = AppStorage.queueStorage().withdrawalsQueue;
        }
        if (_id == 3) {
            queue = AppStorage.queueStorage().NFTDepositsQueue;
        }
        if (_id == 4) {
            queue = AppStorage.queueStorage().NFTWithdrawalsQueue;
        }
        if (_id == 5) {
            queue = AppStorage.queueStorage().cancelSubsciptionsQueue;
        } else {
            revert InvalidQueueId(_id);
        }

        return QueueUtils.computeQueueHash(_upperLimit, _lowerLimit, queue);
    }

    /// @notice Struct to hold the arguments for the notarizeSettlement function.
    struct NotarizeSettlementArgs {
        bytes32 newSettlementsRoot;
        bytes32 newNFTCollectionsRoot;
        bytes settlementSignature;
        string ipfsCid;
        uint256 handledDepositsQueueIndex;
        uint256 handledWithdrawalsQueueIndex;
        uint256 handledNFTDepositsQueueIndex;
        uint256 handledNFTWithdrawlsQueueIndex;
        address[] contractWithdrawalAddresses;
        address[] contractWithdrawalTokenAddresses;
        uint256[] contractWithdrawalAmounts;
        address[] contractNftWithdrawalAddresses;
        address[] contractNftWithdrawalTokenAddresses;
        uint256[] contractNftWithdrawalTokenIds;
        bool[] contractMintedNFTs;
        bool[] isContractNftWithdrawalValid;
        address[] backendWithdrawalAddresses;
        address[] backendWithdrawalTokenAddresses;
        uint256[] backendWithdrawalAmountsOrTokenIds;
        uint8[] withdrawalType;
        bool[] mintedNFTs;
        uint256[] invalidDepositsIndex;
        address[] invalidDepositAddresses;
        address[] invalidDepositTokenAddresses;
        uint256[] invalidDepositAmounts;
        uint256[] invalidNFTDepositsIndex;
        address[] invalidNFTDepositAddresses;
        address[] invalidNFTDepositContractAddresses;
        uint256[] invalidNFTDepositTokenIds;
        uint256 handledCancelSubscriptionsQueueIndex;
        address[] cancelSubscriptionRequests;
        uint256[] cancelSubscriptionSettlementNumbers;
    }

    function notarizeSettlement(
        NotarizeSettlementArgs calldata _args
    ) external nonReentrant {
        AppStorage.enforceNotExodusMode();
        AppStorage.enforceIsNumeOwner();
        AppStorage.ConfigStorage storage cs = AppStorage.configStorage();
        AppStorage.UserStorage storage us = AppStorage.userStorage();
        AppStorage.QueueStorage storage qs = AppStorage.queueStorage();
        AppStorage.NumeStorage storage ns = AppStorage.numeStorage();

        require(
            block.timestamp >=
                cs.LAST_SETTLEMENT_TIMESTAMP + cs.SETTLEMENT_TIMEOUT,
            "SettlementsFacet: Settlement timeout not reached"
        );

        ++cs.numeBlockNumber;

        if (_args.invalidDepositAddresses.length != 0) {
            for (uint256 i; i < _args.invalidDepositAddresses.length; ) {
                bytes32 depositQueueHash = keccak256(
                    abi.encodePacked(
                        _args.invalidDepositAddresses[i],
                        _args.invalidDepositTokenAddresses[i],
                        _args.invalidDepositAmounts[i]
                    )
                );
                require(
                    qs.depositsQueue[_args.invalidDepositsIndex[i] - 1] ==
                        depositQueueHash,
                    "NotarizeSettlement: Invalid deposit queue hash"
                );
                us.isAddressBlacklisted[
                    _args.invalidDepositAddresses[i]
                ] = true;
                delete qs.depositsQueue[_args.invalidDepositsIndex[i] - 1];
                us.userWithdrawalBalance[
                    us.depositSenderAddress[_args.invalidDepositsIndex[i]]
                ][_args.invalidDepositTokenAddresses[i]] += _args
                    .invalidDepositAmounts[i];

                unchecked {
                    ++i;
                }
            }
        }

        if (_args.invalidNFTDepositAddresses.length != 0) {
            for (uint256 i; i < _args.invalidNFTDepositAddresses.length; ) {
                bytes32 depositQueueHash = keccak256(
                    abi.encodePacked(
                        _args.invalidNFTDepositAddresses[i],
                        _args.invalidNFTDepositContractAddresses[i],
                        _args.invalidNFTDepositTokenIds[i]
                    )
                );
                require(
                    qs.NFTDepositsQueue[_args.invalidNFTDepositsIndex[i] - 1] ==
                        depositQueueHash,
                    "NotarizeSettlement: Invalid NFT deposit queue hash"
                );
                bytes memory withdrawalQueueItem = (
                    abi.encode(
                        _args.invalidNFTDepositAddresses[i],
                        _args.invalidNFTDepositContractAddresses[i],
                        _args.invalidNFTDepositTokenIds[i],
                        false
                    )
                );
                us.isAddressBlacklisted[
                    _args.invalidNFTDepositAddresses[i]
                ] = true;
                us
                    .userBackendNftWithdrawalRequests[
                        us.nftDepositSenderAddress[
                            _args.invalidNFTDepositsIndex[i]
                        ]
                    ]
                    .push(withdrawalQueueItem);

                delete qs.NFTDepositsQueue[
                    _args.invalidNFTDepositsIndex[i] - 1
                ];

                unchecked {
                    ++i;
                }
            }
        }

        // base message
        bytes memory settlementMessage = abi.encodePacked(
            cs.settlementsRoot,
            _args.newSettlementsRoot,
            _args.ipfsCid,
            cs.numeBlockNumber,
            cs.nftCollectionsRoot,
            _args.newNFTCollectionsRoot
        );
        // handle deposits
        if (_args.handledDepositsQueueIndex != 0) {
            bytes32 depositsQueueHash = QueueUtils.computeQueueHash(
                _args.handledDepositsQueueIndex,
                cs.lastFinalizedDepositsQueueIndex,
                qs.depositsQueue
            );
            settlementMessage = abi.encodePacked(
                settlementMessage,
                depositsQueueHash
            );

            QueueUtils.clearQueue(
                _args.handledDepositsQueueIndex,
                cs.lastFinalizedDepositsQueueIndex,
                qs.depositsQueue
            );
            cs.lastFinalizedDepositsQueueIndex = _args
                .handledDepositsQueueIndex;
        }
        // handle contract withdrawals
        if (
            _args.handledWithdrawalsQueueIndex != 0 &&
            _args.contractWithdrawalAddresses.length != 0
        ) {
            uint256 numContractWithdrawals = _args
                .handledWithdrawalsQueueIndex -
                cs.lastFinalizedWithdrawalsQueueIndex;
            require(
                numContractWithdrawals ==
                    _args.contractWithdrawalAddresses.length,
                "SettlementsFacet: Invalid contract withdrawal addresses length"
            );
            bytes memory withdrawalHashPreimage;
            for (uint256 i; i < numContractWithdrawals; ) {
                bytes32 withdrawalQueueItem = keccak256(
                    abi.encodePacked(
                        _args.contractWithdrawalAddresses[i],
                        _args.contractWithdrawalTokenAddresses[i]
                    )
                );
                require(
                    withdrawalQueueItem ==
                        qs.withdrawalsQueue[
                            cs.lastFinalizedWithdrawalsQueueIndex + i
                        ],
                    "NotarizeSettlement: Invalid withdrawal queue item"
                );
                withdrawalHashPreimage = abi.encodePacked(
                    withdrawalHashPreimage,
                    _args.contractWithdrawalAddresses[i],
                    _args.contractWithdrawalTokenAddresses[i],
                    _args.contractWithdrawalAmounts[i]
                );
                delete ns.withdrawalRequests[
                    _args.contractWithdrawalAddresses[i]
                ][_args.contractWithdrawalTokenAddresses[i]];
                delete ns.withdrawalRequestTimestamps[
                    cs.lastFinalizedWithdrawalsQueueIndex + i + 1
                ];
                if (_args.contractWithdrawalAmounts[i] > 0) {
                    us.userWithdrawalBalance[
                        us.contractWithdrawalSenderAddress[
                            cs.lastFinalizedWithdrawalsQueueIndex + i + 1
                        ]
                    ][0x1111111111111111111111111111111111111111] += cs
                        .WITHDRAWAL_STAKE;
                    delete us.contractWithdrawalSenderAddress[
                        cs.lastFinalizedWithdrawalsQueueIndex + i + 1
                    ];
                    us.userWithdrawalBalance[
                        _args.contractWithdrawalAddresses[i]
                    ][_args.contractWithdrawalTokenAddresses[i]] += _args
                        .contractWithdrawalAmounts[i];
                }
                unchecked {
                    ++i;
                }
            }
            bytes32 withdrawalsHash = keccak256(
                abi.encodePacked(withdrawalHashPreimage)
            );
            settlementMessage = abi.encodePacked(
                settlementMessage,
                withdrawalsHash
            );

            QueueUtils.clearQueue(
                _args.handledWithdrawalsQueueIndex,
                cs.lastFinalizedWithdrawalsQueueIndex,
                qs.withdrawalsQueue
            );
            cs.lastFinalizedWithdrawalsQueueIndex = _args
                .handledWithdrawalsQueueIndex;
        }
        // handle NFT deposits
        if (_args.handledNFTDepositsQueueIndex != 0) {
            bytes32 depositsQueueHash = QueueUtils.computeQueueHash(
                _args.handledNFTDepositsQueueIndex,
                cs.lastFinalizedNFTDepositsQueueIndex,
                qs.NFTDepositsQueue
            );
            settlementMessage = abi.encodePacked(
                settlementMessage,
                depositsQueueHash
            );

            QueueUtils.clearQueue(
                _args.handledNFTDepositsQueueIndex,
                cs.lastFinalizedNFTDepositsQueueIndex,
                qs.NFTDepositsQueue
            );
            cs.lastFinalizedNFTDepositsQueueIndex = _args
                .handledNFTDepositsQueueIndex;
        }
        // handle NFT contract withdrawals
        if (
            _args.handledNFTWithdrawlsQueueIndex != 0 &&
            _args.contractNftWithdrawalAddresses.length != 0
        ) {
            uint256 numContractWithdrawals = _args
                .handledNFTWithdrawlsQueueIndex -
                cs.lastFinalizedNFTWithdrawalsQueueIndex;
            require(
                numContractWithdrawals ==
                    _args.contractNftWithdrawalAddresses.length,
                "SettlementsFacet: Invalid nft contract withdrawal addresses length"
            );
            bytes memory withdrawalHashPreimage;
            for (uint256 i; i < numContractWithdrawals; ) {
                bytes32 withdrawalQueueItem = keccak256(
                    abi.encodePacked(
                        _args.contractNftWithdrawalAddresses[i],
                        _args.contractNftWithdrawalTokenAddresses[i],
                        _args.contractNftWithdrawalTokenIds[i],
                        _args.contractMintedNFTs[i]
                    )
                );
                require(
                    withdrawalQueueItem ==
                        qs.NFTWithdrawalsQueue[
                            cs.lastFinalizedNFTWithdrawalsQueueIndex + i
                        ],
                    "NotarizeSettlement: Invalid nft withdrawal queue item"
                );
                withdrawalHashPreimage = abi.encodePacked(
                    withdrawalHashPreimage,
                    _args.contractNftWithdrawalAddresses[i],
                    _args.contractNftWithdrawalTokenAddresses[i],
                    _args.contractNftWithdrawalTokenIds[i],
                    _args.contractMintedNFTs[i],
                    _args.isContractNftWithdrawalValid[i]
                );

                bytes32 NFTHash = keccak256(
                    abi.encodePacked(
                        _args.contractNftWithdrawalTokenAddresses[i],
                        _args.contractNftWithdrawalTokenIds[i],
                        _args.contractMintedNFTs[i]
                    )
                );
                delete ns.NFTWithdrawalRequests[
                    _args.contractNftWithdrawalAddresses[i]
                ][NFTHash];
                delete ns.NFTWithdrawalRequestTimestamps[
                    cs.lastFinalizedNFTWithdrawalsQueueIndex + i + 1
                ];

                if (_args.isContractNftWithdrawalValid[i]) {
                    us.userWithdrawalBalance[
                        us.contractNftWithdrawalSenderAddress[
                            cs.lastFinalizedNFTWithdrawalsQueueIndex + i + 1
                        ]
                    ][0x1111111111111111111111111111111111111111] += cs
                        .WITHDRAWAL_STAKE;
                    delete us.contractNftWithdrawalSenderAddress[
                        cs.lastFinalizedNFTWithdrawalsQueueIndex + i + 1
                    ];
                } else {
                    delete qs.NFTWithdrawalsQueue[
                        cs.lastFinalizedNFTWithdrawalsQueueIndex + i
                    ];
                }

                unchecked {
                    ++i;
                }
            }

            bytes32 withdrawalsHash = keccak256(
                abi.encodePacked(withdrawalHashPreimage)
            );
            settlementMessage = abi.encodePacked(
                settlementMessage,
                withdrawalsHash
            );
            cs.lastFinalizedNFTWithdrawalsQueueIndex = _args
                .handledNFTWithdrawlsQueueIndex;
        }
        // handle withdrawals
        if (_args.backendWithdrawalAddresses.length != 0) {
            uint256 numWithdrawals = _args.backendWithdrawalAddresses.length;
            bytes memory withdrawalHashPreimage;
            for (uint256 i; i < numWithdrawals; ) {
                withdrawalHashPreimage = abi.encodePacked(
                    withdrawalHashPreimage,
                    _args.withdrawalType[i],
                    _args.backendWithdrawalAddresses[i],
                    _args.backendWithdrawalTokenAddresses[i],
                    _args.backendWithdrawalAmountsOrTokenIds[i],
                    _args.mintedNFTs[i]
                );

                if (_args.withdrawalType[i] == 0) {
                    us.userWithdrawalBalance[
                        _args.backendWithdrawalAddresses[i]
                    ][_args.backendWithdrawalTokenAddresses[i]] += _args
                        .backendWithdrawalAmountsOrTokenIds[i];
                }
                if (_args.withdrawalType[i] == 1) {
                    bytes memory withdrawalQueueItem = (
                        abi.encode(
                            _args.backendWithdrawalAddresses[i],
                            _args.backendWithdrawalTokenAddresses[i],
                            _args.backendWithdrawalAmountsOrTokenIds[i],
                            _args.mintedNFTs[i]
                        )
                    );
                    us
                        .userBackendNftWithdrawalRequests[
                            _args.backendWithdrawalAddresses[i]
                        ]
                        .push(withdrawalQueueItem);
                }

                unchecked {
                    ++i;
                }
            }
            bytes32 withdrawalsHash = keccak256(
                abi.encodePacked(withdrawalHashPreimage)
            );
            settlementMessage = abi.encodePacked(
                settlementMessage,
                withdrawalsHash
            );
        }
        // handle cancel subscriptions
        if (
            _args.handledCancelSubscriptionsQueueIndex != 0 &&
            _args.cancelSubscriptionRequests.length != 0
        ) {
            uint256 numCancelSubscriptions = _args
                .handledCancelSubscriptionsQueueIndex -
                cs.lastFinalizedCancelSubsciptionsQueueIndex;
            require(
                numCancelSubscriptions ==
                    _args.cancelSubscriptionRequests.length,
                "SettlementsFacet: Invalid cancel subscriptions addresses length"
            );
            require(
                _args.cancelSubscriptionRequests.length ==
                    _args.cancelSubscriptionSettlementNumbers.length,
                "NotarizeSettlement: Invalid cancel subscription requests length"
            );
            bytes32 cancelSubscriptionsQueueHash = QueueUtils.computeQueueHash(
                _args.handledCancelSubscriptionsQueueIndex,
                cs.lastFinalizedCancelSubsciptionsQueueIndex,
                qs.cancelSubsciptionsQueue
            );
            settlementMessage = abi.encodePacked(
                settlementMessage,
                cancelSubscriptionsQueueHash
            );

            for (uint256 i; i < numCancelSubscriptions; ) {
                bytes32 cancelSubscriptionQueueItem = keccak256(
                    abi.encodePacked(
                        _args.cancelSubscriptionRequests[i],
                        _args.cancelSubscriptionSettlementNumbers[i]
                    )
                );
                require(
                    qs.cancelSubsciptionsQueue[
                        cs.lastFinalizedCancelSubsciptionsQueueIndex + i
                    ] == cancelSubscriptionQueueItem,
                    "NotarizeSettlement: Cancel subscription queue item"
                );
                ns.cancelSubscriptionRequests[
                    _args.cancelSubscriptionRequests[i]
                ] = false;
                delete ns.cancelSubscriptionRequestTimestamps[
                    cs.lastFinalizedCancelSubsciptionsQueueIndex + i + 1
                ];

                unchecked {
                    ++i;
                }
            }
            QueueUtils.clearQueue(
                _args.handledCancelSubscriptionsQueueIndex,
                cs.lastFinalizedCancelSubsciptionsQueueIndex,
                qs.cancelSubsciptionsQueue
            );
            cs.lastFinalizedCancelSubsciptionsQueueIndex = _args
                .handledCancelSubscriptionsQueueIndex;
        }

        console.log("settlementMessage");
        console.logBytes(settlementMessage);

        // verify signature
        require(
            ECDSAUtils.recoverSigner(
                settlementMessage,
                _args.settlementSignature
            ) == cs.verificationAddress,
            "NotarizeSettlement: Invalid settlement signature"
        );

        cs.settlementsRoot = _args.newSettlementsRoot;
        cs.nftCollectionsRoot = _args.newNFTCollectionsRoot;
        cs.SettlementsRootQueue.push(_args.newSettlementsRoot);
        cs.NftCollectionsRootQueue.push(_args.newNFTCollectionsRoot);
        cs.LAST_SETTLEMENT_TIMESTAMP = block.timestamp;

        emit SettlementNotarized(
            _args.newSettlementsRoot,
            _args.newNFTCollectionsRoot,
            cs.numeBlockNumber
        );
    }

    /// @notice Struct to hold the arguments for the cancelSubscriptionRequest function.
    struct CancelSubscriptionRequestArgs {
        address user;
        uint256 nonce;
        uint256 subscriptionSettlementNumber;
        uint256 accountsIndex;
        bytes32 balancesRoot;
        bytes signature;
        uint256[] listerNonce;
        bytes32[] accountsProof;
    }

    function cancelSubscriptionRequest(
        CancelSubscriptionRequestArgs calldata _args
    ) external nonReentrant {
        AppStorage.enforceNotExodusMode();
        AppStorage.ConfigStorage storage cs = AppStorage.configStorage();
        AppStorage.QueueStorage storage qs = AppStorage.queueStorage();
        AppStorage.NumeStorage storage ns = AppStorage.numeStorage();

        require(
            ECDSAUtils.recoverSigner(
                abi.encodePacked(
                    _args.user,
                    cs.numeBlockNumber,
                    "cancelSubscriptionRequest"
                ),
                _args.signature
            ) == _args.user,
            "SettlementsFacet: Invalid user signature"
        );

        bytes32 nonceHash;

        if (_args.listerNonce.length == 0) {
            nonceHash = bytes32(0);
        }
        if (_args.listerNonce.length > 0) {
            nonceHash = keccak256(abi.encodePacked(_args.listerNonce));
        }

        bytes32 accountLeaf = keccak256(
            abi.encodePacked(
                _args.user,
                _args.balancesRoot,
                _args.nonce,
                nonceHash,
                _args.subscriptionSettlementNumber
            )
        );
        require(
            MerkleUtils.verifyProof(
                cs.settlementsRoot,
                accountLeaf,
                _args.accountsProof,
                _args.accountsIndex
            ),
            "SettlementsFacet: Invalid accounts proof"
        );

        require(
            _args.subscriptionSettlementNumber != 0,
            "SettlementsFacet: Invalid block number"
        );
        require(
            ns.cancelSubscriptionRequests[_args.user] == false,
            "SettlementsFacet: Cancel subscription already requested"
        );
        ns.cancelSubscriptionRequests[_args.user] = true;

        bytes32 cancelSubscription = keccak256(
            abi.encodePacked(_args.user, _args.subscriptionSettlementNumber)
        );
        qs.cancelSubsciptionsQueue.push(cancelSubscription);
        ++cs.currCancelSubsciptionsQueueIndex;
        ns.cancelSubscriptionRequestTimestamps[
            cs.currCancelSubsciptionsQueueIndex
        ] = block.timestamp;

        emit CancelSubscriptionRequest(
            _args.user,
            _args.subscriptionSettlementNumber,
            cs.numeBlockNumber
        );
    }

    /// @notice User can challenge the cancel subscription request if Operator does not cancel it within the timeout period.
    /// @param _queueIndex The index of the cancel subscription request in the queue.
    function challengeUserCancelSubscription(
        uint256 _queueIndex
    ) external nonReentrant {
        AppStorage.ConfigStorage storage cs = AppStorage.configStorage();
        AppStorage.NumeStorage storage ns = AppStorage.numeStorage();

        require(
            _queueIndex <= cs.currCancelSubsciptionsQueueIndex &&
                _queueIndex > cs.lastFinalizedCancelSubsciptionsQueueIndex,
            "SettlementsFacet: Invalid queue index"
        );
        require(
            block.timestamp >
                ns.cancelSubscriptionRequestTimestamps[_queueIndex] +
                    cs.WITHDRAWAL_REQUEST_TIMEOUT,
            "SettlementsFacet: Cancel subscription request has not expired yet"
        );

        cs.isInExodusMode = true;

        emit ExodusModeEntered(_queueIndex);
    }
}

File 2 of 26 : 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 26 : IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 *
 * ==== Security Considerations
 *
 * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature
 * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be
 * considered as an intention to spend the allowance in any specific way. The second is that because permits have
 * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should
 * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be
 * generally recommended is:
 *
 * ```solidity
 * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {
 *     try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}
 *     doThing(..., value);
 * }
 *
 * function doThing(..., uint256 value) public {
 *     token.safeTransferFrom(msg.sender, address(this), value);
 *     ...
 * }
 * ```
 *
 * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of
 * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also
 * {SafeERC20-safeTransferFrom}).
 *
 * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so
 * contracts should have entry points that don't rely on permit.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     *
     * CAUTION: See Security Considerations above.
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

File 4 of 26 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the value of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the value of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves a `value` amount of tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 value) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets a `value` amount of tokens as the allowance of `spender` over the
     * caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 value) external returns (bool);

    /**
     * @dev Moves a `value` amount of tokens from `from` to `to` using the
     * allowance mechanism. `value` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address from, address to, uint256 value) external returns (bool);
}

File 5 of 26 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.20;

import {IERC20} from "../IERC20.sol";
import {IERC20Permit} from "../extensions/IERC20Permit.sol";
import {Address} from "../../../utils/Address.sol";

/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    /**
     * @dev An operation with an ERC20 token failed.
     */
    error SafeERC20FailedOperation(address token);

    /**
     * @dev Indicates a failed `decreaseAllowance` request.
     */
    error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease);

    /**
     * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeTransfer(IERC20 token, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value)));
    }

    /**
     * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the
     * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful.
     */
    function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal {
        _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value)));
    }

    /**
     * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful.
     */
    function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {
        uint256 oldAllowance = token.allowance(address(this), spender);
        forceApprove(token, spender, oldAllowance + value);
    }

    /**
     * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no
     * value, non-reverting calls are assumed to be successful.
     */
    function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal {
        unchecked {
            uint256 currentAllowance = token.allowance(address(this), spender);
            if (currentAllowance < requestedDecrease) {
                revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease);
            }
            forceApprove(token, spender, currentAllowance - requestedDecrease);
        }
    }

    /**
     * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value,
     * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval
     * to be set to zero before setting it to a non-zero value, such as USDT.
     */
    function forceApprove(IERC20 token, address spender, uint256 value) internal {
        bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value));

        if (!_callOptionalReturnBool(token, approvalCall)) {
            _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0)));
            _callOptionalReturn(token, approvalCall);
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data);
        if (returndata.length != 0 && !abi.decode(returndata, (bool))) {
            revert SafeERC20FailedOperation(address(token));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     *
     * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead.
     */
    function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false
        // and not revert is the subcall reverts.

        (bool success, bytes memory returndata) = address(token).call(data);
        return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && address(token).code.length > 0;
    }
}

File 6 of 26 : 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 7 of 26 : 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 8 of 26 : 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 9 of 26 : 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 10 of 26 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)

pragma solidity ^0.8.20;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev The ETH balance of the account is not enough to perform the operation.
     */
    error AddressInsufficientBalance(address account);

    /**
     * @dev There's no code at `target` (it is not a contract).
     */
    error AddressEmptyCode(address target);

    /**
     * @dev A call to an address target failed. The target may have reverted.
     */
    error FailedInnerCall();

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        if (address(this).balance < amount) {
            revert AddressInsufficientBalance(address(this));
        }

        (bool success, ) = recipient.call{value: amount}("");
        if (!success) {
            revert FailedInnerCall();
        }
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason or custom error, it is bubbled
     * up by this function (like regular Solidity function calls). However, if
     * the call reverted with no returned reason, this function reverts with a
     * {FailedInnerCall} error.
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        if (address(this).balance < value) {
            revert AddressInsufficientBalance(address(this));
        }
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
     * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an
     * unsuccessful call.
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata
    ) internal view returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            // only check if target is a contract if the call was successful and the return data is empty
            // otherwise we already know that it was a contract
            if (returndata.length == 0 && target.code.length == 0) {
                revert AddressEmptyCode(target);
            }
            return returndata;
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
     * revert reason or with a default {FailedInnerCall} error.
     */
    function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
        if (!success) {
            _revert(returndata);
        } else {
            return returndata;
        }
    }

    /**
     * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.
     */
    function _revert(bytes memory returndata) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert FailedInnerCall();
        }
    }
}

File 11 of 26 : 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 12 of 26 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.20;

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS
    }

    /**
     * @dev The signature derives the `address(0)`.
     */
    error ECDSAInvalidSignature();

    /**
     * @dev The signature has an invalid length.
     */
    error ECDSAInvalidSignatureLength(uint256 length);

    /**
     * @dev The signature has an S value that is in the upper half order.
     */
    error ECDSAInvalidSignatureS(bytes32 s);

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with `signature` or an error. This will not
     * return address(0) without also returning an error description. Errors are documented using an enum (error type)
     * and a bytes32 providing additional information about the error.
     *
     * If no error is returned, then the address can be used for verification purposes.
     *
     * The `ecrecover` EVM precompile allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError, bytes32) {
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            /// @solidity memory-safe-assembly
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength, bytes32(signature.length));
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM precompile allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {MessageHashUtils-toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, signature);
        _throwError(error, errorArg);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     */
    function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError, bytes32) {
        unchecked {
            bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
            // We do not check for an overflow here since the shift operation results in 0 or 1.
            uint8 v = uint8((uint256(vs) >> 255) + 27);
            return tryRecover(hash, v, r, s);
        }
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     */
    function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {
        (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, r, vs);
        _throwError(error, errorArg);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError, bytes32) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS, s);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature, bytes32(0));
        }

        return (signer, RecoverError.NoError, bytes32(0));
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {
        (address recovered, RecoverError error, bytes32 errorArg) = tryRecover(hash, v, r, s);
        _throwError(error, errorArg);
        return recovered;
    }

    /**
     * @dev Optionally reverts with the corresponding custom error according to the `error` argument provided.
     */
    function _throwError(RecoverError error, bytes32 errorArg) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert ECDSAInvalidSignature();
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert ECDSAInvalidSignatureLength(uint256(errorArg));
        } else if (error == RecoverError.InvalidSignatureS) {
            revert ECDSAInvalidSignatureS(errorArg);
        }
    }
}

File 13 of 26 : MessageHashUtils.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MessageHashUtils.sol)

pragma solidity ^0.8.20;

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

/**
 * @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing.
 *
 * The library provides methods for generating a hash of a message that conforms to the
 * https://eips.ethereum.org/EIPS/eip-191[EIP 191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712]
 * specifications.
 */
library MessageHashUtils {
    /**
     * @dev Returns the keccak256 digest of an EIP-191 signed data with version
     * `0x45` (`personal_sign` messages).
     *
     * The digest is calculated by prefixing a bytes32 `messageHash` with
     * `"\x19Ethereum Signed Message:\n32"` and hashing the result. It corresponds with the
     * hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method.
     *
     * NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with
     * keccak256, although any bytes32 value can be safely used because the final digest will
     * be re-hashed.
     *
     * See {ECDSA-recover}.
     */
    function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, "\x19Ethereum Signed Message:\n32") // 32 is the bytes-length of messageHash
            mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix
            digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20)
        }
    }

    /**
     * @dev Returns the keccak256 digest of an EIP-191 signed data with version
     * `0x45` (`personal_sign` messages).
     *
     * The digest is calculated by prefixing an arbitrary `message` with
     * `"\x19Ethereum Signed Message:\n" + len(message)` and hashing the result. It corresponds with the
     * hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method.
     *
     * See {ECDSA-recover}.
     */
    function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) {
        return
            keccak256(bytes.concat("\x19Ethereum Signed Message:\n", bytes(Strings.toString(message.length)), message));
    }

    /**
     * @dev Returns the keccak256 digest of an EIP-191 signed data with version
     * `0x00` (data with intended validator).
     *
     * The digest is calculated by prefixing an arbitrary `data` with `"\x19\x00"` and the intended
     * `validator` address. Then hashing the result.
     *
     * See {ECDSA-recover}.
     */
    function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked(hex"19_00", validator, data));
    }

    /**
     * @dev Returns the keccak256 digest of an EIP-712 typed data (EIP-191 version `0x01`).
     *
     * The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with
     * `\x19\x01` and hashing the result. It corresponds to the hash signed by the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712.
     *
     * See {ECDSA-recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) {
        /// @solidity memory-safe-assembly
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, hex"19_01")
            mstore(add(ptr, 0x02), domainSeparator)
            mstore(add(ptr, 0x22), structHash)
            digest := keccak256(ptr, 0x42)
        }
    }
}

File 14 of 26 : 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 15 of 26 : 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 16 of 26 : 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 17 of 26 : 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 18 of 26 : 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 19 of 26 : 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 20 of 26 : AppStorage.sol
// SPDX-License-Identifier: GNU GPLv3
pragma solidity 0.8.20;

library AppStorage {
    bytes32 constant CONFIG_STORAGE_POSITION =
        keccak256("nume.protocol.config.storage");

    bytes32 constant USER_STORAGE_POSITION =
        keccak256("nume.protocol.user.storage");

    bytes32 constant QUEUE_STORAGE_POSITION =
        keccak256("nume.protocol.queue.storage");

    bytes32 constant NUME_STORAGE_POSITION =
        keccak256("nume.protocol.request.storage");

    struct ConfigStorage {
        bool isInExodusMode;
        uint256 totalTokens;
        uint256 numeBlockNumber;
        address verificationAddress;
        address numeOwner;
        address governorContract;
        uint256 depositsLimit;
        uint256 nftDepositsLimit;
        uint256 currDepositsQueueIndex;
        uint256 currNFTDepositsQueueIndex;
        uint256 currWithdrawalsQueueIndex;
        uint256 currNFTWithdrawalsQueueIndex;
        uint256 currCancelSubsciptionsQueueIndex;
        uint256 lastFinalizedDepositsQueueIndex;
        uint256 lastFinalizedNFTDepositsQueueIndex;
        uint256 lastFinalizedWithdrawalsQueueIndex;
        uint256 lastFinalizedNFTWithdrawalsQueueIndex;
        uint256 lastFinalizedCancelSubsciptionsQueueIndex;
        uint256 WITHDRAWAL_STAKE;
        uint256 WITHDRAWAL_REQUEST_TIMEOUT;
        uint256 SETTLEMENT_TIMEOUT;
        uint256 LAST_SETTLEMENT_TIMESTAMP;
        bytes32 settlementsRoot;
        bytes32 nftCollectionsRoot;
        mapping(address => bool) supportedTokens;
        mapping(address => uint256) tokenDepositLimit;
        bytes32[] SettlementsRootQueue;
        bytes32[] NftCollectionsRootQueue;
    }

    struct UserStorage {
        mapping(uint256 => address) depositSenderAddress;
        mapping(uint256 => address) nftDepositSenderAddress;
        mapping(uint256 => address) contractWithdrawalSenderAddress;
        mapping(uint256 => address) contractNftWithdrawalSenderAddress;
        mapping(address => uint256) userDepositCount; // userAddress => depositCount
        mapping(address => uint256) userDepositTimestamp; // userAddress => depositTimestamp
        mapping(address => uint256) userNftDepositCount; // userAddress => nft depositCount
        mapping(address => uint256) userNftDepositTimestamp; // userAddress => nft depositTimestamp
        mapping(address => mapping(address => bool)) userExodusWithdrawals; // userAddress => tokenAddress => isWithdrawn
        mapping(address => mapping(bytes32 => bool)) userExodusNFTWithdrawals; // userAddress => keccak256(NFTContractAddress, tokenID) => isWithdrawn
        mapping(address => bool) isAddressBlacklisted; // userAddress => isBlacklisted
        mapping(address => mapping(address => uint256)) userWithdrawalBalance; // userAddress => tokenAddress => withdrawal amount
        mapping(address => bytes[]) userBackendNftWithdrawalRequests; // userAddress => nftWithdrawalRequestHashes
    }

    struct QueueStorage {
        bytes32[] depositsQueue;
        bytes32[] NFTDepositsQueue;
        bytes32[] withdrawalsQueue;
        bytes32[] NFTWithdrawalsQueue;
        bytes32[] cancelSubsciptionsQueue;
    }

    struct NumeStorage {
        mapping(address => mapping(address => bool)) withdrawalRequests; // user adddress => tokenID => isWithdrawalRequested
        mapping(address => mapping(bytes32 => bool)) NFTWithdrawalRequests; // user adddress => keccak256(NFTContractAddress, tokenID) => isWithdrawalRequested
        mapping(uint256 => uint256) withdrawalRequestTimestamps; // withdrawalQueueIndex => timestamp
        mapping(uint256 => uint256) NFTWithdrawalRequestTimestamps; // nft withdrawalQueueIndex => timestamp
        mapping(address => bool) cancelSubscriptionRequests; // userAddress => isCancelRequested
        mapping(uint256 => uint256) cancelSubscriptionRequestTimestamps; // cancel subscription queue index => timestamp
    }

    function configStorage() internal pure returns (ConfigStorage storage cs) {
        bytes32 position = CONFIG_STORAGE_POSITION;
        assembly {
            cs.slot := position
        }
    }

    function queueStorage() internal pure returns (QueueStorage storage qs) {
        bytes32 position = QUEUE_STORAGE_POSITION;
        assembly {
            qs.slot := position
        }
    }

    function userStorage() internal pure returns (UserStorage storage us) {
        bytes32 position = USER_STORAGE_POSITION;
        assembly {
            us.slot := position
        }
    }

    function numeStorage() internal pure returns (NumeStorage storage ns) {
        bytes32 position = NUME_STORAGE_POSITION;
        assembly {
            ns.slot := position
        }
    }

    function enforceIsNumeOwner() internal view {
        require(
            msg.sender == configStorage().numeOwner,
            "Nume: Only Nume owner can call this function"
        );
    }

    function enforceIsGovernor() internal view {
        require(
            msg.sender == configStorage().governorContract,
            "Nume: Only governor contract can call this function"
        );
    }

    function notBlacklisted(address user) internal view {
        require(
            !userStorage().isAddressBlacklisted[user],
            "Nume: User is blacklisted"
        );
    }

    function enforceNotExodusMode() internal view {
        require(
            !configStorage().isInExodusMode,
            "Nume: Protocol is in exodus mode"
        );
    }

    error FacetNotExist();
    error ExceededMaximumDailyCalls(address user);
    error InvalidTokenAddress(address tokenAddress);
    error InvalidAmount();
    error TransactionFailed();
    error NotInExodusMode();
    error AddressBlacklisted(address user);
    error InvalidAddress();
}

File 21 of 26 : ECDSAUtils.sol
// SPDX-License-Identifier: GNU GPLv3
pragma solidity 0.8.20;

import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol";

library ECDSAUtils {
    function recoverSigner(
        bytes memory _msg,
        bytes memory _signature
    ) internal pure returns (address) {
        bytes32 digest = MessageHashUtils.toEthSignedMessageHash(
            keccak256(_msg)
        );
        (address _address, ECDSA.RecoverError _error, bytes32 _data) = ECDSA
            .tryRecover(digest, _signature);
        require(
            _error == ECDSA.RecoverError.NoError && _data == bytes32(0),
            "ECDSAUtils: Invalid signature"
        );
        return _address;
    }
}

File 22 of 26 : MerkleUtils.sol
// SPDX-License-Identifier: GNU GPLv3
pragma solidity 0.8.20;

library MerkleUtils {
    function verifyProof(
        bytes32 root,
        bytes32 leaf,
        bytes32[] memory proof,
        uint256 index
    ) internal pure returns (bool) {
        bytes32 hashedResult = leaf;

        uint256 proofLength = proof.length;
        for (uint256 i; i < proofLength; ) {
            if (index % 2 == 0) {
                hashedResult = keccak256(
                    abi.encodePacked(hashedResult, proof[i])
                );
                index = index / 2;
            } else {
                hashedResult = keccak256(
                    abi.encodePacked(proof[i], hashedResult)
                );
                index = (index - 1) / 2;
            }

            unchecked {
                ++i;
            }
        }

        return hashedResult == root;
    }
}

File 23 of 26 : NumeNFTFactory.sol
// SPDX-License-Identifier: GNU GPLv3
pragma solidity 0.8.20;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";

contract NumeNFTFactory is ERC721 {
    event MintNFTFromNume(address recipient, uint256 tokenId);

    address private numeProtocolAddress;
    address private immutable operator;

    constructor(
        string memory name,
        string memory symbol,
        address _numeProtocolAddress
    ) ERC721(name, symbol) {
        operator = msg.sender;
        numeProtocolAddress = _numeProtocolAddress;
    }

    function mintNFTFromNume(address recipient, uint256 tokenId) external {
        require(
            msg.sender == numeProtocolAddress,
            "NumeNFTFactory: Only NUME Protocol can call this function"
        );
        _safeMint(recipient, tokenId);

        emit MintNFTFromNume(recipient, tokenId);
    }

    function changeNumenProtocolAddress(address _numeProtocolAddress) external {
        require(
            msg.sender == operator,
            "NumeNFTFactory: Only operator can call this function"
        );
        numeProtocolAddress = _numeProtocolAddress;
    }
}

File 24 of 26 : PaymentUtils.sol
// SPDX-License-Identifier: GNU GPLv3
pragma solidity 0.8.20;

import {AppStorage} from "../libraries/AppStorage.sol";

import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {IERC721} from "@openzeppelin/contracts/token/ERC721/IERC721.sol";

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

library PaymentUtils {
    function pay(
        address _wallet,
        address _tokenAddress,
        uint256 _amount
    ) internal {
        AppStorage.ConfigStorage storage cs = AppStorage.configStorage();

        if (!cs.supportedTokens[_tokenAddress]) {
            revert AppStorage.InvalidTokenAddress(_tokenAddress);
        }
        if (_wallet == address(0)) {
            revert AppStorage.InvalidAddress();
        }
        if (!(_amount > 0)) {
            revert AppStorage.InvalidAmount();
        }

        if (_tokenAddress == 0x1111111111111111111111111111111111111111) {
            (bool sent, ) = _wallet.call{value: _amount}("");
            if (!sent) {
                revert AppStorage.TransactionFailed();
            }
        } else {
            uint256 balanceBefore = IERC20(_tokenAddress).balanceOf(
                address(this)
            );
            SafeERC20.safeTransfer(IERC20(_tokenAddress), _wallet, _amount);
            uint256 balanceAfter = IERC20(_tokenAddress).balanceOf(
                address(this)
            );
            uint256 amountSent = balanceBefore - balanceAfter;
            if (amountSent != _amount) {
                revert AppStorage.TransactionFailed();
            }
        }
    }

    function payNft(
        address _wallet,
        address _tokenAddress,
        uint256 _tokenId,
        bool _mintedNft
    ) internal {
        if (_mintedNft == false) {
            IERC721(_tokenAddress).safeTransferFrom(
                address(this),
                _wallet,
                _tokenId
            );
        } else {
            NumeNFTFactory(_tokenAddress).mintNFTFromNume(_wallet, _tokenId);
        }
    }
}

File 25 of 26 : QueueUtils.sol
// SPDX-License-Identifier: GNU GPLv3
pragma solidity 0.8.20;

library QueueUtils {
    function computeQueueHash(
        uint256 _handledQueueIndex,
        uint256 _lastFinalizedQueueIndex,
        bytes32[] storage _queue
    ) internal view returns (bytes32) {
        uint256 currQueueLength = _handledQueueIndex - _lastFinalizedQueueIndex;
        uint256[] memory currQueue = new uint256[](currQueueLength);

        for (uint256 i; i < currQueueLength; ) {
            currQueue[i] = uint256(_queue[_lastFinalizedQueueIndex + i]);

            unchecked {
                ++i;
            }
        }

        return keccak256(abi.encodePacked(currQueue));
    }

    function clearQueue(
        uint256 _handledQueueIndex,
        uint256 _lastFinalizedQueueIndex,
        bytes32[] storage _queue
    ) internal {
        for (uint256 i = _lastFinalizedQueueIndex; i < _handledQueueIndex; ) {
            delete _queue[i];

            unchecked {
                ++i;
            }
        }
    }
}

File 26 of 26 : console.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.22 <0.9.0;

library console {
    address constant CONSOLE_ADDRESS =
        0x000000000000000000636F6e736F6c652e6c6f67;

    function _sendLogPayloadImplementation(bytes memory payload) internal view {
        address consoleAddress = CONSOLE_ADDRESS;
        /// @solidity memory-safe-assembly
        assembly {
            pop(
                staticcall(
                    gas(),
                    consoleAddress,
                    add(payload, 32),
                    mload(payload),
                    0,
                    0
                )
            )
        }
    }

    function _castToPure(
      function(bytes memory) internal view fnIn
    ) internal pure returns (function(bytes memory) pure fnOut) {
        assembly {
            fnOut := fnIn
        }
    }

    function _sendLogPayload(bytes memory payload) internal pure {
        _castToPure(_sendLogPayloadImplementation)(payload);
    }

    function log() internal pure {
        _sendLogPayload(abi.encodeWithSignature("log()"));
    }
    function logInt(int256 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(int256)", p0));
    }

    function logUint(uint256 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256)", p0));
    }

    function logString(string memory p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string)", p0));
    }

    function logBool(bool p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool)", p0));
    }

    function logAddress(address p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address)", p0));
    }

    function logBytes(bytes memory p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes)", p0));
    }

    function logBytes1(bytes1 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes1)", p0));
    }

    function logBytes2(bytes2 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes2)", p0));
    }

    function logBytes3(bytes3 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes3)", p0));
    }

    function logBytes4(bytes4 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes4)", p0));
    }

    function logBytes5(bytes5 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes5)", p0));
    }

    function logBytes6(bytes6 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes6)", p0));
    }

    function logBytes7(bytes7 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes7)", p0));
    }

    function logBytes8(bytes8 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes8)", p0));
    }

    function logBytes9(bytes9 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes9)", p0));
    }

    function logBytes10(bytes10 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes10)", p0));
    }

    function logBytes11(bytes11 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes11)", p0));
    }

    function logBytes12(bytes12 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes12)", p0));
    }

    function logBytes13(bytes13 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes13)", p0));
    }

    function logBytes14(bytes14 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes14)", p0));
    }

    function logBytes15(bytes15 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes15)", p0));
    }

    function logBytes16(bytes16 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes16)", p0));
    }

    function logBytes17(bytes17 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes17)", p0));
    }

    function logBytes18(bytes18 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes18)", p0));
    }

    function logBytes19(bytes19 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes19)", p0));
    }

    function logBytes20(bytes20 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes20)", p0));
    }

    function logBytes21(bytes21 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes21)", p0));
    }

    function logBytes22(bytes22 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes22)", p0));
    }

    function logBytes23(bytes23 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes23)", p0));
    }

    function logBytes24(bytes24 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes24)", p0));
    }

    function logBytes25(bytes25 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes25)", p0));
    }

    function logBytes26(bytes26 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes26)", p0));
    }

    function logBytes27(bytes27 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes27)", p0));
    }

    function logBytes28(bytes28 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes28)", p0));
    }

    function logBytes29(bytes29 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes29)", p0));
    }

    function logBytes30(bytes30 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes30)", p0));
    }

    function logBytes31(bytes31 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes31)", p0));
    }

    function logBytes32(bytes32 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bytes32)", p0));
    }

    function log(uint256 p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256)", p0));
    }

    function log(string memory p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string)", p0));
    }

    function log(bool p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool)", p0));
    }

    function log(address p0) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address)", p0));
    }

    function log(uint256 p0, uint256 p1) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256)", p0, p1));
    }

    function log(uint256 p0, string memory p1) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,string)", p0, p1));
    }

    function log(uint256 p0, bool p1) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,bool)", p0, p1));
    }

    function log(uint256 p0, address p1) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,address)", p0, p1));
    }

    function log(string memory p0, uint256 p1) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,uint256)", p0, p1));
    }

    function log(string memory p0, string memory p1) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,string)", p0, p1));
    }

    function log(string memory p0, bool p1) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,bool)", p0, p1));
    }

    function log(string memory p0, address p1) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,address)", p0, p1));
    }

    function log(bool p0, uint256 p1) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,uint256)", p0, p1));
    }

    function log(bool p0, string memory p1) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,string)", p0, p1));
    }

    function log(bool p0, bool p1) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,bool)", p0, p1));
    }

    function log(bool p0, address p1) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,address)", p0, p1));
    }

    function log(address p0, uint256 p1) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,uint256)", p0, p1));
    }

    function log(address p0, string memory p1) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,string)", p0, p1));
    }

    function log(address p0, bool p1) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,bool)", p0, p1));
    }

    function log(address p0, address p1) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,address)", p0, p1));
    }

    function log(uint256 p0, uint256 p1, uint256 p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256)", p0, p1, p2));
    }

    function log(uint256 p0, uint256 p1, string memory p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string)", p0, p1, p2));
    }

    function log(uint256 p0, uint256 p1, bool p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool)", p0, p1, p2));
    }

    function log(uint256 p0, uint256 p1, address p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address)", p0, p1, p2));
    }

    function log(uint256 p0, string memory p1, uint256 p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256)", p0, p1, p2));
    }

    function log(uint256 p0, string memory p1, string memory p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,string,string)", p0, p1, p2));
    }

    function log(uint256 p0, string memory p1, bool p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool)", p0, p1, p2));
    }

    function log(uint256 p0, string memory p1, address p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,string,address)", p0, p1, p2));
    }

    function log(uint256 p0, bool p1, uint256 p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256)", p0, p1, p2));
    }

    function log(uint256 p0, bool p1, string memory p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string)", p0, p1, p2));
    }

    function log(uint256 p0, bool p1, bool p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool)", p0, p1, p2));
    }

    function log(uint256 p0, bool p1, address p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address)", p0, p1, p2));
    }

    function log(uint256 p0, address p1, uint256 p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256)", p0, p1, p2));
    }

    function log(uint256 p0, address p1, string memory p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,address,string)", p0, p1, p2));
    }

    function log(uint256 p0, address p1, bool p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool)", p0, p1, p2));
    }

    function log(uint256 p0, address p1, address p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,address,address)", p0, p1, p2));
    }

    function log(string memory p0, uint256 p1, uint256 p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256)", p0, p1, p2));
    }

    function log(string memory p0, uint256 p1, string memory p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,uint256,string)", p0, p1, p2));
    }

    function log(string memory p0, uint256 p1, bool p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool)", p0, p1, p2));
    }

    function log(string memory p0, uint256 p1, address p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,uint256,address)", p0, p1, p2));
    }

    function log(string memory p0, string memory p1, uint256 p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,string,uint256)", p0, p1, p2));
    }

    function log(string memory p0, string memory p1, string memory p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,string,string)", p0, p1, p2));
    }

    function log(string memory p0, string memory p1, bool p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,string,bool)", p0, p1, p2));
    }

    function log(string memory p0, string memory p1, address p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,string,address)", p0, p1, p2));
    }

    function log(string memory p0, bool p1, uint256 p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256)", p0, p1, p2));
    }

    function log(string memory p0, bool p1, string memory p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,bool,string)", p0, p1, p2));
    }

    function log(string memory p0, bool p1, bool p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool)", p0, p1, p2));
    }

    function log(string memory p0, bool p1, address p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,bool,address)", p0, p1, p2));
    }

    function log(string memory p0, address p1, uint256 p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,address,uint256)", p0, p1, p2));
    }

    function log(string memory p0, address p1, string memory p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,address,string)", p0, p1, p2));
    }

    function log(string memory p0, address p1, bool p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,address,bool)", p0, p1, p2));
    }

    function log(string memory p0, address p1, address p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,address,address)", p0, p1, p2));
    }

    function log(bool p0, uint256 p1, uint256 p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256)", p0, p1, p2));
    }

    function log(bool p0, uint256 p1, string memory p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string)", p0, p1, p2));
    }

    function log(bool p0, uint256 p1, bool p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool)", p0, p1, p2));
    }

    function log(bool p0, uint256 p1, address p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address)", p0, p1, p2));
    }

    function log(bool p0, string memory p1, uint256 p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256)", p0, p1, p2));
    }

    function log(bool p0, string memory p1, string memory p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,string,string)", p0, p1, p2));
    }

    function log(bool p0, string memory p1, bool p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool)", p0, p1, p2));
    }

    function log(bool p0, string memory p1, address p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,string,address)", p0, p1, p2));
    }

    function log(bool p0, bool p1, uint256 p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256)", p0, p1, p2));
    }

    function log(bool p0, bool p1, string memory p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string)", p0, p1, p2));
    }

    function log(bool p0, bool p1, bool p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool)", p0, p1, p2));
    }

    function log(bool p0, bool p1, address p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address)", p0, p1, p2));
    }

    function log(bool p0, address p1, uint256 p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256)", p0, p1, p2));
    }

    function log(bool p0, address p1, string memory p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,address,string)", p0, p1, p2));
    }

    function log(bool p0, address p1, bool p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool)", p0, p1, p2));
    }

    function log(bool p0, address p1, address p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,address,address)", p0, p1, p2));
    }

    function log(address p0, uint256 p1, uint256 p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256)", p0, p1, p2));
    }

    function log(address p0, uint256 p1, string memory p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,uint256,string)", p0, p1, p2));
    }

    function log(address p0, uint256 p1, bool p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool)", p0, p1, p2));
    }

    function log(address p0, uint256 p1, address p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,uint256,address)", p0, p1, p2));
    }

    function log(address p0, string memory p1, uint256 p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,string,uint256)", p0, p1, p2));
    }

    function log(address p0, string memory p1, string memory p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,string,string)", p0, p1, p2));
    }

    function log(address p0, string memory p1, bool p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,string,bool)", p0, p1, p2));
    }

    function log(address p0, string memory p1, address p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,string,address)", p0, p1, p2));
    }

    function log(address p0, bool p1, uint256 p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256)", p0, p1, p2));
    }

    function log(address p0, bool p1, string memory p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,bool,string)", p0, p1, p2));
    }

    function log(address p0, bool p1, bool p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool)", p0, p1, p2));
    }

    function log(address p0, bool p1, address p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,bool,address)", p0, p1, p2));
    }

    function log(address p0, address p1, uint256 p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,address,uint256)", p0, p1, p2));
    }

    function log(address p0, address p1, string memory p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,address,string)", p0, p1, p2));
    }

    function log(address p0, address p1, bool p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,address,bool)", p0, p1, p2));
    }

    function log(address p0, address p1, address p2) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,address,address)", p0, p1, p2));
    }

    function log(uint256 p0, uint256 p1, uint256 p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256,uint256)", p0, p1, p2, p3));
    }

    function log(uint256 p0, uint256 p1, uint256 p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256,string)", p0, p1, p2, p3));
    }

    function log(uint256 p0, uint256 p1, uint256 p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256,bool)", p0, p1, p2, p3));
    }

    function log(uint256 p0, uint256 p1, uint256 p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,uint256,address)", p0, p1, p2, p3));
    }

    function log(uint256 p0, uint256 p1, string memory p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string,uint256)", p0, p1, p2, p3));
    }

    function log(uint256 p0, uint256 p1, string memory p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string,string)", p0, p1, p2, p3));
    }

    function log(uint256 p0, uint256 p1, string memory p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string,bool)", p0, p1, p2, p3));
    }

    function log(uint256 p0, uint256 p1, string memory p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,string,address)", p0, p1, p2, p3));
    }

    function log(uint256 p0, uint256 p1, bool p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool,uint256)", p0, p1, p2, p3));
    }

    function log(uint256 p0, uint256 p1, bool p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool,string)", p0, p1, p2, p3));
    }

    function log(uint256 p0, uint256 p1, bool p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool,bool)", p0, p1, p2, p3));
    }

    function log(uint256 p0, uint256 p1, bool p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,bool,address)", p0, p1, p2, p3));
    }

    function log(uint256 p0, uint256 p1, address p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address,uint256)", p0, p1, p2, p3));
    }

    function log(uint256 p0, uint256 p1, address p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address,string)", p0, p1, p2, p3));
    }

    function log(uint256 p0, uint256 p1, address p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address,bool)", p0, p1, p2, p3));
    }

    function log(uint256 p0, uint256 p1, address p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,uint256,address,address)", p0, p1, p2, p3));
    }

    function log(uint256 p0, string memory p1, uint256 p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256,uint256)", p0, p1, p2, p3));
    }

    function log(uint256 p0, string memory p1, uint256 p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256,string)", p0, p1, p2, p3));
    }

    function log(uint256 p0, string memory p1, uint256 p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256,bool)", p0, p1, p2, p3));
    }

    function log(uint256 p0, string memory p1, uint256 p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,string,uint256,address)", p0, p1, p2, p3));
    }

    function log(uint256 p0, string memory p1, string memory p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,string,string,uint256)", p0, p1, p2, p3));
    }

    function log(uint256 p0, string memory p1, string memory p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,string,string,string)", p0, p1, p2, p3));
    }

    function log(uint256 p0, string memory p1, string memory p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,string,string,bool)", p0, p1, p2, p3));
    }

    function log(uint256 p0, string memory p1, string memory p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,string,string,address)", p0, p1, p2, p3));
    }

    function log(uint256 p0, string memory p1, bool p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool,uint256)", p0, p1, p2, p3));
    }

    function log(uint256 p0, string memory p1, bool p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool,string)", p0, p1, p2, p3));
    }

    function log(uint256 p0, string memory p1, bool p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool,bool)", p0, p1, p2, p3));
    }

    function log(uint256 p0, string memory p1, bool p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,string,bool,address)", p0, p1, p2, p3));
    }

    function log(uint256 p0, string memory p1, address p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,string,address,uint256)", p0, p1, p2, p3));
    }

    function log(uint256 p0, string memory p1, address p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,string,address,string)", p0, p1, p2, p3));
    }

    function log(uint256 p0, string memory p1, address p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,string,address,bool)", p0, p1, p2, p3));
    }

    function log(uint256 p0, string memory p1, address p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,string,address,address)", p0, p1, p2, p3));
    }

    function log(uint256 p0, bool p1, uint256 p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256,uint256)", p0, p1, p2, p3));
    }

    function log(uint256 p0, bool p1, uint256 p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256,string)", p0, p1, p2, p3));
    }

    function log(uint256 p0, bool p1, uint256 p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256,bool)", p0, p1, p2, p3));
    }

    function log(uint256 p0, bool p1, uint256 p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,uint256,address)", p0, p1, p2, p3));
    }

    function log(uint256 p0, bool p1, string memory p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string,uint256)", p0, p1, p2, p3));
    }

    function log(uint256 p0, bool p1, string memory p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string,string)", p0, p1, p2, p3));
    }

    function log(uint256 p0, bool p1, string memory p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string,bool)", p0, p1, p2, p3));
    }

    function log(uint256 p0, bool p1, string memory p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,string,address)", p0, p1, p2, p3));
    }

    function log(uint256 p0, bool p1, bool p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool,uint256)", p0, p1, p2, p3));
    }

    function log(uint256 p0, bool p1, bool p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool,string)", p0, p1, p2, p3));
    }

    function log(uint256 p0, bool p1, bool p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool,bool)", p0, p1, p2, p3));
    }

    function log(uint256 p0, bool p1, bool p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,bool,address)", p0, p1, p2, p3));
    }

    function log(uint256 p0, bool p1, address p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address,uint256)", p0, p1, p2, p3));
    }

    function log(uint256 p0, bool p1, address p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address,string)", p0, p1, p2, p3));
    }

    function log(uint256 p0, bool p1, address p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address,bool)", p0, p1, p2, p3));
    }

    function log(uint256 p0, bool p1, address p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,bool,address,address)", p0, p1, p2, p3));
    }

    function log(uint256 p0, address p1, uint256 p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256,uint256)", p0, p1, p2, p3));
    }

    function log(uint256 p0, address p1, uint256 p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256,string)", p0, p1, p2, p3));
    }

    function log(uint256 p0, address p1, uint256 p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256,bool)", p0, p1, p2, p3));
    }

    function log(uint256 p0, address p1, uint256 p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,address,uint256,address)", p0, p1, p2, p3));
    }

    function log(uint256 p0, address p1, string memory p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,address,string,uint256)", p0, p1, p2, p3));
    }

    function log(uint256 p0, address p1, string memory p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,address,string,string)", p0, p1, p2, p3));
    }

    function log(uint256 p0, address p1, string memory p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,address,string,bool)", p0, p1, p2, p3));
    }

    function log(uint256 p0, address p1, string memory p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,address,string,address)", p0, p1, p2, p3));
    }

    function log(uint256 p0, address p1, bool p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool,uint256)", p0, p1, p2, p3));
    }

    function log(uint256 p0, address p1, bool p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool,string)", p0, p1, p2, p3));
    }

    function log(uint256 p0, address p1, bool p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool,bool)", p0, p1, p2, p3));
    }

    function log(uint256 p0, address p1, bool p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,address,bool,address)", p0, p1, p2, p3));
    }

    function log(uint256 p0, address p1, address p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,address,address,uint256)", p0, p1, p2, p3));
    }

    function log(uint256 p0, address p1, address p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,address,address,string)", p0, p1, p2, p3));
    }

    function log(uint256 p0, address p1, address p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,address,address,bool)", p0, p1, p2, p3));
    }

    function log(uint256 p0, address p1, address p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(uint256,address,address,address)", p0, p1, p2, p3));
    }

    function log(string memory p0, uint256 p1, uint256 p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256,uint256)", p0, p1, p2, p3));
    }

    function log(string memory p0, uint256 p1, uint256 p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256,string)", p0, p1, p2, p3));
    }

    function log(string memory p0, uint256 p1, uint256 p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256,bool)", p0, p1, p2, p3));
    }

    function log(string memory p0, uint256 p1, uint256 p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,uint256,uint256,address)", p0, p1, p2, p3));
    }

    function log(string memory p0, uint256 p1, string memory p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,uint256,string,uint256)", p0, p1, p2, p3));
    }

    function log(string memory p0, uint256 p1, string memory p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,uint256,string,string)", p0, p1, p2, p3));
    }

    function log(string memory p0, uint256 p1, string memory p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,uint256,string,bool)", p0, p1, p2, p3));
    }

    function log(string memory p0, uint256 p1, string memory p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,uint256,string,address)", p0, p1, p2, p3));
    }

    function log(string memory p0, uint256 p1, bool p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool,uint256)", p0, p1, p2, p3));
    }

    function log(string memory p0, uint256 p1, bool p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool,string)", p0, p1, p2, p3));
    }

    function log(string memory p0, uint256 p1, bool p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool,bool)", p0, p1, p2, p3));
    }

    function log(string memory p0, uint256 p1, bool p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,uint256,bool,address)", p0, p1, p2, p3));
    }

    function log(string memory p0, uint256 p1, address p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,uint256,address,uint256)", p0, p1, p2, p3));
    }

    function log(string memory p0, uint256 p1, address p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,uint256,address,string)", p0, p1, p2, p3));
    }

    function log(string memory p0, uint256 p1, address p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,uint256,address,bool)", p0, p1, p2, p3));
    }

    function log(string memory p0, uint256 p1, address p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,uint256,address,address)", p0, p1, p2, p3));
    }

    function log(string memory p0, string memory p1, uint256 p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,string,uint256,uint256)", p0, p1, p2, p3));
    }

    function log(string memory p0, string memory p1, uint256 p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,string,uint256,string)", p0, p1, p2, p3));
    }

    function log(string memory p0, string memory p1, uint256 p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,string,uint256,bool)", p0, p1, p2, p3));
    }

    function log(string memory p0, string memory p1, uint256 p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,string,uint256,address)", p0, p1, p2, p3));
    }

    function log(string memory p0, string memory p1, string memory p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,string,string,uint256)", p0, p1, p2, p3));
    }

    function log(string memory p0, string memory p1, string memory p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,string,string,string)", p0, p1, p2, p3));
    }

    function log(string memory p0, string memory p1, string memory p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,string,string,bool)", p0, p1, p2, p3));
    }

    function log(string memory p0, string memory p1, string memory p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,string,string,address)", p0, p1, p2, p3));
    }

    function log(string memory p0, string memory p1, bool p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,uint256)", p0, p1, p2, p3));
    }

    function log(string memory p0, string memory p1, bool p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,string)", p0, p1, p2, p3));
    }

    function log(string memory p0, string memory p1, bool p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,bool)", p0, p1, p2, p3));
    }

    function log(string memory p0, string memory p1, bool p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,string,bool,address)", p0, p1, p2, p3));
    }

    function log(string memory p0, string memory p1, address p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,string,address,uint256)", p0, p1, p2, p3));
    }

    function log(string memory p0, string memory p1, address p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,string,address,string)", p0, p1, p2, p3));
    }

    function log(string memory p0, string memory p1, address p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,string,address,bool)", p0, p1, p2, p3));
    }

    function log(string memory p0, string memory p1, address p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,string,address,address)", p0, p1, p2, p3));
    }

    function log(string memory p0, bool p1, uint256 p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256,uint256)", p0, p1, p2, p3));
    }

    function log(string memory p0, bool p1, uint256 p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256,string)", p0, p1, p2, p3));
    }

    function log(string memory p0, bool p1, uint256 p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256,bool)", p0, p1, p2, p3));
    }

    function log(string memory p0, bool p1, uint256 p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,bool,uint256,address)", p0, p1, p2, p3));
    }

    function log(string memory p0, bool p1, string memory p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,uint256)", p0, p1, p2, p3));
    }

    function log(string memory p0, bool p1, string memory p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,string)", p0, p1, p2, p3));
    }

    function log(string memory p0, bool p1, string memory p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,bool)", p0, p1, p2, p3));
    }

    function log(string memory p0, bool p1, string memory p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,bool,string,address)", p0, p1, p2, p3));
    }

    function log(string memory p0, bool p1, bool p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,uint256)", p0, p1, p2, p3));
    }

    function log(string memory p0, bool p1, bool p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,string)", p0, p1, p2, p3));
    }

    function log(string memory p0, bool p1, bool p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,bool)", p0, p1, p2, p3));
    }

    function log(string memory p0, bool p1, bool p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,address)", p0, p1, p2, p3));
    }

    function log(string memory p0, bool p1, address p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,uint256)", p0, p1, p2, p3));
    }

    function log(string memory p0, bool p1, address p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,string)", p0, p1, p2, p3));
    }

    function log(string memory p0, bool p1, address p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,bool)", p0, p1, p2, p3));
    }

    function log(string memory p0, bool p1, address p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,bool,address,address)", p0, p1, p2, p3));
    }

    function log(string memory p0, address p1, uint256 p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,address,uint256,uint256)", p0, p1, p2, p3));
    }

    function log(string memory p0, address p1, uint256 p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,address,uint256,string)", p0, p1, p2, p3));
    }

    function log(string memory p0, address p1, uint256 p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,address,uint256,bool)", p0, p1, p2, p3));
    }

    function log(string memory p0, address p1, uint256 p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,address,uint256,address)", p0, p1, p2, p3));
    }

    function log(string memory p0, address p1, string memory p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,address,string,uint256)", p0, p1, p2, p3));
    }

    function log(string memory p0, address p1, string memory p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,address,string,string)", p0, p1, p2, p3));
    }

    function log(string memory p0, address p1, string memory p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,address,string,bool)", p0, p1, p2, p3));
    }

    function log(string memory p0, address p1, string memory p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,address,string,address)", p0, p1, p2, p3));
    }

    function log(string memory p0, address p1, bool p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,uint256)", p0, p1, p2, p3));
    }

    function log(string memory p0, address p1, bool p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,string)", p0, p1, p2, p3));
    }

    function log(string memory p0, address p1, bool p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,bool)", p0, p1, p2, p3));
    }

    function log(string memory p0, address p1, bool p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,address,bool,address)", p0, p1, p2, p3));
    }

    function log(string memory p0, address p1, address p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,address,address,uint256)", p0, p1, p2, p3));
    }

    function log(string memory p0, address p1, address p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,address,address,string)", p0, p1, p2, p3));
    }

    function log(string memory p0, address p1, address p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,address,address,bool)", p0, p1, p2, p3));
    }

    function log(string memory p0, address p1, address p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(string,address,address,address)", p0, p1, p2, p3));
    }

    function log(bool p0, uint256 p1, uint256 p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256,uint256)", p0, p1, p2, p3));
    }

    function log(bool p0, uint256 p1, uint256 p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256,string)", p0, p1, p2, p3));
    }

    function log(bool p0, uint256 p1, uint256 p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256,bool)", p0, p1, p2, p3));
    }

    function log(bool p0, uint256 p1, uint256 p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,uint256,address)", p0, p1, p2, p3));
    }

    function log(bool p0, uint256 p1, string memory p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string,uint256)", p0, p1, p2, p3));
    }

    function log(bool p0, uint256 p1, string memory p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string,string)", p0, p1, p2, p3));
    }

    function log(bool p0, uint256 p1, string memory p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string,bool)", p0, p1, p2, p3));
    }

    function log(bool p0, uint256 p1, string memory p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,string,address)", p0, p1, p2, p3));
    }

    function log(bool p0, uint256 p1, bool p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool,uint256)", p0, p1, p2, p3));
    }

    function log(bool p0, uint256 p1, bool p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool,string)", p0, p1, p2, p3));
    }

    function log(bool p0, uint256 p1, bool p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool,bool)", p0, p1, p2, p3));
    }

    function log(bool p0, uint256 p1, bool p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,bool,address)", p0, p1, p2, p3));
    }

    function log(bool p0, uint256 p1, address p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address,uint256)", p0, p1, p2, p3));
    }

    function log(bool p0, uint256 p1, address p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address,string)", p0, p1, p2, p3));
    }

    function log(bool p0, uint256 p1, address p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address,bool)", p0, p1, p2, p3));
    }

    function log(bool p0, uint256 p1, address p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,uint256,address,address)", p0, p1, p2, p3));
    }

    function log(bool p0, string memory p1, uint256 p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256,uint256)", p0, p1, p2, p3));
    }

    function log(bool p0, string memory p1, uint256 p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256,string)", p0, p1, p2, p3));
    }

    function log(bool p0, string memory p1, uint256 p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256,bool)", p0, p1, p2, p3));
    }

    function log(bool p0, string memory p1, uint256 p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,string,uint256,address)", p0, p1, p2, p3));
    }

    function log(bool p0, string memory p1, string memory p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,uint256)", p0, p1, p2, p3));
    }

    function log(bool p0, string memory p1, string memory p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,string)", p0, p1, p2, p3));
    }

    function log(bool p0, string memory p1, string memory p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,bool)", p0, p1, p2, p3));
    }

    function log(bool p0, string memory p1, string memory p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,string,string,address)", p0, p1, p2, p3));
    }

    function log(bool p0, string memory p1, bool p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,uint256)", p0, p1, p2, p3));
    }

    function log(bool p0, string memory p1, bool p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,string)", p0, p1, p2, p3));
    }

    function log(bool p0, string memory p1, bool p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,bool)", p0, p1, p2, p3));
    }

    function log(bool p0, string memory p1, bool p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,address)", p0, p1, p2, p3));
    }

    function log(bool p0, string memory p1, address p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,uint256)", p0, p1, p2, p3));
    }

    function log(bool p0, string memory p1, address p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,string)", p0, p1, p2, p3));
    }

    function log(bool p0, string memory p1, address p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,bool)", p0, p1, p2, p3));
    }

    function log(bool p0, string memory p1, address p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,string,address,address)", p0, p1, p2, p3));
    }

    function log(bool p0, bool p1, uint256 p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256,uint256)", p0, p1, p2, p3));
    }

    function log(bool p0, bool p1, uint256 p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256,string)", p0, p1, p2, p3));
    }

    function log(bool p0, bool p1, uint256 p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256,bool)", p0, p1, p2, p3));
    }

    function log(bool p0, bool p1, uint256 p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint256,address)", p0, p1, p2, p3));
    }

    function log(bool p0, bool p1, string memory p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,uint256)", p0, p1, p2, p3));
    }

    function log(bool p0, bool p1, string memory p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,string)", p0, p1, p2, p3));
    }

    function log(bool p0, bool p1, string memory p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,bool)", p0, p1, p2, p3));
    }

    function log(bool p0, bool p1, string memory p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,address)", p0, p1, p2, p3));
    }

    function log(bool p0, bool p1, bool p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,uint256)", p0, p1, p2, p3));
    }

    function log(bool p0, bool p1, bool p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,string)", p0, p1, p2, p3));
    }

    function log(bool p0, bool p1, bool p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,bool)", p0, p1, p2, p3));
    }

    function log(bool p0, bool p1, bool p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,address)", p0, p1, p2, p3));
    }

    function log(bool p0, bool p1, address p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,uint256)", p0, p1, p2, p3));
    }

    function log(bool p0, bool p1, address p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,string)", p0, p1, p2, p3));
    }

    function log(bool p0, bool p1, address p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,bool)", p0, p1, p2, p3));
    }

    function log(bool p0, bool p1, address p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,address)", p0, p1, p2, p3));
    }

    function log(bool p0, address p1, uint256 p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256,uint256)", p0, p1, p2, p3));
    }

    function log(bool p0, address p1, uint256 p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256,string)", p0, p1, p2, p3));
    }

    function log(bool p0, address p1, uint256 p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256,bool)", p0, p1, p2, p3));
    }

    function log(bool p0, address p1, uint256 p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,address,uint256,address)", p0, p1, p2, p3));
    }

    function log(bool p0, address p1, string memory p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,uint256)", p0, p1, p2, p3));
    }

    function log(bool p0, address p1, string memory p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,string)", p0, p1, p2, p3));
    }

    function log(bool p0, address p1, string memory p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,bool)", p0, p1, p2, p3));
    }

    function log(bool p0, address p1, string memory p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,address,string,address)", p0, p1, p2, p3));
    }

    function log(bool p0, address p1, bool p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,uint256)", p0, p1, p2, p3));
    }

    function log(bool p0, address p1, bool p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,string)", p0, p1, p2, p3));
    }

    function log(bool p0, address p1, bool p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,bool)", p0, p1, p2, p3));
    }

    function log(bool p0, address p1, bool p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,address)", p0, p1, p2, p3));
    }

    function log(bool p0, address p1, address p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,uint256)", p0, p1, p2, p3));
    }

    function log(bool p0, address p1, address p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,string)", p0, p1, p2, p3));
    }

    function log(bool p0, address p1, address p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,bool)", p0, p1, p2, p3));
    }

    function log(bool p0, address p1, address p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(bool,address,address,address)", p0, p1, p2, p3));
    }

    function log(address p0, uint256 p1, uint256 p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256,uint256)", p0, p1, p2, p3));
    }

    function log(address p0, uint256 p1, uint256 p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256,string)", p0, p1, p2, p3));
    }

    function log(address p0, uint256 p1, uint256 p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256,bool)", p0, p1, p2, p3));
    }

    function log(address p0, uint256 p1, uint256 p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,uint256,uint256,address)", p0, p1, p2, p3));
    }

    function log(address p0, uint256 p1, string memory p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,uint256,string,uint256)", p0, p1, p2, p3));
    }

    function log(address p0, uint256 p1, string memory p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,uint256,string,string)", p0, p1, p2, p3));
    }

    function log(address p0, uint256 p1, string memory p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,uint256,string,bool)", p0, p1, p2, p3));
    }

    function log(address p0, uint256 p1, string memory p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,uint256,string,address)", p0, p1, p2, p3));
    }

    function log(address p0, uint256 p1, bool p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool,uint256)", p0, p1, p2, p3));
    }

    function log(address p0, uint256 p1, bool p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool,string)", p0, p1, p2, p3));
    }

    function log(address p0, uint256 p1, bool p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool,bool)", p0, p1, p2, p3));
    }

    function log(address p0, uint256 p1, bool p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,uint256,bool,address)", p0, p1, p2, p3));
    }

    function log(address p0, uint256 p1, address p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,uint256,address,uint256)", p0, p1, p2, p3));
    }

    function log(address p0, uint256 p1, address p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,uint256,address,string)", p0, p1, p2, p3));
    }

    function log(address p0, uint256 p1, address p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,uint256,address,bool)", p0, p1, p2, p3));
    }

    function log(address p0, uint256 p1, address p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,uint256,address,address)", p0, p1, p2, p3));
    }

    function log(address p0, string memory p1, uint256 p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,string,uint256,uint256)", p0, p1, p2, p3));
    }

    function log(address p0, string memory p1, uint256 p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,string,uint256,string)", p0, p1, p2, p3));
    }

    function log(address p0, string memory p1, uint256 p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,string,uint256,bool)", p0, p1, p2, p3));
    }

    function log(address p0, string memory p1, uint256 p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,string,uint256,address)", p0, p1, p2, p3));
    }

    function log(address p0, string memory p1, string memory p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,string,string,uint256)", p0, p1, p2, p3));
    }

    function log(address p0, string memory p1, string memory p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,string,string,string)", p0, p1, p2, p3));
    }

    function log(address p0, string memory p1, string memory p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,string,string,bool)", p0, p1, p2, p3));
    }

    function log(address p0, string memory p1, string memory p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,string,string,address)", p0, p1, p2, p3));
    }

    function log(address p0, string memory p1, bool p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,uint256)", p0, p1, p2, p3));
    }

    function log(address p0, string memory p1, bool p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,string)", p0, p1, p2, p3));
    }

    function log(address p0, string memory p1, bool p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,bool)", p0, p1, p2, p3));
    }

    function log(address p0, string memory p1, bool p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,string,bool,address)", p0, p1, p2, p3));
    }

    function log(address p0, string memory p1, address p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,string,address,uint256)", p0, p1, p2, p3));
    }

    function log(address p0, string memory p1, address p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,string,address,string)", p0, p1, p2, p3));
    }

    function log(address p0, string memory p1, address p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,string,address,bool)", p0, p1, p2, p3));
    }

    function log(address p0, string memory p1, address p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,string,address,address)", p0, p1, p2, p3));
    }

    function log(address p0, bool p1, uint256 p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256,uint256)", p0, p1, p2, p3));
    }

    function log(address p0, bool p1, uint256 p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256,string)", p0, p1, p2, p3));
    }

    function log(address p0, bool p1, uint256 p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256,bool)", p0, p1, p2, p3));
    }

    function log(address p0, bool p1, uint256 p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,bool,uint256,address)", p0, p1, p2, p3));
    }

    function log(address p0, bool p1, string memory p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,uint256)", p0, p1, p2, p3));
    }

    function log(address p0, bool p1, string memory p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,string)", p0, p1, p2, p3));
    }

    function log(address p0, bool p1, string memory p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,bool)", p0, p1, p2, p3));
    }

    function log(address p0, bool p1, string memory p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,bool,string,address)", p0, p1, p2, p3));
    }

    function log(address p0, bool p1, bool p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,uint256)", p0, p1, p2, p3));
    }

    function log(address p0, bool p1, bool p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,string)", p0, p1, p2, p3));
    }

    function log(address p0, bool p1, bool p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,bool)", p0, p1, p2, p3));
    }

    function log(address p0, bool p1, bool p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,address)", p0, p1, p2, p3));
    }

    function log(address p0, bool p1, address p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,uint256)", p0, p1, p2, p3));
    }

    function log(address p0, bool p1, address p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,string)", p0, p1, p2, p3));
    }

    function log(address p0, bool p1, address p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,bool)", p0, p1, p2, p3));
    }

    function log(address p0, bool p1, address p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,bool,address,address)", p0, p1, p2, p3));
    }

    function log(address p0, address p1, uint256 p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,address,uint256,uint256)", p0, p1, p2, p3));
    }

    function log(address p0, address p1, uint256 p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,address,uint256,string)", p0, p1, p2, p3));
    }

    function log(address p0, address p1, uint256 p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,address,uint256,bool)", p0, p1, p2, p3));
    }

    function log(address p0, address p1, uint256 p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,address,uint256,address)", p0, p1, p2, p3));
    }

    function log(address p0, address p1, string memory p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,address,string,uint256)", p0, p1, p2, p3));
    }

    function log(address p0, address p1, string memory p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,address,string,string)", p0, p1, p2, p3));
    }

    function log(address p0, address p1, string memory p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,address,string,bool)", p0, p1, p2, p3));
    }

    function log(address p0, address p1, string memory p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,address,string,address)", p0, p1, p2, p3));
    }

    function log(address p0, address p1, bool p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,uint256)", p0, p1, p2, p3));
    }

    function log(address p0, address p1, bool p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,string)", p0, p1, p2, p3));
    }

    function log(address p0, address p1, bool p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,bool)", p0, p1, p2, p3));
    }

    function log(address p0, address p1, bool p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,address,bool,address)", p0, p1, p2, p3));
    }

    function log(address p0, address p1, address p2, uint256 p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,address,address,uint256)", p0, p1, p2, p3));
    }

    function log(address p0, address p1, address p2, string memory p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,address,address,string)", p0, p1, p2, p3));
    }

    function log(address p0, address p1, address p2, bool p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,address,address,bool)", p0, p1, p2, p3));
    }

    function log(address p0, address p1, address p2, address p3) internal pure {
        _sendLogPayload(abi.encodeWithSignature("log(address,address,address,address)", p0, p1, p2, p3));
    }

}

Settings
{
  "evmVersion": "paris",
  "viaIR": true,
  "optimizer": {
    "enabled": true,
    "runs": 20000
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"InvalidQueueId","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"subscriptionSettlementnumber","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"CancelSubscriptionRequest","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"queueIndex","type":"uint256"}],"name":"ExodusModeEntered","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes32","name":"newSettlementsRoot","type":"bytes32"},{"indexed":false,"internalType":"bytes32","name":"newNFTCollectionsRoot","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"numeBlockNumber","type":"uint256"}],"name":"SettlementNotarized","type":"event"},{"inputs":[{"components":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"subscriptionSettlementNumber","type":"uint256"},{"internalType":"uint256","name":"accountsIndex","type":"uint256"},{"internalType":"bytes32","name":"balancesRoot","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"uint256[]","name":"listerNonce","type":"uint256[]"},{"internalType":"bytes32[]","name":"accountsProof","type":"bytes32[]"}],"internalType":"struct SettlementsFacet.CancelSubscriptionRequestArgs","name":"_args","type":"tuple"}],"name":"cancelSubscriptionRequest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_queueIndex","type":"uint256"}],"name":"challengeUserCancelSubscription","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_queueIndex","type":"uint256"}],"name":"getCancelSubscriptioQueueElement","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_queueIndex","type":"uint256"}],"name":"getCancelSubscriptionRequestTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getCancelSubscriptionStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentCancelSubscriptionsQueueIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLastFinalisedCancelSubscriptionsQueueIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNFTCollectionsRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNftCollectionsRootQueue","outputs":[{"internalType":"bytes32[]","name":"","type":"bytes32[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNumeBlockNumber","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_upperLimit","type":"uint256"},{"internalType":"uint256","name":"_lowerLimit","type":"uint256"}],"name":"getQueueHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSettlementsFacetName","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"getSettlementsRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSettlementsRootQueue","outputs":[{"internalType":"bytes32[]","name":"","type":"bytes32[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"bytes32","name":"newSettlementsRoot","type":"bytes32"},{"internalType":"bytes32","name":"newNFTCollectionsRoot","type":"bytes32"},{"internalType":"bytes","name":"settlementSignature","type":"bytes"},{"internalType":"string","name":"ipfsCid","type":"string"},{"internalType":"uint256","name":"handledDepositsQueueIndex","type":"uint256"},{"internalType":"uint256","name":"handledWithdrawalsQueueIndex","type":"uint256"},{"internalType":"uint256","name":"handledNFTDepositsQueueIndex","type":"uint256"},{"internalType":"uint256","name":"handledNFTWithdrawlsQueueIndex","type":"uint256"},{"internalType":"address[]","name":"contractWithdrawalAddresses","type":"address[]"},{"internalType":"address[]","name":"contractWithdrawalTokenAddresses","type":"address[]"},{"internalType":"uint256[]","name":"contractWithdrawalAmounts","type":"uint256[]"},{"internalType":"address[]","name":"contractNftWithdrawalAddresses","type":"address[]"},{"internalType":"address[]","name":"contractNftWithdrawalTokenAddresses","type":"address[]"},{"internalType":"uint256[]","name":"contractNftWithdrawalTokenIds","type":"uint256[]"},{"internalType":"bool[]","name":"contractMintedNFTs","type":"bool[]"},{"internalType":"bool[]","name":"isContractNftWithdrawalValid","type":"bool[]"},{"internalType":"address[]","name":"backendWithdrawalAddresses","type":"address[]"},{"internalType":"address[]","name":"backendWithdrawalTokenAddresses","type":"address[]"},{"internalType":"uint256[]","name":"backendWithdrawalAmountsOrTokenIds","type":"uint256[]"},{"internalType":"uint8[]","name":"withdrawalType","type":"uint8[]"},{"internalType":"bool[]","name":"mintedNFTs","type":"bool[]"},{"internalType":"uint256[]","name":"invalidDepositsIndex","type":"uint256[]"},{"internalType":"address[]","name":"invalidDepositAddresses","type":"address[]"},{"internalType":"address[]","name":"invalidDepositTokenAddresses","type":"address[]"},{"internalType":"uint256[]","name":"invalidDepositAmounts","type":"uint256[]"},{"internalType":"uint256[]","name":"invalidNFTDepositsIndex","type":"uint256[]"},{"internalType":"address[]","name":"invalidNFTDepositAddresses","type":"address[]"},{"internalType":"address[]","name":"invalidNFTDepositContractAddresses","type":"address[]"},{"internalType":"uint256[]","name":"invalidNFTDepositTokenIds","type":"uint256[]"},{"internalType":"uint256","name":"handledCancelSubscriptionsQueueIndex","type":"uint256"},{"internalType":"address[]","name":"cancelSubscriptionRequests","type":"address[]"},{"internalType":"uint256[]","name":"cancelSubscriptionSettlementNumbers","type":"uint256[]"}],"internalType":"struct SettlementsFacet.NotarizeSettlementArgs","name":"_args","type":"tuple"}],"name":"notarizeSettlement","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080806040523461001b5760016000556141b190816100218239f35b600080fdfe608080604052600436101561001357600080fd5b60003560e01c9081630b0cfae9146138f757508063266550971461385e5780632fd5d1df146135de57806334d46af31461356e5780633a65472e1461342e5780635f9ef0b6146133f15780636c94d58b146133a65780637e00fd731461331c578063800452bb146132f0578063806b7bf0146132475780638743eef91461320a5780639f6d9cca146131cd578063a76ea47f14612a69578063d589ea5114612a2c5763f788255a146100c457600080fd5b34612a2757600319602081360112612a275767ffffffffffffffff60043511612a27576104009060043536030112612a27576100fe613e9f565b610106613ef2565b73ffffffffffffffffffffffffffffffffffffffff7f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e3b541633036129a3576101917f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4c547f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4b5490613b6b565b421061291f576101c17f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e3954613b78565b7f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e39556102c4600435016101f981600435600401613b87565b905061266e575b506103446004350161021781600435600401613b87565b90506122fb575b507f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4d546102eb60c061025a606460043501600435600401613dc9565b7f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e39949194547f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4e5490826040519788956020870152600435600401356040870152606086013760608385010152608082840101526024600435013560a0828401015281010360a08101845201826139dc565b80608460043501356121b4575b5060a46004350135151580612195575b6119d6575b60c46004350135611891575b60e46004350135151580611872575b6110e0575b61034261020460043501600435600401613b87565b9050610d05575b6103a46004350135151580610ce6575b610753575b61047b906000806040516103718161396c565b601181527f736574746c656d656e744d65737361676500000000000000000000000000000060208201526040518280826103dd60208201957f41304fac000000000000000000000000000000000000000000000000000000008752602060248401526044830190614156565b03926103f1601f19948581018352826139dc565b516a636f6e736f6c652e6c6f6794855afa5060405161045260208201927f0be77f560000000000000000000000000000000000000000000000000000000084526020602484015282610446604482018a614156565b039081018352826139dc565b51915afa5061047561046e604460043501600435600401613dc9565b3691613e58565b90613f7b565b73ffffffffffffffffffffffffffffffffffffffff807f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e3a54169116036106cf57600435600401357f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4d55602460043501357f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4e557f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e5180546801000000000000000091828210156106a057600182018091558110156106715760043560040135907f9777c3e86945aae8b0854634596356e4978cddb34e223ace172776bdb2f79a0601557f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e528054918210156106a057600182018082558210156106715760005260246004350135907fbc559645f0e6d14249e98a79fc45355fd59c6762b1f90ebce549f7a3d50caed70155427f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4c557f667c714fec5c56aa721f1cd3034ed9c8dd4aca62151e586c418fee66395d22ef60607f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e3954604051906004356004013582526024600435013560208301526040820152a16001600055005b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603060248201527f4e6f746172697a65536574746c656d656e743a20496e76616c6964207365747460448201527f6c656d656e74207369676e6174757265000000000000000000000000000000006064820152fd5b7f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e485490610787826103a46004350135613c0c565b9161079d6103c460043501600435600401613b87565b90508303610c62576107ba6103c460043501600435600401613b87565b90506107d16103e460043501600435600401613b87565b91905003610bde576107ea816103a46004350135613c0c565b6107f381613eda565b9161080160405193846139dc565b818352601f1961081083613eda565b0136602085013760005b828110610bb657505050604051602081019182602082519192019060005b818110610ba057505050918161085c60409361088e9503601f1981018352826139dc565b5190209281519381610878869351809260208087019101613e1a565b82019060208201520360208101845201826139dc565b9060005b81811061091c5750507f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e48545b6103a4600435013581106108fc57506004356103a401357f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e485561035e565b806109086001926139ff565b60001982549160031b1b19169055016108be565b61094361093e826109386103c460043501600435600401613b87565b90613bdb565b613beb565b6109a46109b2610962846109386103e460043501600435600401613b87565b3560405192839160208301958690917fffffffffffffffffffffffffffffffffffffffff00000000000000000000000060349360601b16825260148201520190565b03601f1981018352826139dc565b5190206109e86109e3837f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4854613b6b565b6139ff565b90549060031b1c03610b1c57610a58610a1361093e836109386103c460043501600435600401613b87565b73ffffffffffffffffffffffffffffffffffffffff166000527f66776598078a713838a3cfb2f3e48fef9607fa222f322b4942104ad9a0e9eedc602052604060002090565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008154169055610aa9817f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4854613b6b565b90600182018211610aed5760018092016000527f66776598078a713838a3cfb2f3e48fef9607fa222f322b4942104ad9a0e9eedd6020526000604081205501610892565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4e6f746172697a65536574746c656d656e743a2043616e63656c20737562736360448201527f72697074696f6e207175657565206974656d00000000000000000000000000006064820152fd5b8251845260209384019390920191600101610838565b80610bc66109e360019385613b6b565b90549060031b1c610bd78287614142565b520161081a565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603f60248201527f4e6f746172697a65536574746c656d656e743a20496e76616c69642063616e6360448201527f656c20737562736372697074696f6e207265717565737473206c656e677468006064820152fd5b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603f60248201527f536574746c656d656e747346616365743a20496e76616c69642063616e63656c60448201527f20737562736372697074696f6e7320616464726573736573206c656e677468006064820152fd5b50610cfc6103c460043501600435600401613b87565b90501515610359565b610d1a61020460043501600435600401613b87565b606091506000905b808210610d5f5750506040610d5a91815161085c60208281610d4d8183019687815193849201613e1a565b81010380845201826139dc565b610349565b9091600190610e9a606a610d8a610d858761093861026460043501600435600401613b87565b613e4a565b92610da761093e8861093861020460043501600435600401613b87565b93610dc461093e8961093861022460043501600435600401613b87565b90610dde8961093861024460043501600435600401613b87565b35610e00610dfb8b61093861028460043501600435600401613b87565b613e3d565b906040519785610e1a8a975180926020808b019101613e1a565b8601947fff0000000000000000000000000000000000000000000000000000000000000060f895861b1660208701527fffffffffffffffffffffffffffffffffffffffff000000000000000000000000809260601b16602187015260601b16603585015260498401521515901b606982015203604a8101845201826139dc565b9281610eb161026460043501600435600401613b87565b90610ec3610d858560ff948594613bdb565b1615611013575b610ee6610d858461093861026460043501600435600401613b87565b1614610ef4575b0190610d22565b61100e610f1361093e8361093861020460043501600435600401613b87565b610f2f61093e8461093861022460043501600435600401613b87565b610f488461093861024460043501600435600401613b87565b3573ffffffffffffffffffffffffffffffffffffffff610f7a610dfb8761093861028460043501600435600401613b87565b92816040519516602086015216604084015260608301521515608082015260808152610fa5816139c0565b611009610fc461093e8561093861020460043501600435600401613b87565b73ffffffffffffffffffffffffffffffffffffffff166000527f0be433957ea43577ff4a0180f5a1ad92090f4287ac40af9aef297869d75cb678602052604060002090565b613c19565b610eed565b61102c8361093861024460043501600435600401613b87565b3561109161104c61093e8661093861020460043501600435600401613b87565b73ffffffffffffffffffffffffffffffffffffffff166000527f0be433957ea43577ff4a0180f5a1ad92090f4287ac40af9aef297869d75cb677602052604060002090565b73ffffffffffffffffffffffffffffffffffffffff6110c261093e8761093861022460043501600435600401613b87565b166000526020526110d96040600020918254613b6b565b9055610eca565b6111117f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e475460e46004350135613c0c565b61112661016460043501600435600401613b87565b905081036117c8576060906000905b80821061118e575050604061116091815161085c60208281610d4d8183019687815193849201613e1a565b60e460043501357f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e475561032d565b90916111ac61093e8461093861016460043501600435600401613b87565b6111c861093e8561093861018460043501600435600401613b87565b6111e1856109386101a460043501600435600401613b87565b356111fe610dfb876109386101c460043501600435600401613b87565b907fffffffffffffffffffffffffffffffffffffffff0000000000000000000000006040519381602086019660601b16865260601b1660348401526048830152151560f81b60688201526049815261125581613988565b51902061128b611286857f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4754613b6b565b613afe565b90549060031b1c03611744576113a0606a7fffffffffffffffffffffffffffffffffffffffff000000000000000000000000926112da61093e8761093861016460043501600435600401613b87565b6112f661093e8861093861018460043501600435600401613b87565b61130f886109386101a460043501600435600401613b87565b3561132c610dfb8a6109386101c460043501600435600401613b87565b908761134a610dfb8c6109386101e460043501600435600401613b87565b9360405199876113648c995180926020808d019101613e1a565b88019660601b16602087015260601b1660348501526048840152151560f81b6068830152151560f81b606982015203604a8101845201826139dc565b916113bd61093e8261093861018460043501600435600401613b87565b6113d6826109386101a460043501600435600401613b87565b356113f3610dfb846109386101c460043501600435600401613b87565b604051917fffffffffffffffffffffffffffffffffffffffff000000000000000000000000602084019460601b1684526034830152151560f81b60548201526035815261143f816139a4565b51902073ffffffffffffffffffffffffffffffffffffffff61147361093e8461093861016460043501600435600401613b87565b166000527f66776598078a713838a3cfb2f3e48fef9607fa222f322b4942104ad9a0e9eed960205260406000209060005260205260406000207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0081541690556114fd817f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4754613b6b565b600181018111610aed576001016000527f66776598078a713838a3cfb2f3e48fef9607fa222f322b4942104ad9a0e9eedb60205260006040812055611554610dfb826109386101e460043501600435600401613b87565b15611700577f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e49546115a6827f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4754613b6b565b600181018111610aed576001016000527f0be433957ea43577ff4a0180f5a1ad92090f4287ac40af9aef297869d75cb66f60205261163e73ffffffffffffffffffffffffffffffffffffffff6040600020541673ffffffffffffffffffffffffffffffffffffffff166000527f0be433957ea43577ff4a0180f5a1ad92090f4287ac40af9aef297869d75cb677602052604060002090565b7311111111111111111111111111111111111111116000526020526116696040600020918254613b6b565b9055611696817f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4754613b6b565b90600182018211610aed5760018092016000527f0be433957ea43577ff4a0180f5a1ad92090f4287ac40af9aef297869d75cb66f60205260406000207fffffffffffffffffffffffff000000000000000000000000000000000000000081541690555b0190611135565b806117316112866001937f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4754613b6b565b60001982549160031b1b191690556116f9565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603560248201527f4e6f746172697a65536574746c656d656e743a20496e76616c6964206e66742060448201527f7769746864726177616c207175657565206974656d00000000000000000000006064820152fd5b60a46040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604260248201527f536574746c656d656e747346616365743a20496e76616c6964206e667420636f60448201527f6e7472616374207769746864726177616c20616464726573736573206c656e6760648201527f74680000000000000000000000000000000000000000000000000000000000006084820152fd5b5061188861016460043501600435600401613b87565b90501515610328565b7f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4554906118c48260c46004350135613c0c565b6118cd81613eda565b906118db60405192836139dc565b808252601f196118ea82613eda565b0136602084013760005b8181106119a9575050604051602081019182602082519192019060005b81811061199357505050918161085c6040936119359503601f1981018352826139dc565b905b60c460043501358110611973575060c460043501357f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4555610319565b8061197f600192613aa9565b60001982549160031b1b1916905501611937565b8251845260209384019390920191600101611911565b806119be6119b960019388613b6b565b613aa9565b90549060031b1c6119cf8286614142565b52016118f4565b611a077f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e465460a46004350135613c0c565b611a1c61010460043501600435600401613b87565b90508103612111576060906000905b808210611b315750506040611a5691815161085c60208281610d4d8183019687815193849201613e1a565b7f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e46545b60a460043501358110611ab5575060a460043501357f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e465561030d565b7f52e82c3609e3861a8da5bcba0060b90d5cdcd4699c971f20d56eabf53b066c4f54811015610671576001907f52e82c3609e3861a8da5bcba0060b90d5cdcd4699c971f20d56eabf53b066c4f6000526000817fcd5a8ab0f2b0446d5c0c4fa08496869a1640d456c36d356959b3290ef67a6dfc015501611a79565b9091611b4f61093e8461093861010460043501600435600401613b87565b611b6b61093e8561093861012460043501600435600401613b87565b7fffffffffffffffffffffffffffffffffffffffff0000000000000000000000006040519181602084019460601b16845260601b16603482015260288152611bb2816139a4565b519020611be0847f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4654613b6b565b7f52e82c3609e3861a8da5bcba0060b90d5cdcd4699c971f20d56eabf53b066c4f54811015610671577f52e82c3609e3861a8da5bcba0060b90d5cdcd4699c971f20d56eabf53b066c4f6000527fcd5a8ab0f2b0446d5c0c4fa08496869a1640d456c36d356959b3290ef67a6dfc01540361208d57611d1460687fffffffffffffffffffffffffffffffffffffffff00000000000000000000000092611c9861093e8761093861010460043501600435600401613b87565b90611cb561093e8861093861012460043501600435600401613b87565b9185611cd08961093861014460043501600435600401613b87565b35936040519784611ceb8a965180926020808a019101613e1a565b85019360601b16602084015260601b1660348201526048928382015203908101845201826139dc565b9173ffffffffffffffffffffffffffffffffffffffff611d4661093e8361093861010460043501600435600401613b87565b166000527f66776598078a713838a3cfb2f3e48fef9607fa222f322b4942104ad9a0e9eed8602052604060002073ffffffffffffffffffffffffffffffffffffffff611da461093e8461093861012460043501600435600401613b87565b1660005260205260406000207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008154169055611e01817f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4654613b6b565b600181018111610aed576001016000527f66776598078a713838a3cfb2f3e48fef9607fa222f322b4942104ad9a0e9eeda60205260006040812055611e558161093861014460043501600435600401613b87565b35611e64575b60010190611a2b565b7f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4954611eb1827f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4654613b6b565b600181018111610aed576001016000527f0be433957ea43577ff4a0180f5a1ad92090f4287ac40af9aef297869d75cb66e602052611f4973ffffffffffffffffffffffffffffffffffffffff6040600020541673ffffffffffffffffffffffffffffffffffffffff166000527f0be433957ea43577ff4a0180f5a1ad92090f4287ac40af9aef297869d75cb677602052604060002090565b731111111111111111111111111111111111111111600052602052611f746040600020918254613b6b565b9055611fa1817f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4654613b6b565b90600182018211610aed5760018092016000527f0be433957ea43577ff4a0180f5a1ad92090f4287ac40af9aef297869d75cb66e60205260406000207fffffffffffffffffffffffff0000000000000000000000000000000000000000815416905561201c8161093861014460043501600435600401613b87565b3561203c61104c61093e8461093861010460043501600435600401613b87565b73ffffffffffffffffffffffffffffffffffffffff61206d61093e8561093861012460043501600435600401613b87565b166000526020526120846040600020918254613b6b565b90559050611e5b565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4e6f746172697a65536574746c656d656e743a20496e76616c6964207769746860448201527f64726177616c207175657565206974656d0000000000000000000000000000006064820152fd5b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603e60248201527f536574746c656d656e747346616365743a20496e76616c696420636f6e74726160448201527f6374207769746864726177616c20616464726573736573206c656e67746800006064820152fd5b506121ab61010460043501600435600401613b87565b90501515610308565b7f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e445491506121e88260043560840135613c0c565b6121f181613eda565b906121ff60405192836139dc565b808252601f1961220e82613eda565b0136602084013760005b8181106122ce575050604051602081019182602082519192019060005b8181106122b857505050918161085c6040936122599503601f1981018352826139dc565b905b6084600435013581106122985750608460043501357f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4455386102f8565b806122a4600192613a54565b60001982549160031b1b191690550161225b565b8251845260209384019390920191600101612235565b806122e36122de60019388613b6b565b613a54565b90549060031b1c6122f48286614142565b5201612218565b600435610364810191906103848101906103240160005b61232184600435600401613b87565b90508110156126635761234061093e8261093887600435600401613b87565b61235661093e8361093889600435600401613b87565b6123be61236c8461093888600435600401613b87565b35916109a46040519384926020840196879190604893917fffffffffffffffffffffffffffffffffffffffff000000000000000000000000809260601b16845260601b16601483015260288201520190565b519020906123d58161093885600435600401613b87565b3560001990818101908111610aed576123ed90613aa9565b939054600394851b1c036125df5761241161093e8361093889600435600401613b87565b9261242861093e846109388b600435600401613b87565b73ffffffffffffffffffffffffffffffffffffffff612450856109388a600435600401613b87565b3591816040519716602088015216604086015260608501526080600081860152845261247b846139c0565b6125a76124dc61249761093e866109388c600435600401613b87565b73ffffffffffffffffffffffffffffffffffffffff166000527f0be433957ea43577ff4a0180f5a1ad92090f4287ac40af9aef297869d75cb676602052604060002090565b94600195867fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0082541617905561251b8561093889600435600401613b87565b356000527f0be433957ea43577ff4a0180f5a1ad92090f4287ac40af9aef297869d75cb66d60205261100973ffffffffffffffffffffffffffffffffffffffff6040600020541673ffffffffffffffffffffffffffffffffffffffff166000527f0be433957ea43577ff4a0180f5a1ad92090f4287ac40af9aef297869d75cb678602052604060002090565b6125ba8361093887600435600401613b87565b35828101908111610aed576125ce90613aa9565b81939154921b1b1916905501612312565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4e6f746172697a65536574746c656d656e743a20496e76616c6964204e46542060448201527f6465706f736974207175657565206861736800000000000000000000000000006064820152fd5b50505050503861021e565b600435610304810191906102a48101906102e40160005b61269484600435600401613b87565b9050811015612914576126b361093e8261093887600435600401613b87565b6126c961093e8361093886600435600401613b87565b6126df61236c846109388a600435600401613b87565b519020906126f68161093886600435600401613b87565b3560001990818101908111610aed5761270e90613a54565b939054600394851b1c036128905761273561249761093e846109388a600435600401613b87565b92600193847fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008254161790556127748361093888600435600401613b87565b35828101908111610aed5761278890613a54565b81939154921b1b191690556127a68161093888600435600401613b87565b356127ba8261093887600435600401613b87565b356000527f0be433957ea43577ff4a0180f5a1ad92090f4287ac40af9aef297869d75cb66c60205261284673ffffffffffffffffffffffffffffffffffffffff6040600020541673ffffffffffffffffffffffffffffffffffffffff166000527f0be433957ea43577ff4a0180f5a1ad92090f4287ac40af9aef297869d75cb677602052604060002090565b73ffffffffffffffffffffffffffffffffffffffff61287161093e8561093889600435600401613b87565b166000526020526128886040600020918254613b6b565b905501612685565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f4e6f746172697a65536574746c656d656e743a20496e76616c6964206465706f60448201527f73697420717565756520686173680000000000000000000000000000000000006064820152fd5b505050505038610200565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603060248201527f536574746c656d656e747346616365743a20536574746c656d656e742074696d60448201527f656f7574206e6f742072656163686564000000000000000000000000000000006064820152fd5b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4e756d653a204f6e6c79204e756d65206f776e65722063616e2063616c6c207460448201527f6869732066756e6374696f6e00000000000000000000000000000000000000006064820152fd5b600080fd5b34612a27576000600319360112612a275760207f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4e54604051908152f35b34612a27576020600319908082360112612a27576004359067ffffffffffffffff90818311612a275761010083600401948436030112612a2757612aab613e9f565b612ab3613ef2565b612abc84613beb565b937f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e3994612b5b8654604051907fffffffffffffffffffffffffffffffffffffffff000000000000000000000000809460601b168683015260348201527f63616e63656c537562736372697074696f6e52657175657374000000000000006054820152604d8152612b4b81613988565b61047561046e60a4890186613dc9565b9473ffffffffffffffffffffffffffffffffffffffff958680612b7d86613beb565b169116036131495760009160c48201612b968186613b87565b905015613140575b612ba88186613b87565b90506130e0575b50612bb984613beb565b90604483013596604051918783019360601b1683526084840135603483015260249485850135605484015260748301528760948301526094825260c0820190828210908211176130b2576040525190207f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4d5491612c3960e4820186613b87565b9190612c4483613eda565b92612c5260405194856139dc565b8084528884019060051b820191368311612a27578990959495915b8383106130a25750505050606401359091805160005b818110612fe9575050505003612f66578315612ee35760ff612ca7610a1384613beb565b5416612e6057612cb9610a1383613beb565b60017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00825416179055612ceb82613beb565b604051612d30816109a488888301958690917fffffffffffffffffffffffffffffffffffffffff00000000000000000000000060349360601b16825260148201520190565b519020907f52e82c3609e3861a8da5bcba0060b90d5cdcd4699c971f20d56eabf53b066c5180549168010000000000000000831015612e33576001830182557f8fa39d3688de72b964db7b3afb59cfc8207bb11c714b5590b5a7ce56cc47585a60608a8a8a8a612e198b8b612da48c6139ff565b600019829392549160031b92831b921b19161790557f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e43612de48154613b78565b8091556000527f66776598078a713838a3cfb2f3e48fef9607fa222f322b4942104ad9a0e9eedd835242604060002055613beb565b935492604051941684528301526040820152a16001600055005b7f4e487b710000000000000000000000000000000000000000000000000000000060005260416004526000fd5b826037608492604051927f08c379a000000000000000000000000000000000000000000000000000000000845260048401528201527f536574746c656d656e747346616365743a2043616e63656c207375627363726960448201527f7074696f6e20616c7265616479207265717565737465640000000000000000006064820152fd5b826026608492604051927f08c379a000000000000000000000000000000000000000000000000000000000845260048401528201527f536574746c656d656e747346616365743a20496e76616c696420626c6f636b2060448201527f6e756d62657200000000000000000000000000000000000000000000000000006064820152fd5b826028608492604051927f08c379a000000000000000000000000000000000000000000000000000000000845260048401528201527f536574746c656d656e747346616365743a20496e76616c6964206163636f756e60448201527f74732070726f6f660000000000000000000000000000000000000000000000006064820152fd5b9091929360019081861615600014613034576130058386614142565b51604051908b8201928352604082015260408152613022816139a4565b51902094811c915b0191909291612c83565b61303e8386614142565b5190604051908b820192835260408201526040815261305c816139a4565b51902094600019810190811161307457811c9161302a565b877f4e487b710000000000000000000000000000000000000000000000000000000060005260116004526000fd5b82358152918101918a9101612c6d565b847f4e487b710000000000000000000000000000000000000000000000000000000060005260416004526000fd5b6130ec91935084613b87565b60405190868201927f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8211612a27578288916131369360051b8091873781010380845201826139dc565b5190209188612baf565b60009350612b9e565b608484604051907f08c379a00000000000000000000000000000000000000000000000000000000082526004820152602860248201527f536574746c656d656e747346616365743a20496e76616c69642075736572207360448201527f69676e61747572650000000000000000000000000000000000000000000000006064820152fd5b34612a27576000600319360112612a275760207f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e3954604051908152f35b34612a27576000600319360112612a275760207f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4354604051908152f35b34612a27576000600319360112612a2757604051807f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e519182548082526020809201936000527f9777c3e86945aae8b0854634596356e4978cddb34e223ace172776bdb2f79a06916000905b8282106132d9576132d5856132c9818903826139dc565b60405191829182613931565b0390f35b8354865294850194600193840193909101906132b2565b34612a27576020600319360112612a2757602061330e6004356139ff565b90546040519160031b1c8152f35b34612a27576020600319360112612a275760043573ffffffffffffffffffffffffffffffffffffffff81168103612a275760ff61339a60209273ffffffffffffffffffffffffffffffffffffffff166000527f66776598078a713838a3cfb2f3e48fef9607fa222f322b4942104ad9a0e9eedc602052604060002090565b54166040519015158152f35b34612a27576020600319360112612a27576004356000527f66776598078a713838a3cfb2f3e48fef9607fa222f322b4942104ad9a0e9eedd6020526020604060002054604051908152f35b34612a27576000600319360112612a275760207f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4854604051908152f35b34612a27576060600319360112612a27576044356004356005810361353d57507f52e82c3609e3861a8da5bcba0060b90d5cdcd4699c971f20d56eabf53b066c519061347c81602435613c0c565b9061348682613eda565b9161349460405193846139dc565b8083526134a081613eda565b9060209485850193601f1980940136863760005b83811061350f575050505090604051918285810180955190939060005b888282106134f857505050506134ed92039081018352826139dc565b519020604051908152f35b8351875295860195879450909201916001016134d1565b8061352561351f60019385613b6b565b85613b53565b90549060031b1c613536828a614142565b52016134b4565b602490604051907f7892d0a30000000000000000000000000000000000000000000000000000000082526004820152fd5b34612a27576000600319360112612a27577f536574746c656d656e747346616365740000000000000000000000000000000060206040516135ae8161396c565b60108152015260206040517fb30c578f000000000000000000000000000000000000000000000000000000008152f35b34612a27576020600319360112612a27576004356135fa613e9f565b7f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e435481111580613834575b156137b057806000527f66776598078a713838a3cfb2f3e48fef9607fa222f322b4942104ad9a0e9eedd6020526136836040600020547f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4a5490613b6b565b4211156137065760207ff5e7e8be7e1d1c574765304e70afa3e7d2c9d105ef744de7e27359691c7afb28917f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e3760017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00825416179055604051908152a16001600055005b60a46040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604160248201527f536574746c656d656e747346616365743a2043616e63656c207375627363726960448201527f7074696f6e207265717565737420686173206e6f74206578706972656420796560648201527f74000000000000000000000000000000000000000000000000000000000000006084820152fd5b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f536574746c656d656e747346616365743a20496e76616c69642071756575652060448201527f696e6465780000000000000000000000000000000000000000000000000000006064820152fd5b507f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e48548111613625565b34612a27576000600319360112612a2757604051807f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e529182548082526020809201936000527fbc559645f0e6d14249e98a79fc45355fd59c6762b1f90ebce549f7a3d50caed7916000905b8282106138e0576132d5856132c9818903826139dc565b8354865294850194600193840193909101906138c9565b34612a27576000600319360112612a27576020907f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4d548152f35b6020908160408183019282815285518094520193019160005b828110613958575050505090565b83518552938101939281019260010161394a565b6040810190811067ffffffffffffffff8211176106a057604052565b6080810190811067ffffffffffffffff8211176106a057604052565b6060810190811067ffffffffffffffff8211176106a057604052565b60a0810190811067ffffffffffffffff8211176106a057604052565b90601f601f19910116810190811067ffffffffffffffff8211176106a057604052565b7f52e82c3609e3861a8da5bcba0060b90d5cdcd4699c971f20d56eabf53b066c518054821015610671576000527fbb73e94be5867bad8164ee8b4ef712b213189e2a0bee5de09e43b55ed9c53bdd0190600090565b7f52e82c3609e3861a8da5bcba0060b90d5cdcd4699c971f20d56eabf53b066c4d8054821015610671576000527ff7a23b19b617de77b9cc5905eb447c3611263cef681dd3b3ca5e54372b151ec20190600090565b7f52e82c3609e3861a8da5bcba0060b90d5cdcd4699c971f20d56eabf53b066c4e8054821015610671576000527f22c2c856dfcf53d43bfbb61a5867de72b6f139908ac6afc043601bdd815542c90190600090565b7f52e82c3609e3861a8da5bcba0060b90d5cdcd4699c971f20d56eabf53b066c508054821015610671576000527f8d10179c8a12d2b6885227cc175e7e8b02f3352676f0d41e8a4dba926b9595ec0190600090565b80548210156106715760005260206000200190600090565b91908201809211610aed57565b6000198114610aed5760010190565b9035907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe181360301821215612a27570180359067ffffffffffffffff8211612a2757602001918160051b36038313612a2757565b91908110156106715760051b0190565b3573ffffffffffffffffffffffffffffffffffffffff81168103612a275790565b91908203918211610aed57565b908154680100000000000000008110156106a057613c3e906001938482018155613b53565b929092613d9a5781519167ffffffffffffffff83116106a05783548281169190831c8215613d92575b60209283821014613d6357601f8111613d1a575b5081601f8511600114613cb55750600091849182613ca8575b505060001991921b9260031b1c1916179055565b0151915060001938613c94565b919084601f19819596168760005284600020946000905b88838310613d005750505010613ce7575b505050811b019055565b015160001960f88460031b161c19169055388080613cdd565b858701518855909601959485019487935090810190613ccc565b8560005282600020601f860160051c810191848710613d59575b601f0160051c019084905b828110613d4d575050613c7b565b60008155018490613d3f565b9091508190613d34565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b607f16613c67565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b9035907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe181360301821215612a27570180359067ffffffffffffffff8211612a2757602001918136038313612a2757565b60005b838110613e2d5750506000910152565b8181015183820152602001613e1d565b358015158103612a275790565b3560ff81168103612a275790565b92919267ffffffffffffffff82116106a05760405191613e826020601f19601f84011601846139dc565b829481845281830111612a27578281602093846000960137010152565b600260005414613eb0576002600055565b60046040517f3ee5aeb5000000000000000000000000000000000000000000000000000000008152fd5b67ffffffffffffffff81116106a05760051b60200190565b60ff7f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e375416613f1d57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602060248201527f4e756d653a2050726f746f636f6c20697320696e2065786f647573206d6f64656044820152fd5b90613fb891602081519101207f19457468657265756d205369676e6564204d6573736167653a0a333200000000600052601c52603c600020614069565b90600481101561403a57159081614031575b5015613fd35790565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45434453415574696c733a20496e76616c6964207369676e61747572650000006044820152fd5b90501538613fca565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b815191906041830361409a5761409392506020820151906060604084015193015160001a906140a5565b9192909190565b505060009160029190565b91907f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0841161413657926020929160ff608095604051948552168484015260408301526060820152600092839182805260015afa1561412a57805173ffffffffffffffffffffffffffffffffffffffff81161561412157918190565b50809160019190565b604051903d90823e3d90fd5b50505060009160039190565b80518210156106715760209160051b010190565b90601f19601f60209361417481518092818752878088019101613e1a565b011601019056fea26469706673582212200268b06ae8de1223aeafc866a0f147c910e42e3e04d5faeed9efb0d37f18048d64736f6c63430008140033

Deployed Bytecode

0x608080604052600436101561001357600080fd5b60003560e01c9081630b0cfae9146138f757508063266550971461385e5780632fd5d1df146135de57806334d46af31461356e5780633a65472e1461342e5780635f9ef0b6146133f15780636c94d58b146133a65780637e00fd731461331c578063800452bb146132f0578063806b7bf0146132475780638743eef91461320a5780639f6d9cca146131cd578063a76ea47f14612a69578063d589ea5114612a2c5763f788255a146100c457600080fd5b34612a2757600319602081360112612a275767ffffffffffffffff60043511612a27576104009060043536030112612a27576100fe613e9f565b610106613ef2565b73ffffffffffffffffffffffffffffffffffffffff7f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e3b541633036129a3576101917f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4c547f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4b5490613b6b565b421061291f576101c17f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e3954613b78565b7f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e39556102c4600435016101f981600435600401613b87565b905061266e575b506103446004350161021781600435600401613b87565b90506122fb575b507f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4d546102eb60c061025a606460043501600435600401613dc9565b7f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e39949194547f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4e5490826040519788956020870152600435600401356040870152606086013760608385010152608082840101526024600435013560a0828401015281010360a08101845201826139dc565b80608460043501356121b4575b5060a46004350135151580612195575b6119d6575b60c46004350135611891575b60e46004350135151580611872575b6110e0575b61034261020460043501600435600401613b87565b9050610d05575b6103a46004350135151580610ce6575b610753575b61047b906000806040516103718161396c565b601181527f736574746c656d656e744d65737361676500000000000000000000000000000060208201526040518280826103dd60208201957f41304fac000000000000000000000000000000000000000000000000000000008752602060248401526044830190614156565b03926103f1601f19948581018352826139dc565b516a636f6e736f6c652e6c6f6794855afa5060405161045260208201927f0be77f560000000000000000000000000000000000000000000000000000000084526020602484015282610446604482018a614156565b039081018352826139dc565b51915afa5061047561046e604460043501600435600401613dc9565b3691613e58565b90613f7b565b73ffffffffffffffffffffffffffffffffffffffff807f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e3a54169116036106cf57600435600401357f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4d55602460043501357f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4e557f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e5180546801000000000000000091828210156106a057600182018091558110156106715760043560040135907f9777c3e86945aae8b0854634596356e4978cddb34e223ace172776bdb2f79a0601557f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e528054918210156106a057600182018082558210156106715760005260246004350135907fbc559645f0e6d14249e98a79fc45355fd59c6762b1f90ebce549f7a3d50caed70155427f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4c557f667c714fec5c56aa721f1cd3034ed9c8dd4aca62151e586c418fee66395d22ef60607f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e3954604051906004356004013582526024600435013560208301526040820152a16001600055005b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603060248201527f4e6f746172697a65536574746c656d656e743a20496e76616c6964207365747460448201527f6c656d656e74207369676e6174757265000000000000000000000000000000006064820152fd5b7f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e485490610787826103a46004350135613c0c565b9161079d6103c460043501600435600401613b87565b90508303610c62576107ba6103c460043501600435600401613b87565b90506107d16103e460043501600435600401613b87565b91905003610bde576107ea816103a46004350135613c0c565b6107f381613eda565b9161080160405193846139dc565b818352601f1961081083613eda565b0136602085013760005b828110610bb657505050604051602081019182602082519192019060005b818110610ba057505050918161085c60409361088e9503601f1981018352826139dc565b5190209281519381610878869351809260208087019101613e1a565b82019060208201520360208101845201826139dc565b9060005b81811061091c5750507f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e48545b6103a4600435013581106108fc57506004356103a401357f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e485561035e565b806109086001926139ff565b60001982549160031b1b19169055016108be565b61094361093e826109386103c460043501600435600401613b87565b90613bdb565b613beb565b6109a46109b2610962846109386103e460043501600435600401613b87565b3560405192839160208301958690917fffffffffffffffffffffffffffffffffffffffff00000000000000000000000060349360601b16825260148201520190565b03601f1981018352826139dc565b5190206109e86109e3837f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4854613b6b565b6139ff565b90549060031b1c03610b1c57610a58610a1361093e836109386103c460043501600435600401613b87565b73ffffffffffffffffffffffffffffffffffffffff166000527f66776598078a713838a3cfb2f3e48fef9607fa222f322b4942104ad9a0e9eedc602052604060002090565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008154169055610aa9817f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4854613b6b565b90600182018211610aed5760018092016000527f66776598078a713838a3cfb2f3e48fef9607fa222f322b4942104ad9a0e9eedd6020526000604081205501610892565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4e6f746172697a65536574746c656d656e743a2043616e63656c20737562736360448201527f72697074696f6e207175657565206974656d00000000000000000000000000006064820152fd5b8251845260209384019390920191600101610838565b80610bc66109e360019385613b6b565b90549060031b1c610bd78287614142565b520161081a565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603f60248201527f4e6f746172697a65536574746c656d656e743a20496e76616c69642063616e6360448201527f656c20737562736372697074696f6e207265717565737473206c656e677468006064820152fd5b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603f60248201527f536574746c656d656e747346616365743a20496e76616c69642063616e63656c60448201527f20737562736372697074696f6e7320616464726573736573206c656e677468006064820152fd5b50610cfc6103c460043501600435600401613b87565b90501515610359565b610d1a61020460043501600435600401613b87565b606091506000905b808210610d5f5750506040610d5a91815161085c60208281610d4d8183019687815193849201613e1a565b81010380845201826139dc565b610349565b9091600190610e9a606a610d8a610d858761093861026460043501600435600401613b87565b613e4a565b92610da761093e8861093861020460043501600435600401613b87565b93610dc461093e8961093861022460043501600435600401613b87565b90610dde8961093861024460043501600435600401613b87565b35610e00610dfb8b61093861028460043501600435600401613b87565b613e3d565b906040519785610e1a8a975180926020808b019101613e1a565b8601947fff0000000000000000000000000000000000000000000000000000000000000060f895861b1660208701527fffffffffffffffffffffffffffffffffffffffff000000000000000000000000809260601b16602187015260601b16603585015260498401521515901b606982015203604a8101845201826139dc565b9281610eb161026460043501600435600401613b87565b90610ec3610d858560ff948594613bdb565b1615611013575b610ee6610d858461093861026460043501600435600401613b87565b1614610ef4575b0190610d22565b61100e610f1361093e8361093861020460043501600435600401613b87565b610f2f61093e8461093861022460043501600435600401613b87565b610f488461093861024460043501600435600401613b87565b3573ffffffffffffffffffffffffffffffffffffffff610f7a610dfb8761093861028460043501600435600401613b87565b92816040519516602086015216604084015260608301521515608082015260808152610fa5816139c0565b611009610fc461093e8561093861020460043501600435600401613b87565b73ffffffffffffffffffffffffffffffffffffffff166000527f0be433957ea43577ff4a0180f5a1ad92090f4287ac40af9aef297869d75cb678602052604060002090565b613c19565b610eed565b61102c8361093861024460043501600435600401613b87565b3561109161104c61093e8661093861020460043501600435600401613b87565b73ffffffffffffffffffffffffffffffffffffffff166000527f0be433957ea43577ff4a0180f5a1ad92090f4287ac40af9aef297869d75cb677602052604060002090565b73ffffffffffffffffffffffffffffffffffffffff6110c261093e8761093861022460043501600435600401613b87565b166000526020526110d96040600020918254613b6b565b9055610eca565b6111117f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e475460e46004350135613c0c565b61112661016460043501600435600401613b87565b905081036117c8576060906000905b80821061118e575050604061116091815161085c60208281610d4d8183019687815193849201613e1a565b60e460043501357f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e475561032d565b90916111ac61093e8461093861016460043501600435600401613b87565b6111c861093e8561093861018460043501600435600401613b87565b6111e1856109386101a460043501600435600401613b87565b356111fe610dfb876109386101c460043501600435600401613b87565b907fffffffffffffffffffffffffffffffffffffffff0000000000000000000000006040519381602086019660601b16865260601b1660348401526048830152151560f81b60688201526049815261125581613988565b51902061128b611286857f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4754613b6b565b613afe565b90549060031b1c03611744576113a0606a7fffffffffffffffffffffffffffffffffffffffff000000000000000000000000926112da61093e8761093861016460043501600435600401613b87565b6112f661093e8861093861018460043501600435600401613b87565b61130f886109386101a460043501600435600401613b87565b3561132c610dfb8a6109386101c460043501600435600401613b87565b908761134a610dfb8c6109386101e460043501600435600401613b87565b9360405199876113648c995180926020808d019101613e1a565b88019660601b16602087015260601b1660348501526048840152151560f81b6068830152151560f81b606982015203604a8101845201826139dc565b916113bd61093e8261093861018460043501600435600401613b87565b6113d6826109386101a460043501600435600401613b87565b356113f3610dfb846109386101c460043501600435600401613b87565b604051917fffffffffffffffffffffffffffffffffffffffff000000000000000000000000602084019460601b1684526034830152151560f81b60548201526035815261143f816139a4565b51902073ffffffffffffffffffffffffffffffffffffffff61147361093e8461093861016460043501600435600401613b87565b166000527f66776598078a713838a3cfb2f3e48fef9607fa222f322b4942104ad9a0e9eed960205260406000209060005260205260406000207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0081541690556114fd817f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4754613b6b565b600181018111610aed576001016000527f66776598078a713838a3cfb2f3e48fef9607fa222f322b4942104ad9a0e9eedb60205260006040812055611554610dfb826109386101e460043501600435600401613b87565b15611700577f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e49546115a6827f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4754613b6b565b600181018111610aed576001016000527f0be433957ea43577ff4a0180f5a1ad92090f4287ac40af9aef297869d75cb66f60205261163e73ffffffffffffffffffffffffffffffffffffffff6040600020541673ffffffffffffffffffffffffffffffffffffffff166000527f0be433957ea43577ff4a0180f5a1ad92090f4287ac40af9aef297869d75cb677602052604060002090565b7311111111111111111111111111111111111111116000526020526116696040600020918254613b6b565b9055611696817f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4754613b6b565b90600182018211610aed5760018092016000527f0be433957ea43577ff4a0180f5a1ad92090f4287ac40af9aef297869d75cb66f60205260406000207fffffffffffffffffffffffff000000000000000000000000000000000000000081541690555b0190611135565b806117316112866001937f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4754613b6b565b60001982549160031b1b191690556116f9565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603560248201527f4e6f746172697a65536574746c656d656e743a20496e76616c6964206e66742060448201527f7769746864726177616c207175657565206974656d00000000000000000000006064820152fd5b60a46040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604260248201527f536574746c656d656e747346616365743a20496e76616c6964206e667420636f60448201527f6e7472616374207769746864726177616c20616464726573736573206c656e6760648201527f74680000000000000000000000000000000000000000000000000000000000006084820152fd5b5061188861016460043501600435600401613b87565b90501515610328565b7f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4554906118c48260c46004350135613c0c565b6118cd81613eda565b906118db60405192836139dc565b808252601f196118ea82613eda565b0136602084013760005b8181106119a9575050604051602081019182602082519192019060005b81811061199357505050918161085c6040936119359503601f1981018352826139dc565b905b60c460043501358110611973575060c460043501357f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4555610319565b8061197f600192613aa9565b60001982549160031b1b1916905501611937565b8251845260209384019390920191600101611911565b806119be6119b960019388613b6b565b613aa9565b90549060031b1c6119cf8286614142565b52016118f4565b611a077f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e465460a46004350135613c0c565b611a1c61010460043501600435600401613b87565b90508103612111576060906000905b808210611b315750506040611a5691815161085c60208281610d4d8183019687815193849201613e1a565b7f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e46545b60a460043501358110611ab5575060a460043501357f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e465561030d565b7f52e82c3609e3861a8da5bcba0060b90d5cdcd4699c971f20d56eabf53b066c4f54811015610671576001907f52e82c3609e3861a8da5bcba0060b90d5cdcd4699c971f20d56eabf53b066c4f6000526000817fcd5a8ab0f2b0446d5c0c4fa08496869a1640d456c36d356959b3290ef67a6dfc015501611a79565b9091611b4f61093e8461093861010460043501600435600401613b87565b611b6b61093e8561093861012460043501600435600401613b87565b7fffffffffffffffffffffffffffffffffffffffff0000000000000000000000006040519181602084019460601b16845260601b16603482015260288152611bb2816139a4565b519020611be0847f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4654613b6b565b7f52e82c3609e3861a8da5bcba0060b90d5cdcd4699c971f20d56eabf53b066c4f54811015610671577f52e82c3609e3861a8da5bcba0060b90d5cdcd4699c971f20d56eabf53b066c4f6000527fcd5a8ab0f2b0446d5c0c4fa08496869a1640d456c36d356959b3290ef67a6dfc01540361208d57611d1460687fffffffffffffffffffffffffffffffffffffffff00000000000000000000000092611c9861093e8761093861010460043501600435600401613b87565b90611cb561093e8861093861012460043501600435600401613b87565b9185611cd08961093861014460043501600435600401613b87565b35936040519784611ceb8a965180926020808a019101613e1a565b85019360601b16602084015260601b1660348201526048928382015203908101845201826139dc565b9173ffffffffffffffffffffffffffffffffffffffff611d4661093e8361093861010460043501600435600401613b87565b166000527f66776598078a713838a3cfb2f3e48fef9607fa222f322b4942104ad9a0e9eed8602052604060002073ffffffffffffffffffffffffffffffffffffffff611da461093e8461093861012460043501600435600401613b87565b1660005260205260406000207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008154169055611e01817f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4654613b6b565b600181018111610aed576001016000527f66776598078a713838a3cfb2f3e48fef9607fa222f322b4942104ad9a0e9eeda60205260006040812055611e558161093861014460043501600435600401613b87565b35611e64575b60010190611a2b565b7f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4954611eb1827f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4654613b6b565b600181018111610aed576001016000527f0be433957ea43577ff4a0180f5a1ad92090f4287ac40af9aef297869d75cb66e602052611f4973ffffffffffffffffffffffffffffffffffffffff6040600020541673ffffffffffffffffffffffffffffffffffffffff166000527f0be433957ea43577ff4a0180f5a1ad92090f4287ac40af9aef297869d75cb677602052604060002090565b731111111111111111111111111111111111111111600052602052611f746040600020918254613b6b565b9055611fa1817f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4654613b6b565b90600182018211610aed5760018092016000527f0be433957ea43577ff4a0180f5a1ad92090f4287ac40af9aef297869d75cb66e60205260406000207fffffffffffffffffffffffff0000000000000000000000000000000000000000815416905561201c8161093861014460043501600435600401613b87565b3561203c61104c61093e8461093861010460043501600435600401613b87565b73ffffffffffffffffffffffffffffffffffffffff61206d61093e8561093861012460043501600435600401613b87565b166000526020526120846040600020918254613b6b565b90559050611e5b565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f4e6f746172697a65536574746c656d656e743a20496e76616c6964207769746860448201527f64726177616c207175657565206974656d0000000000000000000000000000006064820152fd5b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603e60248201527f536574746c656d656e747346616365743a20496e76616c696420636f6e74726160448201527f6374207769746864726177616c20616464726573736573206c656e67746800006064820152fd5b506121ab61010460043501600435600401613b87565b90501515610308565b7f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e445491506121e88260043560840135613c0c565b6121f181613eda565b906121ff60405192836139dc565b808252601f1961220e82613eda565b0136602084013760005b8181106122ce575050604051602081019182602082519192019060005b8181106122b857505050918161085c6040936122599503601f1981018352826139dc565b905b6084600435013581106122985750608460043501357f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4455386102f8565b806122a4600192613a54565b60001982549160031b1b191690550161225b565b8251845260209384019390920191600101612235565b806122e36122de60019388613b6b565b613a54565b90549060031b1c6122f48286614142565b5201612218565b600435610364810191906103848101906103240160005b61232184600435600401613b87565b90508110156126635761234061093e8261093887600435600401613b87565b61235661093e8361093889600435600401613b87565b6123be61236c8461093888600435600401613b87565b35916109a46040519384926020840196879190604893917fffffffffffffffffffffffffffffffffffffffff000000000000000000000000809260601b16845260601b16601483015260288201520190565b519020906123d58161093885600435600401613b87565b3560001990818101908111610aed576123ed90613aa9565b939054600394851b1c036125df5761241161093e8361093889600435600401613b87565b9261242861093e846109388b600435600401613b87565b73ffffffffffffffffffffffffffffffffffffffff612450856109388a600435600401613b87565b3591816040519716602088015216604086015260608501526080600081860152845261247b846139c0565b6125a76124dc61249761093e866109388c600435600401613b87565b73ffffffffffffffffffffffffffffffffffffffff166000527f0be433957ea43577ff4a0180f5a1ad92090f4287ac40af9aef297869d75cb676602052604060002090565b94600195867fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0082541617905561251b8561093889600435600401613b87565b356000527f0be433957ea43577ff4a0180f5a1ad92090f4287ac40af9aef297869d75cb66d60205261100973ffffffffffffffffffffffffffffffffffffffff6040600020541673ffffffffffffffffffffffffffffffffffffffff166000527f0be433957ea43577ff4a0180f5a1ad92090f4287ac40af9aef297869d75cb678602052604060002090565b6125ba8361093887600435600401613b87565b35828101908111610aed576125ce90613aa9565b81939154921b1b1916905501612312565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603260248201527f4e6f746172697a65536574746c656d656e743a20496e76616c6964204e46542060448201527f6465706f736974207175657565206861736800000000000000000000000000006064820152fd5b50505050503861021e565b600435610304810191906102a48101906102e40160005b61269484600435600401613b87565b9050811015612914576126b361093e8261093887600435600401613b87565b6126c961093e8361093886600435600401613b87565b6126df61236c846109388a600435600401613b87565b519020906126f68161093886600435600401613b87565b3560001990818101908111610aed5761270e90613a54565b939054600394851b1c036128905761273561249761093e846109388a600435600401613b87565b92600193847fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008254161790556127748361093888600435600401613b87565b35828101908111610aed5761278890613a54565b81939154921b1b191690556127a68161093888600435600401613b87565b356127ba8261093887600435600401613b87565b356000527f0be433957ea43577ff4a0180f5a1ad92090f4287ac40af9aef297869d75cb66c60205261284673ffffffffffffffffffffffffffffffffffffffff6040600020541673ffffffffffffffffffffffffffffffffffffffff166000527f0be433957ea43577ff4a0180f5a1ad92090f4287ac40af9aef297869d75cb677602052604060002090565b73ffffffffffffffffffffffffffffffffffffffff61287161093e8561093889600435600401613b87565b166000526020526128886040600020918254613b6b565b905501612685565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602e60248201527f4e6f746172697a65536574746c656d656e743a20496e76616c6964206465706f60448201527f73697420717565756520686173680000000000000000000000000000000000006064820152fd5b505050505038610200565b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603060248201527f536574746c656d656e747346616365743a20536574746c656d656e742074696d60448201527f656f7574206e6f742072656163686564000000000000000000000000000000006064820152fd5b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602c60248201527f4e756d653a204f6e6c79204e756d65206f776e65722063616e2063616c6c207460448201527f6869732066756e6374696f6e00000000000000000000000000000000000000006064820152fd5b600080fd5b34612a27576000600319360112612a275760207f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4e54604051908152f35b34612a27576020600319908082360112612a27576004359067ffffffffffffffff90818311612a275761010083600401948436030112612a2757612aab613e9f565b612ab3613ef2565b612abc84613beb565b937f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e3994612b5b8654604051907fffffffffffffffffffffffffffffffffffffffff000000000000000000000000809460601b168683015260348201527f63616e63656c537562736372697074696f6e52657175657374000000000000006054820152604d8152612b4b81613988565b61047561046e60a4890186613dc9565b9473ffffffffffffffffffffffffffffffffffffffff958680612b7d86613beb565b169116036131495760009160c48201612b968186613b87565b905015613140575b612ba88186613b87565b90506130e0575b50612bb984613beb565b90604483013596604051918783019360601b1683526084840135603483015260249485850135605484015260748301528760948301526094825260c0820190828210908211176130b2576040525190207f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4d5491612c3960e4820186613b87565b9190612c4483613eda565b92612c5260405194856139dc565b8084528884019060051b820191368311612a27578990959495915b8383106130a25750505050606401359091805160005b818110612fe9575050505003612f66578315612ee35760ff612ca7610a1384613beb565b5416612e6057612cb9610a1383613beb565b60017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00825416179055612ceb82613beb565b604051612d30816109a488888301958690917fffffffffffffffffffffffffffffffffffffffff00000000000000000000000060349360601b16825260148201520190565b519020907f52e82c3609e3861a8da5bcba0060b90d5cdcd4699c971f20d56eabf53b066c5180549168010000000000000000831015612e33576001830182557f8fa39d3688de72b964db7b3afb59cfc8207bb11c714b5590b5a7ce56cc47585a60608a8a8a8a612e198b8b612da48c6139ff565b600019829392549160031b92831b921b19161790557f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e43612de48154613b78565b8091556000527f66776598078a713838a3cfb2f3e48fef9607fa222f322b4942104ad9a0e9eedd835242604060002055613beb565b935492604051941684528301526040820152a16001600055005b7f4e487b710000000000000000000000000000000000000000000000000000000060005260416004526000fd5b826037608492604051927f08c379a000000000000000000000000000000000000000000000000000000000845260048401528201527f536574746c656d656e747346616365743a2043616e63656c207375627363726960448201527f7074696f6e20616c7265616479207265717565737465640000000000000000006064820152fd5b826026608492604051927f08c379a000000000000000000000000000000000000000000000000000000000845260048401528201527f536574746c656d656e747346616365743a20496e76616c696420626c6f636b2060448201527f6e756d62657200000000000000000000000000000000000000000000000000006064820152fd5b826028608492604051927f08c379a000000000000000000000000000000000000000000000000000000000845260048401528201527f536574746c656d656e747346616365743a20496e76616c6964206163636f756e60448201527f74732070726f6f660000000000000000000000000000000000000000000000006064820152fd5b9091929360019081861615600014613034576130058386614142565b51604051908b8201928352604082015260408152613022816139a4565b51902094811c915b0191909291612c83565b61303e8386614142565b5190604051908b820192835260408201526040815261305c816139a4565b51902094600019810190811161307457811c9161302a565b877f4e487b710000000000000000000000000000000000000000000000000000000060005260116004526000fd5b82358152918101918a9101612c6d565b847f4e487b710000000000000000000000000000000000000000000000000000000060005260416004526000fd5b6130ec91935084613b87565b60405190868201927f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8211612a27578288916131369360051b8091873781010380845201826139dc565b5190209188612baf565b60009350612b9e565b608484604051907f08c379a00000000000000000000000000000000000000000000000000000000082526004820152602860248201527f536574746c656d656e747346616365743a20496e76616c69642075736572207360448201527f69676e61747572650000000000000000000000000000000000000000000000006064820152fd5b34612a27576000600319360112612a275760207f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e3954604051908152f35b34612a27576000600319360112612a275760207f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4354604051908152f35b34612a27576000600319360112612a2757604051807f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e519182548082526020809201936000527f9777c3e86945aae8b0854634596356e4978cddb34e223ace172776bdb2f79a06916000905b8282106132d9576132d5856132c9818903826139dc565b60405191829182613931565b0390f35b8354865294850194600193840193909101906132b2565b34612a27576020600319360112612a2757602061330e6004356139ff565b90546040519160031b1c8152f35b34612a27576020600319360112612a275760043573ffffffffffffffffffffffffffffffffffffffff81168103612a275760ff61339a60209273ffffffffffffffffffffffffffffffffffffffff166000527f66776598078a713838a3cfb2f3e48fef9607fa222f322b4942104ad9a0e9eedc602052604060002090565b54166040519015158152f35b34612a27576020600319360112612a27576004356000527f66776598078a713838a3cfb2f3e48fef9607fa222f322b4942104ad9a0e9eedd6020526020604060002054604051908152f35b34612a27576000600319360112612a275760207f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4854604051908152f35b34612a27576060600319360112612a27576044356004356005810361353d57507f52e82c3609e3861a8da5bcba0060b90d5cdcd4699c971f20d56eabf53b066c519061347c81602435613c0c565b9061348682613eda565b9161349460405193846139dc565b8083526134a081613eda565b9060209485850193601f1980940136863760005b83811061350f575050505090604051918285810180955190939060005b888282106134f857505050506134ed92039081018352826139dc565b519020604051908152f35b8351875295860195879450909201916001016134d1565b8061352561351f60019385613b6b565b85613b53565b90549060031b1c613536828a614142565b52016134b4565b602490604051907f7892d0a30000000000000000000000000000000000000000000000000000000082526004820152fd5b34612a27576000600319360112612a27577f536574746c656d656e747346616365740000000000000000000000000000000060206040516135ae8161396c565b60108152015260206040517fb30c578f000000000000000000000000000000000000000000000000000000008152f35b34612a27576020600319360112612a27576004356135fa613e9f565b7f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e435481111580613834575b156137b057806000527f66776598078a713838a3cfb2f3e48fef9607fa222f322b4942104ad9a0e9eedd6020526136836040600020547f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4a5490613b6b565b4211156137065760207ff5e7e8be7e1d1c574765304e70afa3e7d2c9d105ef744de7e27359691c7afb28917f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e3760017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00825416179055604051908152a16001600055005b60a46040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152604160248201527f536574746c656d656e747346616365743a2043616e63656c207375627363726960448201527f7074696f6e207265717565737420686173206e6f74206578706972656420796560648201527f74000000000000000000000000000000000000000000000000000000000000006084820152fd5b60846040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f536574746c656d656e747346616365743a20496e76616c69642071756575652060448201527f696e6465780000000000000000000000000000000000000000000000000000006064820152fd5b507f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e48548111613625565b34612a27576000600319360112612a2757604051807f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e529182548082526020809201936000527fbc559645f0e6d14249e98a79fc45355fd59c6762b1f90ebce549f7a3d50caed7916000905b8282106138e0576132d5856132c9818903826139dc565b8354865294850194600193840193909101906138c9565b34612a27576000600319360112612a27576020907f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e4d548152f35b6020908160408183019282815285518094520193019160005b828110613958575050505090565b83518552938101939281019260010161394a565b6040810190811067ffffffffffffffff8211176106a057604052565b6080810190811067ffffffffffffffff8211176106a057604052565b6060810190811067ffffffffffffffff8211176106a057604052565b60a0810190811067ffffffffffffffff8211176106a057604052565b90601f601f19910116810190811067ffffffffffffffff8211176106a057604052565b7f52e82c3609e3861a8da5bcba0060b90d5cdcd4699c971f20d56eabf53b066c518054821015610671576000527fbb73e94be5867bad8164ee8b4ef712b213189e2a0bee5de09e43b55ed9c53bdd0190600090565b7f52e82c3609e3861a8da5bcba0060b90d5cdcd4699c971f20d56eabf53b066c4d8054821015610671576000527ff7a23b19b617de77b9cc5905eb447c3611263cef681dd3b3ca5e54372b151ec20190600090565b7f52e82c3609e3861a8da5bcba0060b90d5cdcd4699c971f20d56eabf53b066c4e8054821015610671576000527f22c2c856dfcf53d43bfbb61a5867de72b6f139908ac6afc043601bdd815542c90190600090565b7f52e82c3609e3861a8da5bcba0060b90d5cdcd4699c971f20d56eabf53b066c508054821015610671576000527f8d10179c8a12d2b6885227cc175e7e8b02f3352676f0d41e8a4dba926b9595ec0190600090565b80548210156106715760005260206000200190600090565b91908201809211610aed57565b6000198114610aed5760010190565b9035907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe181360301821215612a27570180359067ffffffffffffffff8211612a2757602001918160051b36038313612a2757565b91908110156106715760051b0190565b3573ffffffffffffffffffffffffffffffffffffffff81168103612a275790565b91908203918211610aed57565b908154680100000000000000008110156106a057613c3e906001938482018155613b53565b929092613d9a5781519167ffffffffffffffff83116106a05783548281169190831c8215613d92575b60209283821014613d6357601f8111613d1a575b5081601f8511600114613cb55750600091849182613ca8575b505060001991921b9260031b1c1916179055565b0151915060001938613c94565b919084601f19819596168760005284600020946000905b88838310613d005750505010613ce7575b505050811b019055565b015160001960f88460031b161c19169055388080613cdd565b858701518855909601959485019487935090810190613ccc565b8560005282600020601f860160051c810191848710613d59575b601f0160051c019084905b828110613d4d575050613c7b565b60008155018490613d3f565b9091508190613d34565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b607f16613c67565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b9035907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe181360301821215612a27570180359067ffffffffffffffff8211612a2757602001918136038313612a2757565b60005b838110613e2d5750506000910152565b8181015183820152602001613e1d565b358015158103612a275790565b3560ff81168103612a275790565b92919267ffffffffffffffff82116106a05760405191613e826020601f19601f84011601846139dc565b829481845281830111612a27578281602093846000960137010152565b600260005414613eb0576002600055565b60046040517f3ee5aeb5000000000000000000000000000000000000000000000000000000008152fd5b67ffffffffffffffff81116106a05760051b60200190565b60ff7f98c199a2a06c19b820e4574aca672bc64a3ad70882a41ede5eb53cf6ea310e375416613f1d57565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602060248201527f4e756d653a2050726f746f636f6c20697320696e2065786f647573206d6f64656044820152fd5b90613fb891602081519101207f19457468657265756d205369676e6564204d6573736167653a0a333200000000600052601c52603c600020614069565b90600481101561403a57159081614031575b5015613fd35790565b60646040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45434453415574696c733a20496e76616c6964207369676e61747572650000006044820152fd5b90501538613fca565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b815191906041830361409a5761409392506020820151906060604084015193015160001a906140a5565b9192909190565b505060009160029190565b91907f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0841161413657926020929160ff608095604051948552168484015260408301526060820152600092839182805260015afa1561412a57805173ffffffffffffffffffffffffffffffffffffffff81161561412157918190565b50809160019190565b604051903d90823e3d90fd5b50505060009160039190565b80518210156106715760209160051b010190565b90601f19601f60209361417481518092818752878088019101613e1a565b011601019056fea26469706673582212200268b06ae8de1223aeafc866a0f147c910e42e3e04d5faeed9efb0d37f18048d64736f6c63430008140033

Block Transaction Gas Used Reward
view all blocks sequenced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.