ETH Price: $2,951.43 (+0.35%)

Contract

0xB126E5108596c965c10a1094A3a616425e6727CF
 
Transaction Hash
Block
From
To
Fulfill Order123737362024-12-07 7:41:27413 days ago1733557287IN
0xB126E510...25e6727CF
0 ETH0.000005320.00158333
Fulfill Order123737182024-12-07 7:40:51413 days ago1733557251IN
0xB126E510...25e6727CF
0 ETH0.000004090.00158878
Fulfill Order123737042024-12-07 7:40:23413 days ago1733557223IN
0xB126E510...25e6727CF
0 ETH0.00000450.00158847
Cancel Order123344852024-12-06 9:53:05414 days ago1733478785IN
0xB126E510...25e6727CF
0 ETH0.0000070.00148454
Cancel Order123344762024-12-06 9:52:47414 days ago1733478767IN
0xB126E510...25e6727CF
0 ETH0.000006280.00148813
Cancel Order123293602024-12-06 7:02:15414 days ago1733468535IN
0xB126E510...25e6727CF
0 ETH0.000004910.00049555
Cancel Order123229632024-12-06 3:29:01414 days ago1733455741IN
0xB126E510...25e6727CF
0 ETH0.000014510.00188494
Fulfill Order123228992024-12-06 3:26:53414 days ago1733455613IN
0xB126E510...25e6727CF
0 ETH0.000009760.00189306
Fulfill Order123125602024-12-05 21:42:15415 days ago1733434935IN
0xB126E510...25e6727CF
0 ETH0.000010610.00135883
Fulfill Order123042112024-12-05 17:03:57415 days ago1733418237IN
0xB126E510...25e6727CF
0 ETH0.00000660.00037604
Cancel Order123014342024-12-05 15:31:23415 days ago1733412683IN
0xB126E510...25e6727CF
0 ETH0.000002470.00291075
Cancel Order123014252024-12-05 15:31:05415 days ago1733412665IN
0xB126E510...25e6727CF
0 ETH0.000002690.00283308
Cancel Order122544792024-12-04 13:26:13416 days ago1733318773IN
0xB126E510...25e6727CF
0 ETH0.000017670.0018403
Fulfill Order122502092024-12-04 11:03:53416 days ago1733310233IN
0xB126E510...25e6727CF
0 ETH0.000003910.00338507
Fulfill Order122501852024-12-04 11:03:05416 days ago1733310185IN
0xB126E510...25e6727CF
0 ETH0.000004050.00336465
Fulfill Order122497692024-12-04 10:49:13416 days ago1733309353IN
0xB126E510...25e6727CF
0 ETH0.000003590.00288691
Fulfill Order122497092024-12-04 10:47:13416 days ago1733309233IN
0xB126E510...25e6727CF
0 ETH0.000004730.00281556
Fulfill Order122463112024-12-04 8:53:57416 days ago1733302437IN
0xB126E510...25e6727CF
0 ETH0.000003350.00083446
Fulfill Order122427902024-12-04 6:56:35416 days ago1733295395IN
0xB126E510...25e6727CF
0 ETH0.00000070.00175417
Fulfill Order122370722024-12-04 3:45:59416 days ago1733283959IN
0xB126E510...25e6727CF
0 ETH0.000000430.00072032
Fulfill Order122363802024-12-04 3:22:55416 days ago1733282575IN
0xB126E510...25e6727CF
0 ETH0.000000420.00086591
Fulfill Order122339392024-12-04 2:01:33416 days ago1733277693IN
0xB126E510...25e6727CF
0 ETH0.000000780.00196625
Fulfill Order122236622024-12-03 20:18:59417 days ago1733257139IN
0xB126E510...25e6727CF
0 ETH0.000000460.00064501
Cancel Order122165762024-12-03 16:22:47417 days ago1733242967IN
0xB126E510...25e6727CF
0 ETH0.000000550.00124462
Fulfill Order122155852024-12-03 15:49:45417 days ago1733240985IN
0xB126E510...25e6727CF
0 ETH0.000000850.00143868
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:

Cross-Chain Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
SeaportProxy

Compiler Version
v0.8.21+commit.d9974bed

Optimization Enabled:
Yes with 100 runs

Other Settings:
paris EvmVersion
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;

import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {IERC721} from "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import {EIP712} from "@openzeppelin/contracts/utils/cryptography/EIP712.sol";
import {SEAPORT} from "@/constants/Constants.sol";
import {
    ISeaport,
    BasicOrderParameters,
    OrderComponents,
    OfferItem,
    ItemType,
    ConsiderationItem
} from "@/interfaces/ISeaport.sol";
import {SignatureChecker} from "@openzeppelin/contracts/utils/cryptography/SignatureChecker.sol";
import {MessageHashUtils} from "@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol";
import {BlastRegistrantLib} from "@/libraries/BlastRegistrantLib.sol";

contract SeaportProxy is EIP712 {
    error InvalidCancelSignature();
    error InvalidItemType();

    // Constant for cancel type hash
    // @notice This is used to create a unique identifier for each cancel
    bytes32 constant CANCEL_TYPEHASH =
        keccak256("Cancel(address offerer,address zone,uint256 salt,bytes32 offerHash,bytes32 considerationHash)");

    constructor() EIP712("SeaportProxy", "1.0") {
        BlastRegistrantLib._configureBlast(tx.origin, tx.origin);
    }

    /**
     * @notice checks if the offer token is signed by the owner
     * @param order - the order component
     * @param cancelSignature - the authorization signature
     */
    function _checkCancelSignature(OrderComponents memory order, bytes memory cancelSignature) internal view {
        bytes32 typedDataHash = getCancelOrderTypedDataHash(order);

        if (!SignatureChecker.isValidSignatureNow(order.offerer, typedDataHash, cancelSignature)) {
            _revert(InvalidCancelSignature.selector);
        }
    }

    /**
     * @notice logic for fulfilling a seaport order
     * @param order - the order component
     * @param to - the address to send the tokens to
     */
    function fulfillOrder(BasicOrderParameters calldata order, address to) external payable {
        uint256 totalConsiderationAmount = order.considerationAmount;
        for (uint256 i = 0; i < order.additionalRecipients.length; i++) {
            totalConsiderationAmount += order.additionalRecipients[i].amount;
        }

        IERC20 considerationToken = IERC20(order.considerationToken);
        considerationToken.transferFrom(msg.sender, address(this), totalConsiderationAmount);
        considerationToken.approve(SEAPORT, totalConsiderationAmount);
        ISeaport(SEAPORT).fulfillBasicOrder{value: msg.value}(order);
        //Should now have the token, send it to `to`
        IERC721(order.offerToken).transferFrom(address(this), to, order.offerIdentifier);
    }

    /**
     * @notice logic for canceling a seaport order
     * @param order - the order component
     * @param signature - the authorization signature
     */
    function cancelOrder(OrderComponents calldata order, bytes calldata signature) external {
        OfferItem memory offer = order.offer[0];
        address offerer = order.offerer;
        // revert if the item type is not an ERC721
        if (offer.itemType != ItemType.ERC721) {
            _revert(InvalidItemType.selector);
        }

        // check valid signature for the offer item
        _checkCancelSignature(order, signature);

        OrderComponents[] memory orders = new OrderComponents[](1);
        orders[0] = order;
        ISeaport(SEAPORT).cancel(orders);
    }

    function getCancelOrderTypedDataHash(OrderComponents memory order) public view returns (bytes32) {
        return _hashTypedDataV4(
            keccak256(
                abi.encode(
                    CANCEL_TYPEHASH,
                    order.offerer,
                    order.zone,
                    order.salt,
                    keccak256(abi.encodePacked(hashOfferItems(order.offer))),
                    keccak256(abi.encodePacked(hashConsiderationItems(order.consideration)))
                )
            )
        );
    }

    function hashOfferItem(OfferItem memory offerItem) internal view returns (bytes32) {
        return keccak256(
            abi.encode(
                offerItem.itemType,
                offerItem.token,
                offerItem.identifierOrCriteria,
                offerItem.startAmount,
                offerItem.endAmount
            )
        );
    }

    function hashConsiderationItem(ConsiderationItem memory considerationItem) internal view returns (bytes32) {
        return keccak256(
            abi.encode(
                considerationItem.itemType,
                considerationItem.token,
                considerationItem.identifierOrCriteria,
                considerationItem.startAmount,
                considerationItem.endAmount,
                considerationItem.recipient
            )
        );
    }

    function hashOfferItems(OfferItem[] memory offerItems) internal view returns (bytes32[] memory) {
        bytes32[] memory hashes = new bytes32[](offerItems.length);
        for (uint256 i = 0; i < offerItems.length; i++) {
            hashes[i] = hashOfferItem(offerItems[i]);
        }
        return hashes;
    }

    function hashConsiderationItems(ConsiderationItem[] memory considerationItems)
        internal
        view
        returns (bytes32[] memory)
    {
        bytes32[] memory hashes = new bytes32[](considerationItems.length);
        for (uint256 i = 0; i < considerationItems.length; i++) {
            hashes[i] = hashConsiderationItem(considerationItems[i]);
        }
        return hashes;
    }

    function _revert(bytes4 selector) internal pure {
        assembly {
            mstore(0x0, selector)
            revert(0x0, 0x4)
        }
    }
}

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/EIP712.sol)

