Skip to content
Verified contractPartialUNLICENSED

TipJar

Address0xb2467e28ca57987cc4d58fd46902661d98bb951d
Balance

0 ETH

 

Transactions

1

 

Compiler

solc 0.8.38

 

Same code

Only this contract

 

Details

Compiler
solc 0.8.38+commit.1835d247
Language
solidity
Optimization
Yes, 1,000,000 runs
EVM version
cancun
License
UNLICENSED
Match
Partialcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
26,484,928
Creation transaction
0x5659a9546c…c35a575d5f
Libraries
src/libraries/Money.sol:Money0x2d60…6d5ce1src/libraries/Waits.sol:Waits0xc87e…116477src/libraries/Orders.sol:Orders0x841e…0f9a33src/libraries/Opening.sol:Opening0xe0a7…2a35c8src/libraries/Curation.sol:Curation0x2d1d…424f27src/libraries/Swapping.sol:Swapping0xe780…9c8e9d

82 files

The source code is large: one file is shown at a time. Choose a file in the list.

src/helpers/TipJar.sol

// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.38;

import {IPoolManager} from "@uniswap/v4-core/src/interfaces/IPoolManager.sol";
import {IUnlockCallback} from "@uniswap/v4-core/src/interfaces/callback/IUnlockCallback.sol";
import {PoolKey} from "@uniswap/v4-core/src/types/PoolKey.sol";
import {PoolId, PoolIdLibrary} from "@uniswap/v4-core/src/types/PoolId.sol";
import {Currency, CurrencyLibrary} from "@uniswap/v4-core/src/types/Currency.sol";
import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {SafeERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import {IVRFCoordinatorV2Plus} from "@chainlink/contracts/src/v0.8/vrf/interfaces/IVRFCoordinatorV2Plus.sol";
import {VRFV2PlusClient} from "@chainlink/contracts/src/v0.8/vrf/libraries/VRFV2PlusClient.sol";
import {Mandate} from "../Mandate.sol";
import {IHuman} from "../interfaces/IHuman.sol";

/// @title TipJar
/// @notice Two buttons on every Mandate pool, and a free daily draw (plan 08 part R3 and R4).
///         - DONATE gives coins to the pool's in-range providers at once, with the PoolManager's own `donate`.
///         - TIP puts coins in the prize of the next draw. Anyone may tip; a tip never buys an entry.
///         - ENTER: a verified human enters today's draw, free (not payable, no coin moves), once a day.
///         - CLOSE: after a day with entries ends, anyone closes it: every tip not yet won becomes that day's prize and
///           Chainlink VRF v2.5 is asked for one random word. The winner is the entrant at `word mod entries`.
///         - CLAIM: the winner takes each coin of the prize, to any address.
///         A day with no entries has no draw: its tips wait for the next one. A day with no prize closes without asking
///         VRF. A day whose answer has not come 3 days after it was asked can be expired by anyone: its prize goes back to
///         the tips and that day is never asked again (a second request would let an answerer that withholds pick).
/// @dev The VRF coordinator, key hash and confirmations are immutable, and this contract is not a VRFConsumerBaseV2Plus
///      (whose owner may change the coordinator, and so could answer with a word of its choosing). The Safe may name
///      the human check once and change the VRF subscription; it can never move a coin out. Nothing reads a block value
///      for randomness. A TipJar deployed with no coordinator (a chain with no VRF v2.5) only donates.
contract TipJar is IUnlockCallback {
    using PoolIdLibrary for PoolKey;
    using SafeERC20 for IERC20;

    /// @notice The most gas the human check may use for one answer.
    uint256 public constant HUMAN_GAS = 100_000;
    /// @notice The gas the coordinator gives the answer (it picks the winner and writes one slot).
    uint32 public constant CALLBACK_GAS = 100_000;
    /// @notice How long an asked day waits for its answer before anyone may expire it.
    uint256 public constant ANSWER_WAIT = 3 days;
    /// @notice The most prize coins a TipJar takes.
    uint256 public constant MAX_COINS = 8;
    /// @notice Why a day closed with no winner.
    uint8 public constant NO_PRIZE = 1;
    uint8 public constant NO_ANSWER = 2;

    enum State {
        Open,
        Asked,
        Won,
        Lapsed
    }

    /// @notice One day's draw: how many entered, where it stands, when VRF was asked, and the winner.
    struct Day {
        uint32 entries;
        State state;
        uint40 askedAt;
        address winner;
        uint256 requestId;
    }

    IPoolManager public immutable poolManager;
    Mandate public immutable hook;
    address public immutable safe;
    IVRFCoordinatorV2Plus public immutable coordinator;
    bytes32 public immutable keyHash;
    uint16 public immutable confirmations;

    /// @notice Who answers "is this a verified human". Zero until the Safe names it, once.
    IHuman public human;
    /// @notice The VRF subscription that pays for the words (the Safe's), and whether it pays in the native coin.
    uint256 public subId;
    bool public payInNative;

    Currency[] private _coins;
    mapping(Currency => bool) public isPrizeCoin;
    /// @notice Tips not yet in a draw, per coin.
    mapping(Currency => uint256) public open;
    mapping(uint256 day => Day) private _days;
    mapping(uint256 day => mapping(uint256 n => address)) private _entrant;
    mapping(uint256 day => mapping(address => bool)) public entered;
    mapping(uint256 day => mapping(Currency => uint256)) public prizeOf;
    mapping(uint256 day => mapping(Currency => bool)) public claimed;
    mapping(uint256 requestId => uint256 dayPlusOne) private _dayOf;
    /// @dev The days that have entries, oldest first; `head` is the next one to close.
    uint256[] private _queue;
    uint256 public head;

    bool private transient _entered;

    event Donated(PoolId indexed id, address indexed from, uint256 amount0, uint256 amount1);
    event Tipped(address indexed from, Currency indexed coin, uint256 amount);
    event Entered(uint256 indexed day, address indexed who, uint256 n);
    event Asked(uint256 indexed day, uint256 requestId, uint256 entries);
    event Won(uint256 indexed day, address indexed winner, uint256 word);
    event Lapsed(uint256 indexed day, uint8 why);
    event Claimed(uint256 indexed day, Currency indexed coin, address to, uint256 amount);
    event HumanSet(address human);
    event SubscriptionSet(uint256 subId, bool payInNative);

    error NotSafe();
    error NotManager();
    error NotMandate();
    error NotCoordinator();
    error Locked();
    error NoCode();
    error BadDraw();
    error BadCoins();
    error NoDraw();
    error Nothing();
    error BadValue();
    error NotAPrizeCoin();
    error NotHuman();
    error AlreadyIn();
    error NothingToClose();
    error DayNotOver();
    error NoSubscription();
    error NotAsked();
    error TooSoon();
    error NotTheWinner();
    error NothingToClaim();
    error NoRecipient();
    error PayFailed();
    error HumanAlreadySet();

    modifier onlySafe() {
        if (msg.sender != safe) revert NotSafe();
        _;
    }

    modifier once() {
        if (_entered) revert Locked();
        _entered = true;
        _;
        _entered = false;
    }

    /// @param coordinator_ the chain's VRF v2.5 coordinator, or zero on a chain without one (then only DONATE works)
    /// @param keyHash_ the gas lane Chainlink lists for that coordinator (zero with no coordinator)
    /// @param confirmations_ blocks VRF waits before answering, 1 to 200 (zero with no coordinator)
    /// @param coins_ the prize coins, 1 to 8, address(0) for the native coin (none with no coordinator)
    constructor(
        Mandate hook_,
        address safe_,
        IVRFCoordinatorV2Plus coordinator_,
        bytes32 keyHash_,
        uint16 confirmations_,
        Currency[] memory coins_
    ) {
        if (address(hook_).code.length == 0 || safe_ == address(0)) revert NoCode();
        if (address(coordinator_) == address(0)) {
            if (keyHash_ != bytes32(0) || confirmations_ != 0 || coins_.length != 0) revert BadDraw();
        } else {
            if (address(coordinator_).code.length == 0) revert NoCode();
            if (keyHash_ == bytes32(0) || confirmations_ == 0 || confirmations_ > 200) revert BadDraw();
            if (coins_.length == 0 || coins_.length > MAX_COINS) revert BadCoins();
            for (uint256 i; i < coins_.length; ++i) {
                Currency c = coins_[i];
                if (isPrizeCoin[c]) revert BadCoins();
                if (!c.isAddressZero() && Currency.unwrap(c).code.length == 0) revert NoCode();
                isPrizeCoin[c] = true;
                _coins.push(c);
            }
        }
        hook = hook_;
        poolManager = hook_.poolManager();
        safe = safe_;
        coordinator = coordinator_;
        keyHash = keyHash_;
        confirmations = confirmations_;
    }

    // ---- donate ----

    /// @notice DONATE `amount0` and `amount1` to a Mandate pool's in-range providers, from the caller. Native ETH in is
    ///         the call's value, exactly.
    function donate(PoolKey calldata key, uint256 amount0, uint256 amount1) external payable once {
        if (address(key.hooks) != address(hook)) revert NotMandate();
        if (amount0 == 0 && amount1 == 0) revert Nothing();
        if (msg.value != (key.currency0.isAddressZero() ? amount0 : 0)) revert BadValue();
        poolManager.unlock(abi.encode(msg.sender, key, amount0, amount1));
        emit Donated(key.toId(), msg.sender, amount0, amount1);
    }

    /// @dev Only the PoolManager, only inside this contract's own `donate`.
    function unlockCallback(bytes calldata data) external returns (bytes memory) {
        if (msg.sender != address(poolManager)) revert NotManager();
        if (!_entered) revert Locked();
        (address payer, PoolKey memory key, uint256 amount0, uint256 amount1) =
            abi.decode(data, (address, PoolKey, uint256, uint256));
        poolManager.donate(key, amount0, amount1, "");
        _settle(key.currency0, payer, amount0);
        _settle(key.currency1, payer, amount1);
        return "";
    }

    function _settle(Currency c, address payer, uint256 amount) private {
        if (amount == 0) return;
        poolManager.sync(c);
        if (c.isAddressZero()) {
            poolManager.settle{value: amount}();
        } else {
            IERC20(Currency.unwrap(c)).safeTransferFrom(payer, address(poolManager), amount);
            poolManager.settle();
        }
    }

    // ---- tip ----

    /// @notice TIP `amount` of a prize coin into the next draw's prize. What arrives is counted (a coin that keeps a
    ///         fee on transfer counts what it delivers). Native ETH is the call's value, exactly.
    function tip(Currency coin, uint256 amount) external payable once {
        _drawOn();
        if (!isPrizeCoin[coin]) revert NotAPrizeCoin();
        if (amount == 0) revert Nothing();
        uint256 got;
        if (coin.isAddressZero()) {
            if (msg.value != amount) revert BadValue();
            got = amount;
        } else {
            if (msg.value != 0) revert BadValue();
            IERC20 token = IERC20(Currency.unwrap(coin));
            uint256 before = token.balanceOf(address(this));
            token.safeTransferFrom(msg.sender, address(this), amount);
            got = token.balanceOf(address(this)) - before;
        }
        open[coin] += got;
        emit Tipped(msg.sender, coin, got);
    }

    // ---- the draw ----

    /// @notice ENTER today's draw: free, once a day, verified humans only. Moves no coin.
    function enter() external returns (uint256 day) {
        _drawOn();
        if (!isHuman(msg.sender)) revert NotHuman();
        day = today();
        if (entered[day][msg.sender]) revert AlreadyIn();
        entered[day][msg.sender] = true;
        Day storage d = _days[day];
        uint32 n = d.entries;
        if (n == 0) _queue.push(day);
        _entrant[day][n] = msg.sender;
        d.entries = n + 1;
        emit Entered(day, msg.sender, n);
    }

    /// @notice CLOSE the oldest day that has entries, once it is over: every tip not yet won becomes its prize and VRF
    ///         is asked for one word. With no prize, the day closes with no request and no winner.
    function close() external once returns (uint256 day, uint256 requestId) {
        _drawOn();
        if (subId == 0) revert NoSubscription();
        if (head == _queue.length) revert NothingToClose();
        day = _queue[head];
        if (day >= today()) revert DayNotOver();
        ++head;
        Day storage d = _days[day];
        bool any;
        for (uint256 i; i < _coins.length; ++i) {
            Currency c = _coins[i];
            uint256 a = open[c];
            if (a != 0) {
                prizeOf[day][c] = a;
                open[c] = 0;
                any = true;
            }
        }
        if (!any) {
            d.state = State.Lapsed;
            emit Lapsed(day, NO_PRIZE);
            return (day, 0);
        }
        requestId = coordinator.requestRandomWords(
            VRFV2PlusClient.RandomWordsRequest({
                keyHash: keyHash,
                subId: subId,
                requestConfirmations: confirmations,
                callbackGasLimit: CALLBACK_GAS,
                numWords: 1,
                extraArgs: VRFV2PlusClient._argsToBytes(VRFV2PlusClient.ExtraArgsV1({nativePayment: payInNative}))
            })
        );
        d.state = State.Asked;
        d.askedAt = uint40(block.timestamp);
        d.requestId = requestId;
        _dayOf[requestId] = day + 1;
        emit Asked(day, requestId, d.entries);
    }

    /// @notice The coordinator's answer: the winner is the entrant at `word mod entries`. An answer for a day that is no
    ///         longer waiting (expired) is ignored.
    function rawFulfillRandomWords(uint256 requestId, uint256[] calldata words) external {
        if (msg.sender != address(coordinator)) revert NotCoordinator();
        uint256 plusOne = _dayOf[requestId];
        if (plusOne == 0 || words.length == 0) return;
        uint256 day = plusOne - 1;
        Day storage d = _days[day];
        if (d.state != State.Asked || d.requestId != requestId) return;
        address winner = _entrant[day][words[0] % d.entries];
        d.state = State.Won;
        d.winner = winner;
        emit Won(day, winner, words[0]);
    }

    /// @notice EXPIRE a day whose answer has not come within 3 days of asking: no winner, its prize back to the tips.
    function expire(uint256 day) external {
        Day storage d = _days[day];
        if (d.state != State.Asked) revert NotAsked();
        if (block.timestamp < uint256(d.askedAt) + ANSWER_WAIT) revert TooSoon();
        d.state = State.Lapsed;
        for (uint256 i; i < _coins.length; ++i) {
            Currency c = _coins[i];
            uint256 a = prizeOf[day][c];
            if (a != 0) {
                prizeOf[day][c] = 0;
                open[c] += a;
            }
        }
        emit Lapsed(day, NO_ANSWER);
    }

    /// @notice CLAIM: the day's winner takes the prize in `coin`, to `to`.
    function claim(uint256 day, Currency coin, address to) external once returns (uint256 amount) {
        Day storage d = _days[day];
        if (d.state != State.Won || msg.sender != d.winner) revert NotTheWinner();
        if (to == address(0)) revert NoRecipient();
        amount = prizeOf[day][coin];
        if (amount == 0 || claimed[day][coin]) revert NothingToClaim();
        claimed[day][coin] = true;
        if (coin.isAddressZero()) {
            (bool ok,) = to.call{value: amount}("");
            if (!ok) revert PayFailed();
        } else {
            IERC20(Currency.unwrap(coin)).safeTransfer(to, amount);
        }
        emit Claimed(day, coin, to, amount);
    }

    // ---- reads ----

    /// @notice The UTC day number: block time / 86,400.
    function today() public view returns (uint256) {
        return block.timestamp / 1 days;
    }

    function dayOf(uint256 day) external view returns (Day memory) {
        return _days[day];
    }

    function entrantOf(uint256 day, uint256 n) external view returns (address) {
        return _entrant[day][n];
    }

    function coins() external view returns (Currency[] memory) {
        return _coins;
    }

    /// @notice The day the next `close` takes, and whether there is one.
    function nextToClose() external view returns (bool any, uint256 day) {
        if (head == _queue.length) return (false, 0);
        return (true, _queue[head]);
    }

    /// @notice Is `account` a verified human, by the check the Safe named. The check's revert, its running out of
    ///         gas, or an answer in another shape counts as "no".
    function isHuman(address account) public view returns (bool) {
        address h = address(human);
        if (h == address(0)) return false;
        bytes memory input = abi.encodeCall(IHuman.isHuman, (account));
        uint256 gasCap = HUMAN_GAS;
        bool ok;
        uint256 word;
        assembly ("memory-safe") {
            ok := staticcall(gasCap, h, add(input, 0x20), mload(input), 0, 0)
            if ok {
                ok := eq(returndatasize(), 0x20)
                if ok {
                    returndatacopy(0, 0, 0x20)
                    word := mload(0)
                }
            }
        }
        return ok && word == 1;
    }

    function _drawOn() private view {
        if (address(coordinator) == address(0)) revert NoDraw();
    }

    // ---- the Safe ----

    /// @notice The Safe names the human check, once. Until then nobody can enter.
    function setHuman(IHuman h) external onlySafe {
        if (address(human) != address(0)) revert HumanAlreadySet();
        if (address(h).code.length == 0) revert NoCode();
        human = h;
        emit HumanSet(address(h));
    }

    /// @notice The Safe names the VRF subscription that pays for the words. Changing it moves no coin and cannot choose a
    ///         word; an unfunded subscription only leaves days unanswered until they expire.
    function setSubscription(uint256 subId_, bool payInNative_) external onlySafe {
        _drawOn();
        if (subId_ == 0) revert NoSubscription();
        subId = subId_;
        payInNative = payInNative_;
        emit SubscriptionSet(subId_, payInNative_);
    }
}
Compiler settingsShow
{
  "viaIR": false,
  "metadata": {
    "appendCBOR": true,
    "bytecodeHash": "none",
    "useLiteralContent": false
  },
  "libraries": {
    "src/libraries/Money.sol": {
      "Money": "0x2D60dbfB22835f61099A98Bef673221D546d5Ce1"
    },
    "src/libraries/Waits.sol": {
      "Waits": "0xC87eb1951a2902f7c4ffA8C6DA9FF89998116477"
    },
    "src/libraries/Orders.sol": {
      "Orders": "0x841e240463238662534DA0C280873fF3610f9a33"
    },
    "src/libraries/Opening.sol": {
      "Opening": "0xe0a7ca57c90D541d35E6AcC0Da68e1E9602A35C8"
    },
    "src/libraries/Curation.sol": {
      "Curation": "0x2D1d0C39Cbb0cCCb08E66E869a84Be1338424F27"
    },
    "src/libraries/Swapping.sol": {
      "Swapping": "0xE780F756834F4c167245885F0dbF9134f99C8E9D"
    }
  },
  "optimizer": {
    "runs": 1000000,
    "enabled": true
  },
  "viaSSACFG": false,
  "evmVersion": "cancun",
  "remappings": [
    "forge-std/=lib/forge-std/src/",
    "hookmate/=lib/hookmate/src/",
    "@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/",
    "@uniswap/v4-core/=lib/uniswap-hooks/lib/v4-core/",
    "@uniswap/v4-periphery/=lib/uniswap-hooks/lib/v4-periphery/",
    "solmate/=lib/uniswap-hooks/lib/v4-core/lib/solmate/",
    "@chainlink/contracts-ccip/contracts/=lib/chainlink-ccip/chains/evm/contracts/",
    "@chainlink/contracts/=lib/chainlink-evm/contracts/",
    "@openzeppelin/[email protected]/=lib/openzeppelin-contracts/contracts/",
    "@openzeppelin/[email protected]/=lib/openzeppelin-contracts/contracts/",
    "lib/uniswap-hooks/lib/v4-periphery/lib/permit2/lib/forge-gas-snapshot/lib/forge-std/:ds-test/=lib/uniswap-hooks/lib/v4-periphery/lib/permit2/lib/forge-gas-snapshot/lib/forge-std/lib/ds-test/src/",
    "lib/uniswap-hooks/lib/v4-periphery/lib/permit2/lib/forge-gas-snapshot/lib/forge-std/:ds-test/=lib/uniswap-hooks/lib/v4-periphery/lib/permit2/lib/forge-gas-snapshot/lib/forge-std/lib/ds-test/src/",
    "lib/uniswap-hooks/lib/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/lib/forge-std/:ds-test/=lib/uniswap-hooks/lib/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/",
    "lib/uniswap-hooks/lib/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/lib/forge-std/:ds-test/=lib/uniswap-hooks/lib/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/",
    "lib/uniswap-hooks/lib/v4-core/lib/openzeppelin-contracts/lib/forge-std/:ds-test/=lib/uniswap-hooks/lib/v4-core/lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/",
    "lib/uniswap-hooks/lib/v4-core/lib/openzeppelin-contracts/lib/forge-std/:ds-test/=lib/uniswap-hooks/lib/v4-core/lib/openzeppelin-contracts/lib/forge-std/lib/ds-test/src/",
    "lib/uniswap-hooks/lib/v4-periphery/lib/permit2/lib/forge-std/:ds-test/=lib/uniswap-hooks/lib/v4-periphery/lib/permit2/lib/forge-std/lib/ds-test/src/",
    "lib/uniswap-hooks/lib/v4-periphery/lib/permit2/lib/forge-std/:ds-test/=lib/uniswap-hooks/lib/v4-periphery/lib/permit2/lib/forge-std/lib/ds-test/src/",
    "lib/uniswap-hooks/lib/v4-periphery/lib/permit2/lib/solmate/:ds-test/=lib/uniswap-hooks/lib/v4-periphery/lib/permit2/lib/solmate/lib/ds-test/src/",
    "lib/uniswap-hooks/lib/v4-periphery/lib/permit2/lib/solmate/:ds-test/=lib/uniswap-hooks/lib/v4-periphery/lib/permit2/lib/solmate/lib/ds-test/src/",
    "lib/uniswap-hooks/lib/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/:erc4626-tests/=lib/uniswap-hooks/lib/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/lib/erc4626-tests/",
    "lib/uniswap-hooks/lib/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/:erc4626-tests/=lib/uniswap-hooks/lib/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/lib/erc4626-tests/",
    "lib/uniswap-hooks/lib/v4-periphery/lib/v4-core/lib/solmate/:ds-test/=lib/uniswap-hooks/lib/v4-periphery/lib/v4-core/lib/solmate/lib/ds-test/src/",
    "lib/uniswap-hooks/lib/v4-periphery/lib/v4-core/lib/solmate/:ds-test/=lib/uniswap-hooks/lib/v4-periphery/lib/v4-core/lib/solmate/lib/ds-test/src/",
    "lib/uniswap-hooks/lib/v4-core/lib/openzeppelin-contracts/:erc4626-tests/=lib/uniswap-hooks/lib/v4-core/lib/openzeppelin-contracts/lib/erc4626-tests/",
    "lib/uniswap-hooks/lib/v4-core/lib/openzeppelin-contracts/:erc4626-tests/=lib/uniswap-hooks/lib/v4-core/lib/openzeppelin-contracts/lib/erc4626-tests/",
    "lib/uniswap-hooks/lib/v4-core/lib/solmate/:ds-test/=lib/uniswap-hooks/lib/v4-core/lib/solmate/lib/ds-test/src/",
    "lib/uniswap-hooks/lib/v4-core/lib/solmate/:ds-test/=lib/uniswap-hooks/lib/v4-core/lib/solmate/lib/ds-test/src/",
    "lib/uniswap-hooks/lib/v4-periphery/lib/permit2/:openzeppelin-contracts/=lib/uniswap-hooks/lib/v4-periphery/lib/permit2/lib/openzeppelin-contracts/",
    "lib/uniswap-hooks/lib/v4-periphery/lib/permit2/:openzeppelin-contracts/=lib/uniswap-hooks/lib/v4-periphery/lib/permit2/lib/openzeppelin-contracts/",
    "lib/uniswap-hooks/lib/v4-periphery/lib/v4-core/:openzeppelin-contracts/=lib/uniswap-hooks/lib/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/",
    "lib/uniswap-hooks/lib/v4-periphery/lib/v4-core/:openzeppelin-contracts/=lib/uniswap-hooks/lib/v4-periphery/lib/v4-core/lib/openzeppelin-contracts/",
    "lib/uniswap-hooks/lib/v4-core/:openzeppelin-contracts/=lib/uniswap-hooks/lib/v4-core/lib/openzeppelin-contracts/",
    "lib/uniswap-hooks/lib/v4-core/:openzeppelin-contracts/=lib/uniswap-hooks/lib/v4-core/lib/openzeppelin-contracts/",
    "lib/uniswap-hooks/lib/v4-periphery/:v4-core/=lib/uniswap-hooks/lib/v4-periphery/lib/v4-core/src/",
    "lib/uniswap-hooks/lib/v4-periphery/:v4-core/=lib/uniswap-hooks/lib/v4-periphery/lib/v4-core/src/",
    "lib/uniswap-hooks/:v4-core/=lib/uniswap-hooks/lib/v4-core/src/",
    "lib/uniswap-hooks/:v4-core/=lib/uniswap-hooks/lib/v4-core/src/",
    "@ensdomains/=lib/uniswap-hooks/lib/v4-core/node_modules/@ensdomains/",
    "@openzeppelin/=lib/uniswap-hooks/lib/v4-core/lib/openzeppelin-contracts/",
    "chainlink-ccip/=lib/chainlink-ccip/",
    "chainlink-evm/=lib/chainlink-evm/contracts/",
    "ds-test/=lib/uniswap-hooks/lib/v4-core/lib/forge-std/lib/ds-test/src/",
    "erc4626-tests/=lib/uniswap-hooks/lib/v4-core/lib/openzeppelin-contracts/lib/erc4626-tests/",
    "forge-gas-snapshot/=lib/uniswap-hooks/lib/v4-periphery/lib/permit2/lib/forge-gas-snapshot/src/",
    "hardhat/=lib/uniswap-hooks/lib/v4-core/node_modules/hardhat/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/",
    "permit2/=lib/uniswap-hooks/lib/v4-periphery/lib/permit2/",
    "uniswap-hooks/=lib/uniswap-hooks/src/",
    "v4-core/=lib/uniswap-hooks/lib/v4-core/src/",
    "v4-periphery/=lib/uniswap-hooks/lib/v4-periphery/"
  ],
  "experimental": false
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.