pragma solidity ^0.8.20;

import {MessageHashUtils} from "./MessageHashUtils.sol";
import {ShortStrings, ShortString} from "../ShortStrings.sol";
import {IERC5267} from "../../interfaces/IERC5267.sol";

/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding scheme specified in the EIP requires a domain separator and a hash of the typed structured data, whose
 * encoding is very generic and therefore its implementation in Solidity is not feasible, thus this contract
 * does not implement the encoding itself. Protocols need to implement the type-specific encoding they need in order to
 * produce the hash of their typed data using a combination of `abi.encode` and `keccak256`.
 *
 * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
 * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
 * ({_hashTypedDataV4}).
 *
 * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
 * the chain id to protect against replay attacks on an eventual fork of the chain.
 *
 * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
 * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
 *
 * NOTE: In the upgradeable version of this contract, the cached values will correspond to the address, and the domain
 * separator of the implementation contract. This will cause the {_domainSeparatorV4} function to always rebuild the
 * separator from the immutable values, which is cheaper than accessing a cached version in cold storage.
 *
 * @custom:oz-upgrades-unsafe-allow state-variable-immutable
 */
abstract contract EIP712 is IERC5267 {
    using ShortStrings for *;

    bytes32 private constant TYPE_HASH =
        keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)");

    // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
    // invalidate the cached domain separator if the chain id changes.
    bytes32 private immutable _cachedDomainSeparator;
    uint256 private immutable _cachedChainId;
    address private immutable _cachedThis;

    bytes32 private immutable _hashedName;
    bytes32 private immutable _hashedVersion;

    ShortString private immutable _name;
    ShortString private immutable _version;
    string private _nameFallback;
    string private _versionFallback;

    /**
     * @dev Initializes the domain separator and parameter caches.
     *
     * The meaning of `name` and `version` is specified in
     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
     *
     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
     * - `version`: the current major version of the signing domain.
     *
     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
     * contract upgrade].
     */
    constructor(string memory name, string memory version) {
        _name = name.toShortStringWithFallback(_nameFallback);
        _version = version.toShortStringWithFallback(_versionFallback);
        _hashedName = keccak256(bytes(name));
        _hashedVersion = keccak256(bytes(version));

        _cachedChainId = block.chainid;
        _cachedDomainSeparator = _buildDomainSeparator();
        _cachedThis = address(this);
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        if (address(this) == _cachedThis && block.chainid == _cachedChainId) {
            return _cachedDomainSeparator;
        } else {
            return _buildDomainSeparator();
        }
    }

    function _buildDomainSeparator() private view returns (bytes32) {
        return keccak256(abi.encode(TYPE_HASH, _hashedName, _hashedVersion, block.chainid, address(this)));
    }

    /**
     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
     * function returns the hash of the fully encoded EIP712 message for this domain.
     *
     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
     *
     * ```solidity
     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
     *     keccak256("Mail(address to,string contents)"),
     *     mailTo,
     *     keccak256(bytes(mailContents))
     * )));
     * address signer = ECDSA.recover(digest, signature);
     * ```
     */
    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
        return MessageHashUtils.toTypedDataHash(_domainSeparatorV4(), structHash);
    }

    /**
     * @dev See {IERC-5267}.
     */
    function eip712Domain()
        public
        view
        virtual
        returns (
            bytes1 fields,
            string memory name,
            string memory version,
            uint256 chainId,
            address verifyingContract,
            bytes32 salt,
            uint256[] memory extensions
        )
    {
        return (
            hex"0f", // 01111
            _EIP712Name(),
            _EIP712Version(),
            block.chainid,
            address(this),
            bytes32(0),
            new uint256[](0)
        );
    }

    /**
     * @dev The name parameter for the EIP712 domain.
     *
     * NOTE: By default this function reads _name which is an immutable value.
     * It only reads from storage if necessary (in case the value is too large to fit in a ShortString).
     */
    // solhint-disable-next-line func-name-mixedcase
    function _EIP712Name() internal view returns (string memory) {
        return _name.toStringWithFallback(_nameFallback);
    }

    /**
     * @dev The version parameter for the EIP712 domain.
     *
     * NOTE: By default this function reads _version which is an immutable value.
     * It only reads from storage if necessary (in case the value is too large to fit in a ShortString).
     */
    // solhint-disable-next-line func-name-mixedcase
    function _EIP712Version() internal view returns (string memory) {
        return _version.toStringWithFallback(_versionFallback);
    }
}

File 5 of 20 : Constants.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;

address constant SEAPORT = 0x00000000000000ADc04C56Bf30aC9d3c0aAF14dC;

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/**
 * @dev Basic orders can supply any number of additional recipients, with the
 *      implied assumption that they are supplied from the offered ETH (or other
 *      native token) or ERC20 token for the order.
 */
struct AdditionalRecipient {
    uint256 amount;
    address payable recipient;
}

enum BasicOrderType {
    // 0: no partial fills, anyone can execute
    ETH_TO_ERC721_FULL_OPEN,
    // 1: partial fills supported, anyone can execute
    ETH_TO_ERC721_PARTIAL_OPEN,
    // 2: no partial fills, only offerer or zone can execute
    ETH_TO_ERC721_FULL_RESTRICTED,
    // 3: partial fills supported, only offerer or zone can execute
    ETH_TO_ERC721_PARTIAL_RESTRICTED,
    // 4: no partial fills, anyone can execute
    ETH_TO_ERC1155_FULL_OPEN,
    // 5: partial fills supported, anyone can execute
    ETH_TO_ERC1155_PARTIAL_OPEN,
    // 6: no partial fills, only offerer or zone can execute
    ETH_TO_ERC1155_FULL_RESTRICTED,
    // 7: partial fills supported, only offerer or zone can execute
    ETH_TO_ERC1155_PARTIAL_RESTRICTED,
    // 8: no partial fills, anyone can execute
    ERC20_TO_ERC721_FULL_OPEN,
    // 9: partial fills supported, anyone can execute
    ERC20_TO_ERC721_PARTIAL_OPEN,
    // 10: no partial fills, only offerer or zone can execute
    ERC20_TO_ERC721_FULL_RESTRICTED,
    // 11: partial fills supported, only offerer or zone can execute
    ERC20_TO_ERC721_PARTIAL_RESTRICTED,
    // 12: no partial fills, anyone can execute
    ERC20_TO_ERC1155_FULL_OPEN,
    // 13: partial fills supported, anyone can execute
    ERC20_TO_ERC1155_PARTIAL_OPEN,
    // 14: no partial fills, only offerer or zone can execute
    ERC20_TO_ERC1155_FULL_RESTRICTED,
    // 15: partial fills supported, only offerer or zone can execute
    ERC20_TO_ERC1155_PARTIAL_RESTRICTED,
    // 16: no partial fills, anyone can execute
    ERC721_TO_ERC20_FULL_OPEN,
    // 17: partial fills supported, anyone can execute
    ERC721_TO_ERC20_PARTIAL_OPEN,
    // 18: no partial fills, only offerer or zone can execute
    ERC721_TO_ERC20_FULL_RESTRICTED,
    // 19: partial fills supported, only offerer or zone can execute
    ERC721_TO_ERC20_PARTIAL_RESTRICTED,
    // 20: no partial fills, anyone can execute
    ERC1155_TO_ERC20_FULL_OPEN,
    // 21: partial fills supported, anyone can execute
    ERC1155_TO_ERC20_PARTIAL_OPEN,
    // 22: no partial fills, only offerer or zone can execute
    ERC1155_TO_ERC20_FULL_RESTRICTED,
    // 23: partial fills supported, only offerer or zone can execute
    ERC1155_TO_ERC20_PARTIAL_RESTRICTED
}

/**
 * @dev For basic orders involving ETH / native / ERC20 <=> ERC721 / ERC1155
 *      matching, a group of six functions may be called that only requires a
 *      subset of the usual order arguments. Note the use of a "basicOrderType"
 *      enum; this represents both the usual order type as well as the "route"
 *      of the basic order (a simple derivation function for the basic order
 *      type is `basicOrderType = orderType + (4 * basicOrderRoute)`.)
 */
struct BasicOrderParameters {
    // calldata offset
    address considerationToken; // 0x24
    uint256 considerationIdentifier; // 0x44
    uint256 considerationAmount; // 0x64
    address payable offerer; // 0x84
    address zone; // 0xa4
    address offerToken; // 0xc4
    uint256 offerIdentifier; // 0xe4
    uint256 offerAmount; // 0x104
    BasicOrderType basicOrderType; // 0x124
    uint256 startTime; // 0x144
    uint256 endTime; // 0x164
    bytes32 zoneHash; // 0x184
    uint256 salt; // 0x1a4
    bytes32 offererConduitKey; // 0x1c4
    bytes32 fulfillerConduitKey; // 0x1e4
    uint256 totalOriginalAdditionalRecipients; // 0x204
    AdditionalRecipient[] additionalRecipients; // 0x224
    bytes signature; // 0x244
        // Total length, excluding dynamic array data: 0x264 (580)
}

enum ItemType {
    NATIVE,
    ERC20,
    ERC721,
    ERC1155,
    ERC721_WITH_CRITERIA,
    ERC1155_WITH_CRITERIA
}

enum OrderType {
    FULL_OPEN,
    PARTIAL_OPEN,
    FULL_RESTRICTED,
    PARTIAL_RESTRICTED,
    CONTRACT
}

struct OfferItem {
    ItemType itemType;
    address token;
    uint256 identifierOrCriteria;
    uint256 startAmount;
    uint256 endAmount;
}

struct ConsiderationItem {
    ItemType itemType;
    address token;
    uint256 identifierOrCriteria;
    uint256 startAmount;
    uint256 endAmount;
    address payable recipient;
}

struct OrderComponents {
    address offerer;
    address zone;
    OfferItem[] offer;
    ConsiderationItem[] consideration;
    OrderType orderType;
    uint256 startTime;
    uint256 endTime;
    bytes32 zoneHash;
    uint256 salt;
    bytes32 conduitKey;
    uint256 counter;
}

interface ISeaport {
    function fulfillBasicOrder(BasicOrderParameters calldata parameters) external payable returns (bool fulfilled);
    function cancel(OrderComponents[] calldata orders) external returns (bool cancelled);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/SignatureChecker.sol)

pragma solidity ^0.8.20;

import {ECDSA} from "./ECDSA.sol";
import {IERC1271} from "../../interfaces/IERC1271.sol";

/**
 * @dev Signature verification helper that can be used instead of `ECDSA.recover` to seamlessly support both ECDSA
 * signatures from externally owned accounts (EOAs) as well as ERC1271 signatures from smart contract wallets like
 * Argent and Safe Wallet (previously Gnosis Safe).
 */
library SignatureChecker {
    /**
     * @dev Checks if a signature is valid for a given signer and data hash. If the signer is a smart contract, the
     * signature is validated against that smart contract using ERC1271, otherwise it's validated using `ECDSA.recover`.
     *
     * NOTE: Unlike ECDSA signatures, contract signatures are revocable, and the outcome of this function can thus
     * change through time. It could return true at block N and false at block N+1 (or the opposite).
     */
    function isValidSignatureNow(address signer, bytes32 hash, bytes memory signature) internal view returns (bool) {
        (address recovered, ECDSA.RecoverError error, ) = ECDSA.tryRecover(hash, signature);
        return
            (error == ECDSA.RecoverError.NoError && recovered == signer) ||
            isValidERC1271SignatureNow(signer, hash, signature);
    }

    /**
     * @dev Checks if a signature is valid for a given signer and data hash. The signature is validated
     * against the signer smart contract using ERC1271.
     *
     * NOTE: Unlike ECDSA signatures, contract signatures are revocable, and the outcome of this function can thus
     * change through time. It could return true at block N and false at block N+1 (or the opposite).
     */
    function isValidERC1271SignatureNow(
        address signer,
        bytes32 hash,
        bytes memory signature
    ) internal view returns (bool) {
        (bool success, bytes memory result) = signer.staticcall(
            abi.encodeCall(IERC1271.isValidSignature, (hash, signature))
        );
        return (success &&
            result.length >= 32 &&
            abi.decode(result, (bytes32)) == bytes32(IERC1271.isValidSignature.selector));
    }
}

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

// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;

import {IBlast, YieldMode, GasMode} from "@/interfaces/IBlast.sol";
import {IBlastPoints} from "@/interfaces/IBlastPoints.sol";

/// @title BlastRegistrant
/// @notice This library is used to configure the Blast contract and the BlastPoints contract
/// @dev a library is used to avoid storage variables in an upgradeable contract suite
library BlastRegistrantLib {
    error NotSupportedChainId();

    address public constant BLAST = 0x4300000000000000000000000000000000000002;
    uint256 constant _BLAST_MAINNET_CHAIN_ID = 81457;
    uint256 constant _BLAST_TESTNET_CHAIN_ID = 168587773;

    function _configureBlast(address _governor, address _pointsOperator) internal {
        uint256 id = block.chainid;
        if (id == _BLAST_MAINNET_CHAIN_ID || id == _BLAST_TESTNET_CHAIN_ID) {
            IBlast(BLAST).configureClaimableGas();
            /*IBlast(BLAST).configureClaimableYield();*/
            IBlast(BLAST).configureGovernor(_governor);
            /*IBlast(BLAST).configureContract(address(this), YieldMode.CLAIMABLE, GasMode.CLAIMABLE, _governor);*/
            IBlastPoints(_pointsAddress()).configurePointsOperator(_pointsOperator);
        }
    }

    function _pointsAddress() private view returns (address) {
        if (block.chainid == _BLAST_TESTNET_CHAIN_ID) return 0x2fc95838c71e76ec69ff817983BFf17c710F34E0;
        if (block.chainid == _BLAST_MAINNET_CHAIN_ID) return 0x2536FE9ab3F511540F2f9e2eC2A805005C3Dd800;
        revert NotSupportedChainId();
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/IERC165.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/ShortStrings.sol)

pragma solidity ^0.8.20;

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

// | string  | 0xAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA   |
// | length  | 0x                                                              BB |
type ShortString is bytes32;

/**
 * @dev This library provides functions to convert short memory strings
 * into a `ShortString` type that can be used as an immutable variable.
 *
 * Strings of arbitrary length can be optimized using this library if
 * they are short enough (up to 31 bytes) by packing them with their
 * length (1 byte) in a single EVM word (32 bytes). Additionally, a
 * fallback mechanism can be used for every other case.
 *
 * Usage example:
 *
 * ```solidity
 * contract Named {
 *     using ShortStrings for *;
 *
 *     ShortString private immutable _name;
 *     string private _nameFallback;
 *
 *     constructor(string memory contractName) {
 *         _name = contractName.toShortStringWithFallback(_nameFallback);
 *     }
 *
 *     function name() external view returns (string memory) {
 *         return _name.toStringWithFallback(_nameFallback);
 *     }
 * }
 * ```
 */
library ShortStrings {
    // Used as an identifier for strings longer than 31 bytes.
    bytes32 private constant FALLBACK_SENTINEL = 0x00000000000000000000000000000000000000000000000000000000000000FF;

    error StringTooLong(string str);
    error InvalidShortString();

    /**
     * @dev Encode a string of at most 31 chars into a `ShortString`.
     *
     * This will trigger a `StringTooLong` error is the input string is too long.
     */
    function toShortString(string memory str) internal pure returns (ShortString) {
        bytes memory bstr = bytes(str);
        if (bstr.length > 31) {
            revert StringTooLong(str);
        }
        return ShortString.wrap(bytes32(uint256(bytes32(bstr)) | bstr.length));
    }

    /**
     * @dev Decode a `ShortString` back to a "normal" string.
     */
    function toString(ShortString sstr) internal pure returns (string memory) {
        uint256 len = byteLength(sstr);
        // using `new string(len)` would work locally but is not memory safe.
        string memory str = new string(32);
        /// @solidity memory-safe-assembly
        assembly {
            mstore(str, len)
            mstore(add(str, 0x20), sstr)
        }
        return str;
    }

    /**
     * @dev Return the length of a `ShortString`.
     */
    function byteLength(ShortString sstr) internal pure returns (uint256) {
        uint256 result = uint256(ShortString.unwrap(sstr)) & 0xFF;
        if (result > 31) {
            revert InvalidShortString();
        }
        return result;
    }

    /**
     * @dev Encode a string into a `ShortString`, or write it to storage if it is too long.
     */
    function toShortStringWithFallback(string memory value, string storage store) internal returns (ShortString) {
        if (bytes(value).length < 32) {
            return toShortString(value);
        } else {
            StorageSlot.getStringSlot(store).value = value;
            return ShortString.wrap(FALLBACK_SENTINEL);
        }
    }

    /**
     * @dev Decode a string that was encoded to `ShortString` or written to storage using {setWithFallback}.
     */
    function toStringWithFallback(ShortString value, string storage store) internal pure returns (string memory) {
        if (ShortString.unwrap(value) != FALLBACK_SENTINEL) {
            return toString(value);
        } else {
            return store;
        }
    }

    /**
     * @dev Return the length of a string that was encoded to `ShortString` or written to storage using
     * {setWithFallback}.
     *
     * WARNING: This will return the "byte length" of the string. This may not reflect the actual length in terms of
     * actual characters as the UTF-8 encoding of a single character can span over multiple bytes.
     */
    function byteLengthWithFallback(ShortString value, string storage store) internal view returns (uint256) {
        if (ShortString.unwrap(value) != FALLBACK_SENTINEL) {
            return byteLength(value);
        } else {
            return bytes(store).length;
        }
    }
}

File 12 of 20 : IERC5267.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC5267.sol)

pragma solidity ^0.8.20;

interface IERC5267 {
    /**
     * @dev MAY be emitted to signal that the domain could have changed.
     */
    event EIP712DomainChanged();

    /**
     * @dev returns the fields and values that describe the domain separator used by this contract for EIP-712
     * signature.
     */
    function eip712Domain()
        external
        view
        returns (
            bytes1 fields,
            string memory name,
            string memory version,
            uint256 chainId,
            address verifyingContract,
            bytes32 salt,
            uint256[] memory extensions
        );
}

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC1271.sol)

pragma solidity ^0.8.20;

/**
 * @dev Interface of the ERC1271 standard signature validation method for
 * contracts as defined in https://eips.ethereum.org/EIPS/eip-1271[ERC-1271].
 */
interface IERC1271 {
    /**
     * @dev Should return whether the signature provided is valid for the provided data
     * @param hash      Hash of the data to be signed
     * @param signature Signature byte array associated with _data
     */
    function isValidSignature(bytes32 hash, bytes memory signature) external view returns (bytes4 magicValue);
}

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

// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;

enum YieldMode {
    AUTOMATIC,
    VOID,
    CLAIMABLE
}

enum GasMode {
    VOID,
    CLAIMABLE
}

interface IBlast {
    // configure
    function configureContract(address contractAddress, YieldMode _yield, GasMode gasMode, address governor) external;
    function configure(YieldMode _yield, GasMode gasMode, address governor) external;

    // base configuration options
    function configureClaimableYield() external;
    function configureClaimableYieldOnBehalf(address contractAddress) external;
    function configureAutomaticYield() external;
    function configureAutomaticYieldOnBehalf(address contractAddress) external;
    function configureVoidYield() external;
    function configureVoidYieldOnBehalf(address contractAddress) external;
    function configureClaimableGas() external;
    function configureClaimableGasOnBehalf(address contractAddress) external;
    function configureVoidGas() external;
    function configureVoidGasOnBehalf(address contractAddress) external;
    function configureGovernor(address _governor) external;
    function configureGovernorOnBehalf(address _newGovernor, address contractAddress) external;

    // claim yield
    function claimYield(address contractAddress, address recipientOfYield, uint256 amount) external returns (uint256);
    function claimAllYield(address contractAddress, address recipientOfYield) external returns (uint256);

    // claim gas
    function claimAllGas(address contractAddress, address recipientOfGas) external returns (uint256);
    function claimGasAtMinClaimRate(address contractAddress, address recipientOfGas, uint256 minClaimRateBips)
        external
        returns (uint256);
    function claimMaxGas(address contractAddress, address recipientOfGas) external returns (uint256);
    function claimGas(address contractAddress, address recipientOfGas, uint256 gasToClaim, uint256 gasSecondsToConsume)
        external
        returns (uint256);

    // read functions
    function readClaimableYield(address contractAddress) external view returns (uint256);
    function readYieldConfiguration(address contractAddress) external view returns (uint8);
    function readGasParams(address contractAddress)
        external
        view
        returns (uint256 etherSeconds, uint256 etherBalance, uint256 lastUpdated, GasMode);
}

// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;

/*
Testnet environment
A staging environment is configured for our testnet. To ensure that you earn liquidity points, hold ETH, WETH, and/or USDB in the contract. Points are emitted at a higher rate to make it easier to test.

API Base URL: https://waitlist-api.develop.testblast.io

BlastPoints address: 0x2fc95838c71e76ec69ff817983BFf17c710F34E0

​
Mainnet environment
API Base URL: https://waitlist-api.prod.blast.io

BlastPoints address: 0x2536FE9ab3F511540F2f9e2eC2A805005C3Dd800*/

interface IBlastPoints {
    function configurePointsOperator(address operator) external;
    function configurePointsOperatorOnBehalf(address contractAddress, address operator) external;
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/StorageSlot.sol)
// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.

pragma solidity ^0.8.20;

/**
 * @dev Library for reading and writing primitive types to specific storage slots.
 *
 * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
 * This library helps with reading and writing to such slots without the need for inline assembly.
 *
 * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
 *
 * Example usage to set ERC1967 implementation slot:
 * ```solidity
 * contract ERC1967 {
 *     bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
 *
 *     function _getImplementation() internal view returns (address) {
 *         return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
 *     }
 *
 *     function _setImplementation(address newImplementation) internal {
 *         require(newImplementation.code.length > 0);
 *         StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
 *     }
 * }
 * ```
 */
library StorageSlot {
    struct AddressSlot {
        address value;
    }

    struct BooleanSlot {
        bool value;
    }

    struct Bytes32Slot {
        bytes32 value;
    }

    struct Uint256Slot {
        uint256 value;
    }

    struct StringSlot {
        string value;
    }

    struct BytesSlot {
        bytes value;
    }

    /**
     * @dev Returns an `AddressSlot` with member `value` located at `slot`.
     */
    function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BooleanSlot` with member `value` located at `slot`.
     */
    function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
     */
    function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `Uint256Slot` with member `value` located at `slot`.
     */
    function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `StringSlot` with member `value` located at `slot`.
     */
    function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `StringSlot` representation of the string storage pointer `store`.
     */
    function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := store.slot
        }
    }

    /**
     * @dev Returns an `BytesSlot` with member `value` located at `slot`.
     */
    function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := slot
        }
    }

    /**
     * @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.
     */
    function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {
        /// @solidity memory-safe-assembly
        assembly {
            r.slot := store.slot
        }
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)

pragma solidity ^0.8.20;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Muldiv operation overflow.
     */
    error MathOverflowedMulDiv();

    enum Rounding {
        Floor, // Toward negative infinity
        Ceil, // Toward positive infinity
        Trunc, // Toward zero
        Expand // Away from zero
    }

    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

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

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds towards infinity instead
     * of rounding towards zero.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        if (b == 0) {
            // Guarantee the same behavior as in a regular Solidity division.
            return a / b;
        }

        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or
     * denominator == 0.
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by
     * Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0 = x * y; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            if (denominator <= prod1) {
                revert MathOverflowedMulDiv();
            }

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator.
            // Always >= 1. See https://cs.stackexchange.com/q/138556/92363.

            uint256 twos = denominator & (0 - denominator);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also
            // works in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded
     * towards zero.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256 of a positive value rounded towards zero.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);
        }
    }

    /**
     * @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.
     */
    function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {
        return uint8(rounding) % 2 == 1;
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (utils/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);
        }
    }
}

Settings
{
  "remappings": [
    "forge-std/=lib/forge-std/src/",
    "solmate/=lib/solmate/src/",
    "ds-test/=lib/forge-std/lib/ds-test/src/",
    "erc721a/=lib/erc721a/",
    "ERC721A-Upgradeable/=lib/ERC721A-Upgradeable/",
    "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    "@openzeppelin/contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/contracts/",
    "openzeppelin-foundry-upgrades/=lib/openzeppelin-foundry-upgrades/src/",
    "chainlink/=lib/chainlink-brownie-contracts/contracts/src/",
    "@/=src/",
    "solady/=lib/solady/src/",
    "chainlink-brownie-contracts/=lib/chainlink-brownie-contracts/",
    "erc4626-tests/=lib/openzeppelin-contracts-upgradeable/lib/erc4626-tests/",
    "openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "solidity-stringutils/=lib/openzeppelin-foundry-upgrades/lib/solidity-stringutils/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 100
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "ipfs",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "paris",
  "viaIR": false,
  "libraries": {
    "src/libraries/DropRegistryHelpers.sol": {
      "DropRegistryHelpers": "0x362aC816C1bb10a7fF3da249d7157e3a563A2419"
    }
  }
}

Contract Security Audit

Contract ABI

API
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"InvalidCancelSignature","type":"error"},{"inputs":[],"name":"InvalidItemType","type":"error"},{"inputs":[],"name":"InvalidShortString","type":"error"},{"inputs":[],"name":"NotSupportedChainId","type":"error"},{"inputs":[{"internalType":"string","name":"str","type":"string"}],"name":"StringTooLong","type":"error"},{"anonymous":false,"inputs":[],"name":"EIP712DomainChanged","type":"event"},{"inputs":[{"components":[{"internalType":"address","name":"offerer","type":"address"},{"internalType":"address","name":"zone","type":"address"},{"components":[{"internalType":"enum ItemType","name":"itemType","type":"uint8"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"identifierOrCriteria","type":"uint256"},{"internalType":"uint256","name":"startAmount","type":"uint256"},{"internalType":"uint256","name":"endAmount","type":"uint256"}],"internalType":"struct OfferItem[]","name":"offer","type":"tuple[]"},{"components":[{"internalType":"enum ItemType","name":"itemType","type":"uint8"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"identifierOrCriteria","type":"uint256"},{"internalType":"uint256","name":"startAmount","type":"uint256"},{"internalType":"uint256","name":"endAmount","type":"uint256"},{"internalType":"address payable","name":"recipient","type":"address"}],"internalType":"struct ConsiderationItem[]","name":"consideration","type":"tuple[]"},{"internalType":"enum OrderType","name":"orderType","type":"uint8"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"bytes32","name":"zoneHash","type":"bytes32"},{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"bytes32","name":"conduitKey","type":"bytes32"},{"internalType":"uint256","name":"counter","type":"uint256"}],"internalType":"struct OrderComponents","name":"order","type":"tuple"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"cancelOrder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"eip712Domain","outputs":[{"internalType":"bytes1","name":"fields","type":"bytes1"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"version","type":"string"},{"internalType":"uint256","name":"chainId","type":"uint256"},{"internalType":"address","name":"verifyingContract","type":"address"},{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"uint256[]","name":"extensions","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"considerationToken","type":"address"},{"internalType":"uint256","name":"considerationIdentifier","type":"uint256"},{"internalType":"uint256","name":"considerationAmount","type":"uint256"},{"internalType":"address payable","name":"offerer","type":"address"},{"internalType":"address","name":"zone","type":"address"},{"internalType":"address","name":"offerToken","type":"address"},{"internalType":"uint256","name":"offerIdentifier","type":"uint256"},{"internalType":"uint256","name":"offerAmount","type":"uint256"},{"internalType":"enum BasicOrderType","name":"basicOrderType","type":"uint8"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"bytes32","name":"zoneHash","type":"bytes32"},{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"bytes32","name":"offererConduitKey","type":"bytes32"},{"internalType":"bytes32","name":"fulfillerConduitKey","type":"bytes32"},{"internalType":"uint256","name":"totalOriginalAdditionalRecipients","type":"uint256"},{"components":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address payable","name":"recipient","type":"address"}],"internalType":"struct AdditionalRecipient[]","name":"additionalRecipients","type":"tuple[]"},{"internalType":"bytes","name":"signature","type":"bytes"}],"internalType":"struct BasicOrderParameters","name":"order","type":"tuple"},{"internalType":"address","name":"to","type":"address"}],"name":"fulfillOrder","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"offerer","type":"address"},{"internalType":"address","name":"zone","type":"address"},{"components":[{"internalType":"enum ItemType","name":"itemType","type":"uint8"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"identifierOrCriteria","type":"uint256"},{"internalType":"uint256","name":"startAmount","type":"uint256"},{"internalType":"uint256","name":"endAmount","type":"uint256"}],"internalType":"struct OfferItem[]","name":"offer","type":"tuple[]"},{"components":[{"internalType":"enum ItemType","name":"itemType","type":"uint8"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"identifierOrCriteria","type":"uint256"},{"internalType":"uint256","name":"startAmount","type":"uint256"},{"internalType":"uint256","name":"endAmount","type":"uint256"},{"internalType":"address payable","name":"recipient","type":"address"}],"internalType":"struct ConsiderationItem[]","name":"consideration","type":"tuple[]"},{"internalType":"enum OrderType","name":"orderType","type":"uint8"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"bytes32","name":"zoneHash","type":"bytes32"},{"internalType":"uint256","name":"salt","type":"uint256"},{"internalType":"bytes32","name":"conduitKey","type":"bytes32"},{"internalType":"uint256","name":"counter","type":"uint256"}],"internalType":"struct OrderComponents","name":"order","type":"tuple"}],"name":"getCancelOrderTypedDataHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"}]

6101606040523480156200001257600080fd5b50604080518082018252600c81526b536561706f727450726f787960a01b602080830191909152825180840190935260038352620312e360ec1b90830152906200005e82600062000118565b610120526200006f81600162000118565b61014052815160208084019190912060e052815190820120610100524660a052620000fd60e05161010051604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201529081019290925260608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b60805250503060c05262000112328062000151565b6200054f565b600060208351101562000138576200013083620002ba565b90506200014b565b816200014584826200040e565b5060ff90505b92915050565b4662013e31811480620001675750630a0c71fd81145b15620002b5577343000000000000000000000000000000000000026001600160a01b0316634e606c476040518163ffffffff1660e01b8152600401600060405180830381600087803b158015620001bd57600080fd5b505af1158015620001d2573d6000803e3d6000fd5b5050604051631d70c8d360e31b81526001600160a01b0386166004820152734300000000000000000000000000000000000002925063eb8646989150602401600060405180830381600087803b1580156200022c57600080fd5b505af115801562000241573d6000803e3d6000fd5b50505050620002556200030660201b60201c565b6040516336b91f2b60e01b81526001600160a01b03848116600483015291909116906336b91f2b90602401600060405180830381600087803b1580156200029b57600080fd5b505af1158015620002b0573d6000803e3d6000fd5b505050505b505050565b600080829050601f81511115620002f1578260405163305a27a960e01b8152600401620002e89190620004da565b60405180910390fd5b8051620002fe826200052a565b179392505050565b6000630a0c71fd46036200032d5750732fc95838c71e76ec69ff817983bff17c710f34e090565b62013e314603620003515750732536fe9ab3f511540f2f9e2ec2a805005c3dd80090565b604051630827945960e31b815260040160405180910390fd5b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200039557607f821691505b602082108103620003b657634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620002b557600081815260208120601f850160051c81016020861015620003e55750805b601f850160051c820191505b818110156200040657828155600101620003f1565b505050505050565b81516001600160401b038111156200042a576200042a6200036a565b62000442816200043b845462000380565b84620003bc565b602080601f8311600181146200047a5760008415620004615750858301515b600019600386901b1c1916600185901b17855562000406565b600085815260208120601f198616915b82811015620004ab578886015182559484019460019091019084016200048a565b5085821015620004ca5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060208083528351808285015260005b818110156200050957858101830151858201604001528201620004eb565b506000604082860101526040601f19601f8301168501019250505092915050565b80516020808301519190811015620003b65760001960209190910360031b1b16919050565b60805160a05160c05160e051610100516101205161014051611aec620005aa60003960006107f2015260006107c0015260006109cc015260006109a4015260006108ff01526000610929015260006109530152611aec6000f3fe60806040526004361061003f5760003560e01c80630e8f09b614610044578063374e9ce6146100665780634d504f3e1461007957806384b0196e146100ac575b600080fd5b34801561005057600080fd5b5061006461005f366004610d9a565b6100d4565b005b610064610074366004610e61565b610266565b34801561008557600080fd5b50610099610094366004611220565b6104c1565b6040519081526020015b60405180910390f35b3480156100b857600080fd5b506100c16105b4565b6040516100a397969594939291906112ac565b60006100e36040850185611342565b60008181106100f4576100f4611391565b905060a0020180360381019061010a91906113a7565b9050600061011b60208601866113ca565b9050600282516005811115610132576101326113e7565b1461014757610147631e4cbc7f60e21b6105fa565b61018f610153866113fd565b85858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061060492505050565b604080516001808252818301909252600091816020015b6101ae610d1d565b8152602001906001900390816101a65790505090506101cc866113fd565b816000815181106101df576101df611391565b6020908102919091010152604051630fd9f1e160e41b81526cadc04c56bf30ac9d3c0aaf14dc9063fd9f1e109061021a908490600401611519565b6020604051808303816000875af1158015610239573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061025d919061161b565b50505050505050565b604082013560005b61027c61020085018561163d565b90508110156102ca5761029361020085018561163d565b828181106102a3576102a3611391565b6102b6926040909102013590508361169c565b9150806102c2816116af565b91505061026e565b5060006102da60208501856113ca565b6040516323b872dd60e01b81529091506001600160a01b038216906323b872dd9061030d903390309087906004016116c8565b6020604051808303816000875af115801561032c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610350919061161b565b5060405163095ea7b360e01b81526cadc04c56bf30ac9d3c0aaf14dc6004820152602481018390526001600160a01b0382169063095ea7b3906044016020604051808303816000875af11580156103ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103cf919061161b565b5060405163fb0f3ee160e01b81526cadc04c56bf30ac9d3c0aaf14dc9063fb0f3ee190349061040290889060040161180a565b60206040518083038185885af1158015610420573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610445919061161b565b5061045660c0850160a086016113ca565b6001600160a01b03166323b872dd30858760c001356040518463ffffffff1660e01b8152600401610489939291906116c8565b600060405180830381600087803b1580156104a357600080fd5b505af11580156104b7573d6000803e3d6000fd5b5050505050505050565b60006105ae7f2e7a4824b67544dd58a602dd40a14e536b8d48cb9b5e85f2e96d43af64479455836000015184602001518561010001516105048760400151610639565b604051602001610514919061197b565b6040516020818303038152906040528051906020012061053788606001516106e6565b604051602001610547919061197b565b60408051601f198184030181528282528051602091820120908301979097526001600160a01b0395861690820152939092166060840152608083015260a082015260c081019190915260e0016040516020818303038152906040528051906020012061078c565b92915050565b6000606080600080600060606105c86107b9565b6105d06107eb565b60408051600080825260208201909252600f60f81b9b939a50919850469750309650945092509050565b8060005260046000fd5b600061060f836104c1565b905061062083600001518284610818565b610634576106346340bef22160e11b6105fa565b505050565b6060600082516001600160401b0381111561065657610656610eb8565b60405190808252806020026020018201604052801561067f578160200160208202803683370190505b50905060005b83518110156106df576106b08482815181106106a3576106a3611391565b602002602001015161087a565b8282815181106106c2576106c2611391565b6020908102919091010152806106d7816116af565b915050610685565b5092915050565b6060600082516001600160401b0381111561070357610703610eb8565b60405190808252806020026020018201604052801561072c578160200160208202803683370190505b50905060005b83518110156106df5761075d84828151811061075057610750611391565b60200260200101516108c2565b82828151811061076f5761076f611391565b602090810291909101015280610784816116af565b915050610732565b60006105ae6107996108f2565b8360405161190160f01b8152600281019290925260228201526042902090565b60606107e67f00000000000000000000000000000000000000000000000000000000000000006000610a1d565b905090565b60606107e67f00000000000000000000000000000000000000000000000000000000000000006001610a1d565b60008060006108278585610ac9565b5090925090506000816003811115610841576108416113e7565b14801561085f5750856001600160a01b0316826001600160a01b0316145b806108705750610870868686610b16565b9695505050505050565b80516020808301516040808501516060860151608087015192516000966108a59690959491016119b1565b604051602081830303815290604052805190602001209050919050565b80516020808301516040808501516060860151608087015160a088015193516000976108a59790969591016119eb565b6000306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614801561094b57507f000000000000000000000000000000000000000000000000000000000000000046145b1561097557507f000000000000000000000000000000000000000000000000000000000000000090565b6107e6604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527f0000000000000000000000000000000000000000000000000000000000000000918101919091527f000000000000000000000000000000000000000000000000000000000000000060608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b606060ff8314610a3757610a3083610bf1565b90506105ae565b818054610a4390611a2e565b80601f0160208091040260200160405190810160405280929190818152602001828054610a6f90611a2e565b8015610abc5780601f10610a9157610100808354040283529160200191610abc565b820191906000526020600020905b815481529060010190602001808311610a9f57829003601f168201915b5050505050905092915050565b60008060008351604103610b035760208401516040850151606086015160001a610af588828585610c30565b955095509550505050610b0f565b50508151600091506002905b9250925092565b6000806000856001600160a01b03168585604051602401610b38929190611a68565b60408051601f198184030181529181526020820180516001600160e01b0316630b135d3f60e11b17905251610b6d9190611a81565b600060405180830381855afa9150503d8060008114610ba8576040519150601f19603f3d011682016040523d82523d6000602084013e610bad565b606091505b5091509150818015610bc157506020815110155b801561087057508051630b135d3f60e11b90610be69083016020908101908401611a9d565b149695505050505050565b60606000610bfe83610cf5565b604080516020808252818301909252919250600091906020820181803683375050509182525060208101929092525090565b600080806fa2a8918ca85bafe22016d0b997e4df60600160ff1b03841115610c615750600091506003905082610ceb565b604080516000808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015610cb5573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610ce157506000925060019150829050610ceb565b9250600091508190505b9450945094915050565b600060ff8216601f8111156105ae57604051632cd44ac360e21b815260040160405180910390fd5b60405180610160016040528060006001600160a01b0316815260200160006001600160a01b03168152602001606081526020016060815260200160006004811115610d6a57610d6a6113e7565b815260006020820181905260408201819052606082018190526080820181905260a0820181905260c09091015290565b600080600060408486031215610daf57600080fd5b83356001600160401b0380821115610dc657600080fd5b908501906101608288031215610ddb57600080fd5b90935060208501359080821115610df157600080fd5b818601915086601f830112610e0557600080fd5b813581811115610e1457600080fd5b876020828501011115610e2657600080fd5b6020830194508093505050509250925092565b6001600160a01b0381168114610e4e57600080fd5b50565b8035610e5c81610e39565b919050565b60008060408385031215610e7457600080fd5b82356001600160401b03811115610e8a57600080fd5b83016102408186031215610e9d57600080fd5b91506020830135610ead81610e39565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b60405160c081016001600160401b0381118282101715610ef057610ef0610eb8565b60405290565b60405161016081016001600160401b0381118282101715610ef057610ef0610eb8565b604051601f8201601f191681016001600160401b0381118282101715610f4157610f41610eb8565b604052919050565b60006001600160401b03821115610f6257610f62610eb8565b5060051b60200190565b803560068110610e5c57600080fd5b600060a08284031215610f8d57600080fd5b60405160a081018181106001600160401b0382111715610faf57610faf610eb8565b604052905080610fbe83610f6c565b81526020830135610fce81610e39565b806020830152506040830135604082015260608301356060820152608083013560808201525092915050565b600082601f83011261100b57600080fd5b8135602061102061101b83610f49565b610f19565b82815260a0928302850182019282820191908785111561103f57600080fd5b8387015b85811015611062576110558982610f7b565b8452928401928101611043565b5090979650505050505050565b600082601f83011261108057600080fd5b8135602061109061101b83610f49565b82815260c092830285018201928282019190878511156110af57600080fd5b8387015b858110156110625781818a0312156110cb5760008081fd5b6110d3610ece565b6110dc82610f6c565b8152858201356110eb81610e39565b8187015260408281013590820152606080830135908201526080808301359082015260a08083013561111c81610e39565b9082015284529284019281016110b3565b803560058110610e5c57600080fd5b6000610160828403121561114f57600080fd5b611157610ef6565b905061116282610e51565b815261117060208301610e51565b602082015260408201356001600160401b038082111561118f57600080fd5b61119b85838601610ffa565b604084015260608401359150808211156111b457600080fd5b506111c18482850161106f565b6060830152506111d36080830161112d565b608082015260a082013560a082015260c082013560c082015260e082013560e082015261010080830135818301525061012080830135818301525061014080830135818301525092915050565b60006020828403121561123257600080fd5b81356001600160401b0381111561124857600080fd5b6112548482850161113c565b949350505050565b60005b8381101561127757818101518382015260200161125f565b50506000910152565b6000815180845261129881602086016020860161125c565b601f01601f19169290920160200192915050565b60ff60f81b881681526000602060e0818401526112cc60e084018a611280565b83810360408501526112de818a611280565b606085018990526001600160a01b038816608086015260a0850187905284810360c0860152855180825283870192509083019060005b8181101561133057835183529284019291840191600101611314565b50909c9b505050505050505050505050565b6000808335601e1984360301811261135957600080fd5b8301803591506001600160401b0382111561137357600080fd5b602001915060a08102360382131561138a57600080fd5b9250929050565b634e487b7160e01b600052603260045260246000fd5b600060a082840312156113b957600080fd5b6113c38383610f7b565b9392505050565b6000602082840312156113dc57600080fd5b81356113c381610e39565b634e487b7160e01b600052602160045260246000fd5b60006105ae368361113c565b60068110611419576114196113e7565b9052565b600081518084526020808501945080840160005b83811015611487578151611446888251611409565b838101516001600160a01b03168885015260408082015190890152606080820151908901526080908101519088015260a09096019590820190600101611431565b509495945050505050565b600081518084526020808501945080840160005b838110156114875781516114bb888251611409565b808401516001600160a01b0390811689860152604080830151908a0152606080830151908a0152608080830151908a015260a091820151169088015260c090960195908201906001016114a6565b60058110611419576114196113e7565b60006020808301818452808551808352604092508286019150828160051b87010184880160005b8381101561160d57888303603f19018552815180516001600160a01b03168452610160818901516001600160a01b038116868b01525087820151818987015261158b8287018261141d565b915050606080830151868303828801526115a58382611492565b925050506080808301516115bb82880182611509565b505060a0828101519086015260c0808301519086015260e08083015190860152610100808301519086015261012080830151908601526101409182015191909401529386019390860190600101611540565b509098975050505050505050565b60006020828403121561162d57600080fd5b815180151581146113c357600080fd5b6000808335601e1984360301811261165457600080fd5b8301803591506001600160401b0382111561166e57600080fd5b6020019150600681901b360382131561138a57600080fd5b634e487b7160e01b600052601160045260246000fd5b808201808211156105ae576105ae611686565b6000600182016116c1576116c1611686565b5060010190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b803560188110610e5c57600080fd5b60188110611419576114196113e7565b6000808335601e1984360301811261172257600080fd5b83016020810192503590506001600160401b0381111561174157600080fd5b8060061b360382131561138a57600080fd5b8183526000602080850194508260005b8581101561148757813587528282013561177c81610e39565b6001600160a01b0316878401526040968701969190910190600101611763565b6000808335601e198436030181126117b357600080fd5b83016020810192503590506001600160401b038111156117d257600080fd5b80360382131561138a57600080fd5b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6020815261182b6020820161181e84610e51565b6001600160a01b03169052565b6020820135604082015260408201356060820152600061184d60608401610e51565b6001600160a01b03811660808401525061186960808401610e51565b6001600160a01b03811660a08401525061188560a08401610e51565b6001600160a01b03811660c08401525060c083013560e083015261010060e0840135818401526118b68185016116ec565b90506101206118c7818501836116fb565b6101409150808501358285015250610160818501358185015261018091508085013582850152506101a081850135818501526101c091508085013582850152506101e08185013581850152610200915080850135828501525061192c8185018561170b565b9150610240610220818187015261194861026087018585611753565b93506119568188018861179c565b878603601f190184890152935090506119708484836117e1565b979650505050505050565b815160009082906020808601845b838110156119a557815185529382019390820190600101611989565b50929695505050505050565b60a081016119bf8288611409565b6001600160a01b0395909516602082015260408101939093526060830191909152608090910152919050565b60c081016119f98289611409565b60018060a01b03808816602084015286604084015285606084015284608084015280841660a084015250979650505050505050565b600181811c90821680611a4257607f821691505b602082108103611a6257634e487b7160e01b600052602260045260246000fd5b50919050565b8281526040602082015260006112546040830184611280565b60008251611a9381846020870161125c565b9190910192915050565b600060208284031215611aaf57600080fd5b505191905056fea264697066735822122052314a67bf1fcb70e5de53aaedcf52c2bd62ac21164c9d31f21cb15495059fd064736f6c63430008150033

Deployed Bytecode

0x60806040526004361061003f5760003560e01c80630e8f09b614610044578063374e9ce6146100665780634d504f3e1461007957806384b0196e146100ac575b600080fd5b34801561005057600080fd5b5061006461005f366004610d9a565b6100d4565b005b610064610074366004610e61565b610266565b34801561008557600080fd5b50610099610094366004611220565b6104c1565b6040519081526020015b60405180910390f35b3480156100b857600080fd5b506100c16105b4565b6040516100a397969594939291906112ac565b60006100e36040850185611342565b60008181106100f4576100f4611391565b905060a0020180360381019061010a91906113a7565b9050600061011b60208601866113ca565b9050600282516005811115610132576101326113e7565b1461014757610147631e4cbc7f60e21b6105fa565b61018f610153866113fd565b85858080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061060492505050565b604080516001808252818301909252600091816020015b6101ae610d1d565b8152602001906001900390816101a65790505090506101cc866113fd565b816000815181106101df576101df611391565b6020908102919091010152604051630fd9f1e160e41b81526cadc04c56bf30ac9d3c0aaf14dc9063fd9f1e109061021a908490600401611519565b6020604051808303816000875af1158015610239573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061025d919061161b565b50505050505050565b604082013560005b61027c61020085018561163d565b90508110156102ca5761029361020085018561163d565b828181106102a3576102a3611391565b6102b6926040909102013590508361169c565b9150806102c2816116af565b91505061026e565b5060006102da60208501856113ca565b6040516323b872dd60e01b81529091506001600160a01b038216906323b872dd9061030d903390309087906004016116c8565b6020604051808303816000875af115801561032c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610350919061161b565b5060405163095ea7b360e01b81526cadc04c56bf30ac9d3c0aaf14dc6004820152602481018390526001600160a01b0382169063095ea7b3906044016020604051808303816000875af11580156103ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103cf919061161b565b5060405163fb0f3ee160e01b81526cadc04c56bf30ac9d3c0aaf14dc9063fb0f3ee190349061040290889060040161180a565b60206040518083038185885af1158015610420573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610445919061161b565b5061045660c0850160a086016113ca565b6001600160a01b03166323b872dd30858760c001356040518463ffffffff1660e01b8152600401610489939291906116c8565b600060405180830381600087803b1580156104a357600080fd5b505af11580156104b7573d6000803e3d6000fd5b5050505050505050565b60006105ae7f2e7a4824b67544dd58a602dd40a14e536b8d48cb9b5e85f2e96d43af64479455836000015184602001518561010001516105048760400151610639565b604051602001610514919061197b565b6040516020818303038152906040528051906020012061053788606001516106e6565b604051602001610547919061197b565b60408051601f198184030181528282528051602091820120908301979097526001600160a01b0395861690820152939092166060840152608083015260a082015260c081019190915260e0016040516020818303038152906040528051906020012061078c565b92915050565b6000606080600080600060606105c86107b9565b6105d06107eb565b60408051600080825260208201909252600f60f81b9b939a50919850469750309650945092509050565b8060005260046000fd5b600061060f836104c1565b905061062083600001518284610818565b610634576106346340bef22160e11b6105fa565b505050565b6060600082516001600160401b0381111561065657610656610eb8565b60405190808252806020026020018201604052801561067f578160200160208202803683370190505b50905060005b83518110156106df576106b08482815181106106a3576106a3611391565b602002602001015161087a565b8282815181106106c2576106c2611391565b6020908102919091010152806106d7816116af565b915050610685565b5092915050565b6060600082516001600160401b0381111561070357610703610eb8565b60405190808252806020026020018201604052801561072c578160200160208202803683370190505b50905060005b83518110156106df5761075d84828151811061075057610750611391565b60200260200101516108c2565b82828151811061076f5761076f611391565b602090810291909101015280610784816116af565b915050610732565b60006105ae6107996108f2565b8360405161190160f01b8152600281019290925260228201526042902090565b60606107e67f536561706f727450726f7879000000000000000000000000000000000000000c6000610a1d565b905090565b60606107e67f312e3000000000000000000000000000000000000000000000000000000000036001610a1d565b60008060006108278585610ac9565b5090925090506000816003811115610841576108416113e7565b14801561085f5750856001600160a01b0316826001600160a01b0316145b806108705750610870868686610b16565b9695505050505050565b80516020808301516040808501516060860151608087015192516000966108a59690959491016119b1565b604051602081830303815290604052805190602001209050919050565b80516020808301516040808501516060860151608087015160a088015193516000976108a59790969591016119eb565b6000306001600160a01b037f000000000000000000000000b126e5108596c965c10a1094a3a616425e6727cf1614801561094b57507f0000000000000000000000000000000000000000000000000000000000013e3146145b1561097557507fa0a2aa78d17401af88d980348573b061cd98270c880a7ce1264c6c47074b001490565b6107e6604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527fb7bc9389eee312376ece89bbb50e84cc1b208329e0bee8fc1bf1595a383e468d918101919091527fe6bbd6277e1bf288eed5e8d1780f9a50b239e86b153736bceebccf4ea79d90b360608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b606060ff8314610a3757610a3083610bf1565b90506105ae565b818054610a4390611a2e565b80601f0160208091040260200160405190810160405280929190818152602001828054610a6f90611a2e565b8015610abc5780601f10610a9157610100808354040283529160200191610abc565b820191906000526020600020905b815481529060010190602001808311610a9f57829003601f168201915b5050505050905092915050565b60008060008351604103610b035760208401516040850151606086015160001a610af588828585610c30565b955095509550505050610b0f565b50508151600091506002905b9250925092565b6000806000856001600160a01b03168585604051602401610b38929190611a68565b60408051601f198184030181529181526020820180516001600160e01b0316630b135d3f60e11b17905251610b6d9190611a81565b600060405180830381855afa9150503d8060008114610ba8576040519150601f19603f3d011682016040523d82523d6000602084013e610bad565b606091505b5091509150818015610bc157506020815110155b801561087057508051630b135d3f60e11b90610be69083016020908101908401611a9d565b149695505050505050565b60606000610bfe83610cf5565b604080516020808252818301909252919250600091906020820181803683375050509182525060208101929092525090565b600080806fa2a8918ca85bafe22016d0b997e4df60600160ff1b03841115610c615750600091506003905082610ceb565b604080516000808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa158015610cb5573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610ce157506000925060019150829050610ceb565b9250600091508190505b9450945094915050565b600060ff8216601f8111156105ae57604051632cd44ac360e21b815260040160405180910390fd5b60405180610160016040528060006001600160a01b0316815260200160006001600160a01b03168152602001606081526020016060815260200160006004811115610d6a57610d6a6113e7565b815260006020820181905260408201819052606082018190526080820181905260a0820181905260c09091015290565b600080600060408486031215610daf57600080fd5b83356001600160401b0380821115610dc657600080fd5b908501906101608288031215610ddb57600080fd5b90935060208501359080821115610df157600080fd5b818601915086601f830112610e0557600080fd5b813581811115610e1457600080fd5b876020828501011115610e2657600080fd5b6020830194508093505050509250925092565b6001600160a01b0381168114610e4e57600080fd5b50565b8035610e5c81610e39565b919050565b60008060408385031215610e7457600080fd5b82356001600160401b03811115610e8a57600080fd5b83016102408186031215610e9d57600080fd5b91506020830135610ead81610e39565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b60405160c081016001600160401b0381118282101715610ef057610ef0610eb8565b60405290565b60405161016081016001600160401b0381118282101715610ef057610ef0610eb8565b604051601f8201601f191681016001600160401b0381118282101715610f4157610f41610eb8565b604052919050565b60006001600160401b03821115610f6257610f62610eb8565b5060051b60200190565b803560068110610e5c57600080fd5b600060a08284031215610f8d57600080fd5b60405160a081018181106001600160401b0382111715610faf57610faf610eb8565b604052905080610fbe83610f6c565b81526020830135610fce81610e39565b806020830152506040830135604082015260608301356060820152608083013560808201525092915050565b600082601f83011261100b57600080fd5b8135602061102061101b83610f49565b610f19565b82815260a0928302850182019282820191908785111561103f57600080fd5b8387015b85811015611062576110558982610f7b565b8452928401928101611043565b5090979650505050505050565b600082601f83011261108057600080fd5b8135602061109061101b83610f49565b82815260c092830285018201928282019190878511156110af57600080fd5b8387015b858110156110625781818a0312156110cb5760008081fd5b6110d3610ece565b6110dc82610f6c565b8152858201356110eb81610e39565b8187015260408281013590820152606080830135908201526080808301359082015260a08083013561111c81610e39565b9082015284529284019281016110b3565b803560058110610e5c57600080fd5b6000610160828403121561114f57600080fd5b611157610ef6565b905061116282610e51565b815261117060208301610e51565b602082015260408201356001600160401b038082111561118f57600080fd5b61119b85838601610ffa565b604084015260608401359150808211156111b457600080fd5b506111c18482850161106f565b6060830152506111d36080830161112d565b608082015260a082013560a082015260c082013560c082015260e082013560e082015261010080830135818301525061012080830135818301525061014080830135818301525092915050565b60006020828403121561123257600080fd5b81356001600160401b0381111561124857600080fd5b6112548482850161113c565b949350505050565b60005b8381101561127757818101518382015260200161125f565b50506000910152565b6000815180845261129881602086016020860161125c565b601f01601f19169290920160200192915050565b60ff60f81b881681526000602060e0818401526112cc60e084018a611280565b83810360408501526112de818a611280565b606085018990526001600160a01b038816608086015260a0850187905284810360c0860152855180825283870192509083019060005b8181101561133057835183529284019291840191600101611314565b50909c9b505050505050505050505050565b6000808335601e1984360301811261135957600080fd5b8301803591506001600160401b0382111561137357600080fd5b602001915060a08102360382131561138a57600080fd5b9250929050565b634e487b7160e01b600052603260045260246000fd5b600060a082840312156113b957600080fd5b6113c38383610f7b565b9392505050565b6000602082840312156113dc57600080fd5b81356113c381610e39565b634e487b7160e01b600052602160045260246000fd5b60006105ae368361113c565b60068110611419576114196113e7565b9052565b600081518084526020808501945080840160005b83811015611487578151611446888251611409565b838101516001600160a01b03168885015260408082015190890152606080820151908901526080908101519088015260a09096019590820190600101611431565b509495945050505050565b600081518084526020808501945080840160005b838110156114875781516114bb888251611409565b808401516001600160a01b0390811689860152604080830151908a0152606080830151908a0152608080830151908a015260a091820151169088015260c090960195908201906001016114a6565b60058110611419576114196113e7565b60006020808301818452808551808352604092508286019150828160051b87010184880160005b8381101561160d57888303603f19018552815180516001600160a01b03168452610160818901516001600160a01b038116868b01525087820151818987015261158b8287018261141d565b915050606080830151868303828801526115a58382611492565b925050506080808301516115bb82880182611509565b505060a0828101519086015260c0808301519086015260e08083015190860152610100808301519086015261012080830151908601526101409182015191909401529386019390860190600101611540565b509098975050505050505050565b60006020828403121561162d57600080fd5b815180151581146113c357600080fd5b6000808335601e1984360301811261165457600080fd5b8301803591506001600160401b0382111561166e57600080fd5b6020019150600681901b360382131561138a57600080fd5b634e487b7160e01b600052601160045260246000fd5b808201808211156105ae576105ae611686565b6000600182016116c1576116c1611686565b5060010190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b803560188110610e5c57600080fd5b60188110611419576114196113e7565b6000808335601e1984360301811261172257600080fd5b83016020810192503590506001600160401b0381111561174157600080fd5b8060061b360382131561138a57600080fd5b8183526000602080850194508260005b8581101561148757813587528282013561177c81610e39565b6001600160a01b0316878401526040968701969190910190600101611763565b6000808335601e198436030181126117b357600080fd5b83016020810192503590506001600160401b038111156117d257600080fd5b80360382131561138a57600080fd5b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6020815261182b6020820161181e84610e51565b6001600160a01b03169052565b6020820135604082015260408201356060820152600061184d60608401610e51565b6001600160a01b03811660808401525061186960808401610e51565b6001600160a01b03811660a08401525061188560a08401610e51565b6001600160a01b03811660c08401525060c083013560e083015261010060e0840135818401526118b68185016116ec565b90506101206118c7818501836116fb565b6101409150808501358285015250610160818501358185015261018091508085013582850152506101a081850135818501526101c091508085013582850152506101e08185013581850152610200915080850135828501525061192c8185018561170b565b9150610240610220818187015261194861026087018585611753565b93506119568188018861179c565b878603601f190184890152935090506119708484836117e1565b979650505050505050565b815160009082906020808601845b838110156119a557815185529382019390820190600101611989565b50929695505050505050565b60a081016119bf8288611409565b6001600160a01b0395909516602082015260408101939093526060830191909152608090910152919050565b60c081016119f98289611409565b60018060a01b03808816602084015286604084015285606084015284608084015280841660a084015250979650505050505050565b600181811c90821680611a4257607f821691505b602082108103611a6257634e487b7160e01b600052602260045260246000fd5b50919050565b8281526040602082015260006112546040830184611280565b60008251611a9381846020870161125c565b9190910192915050565b600060208284031215611aaf57600080fd5b505191905056fea264697066735822122052314a67bf1fcb70e5de53aaedcf52c2bd62ac21164c9d31f21cb15495059fd064736f6c63430008150033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

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.