diff --git a/.github/scripts/consumer-smoke.sh b/.github/scripts/consumer-smoke.sh new file mode 100755 index 0000000..9f44635 --- /dev/null +++ b/.github/scripts/consumer-smoke.sh @@ -0,0 +1,175 @@ +#!/usr/bin/env bash +# Consumer smoke test for the @chainlink/local npm tarball. +# +# Packs the repo (npm pack), then builds two throwaway consumer projects that install ONLY the +# published tarball (plus hardhat for the Hardhat consumer) and run two Solidity tests against it: +# 1. The README usage example (test/smoke/ccip/ReadmeUsageExample.t.sol), copied verbatim. +# 2. A CCIPLocalSimulatorFork smoke test asserting known Sepolia network details. +# +# Assumes `npm ci` has already been run in the repo (this script does not install repo devDependencies). +# Needs network access to registry.npmjs.org (tarball deps) and github.com (forge-std is a git dependency). +set -euo pipefail + +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +REPO_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)" + +WORK_DIR="$(mktemp -d "${TMPDIR:-/tmp}/chainlink-local-consumer-smoke.XXXXXX")" +cleanup() { rm -rf "$WORK_DIR"; } +trap cleanup EXIT + +log() { printf '\n==> %s\n' "$1"; } + +# --------------------------------------------------------------------------- +# 1. Pack the repo and sanity-check the tarball / repo state around npm pack. +# --------------------------------------------------------------------------- +log "Packing repo with npm pack" +PACK_DIR="$WORK_DIR/pack" +mkdir -p "$PACK_DIR" + +(cd "$REPO_ROOT" && npm pack --silent --pack-destination "$PACK_DIR") + +shopt -s nullglob +TGZ_FILES=("$PACK_DIR"/*.tgz) +shopt -u nullglob +if [[ ${#TGZ_FILES[@]} -ne 1 ]]; then + echo "FAIL: expected exactly one tarball in $PACK_DIR, found ${#TGZ_FILES[@]}" >&2 + exit 1 +fi +TGZ="${TGZ_FILES[0]}" +log "Tarball: $TGZ" + +log "Checking repo remappings.txt is unchanged after npm pack (prepack/postpack must restore it)" +(cd "$REPO_ROOT" && git diff --exit-code -- remappings.txt) +echo "OK: remappings.txt unchanged" + +log "Checking tarball's package/remappings.txt uses the node_modules variant" +TARBALL_REMAPPINGS="$(tar -xzO -f "$TGZ" package/remappings.txt)" +EXPECTED_REMAPPINGS="$(cat "$REPO_ROOT/remappings-npm.txt")" +if [[ "$TARBALL_REMAPPINGS" != "$EXPECTED_REMAPPINGS" ]]; then + echo "FAIL: tarball package/remappings.txt does not match repo remappings-npm.txt" >&2 + echo "--- tarball ---" >&2 + echo "$TARBALL_REMAPPINGS" >&2 + echo "--- expected (remappings-npm.txt) ---" >&2 + echo "$EXPECTED_REMAPPINGS" >&2 + exit 1 +fi +echo "OK: tarball remappings.txt matches the node_modules variant" + +README_TEST_SRC="$REPO_ROOT/test/smoke/ccip/ReadmeUsageExample.t.sol" +if [[ ! -f "$README_TEST_SRC" ]]; then + echo "FAIL: $README_TEST_SRC not found" >&2 + exit 1 +fi + +# --------------------------------------------------------------------------- +# 2. Shared second test: CCIPLocalSimulatorFork smoke test against Sepolia network details. +# --------------------------------------------------------------------------- +write_network_details_test() { + local dest="$1" + cat > "$dest" <<'EOF' +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.24; + +import {Test} from "forge-std/Test.sol"; +import {CCIPLocalSimulatorFork} from "@chainlink/local/src/ccip/CCIPLocalSimulatorFork.sol"; +import {Register} from "@chainlink/local/src/ccip/Register.sol"; + +contract NetworkDetailsSmokeTest is Test { + function test_sepoliaNetworkDetailsAndStrictRouting() public { + CCIPLocalSimulatorFork ccipLocalSimulatorFork = new CCIPLocalSimulatorFork(); + + Register.NetworkDetails memory details = ccipLocalSimulatorFork.getNetworkDetails(11155111); + assertEq(details.chainSelector, 16015286601757825753); + assertTrue(ccipLocalSimulatorFork.getStrictRouting()); + } +} +EOF +} + +# --------------------------------------------------------------------------- +# 3. Hardhat 3 consumer (npm install of the tarball only, plus hardhat). +# --------------------------------------------------------------------------- +log "Building Hardhat 3 consumer" +HH_DIR="$WORK_DIR/hardhat-consumer" +mkdir -p "$HH_DIR/test" +cd "$HH_DIR" + +cat > package.json < hardhat.config.ts <<'EOF' +import { defineConfig } from "hardhat/config"; + +export default defineConfig({ + solidity: { + version: "0.8.24", + settings: { + evmVersion: "cancun", + }, + }, +}); +EOF + +cp "$README_TEST_SRC" test/ReadmeUsageExample.t.sol +write_network_details_test test/NetworkDetails.t.sol + +log "Running npx hardhat test solidity (Hardhat consumer)" +npx hardhat test solidity + +# --------------------------------------------------------------------------- +# 4. Foundry consumer (npm install of the tarball only). +# --------------------------------------------------------------------------- +log "Building Foundry (npm) consumer" +FOUNDRY_DIR="$WORK_DIR/foundry-consumer" +mkdir -p "$FOUNDRY_DIR/test" +cd "$FOUNDRY_DIR" + +cat > package.json < foundry.toml <<'EOF' +[profile.default] +libs = ["node_modules"] +evm_version = "cancun" +EOF + +# Exact lines from README's "Foundry (npm)" installation section. +cat > remappings.txt <<'EOF' +@chainlink/local/=node_modules/@chainlink/local/ +@chainlink/contracts-ccip/=node_modules/@chainlink/contracts-ccip/ +@chainlink/contracts/=node_modules/@chainlink/contracts/ +@openzeppelin/contracts@4.8.3/=node_modules/@openzeppelin/contracts-4.8.3/ +@openzeppelin/contracts@5.3.0/=node_modules/@openzeppelin/contracts-5.3.0/ +forge-std/=node_modules/forge-std/src/ +EOF + +# Fail when README drifts from the remappings tested here. +while IFS= read -r line; do + if ! grep -qxF "$line" "$REPO_ROOT/README.md"; then + echo "FAIL: README.md no longer lists the Foundry (npm) remapping: $line" >&2 + exit 1 + fi +done < remappings.txt + +cp "$README_TEST_SRC" test/ReadmeUsageExample.t.sol +write_network_details_test test/NetworkDetails.t.sol + +log "Running forge test (Foundry consumer)" +forge test + +log "Consumer smoke tests passed" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..6fbf1d5 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,144 @@ +name: Test + +on: + pull_request: + push: + branches: + - main + - develop + - 'devrel-205/**' + workflow_dispatch: {} + +permissions: + contents: read + +concurrency: + group: test-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +env: + FOUNDRY_VERSION: v1.8.3 + NODE_VERSION: '22' + +jobs: + foundry: + name: Foundry (build, fmt, non-fork tests) + runs-on: ubuntu-latest + timeout-minutes: 20 + steps: + - name: Checkout + uses: actions/checkout@v6 + with: + submodules: recursive + + - name: Install Foundry + uses: foundry-rs/foundry-toolchain@v1 + with: + version: ${{ env.FOUNDRY_VERSION }} + + - name: forge build + run: forge build + + - name: forge fmt --check + run: forge fmt --check + + - name: forge test (non-fork) + run: forge test --no-match-path 'test/e2e/**' + + hardhat: + name: Hardhat (Solidity + JS unit tests) + runs-on: ubuntu-latest + timeout-minutes: 20 + steps: + - name: Checkout + uses: actions/checkout@v6 + with: + submodules: recursive + + - name: Install Foundry + uses: foundry-rs/foundry-toolchain@v1 + with: + version: ${{ env.FOUNDRY_VERSION }} + + - name: Use Node.js + uses: actions/setup-node@v6 + with: + node-version: ${{ env.NODE_VERSION }} + cache: npm + + - name: npm ci + run: npm ci + + - name: Hardhat Solidity tests (unit + smoke only) + run: npx hardhat test solidity $(ls test/unit/*/*.t.sol test/smoke/*/*.t.sol) + + - name: JS unit tests + run: npm run js-unit-test + + - name: Data Streams JS smoke tests + run: node --test test/smoke/data-streams/*.test.js + + consumer-smoke: + name: Consumer smoke (npm tarball) + runs-on: ubuntu-latest + timeout-minutes: 20 + steps: + - name: Checkout + uses: actions/checkout@v6 + with: + submodules: recursive + + - name: Install Foundry + uses: foundry-rs/foundry-toolchain@v1 + with: + version: ${{ env.FOUNDRY_VERSION }} + + - name: Use Node.js + uses: actions/setup-node@v6 + with: + node-version: ${{ env.NODE_VERSION }} + cache: npm + + - name: npm ci + run: npm ci + + - name: Run consumer smoke script + run: bash .github/scripts/consumer-smoke.sh + + fork: + name: Fork tests (manual, needs RPC secrets) + if: github.event_name == 'workflow_dispatch' + runs-on: ubuntu-latest + timeout-minutes: 45 + env: + ETHEREUM_SEPOLIA_RPC_URL: ${{ secrets.ETHEREUM_SEPOLIA_RPC_URL }} + ARBITRUM_SEPOLIA_RPC_URL: ${{ secrets.ARBITRUM_SEPOLIA_RPC_URL }} + AVALANCHE_FUJI_RPC_URL: ${{ secrets.AVALANCHE_FUJI_RPC_URL }} + BASE_SEPOLIA_RPC_URL: ${{ secrets.BASE_SEPOLIA_RPC_URL }} + ETHEREUM_MAINNET_RPC_URL: ${{ secrets.ETHEREUM_MAINNET_RPC_URL }} + ARBITRUM_MAINNET_RPC_URL: ${{ secrets.ARBITRUM_MAINNET_RPC_URL }} + steps: + - name: Checkout + uses: actions/checkout@v6 + with: + submodules: recursive + + - name: Install Foundry + uses: foundry-rs/foundry-toolchain@v1 + with: + version: ${{ env.FOUNDRY_VERSION }} + + - name: Use Node.js + uses: actions/setup-node@v6 + with: + node-version: ${{ env.NODE_VERSION }} + cache: npm + + - name: npm ci + run: npm ci + + - name: forge test (fork suites, serial) + run: forge test -j 1 --match-path 'test/e2e/**' + + - name: Hardhat JS fork tests + run: npm run hardhat-test-js diff --git a/.gitmodules b/.gitmodules index b548de7..2042901 100644 --- a/.gitmodules +++ b/.gitmodules @@ -7,3 +7,12 @@ [submodule "lib/chainlink-ccip"] path = lib/chainlink-ccip url = https://github.com/smartcontractkit/chainlink-ccip +[submodule "lib/openzeppelin-contracts-4.8.3"] + path = lib/openzeppelin-contracts-4.8.3 + url = https://github.com/OpenZeppelin/openzeppelin-contracts +[submodule "lib/openzeppelin-contracts-5.3.0"] + path = lib/openzeppelin-contracts-5.3.0 + url = https://github.com/OpenZeppelin/openzeppelin-contracts +[submodule "lib/chainlink-ace"] + path = lib/chainlink-ace + url = https://github.com/smartcontractkit/chainlink-ace diff --git a/AGENTS.md b/AGENTS.md index 29e56d9..55c6acd 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -9,7 +9,7 @@ Chainlink Local is a developer-focused testing package that simulates Chainlink - Local mode (`CCIPLocalSimulator`, `DataStreamsLocalSimulator`) lets developers test app logic quickly without waiting for live offchain systems. - Fork mode (`CCIPLocalSimulatorFork`, `DataStreamsLocalSimulatorFork`) runs against forked networks so integrations behave closer to real testnet conditions. - The intent is parity of user app behavior between local/fork testing and testnet deployment (minus environment-specific addresses/config). -- It is available for usage in Foundry, Hardhat 3, Hardhat 2 and Remix IDE environments. +- It is available for usage in Foundry, Hardhat 3 and Remix IDE environments (V3 / 0.3.x). Hardhat 2 JavaScript users stay on 0.2.x. - Official documentation is available at: https://docs.chain.link/chainlink-local ## Goal @@ -70,7 +70,7 @@ For the full release workflow (beta, stable, branch policy, CHANGELOG requiremen ### Current core npm dependency versions | Package | Version | | --- | --- | -| `@chainlink/contracts-ccip` | `1.6.2` | +| `@chainlink/contracts-ccip` | `2.0.0` | | `@chainlink/contracts` | `1.5.0` | ## Dependency Update Playbook diff --git a/CHANGELOG.md b/CHANGELOG.md index 093dfa1..b70debc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,20 +6,328 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [Unreleased] +## [0.3.0-beta] - 28 September 2026 -## [0.2.10-beta] - 21 September 2026 +Chainlink Local V3. This is a **breaking** release: `CCIPLocalSimulatorFork` and the Hardhat 3 +JavaScript fork helper now support CCIP 2.0 (CCV-based) lanes, which is the protocol version live testnet and mainnet +lanes run today, alongside the pre-1.6 and 1.6 eras. + +#### Support matrix + +| Environment | 0.3.x (V3) | 0.2.x | +| --- | --- | --- | +| Foundry (Solidity tests, local + fork) | Supported | Supported | +| Hardhat 3 (Solidity tests, local + fork) | Supported | - | +| Hardhat 3 (JavaScript/TypeScript, `scripts/*.js` helpers) | Supported (ESM, `@nomicfoundation/hardhat-ethers`) | - | +| Hardhat 2 | Not supported: the contracts do not compile (Hardhat 2 cannot resolve the `@openzeppelin/contracts@4.8.3/` style imports, `HH411`) | Supported (pre-1.6 fork routing only) | +| Remix IDE (local mode) | Supported | Supported | ### Dependencies | Package | Version | | ------------------------- | ------- | -| @chainlink/contracts-ccip | 1.6.2 | +| @chainlink/contracts-ccip | 2.0.0 | | @chainlink/contracts | 1.5.0 | +| @openzeppelin/contracts-4.8.3 | npm:@openzeppelin/contracts@4.8.3 | +| @openzeppelin/contracts-5.3.0 | npm:@openzeppelin/contracts@5.3.0 | +| forge-std | github:foundry-rs/forge-std#v1.9.4 | + +The OpenZeppelin aliases and `forge-std` are now runtime `dependencies` (the shipped sources import them). `hardhat`, +`@nomicfoundation/hardhat-ethers` and `ethers` are optional `peerDependencies`, needed only for the JavaScript helpers. +`engines.node` is `>=22`. `forge-std` is a git dependency (the npm `forge-std` package is stale), so `npm install` needs +access to GitHub. + +`lib/chainlink-ccip` is pinned to tag `contracts-ccip-v2.0.0` (`c2c125c27f056db2e98d21501922b6eff5750f36`) in the +gitlink, `.gitmodules` (no `branch = develop`) and `foundry.lock`, so `forge install` and `forge update` resolve it +to the tag. + +### Breaking changes + +- **`@chainlink/contracts-ccip` 1.6.2 -> 2.0.0.** Upstream CCIP 2.0 moved every finality value from `uint16` block + confirmations to a `bytes4` `FinalityCodec` config. This changes the on-chain wire format of `GenericExtraArgsV3` + (`blockConfirmations` -> `requestedFinalityConfig`, base size 17 -> 19 bytes) and of `MessageV1` (`finality`). + Receivers implement `getCCVsAndFinalityConfig(...)` returning `bytes4 allowedFinalityConfig` instead of + `getCCVsAndMinBlockDepth(...)` returning `uint16 minBlockDepth`; token pools use `setAllowedFinalityConfig(bytes4)` + instead of `setMinBlockConfirmations(uint16)`. See the migration guide below. +- **Default `V2VerificationMode` is now `OFFRAMP_DERIVED`** (was `HYBRID`). CCIP 2.0 messages are executed through the + destination OffRamp's permissionless `execute` with the CCVs it selects (`getCCVsForMessage`), without decoding the + message locally. `STRICT`, `HYBRID` and `SYNTHETIC_ONLY` remain available through `setV2VerificationMode`. +- **Fork routing is strict by default.** `switchChainAndRouteMessage` (and `executePendingV2Message`) now revert when a + captured CCIP message cannot be routed to any of the given forks + (`CCIPLocalSimulatorFork__MessageNotRouted(messageId, reason)`) or does not execute successfully + (`CCIPLocalSimulatorFork__MessageExecutionFailed(messageId, reason)`, with the decoded revert data, e.g. + `InvalidRequestedFinality(...)` or the receiver's revert). 0.2.6 to 0.2.9 logged execution failures and carried on, and + dropped unroutable messages without any output; 0.2.5 and earlier reverted. Call `setStrictRouting(false)` to log and + record failures instead (see `getMessageStatus`). A 1.6 or 2.0 message to a chain that is not in `forkIds` is not a + failure: it stays `QUEUED` and is routed by a later `switchChainAndRouteMessage` call that includes its destination + fork (0.2.x dropped it). Pre-1.6 logs do not name their destination, so route them in a call that includes it. +- **Fast Transfer delivery follows production rules.** OffRamp 2.0 only delivers a Fast Transfer message with data (or a + non-zero gas limit) to a receiver that opts in through `getCCVsAndFinalityConfig`. A plain `CCIPReceiver` only accepts + finalized messages, so the OffRamp records the execution as `FAILURE`: routing reverts with + `InvalidRequestedFinality` in strict mode, or records it as `FAILED`. +- **Fork mode needs `evm_version = "cancun"` or later** (not `paris`/`shanghai`): deployed CCIP 2.0 contracts use Cancun + opcodes, and `paris` fails with `EvmError: NotActivated`. Set it only for fork tests (see the migration guide), so + your deployed bytecode is not affected. +- **Foundry >= 1.5.1 is required for fork tests.** forge 1.1.0 panics (`revm journaled_state.rs:402`) when an OffRamp + 2.0 execution records a `FAILURE`. +- **Local mode applies the CCIP 2.0 OnRamp and OffRamp rules.** `CCIPLocalSimulator` now uses `CCIPLocalRouter` + (same ABI as the upstream `MockCCIPRouter`, which it replaces). `ccipSend` now reverts where production rejects the + message, with the production error: + - `InvalidRequestedFinality(requested, allowed)`: a Fast Transfer message with data or a non-zero gas limit to a + receiver that does not allow that finality. `RequestedFinalityCanOnlyHaveOneMode`: a malformed finality config. + - For every message that is not a token-only transfer to an `IAny2EVMMessageReceiverV2` receiver (finalized messages + included), `getCCVsAndFinalityConfig` is called and validated: its revert, `DuplicateCCVNotAllowed` or + `InvalidOptionalThreshold` fails the send. + - `TokenReceiverNotAllowed(destChainSelector)`: a non-empty `GenericExtraArgsV3.tokenReceiver` (rejected on EVM lanes). + - `CanOnlySendOneTokenPerMessage` (more than one token) and `CannotSendZeroTokens` (a zero amount). + - `MessageGasLimitTooHigh`: a `GenericExtraArgsV2` / `EVMExtraArgsV1` gas limit above `type(uint32).max` (the upstream + mock truncated it to 32 bits; production rejects it against the lane's `uint32` `maxPerMsgGasLimit`). + + ExtraArgs shorter than 4 bytes are now treated as empty (default gas limit), as in production, instead of reverting + `InvalidExtraArgsTag`. **Local `messageId`s are now unique per send** (they include a nonce, the sender and the + destination), so IDs differ from earlier versions and identical sends no longer collide. +- **`src/vendor/**` was removed** (70 files: vendored OpenZeppelin 4.7.3 / 4.8.3 / 5.0.2, `MockRouter`, + `BurnMintERC677` and shared Chainlink contracts). Sources import `@openzeppelin/contracts@4.8.3/...`, + `@openzeppelin/contracts@5.3.0/...` and `@chainlink/contracts(-ccip)` instead; `CCIPLocalSimulator`'s `AccessControl` + support now uses OpenZeppelin 5.3.0 (was 5.0.2). Imports of `@chainlink/local/src/vendor/...` must move to those + packages. +- **`Register` keeps its built-in network details in code.** `getNetworkDetails`, `setNetworkDetails` and + `NetworkDetails` are unchanged. The details are returned by a generated pure function instead of being written to + storage in the constructor, and `CCIPLocalSimulatorFork` places its `Register` with `vm.etch`. Code that read + `Register` storage slots directly breaks. +- **`Register` data is regenerated from the CCIP directory API** (`https://docs.chain.link/api/ccip/v1`, Sep 2026): + 134 chains (was 148). Router addresses are unchanged for every chain in both versions. + - `wrappedNativeAddress` changes on 17 chains. The generator used the first non-LINK fee token, which was GHO on + e.g. Ethereum, Ethereum Sepolia, Arbitrum One, Arbitrum Sepolia and Base, and a bridged WETH on Monad Testnet and + Plasma Testnet; it now picks the wrapped native token (e.g. WETH, WAVAX, WMON). It is `address(0)` on Stable and + Botanix, where the API lists no unambiguous wrapped native token. + - Removed (no longer in the API, or without fee tokens): Blast, Blast Sepolia, Polygon zkEVM, Polygon zkEVM Cardona, + Scroll Sepolia, Mint, Mint Sepolia, Mind Network, Mind Network Testnet, Tac, Everclear, Memento, Memento Testnet, + Tempo (42429), Corn, Corn Testnet, Janction Testnet, B² Testnet, Kroma Sepolia, Fraxtal Testnet, Botanix Testnet, + MegaETH Testnet (6342), Superseed Sepolia, Berachain Bartio, Katana Tatara, Taiko Hekla, Bitlayer Testnet and + Treasure Topaz. `getNetworkDetails` returns an all-zero struct for them; use `setNetworkDetails`. + - Added: Avalanche, Kaia, Neo X, Robinhood Chain, Robinhood Chain Testnet, HyperEVM Testnet, Tempo Mainnet, Tempo + Testnet Moderato, MegaETH Testnet (6343), Mova Mainnet, Mova Testnet, 0G Galileo Testnet, Creditcoin Mainnet and + Ronin Sepolia. + - Changed on existing chains: 8 LINK addresses, 8 CCIP-BnM addresses and 3 `registryModuleOwnerCustomAddress`es, as + listed by the API. +- **Hardhat JavaScript helpers target Hardhat 3** (ES modules; they did not load in Hardhat 3 before). Every function + takes the `NetworkConnection` from `network.connect()` and needs `@nomicfoundation/hardhat-ethers`: + - `scripts/CCIPLocalSimulatorFork.js`: `getEvm2EvmMessage(receipt)` -> `getCCIPMessages(connection, receipt)` + (all eras); `routeMessage(routerAddress, message)` -> `routeMessage(connection, routerAddresses, sent, options)`; + `requestLinkFromTheFaucet(linkAddress, to, amount)` -> `requestLinkFromTheFaucet(connection, linkAddress, to, amount)`. + - `scripts/data-streams/`: `new MockReportGenerator(initialPrice)` -> `new MockReportGenerator(connection, initialPrice)`; + `requestLinkFromFaucet` / `requestNativeFromFaucet` take `connection` first. + - Hardhat 2 JavaScript users: stay on 0.2.x (see the support matrix). +- Removed `IRouterFork.OffRamp`; `IRouterFork.getOffRamps()` returns `CCIPForkAdapterTypes.RouterOffRamp[]` + (ABI-identical: `(uint64 sourceChainSelector, address offRamp)`). +- Test helpers (not shipped in the npm package, but commonly copied): `EncodeExtraArgsOffchain.encodeV3` takes + `bytes4 requestedFinalityConfig`, `encodeV3Basic(uint32, bytes4)` takes a finality config and the new + `encodeV3BasicBlockDepth(uint32, uint16)` takes a block depth; `BasicMessageReceiverWithCCVs.setMinBlockDepth` is + replaced by `setAllowedFinalityConfig(uint64, bytes4)`. + +### Added + +- CCIP 2.0 routing in `CCIPLocalSimulatorFork` (adapter architecture in `src/ccip/adapters/`, era detection from the + emitted event), including the `NO_EXECUTION_ADDRESS` queue + (`V2ExecutionMode`, `getPendingV2MessageIds`, `executePendingV2Message`). +- `V2VerificationMode.OFFRAMP_DERIVED` (Stefano Magini, magiodev-cll/chainlink-local#3): routes CCIP 2.0 messages + without the local `MessageV1` codec, so fork tests keep working when the on-chain wire format moves ahead of the + pinned dependency. CCVs that are owner-configurable verifier resolvers are pointed at a synthetic fork verifier, so + live lanes work without mocking; `getOffRampForLane`, `setLaneDefaultCCVs` and the `CCVNoOpVerifier` test double + (`src/test/ccip/CCVNoOpVerifier.sol`) remain available to mock a lane's default CCV instead. +- Hardhat 3 JavaScript fork routing for 1.6 and CCIP 2.0 in `scripts/CCIPLocalSimulatorFork.js` (pre-1.6 kept, + including `EVM2EVMOffRamp` 1.2 and 1.5), with the same `typeAndVersion`-based OffRamp lookup and CCIP 2.0 execution as + the Solidity simulator; `CCIP_V2_ROUTERS`; execution failures are thrown with a decoded reason. Tests: + `npm run hardhat-test-js` (fork) and `npm run js-unit-test` (offline: log decoding for every era from pinned ABIs, + OffRamp lookup and execution against mocked OffRamps). +- TypeScript declarations for the CCIP JavaScript helper (`scripts/CCIPLocalSimulatorFork.d.ts`, shipped in the npm + package). +- CI workflow (`.github/workflows/test.yml`): Foundry build, `fmt --check` and non-fork tests, Hardhat Solidity and + JavaScript unit tests, and an npm-tarball consumer smoke test (`.github/scripts/consumer-smoke.sh`) for Hardhat 3 and + Foundry (npm). Fork suites run on manual dispatch with RPC secrets. +- `src/ccip/CCIPLocalRouter.sol`, the local-mode router with the CCIP 2.0 OnRamp and OffRamp checks. +- `CCIPLocalSimulatorFork.getMessageStatus(messageId)` returns `NOT_FOUND`, `QUEUED`, `FAILED` or `SUCCESS` and the + failure reason; `setStrictRouting(bool)` / `getStrictRouting()`. +- Mainnet CCIP 2.0 fork test (Ethereum -> Arbitrum One; needs `ETHEREUM_MAINNET_RPC_URL` / `ARBITRUM_MAINNET_RPC_URL`). +- CCIP 2.0 routers: `getCCIPV2RouterAddress(chainId)` / `setCCIPV2RouterAddress(chainId, router)`. Some chains run a + dedicated CCIP 2.0 router next to the router `getNetworkDetails` returns (Ethereum Sepolia + `0x784d49a71BB4C48eB7dA4cD7e6Ecb424f9b5EAB1`, Avalanche Fuji `0x7C9B8B4e8024e5Ee8A630F6FCe9015e470dA5763`, seeded by + default). `switchChainAndRouteMessage` routes messages sent through either router. `Register` / `getNetworkDetails` + are unchanged (`routerAddress` is still the router from the CCIP docs API). + +### Removed + +- `abi/*.json` (`EVM2EVMOnRamp`, `EVM2EVMOffRamp`, `OnRamp`, `Router`, `LinkToken`) are no longer shipped in the npm + package; the JavaScript helpers use inline human-readable ABIs. Import ABIs from `@chainlink/contracts-ccip` / + `@chainlink/contracts` artifacts instead. +- Hardhat 2 example scripts (`scripts/examples/`) and Hardhat 2 `.spec.ts` tests, which could not run on Hardhat 3. ### Fixed -- For v1.6 messages, `CCIPLocalSimulatorFork.switchChainAndRouteMessage` now builds `Internal.Any2EVMRampMessage.sender` with `abi.encode(address)` (32-byte word) instead of `abi.encodePacked(address)` (20 bytes), matching what production v1.6 lanes deliver for EVM source chains. Receivers doing `abi.decode(message.sender, (address))` previously reverted, and receivers comparing the raw bytes against `abi.encode(trustedRemote)` took their untrusted-sender branch. +- `switchChainAndRouteMessage` no longer reverts when a router lists OffRamps of several versions for the same source + chain (e.g. 1.2, 1.5, 1.6 and 2.0 during lane migrations). OffRamp 1.6 and 2.0 share `getSourceChainConfig(uint64)` + and `getStaticConfig()` selectors with other versions but return different structs, and a mismatched return payload + failed to decode in the caller, which `try/catch` does not catch. OffRamps are now matched by `typeAndVersion` + (`OffRamp 2.*` against `onRamps[]`, `OffRamp 1.6*` against `onRamp`, `EVM2EVMOffRamp 1.*` against `getStaticConfig`), + every decode is isolated, and an OffRamp of unknown shape is skipped. +- CCIP 2.0 (`OFFRAMP_DERIVED`): a message is marked processed only when the OffRamp reports `SUCCESS`. OffRamp 2.0 + `execute` does not revert when verification or the receiver fails on a first attempt; it records `FAILURE`, which was + previously treated as delivered. Only the OffRamp bound to the emitting OnRamp is executed (previously every OffRamp on + the router was tried), and `RESPECT_NO_EXEC` / `MANUAL_ONLY` queueing now applies in this mode too. +- CCIP 2.0: an unexpected `getCCVsForMessage` or verifier-resolver `owner()` response (including a CCV without code) no + longer reverts routing. +- v1.6: `Any2EVMRampMessage.sender` is `abi.encode(address)` (32 bytes, as production 1.6 lanes deliver) instead of + `abi.encodePacked` (20 bytes); receivers doing `abi.decode(message.sender, (address))` reverted (#62 / #65). +- **CCIP 2.0 CCV selection matches the OffRamp quorum.** The simulator passed `max(required, threshold)` CCVs in total, + so a receiver with required CCVs plus optional CCVs (e.g. `required=[A], optional=[B,C], threshold=1`) failed with + `OptionalCCVQuorumNotReached` where production delivers. It now passes every required CCV plus `threshold` optional + ones (optional CCVs that are also required count toward the threshold), in the Solidity simulator, the local-codec + adapter and the JavaScript helper. +- **1.6 messages execute only on their destination fork.** 1.6 OnRamps serve every destination from one address, so + with several destination forks a 1.6 message could execute on the first fork whose OffRamp served the source lane + (and be marked processed there). 1.6 logs are now filtered by `destChainSelector` like 2.0 logs. +- **`CCIPLocalSimulatorFork` deploys in ~14.4M gas** (was ~36M): `new CCIPLocalSimulatorFork()` right after + `createSelectFork` ran out of gas on forks with a 30M block gas limit. +- `setLaneDefaultCCVs` keeps the lane's `laneMandatedCCVs` (it cleared them, making the fork lane less strict than + production). +- Routing hardening: a 32-byte OnRamp or owner word that is not an address is skipped instead of reverting the lookup; + a 2.0 log whose `messageId` topic differs from `keccak256(encodedMessage)` is rejected; a foreign event with a CCIP + event signature but fewer indexed topics no longer panics routing; the unused OnRamp era probe was removed (routing + always followed the event's era, and the probe classified `"EVM2EVMOnRamp 1.2.0"` as 2.0); the 2.0 destination filter reads `topics[1]` in every + `V2VerificationMode`, so a non-default mode no longer decodes `MessageV1` before the emitter check. +- **The npm package compiles for Hardhat 3 and npm-based Foundry consumers.** It ships a `remappings.txt` for + `node_modules` layouts (`remappings-npm.txt`, swapped in by the `prepack` script and restored by `postpack`; git and + `forge install` consumers keep the `lib/` remappings), so Hardhat 3 no longer fails with `HHE902` on the + `@openzeppelin/contracts@4.8.3/...` imports. +- The JavaScript helpers throw a clear error naming `@nomicfoundation/hardhat-ethers` when the connection has no + `ethers` (was `Cannot read properties of undefined (reading 'Interface')`), and decode `OptionalCCVQuorumNotReached`, + `InvalidOptionalThreshold`, `InvalidVerifierResultsLength`, `NoStateProgressMade` and `InvalidEVMAddress`. +- 1.6 and pre-1.6 fork execution (Solidity and JavaScript) passes zero `tokenGasOverrides`, so each token keeps the `destGasAmount` stamped by the + source OnRamp, as when a DON executes the message. The message gas limit was passed as every token's release/mint + gas budget instead. +- CCIP 2.0 (`OFFRAMP_DERIVED` and the JavaScript helper): the OffRamp stamped in the message + (`MessageV1.offRampAddress`) is used when it serves the lane. OffRamp 2.0 rejects a message stamped with another OffRamp (`InvalidOffRamp`), and the router lookup returned + the newest OffRamp of the lane, which differs while an OffRamp is being replaced. +- The synthetic CCV setup is read from the resolver on every route instead of being cached, and the no-op verifier is + redeployed when it has no code: after `vm.rollFork` or a snapshot revert on the destination fork, 2.0 messages failed + with the cached (now missing) configuration. +- The single-fork `switchChainAndRouteMessage(forkId)` always returns with `forkId` selected, as documented (it stayed on + the source fork when nothing was routed). +- `CCIPLocalRouter` declares `pragma solidity ^0.8.20`, the floor its OpenZeppelin 5.3.0 imports already required. +- The JavaScript helper checks that a 1.6 message's destination is the connected chain before executing it (1.6 OnRamps + serve several destinations, and `executeSingleMessage` does not check it), and every execution transaction's revert + is thrown with the decoded reason (the original error is kept as `cause`); it also decodes `TokenHandlingError`, + `ReleaseOrMintBalanceMismatch`, `InvalidMessageDestChainSelector` and `CursedByRMN`. +- The npm package lists the CCIP JavaScript helper with its actual file name (`scripts/CCIPLocalSimulatorFork.js`); the + lowercase entry did not match on case-sensitive file systems, so published packages could omit the helper. + +### Known limitations + +- **Live 1.6 lanes are not available on the tested testnets.** Every Register-router lane between Ethereum Sepolia, + Avalanche Fuji, Arbitrum Sepolia and Base Sepolia runs CCIP 2.0 as of Sep 2026. The 1.6 path is covered by unit tests + and by a fork regression pinned to Sepolia block 11,500,000 / Arbitrum Sepolia block 298,680,335 (needs archive RPCs). + Ethereum <-> Arbitrum One mainnet is also CCIP 2.0, so 1.6 mainnet lanes were not fork-tested. +- **Pre-1.6 (`EVM2EVMOnRamp`) routing** is covered by unit tests only; no live pre-1.6 lane was fork-tested. The + Solidity simulator executes pre-1.6 messages with the `EVM2EVMOffRamp` 1.5 signature only (the JavaScript helper + also supports 1.2). +- **Mainnet token transfers over CCIP 2.0 were not fork-tested**: as of Sep 2026 the Ethereum LINK pool rejects + Arbitrum One on the 2.0 lane (`ChainNotAllowed`). Mainnet messages are fork-tested. +- **CCVs are simulated, not verified.** On a fork there are no live attestations: resolver CCVs are pointed at a + synthetic no-op verifier (or mocked with `setLaneDefaultCCVs`). CCV selection, quorum, finality checks, token + release/mint and the receiver call run production OffRamp code. A CCV that is not an owner-configurable resolver and + is not mocked makes execution fail (logged, message not marked processed). +- **Dedicated CCIP 2.0 routers are known for Ethereum Sepolia and Avalanche Fuji only.** Set others with + `setCCIPV2RouterAddress`. As of Sep 2026 these routers reject CCIP-BnM (`UnsupportedToken`); CCIP-BnM token transfers + over CCIP 2.0 work through the Register routers' 2.0 lanes. +- **Local mode limitations** (use fork mode for these): + - No token pools: pool policies (e.g. a minimum Fast Transfer block depth, `FTFNotSupportedOnPoolV1`, rate limits) + are not enforced, and tokens are transferred directly to the receiver. + - No CCVs and no block confirmations: messages are delivered synchronously inside `ccipSend`, and receiver CCV lists + are only validated, not verified. + - The supported-token list (`getSupportedTokens`) is not enforced by the router. + - `NO_EXECUTION_ADDRESS` messages are executed immediately (fork mode queues them for `executePendingV2Message`). + - There is no per-lane `maxPerMsgGasLimit` cap: production reverts `MessageGasLimitTooHigh` above the lane's cap, local + mode only above `type(uint32).max`. +- **Fork mode executes 1.6 and pre-1.6 messages by impersonating the OffRamp** and calling `executeSingleMessage`, which + skips the checks of the OffRamp's `execute` entrypoint (commit/merkle proofs, RMN). CCIP 2.0 messages go through the + permissionless `execute`, so all 2.0 OffRamp checks run. +- **Hard-coded values can go stale**: the dedicated CCIP 2.0 router map (Ethereum Sepolia and Avalanche Fuji only), + `Register` data and the known OffRamp `typeAndVersion` prefixes. A message on a lane the simulator cannot resolve now + fails loudly in strict mode (`CCIPLocalSimulatorFork__MessageNotRouted`) instead of being dropped. Override with + `setCCIPV2RouterAddress` / `setNetworkDetails`. +- **Synthetic CCV verification persists on the fork**: routing registers a no-op verifier for the `"FORK"` result + version on real resolver CCVs, so after a routed 2.0 message, a forged message with `"FORK"` results can also execute + on that fork. +- **Recorded logs are consumed** by `switchChainAndRouteMessage`. 1.6 and 2.0 messages whose destination fork was not + passed are kept (`QUEUED`) for a later call; one whose destination fork is never passed is never routed, so check + `getMessageStatus` when in doubt. Pre-1.6 messages must be routed in the call that includes their destination. +- **The Hardhat JavaScript helper executes CCIP 2.0 messages with a fixed 15M gas limit** (capped at the block gas + limit), because OffRamp 2.0 `execute` records `FAILURE` instead of reverting when it runs out of gas. +- Hardhat 3 runs every fork test in parallel; with a rate-limited RPC provider fork `setUp` can fail. Run fork suites + individually (`npx hardhat test solidity `) or with a higher-throughput provider. + +### Migration guide (0.2.x -> 0.3.0) + +1. Bump `@chainlink/contracts-ccip` to `2.0.0` (Foundry: `lib/chainlink-ccip` at `contracts-ccip-v2.0.0`) and + `@chainlink/local` to `0.3.0-beta` (published under the `beta` tag: `npm install @chainlink/local@0.3.0-beta`, + `forge install smartcontractkit/chainlink-local@v0.3.0-beta`). Use Node.js 22 for Hardhat 3. Hardhat 3 Solidity + tests need no remappings; Foundry projects installing from npm list the package's dependencies in `remappings.txt` + (see the README). +2. Fork tests: compile them with `cancun` or later, without changing the EVM version your contracts are deployed with, + and use Foundry >= 1.5.1 (forge 1.1.0 panics on a failed CCIP 2.0 execution). For example, add a fork profile to + `foundry.toml` and run fork tests with `FOUNDRY_PROFILE=fork forge test`: + ```toml + [profile.fork] + evm_version = "cancun" + ``` + or pass `--evm-version cancun` to `forge test`. In Hardhat 3, set `evmVersion: "cancun"` in the Solidity settings of + the build profile you run fork tests with. +3. Extra args V3: replace block confirmations with a `FinalityCodec` config. + ```solidity + // before: ExtraArgsCodec._getBasicEncodedExtraArgsV3(gasLimit, uint16(blockConfirmations)) + ExtraArgsCodec._getBasicEncodedExtraArgsV3(gasLimit, FinalityCodec.WAIT_FOR_FINALITY_FLAG); // finality + ExtraArgsCodec._getBasicEncodedExtraArgsV3BlockDepth(gasLimit, 5); // Fast Transfer, 5 blocks + ExtraArgsCodec._getBasicEncodedExtraArgsV3FastConfirmationRule(gasLimit); // wait for the `safe` tag + ``` + `GenericExtraArgsV2` / `EVMExtraArgsV1` are unaffected. +4. Receivers implementing `IAny2EVMMessageReceiverV2`: rename `getCCVsAndMinBlockDepth` to `getCCVsAndFinalityConfig` + and return `bytes4` (`FinalityCodec.WAIT_FOR_FINALITY_FLAG` for finality only, `FinalityCodec._encodeBlockDepth(n)` + to accept Fast Transfers of at least `n` blocks). A receiver must opt in this way to receive Fast Transfer messages with data. +5. Token pools: `setMinBlockConfirmations(n)` -> `setAllowedFinalityConfig(FinalityCodec._encodeBlockDepth(n))`. Read a + live pool's policy with `getAllowedFinalityConfig()`; requested Fast Transfer block depth must be >= the pool's allowed depth. +6. Fork tests on CCIP 2.0 lanes need no extra setup in the default mode. If you relied on the previous default, call + `setV2VerificationMode(V2VerificationMode.HYBRID)`. If you referenced `IRouterFork.OffRamp`, use + `CCIPForkAdapterTypes.RouterOffRamp`. +7. Local mode: Fast Transfer messages with data now need an opted-in receiver (step 4), as on a fork and in production. Tests that + sent Fast Transfer data to a plain `CCIPReceiver` must switch the receiver or request finality. +8. Hardhat JavaScript/TypeScript tests: move to Hardhat 3 and `@nomicfoundation/hardhat-ethers`, and pass the network + connection to the helpers: + ```js + import { network } from "hardhat"; + import { getCCIPMessages, routeMessage } from "@chainlink/local/scripts/CCIPLocalSimulatorFork.js"; + + const source = await network.connect({ network: "sepoliaFork" }); // edr-simulated networks with `forking` + const destination = await network.connect({ network: "arbitrumSepoliaFork" }); + const receipt = await (await sourceRouter.ccipSend(destChainSelector, message, { value: fee })).wait(); + const [sent] = getCCIPMessages(source, receipt); + await routeMessage(destination, destinationRouterAddress, sent); // throws with the reason if execution fails + ``` + Pass an array of routers (e.g. `[routerAddress, CCIP_V2_ROUTERS[chainId]]`) to route through dedicated CCIP 2.0 + routers, and `{ forceExecution: true }` to execute a `NO_EXECUTION_ADDRESS` message. +9. Strict routing: tests that tolerated failed or unroutable messages now revert. Assert the failure with + `vm.expectRevert(abi.encodeWithSelector(CCIPLocalSimulatorFork.CCIPLocalSimulatorFork__MessageExecutionFailed.selector, messageId, expectedReason))`, + or call `setStrictRouting(false)` and check `getMessageStatus(messageId)`. +10. Local mode: sends with more than one token, a zero token amount, a non-empty V3 `tokenReceiver` or a V1/V2 gas limit + above `type(uint32).max` now revert, as in production; V2 receivers' `getCCVsAndFinalityConfig` must not revert and must return a valid config; do not rely on + local `messageId` values being equal for identical sends. +11. `Register`: if you used `wrappedNativeAddress` on the chains listed under Breaking changes, it now points at the + wrapped native token (it was GHO on e.g. Ethereum Sepolia). For a removed chain, set its details with + `setNetworkDetails`. +12. Replace `@chainlink/local/src/vendor/...` imports with `@openzeppelin/contracts@4.8.3/...`, + `@openzeppelin/contracts@5.3.0/...` or `@chainlink/contracts-ccip/...`. +13. To use a dedicated CCIP 2.0 router, send through `getCCIPV2RouterAddress(block.chainid)` and deploy receivers with + the destination chain's CCIP 2.0 router (the destination router must be the one whose OffRamp delivers the message). ## [0.2.9] - 19 May 2026 @@ -697,4 +1005,4 @@ and this project adheres to [0.2.9-beta]: https://github.com/smartcontractkit/chainlink-local/releases/tag/v0.2.9-beta [0.2.9-beta.0]: https://github.com/smartcontractkit/chainlink-local/releases/tag/v0.2.9-beta.0 [0.2.9]: https://github.com/smartcontractkit/chainlink-local/releases/tag/v0.2.9 -[unreleased]: https://github.com/smartcontractkit/chainlink-local/compare/v0.2.9...HEAD +[0.3.0-beta]: https://github.com/smartcontractkit/chainlink-local/releases/tag/v0.3.0-beta \ No newline at end of file diff --git a/README.md b/README.md index a950de8..fabd761 100644 --- a/README.md +++ b/README.md @@ -16,12 +16,13 @@ To view more detailed documentation and more examples, visit the [Chainlink Loca ### Installation -Install the package by running: +`0.3.x` (V3) is published under the `beta` npm tag until the stable release; plain `npm install @chainlink/local` and the +default `main` branch still give `0.2.x`. Pin the version: #### Foundry (git) ``` -forge install smartcontractkit/chainlink-local +forge install smartcontractkit/chainlink-local@v0.3.0-beta ``` and then set remappings to: `@chainlink/local/=lib/chainlink-local/` in either `remappings.txt` or `foundry.toml` file @@ -29,60 +30,214 @@ and then set remappings to: `@chainlink/local/=lib/chainlink-local/` in either ` #### Foundry (soldeer) ``` -forge soldeer install chainlink-local~v0.2.4-beta https://github.com/smartcontractkit/chainlink-local.git +forge soldeer install chainlink-local~v0.3.0-beta https://github.com/smartcontractkit/chainlink-local.git ``` -Replace `v0.2.4-beta` with your desired version number. -#### Hardhat (npm) +#### Hardhat 3 (npm) ``` -npm install @chainlink/local +npm install @chainlink/local@0.3.0-beta ``` -#### Remix IDE +Hardhat 3 (Node.js 22) Solidity tests need no remappings: the package ships its own `remappings.txt`, and its +OpenZeppelin and `forge-std` dependencies are installed with it. Fork tests need `evmVersion: "cancun"` or later: -```solidity -import "https://github.com/smartcontractkit/chainlink-local/blob/main/src/ccip/CCIPLocalSimulator.sol"; +```ts +// hardhat.config.ts +import { defineConfig } from "hardhat/config"; + +export default defineConfig({ + solidity: { version: "0.8.24", settings: { evmVersion: "cancun" } }, +}); ``` -Once you have installed CCIP Local, you are now ready to start using it with your project. +``` +npx hardhat test solidity +``` -### Usage +For the JavaScript/TypeScript fork helpers (`@chainlink/local/scripts/CCIPLocalSimulatorFork.js`), also install and +register the ethers plugin, and add forked networks: + +``` +npm install --save-dev @nomicfoundation/hardhat-ethers ethers +``` + +```ts +import { configVariable, defineConfig } from "hardhat/config"; +import hardhatEthers from "@nomicfoundation/hardhat-ethers"; + +export default defineConfig({ + plugins: [hardhatEthers], + solidity: { version: "0.8.24", settings: { evmVersion: "cancun" } }, + networks: { + sepoliaFork: { + type: "edr-simulated", + chainType: "generic", + chainId: 11155111, + forking: { url: configVariable("ETHEREUM_SEPOLIA_RPC_URL") }, + }, + }, +}); +``` -Import `CCIPLocalSimulator.sol` inside your tests or scripts, for example: +#### Foundry (npm) + +Installing from npm into a Foundry project works too; list the package's dependencies in your `remappings.txt` +(Foundry does not load the remappings of packages under `node_modules`): + +``` +@chainlink/local/=node_modules/@chainlink/local/ +@chainlink/contracts-ccip/=node_modules/@chainlink/contracts-ccip/ +@chainlink/contracts/=node_modules/@chainlink/contracts/ +@openzeppelin/contracts@4.8.3/=node_modules/@openzeppelin/contracts-4.8.3/ +@openzeppelin/contracts@5.3.0/=node_modules/@openzeppelin/contracts-5.3.0/ +forge-std/=node_modules/forge-std/src/ +``` + +#### Remix IDE (local mode) ```solidity -// test/demo.t.sol +import "https://github.com/smartcontractkit/chainlink-local/blob/v0.3.0-beta/src/ccip/CCIPLocalSimulator.sol"; +``` + +Remix resolves the `@chainlink/contracts` and `@chainlink/contracts-ccip` imports to their latest npm versions. -pragma solidity ^0.8.19; +Once you have installed CCIP Local, you are now ready to start using it with your project. + +### Usage -import {Test, console2} from "forge-std/Test.sol"; -import {IRouterClient, WETH9, LinkToken, BurnMintERC677Helper} from "@chainlink/local/src/ccip/CCIPLocalSimulator.sol"; -import {CCIPLocalSimulator} from "@chainlink/local/src/ccip/CCIPLocalSimulator.sol"; +Import `CCIPLocalSimulator.sol` inside your tests or scripts, for example (this is +[test/smoke/ccip/ReadmeUsageExample.t.sol](./test/smoke/ccip/ReadmeUsageExample.t.sol)): -contract Demo is Test { +```solidity +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.24; + +import {Test} from "forge-std/Test.sol"; +import { + CCIPLocalSimulator, + IRouterClient, + WETH9, + LinkToken, + BurnMintERC677Helper +} from "@chainlink/local/src/ccip/CCIPLocalSimulator.sol"; +import {Client} from "@chainlink/contracts-ccip/contracts/libraries/Client.sol"; + +contract ReadmeUsageExampleTest is Test { CCIPLocalSimulator public ccipLocalSimulator; + uint64 public chainSelector; + IRouterClient public sourceRouter; + LinkToken public linkToken; + BurnMintERC677Helper public ccipBnM; function setUp() public { ccipLocalSimulator = new CCIPLocalSimulator(); - ( - uint64 chainSelector, - IRouterClient sourceRouter, - IRouterClient destinationRouter, - WETH9 wrappedNative, - LinkToken linkToken, - BurnMintERC677Helper ccipBnM, - BurnMintERC677Helper ccipLnM - ) = ccipLocalSimulator.configuration(); - - - ccipLocalSimulator.requestLinkFromFaucet(receiver, amount); + WETH9 wrappedNative; + IRouterClient destinationRouter; + BurnMintERC677Helper ccipLnM; + (chainSelector, sourceRouter, destinationRouter, wrappedNative, linkToken, ccipBnM, ccipLnM) = + ccipLocalSimulator.configuration(); } + function test_sendTokens() public { + address alice = makeAddr("alice"); + address bob = makeAddr("bob"); + ccipLocalSimulator.requestLinkFromFaucet(alice, 5 ether); + ccipBnM.drip(alice); + + Client.EVMTokenAmount[] memory tokenAmounts = new Client.EVMTokenAmount[](1); + tokenAmounts[0] = Client.EVMTokenAmount({token: address(ccipBnM), amount: 1 ether}); + Client.EVM2AnyMessage memory message = Client.EVM2AnyMessage({ + receiver: abi.encode(bob), + data: "", + tokenAmounts: tokenAmounts, + extraArgs: Client._argsToBytes(Client.GenericExtraArgsV2({gasLimit: 0, allowOutOfOrderExecution: true})), + feeToken: address(linkToken) + }); + + vm.startPrank(alice); + uint256 fee = sourceRouter.getFee(chainSelector, message); + linkToken.approve(address(sourceRouter), fee); + ccipBnM.approve(address(sourceRouter), 1 ether); + sourceRouter.ccipSend(chainSelector, message); + vm.stopPrank(); + + assertEq(ccipBnM.balanceOf(bob), 1 ether); + } } ``` +### Fork mode and CCIP 2.0 + +`CCIPLocalSimulatorFork` routes messages on forked networks for every CCIP era: pre-1.6 (`EVM2EVMOnRamp`), 1.6 and +CCIP 2.0 (CCV-based lanes, which live testnet lanes run today). Requirements for fork tests: + +- Compile fork tests with `evm_version = "cancun"` or later (deployed CCIP 2.0 contracts use Cancun opcodes; `paris` + fails with `EvmError: NotActivated`). Use a fork-only profile so your deployed bytecode is not affected: + `[profile.fork]` with `evm_version = "cancun"` in `foundry.toml`, then `FOUNDRY_PROFILE=fork forge test`. +- Foundry >= 1.5.1 for fork tests (Hardhat 3 requires Node.js 22). + +```solidity +CCIPLocalSimulatorFork ccipLocalSimulatorFork = new CCIPLocalSimulatorFork(); +vm.makePersistent(address(ccipLocalSimulatorFork)); + +// Send through the router returned by getNetworkDetails(block.chainid).routerAddress, or through the dedicated +// CCIP 2.0 router where one exists: ccipLocalSimulatorFork.getCCIPV2RouterAddress(block.chainid). +// ...ccipSend(...) + +ccipLocalSimulatorFork.switchChainAndRouteMessage(destinationForkId); +``` + +Routing is strict by default: `switchChainAndRouteMessage` reverts with +`CCIPLocalSimulatorFork__MessageNotRouted(messageId, reason)` when a captured message cannot be routed to any of the given +forks, and with `CCIPLocalSimulatorFork__MessageExecutionFailed(messageId, reason)` (the decoded revert data) when it does +not execute successfully. Call `setStrictRouting(false)` to record failures instead and read them with +`getMessageStatus(messageId)`. With several destinations, either pass every destination fork at once with the +`uint256[] forkIds` overload, or call `switchChainAndRouteMessage` once per destination fork: a 1.6 or 2.0 message to a +chain that is not in the call stays `QUEUED` and is routed by the call that includes its destination fork. + +Hardhat 3 JavaScript/TypeScript tests can route the same way with `scripts/CCIPLocalSimulatorFork.js` (requires +`@nomicfoundation/hardhat-ethers`; TypeScript declarations ship next to it): + +```js +import { network } from "hardhat"; +import { getCCIPMessages, routeMessage } from "@chainlink/local/scripts/CCIPLocalSimulatorFork.js"; + +const source = await network.connect({ network: "sepoliaFork" }); +const destination = await network.connect({ network: "arbitrumSepoliaFork" }); +const receipt = await (await sourceRouter.ccipSend(destChainSelector, message, { value: fee })).wait(); +const [sent] = getCCIPMessages(source, receipt); +await routeMessage(destination, destinationRouterAddress, sent); +``` + +| Environment | 0.3.x | 0.2.x | +| --- | --- | --- | +| Foundry, Hardhat 3 (Solidity tests, local + fork) | ✅ | Foundry only | +| Hardhat 3 JavaScript/TypeScript helpers | ✅ | - | +| Hardhat 2 | - (not supported: Hardhat 2 cannot resolve the `@openzeppelin/contracts@4.8.3/` style imports) | ✅ pre-1.6 fork routing only | +| Remix IDE (local mode) | ✅ | ✅ | + +On CCIP 2.0 lanes the destination OffRamp selects the CCVs and executes the message (`V2VerificationMode.OFFRAMP_DERIVED`, +the default); CCV attestations are simulated. Fast Transfer messages with data are only delivered to receivers that +opt in through `getCCVsAndFinalityConfig`, as in production. See [CHANGELOG.md](./CHANGELOG.md) for the 0.3.0 breaking +changes, migration guide and known limitations. + +### Local mode limitations + +`CCIPLocalSimulator` delivers messages synchronously inside `ccipSend` and applies the CCIP 2.0 OnRamp and OffRamp message +rules (finality, one token per message, no zero amounts, no V3 `tokenReceiver` on EVM lanes, V2 receiver CCV config +validation). It does not simulate: + +- token pools (pool finality policies, rate limits and pool-required CCVs are not enforced; tokens go directly to the + receiver); +- CCVs or block confirmations (receiver CCV lists are validated, not verified); +- the supported-token list (`getSupportedTokens` is informational); +- manual execution (`NO_EXECUTION_ADDRESS` messages are executed immediately); +- the lane's `maxPerMsgGasLimit` (only V1/V2 extraArgs gas limits above `uint32` revert `MessageGasLimitTooHigh`). + +Use fork mode to test these against the real contracts. + ### Learn more To view detailed documentation and more examples, visit the [Chainlink Local Documentation](https://docs.chain.link/chainlink-local). diff --git a/abi/EVM2EVMOffRamp.json b/abi/EVM2EVMOffRamp.json deleted file mode 100644 index 71cf23d..0000000 --- a/abi/EVM2EVMOffRamp.json +++ /dev/null @@ -1,1572 +0,0 @@ -[ - { - "inputs": [ - { - "components": [ - { - "internalType": "address", - "name": "commitStore", - "type": "address" - }, - { - "internalType": "uint64", - "name": "chainSelector", - "type": "uint64" - }, - { - "internalType": "uint64", - "name": "sourceChainSelector", - "type": "uint64" - }, - { - "internalType": "address", - "name": "onRamp", - "type": "address" - }, - { - "internalType": "address", - "name": "prevOffRamp", - "type": "address" - }, - { - "internalType": "address", - "name": "armProxy", - "type": "address" - } - ], - "internalType": "struct EVM2EVMOffRamp.StaticConfig", - "name": "staticConfig", - "type": "tuple" - }, - { - "internalType": "contract IERC20[]", - "name": "sourceTokens", - "type": "address[]" - }, - { - "internalType": "contract IPool[]", - "name": "pools", - "type": "address[]" - }, - { - "components": [ - { - "internalType": "bool", - "name": "isEnabled", - "type": "bool" - }, - { - "internalType": "uint128", - "name": "capacity", - "type": "uint128" - }, - { - "internalType": "uint128", - "name": "rate", - "type": "uint128" - } - ], - "internalType": "struct RateLimiter.Config", - "name": "rateLimiterConfig", - "type": "tuple" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "capacity", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "requested", - "type": "uint256" - } - ], - "name": "AggregateValueMaxCapacityExceeded", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "minWaitInSeconds", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "available", - "type": "uint256" - } - ], - "name": "AggregateValueRateLimitReached", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint64", - "name": "sequenceNumber", - "type": "uint64" - } - ], - "name": "AlreadyAttempted", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint64", - "name": "sequenceNumber", - "type": "uint64" - } - ], - "name": "AlreadyExecuted", - "type": "error" - }, - { - "inputs": [], - "name": "BadARMSignal", - "type": "error" - }, - { - "inputs": [], - "name": "BucketOverfilled", - "type": "error" - }, - { - "inputs": [], - "name": "CanOnlySelfCall", - "type": "error" - }, - { - "inputs": [], - "name": "CommitStoreAlreadyInUse", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes32", - "name": "expected", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "actual", - "type": "bytes32" - } - ], - "name": "ConfigDigestMismatch", - "type": "error" - }, - { - "inputs": [], - "name": "EmptyReport", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes", - "name": "error", - "type": "bytes" - } - ], - "name": "ExecutionError", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "expected", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "actual", - "type": "uint256" - } - ], - "name": "ForkedChain", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "string", - "name": "message", - "type": "string" - } - ], - "name": "InvalidConfig", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "index", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "newLimit", - "type": "uint256" - } - ], - "name": "InvalidManualExecutionGasLimit", - "type": "error" - }, - { - "inputs": [], - "name": "InvalidMessageId", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint64", - "name": "sequenceNumber", - "type": "uint64" - }, - { - "internalType": "enum Internal.MessageExecutionState", - "name": "newState", - "type": "uint8" - } - ], - "name": "InvalidNewState", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint64", - "name": "sourceChainSelector", - "type": "uint64" - } - ], - "name": "InvalidSourceChain", - "type": "error" - }, - { - "inputs": [], - "name": "InvalidTokenPoolConfig", - "type": "error" - }, - { - "inputs": [], - "name": "ManualExecutionGasLimitMismatch", - "type": "error" - }, - { - "inputs": [], - "name": "ManualExecutionNotYetEnabled", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "maxSize", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "actualSize", - "type": "uint256" - } - ], - "name": "MessageTooLarge", - "type": "error" - }, - { - "inputs": [], - "name": "OnlyCallableByAdminOrOwner", - "type": "error" - }, - { - "inputs": [], - "name": "OracleCannotBeZeroAddress", - "type": "error" - }, - { - "inputs": [], - "name": "PoolAlreadyAdded", - "type": "error" - }, - { - "inputs": [], - "name": "PoolDoesNotExist", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "token", - "type": "address" - } - ], - "name": "PriceNotFoundForToken", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes", - "name": "error", - "type": "bytes" - } - ], - "name": "ReceiverError", - "type": "error" - }, - { - "inputs": [], - "name": "RootNotCommitted", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint64", - "name": "sequenceNumber", - "type": "uint64" - } - ], - "name": "TokenDataMismatch", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "bytes", - "name": "error", - "type": "bytes" - } - ], - "name": "TokenHandlingError", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "capacity", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "requested", - "type": "uint256" - }, - { - "internalType": "address", - "name": "tokenAddress", - "type": "address" - } - ], - "name": "TokenMaxCapacityExceeded", - "type": "error" - }, - { - "inputs": [], - "name": "TokenPoolMismatch", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "minWaitInSeconds", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "available", - "type": "uint256" - }, - { - "internalType": "address", - "name": "tokenAddress", - "type": "address" - } - ], - "name": "TokenRateLimitReached", - "type": "error" - }, - { - "inputs": [], - "name": "UnauthorizedTransmitter", - "type": "error" - }, - { - "inputs": [], - "name": "UnexpectedTokenData", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint64", - "name": "sequenceNumber", - "type": "uint64" - } - ], - "name": "UnsupportedNumberOfTokens", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "contract IERC20", - "name": "token", - "type": "address" - } - ], - "name": "UnsupportedToken", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "expected", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "actual", - "type": "uint256" - } - ], - "name": "WrongMessageLength", - "type": "error" - }, - { - "inputs": [], - "name": "ZeroAddressNotAllowed", - "type": "error" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "newAdmin", - "type": "address" - } - ], - "name": "AdminSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "components": [ - { - "internalType": "address", - "name": "commitStore", - "type": "address" - }, - { - "internalType": "uint64", - "name": "chainSelector", - "type": "uint64" - }, - { - "internalType": "uint64", - "name": "sourceChainSelector", - "type": "uint64" - }, - { - "internalType": "address", - "name": "onRamp", - "type": "address" - }, - { - "internalType": "address", - "name": "prevOffRamp", - "type": "address" - }, - { - "internalType": "address", - "name": "armProxy", - "type": "address" - } - ], - "indexed": false, - "internalType": "struct EVM2EVMOffRamp.StaticConfig", - "name": "staticConfig", - "type": "tuple" - }, - { - "components": [ - { - "internalType": "uint32", - "name": "permissionLessExecutionThresholdSeconds", - "type": "uint32" - }, - { - "internalType": "address", - "name": "router", - "type": "address" - }, - { - "internalType": "address", - "name": "priceRegistry", - "type": "address" - }, - { - "internalType": "uint16", - "name": "maxNumberOfTokensPerMsg", - "type": "uint16" - }, - { - "internalType": "uint32", - "name": "maxDataBytes", - "type": "uint32" - }, - { - "internalType": "uint32", - "name": "maxPoolReleaseOrMintGas", - "type": "uint32" - } - ], - "indexed": false, - "internalType": "struct EVM2EVMOffRamp.DynamicConfig", - "name": "dynamicConfig", - "type": "tuple" - } - ], - "name": "ConfigSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint32", - "name": "previousConfigBlockNumber", - "type": "uint32" - }, - { - "indexed": false, - "internalType": "bytes32", - "name": "configDigest", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "uint64", - "name": "configCount", - "type": "uint64" - }, - { - "indexed": false, - "internalType": "address[]", - "name": "signers", - "type": "address[]" - }, - { - "indexed": false, - "internalType": "address[]", - "name": "transmitters", - "type": "address[]" - }, - { - "indexed": false, - "internalType": "uint8", - "name": "f", - "type": "uint8" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "onchainConfig", - "type": "bytes" - }, - { - "indexed": false, - "internalType": "uint64", - "name": "offchainConfigVersion", - "type": "uint64" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "offchainConfig", - "type": "bytes" - } - ], - "name": "ConfigSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint64", - "name": "sequenceNumber", - "type": "uint64" - }, - { - "indexed": true, - "internalType": "bytes32", - "name": "messageId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "enum Internal.MessageExecutionState", - "name": "state", - "type": "uint8" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "returnData", - "type": "bytes" - } - ], - "name": "ExecutionStateChanged", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - } - ], - "name": "OwnershipTransferRequested", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "token", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "pool", - "type": "address" - } - ], - "name": "PoolAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "token", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "pool", - "type": "address" - } - ], - "name": "PoolRemoved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint64", - "name": "nonce", - "type": "uint64" - }, - { - "indexed": true, - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "SkippedIncorrectNonce", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint64", - "name": "nonce", - "type": "uint64" - }, - { - "indexed": true, - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "SkippedSenderWithPreviousRampMessageInflight", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "configDigest", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "uint32", - "name": "epoch", - "type": "uint32" - } - ], - "name": "Transmitted", - "type": "event" - }, - { - "inputs": [], - "name": "acceptOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "components": [ - { - "internalType": "address", - "name": "token", - "type": "address" - }, - { - "internalType": "address", - "name": "pool", - "type": "address" - } - ], - "internalType": "struct Internal.PoolUpdate[]", - "name": "removes", - "type": "tuple[]" - }, - { - "components": [ - { - "internalType": "address", - "name": "token", - "type": "address" - }, - { - "internalType": "address", - "name": "pool", - "type": "address" - } - ], - "internalType": "struct Internal.PoolUpdate[]", - "name": "adds", - "type": "tuple[]" - } - ], - "name": "applyPoolUpdates", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "components": [ - { - "internalType": "bytes32", - "name": "messageId", - "type": "bytes32" - }, - { - "internalType": "uint64", - "name": "sourceChainSelector", - "type": "uint64" - }, - { - "internalType": "bytes", - "name": "sender", - "type": "bytes" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "components": [ - { - "internalType": "address", - "name": "token", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "internalType": "struct Client.EVMTokenAmount[]", - "name": "destTokenAmounts", - "type": "tuple[]" - } - ], - "internalType": "struct Client.Any2EVMMessage", - "name": "", - "type": "tuple" - } - ], - "name": "ccipReceive", - "outputs": [], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [], - "name": "currentRateLimiterState", - "outputs": [ - { - "components": [ - { - "internalType": "uint128", - "name": "tokens", - "type": "uint128" - }, - { - "internalType": "uint32", - "name": "lastUpdated", - "type": "uint32" - }, - { - "internalType": "bool", - "name": "isEnabled", - "type": "bool" - }, - { - "internalType": "uint128", - "name": "capacity", - "type": "uint128" - }, - { - "internalType": "uint128", - "name": "rate", - "type": "uint128" - } - ], - "internalType": "struct RateLimiter.TokenBucket", - "name": "", - "type": "tuple" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "components": [ - { - "internalType": "uint64", - "name": "sourceChainSelector", - "type": "uint64" - }, - { - "internalType": "address", - "name": "sender", - "type": "address" - }, - { - "internalType": "address", - "name": "receiver", - "type": "address" - }, - { - "internalType": "uint64", - "name": "sequenceNumber", - "type": "uint64" - }, - { - "internalType": "uint256", - "name": "gasLimit", - "type": "uint256" - }, - { - "internalType": "bool", - "name": "strict", - "type": "bool" - }, - { - "internalType": "uint64", - "name": "nonce", - "type": "uint64" - }, - { - "internalType": "address", - "name": "feeToken", - "type": "address" - }, - { - "internalType": "uint256", - "name": "feeTokenAmount", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "components": [ - { - "internalType": "address", - "name": "token", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "internalType": "struct Client.EVMTokenAmount[]", - "name": "tokenAmounts", - "type": "tuple[]" - }, - { - "internalType": "bytes[]", - "name": "sourceTokenData", - "type": "bytes[]" - }, - { - "internalType": "bytes32", - "name": "messageId", - "type": "bytes32" - } - ], - "internalType": "struct Internal.EVM2EVMMessage", - "name": "message", - "type": "tuple" - }, - { - "internalType": "bytes[]", - "name": "offchainTokenData", - "type": "bytes[]" - } - ], - "name": "executeSingleMessage", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "contract IERC20", - "name": "sourceToken", - "type": "address" - } - ], - "name": "getDestinationToken", - "outputs": [ - { - "internalType": "contract IERC20", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getDestinationTokens", - "outputs": [ - { - "internalType": "contract IERC20[]", - "name": "destTokens", - "type": "address[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getDynamicConfig", - "outputs": [ - { - "components": [ - { - "internalType": "uint32", - "name": "permissionLessExecutionThresholdSeconds", - "type": "uint32" - }, - { - "internalType": "address", - "name": "router", - "type": "address" - }, - { - "internalType": "address", - "name": "priceRegistry", - "type": "address" - }, - { - "internalType": "uint16", - "name": "maxNumberOfTokensPerMsg", - "type": "uint16" - }, - { - "internalType": "uint32", - "name": "maxDataBytes", - "type": "uint32" - }, - { - "internalType": "uint32", - "name": "maxPoolReleaseOrMintGas", - "type": "uint32" - } - ], - "internalType": "struct EVM2EVMOffRamp.DynamicConfig", - "name": "", - "type": "tuple" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint64", - "name": "sequenceNumber", - "type": "uint64" - } - ], - "name": "getExecutionState", - "outputs": [ - { - "internalType": "enum Internal.MessageExecutionState", - "name": "", - "type": "uint8" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "contract IERC20", - "name": "destToken", - "type": "address" - } - ], - "name": "getPoolByDestToken", - "outputs": [ - { - "internalType": "contract IPool", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "contract IERC20", - "name": "sourceToken", - "type": "address" - } - ], - "name": "getPoolBySourceToken", - "outputs": [ - { - "internalType": "contract IPool", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "getSenderNonce", - "outputs": [ - { - "internalType": "uint64", - "name": "nonce", - "type": "uint64" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getStaticConfig", - "outputs": [ - { - "components": [ - { - "internalType": "address", - "name": "commitStore", - "type": "address" - }, - { - "internalType": "uint64", - "name": "chainSelector", - "type": "uint64" - }, - { - "internalType": "uint64", - "name": "sourceChainSelector", - "type": "uint64" - }, - { - "internalType": "address", - "name": "onRamp", - "type": "address" - }, - { - "internalType": "address", - "name": "prevOffRamp", - "type": "address" - }, - { - "internalType": "address", - "name": "armProxy", - "type": "address" - } - ], - "internalType": "struct EVM2EVMOffRamp.StaticConfig", - "name": "", - "type": "tuple" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getSupportedTokens", - "outputs": [ - { - "internalType": "contract IERC20[]", - "name": "sourceTokens", - "type": "address[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getTokenLimitAdmin", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getTransmitters", - "outputs": [ - { - "internalType": "address[]", - "name": "", - "type": "address[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "latestConfigDetails", - "outputs": [ - { - "internalType": "uint32", - "name": "configCount", - "type": "uint32" - }, - { - "internalType": "uint32", - "name": "blockNumber", - "type": "uint32" - }, - { - "internalType": "bytes32", - "name": "configDigest", - "type": "bytes32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "latestConfigDigestAndEpoch", - "outputs": [ - { - "internalType": "bool", - "name": "scanLogs", - "type": "bool" - }, - { - "internalType": "bytes32", - "name": "configDigest", - "type": "bytes32" - }, - { - "internalType": "uint32", - "name": "epoch", - "type": "uint32" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "components": [ - { - "components": [ - { - "internalType": "uint64", - "name": "sourceChainSelector", - "type": "uint64" - }, - { - "internalType": "address", - "name": "sender", - "type": "address" - }, - { - "internalType": "address", - "name": "receiver", - "type": "address" - }, - { - "internalType": "uint64", - "name": "sequenceNumber", - "type": "uint64" - }, - { - "internalType": "uint256", - "name": "gasLimit", - "type": "uint256" - }, - { - "internalType": "bool", - "name": "strict", - "type": "bool" - }, - { - "internalType": "uint64", - "name": "nonce", - "type": "uint64" - }, - { - "internalType": "address", - "name": "feeToken", - "type": "address" - }, - { - "internalType": "uint256", - "name": "feeTokenAmount", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "components": [ - { - "internalType": "address", - "name": "token", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "internalType": "struct Client.EVMTokenAmount[]", - "name": "tokenAmounts", - "type": "tuple[]" - }, - { - "internalType": "bytes[]", - "name": "sourceTokenData", - "type": "bytes[]" - }, - { - "internalType": "bytes32", - "name": "messageId", - "type": "bytes32" - } - ], - "internalType": "struct Internal.EVM2EVMMessage[]", - "name": "messages", - "type": "tuple[]" - }, - { - "internalType": "bytes[][]", - "name": "offchainTokenData", - "type": "bytes[][]" - }, - { - "internalType": "bytes32[]", - "name": "proofs", - "type": "bytes32[]" - }, - { - "internalType": "uint256", - "name": "proofFlagBits", - "type": "uint256" - } - ], - "internalType": "struct Internal.ExecutionReport", - "name": "report", - "type": "tuple" - }, - { - "internalType": "uint256[]", - "name": "gasLimitOverrides", - "type": "uint256[]" - } - ], - "name": "manuallyExecute", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "newAdmin", - "type": "address" - } - ], - "name": "setAdmin", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address[]", - "name": "signers", - "type": "address[]" - }, - { - "internalType": "address[]", - "name": "transmitters", - "type": "address[]" - }, - { - "internalType": "uint8", - "name": "f", - "type": "uint8" - }, - { - "internalType": "bytes", - "name": "onchainConfig", - "type": "bytes" - }, - { - "internalType": "uint64", - "name": "offchainConfigVersion", - "type": "uint64" - }, - { - "internalType": "bytes", - "name": "offchainConfig", - "type": "bytes" - } - ], - "name": "setOCR2Config", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "components": [ - { - "internalType": "bool", - "name": "isEnabled", - "type": "bool" - }, - { - "internalType": "uint128", - "name": "capacity", - "type": "uint128" - }, - { - "internalType": "uint128", - "name": "rate", - "type": "uint128" - } - ], - "internalType": "struct RateLimiter.Config", - "name": "config", - "type": "tuple" - } - ], - "name": "setRateLimiterConfig", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes32[3]", - "name": "reportContext", - "type": "bytes32[3]" - }, - { - "internalType": "bytes", - "name": "report", - "type": "bytes" - }, - { - "internalType": "bytes32[]", - "name": "rs", - "type": "bytes32[]" - }, - { - "internalType": "bytes32[]", - "name": "ss", - "type": "bytes32[]" - }, - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "name": "transmit", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "typeAndVersion", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - } -] diff --git a/abi/LinkToken.json b/abi/LinkToken.json deleted file mode 100644 index 1abff80..0000000 --- a/abi/LinkToken.json +++ /dev/null @@ -1,763 +0,0 @@ -[ - { - "inputs": [], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "supplyAfterMint", - "type": "uint256" - } - ], - "name": "MaxSupplyExceeded", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "SenderNotBurner", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "sender", - "type": "address" - } - ], - "name": "SenderNotMinter", - "type": "error" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "spender", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "name": "Approval", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "burner", - "type": "address" - } - ], - "name": "BurnAccessGranted", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "burner", - "type": "address" - } - ], - "name": "BurnAccessRevoked", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "minter", - "type": "address" - } - ], - "name": "MintAccessGranted", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "minter", - "type": "address" - } - ], - "name": "MintAccessRevoked", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - } - ], - "name": "OwnershipTransferRequested", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "name": "Transfer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "value", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "Transfer", - "type": "event" - }, - { - "inputs": [], - "name": "acceptOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "owner", - "type": "address" - }, - { - "internalType": "address", - "name": "spender", - "type": "address" - } - ], - "name": "allowance", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "spender", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "approve", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - } - ], - "name": "balanceOf", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "burn", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "burn", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "burnFrom", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "decimals", - "outputs": [ - { - "internalType": "uint8", - "name": "", - "type": "uint8" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "spender", - "type": "address" - }, - { - "internalType": "uint256", - "name": "subtractedValue", - "type": "uint256" - } - ], - "name": "decreaseAllowance", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "spender", - "type": "address" - }, - { - "internalType": "uint256", - "name": "subtractedValue", - "type": "uint256" - } - ], - "name": "decreaseApproval", - "outputs": [ - { - "internalType": "bool", - "name": "success", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "getBurners", - "outputs": [ - { - "internalType": "address[]", - "name": "", - "type": "address[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getMinters", - "outputs": [ - { - "internalType": "address[]", - "name": "", - "type": "address[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "burner", - "type": "address" - } - ], - "name": "grantBurnRole", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "burnAndMinter", - "type": "address" - } - ], - "name": "grantMintAndBurnRoles", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "minter", - "type": "address" - } - ], - "name": "grantMintRole", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "spender", - "type": "address" - }, - { - "internalType": "uint256", - "name": "addedValue", - "type": "uint256" - } - ], - "name": "increaseAllowance", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "spender", - "type": "address" - }, - { - "internalType": "uint256", - "name": "addedValue", - "type": "uint256" - } - ], - "name": "increaseApproval", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "burner", - "type": "address" - } - ], - "name": "isBurner", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "minter", - "type": "address" - } - ], - "name": "isMinter", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "maxSupply", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "account", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "mint", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "name", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "burner", - "type": "address" - } - ], - "name": "revokeBurnRole", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "minter", - "type": "address" - } - ], - "name": "revokeMintRole", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "bytes4", - "name": "interfaceId", - "type": "bytes4" - } - ], - "name": "supportsInterface", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [], - "name": "symbol", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "totalSupply", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "transfer", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - } - ], - "name": "transferAndCall", - "outputs": [ - { - "internalType": "bool", - "name": "success", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "transferFrom", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } -] diff --git a/abi/Router.json b/abi/Router.json deleted file mode 100644 index fc16bfe..0000000 --- a/abi/Router.json +++ /dev/null @@ -1,702 +0,0 @@ -[ - { - "inputs": [ - { - "internalType": "address", - "name": "wrappedNative", - "type": "address" - }, - { - "internalType": "address", - "name": "armProxy", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "inputs": [], - "name": "BadARMSignal", - "type": "error" - }, - { - "inputs": [], - "name": "FailedToSendValue", - "type": "error" - }, - { - "inputs": [], - "name": "InsufficientFeeTokenAmount", - "type": "error" - }, - { - "inputs": [], - "name": "InvalidMsgValue", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - } - ], - "name": "InvalidRecipientAddress", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint64", - "name": "chainSelector", - "type": "uint64" - }, - { - "internalType": "address", - "name": "offRamp", - "type": "address" - } - ], - "name": "OffRampMismatch", - "type": "error" - }, - { - "inputs": [], - "name": "OnlyOffRamp", - "type": "error" - }, - { - "inputs": [ - { - "internalType": "uint64", - "name": "destChainSelector", - "type": "uint64" - } - ], - "name": "UnsupportedDestinationChain", - "type": "error" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "bytes32", - "name": "messageId", - "type": "bytes32" - }, - { - "indexed": false, - "internalType": "uint64", - "name": "sourceChainSelector", - "type": "uint64" - }, - { - "indexed": false, - "internalType": "address", - "name": "offRamp", - "type": "address" - }, - { - "indexed": false, - "internalType": "bytes32", - "name": "calldataHash", - "type": "bytes32" - } - ], - "name": "MessageExecuted", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint64", - "name": "sourceChainSelector", - "type": "uint64" - }, - { - "indexed": false, - "internalType": "address", - "name": "offRamp", - "type": "address" - } - ], - "name": "OffRampAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint64", - "name": "sourceChainSelector", - "type": "uint64" - }, - { - "indexed": false, - "internalType": "address", - "name": "offRamp", - "type": "address" - } - ], - "name": "OffRampRemoved", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "uint64", - "name": "destChainSelector", - "type": "uint64" - }, - { - "indexed": false, - "internalType": "address", - "name": "onRamp", - "type": "address" - } - ], - "name": "OnRampSet", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - } - ], - "name": "OwnershipTransferRequested", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "from", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "to", - "type": "address" - } - ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "inputs": [], - "name": "MAX_RET_BYTES", - "outputs": [ - { - "internalType": "uint16", - "name": "", - "type": "uint16" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "acceptOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "components": [ - { - "internalType": "uint64", - "name": "destChainSelector", - "type": "uint64" - }, - { - "internalType": "address", - "name": "onRamp", - "type": "address" - } - ], - "internalType": "struct Router.OnRamp[]", - "name": "onRampUpdates", - "type": "tuple[]" - }, - { - "components": [ - { - "internalType": "uint64", - "name": "sourceChainSelector", - "type": "uint64" - }, - { - "internalType": "address", - "name": "offRamp", - "type": "address" - } - ], - "internalType": "struct Router.OffRamp[]", - "name": "offRampRemoves", - "type": "tuple[]" - }, - { - "components": [ - { - "internalType": "uint64", - "name": "sourceChainSelector", - "type": "uint64" - }, - { - "internalType": "address", - "name": "offRamp", - "type": "address" - } - ], - "internalType": "struct Router.OffRamp[]", - "name": "offRampAdds", - "type": "tuple[]" - } - ], - "name": "applyRampUpdates", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint64", - "name": "destinationChainSelector", - "type": "uint64" - }, - { - "components": [ - { - "internalType": "bytes", - "name": "receiver", - "type": "bytes" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "components": [ - { - "internalType": "address", - "name": "token", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "internalType": "struct Client.EVMTokenAmount[]", - "name": "tokenAmounts", - "type": "tuple[]" - }, - { - "internalType": "address", - "name": "feeToken", - "type": "address" - }, - { - "internalType": "bytes", - "name": "extraArgs", - "type": "bytes" - } - ], - "internalType": "struct Client.EVM2AnyMessage", - "name": "message", - "type": "tuple" - } - ], - "name": "ccipSend", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [], - "name": "getArmProxy", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint64", - "name": "destinationChainSelector", - "type": "uint64" - }, - { - "components": [ - { - "internalType": "bytes", - "name": "receiver", - "type": "bytes" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "components": [ - { - "internalType": "address", - "name": "token", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "internalType": "struct Client.EVMTokenAmount[]", - "name": "tokenAmounts", - "type": "tuple[]" - }, - { - "internalType": "address", - "name": "feeToken", - "type": "address" - }, - { - "internalType": "bytes", - "name": "extraArgs", - "type": "bytes" - } - ], - "internalType": "struct Client.EVM2AnyMessage", - "name": "message", - "type": "tuple" - } - ], - "name": "getFee", - "outputs": [ - { - "internalType": "uint256", - "name": "fee", - "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getOffRamps", - "outputs": [ - { - "components": [ - { - "internalType": "uint64", - "name": "sourceChainSelector", - "type": "uint64" - }, - { - "internalType": "address", - "name": "offRamp", - "type": "address" - } - ], - "internalType": "struct Router.OffRamp[]", - "name": "", - "type": "tuple[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint64", - "name": "destChainSelector", - "type": "uint64" - } - ], - "name": "getOnRamp", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint64", - "name": "chainSelector", - "type": "uint64" - } - ], - "name": "getSupportedTokens", - "outputs": [ - { - "internalType": "address[]", - "name": "", - "type": "address[]" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getWrappedNative", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint64", - "name": "chainSelector", - "type": "uint64" - } - ], - "name": "isChainSupported", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint64", - "name": "sourceChainSelector", - "type": "uint64" - }, - { - "internalType": "address", - "name": "offRamp", - "type": "address" - } - ], - "name": "isOffRamp", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "owner", - "outputs": [ - { - "internalType": "address", - "name": "", - "type": "address" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "tokenAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "to", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "name": "recoverTokens", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "components": [ - { - "internalType": "bytes32", - "name": "messageId", - "type": "bytes32" - }, - { - "internalType": "uint64", - "name": "sourceChainSelector", - "type": "uint64" - }, - { - "internalType": "bytes", - "name": "sender", - "type": "bytes" - }, - { - "internalType": "bytes", - "name": "data", - "type": "bytes" - }, - { - "components": [ - { - "internalType": "address", - "name": "token", - "type": "address" - }, - { - "internalType": "uint256", - "name": "amount", - "type": "uint256" - } - ], - "internalType": "struct Client.EVMTokenAmount[]", - "name": "destTokenAmounts", - "type": "tuple[]" - } - ], - "internalType": "struct Client.Any2EVMMessage", - "name": "message", - "type": "tuple" - }, - { - "internalType": "uint16", - "name": "gasForCallExactCheck", - "type": "uint16" - }, - { - "internalType": "uint256", - "name": "gasLimit", - "type": "uint256" - }, - { - "internalType": "address", - "name": "receiver", - "type": "address" - } - ], - "name": "routeMessage", - "outputs": [ - { - "internalType": "bool", - "name": "success", - "type": "bool" - }, - { - "internalType": "bytes", - "name": "retData", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "gasUsed", - "type": "uint256" - } - ], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "wrappedNative", - "type": "address" - } - ], - "name": "setWrappedNative", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "to", - "type": "address" - } - ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "typeAndVersion", - "outputs": [ - { - "internalType": "string", - "name": "", - "type": "string" - } - ], - "stateMutability": "view", - "type": "function" - } -] diff --git a/api_reference/javascript/CCIPLocalSimulatorFork.mdx b/api_reference/javascript/CCIPLocalSimulatorFork.mdx index aadc18b..a8929f3 100644 --- a/api_reference/javascript/CCIPLocalSimulatorFork.mdx +++ b/api_reference/javascript/CCIPLocalSimulatorFork.mdx @@ -1,48 +1,75 @@ +## Constants + +
+
LINK_FAUCET_ADDRESS
+

Hardhat 3 helpers for routing CCIP messages between forked networks (the JavaScript counterpart of the Solidity +CCIPLocalSimulatorFork). Supports pre-1.6 (EVM2EVMOnRamp), 1.6 and CCIP 2.0 (CCV-based) lanes.

+

Every function takes the NetworkConnection returned by network.connect() and requires the +@nomicfoundation/hardhat-ethers plugin (it uses connection.ethers). Messages are sent on the source connection, +then routed on the destination connection:

+

const source = await network.connect({ network: "sepoliaFork" }); + const destination = await network.connect({ network: "arbitrumSepoliaFork" }); + const receipt = await (await router.ccipSend(destChainSelector, message, { value: fee })).wait(); + const [sent] = getCCIPMessages(source, receipt); + await routeMessage(destination, destinationRouterAddress, sent);

+
+
CCIP_V2_ROUTERS
+

Dedicated CCIP 2.0 routers deployed next to the default router, keyed by chain id (verified on-chain, Sep 2026).

+
+
+ ## Functions
- requestLinkFromTheFaucet(linkAddress, to, amount) + requestLinkFromTheFaucet(connection, linkAddress, to, amount) {' '} ⇒ Promise.<string>
-
-

Requests LINK tokens from the faucet and returns the transaction hash

-
-
- getEvm2EvmMessage(receipt) ⇒{' '} - - Evm2EvmMessage - {' '} - | null -

- Parses a transaction receipt to extract the sent message Scans through - transaction logs to find a CCIPSendRequested event and then - decodes it to an object + Requests LINK tokens from the testnet faucet by impersonating it, and + returns the transaction hash.

- getEvm2AnyRampMessage(receipt) ⇒{' '} - object | null + getCCIPMessages(connection, receipt) ⇒{' '} + + Array.<CCIPSentMessage> +

- Parses a transaction receipt to extract the sent message from - CCIPMessageSent + Extracts every CCIP message sent in a transaction, for all supported + protocol versions.

- routeMessage(routerAddress, evm2EvmMessage) ⇒{' '} - Promise.<void> + + routeMessage(connection, routerAddresses, sent, [options]) + {' '} + ⇒ Promise.<Object>

- Routes the sent message from the source network on the destination - (current) network + Routes a sent message on the destination (connected) network, as the + destination OffRamp would execute it.

+
    +
  • + pre-1.6 and 1.6: impersonates the lane's OffRamp and calls{' '} + executeSingleMessage. +
  • +
  • + CCIP 2.0: the OffRamp selects the CCVs (getCCVsForMessage), + CCVs that are owner-configurable verifier resolvers are pointed at a + synthetic no-op verifier, and the raw encoded message is executed + through the permissionless + execute. A message is only delivered if the OffRamp reports + SUCCESS. +
  • +
@@ -50,97 +77,119 @@
- Evm2EvmMessage : Object + CCIPSentMessage : Object
- + -## requestLinkFromTheFaucet(linkAddress, to, amount) ⇒ Promise.<string> +## LINK_FAUCET_ADDRESS -Requests LINK tokens from the faucet and returns the transaction hash +Hardhat 3 helpers for routing CCIP messages between forked networks (the +JavaScript counterpart of the Solidity `CCIPLocalSimulatorFork`). Supports +pre-1.6 (`EVM2EVMOnRamp`), 1.6 and CCIP 2.0 (CCV-based) lanes. -**Kind**: global function -**Returns**: Promise.<string> - Promise resolving to the -transaction hash of the fund transfer +Every function takes the `NetworkConnection` returned by `network.connect()` and +requires the `@nomicfoundation/hardhat-ethers` plugin (it uses +`connection.ethers`). Messages are sent on the source connection, then routed on +the destination connection: + +const source = await network.connect({ network: "sepoliaFork" }); const +destination = await network.connect({ network: "arbitrumSepoliaFork" }); const +receipt = await (await router.ccipSend(destChainSelector, message, { value: fee +})).wait(); const [sent] = getCCIPMessages(source, receipt); await +routeMessage(destination, destinationRouterAddress, sent); + +**Kind**: global constant -| Param | Type | Description | -| ----------- | ------------------- | ------------------------------------------------------- | -| linkAddress | string | The address of the LINK contract on the current network | -| to | string | The address to send LINK to | -| amount | bigint | The amount of LINK to request | + - +## CCIP_V2_ROUTERS -## getEvm2EvmMessage(receipt) ⇒ [Evm2EvmMessage](#Evm2EvmMessage) \| null +Dedicated CCIP 2.0 routers deployed next to the default router, keyed by chain +id (verified on-chain, Sep 2026). -Parses a transaction receipt to extract the sent message Scans through -transaction logs to find a `CCIPSendRequested` event and then decodes it to an -object +**Kind**: global constant + + + +## requestLinkFromTheFaucet(connection, linkAddress, to, amount) ⇒ Promise.<string> + +Requests LINK tokens from the testnet faucet by impersonating it, and returns +the transaction hash. **Kind**: global function -**Returns**: [Evm2EvmMessage](#Evm2EvmMessage) \| -null - Returns either the sent message or null if provided receipt -does not contain `CCIPSendRequested` log +**Returns**: Promise.<string> - The transaction hash of the +transfer -| Param | Type | Description | -| ------- | ------------------- | ------------------------------------------------ | -| receipt | object | The transaction receipt from the `ccipSend` call | +| Param | Type | Description | +| ----------- | ------------------- | --------------------------------------------------------- | +| connection | object | Network connection from `network.connect()` | +| linkAddress | string | The address of the LINK contract on the connected network | +| to | string | The address to send LINK to | +| amount | bigint | The amount of LINK to request | - + -## getEvm2AnyRampMessage(receipt) ⇒ object \| null +## getCCIPMessages(connection, receipt) ⇒ [Array.<CCIPSentMessage>](#CCIPSentMessage) -Parses a transaction receipt to extract the sent message from CCIPMessageSent +Extracts every CCIP message sent in a transaction, for all supported protocol +versions. **Kind**: global function -**Returns**: object \| null - Returns { -destChainSelector, sequenceNumber, EVM2AnyRampMessage message } or null +**Returns**: [Array.<CCIPSentMessage>](#CCIPSentMessage) - +The sent messages, in log order (empty if none) -| Param | Type | Description | -| ------- | ------------------- | ------------------------------------------ | -| receipt | object | – The tx receipt from the on-ramp contract | +| Param | Type | Description | +| ---------- | ------------------- | ------------------------------------------ | +| connection | object | Network connection of the source chain | +| receipt | object | Transaction receipt of the `ccipSend` call | -## routeMessage(routerAddress, evm2EvmMessage) ⇒ Promise.<void> +## routeMessage(connection, routerAddresses, sent, [options]) ⇒ Promise.<Object> + +Routes a sent message on the destination (connected) network, as the destination +OffRamp would execute it. -Routes the sent message from the source network on the destination (current) -network +- pre-1.6 and 1.6: impersonates the lane's OffRamp and calls + `executeSingleMessage`. +- CCIP 2.0: the OffRamp selects the CCVs (`getCCVsForMessage`), CCVs that are + owner-configurable verifier resolvers are pointed at a synthetic no-op + verifier, and the raw encoded message is executed through the permissionless + `execute`. A message is only delivered if the OffRamp reports SUCCESS. **Kind**: global function -**Returns**: Promise.<void> - Either resolves with no value -if the message is successfully routed, or reverts +**Returns**: Promise.<Object> - +`{ offRamp, executed, reason }`: `executed` is false only for a CCIP 2.0 +NO_EXECUTION message routed without `forceExecution` (`reason` is then +`"NO_EXECUTION_ADDRESS"`) **Throws**: -- Error Fails if no off-ramp matches the message's source chain - selector or if calling `router.getOffRamps()` +- Error If no OffRamp serves the lane, or if execution fails + (receiver revert, finality or CCV rejection) -| Param | Type | Description | -| -------------- | ---------------------------------------------- | --------------------------------- | -| routerAddress | string | Address of the destination Router | -| evm2EvmMessage | [Evm2EvmMessage](#Evm2EvmMessage) | Sent cross-chain message | +| Param | Type | Default | Description | +| ------------------------ | -------------------------------------------------------- | ------------------ | ------------------------------------------------------------------------------------------------------------------ | +| connection | object | | Network connection of the destination chain | +| routerAddresses | string \| Array.<string> | | Destination router address(es) whose OffRamps are searched, e.g. the default router and `CCIP_V2_ROUTERS[chainId]` | +| sent | [CCIPSentMessage](#CCIPSentMessage) | | A message returned by `getCCIPMessages` | +| [options] | Object | | | +| [options.forceExecution] | boolean | false | Execute CCIP 2.0 messages whose executor is `NO_EXECUTION_ADDRESS` (manual execution) | - + -## Evm2EvmMessage : Object +## CCIPSentMessage : Object **Kind**: global typedef **Properties** -| Name | Type | -| ------------------- | ----------------------------------------------------------- | -| sourceChainSelector | bigint | -| sender | string | -| receiver | string | -| sequenceNumber | bigint | -| gasLimit | bigint | -| strict | boolean | -| nonce | bigint | -| feeToken | string | -| feeTokenAmount | bigint | -| data | string | -| tokenAmounts | Array.<\{token: string, amount: bigint}> | -| sourceTokenData | Array.<string> | -| messageId | string | +| Name | Type | Description | +| ------------------- | ------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | +| era | "PRE_V1_6" \| "V1_6" \| "V2" | CCIP protocol version of the lane the message was sent on | +| onRamp | string | Source OnRamp that emitted the message | +| messageId | string | | +| sourceChainSelector | bigint | | +| destChainSelector | bigint | | +| message | object | Era-specific payload: the pre-1.6 `EVM2EVMMessage`, the 1.6 `EVM2AnyRampMessage`, or for CCIP 2.0 `{ encodedMessage, receipts }` | diff --git a/api_reference/javascript/DataStreamsLocalSimulatorFork.mdx b/api_reference/javascript/DataStreamsLocalSimulatorFork.mdx new file mode 100644 index 0000000..31628e0 --- /dev/null +++ b/api_reference/javascript/DataStreamsLocalSimulatorFork.mdx @@ -0,0 +1,82 @@ +## Constants + +
+
+ LINK_FAUCET_ADDRESS +
+
+

+ Hardhat 3 helpers for Data Streams fork tests. Every function takes the{' '} + NetworkConnection returned by + network.connect() and requires the{' '} + @nomicfoundation/hardhat-ethers plugin (it uses{' '} + connection.ethers). +

+
+
+ +## Functions + +
+
+ + requestLinkFromFaucet(connection, linkAddress, to, amount) + {' '} + ⇒ Promise.<string> +
+
+

Requests LINK tokens from the faucet and returns the transaction hash

+
+
+ + requestNativeFromFaucet(connection, to, amount) + +
+
+

+ Requests native coins from the faucet (sets the balance of to + ) +

+
+
+ + + +## LINK_FAUCET_ADDRESS + +Hardhat 3 helpers for Data Streams fork tests. Every function takes the +`NetworkConnection` returned by `network.connect()` and requires the +`@nomicfoundation/hardhat-ethers` plugin (it uses `connection.ethers`). + +**Kind**: global constant + + + +## requestLinkFromFaucet(connection, linkAddress, to, amount) ⇒ Promise.<string> + +Requests LINK tokens from the faucet and returns the transaction hash + +**Kind**: global function +**Returns**: Promise.<string> - Promise resolving to the +transaction hash of the fund transfer + +| Param | Type | Description | +| ----------- | ------------------- | ------------------------------------------------------- | +| connection | object | Network connection from `network.connect()` | +| linkAddress | string | The address of the LINK contract on the current network | +| to | string | The address to send LINK to | +| amount | bigint | The amount of LINK to request | + + + +## requestNativeFromFaucet(connection, to, amount) + +Requests native coins from the faucet (sets the balance of `to`) + +**Kind**: global function + +| Param | Type | Description | +| ---------- | ------------------- | ------------------------------------------- | +| connection | object | Network connection from `network.connect()` | +| to | string | The address to send coins to | +| amount | bigint | The amount of coins to request | diff --git a/api_reference/javascript/MockReportGenerator.mdx b/api_reference/javascript/MockReportGenerator.mdx new file mode 100644 index 0000000..82f430d --- /dev/null +++ b/api_reference/javascript/MockReportGenerator.mdx @@ -0,0 +1,480 @@ + + +## MockReportGenerator + +Utility that builds deterministic mock Data Streams signed reports for local +testing. + +**Kind**: global class + +- [MockReportGenerator](#MockReportGenerator) + - [new MockReportGenerator(connection, initialPrice)](#new_MockReportGenerator_new) + - [.generateReportV1WithData(report)](#MockReportGenerator+generateReportV1WithData) + ⇒ string + - [.generateReportV2WithData(report)](#MockReportGenerator+generateReportV2WithData) + ⇒ string + - [.generateReportV3WithData(report)](#MockReportGenerator+generateReportV3WithData) + ⇒ string + - [.generateReportV4WithData(report)](#MockReportGenerator+generateReportV4WithData) + ⇒ string + - [.generateReportV5WithData(report)](#MockReportGenerator+generateReportV5WithData) + ⇒ string + - [.generateReportV6WithData(report)](#MockReportGenerator+generateReportV6WithData) + ⇒ string + - [.generateReportV7WithData(report)](#MockReportGenerator+generateReportV7WithData) + ⇒ string + - [.generateReportV8WithData(report)](#MockReportGenerator+generateReportV8WithData) + ⇒ string + - [.generateReportV9WithData(report)](#MockReportGenerator+generateReportV9WithData) + ⇒ string + - [.generateReportV10WithData(report)](#MockReportGenerator+generateReportV10WithData) + ⇒ string + - [.generateReportV11WithData(report)](#MockReportGenerator+generateReportV11WithData) + ⇒ string + - [.generateReportV12WithData(report)](#MockReportGenerator+generateReportV12WithData) + ⇒ string + - [.generateReportV13WithData(report)](#MockReportGenerator+generateReportV13WithData) + ⇒ string + - [.generateReportV1()](#MockReportGenerator+generateReportV1) ⇒ + Promise.<\{signedReport: string, report: ReportV1}> + - [.generateReportV2()](#MockReportGenerator+generateReportV2) ⇒ + Promise.<\{signedReport: string, report: ReportV2}> + - [.generateReportV3()](#MockReportGenerator+generateReportV3) ⇒ + Promise.<\{signedReport: string, report: ReportV3}> + - [.generateReportV4()](#MockReportGenerator+generateReportV4) ⇒ + Promise.<\{signedReport: string, report: ReportV4}> + - [.generateReportV5()](#MockReportGenerator+generateReportV5) ⇒ + Promise.<\{signedReport: string, report: ReportV5}> + - [.generateReportV6()](#MockReportGenerator+generateReportV6) ⇒ + Promise.<\{signedReport: string, report: ReportV6}> + - [.generateReportV7()](#MockReportGenerator+generateReportV7) ⇒ + Promise.<\{signedReport: string, report: ReportV7}> + - [.generateReportV8()](#MockReportGenerator+generateReportV8) ⇒ + Promise.<\{signedReport: string, report: ReportV8}> + - [.generateReportV9()](#MockReportGenerator+generateReportV9) ⇒ + Promise.<\{signedReport: string, report: ReportV9}> + - [.generateReportV10()](#MockReportGenerator+generateReportV10) ⇒ + Promise.<\{signedReport: string, report: ReportV10}> + - [.generateReportV11()](#MockReportGenerator+generateReportV11) ⇒ + Promise.<\{signedReport: string, report: ReportV11}> + - [.generateReportV12()](#MockReportGenerator+generateReportV12) ⇒ + Promise.<\{signedReport: string, report: ReportV12}> + - [.generateReportV13()](#MockReportGenerator+generateReportV13) ⇒ + Promise.<\{signedReport: string, report: ReportV13}> + - [.updatePrice(price)](#MockReportGenerator+updatePrice) ⇒ void + - [.updatePriceBidAndAsk(price, bid, ask)](#MockReportGenerator+updatePriceBidAndAsk) + ⇒ void + - [.updateExpiresPeriod(period)](#MockReportGenerator+updateExpiresPeriod) ⇒ + void + - [.updateMarketStatus(status)](#MockReportGenerator+updateMarketStatus) ⇒ + void + - [.updateFees(nativeFee, linkFee)](#MockReportGenerator+updateFees) ⇒ + void + - [.getMockDonAddress()](#MockReportGenerator+getMockDonAddress) ⇒ + string + + + +### new MockReportGenerator(connection, initialPrice) + +| Param | Type | Description | +| ------------ | ------------------------------------------ | ------------------------------------------------------------------------------------------------------------- | +| connection | object | Hardhat 3 network connection from `network.connect()`; requires the `@nomicfoundation/hardhat-ethers` plugin. | +| initialPrice | bigint \| number | Initial benchmark price used for generated reports. | + + + +### mockReportGenerator.generateReportV1WithData(report) ⇒ string + +Encodes and signs a version 1 report payload. + +**Kind**: instance method of +[MockReportGenerator](#MockReportGenerator) +**Returns**: string - ABI-encoded signed report blob. + +| Param | Type | Description | +| ------ | --------------------- | ------------------------ | +| report | ReportV1 | Report object to encode. | + + + +### mockReportGenerator.generateReportV2WithData(report) ⇒ string + +Encodes and signs a version 2 report payload. + +**Kind**: instance method of +[MockReportGenerator](#MockReportGenerator) +**Returns**: string - ABI-encoded signed report blob. + +| Param | Type | Description | +| ------ | --------------------- | ------------------------ | +| report | ReportV2 | Report object to encode. | + + + +### mockReportGenerator.generateReportV3WithData(report) ⇒ string + +Encodes and signs a version 3 report payload. + +**Kind**: instance method of +[MockReportGenerator](#MockReportGenerator) +**Returns**: string - ABI-encoded signed report blob. + +| Param | Type | Description | +| ------ | --------------------- | ------------------------ | +| report | ReportV3 | Report object to encode. | + + + +### mockReportGenerator.generateReportV4WithData(report) ⇒ string + +Encodes and signs a version 4 report payload. + +**Kind**: instance method of +[MockReportGenerator](#MockReportGenerator) +**Returns**: string - ABI-encoded signed report blob. + +| Param | Type | Description | +| ------ | --------------------- | ------------------------ | +| report | ReportV4 | Report object to encode. | + + + +### mockReportGenerator.generateReportV5WithData(report) ⇒ string + +Encodes and signs a version 5 report payload. + +**Kind**: instance method of +[MockReportGenerator](#MockReportGenerator) +**Returns**: string - ABI-encoded signed report blob. + +| Param | Type | Description | +| ------ | --------------------- | ------------------------ | +| report | ReportV5 | Report object to encode. | + + + +### mockReportGenerator.generateReportV6WithData(report) ⇒ string + +Encodes and signs a version 6 report payload. + +**Kind**: instance method of +[MockReportGenerator](#MockReportGenerator) +**Returns**: string - ABI-encoded signed report blob. + +| Param | Type | Description | +| ------ | --------------------- | ------------------------ | +| report | ReportV6 | Report object to encode. | + + + +### mockReportGenerator.generateReportV7WithData(report) ⇒ string + +Encodes and signs a version 7 report payload. + +**Kind**: instance method of +[MockReportGenerator](#MockReportGenerator) +**Returns**: string - ABI-encoded signed report blob. + +| Param | Type | Description | +| ------ | --------------------- | ------------------------ | +| report | ReportV7 | Report object to encode. | + + + +### mockReportGenerator.generateReportV8WithData(report) ⇒ string + +Encodes and signs a version 8 report payload. + +**Kind**: instance method of +[MockReportGenerator](#MockReportGenerator) +**Returns**: string - ABI-encoded signed report blob. + +| Param | Type | Description | +| ------ | --------------------- | ------------------------ | +| report | ReportV8 | Report object to encode. | + + + +### mockReportGenerator.generateReportV9WithData(report) ⇒ string + +Encodes and signs a version 9 report payload. + +**Kind**: instance method of +[MockReportGenerator](#MockReportGenerator) +**Returns**: string - ABI-encoded signed report blob. + +| Param | Type | Description | +| ------ | --------------------- | ------------------------ | +| report | ReportV9 | Report object to encode. | + + + +### mockReportGenerator.generateReportV10WithData(report) ⇒ string + +Encodes and signs a version 10 report payload. + +**Kind**: instance method of +[MockReportGenerator](#MockReportGenerator) +**Returns**: string - ABI-encoded signed report blob. + +| Param | Type | Description | +| ------ | ---------------------- | ------------------------ | +| report | ReportV10 | Report object to encode. | + + + +### mockReportGenerator.generateReportV11WithData(report) ⇒ string + +Encodes and signs a version 11 report payload. + +**Kind**: instance method of +[MockReportGenerator](#MockReportGenerator) +**Returns**: string - ABI-encoded signed report blob. + +| Param | Type | Description | +| ------ | ---------------------- | ------------------------ | +| report | ReportV11 | Report object to encode. | + + + +### mockReportGenerator.generateReportV12WithData(report) ⇒ string + +Encodes and signs a version 12 report payload. + +**Kind**: instance method of +[MockReportGenerator](#MockReportGenerator) +**Returns**: string - ABI-encoded signed report blob. + +| Param | Type | Description | +| ------ | ---------------------- | ------------------------ | +| report | ReportV12 | Report object to encode. | + + + +### mockReportGenerator.generateReportV13WithData(report) ⇒ string + +Encodes and signs a version 13 report payload. + +**Kind**: instance method of +[MockReportGenerator](#MockReportGenerator) +**Returns**: string - ABI-encoded signed report blob. + +| Param | Type | Description | +| ------ | ---------------------- | ------------------------ | +| report | ReportV13 | Report object to encode. | + + + +### mockReportGenerator.generateReportV1() ⇒ Promise.<\{signedReport: string, report: ReportV1}> + +Builds and signs a default version 1 report from current generator state. + +**Kind**: instance method of +[MockReportGenerator](#MockReportGenerator) +**Returns**: Promise.<\{signedReport: string, report: +ReportV1}> - Signed payload and decoded report model. + + + +### mockReportGenerator.generateReportV2() ⇒ Promise.<\{signedReport: string, report: ReportV2}> + +Builds and signs a default version 2 report from current generator state. + +**Kind**: instance method of +[MockReportGenerator](#MockReportGenerator) +**Returns**: Promise.<\{signedReport: string, report: +ReportV2}> - Signed payload and decoded report model. + + + +### mockReportGenerator.generateReportV3() ⇒ Promise.<\{signedReport: string, report: ReportV3}> + +Builds and signs a default version 3 report from current generator state. + +**Kind**: instance method of +[MockReportGenerator](#MockReportGenerator) +**Returns**: Promise.<\{signedReport: string, report: +ReportV3}> - Signed payload and decoded report model. + + + +### mockReportGenerator.generateReportV4() ⇒ Promise.<\{signedReport: string, report: ReportV4}> + +Builds and signs a default version 4 report from current generator state. + +**Kind**: instance method of +[MockReportGenerator](#MockReportGenerator) +**Returns**: Promise.<\{signedReport: string, report: +ReportV4}> - Signed payload and decoded report model. + + + +### mockReportGenerator.generateReportV5() ⇒ Promise.<\{signedReport: string, report: ReportV5}> + +Builds and signs a default version 5 report from current generator state. + +**Kind**: instance method of +[MockReportGenerator](#MockReportGenerator) +**Returns**: Promise.<\{signedReport: string, report: +ReportV5}> - Signed payload and decoded report model. + + + +### mockReportGenerator.generateReportV6() ⇒ Promise.<\{signedReport: string, report: ReportV6}> + +Builds and signs a default version 6 report from current generator state. + +**Kind**: instance method of +[MockReportGenerator](#MockReportGenerator) +**Returns**: Promise.<\{signedReport: string, report: +ReportV6}> - Signed payload and decoded report model. + + + +### mockReportGenerator.generateReportV7() ⇒ Promise.<\{signedReport: string, report: ReportV7}> + +Builds and signs a default version 7 report from current generator state. + +**Kind**: instance method of +[MockReportGenerator](#MockReportGenerator) +**Returns**: Promise.<\{signedReport: string, report: +ReportV7}> - Signed payload and decoded report model. + + + +### mockReportGenerator.generateReportV8() ⇒ Promise.<\{signedReport: string, report: ReportV8}> + +Builds and signs a default version 8 report from current generator state. + +**Kind**: instance method of +[MockReportGenerator](#MockReportGenerator) +**Returns**: Promise.<\{signedReport: string, report: +ReportV8}> - Signed payload and decoded report model. + + + +### mockReportGenerator.generateReportV9() ⇒ Promise.<\{signedReport: string, report: ReportV9}> + +Builds and signs a default version 9 report from current generator state. + +**Kind**: instance method of +[MockReportGenerator](#MockReportGenerator) +**Returns**: Promise.<\{signedReport: string, report: +ReportV9}> - Signed payload and decoded report model. + + + +### mockReportGenerator.generateReportV10() ⇒ Promise.<\{signedReport: string, report: ReportV10}> + +Builds and signs a default version 10 report from current generator state. + +**Kind**: instance method of +[MockReportGenerator](#MockReportGenerator) +**Returns**: Promise.<\{signedReport: string, report: +ReportV10}> - Signed payload and decoded report model. + + + +### mockReportGenerator.generateReportV11() ⇒ Promise.<\{signedReport: string, report: ReportV11}> + +Builds and signs a default version 11 report from current generator state. + +**Kind**: instance method of +[MockReportGenerator](#MockReportGenerator) +**Returns**: Promise.<\{signedReport: string, report: +ReportV11}> - Signed payload and decoded report model. + + + +### mockReportGenerator.generateReportV12() ⇒ Promise.<\{signedReport: string, report: ReportV12}> + +Builds and signs a default version 12 report from current generator state. + +**Kind**: instance method of +[MockReportGenerator](#MockReportGenerator) +**Returns**: Promise.<\{signedReport: string, report: +ReportV12}> - Signed payload and decoded report model. + + + +### mockReportGenerator.generateReportV13() ⇒ Promise.<\{signedReport: string, report: ReportV13}> + +Builds and signs a default version 13 report from current generator state. + +**Kind**: instance method of +[MockReportGenerator](#MockReportGenerator) +**Returns**: Promise.<\{signedReport: string, report: +ReportV13}> - Signed payload and decoded report model. + + + +### mockReportGenerator.updatePrice(price) ⇒ void + +Updates benchmark price and derives bid/ask around it using +/-0.1%. + +**Kind**: instance method of +[MockReportGenerator](#MockReportGenerator) + +| Param | Type | Description | +| ----- | ------------------------------------------ | -------------------- | +| price | bigint \| number | New benchmark price. | + + + +### mockReportGenerator.updatePriceBidAndAsk(price, bid, ask) ⇒ void + +Updates benchmark price and explicit bid/ask values. + +**Kind**: instance method of +[MockReportGenerator](#MockReportGenerator) + +| Param | Type | Description | +| ----- | ------------------------------------------ | ------------------------------------- | +| price | bigint \| number | Benchmark price. | +| bid | bigint \| number | Bid value; must be lower than price. | +| ask | bigint \| number | Ask value; must be higher than price. | + + + +### mockReportGenerator.updateExpiresPeriod(period) ⇒ void + +**Kind**: instance method of +[MockReportGenerator](#MockReportGenerator) + +| Param | Type | Description | +| ------ | ------------------- | -------------------------------- | +| period | number | Report expiry period in seconds. | + + + +### mockReportGenerator.updateMarketStatus(status) ⇒ void + +**Kind**: instance method of +[MockReportGenerator](#MockReportGenerator) + +| Param | Type | Description | +| ------ | ------------------- | ------------------- | +| status | number | Market status code. | + + + +### mockReportGenerator.updateFees(nativeFee, linkFee) ⇒ void + +**Kind**: instance method of +[MockReportGenerator](#MockReportGenerator) + +| Param | Type | Description | +| --------- | ------------------------------------------ | --------------------------------------- | +| nativeFee | bigint \| number | Verification fee in native token units. | +| linkFee | bigint \| number | Verification fee in LINK units. | + + + +### mockReportGenerator.getMockDonAddress() ⇒ string + +Returns the mock DON signer address derived from the fixed DON digest. + +**Kind**: instance method of +[MockReportGenerator](#MockReportGenerator) +**Returns**: string - EVM address. diff --git a/api_reference/javascript/ReportVersions.mdx b/api_reference/javascript/ReportVersions.mdx new file mode 100644 index 0000000..db2e0fd --- /dev/null +++ b/api_reference/javascript/ReportVersions.mdx @@ -0,0 +1,417 @@ +## Classes + +
+
+ ReportV1 +
+
+

Mock report payload model for Data Streams report version 1.

+
+
+ ReportV2 +
+
+

Mock report payload model for Data Streams report version 2.

+
+
+ ReportV3 +
+
+

Mock report payload model for Data Streams report version 3.

+
+
+ ReportV4 +
+
+

Mock report payload model for Data Streams report version 4.

+
+
+ ReportV5 +
+
+

Mock report payload model for Data Streams report version 5.

+
+
+ ReportV6 +
+
+

Mock report payload model for Data Streams report version 6.

+
+
+ ReportV7 +
+
+

Mock report payload model for Data Streams report version 7.

+
+
+ ReportV8 +
+
+

Mock report payload model for Data Streams report version 8.

+
+
+ ReportV9 +
+
+

Mock report payload model for Data Streams report version 9.

+
+
+ ReportV10 +
+
+

Mock report payload model for Data Streams report version 10.

+
+
+ ReportV11 +
+
+

Mock report payload model for Data Streams report version 11.

+
+
+ ReportV12 +
+
+

Mock report payload model for Data Streams report version 12.

+
+
+ ReportV13 +
+
+

Mock report payload model for Data Streams report version 13.

+
+
+ + + +## ReportV1 + +Mock report payload model for Data Streams report version 1. + +**Kind**: global class + + + +### new ReportV1(params) + +| Param | Type | Description | +| ---------------------------- | ------------------------------------------ | ----------------------------------------------------- | +| params | object | Report fields. | +| params.feedId | string | Stream identifier as bytes32 hex string. | +| params.observationsTimestamp | number | Observation timestamp in seconds. | +| params.benchmarkPrice | bigint \| number | DON consensus median benchmark price. | +| params.bid | bigint \| number | Bid-side price estimate. | +| params.ask | bigint \| number | Ask-side price estimate. | +| params.currentBlockNum | bigint \| number | Current block number used by the report. | +| params.currentBlockHash | string | Current block hash as bytes32 hex string. | +| params.validFromBlockNum | bigint \| number | Earliest block number from which the report is valid. | +| params.currentBlockTimestamp | bigint \| number | Current block timestamp in seconds. | + + + +## ReportV2 + +Mock report payload model for Data Streams report version 2. + +**Kind**: global class + + + +### new ReportV2(params) + +| Param | Type | Description | +| ---------------------------- | ------------------------------------------ | ----------------------------------------------- | +| params | object | Report fields. | +| params.feedId | string | Feed identifier as bytes32 hex string. | +| params.validFromTimestamp | number | Earliest timestamp where the report is valid. | +| params.observationsTimestamp | number | Latest timestamp covered by observations. | +| params.nativeFee | bigint \| number | Verification fee in native token units. | +| params.linkFee | bigint \| number | Verification fee in LINK units. | +| params.expiresAt | number | Expiration timestamp for on-chain verification. | +| params.benchmarkPrice | bigint \| number | Median benchmark price. | + + + +## ReportV3 + +Mock report payload model for Data Streams report version 3. + +**Kind**: global class + + + +### new ReportV3(params) + +| Param | Type | Description | +| ---------------------------- | ------------------------------------------ | ----------------------------------------------- | +| params | object | Report fields. | +| params.feedId | string | Stream identifier as bytes32 hex string. | +| params.validFromTimestamp | number | Earliest timestamp where the report is valid. | +| params.observationsTimestamp | number | Latest timestamp covered by observations. | +| params.nativeFee | bigint \| number | Verification fee in native token units. | +| params.linkFee | bigint \| number | Verification fee in LINK units. | +| params.expiresAt | number | Expiration timestamp for on-chain verification. | +| params.price | bigint \| number | Median price. | +| params.bid | bigint \| number | Simulated buy-side price impact value. | +| params.ask | bigint \| number | Simulated sell-side price impact value. | + + + +## ReportV4 + +Mock report payload model for Data Streams report version 4. + +**Kind**: global class + + + +### new ReportV4(params) + +| Param | Type | Description | +| ---------------------------- | ------------------------------------------ | ----------------------------------------------- | +| params | object | Report fields. | +| params.feedId | string | Stream identifier as bytes32 hex string. | +| params.validFromTimestamp | number | Earliest timestamp where the report is valid. | +| params.observationsTimestamp | number | Latest timestamp covered by observations. | +| params.nativeFee | bigint \| number | Verification fee in native token units. | +| params.linkFee | bigint \| number | Verification fee in LINK units. | +| params.expiresAt | number | Expiration timestamp for on-chain verification. | +| params.price | bigint \| number | Median benchmark price. | +| params.marketStatus | number | Market status code reported by DON. | + + + +## ReportV5 + +Mock report payload model for Data Streams report version 5. + +**Kind**: global class + + + +### new ReportV5(params) + +| Param | Type | Description | +| ---------------------------- | ------------------------------------------ | ----------------------------------------------- | +| params | object | Report fields. | +| params.feedId | string | Stream identifier as bytes32 hex string. | +| params.validFromTimestamp | number | Earliest timestamp where the report is valid. | +| params.observationsTimestamp | number | Latest timestamp covered by observations. | +| params.nativeFee | bigint \| number | Verification fee in native token units. | +| params.linkFee | bigint \| number | Verification fee in LINK units. | +| params.expiresAt | number | Expiration timestamp for on-chain verification. | +| params.rate | bigint \| number | Reported rate value. | +| params.timestamp | number | Rate timestamp in seconds. | +| params.duration | number | Duration window in seconds. | + + + +## ReportV6 + +Mock report payload model for Data Streams report version 6. + +**Kind**: global class + + + +### new ReportV6(params) + +| Param | Type | Description | +| ---------------------------- | ------------------------------------------ | ----------------------------------------------- | +| params | object | Report fields. | +| params.feedId | string | Stream identifier as bytes32 hex string. | +| params.validFromTimestamp | number | Earliest timestamp where the report is valid. | +| params.observationsTimestamp | number | Latest timestamp covered by observations. | +| params.nativeFee | bigint \| number | Verification fee in native token units. | +| params.linkFee | bigint \| number | Verification fee in LINK units. | +| params.expiresAt | number | Expiration timestamp for on-chain verification. | +| params.price | bigint \| number | Primary price value. | +| params.price2 | bigint \| number | Secondary price value. | +| params.price3 | bigint \| number | Third price value. | +| params.price4 | bigint \| number | Fourth price value. | +| params.price5 | bigint \| number | Fifth price value. | + + + +## ReportV7 + +Mock report payload model for Data Streams report version 7. + +**Kind**: global class + + + +### new ReportV7(params) + +| Param | Type | Description | +| ---------------------------- | ------------------------------------------ | ----------------------------------------------- | +| params | object | Report fields. | +| params.feedId | string | Stream identifier as bytes32 hex string. | +| params.validFromTimestamp | number | Earliest timestamp where the report is valid. | +| params.observationsTimestamp | number | Latest timestamp covered by observations. | +| params.nativeFee | bigint \| number | Verification fee in native token units. | +| params.linkFee | bigint \| number | Verification fee in LINK units. | +| params.expiresAt | number | Expiration timestamp for on-chain verification. | +| params.exchangeRate | bigint \| number | Redemption / exchange-rate value. | + + + +## ReportV8 + +Mock report payload model for Data Streams report version 8. + +**Kind**: global class + + + +### new ReportV8(params) + +| Param | Type | Description | +| ---------------------------- | ------------------------------------------ | ----------------------------------------------- | +| params | object | Report fields. | +| params.feedId | string | Stream identifier as bytes32 hex string. | +| params.validFromTimestamp | number | Earliest timestamp where the report is valid. | +| params.observationsTimestamp | number | Latest timestamp covered by observations. | +| params.nativeFee | bigint \| number | Verification fee in native token units. | +| params.linkFee | bigint \| number | Verification fee in LINK units. | +| params.expiresAt | number | Expiration timestamp for on-chain verification. | +| params.lastUpdateTimestamp | bigint \| number | Timestamp of the last source-side update. | +| params.midPrice | bigint \| number | DON consensus mid price. | +| params.marketStatus | number | Market status code reported by DON. | + + + +## ReportV9 + +Mock report payload model for Data Streams report version 9. + +**Kind**: global class + + + +### new ReportV9(params) + +| Param | Type | Description | +| ---------------------------- | ------------------------------------------ | ----------------------------------------------- | +| params | object | Report fields. | +| params.feedId | string | Stream identifier as bytes32 hex string. | +| params.validFromTimestamp | number | Earliest timestamp where the report is valid. | +| params.observationsTimestamp | number | Latest timestamp covered by observations. | +| params.nativeFee | bigint \| number | Verification fee in native token units. | +| params.linkFee | bigint \| number | Verification fee in LINK units. | +| params.expiresAt | number | Expiration timestamp for on-chain verification. | +| params.navPerShare | bigint \| number | Net asset value per share. | +| params.navDate | bigint \| number | NAV date / timestamp. | +| params.aum | bigint \| number | Assets under management value. | +| params.ripcord | number | Issuer / source risk flag. | + + + +## ReportV10 + +Mock report payload model for Data Streams report version 10. + +**Kind**: global class + + + +### new ReportV10(params) + +| Param | Type | Description | +| ---------------------------- | ------------------------------------------ | --------------------------------------------------- | +| params | object | Report fields. | +| params.feedId | string | Stream identifier as bytes32 hex string. | +| params.validFromTimestamp | number | Earliest timestamp where the report is valid. | +| params.observationsTimestamp | number | Latest timestamp covered by observations. | +| params.nativeFee | bigint \| number | Verification fee in native token units. | +| params.linkFee | bigint \| number | Verification fee in LINK units. | +| params.expiresAt | number | Expiration timestamp for on-chain verification. | +| params.lastUpdateTimestamp | bigint \| number | Timestamp of the last source-side update. | +| params.price | bigint \| number | Underlying asset price. | +| params.marketStatus | number | Market status code reported by DON. | +| params.currentMultiplier | bigint \| number | Current underlying-share multiplier. | +| params.newMultiplier | bigint \| number | Future multiplier applied after a corporate action. | +| params.activationDateTime | number | Corporate-action activation timestamp. | +| params.tokenizedPrice | bigint \| number | Tokenized-asset price when available. | + + + +## ReportV11 + +Mock report payload model for Data Streams report version 11. + +**Kind**: global class + + + +### new ReportV11(params) + +| Param | Type | Description | +| ---------------------------- | ------------------------------------------ | ----------------------------------------------- | +| params | object | Report fields. | +| params.feedId | string | Stream identifier as bytes32 hex string. | +| params.validFromTimestamp | number | Earliest timestamp where the report is valid. | +| params.observationsTimestamp | number | Latest timestamp covered by observations. | +| params.nativeFee | bigint \| number | Verification fee in native token units. | +| params.linkFee | bigint \| number | Verification fee in LINK units. | +| params.expiresAt | number | Expiration timestamp for on-chain verification. | +| params.mid | bigint \| number | Liquidity-weighted mid price. | +| params.lastSeenTimestampNs | bigint \| number | Last-seen source timestamp in nanoseconds. | +| params.bid | bigint \| number | Consensus bid price. | +| params.bidVolume | bigint \| number | Resting bid-side volume / depth. | +| params.ask | bigint \| number | Consensus ask price. | +| params.askVolume | bigint \| number | Resting ask-side volume / depth. | +| params.lastTradedPrice | bigint \| number | Most recent traded price. | +| params.marketStatus | number | Market status code reported by DON. | + + + +## ReportV12 + +Mock report payload model for Data Streams report version 12. + +**Kind**: global class + + + +### new ReportV12(params) + +| Param | Type | Description | +| ---------------------------- | ------------------------------------------ | ----------------------------------------------- | +| params | object | Report fields. | +| params.feedId | string | Stream identifier as bytes32 hex string. | +| params.validFromTimestamp | number | Earliest timestamp where the report is valid. | +| params.observationsTimestamp | number | Latest timestamp covered by observations. | +| params.nativeFee | bigint \| number | Verification fee in native token units. | +| params.linkFee | bigint \| number | Verification fee in LINK units. | +| params.expiresAt | number | Expiration timestamp for on-chain verification. | +| params.navPerShare | bigint \| number | Current NAV per share. | +| params.nextNavPerShare | bigint \| number | Next NAV per share. | +| params.navDate | bigint \| number | NAV date / timestamp. | +| params.ripcord | number | Issuer / source risk flag. | + + + +## ReportV13 + +Mock report payload model for Data Streams report version 13. + +**Kind**: global class + + + +### new ReportV13(params) + +| Param | Type | Description | +| ---------------------------- | ------------------------------------------ | ----------------------------------------------- | +| params | object | Report fields. | +| params.feedId | string | Stream identifier as bytes32 hex string. | +| params.validFromTimestamp | number | Earliest timestamp where the report is valid. | +| params.observationsTimestamp | number | Latest timestamp covered by observations. | +| params.nativeFee | bigint \| number | Verification fee in native token units. | +| params.linkFee | bigint \| number | Verification fee in LINK units. | +| params.expiresAt | number | Expiration timestamp for on-chain verification. | +| params.bestAsk | bigint \| number | Best ask price. | +| params.bestBid | bigint \| number | Best bid price. | +| params.askVolume | bigint \| number | Best ask volume. | +| params.bidVolume | bigint \| number | Best bid volume. | +| params.lastTradedPrice | bigint \| number | Most recent traded price. | diff --git a/api_reference/javascript/index.mdx b/api_reference/javascript/index.mdx index 427c1d9..fc0f7e7 100644 --- a/api_reference/javascript/index.mdx +++ b/api_reference/javascript/index.mdx @@ -1,3 +1,6 @@ # Javascript API Reference - [CCIPLocalSimulatorFork](CCIPLocalSimulatorFork.mdx) +- [DataStreamsLocalSimulatorFork](DataStreamsLocalSimulatorFork.mdx) +- [MockReportGenerator](MockReportGenerator.mdx) +- [ReportVersions](ReportVersions.mdx) diff --git a/api_reference/solidity/ccip/BurnMintERC677Helper.mdx b/api_reference/solidity/ccip/BurnMintERC677Helper.mdx index 092c44d..62e762f 100644 --- a/api_reference/solidity/ccip/BurnMintERC677Helper.mdx +++ b/api_reference/solidity/ccip/BurnMintERC677Helper.mdx @@ -2,43 +2,49 @@ ## BurnMintERC677Helper +**Inherits:** BurnMintERC677 + +**Title:** BurnMintERC677Helper + This contract extends the functionality of the BurnMintERC677 token contract to include a `drip` function that mints one full token to a specified address. -_Inherits from the BurnMintERC677 contract and sets the token name, symbol, -decimals, and initial supply in the constructor._ +Inherits from the BurnMintERC677 contract and sets the token name, symbol, +decimals, and initial supply in the constructor. -### constructor +## Functions -```solidity -constructor(string name, string symbol) public -``` +### constructor Constructor to initialize the BurnMintERC677Helper contract with a name and symbol. -_Calls the parent constructor of BurnMintERC677 with fixed decimals (18) and -initial supply (0)._ +Calls the parent constructor of BurnMintERC677 with fixed decimals (18) and +initial supply (0). -#### Parameters +```solidity +constructor(string memory name, string memory symbol) BurnMintERC677(name, symbol, 18, 0); +``` -| Name | Type | Description | -| ------ | ------ | -------------------------- | -| name | string | - The name of the token. | -| symbol | string | - The symbol of the token. | +**Parameters** -### drip +| Name | Type | Description | +| -------- | -------- | -------------------------- | +| `name` | `string` | - The name of the token. | +| `symbol` | `string` | - The symbol of the token. | -```solidity -function drip(address to) external -``` +### drip Mints one full token (1e18) to the specified address. -_Calls the internal `_mint` function from the BurnMintERC677 contract._ +Calls the internal `_mint` function from the BurnMintERC677 contract. + +```solidity +function drip(address to) external; +``` -#### Parameters +**Parameters** -| Name | Type | Description | -| ---- | ------- | ------------------------------------------ | -| to | address | - The address to receive the minted token. | +| Name | Type | Description | +| ---- | --------- | ------------------------------------------ | +| `to` | `address` | - The address to receive the minted token. | diff --git a/api_reference/solidity/ccip/CCIPLocalRouter.mdx b/api_reference/solidity/ccip/CCIPLocalRouter.mdx new file mode 100644 index 0000000..f173f58 --- /dev/null +++ b/api_reference/solidity/ccip/CCIPLocalRouter.mdx @@ -0,0 +1,311 @@ +# Solidity API + +## CCIPLocalRouter + +**Inherits:** IRouter, IRouterClient + +**Title:** CCIPLocalRouter + +Local-mode router used by `CCIPLocalSimulator`. Mirrors `MockCCIPRouter` from +`@chainlink/contracts-ccip` 2.0.0 (same ABI, events and behaviour) and +additionally applies the CCIP 2.0 finality rules of the OnRamp and OffRamp, so a +test that passes locally does not fail on a fork or in production: + +- the requested finality of `GenericExtraArgsV3` must use a single mode (OnRamp + check at send time); +- a Faster-Than-Finality message that is not a token-only transfer is only + delivered to a receiver whose `getCCVsAndFinalityConfig` allows the requested + finality (OffRamp check). Receivers without `IAny2EVMMessageReceiverV2` accept + finalized messages only. + +`MockCCIPRouter.ccipSend` is not virtual, and wrapping it would change +`msg.sender`, hence the mirror. + +## State Variables + +### GAS_FOR_CALL_EXACT_CHECK + +```solidity +uint16 public constant GAS_FOR_CALL_EXACT_CHECK = 5_000 +``` + +### DEFAULT_GAS_LIMIT + +```solidity +uint32 public constant DEFAULT_GAS_LIMIT = 200_000 +``` + +### SOURCE_CHAIN_SELECTOR + +Source chain selector stamped on local messages (Ethereum Sepolia), as in +`MockCCIPRouter`. + +```solidity +uint64 internal constant SOURCE_CHAIN_SELECTOR = 16015286601757825753 +``` + +### s_mockFeeTokenAmount + +```solidity +uint256 internal s_mockFeeTokenAmount +``` + +### s_nonce + +Nonce used to guarantee a unique messageId per send, see `ccipSend`. + +```solidity +uint256 internal s_nonce +``` + +## Functions + +### routeMessage + +```solidity +function routeMessage( + Client.Any2EVMMessage calldata message, + uint16 gasForCallExactCheck, + uint256 gasLimit, + address receiver +) external returns (bool success, bytes memory retData, uint256 gasUsed); +``` + +### \_routeMessage + +```solidity +function _routeMessage( + Client.Any2EVMMessage memory message, + uint16 gasForCallExactCheck, + uint256 gasLimit, + address receiver +) internal returns (bool success, bytes memory retData, uint256 gasUsed); +``` + +### ccipSend + +Sends the tx locally to the receiver instead of on the destination chain. + +Ignores destinationChainSelector + +Returns a mock message ID, which is not calculated from the message contents in +the same way as the real message ID. + +```solidity +function ccipSend(uint64 destinationChainSelector, Client.EVM2AnyMessage calldata message) + external + payable + returns (bytes32); +``` + +### \_isTokenOnlyTransfer + +Same token-only rule as OffRamp 2.0 `_isTokenOnlyTransfer`, which also decides +whether the receiver is called. + +```solidity +function _isTokenOnlyTransfer(uint256 dataLength, uint256 gasLimit, address receiver) internal view returns (bool); +``` + +### \_ensureReceiverAllowsFinality + +Mirrors OffRamp 2.0 `_getCCVsFromReceiver`, which is called for every message +that is not a token-only transfer regardless of requested finality (including +fully finalized messages, not only Faster-Than- Finality ones). Token-only +transfers skip it entirely, as the pool enforces finality for them in production +(pools are not simulated in local mode). + +Local mode has no CCV verifiers to query for quorum, so this only reproduces the +validation and finality parts of `_getCCVsFromReceiver`: duplicate +required/optional CCVs and `optionalThreshold > optionalCCVs.length` are +rejected the same way, and the receiver's allowed finality is enforced. + +If `getCCVsAndFinalityConfig` reverts, that revert is bubbled as-is (not wrapped +in `ReceiverError`). In production the OffRamp does not distinguish this from +any other revert during message execution: it simply records +`ExecutionStateChanged(..., FAILURE, returnData)` with the getter's raw revert +data. `ReceiverError` is reserved for the narrower case of the receiver's own +`ccipReceive` call failing (see `_routeMessage`/`OffRamp._callReceiver`), so +bubbling here (rather than wrapping) keeps that error meaning precise while +still failing the local send, consistent with this contract's "fails in +production" -> "ccipSend reverts locally" mapping. + +```solidity +function _ensureReceiverAllowsFinality( + address receiver, + Client.Any2EVMMessage memory message, + uint256 gasLimit, + bytes4 requestedFinality +) internal view; +``` + +### \_parseExtraArgs + +```solidity +function _parseExtraArgs(uint64 destinationChainSelector, bytes calldata extraArgs) + internal + pure + returns (uint256 gasLimit, bytes4 requestedFinality); +``` + +**Parameters** + +| Name | Type | Description | +| -------------------------- | -------- | ------------------------------------------------------------------------------ | +| `destinationChainSelector` | `uint64` | Destination chain selector, used only for the `TokenReceiverNotAllowed` error. | +| `extraArgs` | `bytes` | | + +**Returns** + +| Name | Type | Description | +| ------------------- | --------- | ---------------------------------------------------------------------------------- | +| `gasLimit` | `uint256` | Callback gas limit. | +| `requestedFinality` | `bytes4` | `GenericExtraArgsV3.requestedFinalityConfig`, or WAIT_FOR_FINALITY for older tags. | + +### \_legacyGasLimit + +FeeQuoter compares the full uint256 V1/V2 gas limit against the lane's uint32 +`maxPerMsgGasLimit` and reverts `MessageGasLimitTooHigh`, so a value above +uint32 is rejected everywhere; the upstream mock truncated it. Local mode has no +lane config, so lower lane caps are not enforced. + +```solidity +function _legacyGasLimit(uint256 gasLimit) internal pure returns (uint256); +``` + +### isChainSupported + +Always returns true to make sure this check can be performed on any chain. + +```solidity +function isChainSupported(uint64) external pure returns (bool supported); +``` + +### getSupportedTokens + +Returns an empty array. + +```solidity +function getSupportedTokens(uint64) external pure returns (address[] memory tokens); +``` + +### getFee + +Returns 0 as the fee is not supported in this mock contract. + +```solidity +function getFee(uint64, Client.EVM2AnyMessage memory) public view returns (uint256); +``` + +### setFee + +Sets the fees returned by getFee but is only checked when using native fee +tokens + +```solidity +function setFee(uint256 feeAmount) external; +``` + +### getOnRamp + +Always returns address(1234567890) + +```solidity +function getOnRamp( + uint64 /* destChainSelector */ +) + external + pure + returns (address onRampAddress); +``` + +### isOffRamp + +Always returns true + +```solidity +function isOffRamp( + uint64, + /* sourceChainSelector */ + address /* offRamp */ +) + external + pure + returns (bool); +``` + +## Events + +### MessageExecuted + +```solidity +event MessageExecuted(bytes32 messageId, uint64 sourceChainSelector, address offRamp, bytes32 calldataHash); +``` + +### MsgExecuted + +```solidity +event MsgExecuted(bool success, bytes retData, uint256 gasUsed); +``` + +## Errors + +### InvalidAddress + +```solidity +error InvalidAddress(bytes encodedAddress); +``` + +### InvalidExtraArgsTag + +```solidity +error InvalidExtraArgsTag(); +``` + +### ReceiverError + +```solidity +error ReceiverError(bytes err); +``` + +### TokenReceiverNotAllowed + +Mirrors `OnRamp.TokenReceiverNotAllowed`: `GenericExtraArgsV3.tokenReceiver` is +rejected on all EVM lanes (`DestChainConfig.tokenReceiverAllowed` is always +false for EVM per its NatSpec). + +```solidity +error TokenReceiverNotAllowed(uint64 destChainSelector); +``` + +### MessageGasLimitTooHigh + +Mirrors `FeeQuoter.MessageGasLimitTooHigh`. + +```solidity +error MessageGasLimitTooHigh(); +``` + +### CanOnlySendOneTokenPerMessage + +Mirrors `OnRamp.CanOnlySendOneTokenPerMessage`. + +```solidity +error CanOnlySendOneTokenPerMessage(); +``` + +### CannotSendZeroTokens + +Mirrors `OnRamp.CannotSendZeroTokens`. + +```solidity +error CannotSendZeroTokens(); +``` + +### InvalidOptionalThreshold + +Mirrors `OffRamp.InvalidOptionalThreshold`. + +```solidity +error InvalidOptionalThreshold(uint8 wanted, uint256 got); +``` diff --git a/api_reference/solidity/ccip/CCIPLocalSimulator.mdx b/api_reference/solidity/ccip/CCIPLocalSimulator.mdx index eec2600..1ed71c6 100644 --- a/api_reference/solidity/ccip/CCIPLocalSimulator.mdx +++ b/api_reference/solidity/ccip/CCIPLocalSimulator.mdx @@ -2,217 +2,236 @@ ## CCIPLocalSimulator +**Title:** CCIPLocalSimulator + This contract simulates local CCIP (Cross-Chain Interoperability Protocol) operations for testing and development purposes. -_This contract includes methods to manage supported tokens and configurations -for local simulations._ +This contract includes methods to manage supported tokens and configurations for +local simulations. -### CHAIN_SELECTOR +## State Variables -```solidity -uint64 CHAIN_SELECTOR -``` +### CHAIN_SELECTOR The unique CCIP Chain Selector constant -### i_wrappedNative - ```solidity -contract WETH9 i_wrappedNative +uint64 constant CHAIN_SELECTOR = 16015286601757825753 ``` -The wrapped native token instance +### i_wrappedNative -### i_linkToken +The wrapped native token instance ```solidity -contract LinkToken i_linkToken +WETH9 internal immutable i_wrappedNative ``` -The LINK token instance +### i_linkToken -### i_ccipBnM +The LINK token instance ```solidity -contract BurnMintERC677Helper i_ccipBnM +LinkToken internal immutable i_linkToken ``` -The BurnMintERC677Helper instance for CCIP-BnM token +### i_ccipBnM -### i_ccipLnM +The BurnMintERC677Helper instance for CCIP-BnM token ```solidity -contract BurnMintERC677Helper i_ccipLnM +BurnMintERC677Helper internal immutable i_ccipBnM ``` -The BurnMintERC677Helper instance for CCIP-LnM token +### i_ccipLnM -### i_mockRouter +The BurnMintERC677Helper instance for CCIP-LnM token ```solidity -contract MockCCIPRouter i_mockRouter +BurnMintERC677Helper internal immutable i_ccipLnM ``` -The mock CCIP router instance +### i_mockRouter -### s_supportedTokens +The mock CCIP router instance ```solidity -address[] s_supportedTokens +CCIPLocalRouter internal immutable i_mockRouter ``` -The list of supported token addresses +### s_supportedTokens -### CCIPLocalSimulator\_\_MsgSenderIsNotTokenOwner +The list of supported token addresses ```solidity -error CCIPLocalSimulator__MsgSenderIsNotTokenOwner() +address[] internal s_supportedTokens ``` -### CCIPLocalSimulator\_\_RequiredRoleNotFound - -```solidity -error CCIPLocalSimulator__RequiredRoleNotFound(address account, bytes32 role, address token) -``` +## Functions ### constructor -```solidity -constructor() public -``` - Constructor to initialize the contract and pre-deployed token instances -### supportNewTokenViaOwner - ```solidity -function supportNewTokenViaOwner(address tokenAddress) external +constructor() ; ``` +### supportNewTokenViaOwner + Allows user to support any new token, besides CCIP BnM and CCIP LnM, for cross-chain transfers. Reverts if token does not implement owner() function. Reverts if the caller is not the token owner. -#### Parameters +```solidity +function supportNewTokenViaOwner(address tokenAddress) external; +``` -| Name | Type | Description | -| ------------ | ------- | ------------------------------------------------------------------ | -| tokenAddress | address | - The address of the token to add to the list of supported tokens. | +**Parameters** -### supportNewTokenViaGetCCIPAdmin +| Name | Type | Description | +| -------------- | --------- | ------------------------------------------------------------------ | +| `tokenAddress` | `address` | - The address of the token to add to the list of supported tokens. | -```solidity -function supportNewTokenViaGetCCIPAdmin(address tokenAddress) external -``` +### supportNewTokenViaGetCCIPAdmin Allows user to support any new token, besides CCIP BnM and CCIP LnM, for cross-chain transfers. Reverts if token does not implement getCCIPAdmin() function. Reverts if the caller is not the token CCIPAdmin. -#### Parameters +```solidity +function supportNewTokenViaGetCCIPAdmin(address tokenAddress) external; +``` -| Name | Type | Description | -| ------------ | ------- | ------------------------------------------------------------------ | -| tokenAddress | address | - The address of the token to add to the list of supported tokens. | +**Parameters** -### supportNewTokenViaAccessControlDefaultAdmin +| Name | Type | Description | +| -------------- | --------- | ------------------------------------------------------------------ | +| `tokenAddress` | `address` | - The address of the token to add to the list of supported tokens. | -```solidity -function supportNewTokenViaAccessControlDefaultAdmin(address tokenAddress) external -``` +### supportNewTokenViaAccessControlDefaultAdmin Allows user to support any new token, besides CCIP BnM and CCIP LnM, for cross-chain transfers. The caller must have the DEFAULT_ADMIN_ROLE as defined by the contract itself. Reverts if the caller is not the admin of the token using OZ's AccessControl DEFAULT_ADMIN_ROLE. -#### Parameters +```solidity +function supportNewTokenViaAccessControlDefaultAdmin(address tokenAddress) external; +``` + +**Parameters** -| Name | Type | Description | -| ------------ | ------- | ------------------------------------------------------------------ | -| tokenAddress | address | - The address of the token to add to the list of supported tokens. | +| Name | Type | Description | +| -------------- | --------- | ------------------------------------------------------------------ | +| `tokenAddress` | `address` | - The address of the token to add to the list of supported tokens. | ### isChainSupported +Checks whether the provided `chainSelector` is supported by the simulator. + ```solidity -function isChainSupported(uint64 chainSelector) public pure returns (bool supported) +function isChainSupported(uint64 chainSelector) public pure returns (bool supported); ``` -Checks whether the provided `chainSelector` is supported by the simulator. - -#### Parameters +**Parameters** -| Name | Type | Description | -| ------------- | ------ | --------------------------------- | -| chainSelector | uint64 | - The unique CCIP Chain Selector. | +| Name | Type | Description | +| --------------- | -------- | --------------------------------- | +| `chainSelector` | `uint64` | - The unique CCIP Chain Selector. | -#### Return Values +**Returns** -| Name | Type | Description | -| --------- | ---- | ---------------------------------------------------------------- | -| supported | bool | - Returns true if `chainSelector` is supported by the simulator. | +| Name | Type | Description | +| ----------- | ------ | ---------------------------------------------------------------- | +| `supported` | `bool` | - Returns true if `chainSelector` is supported by the simulator. | ### getSupportedTokens -```solidity -function getSupportedTokens(uint64 chainSelector) external view returns (address[] tokens) -``` - Gets a list of token addresses that are supported for cross-chain transfers by the simulator. -#### Parameters +```solidity +function getSupportedTokens(uint64 chainSelector) external view returns (address[] memory tokens); +``` -| Name | Type | Description | -| ------------- | ------ | --------------------------------- | -| chainSelector | uint64 | - The unique CCIP Chain Selector. | +**Parameters** -#### Return Values +| Name | Type | Description | +| --------------- | -------- | --------------------------------- | +| `chainSelector` | `uint64` | - The unique CCIP Chain Selector. | -| Name | Type | Description | -| ------ | --------- | -------------------------------------------------------------------------------------------------- | -| tokens | address[] | - Returns a list of token addresses that are supported for cross-chain transfers by the simulator. | +**Returns** -### requestLinkFromFaucet +| Name | Type | Description | +| -------- | ----------- | -------------------------------------------------------------------------------------------------- | +| `tokens` | `address[]` | - Returns a list of token addresses that are supported for cross-chain transfers by the simulator. | -```solidity -function requestLinkFromFaucet(address to, uint256 amount) external returns (bool success) -``` +### requestLinkFromFaucet Requests LINK tokens from the faucet. The provided amount of tokens are transferred to provided destination address. -#### Parameters +```solidity +function requestLinkFromFaucet(address to, uint256 amount) external returns (bool success); +``` + +**Parameters** -| Name | Type | Description | -| ------ | ------- | -------------------------------------------------- | -| to | address | - The address to which LINK tokens are to be sent. | -| amount | uint256 | - The amount of LINK tokens to send. | +| Name | Type | Description | +| -------- | --------- | -------------------------------------------------- | +| `to` | `address` | - The address to which LINK tokens are to be sent. | +| `amount` | `uint256` | - The amount of LINK tokens to send. | -#### Return Values +**Returns** -| Name | Type | Description | -| ------- | ---- | ----------------------------------------------------------------------------- | -| success | bool | - Returns `true` if the transfer of tokens was successful, otherwise `false`. | +| Name | Type | Description | +| --------- | ------ | ----------------------------------------------------------------------------- | +| `success` | `bool` | - Returns `true` if the transfer of tokens was successful, otherwise `false`. | ### configuration +Returns configuration details for pre-deployed contracts and services needed for +local CCIP simulations. + ```solidity -function configuration() public view returns (uint64 chainSelector_, contract IRouterClient sourceRouter_, contract IRouterClient destinationRouter_, contract WETH9 wrappedNative_, contract LinkToken linkToken_, contract BurnMintERC677Helper ccipBnM_, contract BurnMintERC677Helper ccipLnM_) +function configuration() + public + view + returns ( + uint64 chainSelector_, + IRouterClient sourceRouter_, + IRouterClient destinationRouter_, + WETH9 wrappedNative_, + LinkToken linkToken_, + BurnMintERC677Helper ccipBnM_, + BurnMintERC677Helper ccipLnM_ + ); ``` -Returns configuration details for pre-deployed contracts and services needed for -local CCIP simulations. +**Returns** -#### Return Values - -| Name | Type | Description | -| ------------------- | ----------------------------- | ----------------------------------------------------------- | -| chainSelector\_ | uint64 | - The unique CCIP Chain Selector. | -| sourceRouter\_ | contract IRouterClient | - The source chain Router contract. | -| destinationRouter\_ | contract IRouterClient | - The destination chain Router contract. | -| wrappedNative\_ | contract WETH9 | - The wrapped native token which can be used for CCIP fees. | -| linkToken\_ | contract LinkToken | - The LINK token. | -| ccipBnM\_ | contract BurnMintERC677Helper | - The ccipBnM token. | -| ccipLnM\_ | contract BurnMintERC677Helper | - The ccipLnM token. | +| Name | Type | Description | +| -------------------- | ---------------------- | ----------------------------------------------------------- | +| `chainSelector_` | `uint64` | - The unique CCIP Chain Selector. | +| `sourceRouter_` | `IRouterClient` | - The source chain Router contract. | +| `destinationRouter_` | `IRouterClient` | - The destination chain Router contract. | +| `wrappedNative_` | `WETH9` | - The wrapped native token which can be used for CCIP fees. | +| `linkToken_` | `LinkToken` | - The LINK token. | +| `ccipBnM_` | `BurnMintERC677Helper` | - The ccipBnM token. | +| `ccipLnM_` | `BurnMintERC677Helper` | - The ccipLnM token. | + +## Errors + +### CCIPLocalSimulator\_\_MsgSenderIsNotTokenOwner + +```solidity +error CCIPLocalSimulator__MsgSenderIsNotTokenOwner(); +``` + +### CCIPLocalSimulator\_\_RequiredRoleNotFound + +```solidity +error CCIPLocalSimulator__RequiredRoleNotFound(address account, bytes32 role, address token); +``` diff --git a/api_reference/solidity/ccip/CCIPLocalSimulatorFork.mdx b/api_reference/solidity/ccip/CCIPLocalSimulatorFork.mdx index 595bdba..c08c1c9 100644 --- a/api_reference/solidity/ccip/CCIPLocalSimulatorFork.mdx +++ b/api_reference/solidity/ccip/CCIPLocalSimulatorFork.mdx @@ -1,294 +1,1003 @@ # Solidity API -## IRouterFork +## CCIPLocalSimulatorFork + +**Inherits:** Test -### OffRamp +**Title:** CCIPLocalSimulatorFork -Structure representing an offRamp configuration +Works with Foundry only -#### Parameters +## State Variables -| Name | Type | Description | -| ---- | ---- | ----------- | +### i_register + +The immutable register instance ```solidity -struct OffRamp { - uint64 sourceChainSelector; - address offRamp; -} +Register immutable i_register ``` -### getOnRamp +### i_messageV1Decoder + +Helper to decode MessageV1 from memory bytes. ```solidity -function getOnRamp(uint64 destChainSelector) external view returns (address) +MessageV1CodecDecoder immutable i_messageV1Decoder ``` -Return the configured onramp for specific a destination chain. @param -destChainSelector The destination chain Id to get the onRamp for. +### LINK_FAUCET -#### Return Values +The address of the LINK faucet -| Name | Type | Description | -| ---- | ------- | -------------------------- | -| [0] | address | The address of the onRamp. | +```solidity +address constant LINK_FAUCET = 0x4281eCF07378Ee595C564a59048801330f3084eE +``` -### getOffRamps +### s_processedMessages + +Mapping to track processed messages ```solidity -function getOffRamps() external view returns (struct IRouterFork.OffRamp[]) +mapping(bytes32 messageId => bool isProcessed) internal s_processedMessages ``` -Gets the list of offRamps +### s_messageOutcomes -#### Return Values +Outcome of every captured message, see `getMessageStatus`. -| Name | Type | Description | -| ---- | ---------------------------- | ----------------------------------- | -| [0] | struct IRouterFork.OffRamp[] | offRamps - Array of OffRamp structs | +```solidity +mapping(bytes32 messageId => MessageOutcome outcome) internal s_messageOutcomes +``` -## IEVM2EVMOffRampFork +### s_strictRouting -### executeSingleMessage +When true (the default), routing reverts on a message that is not routed or does +not execute successfully. ```solidity -function executeSingleMessage(struct Internal.Any2EVMRampMessage message, bytes[] offchainTokenData, uint32[] tokenGasOverrides) external +bool internal s_strictRouting ``` -Executes a single CCIP message on the offRamp +### V2_EXECUTION_STATE_SUCCESS -#### Parameters +`Internal.MessageExecutionState.SUCCESS`. -| Name | Type | Description | -| ----------------- | ---------------------------------- | --------------------------------- | -| message | struct Internal.Any2EVMRampMessage | - The CCIP message to be executed | -| offchainTokenData | bytes[] | - Additional offchain token data | -| tokenGasOverrides | uint32[] | | +```solidity +uint256 private constant V2_EXECUTION_STATE_SUCCESS = 2 +``` -## InternalPreV1dot6 +### NO_STATE_PROGRESS_MADE_SELECTOR -### EVM2EVMMessage +OffRamp 2.0 `NoStateProgressMade(bytes32 messageId, bytes err)`: a retry of a +FAILURE message reverts with it. ```solidity -struct EVM2EVMMessage { - uint64 sourceChainSelector; - address sender; - address receiver; - uint64 sequenceNumber; - uint256 gasLimit; - bool strict; - uint64 nonce; - address feeToken; - uint256 feeTokenAmount; - bytes data; - struct Client.EVMTokenAmount[] tokenAmounts; - bytes[] sourceTokenData; - bytes32 messageId; -} +bytes4 private constant NO_STATE_PROGRESS_MADE_SELECTOR = bytes4(keccak256("NoStateProgressMade(bytes32,bytes)")) ``` -## IEVM2EVMOffRampPreV1dot6Fork - -### executeSingleMessage +### SYNTHETIC_V2_VERIFIER_VERSION ```solidity -function executeSingleMessage(struct InternalPreV1dot6.EVM2EVMMessage message, bytes[] offchainTokenData, uint32[] tokenGasOverrides) external +bytes4 private constant SYNTHETIC_V2_VERIFIER_VERSION = 0x464f524b ``` -## CCIPLocalSimulatorFork +### INVALID_VERIFIER_RESULTS_SELECTOR -Works with Foundry only +```solidity +bytes4 private constant INVALID_VERIFIER_RESULTS_SELECTOR = bytes4(keccak256("InvalidVerifierResults()")) +``` -### CCIPSendRequested +### INVALID_VERIFIER_RESULTS_LENGTH_SELECTOR ```solidity -event CCIPSendRequested(struct InternalPreV1dot6.EVM2EVMMessage message) +bytes4 private constant INVALID_VERIFIER_RESULTS_LENGTH_SELECTOR = + bytes4(keccak256("InvalidVerifierResultsLength()")) ``` -Events emitted when a CCIP send request is made +### INBOUND_IMPLEMENTATION_NOT_FOUND_SELECTOR -### CCIPMessageSent +```solidity +bytes4 private constant INBOUND_IMPLEMENTATION_NOT_FOUND_SELECTOR = + bytes4(keccak256("InboundImplementationNotFound(address,bytes)")) +``` + +### s_syntheticV2VerifierByScope ```solidity -event CCIPMessageSent(uint64 destChainSelector, uint64 sequenceNumber, struct Internal.EVM2AnyRampMessage message) +mapping(uint256 routeScope => address verifier) internal s_syntheticV2VerifierByScope ``` -### InvalidExtraArgsTag +### s_pendingV2MessagesByScope ```solidity -error InvalidExtraArgsTag() +mapping(uint256 routeScope => mapping(bytes32 messageId => PendingV2Message pendingMessage)) internal + s_pendingV2MessagesByScope ``` -### DEFAULT_GAS_LIMIT +### s_pendingV2MessageIdsByScope ```solidity -uint32 DEFAULT_GAS_LIMIT +mapping(uint256 routeScope => bytes32[] messageIds) internal s_pendingV2MessageIdsByScope ``` -### i_register +### s_awaitingDestination + +Captured messages waiting for their destination fork, in send order. ```solidity -contract Register i_register +AwaitingDestinationMessage[] internal s_awaitingDestination ``` -The immutable register instance +### s_ccipV2Routers -### LINK_FAUCET +CCIP 2.0 routers deployed next to the Register router (which `getNetworkDetails` +returns). + +Hand-maintained: `Register` is generated from the CCIP docs API and only carries +one router per chain. ```solidity -address LINK_FAUCET +mapping(uint256 chainId => address router) internal s_ccipV2Routers ``` -The address of the LINK faucet +### s_v2VerificationMode -### s_processedMessages +```solidity +V2VerificationMode internal s_v2VerificationMode +``` + +### s_v2ExecutionMode ```solidity -mapping(bytes32 => bool) s_processedMessages +V2ExecutionMode internal s_v2ExecutionMode ``` -Mapping to track processed messages +## Functions ### constructor +Constructor to initialize the contract + ```solidity -constructor() public +constructor() ; ``` -Constructor to initialize the contract +### switchChainAndRouteMessage + +To be called after the sending of the cross-chain message (`ccipSend`). Goes +through the list of past logs and looks for the supported CCIP send events. +Switches to a destination network fork. Routes the sent cross-chain message on +the destination network. If you sent more than one message, it will try to route +all of them to `forkId`. A 1.6 or 2.0 message to another chain is kept (status +QUEUED) and routed by a later call that includes its destination fork. `forkId` +is the active fork when the call returns. + +```solidity +function switchChainAndRouteMessage(uint256 forkId) external; +``` + +**Parameters** + +| Name | Type | Description | +| -------- | --------- | -------------------------------------------------------------------------------------------------------------- | +| `forkId` | `uint256` | - The ID of the destination network fork. This is the returned value of `createFork()` or `createSelectFork()` | ### switchChainAndRouteMessage +To be called after the sending of the cross-chain message (`ccipSend`). Override +variant of the `switchChainAndRouteMessage(uint256 forkId)` function in case of +multiple destination forks. Goes through provided `forkIds` and tries to route +messages to the matching destination. A 1.6 or 2.0 message to a chain that is +not in `forkIds` is kept (status QUEUED) for a later call. + ```solidity -function switchChainAndRouteMessage(uint256 forkId) external +function switchChainAndRouteMessage(uint256[] memory forkIds) external; ``` -To be called after the sending of the cross-chain message (`ccipSend`). Goes -through the list of past logs and looks for the `CCIPSendRequested` and -`CCIPMessageSent` events. Switches to a destination network fork. Routes the -sent cross-chain message on the destination network. If you sent more than one -message, it will try to route all of them to `forkId`. +**Parameters** -#### Parameters +| Name | Type | Description | +| --------- | ----------- | ------------------------------------------------------------------------------------------------------------------- | +| `forkIds` | `uint256[]` | - The IDs of the destination network forks. These are the returned values of `createFork()` or `createSelectFork()` | -| Name | Type | Description | -| ------ | ------- | -------------------------------------------------------------------------------------------------------------- | -| forkId | uint256 | - The ID of the destination network fork. This is the returned value of `createFork()` or `createSelectFork()` | +### getNetworkDetails -### switchChainAndRouteMessage +Returns the default values for currently CCIP supported networks. ```solidity -function switchChainAndRouteMessage(uint256[] forkIds) external +function getNetworkDetails(uint256 chainId) external view returns (Register.NetworkDetails memory); ``` -To be called after the sending of the cross-chain message (`ccipSend`). Override -variant of the `switchChainAndRouteMessage(uint256 forkId)` function in case of -multiple destination forks. Goes through the list of past logs and looks for the -`CCIPSendRequested` and `CCIPMessageSent` events. Loops through provided -`forkIds` and tries to route the message to correct destination. If you haven't -provide correct `forkId`, the message will get lost. If you sent more than one -message, it will try to route all of them to correct destinations. +### setNetworkDetails + +Manually sets network details. -#### Parameters +```solidity +function setNetworkDetails(uint256 chainId, Register.NetworkDetails memory networkDetails) external; +``` -| Name | Type | Description | -| ------- | --------- | ------------------------------------------------------------------------------------------------------------------- | -| forkIds | uint256[] | - The IDs of the destination network forks. These are the returned values of `createFork()` or `createSelectFork()` | +### getCCIPV2RouterAddress -### getNetworkDetails +Returns the CCIP 2.0 router deployed next to the Register router on `chainId`, +or address(0) if none is known. Send through this router (and point receivers at +it) to use its CCIP 2.0 lanes; messages sent through either router are routed by +`switchChainAndRouteMessage`. ```solidity -function getNetworkDetails(uint256 chainId) external view returns (struct Register.NetworkDetails) +function getCCIPV2RouterAddress(uint256 chainId) external view returns (address); ``` -Returns the default values for currently CCIP supported networks. If network is -not present or some of the values are changed, user can manually add new network -details using the `setNetworkDetails` function. +### setCCIPV2RouterAddress -#### Parameters +Manually sets the CCIP 2.0 router for `chainId`. Use address(0) to route through +the Register router only. -| Name | Type | Description | -| ------- | ------- | ------------------------------------------------------------------------------------------------------ | -| chainId | uint256 | - The blockchain network chain ID. For example 11155111 for Ethereum Sepolia. Not CCIP chain selector. | +```solidity +function setCCIPV2RouterAddress(uint256 chainId, address router) external; +``` -#### Return Values +### getOffRampForLane -| Name | Type | Description | -| ---- | ------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [0] | struct Register.NetworkDetails | networkDetails - The tuple containing: chainSelector - The unique CCIP Chain Selector. routerAddress - The address of the CCIP Router contract. linkAddress - The address of the LINK token. wrappedNativeAddress - The address of the wrapped native token that can be used for CCIP fees. ccipBnMAddress - The address of the CCIP BnM token. ccipLnMAddress - The address of the CCIP LnM token. | +Returns the destination OffRamp configured for `sourceOnRamp` on the given fork, +if discoverable. Useful to configure CCIP 2.0 lane CCVs before routing a +message. -### setNetworkDetails +```solidity +function getOffRampForLane(uint256 forkId, uint64 sourceChainSelector, address sourceOnRamp) + external + returns (address offRamp); +``` + +**Parameters** + +| Name | Type | Description | +| --------------------- | --------- | ------------------------------------------------ | +| `forkId` | `uint256` | - The ID of the destination network fork. | +| `sourceChainSelector` | `uint64` | - The chain selector of the source chain. | +| `sourceOnRamp` | `address` | - The address of the OnRamp on the source chain. | + +**Returns** + +| Name | Type | Description | +| --------- | --------- | ------------------------------------------------------------- | +| `offRamp` | `address` | - The matching OffRamp address, or address(0) when not found. | + +### setLaneDefaultCCVs + +Points a destination lane's default CCVs at `ccv` by impersonating the OffRamp +owner. Fork-only testing helper for CCIP 2.0 lanes: the mocked CCV must be +configured on the destination lane before a captured message can be routed +through the permissionless execution path. Router, enabled flag, OnRamp bindings +and lane-mandated CCVs are preserved. ```solidity -function setNetworkDetails(uint256 chainId, struct Register.NetworkDetails networkDetails) external +function setLaneDefaultCCVs(uint256 forkId, address offRamp, uint64 sourceChainSelector, address ccv) external; ``` -If network details are not present or some of the values are changed, user can -manually add new network details using the `setNetworkDetails` function. +**Parameters** + +| Name | Type | Description | +| --------------------- | --------- | ----------------------------------------------------- | +| `forkId` | `uint256` | - The ID of the destination network fork. | +| `offRamp` | `address` | - The destination OffRamp that holds the lane config. | +| `sourceChainSelector` | `uint64` | - The chain selector of the source chain. | +| `ccv` | `address` | - The CCV address to set as the lane default. | -#### Parameters +### \_setLaneDefaultCCVs -| Name | Type | Description | -| -------------- | ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| chainId | uint256 | - The blockchain network chain ID. For example 11155111 for Ethereum Sepolia. Not CCIP chain selector. | -| networkDetails | struct Register.NetworkDetails | - The tuple containing: chainSelector - The unique CCIP Chain Selector. routerAddress - The address of the CCIP Router contract. linkAddress - The address of the LINK token. wrappedNativeAddress - The address of the wrapped native token that can be used for CCIP fees. ccipBnMAddress - The address of the CCIP BnM token. ccipLnMAddress - The address of the CCIP LnM token. | +```solidity +function _setLaneDefaultCCVs(address offRamp, uint64 sourceChainSelector, address ccv) internal; +``` ### requestLinkFromFaucet +Requests LINK tokens from the faucet. + ```solidity -function requestLinkFromFaucet(address to, uint256 amount) external returns (bool success) +function requestLinkFromFaucet(address to, uint256 amount) external returns (bool success); ``` -Requests LINK tokens from the faucet. The provided amount of tokens are -transferred to provided destination address. +### setStrictRouting -#### Parameters +Enables or disables strict routing (enabled by default). When enabled, +`switchChainAndRouteMessage` and `executePendingV2Message` revert with +`CCIPLocalSimulatorFork__MessageNotRouted` when a captured CCIP message cannot +be routed to any of the given forks, and with +`CCIPLocalSimulatorFork__MessageExecutionFailed` when a routed message does not +execute successfully. When disabled, failures are logged and recorded (see +`getMessageStatus`) and routing continues. -| Name | Type | Description | -| ------ | ------- | -------------------------------------------------- | -| to | address | - The address to which LINK tokens are to be sent. | -| amount | uint256 | - The amount of LINK tokens to send. | +```solidity +function setStrictRouting(bool strict) external; +``` -#### Return Values +### getStrictRouting -| Name | Type | Description | -| ------- | ---- | ----------------------------------------------------------------------------- | -| success | bool | - Returns `true` if the transfer of tokens was successful, otherwise `false`. | +```solidity +function getStrictRouting() external view returns (bool strict); +``` -### \_routeCapturedMessages +### getMessageStatus + +Returns the outcome of a captured CCIP message. + +```solidity +function getMessageStatus(bytes32 messageId) external view returns (MessageStatus status, bytes memory reason); +``` + +**Parameters** + +| Name | Type | Description | +| ----------- | --------- | ---------------------- | +| `messageId` | `bytes32` | - The CCIP message ID. | + +**Returns** + +| Name | Type | Description | +| -------- | --------------- | --------------------------------------------------------------------------------------------------------------------------------- | +| `status` | `MessageStatus` | - NOT_FOUND, QUEUED, FAILED or SUCCESS. | +| `reason` | `bytes` | - For FAILED: the revert data of the execution, or an `Error(string)` explaining why the message was not routed. Empty otherwise. | + +### setV2VerificationMode + +```solidity +function setV2VerificationMode(V2VerificationMode mode) external; +``` + +### getV2VerificationMode + +```solidity +function getV2VerificationMode() external view returns (V2VerificationMode mode); +``` + +### setV2ExecutionMode ```solidity -function _routeCapturedMessages(uint256[] forkIds, uint256 sourceForkId, address sourceRouterAddress) internal +function setV2ExecutionMode(V2ExecutionMode mode) external; ``` +### getV2ExecutionMode + +```solidity +function getV2ExecutionMode() external view returns (V2ExecutionMode mode); +``` + +### getPendingV2MessageIds + +```solidity +function getPendingV2MessageIds() external view returns (bytes32[] memory messageIds); +``` + +### isPendingV2Message + +```solidity +function isPendingV2Message(bytes32 messageId) external view returns (bool isPending); +``` + +### executePendingV2Message + +```solidity +function executePendingV2Message(bytes32 messageId) external returns (bool attempted); +``` + +### \_routeCapturedMessages + Internal function to route captured messages to their respective destination forks. -#### Parameters +```solidity +function _routeCapturedMessages(uint256[] memory forkIds, uint256 sourceForkId) internal; +``` + +**Parameters** + +| Name | Type | Description | +| -------------- | ----------- | ----------------------- | +| `forkIds` | `uint256[]` | - Destination fork IDs. | +| `sourceForkId` | `uint256` | - Source fork ID. | + +### \_routeCapturedMessage + +```solidity +function _routeCapturedMessage( + Vm.Log memory entry, + uint256[] memory forkIds, + uint256 sourceForkId, + uint64 sourceChainSelector +) internal; +``` + +### \_logDestinationChainSelector + +```solidity +function _logDestinationChainSelector(Vm.Log memory entry, CCIPEra logEra) + internal + pure + returns (bool hasDestination, uint64 destinationChainSelector); +``` + +**Returns** + +| Name | Type | Description | +| -------------------------- | -------- | ---------------------------------------------------------------------------- | +| `hasDestination` | `bool` | Whether the log names its destination chain (1.6 and 2.0 `CCIPMessageSent`). | +| `destinationChainSelector` | `uint64` | The destination chain selector (`topics[1]`). | + +### \_messageIdFromLog + +```solidity +function _messageIdFromLog(Vm.Log memory entry, CCIPEra logEra) + internal + view + returns (bool isCCIPMessage, bytes32 messageId); +``` + +**Returns** + +| Name | Type | Description | +| --------------- | --------- | ------------------------------------------------------------------------------------ | +| `isCCIPMessage` | `bool` | False when the log has a CCIP event signature but does not decode as a CCIP message. | +| `messageId` | `bytes32` | The CCIP message ID. | + +### decodeMessageId + +External decode helper for pre-1.6 and 1.6 message IDs. Do not call directly. + +Decoding runs in an external self-call so a mis-shaped log fails inside +`try/catch`. + +```solidity +function decodeMessageId(uint8 logEra, bytes calldata data) external pure returns (bytes32); +``` + +### \_awaitDestination + +Not a failure, even in strict mode: routing one destination fork per call is the +documented usage. + +```solidity +function _awaitDestination(bytes32 messageId, Vm.Log memory entry, uint256 sourceForkId, uint64 sourceChainSelector) + internal; +``` + +### \_recordSuccess -| Name | Type | Description | -| ------------------- | --------- | ---------------------------------------------------------------------------------------------------------------------------------- | -| forkIds | uint256[] | - The IDs of the destination network forks. These are the returned values of `createFork()` or `createSelectFork()`, not chainIds. | -| sourceForkId | uint256 | - The ID of the source network fork. This is the returned value of `createFork()` or `createSelectFork()`, not chainId. | -| sourceRouterAddress | address | - The address of the Router on the source chain. | +```solidity +function _recordSuccess(bytes32 messageId) internal; +``` + +### \_recordQueued + +```solidity +function _recordQueued(bytes32 messageId) internal; +``` + +### \_recordExecutionFailure + +```solidity +function _recordExecutionFailure(bytes32 messageId, bytes memory reason) internal; +``` + +### \_recordNotRouted + +```solidity +function _recordNotRouted(bytes32 messageId, string memory reason) internal; +``` + +### \_routeMessageForEra + +```solidity +function _routeMessageForEra( + Vm.Log memory entry, + CCIPEra routingEra, + address sourceOnRamp, + uint64 sourceChainSelector +) internal returns (bool attempted); +``` + +### \_routePreV1dot6Message + +```solidity +function _routePreV1dot6Message(Vm.Log memory entry, address sourceOnRamp) internal returns (bool attempted); +``` + +### \_routeV1dot6Message + +```solidity +function _routeV1dot6Message(Vm.Log memory entry, address sourceOnRamp) internal returns (bool attempted); +``` + +### \_routeV2Message -### \_fromBytes +Routes a CCIP 2.0 message on the current (destination) fork. ```solidity -function _fromBytes(bytes extraArgs) internal pure returns (struct Client.GenericExtraArgsV2) +function _routeV2Message(Vm.Log memory entry, uint64 sourceChainSelector, bool forceExecution) + internal + returns (bool attempted); ``` -Internal helper function to decode extraArgs bytes to GenericExtraArgsV2 struct. -Supports decoding of both GenericExtraArgsV2 and EVMExtraArgsV1 structs. +**Parameters** + +| Name | Type | Description | +| --------------------- | -------- | -------------------------------------------------------------- | +| `entry` | `Vm.Log` | | +| `sourceChainSelector` | `uint64` | Chain selector of the source chain the message was sent from. | +| `forceExecution` | `bool` | Execute even if the V2 execution mode would queue the message. | + +### \_routeV2MessageOffRampDerived -#### Parameters +Routes a CCIP 2.0 message without decoding it locally: the destination OffRamp's +`getCCVsForMessage` selects the CCVs and the permissionless `execute` entrypoint +consumes the raw encoded message, so routing keeps working when the on-chain +`MessageV1` wire format moves ahead of the pinned codec. + +`execute` does not revert when the inner execution fails on a first attempt (it +records `FAILURE`), so the message is marked processed only when the OffRamp +reports `SUCCESS`. + +```solidity +function _routeV2MessageOffRampDerived(Vm.Log memory entry, uint64 sourceChainSelector, bool forceExecution) + internal + returns (bool attempted); +``` + +### \_stampedV2OffRamp + +Reads `offRampAddress` from a MessageV1 wire encoding: a 69-byte fixed header, +then `onRampAddress` and `offRampAddress`, each prefixed with a 1-byte length +(see `MessageV1Codec`). address(0) when malformed or not a 20-byte EVM address. + +```solidity +function _stampedV2OffRamp(bytes memory encodedMessage) internal pure returns (address offRamp); +``` -| Name | Type | Description | -| --------- | ----- | --------------------------------------------- | -| extraArgs | bytes | - The bytes representing the extra arguments. | +### \_v2FailureReason -#### Return Values +OffRamp 2.0 `execute` records FAILURE without reverting, and does not return the +reason. A second attempt of a FAILURE message reverts +`NoStateProgressMade(messageId, err)` with the original failure, and a reverted +call leaves no state behind, so the retry recovers the reason without side +effects. -| Name | Type | Description | -| ---- | -------------------------------- | --------------------------------------------------------- | -| [0] | struct Client.GenericExtraArgsV2 | genericExtraArgs - The decoded GenericExtraArgsV2 struct. | +```solidity +function _v2FailureReason( + address offRamp, + bytes memory encodedMessage, + address[] memory ccvs, + bytes[] memory verifierResults +) internal returns (bytes memory reason); +``` + +### decodeNoStateProgressMade + +External decode helper for `NoStateProgressMade(bytes32,bytes)` revert data. Do +not call directly. + +```solidity +function decodeNoStateProgressMade(bytes calldata revertData) external pure returns (bytes memory innerErr); +``` + +### \_isV2ExecutionSuccess + +Reads `getExecutionState(messageId)` from an OffRamp 2.0 without trusting the +return shape. + +```solidity +function _isV2ExecutionSuccess(address offRamp, bytes32 messageId) internal view returns (bool); +``` + +### \_routeV2MessageWithLocalCodec + +```solidity +function _routeV2MessageWithLocalCodec(Vm.Log memory entry, bool forceExecution) internal returns (bool attempted); +``` + +### deriveV2VerificationInputs + +```solidity +function deriveV2VerificationInputs(address offRamp, CCIPForkAdapterV2.DecodedMessage calldata decodedMessage) + external + view + returns (address[] memory ccvs, bytes[] memory verifierResults); +``` + +### \_deriveV2VerificationInputs + +```solidity +function _deriveV2VerificationInputs(address offRamp, CCIPForkAdapterV2.DecodedMessage memory decodedMessage) + internal + returns (address[] memory ccvs, bytes[] memory verifierResults, bool usedSyntheticInputs); +``` + +### \_buildSyntheticV2VerificationInputs + +```solidity +function _buildSyntheticV2VerificationInputs( + address offRamp, + bytes memory encodedMessage, + bytes[] memory existingVerifierResults +) internal returns (address[] memory ccvs, bytes[] memory verifierResults); +``` + +### \_deriveV2CCVSelection + +```solidity +function _deriveV2CCVSelection(address offRamp, bytes memory encodedMessage) + internal + view + returns (address[] memory ccvs); +``` + +### \_configureResolverForSyntheticV2Verification + +```solidity +function _configureResolverForSyntheticV2Verification(address resolver, address syntheticVerifier) + internal + returns (bool configured); +``` + +### \_resolvesSyntheticVersionTo + +```solidity +function _resolvesSyntheticVersionTo(address resolver, address syntheticVerifier) internal view returns (bool); +``` + +### \_getOrCreateSyntheticV2Verifier + +```solidity +function _getOrCreateSyntheticV2Verifier() internal returns (address verifier); +``` + +### \_routeScope + +```solidity +function _routeScope() internal view returns (uint256 routeScope); +``` + +### \_shouldQueueV2Message + +```solidity +function _shouldQueueV2Message(CCIPForkAdapterTypes.V2Receipt[] memory receipts) internal view returns (bool); +``` + +### \_isNoExecV2Message + +```solidity +function _isNoExecV2Message(CCIPForkAdapterTypes.V2Receipt[] memory receipts) internal pure returns (bool); +``` + +### \_enqueuePendingV2Message + +```solidity +function _enqueuePendingV2Message(bytes32 messageId, Vm.Log memory entry, uint64 sourceChainSelector) internal; +``` + +### \_dequeuePendingV2Message + +```solidity +function _dequeuePendingV2Message(uint256 routeScope, bytes32 messageId) internal; +``` + +### \_pendingV2MessageToLog + +```solidity +function _pendingV2MessageToLog(PendingV2Message storage pending) internal view returns (Vm.Log memory entry); +``` + +### \_isRecoverableV2VerificationFailure + +```solidity +function _isRecoverableV2VerificationFailure(bytes memory returnData) internal pure returns (bool); +``` + +### \_findOffRampForOnRamp + +Returns the destination OffRamp whose lane is configured for `sourceOnRamp`, if +discoverable. + +The router lists OffRamps of several protocol versions for the same source chain +(e.g. 1.6 and 2.0 side by side during a lane migration). Their getters share +selectors but not return shapes, and a mismatched return payload fails to decode +in the calling frame, which Solidity `try/catch` cannot catch. So every +candidate is probed with low-level calls and decoded through an external +self-call, and a candidate of unknown shape is skipped instead of reverting the +routing flow. + +```solidity +function _findOffRampForOnRamp( + CCIPForkAdapterTypes.RouterOffRamp[] memory offRamps, + uint64 sourceChainSelector, + address sourceOnRamp +) internal view returns (address offRampAddress); +``` + +### \_offRampServesOnRamp + +```solidity +function _offRampServesOnRamp(address offRamp, uint64 sourceChainSelector, address sourceOnRamp) + internal + view + returns (bool); +``` + +### \_detectOffRampEra + +```solidity +function _detectOffRampEra(address offRamp) internal view returns (bool isReadable, CCIPEra era); +``` + +**Returns** + +| Name | Type | Description | +| ------------ | --------- | ---------------------------------------------------------------------- | +| `isReadable` | `bool` | False when `typeAndVersion` is missing or does not decode to a string. | +| `era` | `CCIPEra` | The OffRamp era, or UNKNOWN for an unrecognised type or version. | + +### \_v2LaneMatches + +```solidity +function _v2LaneMatches(address offRamp, uint64 sourceChainSelector, address sourceOnRamp) + internal + view + returns (bool); +``` + +### \_v1dot6LaneMatches + +```solidity +function _v1dot6LaneMatches(address offRamp, uint64 sourceChainSelector, address sourceOnRamp) + internal + view + returns (bool); +``` + +### \_preV1dot6LaneMatches + +```solidity +function _preV1dot6LaneMatches(address offRamp, uint64 sourceChainSelector, address sourceOnRamp) + internal + view + returns (bool); +``` + +### decodeCCVsForMessage + +External decode helper for `getCCVsForMessage` return data. Do not call +directly. + +```solidity +function decodeCCVsForMessage(bytes calldata data) + external + pure + returns (address[] memory requiredCCVs, address[] memory optionalCCVs, uint8 threshold); +``` + +### decodeTypeAndVersion + +External decode helper for the OffRamp lookup. Do not call directly. + +Decoding runs in an external self-call so a mismatched payload fails inside +`try/catch`. + +```solidity +function decodeTypeAndVersion(bytes calldata data) external pure returns (string memory); +``` + +### decodeSourceChainConfigV2 + +External decode helper for the OffRamp lookup. Do not call directly. + +```solidity +function decodeSourceChainConfigV2(bytes calldata data) + external + pure + returns (IOffRampSourceConfigV2Fork.SourceChainConfig memory); +``` + +### decodeSourceChainConfigV1dot6 + +External decode helper for the OffRamp lookup. Do not call directly. + +```solidity +function decodeSourceChainConfigV1dot6(bytes calldata data) + external + pure + returns (IOffRampSourceConfigFork.SourceChainConfig memory); +``` + +### decodeStaticConfigPreV1dot6 + +External decode helper for the OffRamp lookup. Do not call directly. + +```solidity +function decodeStaticConfigPreV1dot6(bytes calldata data) + external + pure + returns (IEVM2EVMOffRampStaticConfigFork.StaticConfig memory); +``` + +### \_findSourceOnRamp + +Returns the OnRamp on the current (source) fork that emitted `emitter`'s log +towards `destChainSelector`, checking the Register router and then the CCIP 2.0 +router. address(0) if neither. + +```solidity +function _findSourceOnRamp(uint64 destChainSelector, address emitter) internal view returns (address onRamp); +``` + +### \_findOffRampOnCurrentFork + +Returns the destination OffRamp for the lane of `sourceOnRamp`, searching the +OffRamps of the Register router and then of the CCIP 2.0 router on the current +fork. + +```solidity +function _findOffRampOnCurrentFork(uint64 sourceChainSelector, address sourceOnRamp) + internal + view + returns (address offRampAddress); +``` + +### \_routersOnCurrentChain + +```solidity +function _routersOnCurrentChain() internal view returns (address[2] memory routers); +``` + +**Returns** + +| Name | Type | Description | +| --------- | ------------ | --------------------------------------------------------------------------------------------- | +| `routers` | `address[2]` | The Register router and the CCIP 2.0 router (address(0) if unset or identical) of this chain. | + +### decodeRouterOffRamps + +External decode helper for router `getOffRamps` return data. Do not call +directly. + +```solidity +function decodeRouterOffRamps(bytes calldata data) + external + pure + returns (CCIPForkAdapterTypes.RouterOffRamp[] memory); +``` + +### \_detectEraFromLog + +```solidity +function _detectEraFromLog(Vm.Log memory entry) internal pure returns (CCIPEra era); +``` + +### \_decodeAddressWord + +Decodes an ABI-encoded address word without reverting: +`abi.decode(data, (address))` reverts in the calling frame (not catchable) when +the word has non-zero high bits, e.g. a non-EVM OnRamp address. + +```solidity +function _decodeAddressWord(bytes memory data) internal pure returns (bool isAddress, address decoded); +``` + +### \_startsWith + +```solidity +function _startsWith(bytes memory value, bytes memory prefix) internal pure returns (bool); +``` + +## Errors + +### CCIPLocalSimulatorFork\_\_MessageNotRouted + +Strict routing: a captured CCIP message was not routed to any destination fork. + +```solidity +error CCIPLocalSimulatorFork__MessageNotRouted(bytes32 messageId, string reason); +``` + +### CCIPLocalSimulatorFork\_\_MessageExecutionFailed + +Strict routing: a routed message did not execute successfully. `reason` is the +revert data of the execution (for CCIP 2.0, the OffRamp's recorded failure). + +```solidity +error CCIPLocalSimulatorFork__MessageExecutionFailed(bytes32 messageId, bytes reason); +``` + +## Structs + +### MessageOutcome + +```solidity +struct MessageOutcome { + MessageStatus status; + bytes reason; +} +``` + +### AwaitingDestinationMessage + +A captured 1.6 / 2.0 message whose destination fork was not in `forkIds`, kept +for a later routing call. + +```solidity +struct AwaitingDestinationMessage { + uint256 sourceForkId; + uint64 sourceChainSelector; + address emitter; + bytes32[] topics; + bytes data; +} +``` + +### PendingV2Message + +```solidity +struct PendingV2Message { + bool exists; + uint64 sourceChainSelector; + address emitter; + bytes32[] topics; + bytes data; +} +``` + +## Enums + +### CCIPEra + +```solidity +enum CCIPEra { + UNKNOWN, + PRE_V1_DOT_6, + V1_DOT_6, + V2 +} +``` + +### V2VerificationMode + +```solidity +enum V2VerificationMode { + STRICT, + HYBRID, + SYNTHETIC_ONLY, + /// @notice Derives the CCV selection from the destination OffRamp's + /// `getCCVsForMessage(encodedMessage)` and executes the raw encoded message through + /// the permissionless `execute` entrypoint, so routing does not depend on the local + /// `MessageV1` codec. Fork-only. + OFFRAMP_DERIVED +} +``` + +### V2ExecutionMode + +```solidity +enum V2ExecutionMode { + AUTO, + RESPECT_NO_EXEC, + MANUAL_ONLY +} +``` + +### MessageStatus + +Outcome of a captured CCIP message (see `getMessageStatus`). + +NOT_FOUND: never captured by this simulator. QUEUED: a CCIP 2.0 +`NO_EXECUTION_ADDRESS` message waiting for `executePendingV2Message`, or a 1.6 / +2.0 message whose destination fork was not passed to +`switchChainAndRouteMessage` yet (a later call that includes it routes the +message; the reason says so). FAILED: not routed, or execution did not succeed +(the reason is recorded). + +```solidity +enum MessageStatus { + NOT_FOUND, + QUEUED, + FAILED, + SUCCESS +} +``` diff --git a/api_reference/solidity/ccip/CCIPLocalSimulatorV2NoOpVerifier.mdx b/api_reference/solidity/ccip/CCIPLocalSimulatorV2NoOpVerifier.mdx new file mode 100644 index 0000000..ec61f07 --- /dev/null +++ b/api_reference/solidity/ccip/CCIPLocalSimulatorV2NoOpVerifier.mdx @@ -0,0 +1,11 @@ +# Solidity API + +## CCIPLocalSimulatorV2NoOpVerifier + +## Functions + +### fallback + +```solidity +fallback() external payable; +``` diff --git a/api_reference/solidity/ccip/IEVM2EVMOffRampStaticConfigFork.mdx b/api_reference/solidity/ccip/IEVM2EVMOffRampStaticConfigFork.mdx new file mode 100644 index 0000000..8acf9af --- /dev/null +++ b/api_reference/solidity/ccip/IEVM2EVMOffRampStaticConfigFork.mdx @@ -0,0 +1,31 @@ +# Solidity API + +## IEVM2EVMOffRampStaticConfigFork + +**Title:** IEVM2EVMOffRampStaticConfigFork + +Minimal view surface for pre-v1.6 OffRamp static config (EVM2EVMOffRamp 1.5.x). + +## Functions + +### getStaticConfig + +```solidity +function getStaticConfig() external view returns (StaticConfig memory); +``` + +## Structs + +### StaticConfig + +```solidity +struct StaticConfig { + address commitStore; + uint64 chainSelector; + uint64 sourceChainSelector; + address onRamp; + address prevOffRamp; + address rmnProxy; + address tokenAdminRegistry; +} +``` diff --git a/api_reference/solidity/ccip/IOffRampSourceConfigFork.mdx b/api_reference/solidity/ccip/IOffRampSourceConfigFork.mdx new file mode 100644 index 0000000..b322d3a --- /dev/null +++ b/api_reference/solidity/ccip/IOffRampSourceConfigFork.mdx @@ -0,0 +1,31 @@ +# Solidity API + +## IOffRampSourceConfigFork + +**Title:** IOffRampSourceConfigFork + +Minimal view surface for v1.6+ OffRamp per-source-chain config (OffRamp 1.6.x). + +`router` is ABI-compatible with `IRouter` in CCIP OffRamp `SourceChainConfig`. + +## Functions + +### getSourceChainConfig + +```solidity +function getSourceChainConfig(uint64 sourceChainSelector) external view returns (SourceChainConfig memory); +``` + +## Structs + +### SourceChainConfig + +```solidity +struct SourceChainConfig { + address router; + bool isEnabled; + uint64 minSeqNr; + bool isRMNVerificationDisabled; + bytes onRamp; +} +``` diff --git a/api_reference/solidity/ccip/IOffRampSourceConfigV2Fork.mdx b/api_reference/solidity/ccip/IOffRampSourceConfigV2Fork.mdx new file mode 100644 index 0000000..2450c59 --- /dev/null +++ b/api_reference/solidity/ccip/IOffRampSourceConfigV2Fork.mdx @@ -0,0 +1,56 @@ +# Solidity API + +## IOffRampSourceConfigV2Fork + +**Title:** IOffRampSourceConfigV2Fork + +Minimal view/update surface for the CCIP 2.0 OffRamp per-source-chain config, +including the CCV sets used to verify messages. Mirrors +`OffRamp.SourceChainConfig`. + +## Functions + +### getSourceChainConfig + +```solidity +function getSourceChainConfig(uint64 sourceChainSelector) external view returns (SourceChainConfig memory); +``` + +### applySourceChainConfigUpdates + +```solidity +function applySourceChainConfigUpdates(SourceChainConfigArgs[] calldata updates) external; +``` + +### owner + +```solidity +function owner() external view returns (address); +``` + +## Structs + +### SourceChainConfig + +```solidity +struct SourceChainConfig { + address router; + bool isEnabled; + bytes[] onRamps; + address[] defaultCCVs; + address[] laneMandatedCCVs; +} +``` + +### SourceChainConfigArgs + +```solidity +struct SourceChainConfigArgs { + address router; + uint64 sourceChainSelector; + bool isEnabled; + bytes[] onRamps; + address[] defaultCCVs; + address[] laneMandatedCCVs; +} +``` diff --git a/api_reference/solidity/ccip/IRouterFork.mdx b/api_reference/solidity/ccip/IRouterFork.mdx new file mode 100644 index 0000000..1786a34 --- /dev/null +++ b/api_reference/solidity/ccip/IRouterFork.mdx @@ -0,0 +1,41 @@ +# Solidity API + +## IRouterFork + +**Title:** IRouterFork Interface + +## Functions + +### getOnRamp + +Return the configured onramp for specific a destination chain. + +```solidity +function getOnRamp(uint64 destChainSelector) external view returns (address); +``` + +**Parameters** + +| Name | Type | Description | +| ------------------- | -------- | ----------------------------------------------- | +| `destChainSelector` | `uint64` | The destination chain Id to get the onRamp for. | + +**Returns** + +| Name | Type | Description | +| -------- | --------- | -------------------------- | +| `` | `address` | The address of the onRamp. | + +### getOffRamps + +Gets the list of offRamps + +```solidity +function getOffRamps() external view returns (CCIPForkAdapterTypes.RouterOffRamp[] memory); +``` + +**Returns** + +| Name | Type | Description | +| -------- | -------------------------------------- | ----------------------------------- | +| `` | `CCIPForkAdapterTypes.RouterOffRamp[]` | offRamps - Array of OffRamp structs | diff --git a/api_reference/solidity/ccip/ITypeAndVersionProbe.mdx b/api_reference/solidity/ccip/ITypeAndVersionProbe.mdx new file mode 100644 index 0000000..bc6c1bf --- /dev/null +++ b/api_reference/solidity/ccip/ITypeAndVersionProbe.mdx @@ -0,0 +1,11 @@ +# Solidity API + +## ITypeAndVersionProbe + +## Functions + +### typeAndVersion + +```solidity +function typeAndVersion() external view returns (string memory); +``` diff --git a/api_reference/solidity/ccip/IVersionedVerifierResolverAdminFork.mdx b/api_reference/solidity/ccip/IVersionedVerifierResolverAdminFork.mdx new file mode 100644 index 0000000..7dad4b6 --- /dev/null +++ b/api_reference/solidity/ccip/IVersionedVerifierResolverAdminFork.mdx @@ -0,0 +1,34 @@ +# Solidity API + +## IVersionedVerifierResolverAdminFork + +## Functions + +### owner + +```solidity +function owner() external view returns (address); +``` + +### applyInboundImplementationUpdates + +```solidity +function applyInboundImplementationUpdates(InboundImplementationArgs[] calldata implementations) external; +``` + +### getInboundImplementation + +```solidity +function getInboundImplementation(bytes calldata verifierResults) external view returns (address); +``` + +## Structs + +### InboundImplementationArgs + +```solidity +struct InboundImplementationArgs { + bytes4 version; + address verifier; +} +``` diff --git a/api_reference/solidity/ccip/Register.mdx b/api_reference/solidity/ccip/Register.mdx index 0eaa65d..984b746 100644 --- a/api_reference/solidity/ccip/Register.mdx +++ b/api_reference/solidity/ccip/Register.mdx @@ -2,73 +2,94 @@ ## Register -This contract allows storing and retrieving network details for various chains. +**Title:** Register Contract -_Stores network details in a mapping based on chain IDs._ +This contract allows storing and retrieving network details for various chains. -### NetworkDetails +Built-in network details are returned by a generated pure function (see +`helper_doc/updateRegisterContract.cjs`) instead of being written to storage in +the constructor: storing ~150 chains cost ~24M gas, which made +`CCIPLocalSimulatorFork` too expensive to deploy on 30M-gas-limit forks. +`setNetworkDetails` overrides are stored. -```solidity -struct NetworkDetails { - uint64 chainSelector; - address routerAddress; - address linkAddress; - address wrappedNativeAddress; - address ccipBnMAddress; - address ccipLnMAddress; - address rmnProxyAddress; - address registryModuleOwnerCustomAddress; - address tokenAdminRegistryAddress; -} -``` +## State Variables ### s_networkDetails +Network details set with `setNetworkDetails`, overriding the built-in ones. + ```solidity -mapping(uint256 => struct Register.NetworkDetails) s_networkDetails +mapping(uint256 chainId => NetworkDetails) internal s_networkDetails ``` -Mapping to store network details based on chain ID. +### s_isOverridden -### constructor +Whether `setNetworkDetails` was called for a chain ID. ```solidity -constructor() public +mapping(uint256 chainId => bool isOverridden) internal s_isOverridden ``` -Constructor to initialize the network details for various chains. +## Functions ### getNetworkDetails +Retrieves network details for a given chain ID. + ```solidity -function getNetworkDetails(uint256 chainId) external view returns (struct Register.NetworkDetails networkDetails) +function getNetworkDetails(uint256 chainId) external view returns (NetworkDetails memory networkDetails); ``` -Retrieves network details for a given chain ID. +**Parameters** -#### Parameters +| Name | Type | Description | +| --------- | --------- | --------------------------------------------- | +| `chainId` | `uint256` | - The ID of the chain to get the details for. | -| Name | Type | Description | -| ------- | ------- | --------------------------------------------- | -| chainId | uint256 | - The ID of the chain to get the details for. | +**Returns** -#### Return Values - -| Name | Type | Description | -| -------------- | ------------------------------ | ------------------------------------------------- | -| networkDetails | struct Register.NetworkDetails | - The network details for the specified chain ID. | +| Name | Type | Description | +| ---------------- | ---------------- | ------------------------------------------------- | +| `networkDetails` | `NetworkDetails` | - The network details for the specified chain ID. | ### setNetworkDetails +Sets the network details for a given chain ID. + ```solidity -function setNetworkDetails(uint256 chainId, struct Register.NetworkDetails networkDetails) external +function setNetworkDetails(uint256 chainId, NetworkDetails memory networkDetails) external; ``` -Sets the network details for a given chain ID. +**Parameters** + +| Name | Type | Description | +| ---------------- | ---------------- | -------------------------------------------------------- | +| `chainId` | `uint256` | - The ID of the chain to set the details for. | +| `networkDetails` | `NetworkDetails` | - The network details to set for the specified chain ID. | + +### \_defaultNetworkDetails + +Built-in network details for `chainId`, or an all-zero struct for an unknown +chain. + +```solidity +function _defaultNetworkDetails(uint256 chainId) internal pure returns (NetworkDetails memory); +``` -#### Parameters +## Structs -| Name | Type | Description | -| -------------- | ------------------------------ | -------------------------------------------------------- | -| chainId | uint256 | - The ID of the chain to set the details for. | -| networkDetails | struct Register.NetworkDetails | - The network details to set for the specified chain ID. | +### NetworkDetails + +```solidity +struct NetworkDetails { + uint64 chainSelector; + address routerAddress; + address linkAddress; + address wrappedNativeAddress; + address ccipBnMAddress; + address ccipLnMAddress; + address rmnProxyAddress; + address registryModuleOwnerCustomAddress; + address tokenAdminRegistryAddress; +} +``` diff --git a/api_reference/solidity/ccip/adapters/CCIPForkAdapterPreV1dot6.mdx b/api_reference/solidity/ccip/adapters/CCIPForkAdapterPreV1dot6.mdx new file mode 100644 index 0000000..abd58ac --- /dev/null +++ b/api_reference/solidity/ccip/adapters/CCIPForkAdapterPreV1dot6.mdx @@ -0,0 +1,36 @@ +# Solidity API + +## CCIPForkAdapterPreV1dot6 + +## Functions + +### eventSelector + +```solidity +function eventSelector() internal pure returns (bytes32); +``` + +### decodeMessage + +```solidity +function decodeMessage(bytes memory eventData) + internal + pure + returns (CCIPForkAdapterTypes.PreV1dot6Message memory message); +``` + +### execute + +```solidity +function execute(address offRamp, CCIPForkAdapterTypes.PreV1dot6Message memory message) + internal + returns (bool success, bytes memory returnData); +``` + +## Events + +### CCIPSendRequested + +```solidity +event CCIPSendRequested(CCIPForkAdapterTypes.PreV1dot6Message message); +``` diff --git a/api_reference/solidity/ccip/adapters/CCIPForkAdapterTypes.mdx b/api_reference/solidity/ccip/adapters/CCIPForkAdapterTypes.mdx new file mode 100644 index 0000000..acb43b2 --- /dev/null +++ b/api_reference/solidity/ccip/adapters/CCIPForkAdapterTypes.mdx @@ -0,0 +1,111 @@ +# Solidity API + +## CCIPForkAdapterTypes + +## Structs + +### RouterOffRamp + +```solidity +struct RouterOffRamp { + uint64 sourceChainSelector; + address offRamp; +} +``` + +### PreV1dot6Message + +```solidity +struct PreV1dot6Message { + uint64 sourceChainSelector; + address sender; + address receiver; + uint64 sequenceNumber; + uint256 gasLimit; + bool strict; + uint64 nonce; + address feeToken; + uint256 feeTokenAmount; + bytes data; + Client.EVMTokenAmount[] tokenAmounts; + bytes[] sourceTokenData; + bytes32 messageId; +} +``` + +### V1dot6RampMessageHeader + +```solidity +struct V1dot6RampMessageHeader { + bytes32 messageId; + uint64 sourceChainSelector; + uint64 destChainSelector; + uint64 sequenceNumber; + uint64 nonce; +} +``` + +### V1dot6EVM2AnyTokenTransfer + +```solidity +struct V1dot6EVM2AnyTokenTransfer { + address sourcePoolAddress; + bytes destTokenAddress; + bytes extraData; + uint256 amount; + bytes destExecData; +} +``` + +### V1dot6Any2EVMTokenTransfer + +```solidity +struct V1dot6Any2EVMTokenTransfer { + bytes sourcePoolAddress; + address destTokenAddress; + uint32 destGasAmount; + bytes extraData; + uint256 amount; +} +``` + +### V1dot6EVM2AnyRampMessage + +```solidity +struct V1dot6EVM2AnyRampMessage { + V1dot6RampMessageHeader header; + address sender; + bytes data; + bytes receiver; + bytes extraArgs; + address feeToken; + uint256 feeTokenAmount; + uint256 feeValueJuels; + V1dot6EVM2AnyTokenTransfer[] tokenAmounts; +} +``` + +### V1dot6Any2EVMRampMessage + +```solidity +struct V1dot6Any2EVMRampMessage { + V1dot6RampMessageHeader header; + bytes sender; + bytes data; + address receiver; + uint256 gasLimit; + V1dot6Any2EVMTokenTransfer[] tokenAmounts; +} +``` + +### V2Receipt + +```solidity +struct V2Receipt { + address issuer; + uint32 destGasLimit; + uint32 destBytesOverhead; + uint256 feeTokenAmount; + bytes extraArgs; +} +``` diff --git a/api_reference/solidity/ccip/adapters/CCIPForkAdapterV1dot6.mdx b/api_reference/solidity/ccip/adapters/CCIPForkAdapterV1dot6.mdx new file mode 100644 index 0000000..0868b42 --- /dev/null +++ b/api_reference/solidity/ccip/adapters/CCIPForkAdapterV1dot6.mdx @@ -0,0 +1,83 @@ +# Solidity API + +## CCIPForkAdapterV1dot6 + +## State Variables + +### DEFAULT_GAS_LIMIT + +```solidity +uint32 internal constant DEFAULT_GAS_LIMIT = 200_000 +``` + +## Functions + +### eventSelector + +```solidity +function eventSelector() internal pure returns (bytes32); +``` + +### decodeMessage + +```solidity +function decodeMessage(bytes memory eventData) + internal + pure + returns (CCIPForkAdapterTypes.V1dot6EVM2AnyRampMessage memory message); +``` + +### execute + +```solidity +function execute(CCIPForkAdapterTypes.V1dot6EVM2AnyRampMessage memory message, address offRamp) + internal + returns (bool success, bytes memory returnData); +``` + +### \_toAny2EVMMessage + +```solidity +function _toAny2EVMMessage(CCIPForkAdapterTypes.V1dot6EVM2AnyRampMessage memory message, uint256 gasLimit) + internal + pure + returns (CCIPForkAdapterTypes.V1dot6Any2EVMRampMessage memory any2EVMMessage); +``` + +### \_decodeGasLimit + +```solidity +function _decodeGasLimit(bytes memory extraArgs) internal pure returns (uint256 gasLimit); +``` + +### \_decodeEVMAddress + +```solidity +function _decodeEVMAddress(bytes memory encodedAddress) internal pure returns (address decodedAddress); +``` + +## Events + +### CCIPMessageSent + +```solidity +event CCIPMessageSent( + uint64 indexed destChainSelector, + uint64 indexed sequenceNumber, + CCIPForkAdapterTypes.V1dot6EVM2AnyRampMessage message +); +``` + +## Errors + +### InvalidExtraArgsTag + +```solidity +error InvalidExtraArgsTag(bytes4 extraArgsTag); +``` + +### InvalidAddressEncoding + +```solidity +error InvalidAddressEncoding(bytes encodedAddress); +``` diff --git a/api_reference/solidity/ccip/adapters/CCIPForkAdapterV2.mdx b/api_reference/solidity/ccip/adapters/CCIPForkAdapterV2.mdx new file mode 100644 index 0000000..b2dc2f2 --- /dev/null +++ b/api_reference/solidity/ccip/adapters/CCIPForkAdapterV2.mdx @@ -0,0 +1,152 @@ +# Solidity API + +## CCIPForkAdapterV2 + +## Functions + +### eventSelector + +```solidity +function eventSelector() internal pure returns (bytes32); +``` + +### decodeMessage + +```solidity +function decodeMessage(bytes32[] memory topics, bytes memory eventData, IMessageV1Decoder decoder) + internal + view + returns (DecodedMessage memory decodedMessage); +``` + +### extractOffRampAddress + +```solidity +function extractOffRampAddress(DecodedMessage memory decodedMessage) + internal + pure + returns (address offRampAddress); +``` + +### deriveVerificationInputs + +```solidity +function deriveVerificationInputs(address offRamp, DecodedMessage memory decodedMessage) + internal + view + returns (address[] memory ccvs, bytes[] memory verifierResults); +``` + +### selectCCVs + +Selects the CCVs to execute a CCIP 2.0 message with, mirroring OffRamp 2.0 +`_ensureCCVQuorumIsReached`: every required CCV, plus `threshold` of the +optional CCVs. The OffRamp counts each optional entry that is present in `ccvs`, +so optional CCVs that are also required count first, and only the missing ones +are added (in order). Duplicates are removed. + +```solidity +function selectCCVs(address[] memory requiredCCVs, address[] memory optionalCCVs, uint8 threshold) + internal + pure + returns (address[] memory ccvs); +``` + +### execute + +```solidity +function execute( + address offRamp, + MessageV1Codec.MessageV1 memory message, + bytes32 messageId, + address[] memory ccvs, + bytes[] memory verifierResults +) internal returns (bool success, bytes memory returnData); +``` + +### \_decodeEVMAddress + +```solidity +function _decodeEVMAddress(bytes memory encodedAddress) private pure returns (address decodedAddress); +``` + +### \_contains + +```solidity +function _contains(address[] memory list, uint256 length, address value) private pure returns (bool); +``` + +### \_resolveVerifierResults + +```solidity +function _resolveVerifierResults(DecodedMessage memory decodedMessage, uint256 targetLength) + private + pure + returns (bytes[] memory verifierResults); +``` + +### \_findVerifierResultForCCV + +```solidity +function _findVerifierResultForCCV(DecodedMessage memory decodedMessage, address ccv) + private + pure + returns (bytes memory verifierResult); +``` + +## Events + +### CCIPMessageSent + +```solidity +event CCIPMessageSent( + uint64 indexed destChainSelector, + address indexed sender, + bytes32 indexed messageId, + address feeToken, + uint256 tokenAmountBeforeTokenPoolFees, + bytes encodedMessage, + CCIPForkAdapterTypes.V2Receipt[] receipts, + bytes[] verifierBlobs +); +``` + +## Errors + +### MissingMessageIdTopic + +```solidity +error MissingMessageIdTopic(); +``` + +### InvalidAddressEncoding + +```solidity +error InvalidAddressEncoding(bytes encodedAddress); +``` + +### MissingVerifierBlobForCCV + +```solidity +error MissingVerifierBlobForCCV(address ccv); +``` + +### InvalidVerifierReceiptCount + +```solidity +error InvalidVerifierReceiptCount(uint256 receiptsLength, uint256 verifierBlobLength); +``` + +## Structs + +### DecodedMessage + +```solidity +struct DecodedMessage { + bytes32 messageId; + bytes encodedMessage; + CCIPForkAdapterTypes.V2Receipt[] receipts; + bytes[] verifierBlobs; + MessageV1Codec.MessageV1 message; +} +``` diff --git a/api_reference/solidity/ccip/adapters/IMessageV1Decoder.mdx b/api_reference/solidity/ccip/adapters/IMessageV1Decoder.mdx new file mode 100644 index 0000000..96b74f3 --- /dev/null +++ b/api_reference/solidity/ccip/adapters/IMessageV1Decoder.mdx @@ -0,0 +1,14 @@ +# Solidity API + +## IMessageV1Decoder + +## Functions + +### decodeMessageV1 + +```solidity +function decodeMessageV1(bytes calldata encodedMessage) + external + view + returns (MessageV1Codec.MessageV1 memory message); +``` diff --git a/api_reference/solidity/ccip/adapters/IOffRampExecutePreV1dot6.mdx b/api_reference/solidity/ccip/adapters/IOffRampExecutePreV1dot6.mdx new file mode 100644 index 0000000..c74f56e --- /dev/null +++ b/api_reference/solidity/ccip/adapters/IOffRampExecutePreV1dot6.mdx @@ -0,0 +1,15 @@ +# Solidity API + +## IOffRampExecutePreV1dot6 + +## Functions + +### executeSingleMessage + +```solidity +function executeSingleMessage( + CCIPForkAdapterTypes.PreV1dot6Message memory message, + bytes[] memory offchainTokenData, + uint32[] memory tokenGasOverrides +) external; +``` diff --git a/api_reference/solidity/ccip/adapters/IOffRampExecuteV1dot6.mdx b/api_reference/solidity/ccip/adapters/IOffRampExecuteV1dot6.mdx new file mode 100644 index 0000000..d3ee67a --- /dev/null +++ b/api_reference/solidity/ccip/adapters/IOffRampExecuteV1dot6.mdx @@ -0,0 +1,15 @@ +# Solidity API + +## IOffRampExecuteV1dot6 + +## Functions + +### executeSingleMessage + +```solidity +function executeSingleMessage( + CCIPForkAdapterTypes.V1dot6Any2EVMRampMessage memory message, + bytes[] calldata offchainTokenData, + uint32[] calldata tokenGasOverrides +) external; +``` diff --git a/api_reference/solidity/ccip/adapters/IOffRampExecuteV2.mdx b/api_reference/solidity/ccip/adapters/IOffRampExecuteV2.mdx new file mode 100644 index 0000000..b405a79 --- /dev/null +++ b/api_reference/solidity/ccip/adapters/IOffRampExecuteV2.mdx @@ -0,0 +1,49 @@ +# Solidity API + +## IOffRampExecuteV2 + +## Functions + +### getCCVsForMessage + +```solidity +function getCCVsForMessage(bytes calldata encodedMessage) + external + view + returns (address[] memory requiredCCVs, address[] memory optionalCCVs, uint8 threshold); +``` + +### executeSingleMessage + +```solidity +function executeSingleMessage( + MessageV1Codec.MessageV1 calldata message, + bytes32 messageId, + address[] calldata ccvs, + bytes[] calldata verifierResults, + uint32 gasLimitOverride +) external; +``` + +### getExecutionState + +Returns the `Internal.MessageExecutionState` of `messageId` +(`keccak256(encodedMessage)`). + +```solidity +function getExecutionState(bytes32 messageId) external view returns (uint8); +``` + +### execute + +Permissionless execution entrypoint taking the opaque encoded message emitted by +the source OnRamp, so routing does not depend on a locally decoded `MessageV1`. + +```solidity +function execute( + bytes calldata encodedMessage, + address[] calldata ccvs, + bytes[] calldata verifierResults, + uint32 gasLimitOverride +) external; +``` diff --git a/api_reference/solidity/ccip/adapters/MessageV1CodecDecoder.mdx b/api_reference/solidity/ccip/adapters/MessageV1CodecDecoder.mdx new file mode 100644 index 0000000..8216e47 --- /dev/null +++ b/api_reference/solidity/ccip/adapters/MessageV1CodecDecoder.mdx @@ -0,0 +1,14 @@ +# Solidity API + +## MessageV1CodecDecoder + +## Functions + +### decodeMessageV1 + +```solidity +function decodeMessageV1(bytes calldata encodedMessage) + external + pure + returns (MessageV1Codec.MessageV1 memory message); +``` diff --git a/api_reference/solidity/ccip/adapters/index.mdx b/api_reference/solidity/ccip/adapters/index.mdx new file mode 100644 index 0000000..fd09a2b --- /dev/null +++ b/api_reference/solidity/ccip/adapters/index.mdx @@ -0,0 +1,11 @@ +# Adapters API Reference + +- [CCIPForkAdapterPreV1dot6](CCIPForkAdapterPreV1dot6.mdx) +- [CCIPForkAdapterTypes](CCIPForkAdapterTypes.mdx) +- [CCIPForkAdapterV1dot6](CCIPForkAdapterV1dot6.mdx) +- [CCIPForkAdapterV2](CCIPForkAdapterV2.mdx) +- [IMessageV1Decoder](IMessageV1Decoder.mdx) +- [IOffRampExecutePreV1dot6](IOffRampExecutePreV1dot6.mdx) +- [IOffRampExecuteV1dot6](IOffRampExecuteV1dot6.mdx) +- [IOffRampExecuteV2](IOffRampExecuteV2.mdx) +- [MessageV1CodecDecoder](MessageV1CodecDecoder.mdx) diff --git a/api_reference/solidity/ccip/index.mdx b/api_reference/solidity/ccip/index.mdx index fad034d..b816f36 100644 --- a/api_reference/solidity/ccip/index.mdx +++ b/api_reference/solidity/ccip/index.mdx @@ -1,6 +1,15 @@ # Ccip API Reference - [BurnMintERC677Helper](BurnMintERC677Helper.mdx) +- [CCIPLocalRouter](CCIPLocalRouter.mdx) - [CCIPLocalSimulator](CCIPLocalSimulator.mdx) - [CCIPLocalSimulatorFork](CCIPLocalSimulatorFork.mdx) +- [CCIPLocalSimulatorV2NoOpVerifier](CCIPLocalSimulatorV2NoOpVerifier.mdx) +- [IEVM2EVMOffRampStaticConfigFork](IEVM2EVMOffRampStaticConfigFork.mdx) +- [IOffRampSourceConfigFork](IOffRampSourceConfigFork.mdx) +- [IOffRampSourceConfigV2Fork](IOffRampSourceConfigV2Fork.mdx) +- [IRouterFork](IRouterFork.mdx) +- [ITypeAndVersionProbe](ITypeAndVersionProbe.mdx) +- [IVersionedVerifierResolverAdminFork](IVersionedVerifierResolverAdminFork.mdx) - [Register](Register.mdx) +- [adapters](adapters/index.mdx) diff --git a/api_reference/solidity/data-feeds/MockOffchainAggregator.mdx b/api_reference/solidity/data-feeds/MockOffchainAggregator.mdx index 4ac4cd0..82314e9 100644 --- a/api_reference/solidity/data-feeds/MockOffchainAggregator.mdx +++ b/api_reference/solidity/data-feeds/MockOffchainAggregator.mdx @@ -2,176 +2,212 @@ ## MockOffchainAggregator +**Title:** MockOffchainAggregator + This contract is a mock implementation of an offchain aggregator for testing purposes. -_This contract simulates the behavior of an offchain aggregator and allows for -updating answers and round data._ +This contract simulates the behavior of an offchain aggregator and allows for +updating answers and round data. -### decimals +## State Variables + +### MIN_ANSWER_POSSIBLE + +The minimum possible answer the aggregator can report. ```solidity -uint8 decimals +int192 private constant MIN_ANSWER_POSSIBLE = 1 ``` -The number of decimals used by the aggregator. +### MAX_ANSWER_POSSIBLE -### latestAnswer +The maximum possible answer the aggregator can report. ```solidity -int256 latestAnswer +int192 private constant MAX_ANSWER_POSSIBLE = 95780971304118053647396689196894323976171195136475135 ``` -The latest answer reported by the aggregator. +### decimals -### latestTimestamp +The number of decimals used by the aggregator. ```solidity -uint256 latestTimestamp +uint8 public decimals ``` -The timestamp of the latest answer. +### latestAnswer -### latestRound +The latest answer reported by the aggregator. ```solidity -uint256 latestRound +int256 public latestAnswer ``` -The latest round ID. +### latestTimestamp -### minAnswer +The timestamp of the latest answer. ```solidity -int192 minAnswer +uint256 public latestTimestamp ``` -The minimum answer the aggregator is allowed to report. +### latestRound -### maxAnswer +The latest round ID. ```solidity -int192 maxAnswer +uint256 public latestRound ``` -The maximum answer the aggregator is allowed to report. +### minAnswer -### getAnswer +The minimum answer the aggregator is allowed to report. ```solidity -mapping(uint256 => int256) getAnswer +int192 public minAnswer ``` +### maxAnswer + +The maximum answer the aggregator is allowed to report. + +```solidity +int192 public maxAnswer +``` + +### getAnswer + Mapping to get the answer for a specific round ID. +```solidity +mapping(uint256 => int256) public getAnswer +``` + ### getTimestamp +Mapping to get the timestamp for a specific round ID. + ```solidity -mapping(uint256 => uint256) getTimestamp +mapping(uint256 => uint256) public getTimestamp ``` -Mapping to get the timestamp for a specific round ID. +### getStartedAt -### constructor +Mapping to get the start time for a specific round ID. ```solidity -constructor(uint8 _decimals, int256 _initialAnswer) public +mapping(uint256 => uint256) private getStartedAt ``` +## Functions + +### constructor + Constructor to initialize the MockOffchainAggregator contract with initial parameters. -#### Parameters +```solidity +constructor(uint8 _decimals, int256 _initialAnswer) ; +``` + +**Parameters** -| Name | Type | Description | -| --------------- | ------ | ------------------------------------------------------ | -| \_decimals | uint8 | - The number of decimals for the aggregator. | -| \_initialAnswer | int256 | - The initial answer to be set in the mock aggregator. | +| Name | Type | Description | +| ---------------- | -------- | ------------------------------------------------------ | +| `_decimals` | `uint8` | - The number of decimals for the aggregator. | +| `_initialAnswer` | `int256` | - The initial answer to be set in the mock aggregator. | ### updateAnswer +Updates the answer in the mock aggregator. + ```solidity -function updateAnswer(int256 _answer) public +function updateAnswer(int256 _answer) public; ``` -Updates the answer in the mock aggregator. - -#### Parameters +**Parameters** -| Name | Type | Description | -| -------- | ------ | --------------------------- | -| \_answer | int256 | - The new answer to be set. | +| Name | Type | Description | +| --------- | -------- | --------------------------- | +| `_answer` | `int256` | - The new answer to be set. | ### updateRoundData +Updates the round data in the mock aggregator. + ```solidity -function updateRoundData(uint80 _roundId, int256 _answer, uint256 _timestamp, uint256 _startedAt) public +function updateRoundData(uint80 _roundId, int256 _answer, uint256 _timestamp, uint256 _startedAt) public; ``` -Updates the round data in the mock aggregator. - -#### Parameters +**Parameters** -| Name | Type | Description | -| ----------- | ------- | --------------------------------------- | -| \_roundId | uint80 | - The round ID to be updated. | -| \_answer | int256 | - The new answer to be set. | -| \_timestamp | uint256 | - The timestamp to be set. | -| \_startedAt | uint256 | - The timestamp when the round started. | +| Name | Type | Description | +| ------------ | --------- | --------------------------------------- | +| `_roundId` | `uint80` | - The round ID to be updated. | +| `_answer` | `int256` | - The new answer to be set. | +| `_timestamp` | `uint256` | - The timestamp to be set. | +| `_startedAt` | `uint256` | - The timestamp when the round started. | ### getRoundData +Gets the round data for a specific round ID. + ```solidity -function getRoundData(uint80 _roundId) external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound) +function getRoundData(uint80 _roundId) + external + view + returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound); ``` -Gets the round data for a specific round ID. - -#### Parameters +**Parameters** -| Name | Type | Description | -| --------- | ------ | ----------------------------------- | -| \_roundId | uint80 | - The round ID to get the data for. | +| Name | Type | Description | +| ---------- | -------- | ----------------------------------- | +| `_roundId` | `uint80` | - The round ID to get the data for. | -#### Return Values +**Returns** -| Name | Type | Description | -| --------------- | ------- | ------------------------------------------------ | -| roundId | uint80 | - The round ID. | -| answer | int256 | - The answer for the round. | -| startedAt | uint256 | - The timestamp when the round started. | -| updatedAt | uint256 | - The timestamp when the round was updated. | -| answeredInRound | uint80 | - The round ID in which the answer was computed. | +| Name | Type | Description | +| ----------------- | --------- | ------------------------------------------------ | +| `roundId` | `uint80` | - The round ID. | +| `answer` | `int256` | - The answer for the round. | +| `startedAt` | `uint256` | - The timestamp when the round started. | +| `updatedAt` | `uint256` | - The timestamp when the round was updated. | +| `answeredInRound` | `uint80` | - The round ID in which the answer was computed. | ### latestRoundData +Gets the latest round data. + ```solidity -function latestRoundData() external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound) +function latestRoundData() + external + view + returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound); ``` -Gets the latest round data. - -#### Return Values +**Returns** -| Name | Type | Description | -| --------------- | ------- | ------------------------------------------------------- | -| roundId | uint80 | - The latest round ID. | -| answer | int256 | - The latest answer. | -| startedAt | uint256 | - The timestamp when the latest round started. | -| updatedAt | uint256 | - The timestamp when the latest round was updated. | -| answeredInRound | uint80 | - The round ID in which the latest answer was computed. | +| Name | Type | Description | +| ----------------- | --------- | ------------------------------------------------------- | +| `roundId` | `uint80` | - The latest round ID. | +| `answer` | `int256` | - The latest answer. | +| `startedAt` | `uint256` | - The timestamp when the latest round started. | +| `updatedAt` | `uint256` | - The timestamp when the latest round was updated. | +| `answeredInRound` | `uint80` | - The round ID in which the latest answer was computed. | ### updateMinAndMaxAnswers +Updates the minimum and maximum answers the aggregator can report. + ```solidity -function updateMinAndMaxAnswers(int192 _minAnswer, int192 _maxAnswer) external +function updateMinAndMaxAnswers(int192 _minAnswer, int192 _maxAnswer) external; ``` -Updates the minimum and maximum answers the aggregator can report. - -#### Parameters +**Parameters** -| Name | Type | Description | -| ----------- | ------ | ------------------------- | -| \_minAnswer | int192 | - The new minimum answer. | -| \_maxAnswer | int192 | - The new maximum answer. | +| Name | Type | Description | +| ------------ | -------- | ------------------------- | +| `_minAnswer` | `int192` | - The new minimum answer. | +| `_maxAnswer` | `int192` | - The new maximum answer. | diff --git a/api_reference/solidity/data-feeds/MockV3Aggregator.mdx b/api_reference/solidity/data-feeds/MockV3Aggregator.mdx index e7c8c25..1b08bdc 100644 --- a/api_reference/solidity/data-feeds/MockV3Aggregator.mdx +++ b/api_reference/solidity/data-feeds/MockV3Aggregator.mdx @@ -2,262 +2,279 @@ ## MockV3Aggregator +**Inherits:** +[AggregatorV2V3Interface](/src/data-feeds/interfaces/AggregatorV2V3Interface.sol/interface.AggregatorV2V3Interface.md) + +**Title:** MockV3Aggregator + This contract is a mock implementation of the AggregatorV2V3Interface for testing purposes. -_This contract interacts with a MockOffchainAggregator to simulate price feeds._ +This contract interacts with a MockOffchainAggregator to simulate price feeds. + +## State Variables ### version +The version of the aggregator. + ```solidity -uint256 version +uint256 public constant override version = 0 ``` -The version of the aggregator. - ### aggregator +The address of the current aggregator. + ```solidity -address aggregator +address public aggregator ``` -The address of the current aggregator. - ### proposedAggregator +The address of the proposed aggregator. + ```solidity -address proposedAggregator +address public proposedAggregator ``` -The address of the proposed aggregator. +## Functions ### constructor +Constructor to initialize the MockV3Aggregator contract with initial parameters. + ```solidity -constructor(uint8 _decimals, int256 _initialAnswer) public +constructor(uint8 _decimals, int256 _initialAnswer) ; ``` -Constructor to initialize the MockV3Aggregator contract with initial parameters. - -#### Parameters +**Parameters** -| Name | Type | Description | -| --------------- | ------ | ------------------------------------------------------ | -| \_decimals | uint8 | - The number of decimals for the aggregator. | -| \_initialAnswer | int256 | - The initial answer to be set in the mock aggregator. | +| Name | Type | Description | +| ---------------- | -------- | ------------------------------------------------------ | +| `_decimals` | `uint8` | - The number of decimals for the aggregator. | +| `_initialAnswer` | `int256` | - The initial answer to be set in the mock aggregator. | ### decimals +Gets the number of decimals used by the aggregator. + ```solidity -function decimals() external view returns (uint8) +function decimals() external view override returns (uint8); ``` -Gets the number of decimals used by the aggregator. +**Returns** -#### Return Values - -| Name | Type | Description | -| ---- | ----- | ------------------------------- | -| [0] | uint8 | uint8 - The number of decimals. | +| Name | Type | Description | +| -------- | ------- | ------------------------------- | +| `` | `uint8` | uint8 - The number of decimals. | ### getAnswer +Gets the answer for a specific round ID. + ```solidity -function getAnswer(uint256 roundId) external view returns (int256) +function getAnswer(uint256 roundId) external view override returns (int256); ``` -Gets the answer for a specific round ID. - -#### Parameters +**Parameters** -| Name | Type | Description | -| ------- | ------- | ------------------------------------- | -| roundId | uint256 | - The round ID to get the answer for. | +| Name | Type | Description | +| --------- | --------- | ------------------------------------- | +| `roundId` | `uint256` | - The round ID to get the answer for. | -#### Return Values +**Returns** -| Name | Type | Description | -| ---- | ------ | ------------------------------------------- | -| [0] | int256 | int256 - The answer for the given round ID. | +| Name | Type | Description | +| -------- | -------- | ------------------------------------------- | +| `` | `int256` | int256 - The answer for the given round ID. | ### getRoundData +Gets the round data for a specific round ID. + +This function should raise "No data present" if no data is available for the +given round ID. + ```solidity -function getRoundData(uint80 _roundId) external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound) +function getRoundData(uint80 _roundId) + external + view + override + returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound); ``` -Gets the round data for a specific round ID. +**Parameters** -_This function should raise "No data present" if no data is available for the -given round ID._ +| Name | Type | Description | +| ---------- | -------- | ----------------------------------- | +| `_roundId` | `uint80` | - The round ID to get the data for. | -#### Parameters +**Returns** -| Name | Type | Description | -| --------- | ------ | ----------------------------------- | -| \_roundId | uint80 | - The round ID to get the data for. | +| Name | Type | Description | +| ----------------- | --------- | ------------------------------------------------ | +| `roundId` | `uint80` | - The round ID. | +| `answer` | `int256` | - The answer for the round. | +| `startedAt` | `uint256` | - The timestamp when the round started. | +| `updatedAt` | `uint256` | - The timestamp when the round was updated. | +| `answeredInRound` | `uint80` | - The round ID in which the answer was computed. | -#### Return Values +### latestRoundData -| Name | Type | Description | -| --------------- | ------- | ------------------------------------------------ | -| roundId | uint80 | - The round ID. | -| answer | int256 | - The answer for the round. | -| startedAt | uint256 | - The timestamp when the round started. | -| updatedAt | uint256 | - The timestamp when the round was updated. | -| answeredInRound | uint80 | - The round ID in which the answer was computed. | +Gets the latest round data. -### latestRoundData +This function should raise "No data present" if no data is available. ```solidity -function latestRoundData() external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound) +function latestRoundData() + external + view + override + returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound); ``` -Gets the latest round data. - -_This function should raise "No data present" if no data is available._ - -#### Return Values +**Returns** -| Name | Type | Description | -| --------------- | ------- | ------------------------------------------------------- | -| roundId | uint80 | - The latest round ID. | -| answer | int256 | - The latest answer. | -| startedAt | uint256 | - The timestamp when the latest round started. | -| updatedAt | uint256 | - The timestamp when the latest round was updated. | -| answeredInRound | uint80 | - The round ID in which the latest answer was computed. | +| Name | Type | Description | +| ----------------- | --------- | ------------------------------------------------------- | +| `roundId` | `uint80` | - The latest round ID. | +| `answer` | `int256` | - The latest answer. | +| `startedAt` | `uint256` | - The timestamp when the latest round started. | +| `updatedAt` | `uint256` | - The timestamp when the latest round was updated. | +| `answeredInRound` | `uint80` | - The round ID in which the latest answer was computed. | ### getTimestamp +Gets the timestamp for a specific round ID. + ```solidity -function getTimestamp(uint256 roundId) external view returns (uint256) +function getTimestamp(uint256 roundId) external view override returns (uint256); ``` -Gets the timestamp for a specific round ID. +**Parameters** -#### Parameters +| Name | Type | Description | +| --------- | --------- | ---------------------------------------- | +| `roundId` | `uint256` | - The round ID to get the timestamp for. | -| Name | Type | Description | -| ------- | ------- | ---------------------------------------- | -| roundId | uint256 | - The round ID to get the timestamp for. | +**Returns** -#### Return Values - -| Name | Type | Description | -| ---- | ------- | ----------------------------------------------- | -| [0] | uint256 | uint256 - The timestamp for the given round ID. | +| Name | Type | Description | +| -------- | --------- | ----------------------------------------------- | +| `` | `uint256` | uint256 - The timestamp for the given round ID. | ### latestAnswer +Gets the latest answer from the aggregator. + ```solidity -function latestAnswer() external view returns (int256) +function latestAnswer() external view override returns (int256); ``` -Gets the latest answer from the aggregator. - -#### Return Values +**Returns** -| Name | Type | Description | -| ---- | ------ | --------------------------- | -| [0] | int256 | int256 - The latest answer. | +| Name | Type | Description | +| -------- | -------- | --------------------------- | +| `` | `int256` | int256 - The latest answer. | ### latestTimestamp +Gets the timestamp of the latest answer from the aggregator. + ```solidity -function latestTimestamp() external view returns (uint256) +function latestTimestamp() external view override returns (uint256); ``` -Gets the timestamp of the latest answer from the aggregator. - -#### Return Values +**Returns** -| Name | Type | Description | -| ---- | ------- | --------------------------------------------- | -| [0] | uint256 | uint256 - The timestamp of the latest answer. | +| Name | Type | Description | +| -------- | --------- | --------------------------------------------- | +| `` | `uint256` | uint256 - The timestamp of the latest answer. | ### latestRound +Gets the latest round ID from the aggregator. + ```solidity -function latestRound() external view returns (uint256) +function latestRound() external view override returns (uint256); ``` -Gets the latest round ID from the aggregator. - -#### Return Values +**Returns** -| Name | Type | Description | -| ---- | ------- | ------------------------------ | -| [0] | uint256 | uint256 - The latest round ID. | +| Name | Type | Description | +| -------- | --------- | ------------------------------ | +| `` | `uint256` | uint256 - The latest round ID. | ### updateAnswer +Updates the answer in the mock aggregator. + ```solidity -function updateAnswer(int256 _answer) public +function updateAnswer(int256 _answer) public; ``` -Updates the answer in the mock aggregator. - -#### Parameters +**Parameters** -| Name | Type | Description | -| -------- | ------ | --------------------------- | -| \_answer | int256 | - The new answer to be set. | +| Name | Type | Description | +| --------- | -------- | --------------------------- | +| `_answer` | `int256` | - The new answer to be set. | ### updateRoundData +Updates the round data in the mock aggregator. + ```solidity -function updateRoundData(uint80 _roundId, int256 _answer, uint256 _timestamp, uint256 _startedAt) public +function updateRoundData(uint80 _roundId, int256 _answer, uint256 _timestamp, uint256 _startedAt) public; ``` -Updates the round data in the mock aggregator. +**Parameters** -#### Parameters - -| Name | Type | Description | -| ----------- | ------- | --------------------------------------- | -| \_roundId | uint80 | - The round ID to be updated. | -| \_answer | int256 | - The new answer to be set. | -| \_timestamp | uint256 | - The timestamp to be set. | -| \_startedAt | uint256 | - The timestamp when the round started. | +| Name | Type | Description | +| ------------ | --------- | --------------------------------------- | +| `_roundId` | `uint80` | - The round ID to be updated. | +| `_answer` | `int256` | - The new answer to be set. | +| `_timestamp` | `uint256` | - The timestamp to be set. | +| `_startedAt` | `uint256` | - The timestamp when the round started. | ### proposeAggregator +Proposes a new aggregator. + ```solidity -function proposeAggregator(contract AggregatorV2V3Interface _aggregator) external +function proposeAggregator(AggregatorV2V3Interface _aggregator) external; ``` -Proposes a new aggregator. - -#### Parameters +**Parameters** -| Name | Type | Description | -| ------------ | -------------------------------- | ----------------------------------------- | -| \_aggregator | contract AggregatorV2V3Interface | - The address of the proposed aggregator. | +| Name | Type | Description | +| ------------- | ------------------------- | ----------------------------------------- | +| `_aggregator` | `AggregatorV2V3Interface` | - The address of the proposed aggregator. | ### confirmAggregator +Confirms the proposed aggregator. + ```solidity -function confirmAggregator(address _aggregator) external +function confirmAggregator(address _aggregator) external; ``` -Confirms the proposed aggregator. - -#### Parameters +**Parameters** -| Name | Type | Description | -| ------------ | ------- | ----------------------------------------- | -| \_aggregator | address | - The address of the proposed aggregator. | +| Name | Type | Description | +| ------------- | --------- | ----------------------------------------- | +| `_aggregator` | `address` | - The address of the proposed aggregator. | ### description +Gets the description of the aggregator. + ```solidity -function description() external pure returns (string) +function description() external pure override returns (string memory); ``` -Gets the description of the aggregator. - -#### Return Values +**Returns** -| Name | Type | Description | -| ---- | ------ | -------------------------------------------------- | -| [0] | string | string memory - The description of the aggregator. | +| Name | Type | Description | +| -------- | -------- | -------------------------------------------------- | +| `` | `string` | string memory - The description of the aggregator. | diff --git a/api_reference/solidity/data-feeds/interfaces/AggregatorInterface.mdx b/api_reference/solidity/data-feeds/interfaces/AggregatorInterface.mdx index 506c2d4..8fd39a2 100644 --- a/api_reference/solidity/data-feeds/interfaces/AggregatorInterface.mdx +++ b/api_reference/solidity/data-feeds/interfaces/AggregatorInterface.mdx @@ -2,121 +2,126 @@ ## AggregatorInterface +**Title:** AggregatorInterface + Interface for accessing data from an aggregator contract. -_Provides methods to get the latest data and historical data for specific -rounds._ +Provides methods to get the latest data and historical data for specific rounds. + +## Functions ### latestAnswer +Gets the latest answer from the aggregator. + ```solidity -function latestAnswer() external view returns (int256) +function latestAnswer() external view returns (int256); ``` -Gets the latest answer from the aggregator. - -#### Return Values +**Returns** -| Name | Type | Description | -| ---- | ------ | --------------------------- | -| [0] | int256 | int256 - The latest answer. | +| Name | Type | Description | +| -------- | -------- | --------------------------- | +| `` | `int256` | int256 - The latest answer. | ### latestTimestamp +Gets the timestamp of the latest answer from the aggregator. + ```solidity -function latestTimestamp() external view returns (uint256) +function latestTimestamp() external view returns (uint256); ``` -Gets the timestamp of the latest answer from the aggregator. - -#### Return Values +**Returns** -| Name | Type | Description | -| ---- | ------- | --------------------------------------------- | -| [0] | uint256 | uint256 - The timestamp of the latest answer. | +| Name | Type | Description | +| -------- | --------- | --------------------------------------------- | +| `` | `uint256` | uint256 - The timestamp of the latest answer. | ### latestRound +Gets the latest round ID from the aggregator. + ```solidity -function latestRound() external view returns (uint256) +function latestRound() external view returns (uint256); ``` -Gets the latest round ID from the aggregator. - -#### Return Values +**Returns** -| Name | Type | Description | -| ---- | ------- | ------------------------------ | -| [0] | uint256 | uint256 - The latest round ID. | +| Name | Type | Description | +| -------- | --------- | ------------------------------ | +| `` | `uint256` | uint256 - The latest round ID. | ### getAnswer +Gets the answer for a specific round ID. + ```solidity -function getAnswer(uint256 roundId) external view returns (int256) +function getAnswer(uint256 roundId) external view returns (int256); ``` -Gets the answer for a specific round ID. - -#### Parameters +**Parameters** -| Name | Type | Description | -| ------- | ------- | ------------------------------------- | -| roundId | uint256 | - The round ID to get the answer for. | +| Name | Type | Description | +| --------- | --------- | ------------------------------------- | +| `roundId` | `uint256` | - The round ID to get the answer for. | -#### Return Values +**Returns** -| Name | Type | Description | -| ---- | ------ | ------------------------------------------- | -| [0] | int256 | int256 - The answer for the given round ID. | +| Name | Type | Description | +| -------- | -------- | ------------------------------------------- | +| `` | `int256` | int256 - The answer for the given round ID. | ### getTimestamp +Gets the timestamp for a specific round ID. + ```solidity -function getTimestamp(uint256 roundId) external view returns (uint256) +function getTimestamp(uint256 roundId) external view returns (uint256); ``` -Gets the timestamp for a specific round ID. +**Parameters** -#### Parameters +| Name | Type | Description | +| --------- | --------- | ---------------------------------------- | +| `roundId` | `uint256` | - The round ID to get the timestamp for. | -| Name | Type | Description | -| ------- | ------- | ---------------------------------------- | -| roundId | uint256 | - The round ID to get the timestamp for. | +**Returns** -#### Return Values +| Name | Type | Description | +| -------- | --------- | ----------------------------------------------- | +| `` | `uint256` | uint256 - The timestamp for the given round ID. | -| Name | Type | Description | -| ---- | ------- | ----------------------------------------------- | -| [0] | uint256 | uint256 - The timestamp for the given round ID. | +## Events ### AnswerUpdated +Emitted when the answer is updated. + ```solidity -event AnswerUpdated(int256 current, uint256 roundId, uint256 updatedAt) +event AnswerUpdated(int256 indexed current, uint256 indexed roundId, uint256 updatedAt); ``` -Emitted when the answer is updated. - -#### Parameters +**Parameters** -| Name | Type | Description | -| --------- | ------- | ------------------------------------------------ | -| current | int256 | - The updated answer. | -| roundId | uint256 | - The round ID for which the answer was updated. | -| updatedAt | uint256 | - The timestamp when the answer was updated. | +| Name | Type | Description | +| ----------- | --------- | ------------------------------------------------ | +| `current` | `int256` | - The updated answer. | +| `roundId` | `uint256` | - The round ID for which the answer was updated. | +| `updatedAt` | `uint256` | - The timestamp when the answer was updated. | ### NewRound +Emitted when a new round is started. + ```solidity -event NewRound(uint256 roundId, address startedBy, uint256 startedAt) +event NewRound(uint256 indexed roundId, address indexed startedBy, uint256 startedAt); ``` -Emitted when a new round is started. - -#### Parameters +**Parameters** -| Name | Type | Description | -| --------- | ------- | ---------------------------------------------------- | -| roundId | uint256 | - The round ID of the new round. | -| startedBy | address | - The address of the account that started the round. | -| startedAt | uint256 | - The timestamp when the round was started. | +| Name | Type | Description | +| ----------- | --------- | ---------------------------------------------------- | +| `roundId` | `uint256` | - The round ID of the new round. | +| `startedBy` | `address` | - The address of the account that started the round. | +| `startedAt` | `uint256` | - The timestamp when the round was started. | diff --git a/api_reference/solidity/data-feeds/interfaces/AggregatorV2V3Interface.mdx b/api_reference/solidity/data-feeds/interfaces/AggregatorV2V3Interface.mdx index 8e48404..d434756 100644 --- a/api_reference/solidity/data-feeds/interfaces/AggregatorV2V3Interface.mdx +++ b/api_reference/solidity/data-feeds/interfaces/AggregatorV2V3Interface.mdx @@ -2,4 +2,10 @@ ## AggregatorV2V3Interface +**Inherits:** +[AggregatorInterface](/src/data-feeds/interfaces/AggregatorInterface.sol/interface.AggregatorInterface.md), +[AggregatorV3Interface](/src/data-feeds/interfaces/AggregatorV3Interface.sol/interface.AggregatorV3Interface.md) + +**Title:** AggregatorV2V3Interface + Interface that inherits from both AggregatorInterface and AggregatorV3Interface. diff --git a/api_reference/solidity/data-feeds/interfaces/AggregatorV3Interface.mdx b/api_reference/solidity/data-feeds/interfaces/AggregatorV3Interface.mdx index 732f3d4..88ce932 100644 --- a/api_reference/solidity/data-feeds/interfaces/AggregatorV3Interface.mdx +++ b/api_reference/solidity/data-feeds/interfaces/AggregatorV3Interface.mdx @@ -2,97 +2,107 @@ ## AggregatorV3Interface +**Title:** AggregatorV3Interface + Interface for accessing detailed data from an aggregator contract, including round data and metadata. -_Provides methods to get the latest data, historical data for specific rounds, -and metadata such as decimals and description._ +Provides methods to get the latest data, historical data for specific rounds, +and metadata such as decimals and description. + +## Functions ### decimals +Gets the number of decimals used by the aggregator. + ```solidity -function decimals() external view returns (uint8) +function decimals() external view returns (uint8); ``` -Gets the number of decimals used by the aggregator. - -#### Return Values +**Returns** -| Name | Type | Description | -| ---- | ----- | ------------------------------- | -| [0] | uint8 | uint8 - The number of decimals. | +| Name | Type | Description | +| -------- | ------- | ------------------------------- | +| `` | `uint8` | uint8 - The number of decimals. | ### description +Gets the description of the aggregator. + ```solidity -function description() external view returns (string) +function description() external view returns (string memory); ``` -Gets the description of the aggregator. - -#### Return Values +**Returns** -| Name | Type | Description | -| ---- | ------ | -------------------------------------------------- | -| [0] | string | string memory - The description of the aggregator. | +| Name | Type | Description | +| -------- | -------- | -------------------------------------------------- | +| `` | `string` | string memory - The description of the aggregator. | ### version +Gets the version of the aggregator. + ```solidity -function version() external view returns (uint256) +function version() external view returns (uint256); ``` -Gets the version of the aggregator. - -#### Return Values +**Returns** -| Name | Type | Description | -| ---- | ------- | ---------------------------------------- | -| [0] | uint256 | uint256 - The version of the aggregator. | +| Name | Type | Description | +| -------- | --------- | ---------------------------------------- | +| `` | `uint256` | uint256 - The version of the aggregator. | ### getRoundData +Gets the round data for a specific round ID. + +This function should raise "No data present" if no data is available for the +given round ID. + ```solidity -function getRoundData(uint80 _roundId) external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound) +function getRoundData(uint80 _roundId) + external + view + returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound); ``` -Gets the round data for a specific round ID. +**Parameters** -_This function should raise "No data present" if no data is available for the -given round ID._ +| Name | Type | Description | +| ---------- | -------- | ----------------------------------- | +| `_roundId` | `uint80` | - The round ID to get the data for. | -#### Parameters +**Returns** -| Name | Type | Description | -| --------- | ------ | ----------------------------------- | -| \_roundId | uint80 | - The round ID to get the data for. | +| Name | Type | Description | +| ----------------- | --------- | ------------------------------------------------ | +| `roundId` | `uint80` | - The round ID. | +| `answer` | `int256` | - The answer for the round. | +| `startedAt` | `uint256` | - The timestamp when the round started. | +| `updatedAt` | `uint256` | - The timestamp when the round was updated. | +| `answeredInRound` | `uint80` | - The round ID in which the answer was computed. | -#### Return Values +### latestRoundData -| Name | Type | Description | -| --------------- | ------- | ------------------------------------------------ | -| roundId | uint80 | - The round ID. | -| answer | int256 | - The answer for the round. | -| startedAt | uint256 | - The timestamp when the round started. | -| updatedAt | uint256 | - The timestamp when the round was updated. | -| answeredInRound | uint80 | - The round ID in which the answer was computed. | +Gets the latest round data. -### latestRoundData +This function should raise "No data present" if no data is available. ```solidity -function latestRoundData() external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound) +function latestRoundData() + external + view + returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound); ``` -Gets the latest round data. - -_This function should raise "No data present" if no data is available._ - -#### Return Values +**Returns** -| Name | Type | Description | -| --------------- | ------- | ------------------------------------------------------- | -| roundId | uint80 | - The latest round ID. | -| answer | int256 | - The latest answer. | -| startedAt | uint256 | - The timestamp when the latest round started. | -| updatedAt | uint256 | - The timestamp when the latest round was updated. | -| answeredInRound | uint80 | - The round ID in which the latest answer was computed. | +| Name | Type | Description | +| ----------------- | --------- | ------------------------------------------------------- | +| `roundId` | `uint80` | - The latest round ID. | +| `answer` | `int256` | - The latest answer. | +| `startedAt` | `uint256` | - The timestamp when the latest round started. | +| `updatedAt` | `uint256` | - The timestamp when the latest round was updated. | +| `answeredInRound` | `uint80` | - The round ID in which the latest answer was computed. | diff --git a/api_reference/solidity/data-streams/Common.mdx b/api_reference/solidity/data-streams/Common.mdx new file mode 100644 index 0000000..ba5eeb5 --- /dev/null +++ b/api_reference/solidity/data-streams/Common.mdx @@ -0,0 +1,14 @@ +# Solidity API + +## Common + +## Structs + +### Asset + +```solidity +struct Asset { + address assetAddress; + uint256 amount; +} +``` diff --git a/api_reference/solidity/data-streams/DataStreamsLocalSimulator.mdx b/api_reference/solidity/data-streams/DataStreamsLocalSimulator.mdx index fb18e65..d44a06b 100644 --- a/api_reference/solidity/data-streams/DataStreamsLocalSimulator.mdx +++ b/api_reference/solidity/data-streams/DataStreamsLocalSimulator.mdx @@ -2,90 +2,154 @@ ## DataStreamsLocalSimulator +## State Variables + ### s_mockVerifier ```solidity -contract MockVerifier s_mockVerifier +MockVerifier internal s_mockVerifier ``` ### s_mockVerifierProxy ```solidity -contract MockVerifierProxy s_mockVerifierProxy +MockVerifierProxy internal s_mockVerifierProxy ``` ### s_mockFeeManager ```solidity -contract MockFeeManager s_mockFeeManager +MockFeeManager internal s_mockFeeManager ``` ### s_mockRewardManager ```solidity -contract MockRewardManager s_mockRewardManager +MockRewardManager internal s_mockRewardManager ``` ### i_wrappedNative +The wrapped native token instance + ```solidity -contract WETH9 i_wrappedNative +WETH9 internal immutable i_wrappedNative ``` -The wrapped native token instance - ### i_linkToken +The LINK token instance + ```solidity -contract LinkToken i_linkToken +LinkToken internal immutable i_linkToken ``` -The LINK token instance +### feeManagerEnabled + +Whether fee manager is enabled (can be toggled after deployment) + +```solidity +bool public feeManagerEnabled +``` + +## Functions ### constructor ```solidity -constructor() public +constructor() ; ``` -### requestLinkFromFaucet +### enableOffChainBilling + +Enables off-chain billing mechanism by removing fee manager + +This simulates chains that don't have FeeManager contracts deployed ```solidity -function requestLinkFromFaucet(address to, uint256 amount) external returns (bool success) +function enableOffChainBilling() external; ``` +### enableOnChainBilling + +Enables on-chain billing mechanism by deploying/setting fee manager + +This simulates chains that have FeeManager contracts deployed + +```solidity +function enableOnChainBilling() external; +``` + +### getBillingMechanism + +Returns the current billing mechanism type + +```solidity +function getBillingMechanism() external view returns (string memory billingType); +``` + +**Returns** + +| Name | Type | Description | +| ------------- | -------- | ------------------------------------------------------------- | +| `billingType` | `string` | "on-chain" if fee manager is enabled, "off-chain" if disabled | + +### \_deployFeeManager + +Internal function to deploy fee manager and reward manager + +```solidity +function _deployFeeManager() private; +``` + +### requestLinkFromFaucet + Requests LINK tokens from the faucet. The provided amount of tokens are transferred to provided destination address. -#### Parameters +```solidity +function requestLinkFromFaucet(address to, uint256 amount) external returns (bool success); +``` + +**Parameters** -| Name | Type | Description | -| ------ | ------- | -------------------------------------------------- | -| to | address | - The address to which LINK tokens are to be sent. | -| amount | uint256 | - The amount of LINK tokens to send. | +| Name | Type | Description | +| -------- | --------- | -------------------------------------------------- | +| `to` | `address` | - The address to which LINK tokens are to be sent. | +| `amount` | `uint256` | - The amount of LINK tokens to send. | -#### Return Values +**Returns** -| Name | Type | Description | -| ------- | ---- | ----------------------------------------------------------------------------- | -| success | bool | - Returns `true` if the transfer of tokens was successful, otherwise `false`. | +| Name | Type | Description | +| --------- | ------ | ----------------------------------------------------------------------------- | +| `success` | `bool` | - Returns `true` if the transfer of tokens was successful, otherwise `false`. | ### configuration +Returns configuration details for pre-deployed contracts and services needed for +local Data Streams simulations. + ```solidity -function configuration() public view returns (contract WETH9 wrappedNative_, contract LinkToken linkToken_, contract MockVerifier mockVerifier_, contract MockVerifierProxy mockVerifierProxy_, contract MockFeeManager mockFeeManager_, contract MockRewardManager mockRewardManager_) +function configuration() + public + view + returns ( + WETH9 wrappedNative_, + LinkToken linkToken_, + MockVerifier mockVerifier_, + MockVerifierProxy mockVerifierProxy_, + MockFeeManager mockFeeManager_, + MockRewardManager mockRewardManager_ + ); ``` -@notice Returns configuration details for pre-deployed contracts and services -needed for local Data Streams simulations. - -#### Return Values +**Returns** -| Name | Type | Description | -| ------------------- | -------------------------- | ----------------------------------- | -| wrappedNative\_ | contract WETH9 | - The wrapped native token. | -| linkToken\_ | contract LinkToken | - The LINK token. | -| mockVerifier\_ | contract MockVerifier | - The mock verifier contract. | -| mockVerifierProxy\_ | contract MockVerifierProxy | - The mock verifier proxy contract. | -| mockFeeManager\_ | contract MockFeeManager | - The mock fee manager contract. | -| mockRewardManager\_ | contract MockRewardManager | - The mock reward manager contract. | +| Name | Type | Description | +| -------------------- | ------------------- | --------------------------------------------------------------------------------- | +| `wrappedNative_` | `WETH9` | - The wrapped native token. | +| `linkToken_` | `LinkToken` | - The LINK token. | +| `mockVerifier_` | `MockVerifier` | - The mock verifier contract. | +| `mockVerifierProxy_` | `MockVerifierProxy` | - The mock verifier proxy contract. | +| `mockFeeManager_` | `MockFeeManager` | - The mock fee manager contract (returns what's currently set on verifier proxy). | +| `mockRewardManager_` | `MockRewardManager` | - The mock reward manager contract (address(0) if fee manager is disabled). | diff --git a/api_reference/solidity/data-streams/DataStreamsLocalSimulatorFork.mdx b/api_reference/solidity/data-streams/DataStreamsLocalSimulatorFork.mdx index 0d10490..74c1888 100644 --- a/api_reference/solidity/data-streams/DataStreamsLocalSimulatorFork.mdx +++ b/api_reference/solidity/data-streams/DataStreamsLocalSimulatorFork.mdx @@ -2,101 +2,107 @@ ## DataStreamsLocalSimulatorFork +**Inherits:** Test + +## State Variables + ### i_register +The immutable register instance + ```solidity -contract Register i_register +Register immutable i_register ``` -The immutable register instance - ### LINK_FAUCET +The address of the LINK faucet + ```solidity -address LINK_FAUCET +address constant LINK_FAUCET = 0x4281eCF07378Ee595C564a59048801330f3084eE ``` -The address of the LINK faucet +## Functions ### constructor -```solidity -constructor() public -``` - Constructor to initialize the contract -### getNetworkDetails - ```solidity -function getNetworkDetails(uint256 chainId) external view returns (struct Register.NetworkDetails) +constructor() ; ``` +### getNetworkDetails + Returns the default values for currently Data Streams supported networks. If network is not present or some of the values are changed, user can manually add new network details using the `setNetworkDetails` function. -#### Parameters +```solidity +function getNetworkDetails(uint256 chainId) external view returns (Register.NetworkDetails memory); +``` -| Name | Type | Description | -| ------- | ------- | ----------------------------------------------------------------------------- | -| chainId | uint256 | - The blockchain network chain ID. For example 11155111 for Ethereum Sepolia. | +**Parameters** -#### Return Values +| Name | Type | Description | +| --------- | --------- | ----------------------------------------------------------------------------- | +| `chainId` | `uint256` | - The blockchain network chain ID. For example 11155111 for Ethereum Sepolia. | -| Name | Type | Description | -| ---- | ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| [0] | struct Register.NetworkDetails | networkDetails - The tuple containing: verifierProxyAddress - The address of the Verifier Proxy smart contract. linkAddress - The address of the LINK token. | +**Returns** -### setNetworkDetails +| Name | Type | Description | +| -------- | ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `` | `Register.NetworkDetails` | networkDetails - The tuple containing: verifierProxyAddress - The address of the Verifier Proxy smart contract. linkAddress - The address of the LINK token. | -```solidity -function setNetworkDetails(uint256 chainId, struct Register.NetworkDetails networkDetails) external -``` +### setNetworkDetails If network details are not present or some of the values are changed, user can manually add new network details using the `setNetworkDetails` function. -#### Parameters +```solidity +function setNetworkDetails(uint256 chainId, Register.NetworkDetails memory networkDetails) external; +``` -| Name | Type | Description | -| -------------- | ------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------- | -| chainId | uint256 | - The blockchain network chain ID. For example 11155111 for Ethereum Sepolia. | -| networkDetails | struct Register.NetworkDetails | - The tuple containing: verifierProxyAddress - The address of the Verifier Proxy smart contract. linkAddress - The address of the LINK token. | +**Parameters** -### requestLinkFromFaucet +| Name | Type | Description | +| ---------------- | ------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | +| `chainId` | `uint256` | - The blockchain network chain ID. For example 11155111 for Ethereum Sepolia. | +| `networkDetails` | `Register.NetworkDetails` | - The tuple containing: verifierProxyAddress - The address of the Verifier Proxy smart contract. linkAddress - The address of the LINK token. | -```solidity -function requestLinkFromFaucet(address to, uint256 amount) external returns (bool success) -``` +### requestLinkFromFaucet Requests LINK tokens from the faucet. The provided amount of tokens are transferred to provided destination address. -#### Parameters +```solidity +function requestLinkFromFaucet(address to, uint256 amount) external returns (bool success); +``` + +**Parameters** -| Name | Type | Description | -| ------ | ------- | -------------------------------------------------- | -| to | address | - The address to which LINK tokens are to be sent. | -| amount | uint256 | - The amount of LINK tokens to send. | +| Name | Type | Description | +| -------- | --------- | -------------------------------------------------- | +| `to` | `address` | - The address to which LINK tokens are to be sent. | +| `amount` | `uint256` | - The amount of LINK tokens to send. | -#### Return Values +**Returns** -| Name | Type | Description | -| ------- | ---- | ----------------------------------------------------------------------------- | -| success | bool | - Returns `true` if the transfer of tokens was successful, otherwise `false`. | +| Name | Type | Description | +| --------- | ------ | ----------------------------------------------------------------------------- | +| `success` | `bool` | - Returns `true` if the transfer of tokens was successful, otherwise `false`. | ### requestNativeFromFaucet +Requests native coints from the faucet. + ```solidity -function requestNativeFromFaucet(address to, uint256 amount) external +function requestNativeFromFaucet(address to, uint256 amount) external; ``` -Requests native coints from the faucet. - -#### Parameters +**Parameters** -| Name | Type | Description | -| ------ | ------- | --------------------------------------------------- | -| to | address | - The address to which native coins are to be sent. | -| amount | uint256 | - The amount of native coins to send. | +| Name | Type | Description | +| -------- | --------- | --------------------------------------------------- | +| `to` | `address` | - The address to which native coins are to be sent. | +| `amount` | `uint256` | - The amount of native coins to send. | diff --git a/api_reference/solidity/data-streams/MockFeeManager.mdx b/api_reference/solidity/data-streams/MockFeeManager.mdx index b72205e..b48f50b 100644 --- a/api_reference/solidity/data-streams/MockFeeManager.mdx +++ b/api_reference/solidity/data-streams/MockFeeManager.mdx @@ -1,159 +1,170 @@ # Solidity API -## Common +## MockFeeManager -### Asset +**Inherits:** +[IVerifierFeeManager](/src/data-streams/interfaces/IVerifierFeeManager.sol/interface.IVerifierFeeManager.md), +OwnerIsCreator -```solidity -struct Asset { - address assetAddress; - uint256 amount; -} -``` +## State Variables -## MockFeeManager +### PERCENTAGE_SCALAR -### Unauthorized +the total discount that can be applied to a fee, 1e18 = 100% discount ```solidity -error Unauthorized() +uint64 private constant PERCENTAGE_SCALAR = 1e18 ``` -### InvalidAddress +### i_linkAddress ```solidity -error InvalidAddress() +address public immutable i_linkAddress ``` -### InvalidQuote +### i_nativeAddress ```solidity -error InvalidQuote() +address public immutable i_nativeAddress ``` -### ExpiredReport +### i_proxyAddress ```solidity -error ExpiredReport() +address public immutable i_proxyAddress ``` -### InvalidDiscount +### i_rewardManager ```solidity -error InvalidDiscount() +IRewardManager public immutable i_rewardManager ``` -### InvalidSurcharge +### s_nativeSurcharge ```solidity -error InvalidSurcharge() +uint256 public s_nativeSurcharge ``` -### InvalidDeposit +### s_mockDiscounts ```solidity -error InvalidDeposit() +mapping(address => uint256) public s_mockDiscounts ``` -### i_linkAddress +## Functions + +### onlyProxy ```solidity -address i_linkAddress +modifier onlyProxy() ; ``` -### i_nativeAddress +### constructor ```solidity -address i_nativeAddress +constructor(address linkAddress, address nativeAddress, address proxyAddress, address rewardManager) ; ``` -### i_proxyAddress +### processFee ```solidity -address i_proxyAddress +function processFee(bytes calldata payload, bytes calldata parameterPayload, address subscriber) + external + payable + override + onlyProxy; ``` -### i_rewardManager +### processFeeBulk ```solidity -contract IRewardManager i_rewardManager +function processFeeBulk(bytes[] calldata payloads, bytes calldata parameterPayload, address subscriber) + external + payable + override + onlyProxy; ``` -### s_nativeSurcharge +### getFeeAndReward ```solidity -uint256 s_nativeSurcharge +function getFeeAndReward(address subscriber, bytes memory report, address quoteAddress) + public + view + returns (Common.Asset memory, Common.Asset memory, uint256); ``` -### s_mockDiscounts +### \_processFee ```solidity -mapping(address => uint256) s_mockDiscounts +function _processFee(bytes calldata payload, bytes calldata parameterPayload, address subscriber) internal; ``` -### onlyProxy +### setNativeSurcharge ```solidity -modifier onlyProxy() +function setNativeSurcharge(uint64 surcharge) external; ``` -### constructor +### setMockDiscount ```solidity -constructor(address linkAddress, address nativeAddress, address proxyAddress, address rewardManager) public +function setMockDiscount(address subscriber, uint256 discount) external; ``` -### processFee +### getMockDiscount ```solidity -function processFee(bytes payload, bytes parameterPayload, address subscriber) external payable +function getMockDiscount(address subscriber) external view returns (uint256); ``` -### processFeeBulk +### supportsInterface ```solidity -function processFeeBulk(bytes[] payloads, bytes parameterPayload, address subscriber) external payable +function supportsInterface(bytes4 interfaceId) external pure override returns (bool); ``` -### getFeeAndReward +## Errors + +### Unauthorized ```solidity -function getFeeAndReward(address subscriber, bytes report, address quoteAddress) public view returns (struct Common.Asset, struct Common.Asset, uint256) +error Unauthorized(); ``` -### \_processFee +### InvalidAddress ```solidity -function _processFee(bytes payload, bytes parameterPayload, address subscriber) internal +error InvalidAddress(); ``` -### setNativeSurcharge +### InvalidQuote ```solidity -function setNativeSurcharge(uint64 surcharge) external +error InvalidQuote(); ``` -### setMockDiscount +### ExpiredReport ```solidity -function setMockDiscount(address subscriber, uint256 discount) external +error ExpiredReport(); ``` -### getMockDiscount +### InvalidDiscount ```solidity -function getMockDiscount(address subscriber) external view returns (uint256) +error InvalidDiscount(); ``` -### supportsInterface +### InvalidSurcharge ```solidity -function supportsInterface(bytes4 interfaceId) external pure returns (bool) +error InvalidSurcharge(); ``` -\_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. +### InvalidDeposit -This function call must use less than 30 000 gas.\_ +```solidity +error InvalidDeposit(); +``` diff --git a/api_reference/solidity/data-streams/MockReportGenerator.mdx b/api_reference/solidity/data-streams/MockReportGenerator.mdx index ed34045..602ba43 100644 --- a/api_reference/solidity/data-streams/MockReportGenerator.mdx +++ b/api_reference/solidity/data-streams/MockReportGenerator.mdx @@ -2,170 +2,194 @@ ## MockReportGenerator +**Inherits:** Test, +[ReportVersions](/src/data-streams/ReportVersions.sol/abstract.ReportVersions.md) + +## State Variables + ### i_donAddress ```solidity -address i_donAddress +address internal immutable i_donAddress ``` ### i_donDigest ```solidity -uint256 i_donDigest +uint256 internal immutable i_donDigest ``` ### i_reportV2MockFeedId ```solidity -bytes32 i_reportV2MockFeedId +bytes32 internal immutable i_reportV2MockFeedId = + hex"0002777777777777777777777777777777777777777777777777777777777777" ``` ### i_reportV3MockFeedId ```solidity -bytes32 i_reportV3MockFeedId +bytes32 internal immutable i_reportV3MockFeedId = + hex"0003777777777777777777777777777777777777777777777777777777777777" ``` ### i_reportV4MockFeedId ```solidity -bytes32 i_reportV4MockFeedId +bytes32 internal immutable i_reportV4MockFeedId = + hex"0004777777777777777777777777777777777777777777777777777777777777" ``` ### s_price ```solidity -int192 s_price +int192 internal s_price ``` ### s_bid ```solidity -int192 s_bid +int192 internal s_bid ``` ### s_ask ```solidity -int192 s_ask +int192 internal s_ask ``` ### s_expiresPeriod ```solidity -uint32 s_expiresPeriod +uint32 internal s_expiresPeriod ``` ### s_marketStatus ```solidity -uint32 s_marketStatus +uint32 internal s_marketStatus ``` ### s_nativeFee ```solidity -uint192 s_nativeFee +uint192 internal s_nativeFee ``` ### s_linkFee ```solidity -uint192 s_linkFee -``` - -### MockReportGenerator\_\_InvalidBid - -```solidity -error MockReportGenerator__InvalidBid() -``` - -### MockReportGenerator\_\_InvalidAsk - -```solidity -error MockReportGenerator__InvalidAsk() +uint192 internal s_linkFee ``` -### MockReportGenerator\_\_CastOverflow - -```solidity -error MockReportGenerator__CastOverflow() -``` +## Functions ### constructor ```solidity -constructor(int192 initialPrice) public +constructor(int192 initialPrice) ; ``` ### generateReport ```solidity -function generateReport(struct ReportVersions.ReportV2 report) external returns (bytes signedReport) +function generateReport(ReportV2 calldata report) external returns (bytes memory signedReport); ``` ### generateReport ```solidity -function generateReport(struct ReportVersions.ReportV3 report) external returns (bytes signedReport) +function generateReport(ReportV3 calldata report) external returns (bytes memory signedReport); ``` ### generateReport ```solidity -function generateReport(struct ReportVersions.ReportV4 report) external returns (bytes signedReport) +function generateReport(ReportV4 calldata report) external returns (bytes memory signedReport); ``` ### generateReportV2 ```solidity -function generateReportV2() external returns (bytes signedReport, struct ReportVersions.ReportV2 report) +function generateReportV2() external returns (bytes memory signedReport, ReportV2 memory report); ``` ### generateReportV3 ```solidity -function generateReportV3() external returns (bytes signedReport, struct ReportVersions.ReportV3 report) +function generateReportV3() external returns (bytes memory signedReport, ReportV3 memory report); ``` ### generateReportV4 ```solidity -function generateReportV4() external returns (bytes signedReport, struct ReportVersions.ReportV4 report) +function generateReportV4() external returns (bytes memory signedReport, ReportV4 memory report); ``` ### updatePrice ```solidity -function updatePrice(int192 price) public +function updatePrice(int192 price) public; ``` ### updatePriceBidAndAsk ```solidity -function updatePriceBidAndAsk(int192 price, int192 bid, int192 ask) external +function updatePriceBidAndAsk(int192 price, int192 bid, int192 ask) external; ``` ### updateExpiresPeriod ```solidity -function updateExpiresPeriod(uint32 period) external +function updateExpiresPeriod(uint32 period) external; ``` ### updateMarketStatus ```solidity -function updateMarketStatus(uint32 status) external +function updateMarketStatus(uint32 status) external; ``` ### updateFees ```solidity -function updateFees(uint192 nativeFee, uint192 linkFee) external +function updateFees(uint192 nativeFee, uint192 linkFee) external; ``` ### getMockDonAddress ```solidity -function getMockDonAddress() external view returns (address) +function getMockDonAddress() external view returns (address); +``` + +### signReport + +```solidity +function signReport(bytes memory reportData) private returns (bytes memory signedReport); +``` + +### toUint32 + +```solidity +function toUint32(uint256 timestamp) private pure returns (uint32); +``` + +## Errors + +### MockReportGenerator\_\_InvalidBid + +```solidity +error MockReportGenerator__InvalidBid(); +``` + +### MockReportGenerator\_\_InvalidAsk + +```solidity +error MockReportGenerator__InvalidAsk(); +``` + +### MockReportGenerator\_\_CastOverflow + +```solidity +error MockReportGenerator__CastOverflow(); ``` diff --git a/api_reference/solidity/data-streams/MockRewardManager.mdx b/api_reference/solidity/data-streams/MockRewardManager.mdx index d5f66ae..1961ab8 100644 --- a/api_reference/solidity/data-streams/MockRewardManager.mdx +++ b/api_reference/solidity/data-streams/MockRewardManager.mdx @@ -2,69 +2,78 @@ ## MockRewardManager -### Unauthorized +**Inherits:** +[IRewardManager](/src/data-streams/interfaces/IRewardManager.sol/interface.IRewardManager.md) -```solidity -error Unauthorized() -``` +## State Variables ### i_linkAddress ```solidity -address i_linkAddress +address public immutable i_linkAddress ``` ### s_feeManagerAddress ```solidity -address s_feeManagerAddress +address public s_feeManagerAddress ``` -### FeePaid - -```solidity -event FeePaid(struct IRewardManager.FeePayment[] payments, address payer) -``` +## Functions ### onlyFeeManager ```solidity -modifier onlyFeeManager() +modifier onlyFeeManager() ; ``` ### constructor ```solidity -constructor(address linkAddress) public +constructor(address linkAddress) ; ``` ### onFeePaid ```solidity -function onFeePaid(struct IRewardManager.FeePayment[] payments, address payer) external +function onFeePaid(FeePayment[] calldata payments, address payer) external override onlyFeeManager; ``` ### claimRewards ```solidity -function claimRewards(bytes32[]) external pure +function claimRewards( + bytes32[] memory /*poolIds*/ +) + external + pure + override; ``` ### setFeeManager ```solidity -function setFeeManager(address newFeeManager) external +function setFeeManager(address newFeeManager) external override; ``` ### supportsInterface ```solidity -function supportsInterface(bytes4 interfaceId) external pure returns (bool) +function supportsInterface(bytes4 interfaceId) external pure override returns (bool); ``` -\_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. +## Events + +### FeePaid -This function call must use less than 30 000 gas.\_ +```solidity +event FeePaid(IRewardManager.FeePayment[] payments, address payer); +``` + +## Errors + +### Unauthorized + +```solidity +error Unauthorized(); +``` diff --git a/api_reference/solidity/data-streams/MockVerifier.mdx b/api_reference/solidity/data-streams/MockVerifier.mdx index f4de79c..8813f0d 100644 --- a/api_reference/solidity/data-streams/MockVerifier.mdx +++ b/api_reference/solidity/data-streams/MockVerifier.mdx @@ -2,141 +2,144 @@ ## MockVerifier -### AccessForbidden +**Inherits:** IERC165 -```solidity -error AccessForbidden() -``` +## State Variables -### InactiveFeed +### N_2 ```solidity -error InactiveFeed(bytes32 feedId) +uint256 constant N_2 = 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0 ``` -### DigestInactive +### MOCK_DATA_STREAM_DON_ADDRESS ```solidity -error DigestInactive(bytes32 feedId, bytes32 configDigest) +address constant MOCK_DATA_STREAM_DON_ADDRESS = 0x143f40b47ab222503b787e98940023c59fc29984 ``` -### BadVerification +### i_verifierProxy ```solidity -error BadVerification() +address internal immutable i_verifierProxy ``` -### InvalidV +### s_inactiveDigests ```solidity -error InvalidV() +mapping(bytes32 => mapping(bytes32 => bool)) internal s_inactiveDigests ``` -### AlreadyUsedSignature +### s_inactiveFeeds ```solidity -error AlreadyUsedSignature() +mapping(bytes32 => bool) internal s_inactiveFeeds ``` -### InvalidSignatureLength +### s_verifiedSignatures ```solidity -error InvalidSignatureLength() +mapping(bytes => bool) internal s_verifiedSignatures ``` -### InvalidS +## Functions + +### constructor ```solidity -error InvalidS() +constructor(address verifierProxy) ; ``` -### N_2 +### verify ```solidity -uint256 N_2 +function verify(bytes calldata signedReport, address sender) external returns (bytes memory verifierResponse); ``` -### MOCK_DATA_STREAM_DON_ADDRESS +### deactivateConfig ```solidity -address MOCK_DATA_STREAM_DON_ADDRESS +function deactivateConfig(bytes32 feedId, bytes32 configDigest) external; ``` -### i_verifierProxy +### activateConfig ```solidity -address i_verifierProxy +function activateConfig(bytes32 feedId, bytes32 configDigest) external; ``` -### s_inactiveDigests +### deactivateFeed ```solidity -mapping(bytes32 => mapping(bytes32 => bool)) s_inactiveDigests +function deactivateFeed(bytes32 feedId) external; ``` -### s_inactiveFeeds +### activateFeed ```solidity -mapping(bytes32 => bool) s_inactiveFeeds +function activateFeed(bytes32 feedId) external; ``` -### s_verifiedSignatures +### supportsInterface ```solidity -mapping(bytes => bool) s_verifiedSignatures +function supportsInterface(bytes4 interfaceId) external pure override returns (bool); ``` +## Events + ### ReportVerified ```solidity -event ReportVerified(bytes32 feedId, address sender) +event ReportVerified(bytes32 indexed feedId, address indexed sender); ``` -### constructor +## Errors + +### AccessForbidden ```solidity -constructor(address verifierProxy) public +error AccessForbidden(); ``` -### verify +### InactiveFeed ```solidity -function verify(bytes signedReport, address sender) external returns (bytes verifierResponse) +error InactiveFeed(bytes32 feedId); ``` -### deactivateConfig +### DigestInactive ```solidity -function deactivateConfig(bytes32 feedId, bytes32 configDigest) external +error DigestInactive(bytes32 feedId, bytes32 configDigest); ``` -### activateConfig +### BadVerification ```solidity -function activateConfig(bytes32 feedId, bytes32 configDigest) external +error BadVerification(); ``` -### deactivateFeed +### InvalidV ```solidity -function deactivateFeed(bytes32 feedId) external +error InvalidV(); ``` -### activateFeed +### AlreadyUsedSignature ```solidity -function activateFeed(bytes32 feedId) external +error AlreadyUsedSignature(); ``` -### supportsInterface +### InvalidSignatureLength ```solidity -function supportsInterface(bytes4 interfaceId) external pure returns (bool) +error InvalidSignatureLength(); ``` -\_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. +### InvalidS -This function call must use less than 30 000 gas.\_ +```solidity +error InvalidS(); +``` diff --git a/api_reference/solidity/data-streams/MockVerifierProxy.mdx b/api_reference/solidity/data-streams/MockVerifierProxy.mdx index 4379b02..cea1568 100644 --- a/api_reference/solidity/data-streams/MockVerifierProxy.mdx +++ b/api_reference/solidity/data-streams/MockVerifierProxy.mdx @@ -2,80 +2,128 @@ ## MockVerifierProxy -### ZeroAddress +**Inherits:** OwnerIsCreator + +## State Variables + +### s_verifier ```solidity -error ZeroAddress() +address internal s_verifier ``` -### VerifierInvalid +### s_feeManager ```solidity -error VerifierInvalid() +IVerifierFeeManager public s_feeManager ``` -### VerifierNotFound +## Functions + +### onlyValidVerifier ```solidity -error VerifierNotFound() +modifier onlyValidVerifier(address verifierAddress) ; ``` -### s_verifier +### verify ```solidity -address s_verifier +function verify(bytes calldata payload, bytes calldata parameterPayload) external payable returns (bytes memory); ``` -### s_feeManager +### verifyBulk ```solidity -contract IVerifierFeeManager s_feeManager +function verifyBulk(bytes[] calldata payloads, bytes calldata parameterPayload) + external + payable + returns (bytes[] memory verifiedReports); ``` -### VerifierInitialized +### \_verify ```solidity -event VerifierInitialized(address verifierAddress) +function _verify(bytes calldata payload) internal returns (bytes memory); ``` -### onlyValidVerifier +### initializeVerifier ```solidity -modifier onlyValidVerifier(address verifierAddress) +function initializeVerifier(address verifierAddress) external onlyOwner onlyValidVerifier(verifierAddress); ``` -### verify +### getVerifier ```solidity -function verify(bytes payload, bytes parameterPayload) external payable returns (bytes) +function getVerifier( + bytes32 /*configDigest*/ +) + external + view + returns (address); ``` -### verifyBulk +### setFeeManager ```solidity -function verifyBulk(bytes[] payloads, bytes parameterPayload) external payable returns (bytes[] verifiedReports) +function setFeeManager(IVerifierFeeManager feeManager) external; ``` -### \_verify +### \_validateBillingMechanism + +Validates billing mechanism configuration and provides helpful error messages + +This validation helps developers catch billing mechanism mismatches early in +development ```solidity -function _verify(bytes payload) internal returns (bytes) +function _validateBillingMechanism(address feeManagerAddress, bytes calldata parameterPayload) internal pure; ``` -### initializeVerifier +**Parameters** + +| Name | Type | Description | +| ------------------- | --------- | ------------------------------------------------------------- | +| `feeManagerAddress` | `address` | Current fee manager address (address(0) if off-chain billing) | +| `parameterPayload` | `bytes` | The parameter payload from the consumer contract | + +## Events + +### VerifierInitialized ```solidity -function initializeVerifier(address verifierAddress) external +event VerifierInitialized(address indexed verifierAddress); ``` -### getVerifier +## Errors + +### ZeroAddress ```solidity -function getVerifier(bytes32) external view returns (address) +error ZeroAddress(); ``` -### setFeeManager +### VerifierInvalid + +```solidity +error VerifierInvalid(); +``` + +### VerifierNotFound + +```solidity +error VerifierNotFound(); +``` + +### FeeManagerRequired + +```solidity +error FeeManagerRequired(string message); +``` + +### FeeManagerNotExpected ```solidity -function setFeeManager(contract IVerifierFeeManager feeManager) external +error FeeManagerNotExpected(string message); ``` diff --git a/api_reference/solidity/data-streams/Register.mdx b/api_reference/solidity/data-streams/Register.mdx index 51283fa..5bc8d1c 100644 --- a/api_reference/solidity/data-streams/Register.mdx +++ b/api_reference/solidity/data-streams/Register.mdx @@ -2,66 +2,74 @@ ## Register -This contract allows storing and retrieving network details for various chains. +**Title:** Register Contract -_Stores network details in a mapping based on chain IDs._ +This contract allows storing and retrieving network details for various chains. -### NetworkDetails +Stores network details in a mapping based on chain IDs. -```solidity -struct NetworkDetails { - address verifierProxyAddress; - address linkAddress; -} -``` +## State Variables ### s_networkDetails +Mapping to store network details based on chain ID. + ```solidity -mapping(uint256 => struct Register.NetworkDetails) s_networkDetails +mapping(uint256 chainId => NetworkDetails) internal s_networkDetails ``` -Mapping to store network details based on chain ID. +## Functions ### constructor +Constructor to initialize the network details for various chains. + ```solidity -constructor() public +constructor() ; ``` -Constructor to initialize the network details for various chains. - ### getNetworkDetails +Retrieves network details for a given chain ID. + ```solidity -function getNetworkDetails(uint256 chainId) external view returns (struct Register.NetworkDetails networkDetails) +function getNetworkDetails(uint256 chainId) external view returns (NetworkDetails memory networkDetails); ``` -Retrieves network details for a given chain ID. - -#### Parameters +**Parameters** -| Name | Type | Description | -| ------- | ------- | --------------------------------------------- | -| chainId | uint256 | - The ID of the chain to get the details for. | +| Name | Type | Description | +| --------- | --------- | --------------------------------------------- | +| `chainId` | `uint256` | - The ID of the chain to get the details for. | -#### Return Values +**Returns** -| Name | Type | Description | -| -------------- | ------------------------------ | ------------------------------------------------- | -| networkDetails | struct Register.NetworkDetails | - The network details for the specified chain ID. | +| Name | Type | Description | +| ---------------- | ---------------- | ------------------------------------------------- | +| `networkDetails` | `NetworkDetails` | - The network details for the specified chain ID. | ### setNetworkDetails +Sets the network details for a given chain ID. + ```solidity -function setNetworkDetails(uint256 chainId, struct Register.NetworkDetails networkDetails) external +function setNetworkDetails(uint256 chainId, NetworkDetails memory networkDetails) external; ``` -Sets the network details for a given chain ID. +**Parameters** -#### Parameters +| Name | Type | Description | +| ---------------- | ---------------- | -------------------------------------------------------- | +| `chainId` | `uint256` | - The ID of the chain to set the details for. | +| `networkDetails` | `NetworkDetails` | - The network details to set for the specified chain ID. | -| Name | Type | Description | -| -------------- | ------------------------------ | -------------------------------------------------------- | -| chainId | uint256 | - The ID of the chain to set the details for. | -| networkDetails | struct Register.NetworkDetails | - The network details to set for the specified chain ID. | +## Structs + +### NetworkDetails + +```solidity +struct NetworkDetails { + address verifierProxyAddress; + address linkAddress; +} +``` diff --git a/api_reference/solidity/data-streams/ReportVersions.mdx b/api_reference/solidity/data-streams/ReportVersions.mdx index 012d2c6..afbdd94 100644 --- a/api_reference/solidity/data-streams/ReportVersions.mdx +++ b/api_reference/solidity/data-streams/ReportVersions.mdx @@ -2,66 +2,68 @@ ## ReportVersions +## Structs + ### ReportV2 -_Represents a data report from a Data Streams stream for v2 schema (crypto +Represents a data report from a Data Streams stream for v2 schema (crypto streams). The `price` value is carried to either 8 or 18 decimal places, depending on the stream. For more information, see https://docs.chain.link/data-streams/crypto-streams and -https://docs.chain.link/data-streams/reference/report-schema_ +https://docs.chain.link/data-streams/reference/report-schema ```solidity struct ReportV2 { - bytes32 feedId; - uint32 validFromTimestamp; - uint32 observationsTimestamp; - uint192 nativeFee; - uint192 linkFee; - uint32 expiresAt; - int192 benchmarkPrice; + bytes32 feedId; // The feed ID the report has data for + uint32 validFromTimestamp; // Earliest timestamp for which price is applicable + uint32 observationsTimestamp; // Latest timestamp for which price is applicable + uint192 nativeFee; // Base cost to validate a transaction using the report, denominated in the chain’s native token (WETH/ETH) + uint192 linkFee; // Base cost to validate a transaction using the report, denominated in LINK + uint32 expiresAt; // Latest timestamp where the report can be verified on-chain + int192 benchmarkPrice; // DON consensus median price, carried to 8 decimal places } ``` ### ReportV3 -_Represents a data report from a Data Streams stream for v3 schema (crypto +Represents a data report from a Data Streams stream for v3 schema (crypto streams). The `price`, `bid`, and `ask` values are carried to either 8 or 18 decimal places, depending on the stream. For more information, see https://docs.chain.link/data-streams/crypto-streams and -https://docs.chain.link/data-streams/reference/report-schema_ +https://docs.chain.link/data-streams/reference/report-schema ```solidity struct ReportV3 { - bytes32 feedId; - uint32 validFromTimestamp; - uint32 observationsTimestamp; - uint192 nativeFee; - uint192 linkFee; - uint32 expiresAt; - int192 price; - int192 bid; - int192 ask; + bytes32 feedId; // The stream ID the report has data for. + uint32 validFromTimestamp; // Earliest timestamp for which price is applicable. + uint32 observationsTimestamp; // Latest timestamp for which price is applicable. + uint192 nativeFee; // Base cost to validate a transaction using the report, denominated in the chain’s native token (e.g., WETH/ETH). + uint192 linkFee; // Base cost to validate a transaction using the report, denominated in LINK. + uint32 expiresAt; // Latest timestamp where the report can be verified onchain. + int192 price; // DON consensus median price (8 or 18 decimals). + int192 bid; // Simulated price impact of a buy order up to the X% depth of liquidity utilisation (8 or 18 decimals). + int192 ask; // Simulated price impact of a sell order up to the X% depth of liquidity utilisation (8 or 18 decimals). } ``` ### ReportV4 -_Represents a data report from a Data Streams stream for v4 schema (RWA stream). +Represents a data report from a Data Streams stream for v4 schema (RWA stream). The `price` value is carried to either 8 or 18 decimal places, depending on the stream. The `marketStatus` indicates whether the market is currently open. Possible values: `0` (`Unknown`), `1` (`Closed`), `2` (`Open`). For more information, see https://docs.chain.link/data-streams/rwa-streams and -https://docs.chain.link/data-streams/reference/report-schema-v4_ +https://docs.chain.link/data-streams/reference/report-schema-v4 ```solidity struct ReportV4 { - bytes32 feedId; - uint32 validFromTimestamp; - uint32 observationsTimestamp; - uint192 nativeFee; - uint192 linkFee; - uint32 expiresAt; - int192 price; - uint32 marketStatus; + bytes32 feedId; // The stream ID the report has data for. + uint32 validFromTimestamp; // Earliest timestamp for which price is applicable. + uint32 observationsTimestamp; // Latest timestamp for which price is applicable. + uint192 nativeFee; // Base cost to validate a transaction using the report, denominated in the chain’s native token (e.g., WETH/ETH). + uint192 linkFee; // Base cost to validate a transaction using the report, denominated in LINK. + uint32 expiresAt; // Latest timestamp where the report can be verified onchain. + int192 price; // DON consensus median benchmark price (8 or 18 decimals). + uint32 marketStatus; // The DON's consensus on whether the market is currently open. } ``` diff --git a/api_reference/solidity/data-streams/index.mdx b/api_reference/solidity/data-streams/index.mdx index b23e380..b6fb611 100644 --- a/api_reference/solidity/data-streams/index.mdx +++ b/api_reference/solidity/data-streams/index.mdx @@ -1,5 +1,6 @@ # Data-streams API Reference +- [Common](Common.mdx) - [DataStreamsLocalSimulator](DataStreamsLocalSimulator.mdx) - [DataStreamsLocalSimulatorFork](DataStreamsLocalSimulatorFork.mdx) - [MockFeeManager](MockFeeManager.mdx) diff --git a/api_reference/solidity/data-streams/interfaces/IRewardManager.mdx b/api_reference/solidity/data-streams/interfaces/IRewardManager.mdx index d4dcc9e..f6c1d1d 100644 --- a/api_reference/solidity/data-streams/interfaces/IRewardManager.mdx +++ b/api_reference/solidity/data-streams/interfaces/IRewardManager.mdx @@ -2,29 +2,35 @@ ## IRewardManager +**Inherits:** IERC165 + +## Functions + ### onFeePaid ```solidity -function onFeePaid(struct IRewardManager.FeePayment[] payments, address payee) external +function onFeePaid(FeePayment[] calldata payments, address payee) external; ``` ### claimRewards ```solidity -function claimRewards(bytes32[] poolIds) external +function claimRewards(bytes32[] calldata poolIds) external; ``` ### setFeeManager ```solidity -function setFeeManager(address newFeeManager) external +function setFeeManager(address newFeeManager) external; ``` +## Structs + ### FeePayment ```solidity struct FeePayment { - bytes32 poolId; - uint192 amount; + bytes32 poolId; + uint192 amount; } ``` diff --git a/api_reference/solidity/data-streams/interfaces/IVerifier.mdx b/api_reference/solidity/data-streams/interfaces/IVerifier.mdx index ed66b43..5e49dd4 100644 --- a/api_reference/solidity/data-streams/interfaces/IVerifier.mdx +++ b/api_reference/solidity/data-streams/interfaces/IVerifier.mdx @@ -2,32 +2,34 @@ ## IVerifier +## Functions + ### verify ```solidity -function verify(bytes signedReport, address sender) external returns (bytes verifierResponse) +function verify(bytes calldata signedReport, address sender) external returns (bytes memory verifierResponse); ``` ### activateConfig ```solidity -function activateConfig(bytes32 feedId, bytes32 configDigest) external +function activateConfig(bytes32 feedId, bytes32 configDigest) external; ``` ### deactivateConfig ```solidity -function deactivateConfig(bytes32 feedId, bytes32 configDigest) external +function deactivateConfig(bytes32 feedId, bytes32 configDigest) external; ``` ### activateFeed ```solidity -function activateFeed(bytes32 feedId) external +function activateFeed(bytes32 feedId) external; ``` ### deactivateFeed ```solidity -function deactivateFeed(bytes32 feedId) external +function deactivateFeed(bytes32 feedId) external; ``` diff --git a/api_reference/solidity/data-streams/interfaces/IVerifierFeeManager.mdx b/api_reference/solidity/data-streams/interfaces/IVerifierFeeManager.mdx index fcbbbbd..c2e1606 100644 --- a/api_reference/solidity/data-streams/interfaces/IVerifierFeeManager.mdx +++ b/api_reference/solidity/data-streams/interfaces/IVerifierFeeManager.mdx @@ -2,14 +2,20 @@ ## IVerifierFeeManager +**Inherits:** IERC165 + +## Functions + ### processFee ```solidity -function processFee(bytes payload, bytes parameterPayload, address subscriber) external payable +function processFee(bytes calldata payload, bytes calldata parameterPayload, address subscriber) external payable; ``` ### processFeeBulk ```solidity -function processFeeBulk(bytes[] payloads, bytes parameterPayload, address subscriber) external payable +function processFeeBulk(bytes[] calldata payloads, bytes calldata parameterPayload, address subscriber) + external + payable; ``` diff --git a/api_reference/solidity/shared/ITypeAndVersion.mdx b/api_reference/solidity/shared/ITypeAndVersion.mdx deleted file mode 100644 index dd1b217..0000000 --- a/api_reference/solidity/shared/ITypeAndVersion.mdx +++ /dev/null @@ -1,9 +0,0 @@ -# Solidity API - -## ITypeAndVersion - -### typeAndVersion - -```solidity -function typeAndVersion() external pure returns (string) -``` diff --git a/api_reference/solidity/shared/LinkToken.mdx b/api_reference/solidity/shared/LinkToken.mdx index fbce236..56c0da6 100644 --- a/api_reference/solidity/shared/LinkToken.mdx +++ b/api_reference/solidity/shared/LinkToken.mdx @@ -2,31 +2,63 @@ ## LinkToken +**Inherits:** ERC677 + +**Title:** LinkToken + This contract implements the ChainLink Token (LINK) using the ERC677 standard. -_Inherits from the ERC677 token contract and initializes with a fixed total -supply and standard token details._ +Inherits from the ERC677 token contract and initializes with a fixed total +supply and standard token details. -### constructor +## State Variables + +### TOTAL_SUPPLY + +The total supply of LINK tokens. ```solidity -constructor() public +uint256 private constant TOTAL_SUPPLY = 10 ** 27 ``` +### NAME + +The name of the LINK token. + +```solidity +string private constant NAME = "ChainLink Token" +``` + +### SYMBOL + +The symbol of the LINK token. + +```solidity +string private constant SYMBOL = "LINK" +``` + +## Functions + +### constructor + Constructor to initialize the LinkToken contract with a fixed total supply, name, and symbol. -_Calls the ERC677 constructor with the name and symbol, and then mints the total -supply to the contract deployer._ - -### \_onCreate +Calls the ERC677 constructor with the name and symbol, and then mints the total +supply to the contract deployer. ```solidity -function _onCreate() internal virtual +constructor() ERC677(NAME, SYMBOL); ``` +### \_onCreate + Hook that is called when this contract is created. -_Useful to override constructor behaviour in child contracts (e.g., LINK bridge +Useful to override constructor behaviour in child contracts (e.g., LINK bridge tokens). The default implementation mints 10\*\*27 tokens to the contract -deployer._ +deployer. + +```solidity +function _onCreate() internal virtual; +``` diff --git a/api_reference/solidity/shared/WETH9.mdx b/api_reference/solidity/shared/WETH9.mdx index 3a82a03..6287425 100644 --- a/api_reference/solidity/shared/WETH9.mdx +++ b/api_reference/solidity/shared/WETH9.mdx @@ -2,104 +2,110 @@ ## WETH9 +## State Variables + ### name ```solidity -string name +string public name = "Wrapped Ether" ``` ### symbol ```solidity -string symbol +string public symbol = "WETH" ``` ### decimals ```solidity -uint8 decimals +uint8 public decimals = 18 ``` -### Approval +### balanceOf ```solidity -event Approval(address src, address guy, uint256 wad) +mapping(address => uint256) public balanceOf ``` -### Transfer +### allowance ```solidity -event Transfer(address src, address dst, uint256 wad) +mapping(address => mapping(address => uint256)) public allowance ``` -### Deposit +## Functions + +### receive ```solidity -event Deposit(address dst, uint256 wad) +receive() external payable; ``` -### Withdrawal +### \_deposit ```solidity -event Withdrawal(address src, uint256 wad) +function _deposit() internal; ``` -### balanceOf +### deposit ```solidity -mapping(address => uint256) balanceOf +function deposit() external payable; ``` -### allowance +### withdraw ```solidity -mapping(address => mapping(address => uint256)) allowance +function withdraw(uint256 wad) external; ``` -### receive +### totalSupply ```solidity -receive() external payable +function totalSupply() public view returns (uint256); ``` -### \_deposit +### approve ```solidity -function _deposit() internal +function approve(address guy, uint256 wad) public returns (bool); ``` -### deposit +### transfer ```solidity -function deposit() external payable +function transfer(address dst, uint256 wad) public returns (bool); ``` -### withdraw +### transferFrom ```solidity -function withdraw(uint256 wad) external +function transferFrom(address src, address dst, uint256 wad) public returns (bool); ``` -### totalSupply +## Events + +### Approval ```solidity -function totalSupply() public view returns (uint256) +event Approval(address indexed src, address indexed guy, uint256 wad); ``` -### approve +### Transfer ```solidity -function approve(address guy, uint256 wad) public returns (bool) +event Transfer(address indexed src, address indexed dst, uint256 wad); ``` -### transfer +### Deposit ```solidity -function transfer(address dst, uint256 wad) public returns (bool) +event Deposit(address indexed dst, uint256 wad); ``` -### transferFrom +### Withdrawal ```solidity -function transferFrom(address src, address dst, uint256 wad) public returns (bool) +event Withdrawal(address indexed src, uint256 wad); ``` diff --git a/api_reference/solidity/shared/index.mdx b/api_reference/solidity/shared/index.mdx index feda988..d8a2e0c 100644 --- a/api_reference/solidity/shared/index.mdx +++ b/api_reference/solidity/shared/index.mdx @@ -1,5 +1,4 @@ # Shared API Reference -- [ITypeAndVersion](ITypeAndVersion.mdx) - [LinkToken](LinkToken.mdx) - [WETH9](WETH9.mdx) diff --git a/foundry.lock b/foundry.lock index 10b836b..3e26054 100644 --- a/foundry.lock +++ b/foundry.lock @@ -1,6 +1,15 @@ { - "lib/forge-std": { - "rev": "77041d2ce690e692d6e03cc812b57d1ddaa4d505" + "lib/chainlink-ace": { + "tag": { + "name": "v1.0.0", + "rev": "288c393af4da077b49e5138ac47965aed9ca4b3a" + } + }, + "lib/chainlink-ccip": { + "tag": { + "name": "contracts-ccip-v2.0.0", + "rev": "c2c125c27f056db2e98d21501922b6eff5750f36" + } }, "lib/chainlink-evm": { "tag": { @@ -8,10 +17,19 @@ "rev": "86aa5a1d34b20eda8d18fe6eb0e4882948e545ba" } }, - "lib/chainlink-ccip": { + "lib/forge-std": { + "rev": "77041d2ce690e692d6e03cc812b57d1ddaa4d505" + }, + "lib/openzeppelin-contracts-4.8.3": { + "tag": { + "name": "v4.8.3", + "rev": "0a25c1940ca220686588c4af3ec526f725fe2582" + } + }, + "lib/openzeppelin-contracts-5.3.0": { "tag": { - "name": "contracts-ccip-v1.6.2", - "rev": "0e3e0fc5c0f70f0d50dca66b139142ddf3009294" + "name": "v5.3.0", + "rev": "e4f70216d759d8e6a64144a9e1f7bbeed78e7079" } } } \ No newline at end of file diff --git a/foundry.toml b/foundry.toml index 8d1f108..be32d0a 100644 --- a/foundry.toml +++ b/foundry.toml @@ -1,15 +1,22 @@ [profile.default] src = 'src' solc = '0.8.24' -evm_version = 'paris' +evm_version = 'cancun' out = 'out' libs = ['lib'] test = 'test' cache_path = 'cache_forge' -remappings = [ - '@chainlink/contracts-ccip/=lib/chainlink-ccip/chains/evm/', - '@chainlink/contracts/=lib/chainlink-evm/contracts/', - '@chainlink/local/src/=src/', - '@openzeppelin/contracts@4.8.3/=src/vendor/openzeppelin-solidity/v4.8.3/contracts/', - '@openzeppelin/contracts@5.0.2/=src/vendor/openzeppelin-solidity/v5.0.2/contracts/', + +[profile.legacy] +test = 'test-legacy' +cache_path = 'cache_forge_legacy' + +[lint] +exclude_lints = [ + "mixed-case-variable", + "pascal-case-struct", + "mixed-case-function", + "screaming-snake-case-immutable", + "unwrapped-modifier-logic", + "asm-keccak256", ] diff --git a/hardhat.config.ts b/hardhat.config.ts index b9b4e65..a485414 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -1,23 +1,35 @@ +import { configVariable, defineConfig } from "hardhat/config"; +import hardhatEthers from "@nomicfoundation/hardhat-ethers"; import * as dotenv from "dotenv"; -import "solidity-docgen"; - -import { HardhatUserConfig } from "hardhat/config"; -import "@nomicfoundation/hardhat-toolbox"; -import "@nomicfoundation/hardhat-foundry"; dotenv.config(); -const config: HardhatUserConfig = { +// Forked networks used by the JavaScript fork helper tests (`npm run hardhat-test-js`). RPC URLs are only read from the +// environment when a network is connected to. +const fork = (chainId: number, rpcUrlVariable: string) => ({ + type: "edr-simulated" as const, + chainType: "generic" as const, + chainId, + forking: { url: configVariable(rpcUrlVariable) }, +}); + +export default defineConfig({ + plugins: [hardhatEthers], solidity: { compilers: [ { version: "0.8.24", settings: { - evmVersion: "paris" + evmVersion: "cancun" }, } ] }, + networks: { + sepoliaFork: fork(11155111, "ETHEREUM_SEPOLIA_RPC_URL"), + arbitrumSepoliaFork: fork(421614, "ARBITRUM_SEPOLIA_RPC_URL"), + fujiFork: fork(43113, "AVALANCHE_FUJI_RPC_URL"), + }, paths: { sources: "./src", }, @@ -27,6 +39,4 @@ const config: HardhatUserConfig = { exclude: ["test", "vendor"], outputDir: "api_reference/solidity", }, -}; - -export default config; +}); diff --git a/helper_doc/generate-index-files.mjs b/helper_doc/generate-index-files.mjs new file mode 100644 index 0000000..a6ee181 --- /dev/null +++ b/helper_doc/generate-index-files.mjs @@ -0,0 +1,42 @@ +import fs from "node:fs/promises"; +import path from "node:path"; + +const MDX_EXTENSION = ".mdx"; +const ROOT_DIR = path.join(process.cwd(), "api_reference"); + +async function generateIndexFile(dir, header) { + const dirents = await fs.readdir(dir, { withFileTypes: true }); + const mdxFiles = dirents + .filter((entry) => entry.isFile() && entry.name.endsWith(MDX_EXTENSION) && entry.name !== `index${MDX_EXTENSION}`) + .map((entry) => entry.name); + const subDirs = dirents.filter((entry) => entry.isDirectory()).map((entry) => entry.name); + + let content = `# ${header}\n\n`; + for (const entry of [...mdxFiles, ...subDirs]) { + const isMdx = entry.endsWith(MDX_EXTENSION); + const linkName = isMdx ? path.basename(entry, MDX_EXTENSION) : entry; + const linkPath = isMdx ? entry : `${entry}/index${MDX_EXTENSION}`; + content += `- [${linkName}](${linkPath})\n`; + } + + await fs.writeFile(path.join(dir, `index${MDX_EXTENSION}`), content, "utf8"); +} + +async function traverseDirectory(dir, header) { + await generateIndexFile(dir, header); + + const dirents = await fs.readdir(dir, { withFileTypes: true }); + const subDirs = dirents.filter((entry) => entry.isDirectory()).map((entry) => entry.name); + + for (const subDir of subDirs) { + const subHeader = `${subDir.charAt(0).toUpperCase() + subDir.slice(1)} API Reference`; + await traverseDirectory(path.join(dir, subDir), subHeader); + } +} + +traverseDirectory(ROOT_DIR, "API Reference") + .then(() => console.log("Index files generated successfully.")) + .catch((error) => { + console.error(error); + process.exit(1); + }); diff --git a/helper_doc/generate-index-files.ts b/helper_doc/generate-index-files.ts deleted file mode 100644 index eab92ff..0000000 --- a/helper_doc/generate-index-files.ts +++ /dev/null @@ -1,54 +0,0 @@ -import fs from "fs-extra"; -import path from "path"; - -const MDX_EXTENSION = ".mdx"; -const rootDir = path.join(process.cwd(), "api_reference"); - -const generateIndexFile = async (dir: string, header: string) => { - const files = await fs.readdir(dir); - const mdxFiles = files.filter( - (file) => file.endsWith(MDX_EXTENSION) && file !== `index${MDX_EXTENSION}` - ); - const subDirs = files.filter((file) => - fs.lstatSync(path.join(dir, file)).isDirectory() - ); - - let content = `# ${header}\n\n`; - - const allEntries = [...mdxFiles, ...subDirs]; - - if (allEntries.length > 0) { - allEntries.forEach((entry) => { - const fileNameWithoutExtension = path.basename(entry, MDX_EXTENSION); - const linkName = entry.endsWith(MDX_EXTENSION) - ? fileNameWithoutExtension - : entry; - const linkPath = entry.endsWith(MDX_EXTENSION) - ? entry - : `${entry}/index${MDX_EXTENSION}`; - content += `- [${linkName}](${linkPath})\n`; - }); - } - - await fs.writeFile(path.join(dir, `index${MDX_EXTENSION}`), content); -}; - -const traverseDirectory = async (dir: string, header: string) => { - await generateIndexFile(dir, header); - - const files = await fs.readdir(dir); - const subDirs = files.filter((file) => - fs.lstatSync(path.join(dir, file)).isDirectory() - ); - - for (const subDir of subDirs) { - await traverseDirectory( - path.join(dir, subDir), - `${subDir.charAt(0).toUpperCase() + subDir.slice(1)} API Reference` - ); - } -}; - -traverseDirectory(rootDir, "API Reference") - .then(() => console.log("Index files generated successfully.")) - .catch((err) => console.error(err)); diff --git a/helper_doc/generate-jsdoc.mjs b/helper_doc/generate-jsdoc.mjs new file mode 100644 index 0000000..0074e80 --- /dev/null +++ b/helper_doc/generate-jsdoc.mjs @@ -0,0 +1,37 @@ +import fs from "node:fs/promises"; +import path from "node:path"; +import jsdoc2md from "jsdoc-to-markdown"; + +const MDX_EXTENSION = ".mdx"; +const OUTPUT_DIR = path.join(process.cwd(), "api_reference", "javascript"); +const JS_FILES = [ + "scripts/CCIPLocalSimulatorFork.js", + "scripts/data-streams/DataStreamsLocalSimulatorFork.js", + "scripts/data-streams/MockReportGenerator.js", + "scripts/data-streams/ReportVersions.js", +]; + +async function ensureDir(dirPath) { + await fs.mkdir(dirPath, { recursive: true }); +} + +async function generateMarkdownDocs(files, outputDirectory) { + await fs.rm(outputDirectory, { recursive: true, force: true }); + await ensureDir(outputDirectory); + + for (const file of files) { + const absoluteFilePath = path.join(process.cwd(), file); + const fileName = path.basename(file, path.extname(file)); + const outputPath = path.join(outputDirectory, `${fileName}${MDX_EXTENSION}`); + const markdown = await jsdoc2md.render({ files: absoluteFilePath }); + const fixedMarkdown = markdown.replace(/<\{/g, "<\\{"); + await fs.writeFile(outputPath, fixedMarkdown, "utf8"); + } +} + +generateMarkdownDocs(JS_FILES, OUTPUT_DIR) + .then(() => console.log("Javascript API docs generated successfully.")) + .catch((error) => { + console.error(error); + process.exit(1); + }); diff --git a/helper_doc/generate-jsdoc.ts b/helper_doc/generate-jsdoc.ts deleted file mode 100644 index dee7414..0000000 --- a/helper_doc/generate-jsdoc.ts +++ /dev/null @@ -1,31 +0,0 @@ -import fs from 'fs-extra'; -import path from 'path'; -import jsdoc2md from 'jsdoc-to-markdown'; - -const MDX_EXTENSION = '.mdx'; -const outputDir = path.join(process.cwd(), 'api_reference/javascript'); - -const jsFiles = ['scripts/CCIPLocalSimulatorFork.js']; - -const generateMarkdownDocs = async ( - files: string[], - outputDirectory: string -) => { - await fs.ensureDir(outputDirectory); - - for (const file of files) { - const absoluteFilePath = path.join(process.cwd(), file); - const fileName = path.basename(file, path.extname(file)); - const outputPath = path.join( - outputDirectory, - `${fileName}${MDX_EXTENSION}` - ); - const markdown = await jsdoc2md.render({ files: absoluteFilePath }); - const fixedMarkdown = markdown.replace(/<\{/g, '<\\{'); - await fs.outputFile(outputPath, fixedMarkdown); - } -}; - -generateMarkdownDocs(jsFiles, outputDir) - .then(() => console.log('Markdown documentation generated successfully.')) - .catch(err => console.error(err)); diff --git a/helper_doc/generate-solidity-docs.mjs b/helper_doc/generate-solidity-docs.mjs new file mode 100644 index 0000000..5c27dbc --- /dev/null +++ b/helper_doc/generate-solidity-docs.mjs @@ -0,0 +1,132 @@ +import fs from "node:fs/promises"; +import path from "node:path"; +import { spawnSync } from "node:child_process"; + +const ROOT = process.cwd(); +const FORGE_DOC_TMP_DIR = path.join(ROOT, "cache_forge", "forge-docs-tmp"); +const SOURCE_DOC_DIR = path.join(FORGE_DOC_TMP_DIR, "src", "src"); +const API_REFERENCE_DIR = path.join(ROOT, "api_reference"); +const OUTPUT_DIR = path.join(API_REFERENCE_DIR, "solidity"); +const OUTPUT_TMP_DIR = path.join(API_REFERENCE_DIR, "solidity.tmp"); + +const EXCLUDED_PATH_SEGMENTS = new Set(["test", "vendor", "lib", "script", "scripts"]); +const DEF_DOC_RE = /^(contract|interface|library|abstract)\.(.+)\.md$/; + +// `forge doc` changed its output layout and page format after 1.5 (1.8 writes `src/pages/src/**/*.mdx`), and this +// script's post-processing only matches the 1.5 format, so the API reference must be generated with forge 1.5.x. +function assertSupportedForge() { + const result = spawnSync("forge", ["--version"], { cwd: ROOT, encoding: "utf8" }); + const match = /forge Version: (\d+)\.(\d+)\./.exec(result.stdout ?? ""); + if (!match) return; + const [major, minor] = [Number(match[1]), Number(match[2])]; + if (major !== 1 || minor > 5) { + throw new Error( + `generate-docs needs forge 1.5.x for \`forge doc\` (found ${match[1]}.${match[2]}). ` + + "Install it with `foundryup --install 1.5.1` (or put a 1.5.x forge first on PATH) and run it again." + ); + } +} + +function runForgeDoc() { + assertSupportedForge(); + const result = spawnSync("forge", ["doc", "-o", FORGE_DOC_TMP_DIR], { + cwd: ROOT, + stdio: "inherit", + }); + + if (result.status !== 0) { + throw new Error("forge doc failed"); + } +} + +async function pathExists(filePath) { + try { + await fs.access(filePath); + return true; + } catch { + return false; + } +} + +async function walk(dir) { + const entries = await fs.readdir(dir, { withFileTypes: true }); + const files = await Promise.all( + entries.map((entry) => { + const entryPath = path.join(dir, entry.name); + return entry.isDirectory() ? walk(entryPath) : [entryPath]; + }) + ); + return files.flat(); +} + +function shouldExclude(relativePath) { + return relativePath.split(path.sep).some((segment) => EXCLUDED_PATH_SEGMENTS.has(segment)); +} + +function normalizeForMdx(content) { + let normalized = content.replace(/^\[Git Source\]\([^)]+\)\n\n?/m, ""); + + const headingMatch = normalized.match(/^#\s+(.+)\n/); + if (headingMatch) { + normalized = normalized.replace(/^#\s+(.+)\n/, "# Solidity API\n\n## $1\n"); + } + + return normalized; +} + +async function generateMdxFiles() { + if (!(await pathExists(SOURCE_DOC_DIR))) { + throw new Error(`Forge doc output directory not found: ${SOURCE_DOC_DIR}`); + } + + await fs.rm(OUTPUT_TMP_DIR, { recursive: true, force: true }); + await fs.mkdir(OUTPUT_TMP_DIR, { recursive: true }); + + const files = await walk(SOURCE_DOC_DIR); + let generated = 0; + + for (const filePath of files) { + if (!filePath.endsWith(".md")) continue; + + const relativePath = path.relative(SOURCE_DOC_DIR, filePath); + if (shouldExclude(relativePath)) continue; + + const baseName = path.basename(filePath); + const match = baseName.match(DEF_DOC_RE); + if (!match) continue; + + const symbolName = match[2]; + const relDir = path.dirname(relativePath); + const withoutSourceFileDir = relDir.split(path.sep).slice(0, -1).join(path.sep); + + const targetDir = path.join(OUTPUT_TMP_DIR, withoutSourceFileDir); + const targetFilePath = path.join(targetDir, `${symbolName}.mdx`); + + const content = await fs.readFile(filePath, "utf8"); + const mdxContent = normalizeForMdx(content); + + await fs.mkdir(targetDir, { recursive: true }); + await fs.writeFile(targetFilePath, mdxContent, "utf8"); + generated += 1; + } + + if (generated === 0) { + throw new Error("No Solidity docs were generated from forge doc output."); + } + + await fs.rm(OUTPUT_DIR, { recursive: true, force: true }); + await fs.rename(OUTPUT_TMP_DIR, OUTPUT_DIR); + + console.log(`Generated ${generated} Solidity API files in ${OUTPUT_DIR}`); +} + +async function main() { + await fs.rm(FORGE_DOC_TMP_DIR, { recursive: true, force: true }); + runForgeDoc(); + await generateMdxFiles(); +} + +main().catch((error) => { + console.error(error.message); + process.exit(1); +}); diff --git a/helper_doc/updateRegisterContract.cjs b/helper_doc/updateRegisterContract.cjs new file mode 100644 index 0000000..438bb40 --- /dev/null +++ b/helper_doc/updateRegisterContract.cjs @@ -0,0 +1,249 @@ +/** + * @fileoverview Script to fetch and generate Register.sol with CCIP network details from Chainlink's API. + * + * This script queries Chainlink's CCIP API endpoints to retrieve network configuration + * details for all supported EVM chains. It fetches chain information (routers, selectors, + * fee tokens) and token information (CCIP-BnM and CCIP-LnM addresses) for both testnet + * and mainnet environments, then generates Register.sol with the network details hardcoded + * in a pure lookup function (`_defaultNetworkDetails`). + * + * The data lives in code rather than in constructor-initialised storage: writing ~150 chains to + * storage cost ~24M gas, which made `new CCIPLocalSimulatorFork()` exceed the block gas limit of + * 30M-gas forks. The simulator places Register with `vm.etch`, so the code size costs no gas. + * + * Usage: + * CCIP_API_BASE_URL= npm run update-register + * CCIP_API_BASE_URL= node helper_doc/updateRegisterContract.cjs + * + * Requires: CCIP_API_BASE_URL environment variable (base URL for the CCIP API; paths are appended in code), e.g. + * https://docs.chain.link/api/ccip/v1 (the CCIP directory API; https://api.ccip.chain.link/v2 has no routers or fee tokens). + * + */ + +const fs = require("fs"); +const path = require("path"); + +/** + * Normalized base URL (no trailing slash) for building API requests. + * @returns {string} Base URL from the CCIP_API_BASE_URL environment variable + */ +function getApiBase() { + const base = process.env.CCIP_API_BASE_URL; + if (!base || base.trim() === "") { + console.error("Error: CCIP_API_BASE_URL environment variable is required and must be set."); + process.exit(1); + } + return base.trim().replace(/\/$/, ""); +} + +/** + * Builds the full API URL for a given path and query parameters. + * @param {string} path - Path segment (e.g. "chains", "tokens") + * @param {Record} params - Query parameters + * @returns {string} Full URL + */ +function apiUrl(path, params) { + const url = new URL(`${getApiBase()}/${path}`); + Object.entries(params).forEach(([k, v]) => url.searchParams.set(k, v)); + return url.toString(); +} + +/** Marker lines delimiting the generated lookup function in Register.sol. */ +const GENERATED_BEGIN = " // Generated by helper_doc/updateRegisterContract.cjs. Do not edit by hand."; +const GENERATED_END = " // "; + +/** + * Generates the network details lookup of Register.sol. + * The details are returned by a pure function, so they live in code and cost no gas to "deploy" when the + * contract is placed with `vm.etch`, and are compatible with Hardhat and Remix (no Foundry cheatcodes or JSON reading). + * + * @param {string} outputPath - Path to output Register.sol. Defaults to src/ccip/Register.sol + * @param {Object} networkDetails - Network details object to generate from. + */ +function generateRegister(outputPath, networkDetails) { + // Default output path + const defaultOutputPath = path.join(__dirname, "../src/ccip/Register.sol"); + const outputFilePath = outputPath || defaultOutputPath; + + // Sort chain IDs for consistent output + const chainIds = Object.keys(networkDetails).sort((a, b) => Number(a) - Number(b)); + + const address = (value) => (value === "" ? "address(0)" : `address(${value})`); + + let body = ""; + body += " /// @notice Built-in network details for `chainId`, or an all-zero struct for an unknown chain.\n"; + body += " function _defaultNetworkDetails(uint256 chainId) internal pure returns (NetworkDetails memory) {\n"; + for (const chainId of chainIds) { + const details = networkDetails[chainId]; + const name = details.name || `Chain ${chainId}`; + + body += ` // ${name}\n`; + body += ` if (chainId == ${chainId}) {\n`; + body += ` return NetworkDetails({\n`; + body += ` chainSelector: ${details.chainSelector},\n`; + body += ` routerAddress: ${address(details.routerAddress)},\n`; + body += ` linkAddress: ${address(details.linkAddress)},\n`; + body += ` wrappedNativeAddress: ${address(details.wrappedNativeAddress)},\n`; + body += ` ccipBnMAddress: ${address(details.ccipBnMAddress)},\n`; + body += ` ccipLnMAddress: ${address(details.ccipLnMAddress)},\n`; + body += ` rmnProxyAddress: ${address(details.rmnProxyAddress)},\n`; + body += ` registryModuleOwnerCustomAddress: ${address(details.registryModuleOwnerCustomAddress)},\n`; + body += ` tokenAdminRegistryAddress: ${address(details.tokenAdminRegistryAddress)}\n`; + body += ` });\n`; + body += ` }\n`; + } + body += " NetworkDetails memory unknown;\n"; + body += " return unknown;\n"; + body += " }\n"; + + // Read the Register.sol file and replace the generated region between the markers + const registerPath = path.join(__dirname, "../src/ccip/Register.sol"); + const registerCode = fs.readFileSync(registerPath, "utf8"); + const begin = registerCode.indexOf(GENERATED_BEGIN); + const end = registerCode.indexOf(GENERATED_END); + if (begin === -1 || end === -1 || end < begin) { + throw new Error(`Could not find the generated region in Register.sol (expected the lines:\n${GENERATED_BEGIN}\n${GENERATED_END})`); + } + const generated = registerCode.slice(0, begin) + GENERATED_BEGIN + "\n" + body + registerCode.slice(end); + + // Write the generated file + console.log(`Writing generated Register.sol to: ${outputFilePath}`); + fs.writeFileSync(outputFilePath, generated, "utf8"); + + console.log(` Successfully generated Register.sol with ${chainIds.length} networks`); + console.log(` Output: ${outputFilePath}`); +} + +/** + * Picks the wrapped native token from a chain's fee tokens. The API does not mark it, and lists fee tokens in no fixed + * order (e.g. GHO before WETH), so the first non-LINK fee token is not reliable. + * Rule: the only W-prefixed fee token; if there are several, the only one that is not WETH (a bridged WETH next to + * the chain's own wrapped native token, e.g. WMON on Monad Testnet). + * + * @param {Array<{symbol: string, address: string}>} feeTokens - The chain's fee tokens + * @returns {?{symbol: string, address: string}} The wrapped native token, or null when missing or ambiguous + */ +function selectWrappedNativeToken(feeTokens) { + const wrapped = (feeTokens || []).filter((token) => token.symbol.startsWith("W")); + if (wrapped.length === 1) return wrapped[0]; + const notWETH = wrapped.filter((token) => token.symbol !== "WETH"); + return notWETH.length === 1 ? notWETH[0] : null; +} + +/** + * Fetches CCIP network details for a single environment from Chainlink's API. + * + * @param {string} environment - The environment to fetch data for ("testnet" or "mainnet") + * @returns {Promise} Network details object keyed by chain ID + */ +async function fetchNetworkDetails(environment) { + const queryBase = { environment, outputKey: "chainId" }; + + // Call Endpoint #1: chains + const chainsRes = await fetch(apiUrl("chains", { ...queryBase, enrichFeeTokens: "true" }), { + headers: { Accept: "application/json" } + }); + if (!chainsRes.ok) { + const body = await chainsRes.text(); + throw new Error(`Chains API HTTP ${chainsRes.status} ${chainsRes.statusText} for ${environment}\n${body}`); + } + const chainsData = await chainsRes.json(); + + // Call Endpoint #2: tokens + const tokensRes = await fetch(apiUrl("tokens", queryBase), { + headers: { Accept: "application/json" } + }); + if (!tokensRes.ok) { + const body = await tokensRes.text(); + throw new Error(`Tokens API HTTP ${tokensRes.status} ${tokensRes.statusText} for ${environment}\n${body}`); + } + const tokensData = await tokensRes.json(); + + // Process the data + const networkDetails = {}; + const evmChains = chainsData.data.evm || {}; + const ccipBnM = tokensData.data["CCIP-BnM"] || {}; + const ccipLnM = tokensData.data["CCIP-LnM"] || {}; + + // Iterate through all EVM chains + for (const [chainId, chainInfo] of Object.entries(evmChains)) { + // Find LINK token and wrapped native token from feeTokens + const linkToken = chainInfo.feeTokens?.find(token => token.symbol === "LINK"); + const hasOtherFeeToken = chainInfo.feeTokens?.some(token => token.symbol !== "LINK"); + const wrappedNativeToken = selectWrappedNativeToken(chainInfo.feeTokens); + + // Get CCIP token addresses from tokens endpoint + const bnMInfo = ccipBnM[chainId]; + const lnMInfo = ccipLnM[chainId]; + + // Only include chains that have all required data + if (linkToken && hasOtherFeeToken && chainInfo.router && chainInfo.rmn && + chainInfo.registryModule && chainInfo.tokenAdminRegistry) { + if (!wrappedNativeToken) { + const symbols = chainInfo.feeTokens.map(token => token.symbol).join(", "); + console.warn(` Warning: ${chainInfo.displayName} (${chainId}): no unambiguous wrapped native fee token (${symbols}), using address(0)`); + } + networkDetails[chainId] = { + name: chainInfo.displayName, + chainSelector: chainInfo.selector, + routerAddress: chainInfo.router, + linkAddress: linkToken.address, + wrappedNativeAddress: wrappedNativeToken?.address || "", + ccipBnMAddress: bnMInfo?.tokenAddress || "", + ccipLnMAddress: lnMInfo?.tokenAddress || "", + rmnProxyAddress: chainInfo.rmn, + registryModuleOwnerCustomAddress: chainInfo.registryModule, + tokenAdminRegistryAddress: chainInfo.tokenAdminRegistry + }; + } + } + + return networkDetails; +} + +/** + * Fetches CCIP network details from Chainlink's API and generates Register.sol with hardcoded values. + * Always fetches both testnet and mainnet network details. + */ +async function fetchAndGenerate() { + try { + let networkDetails = {}; + const environments = ["testnet", "mainnet"]; + + // Fetch data for both environments in parallel + console.log(`Fetching network details for: ${environments.join(", ")}...`); + const fetchPromises = environments.map(env => fetchNetworkDetails(env)); + const results = await Promise.all(fetchPromises); + + // Merge network details from both environments + // If there are duplicate chain IDs, mainnet takes precedence + for (let i = 0; i < environments.length; i++) { + const env = environments[i]; + const details = results[i]; + const envCount = Object.keys(details).length; + console.log(` ${env}: ${envCount} networks`); + + // Merge details, with later environments (mainnet) taking precedence + for (const [chainId, chainDetails] of Object.entries(details)) { + networkDetails[chainId] = chainDetails; + } + } + + // Generate Register.sol directly from API data + const totalNetworks = Object.keys(networkDetails).length; + console.log(`\nGenerating Register.sol with ${totalNetworks} total networks...`); + generateRegister(null, networkDetails); + + console.log("\n Register.sol generated successfully!"); + } catch (err) { + console.error("Error:", err.message); + process.exit(1); + } +} + +if (require.main === module) { + require("dotenv").config(); + fetchAndGenerate(); +} + +module.exports = { generateRegister, selectWrappedNativeToken, fetchAndGenerate }; diff --git a/lib/chainlink-ace b/lib/chainlink-ace new file mode 160000 index 0000000..288c393 --- /dev/null +++ b/lib/chainlink-ace @@ -0,0 +1 @@ +Subproject commit 288c393af4da077b49e5138ac47965aed9ca4b3a diff --git a/lib/chainlink-ccip b/lib/chainlink-ccip index 0e3e0fc..c2c125c 160000 --- a/lib/chainlink-ccip +++ b/lib/chainlink-ccip @@ -1 +1 @@ -Subproject commit 0e3e0fc5c0f70f0d50dca66b139142ddf3009294 +Subproject commit c2c125c27f056db2e98d21501922b6eff5750f36 diff --git a/lib/openzeppelin-contracts-4.8.3 b/lib/openzeppelin-contracts-4.8.3 new file mode 160000 index 0000000..0a25c19 --- /dev/null +++ b/lib/openzeppelin-contracts-4.8.3 @@ -0,0 +1 @@ +Subproject commit 0a25c1940ca220686588c4af3ec526f725fe2582 diff --git a/lib/openzeppelin-contracts-5.3.0 b/lib/openzeppelin-contracts-5.3.0 new file mode 160000 index 0000000..e4f7021 --- /dev/null +++ b/lib/openzeppelin-contracts-5.3.0 @@ -0,0 +1 @@ +Subproject commit e4f70216d759d8e6a64144a9e1f7bbeed78e7079 diff --git a/package-lock.json b/package-lock.json index c656508..21759bb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,38 +1,55 @@ { "name": "@chainlink/local", - "version": "0.2.10-beta", + "version": "0.3.0-beta", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@chainlink/local", - "version": "0.2.10-beta", + "version": "0.3.0-beta", "license": "MIT", "dependencies": { "@chainlink/contracts": "1.5.0", - "@chainlink/contracts-ccip": "1.6.2" + "@chainlink/contracts-ccip": "2.0.0", + "@openzeppelin/contracts-4.8.3": "npm:@openzeppelin/contracts@4.8.3", + "@openzeppelin/contracts-5.3.0": "npm:@openzeppelin/contracts@5.3.0", + "forge-std": "github:foundry-rs/forge-std#v1.9.4" }, "devDependencies": { - "@nomicfoundation/hardhat-foundry": "^1.1.1", - "@nomicfoundation/hardhat-toolbox": "^4.0.0", - "@types/fs-extra": "^11.0.4", - "@types/jsdoc-to-markdown": "^7.0.6", + "@chainlink/ace": "^1.0.0", + "@nomicfoundation/hardhat-ethers": "4.0.5", "dotenv": "^16.4.5", - "fs-extra": "^11.2.0", - "hardhat": "^2.20.1", + "ethers": "6.17.0", + "hardhat": "^3.1.10", "jsdoc-to-markdown": "^8.0.1", - "prettier": "^3.3.3", - "rimraf": "^6.0.1", - "solidity-docgen": "^0.6.0-beta.36" + "prettier": "^3.3.3" + }, + "engines": { + "node": ">=22" + }, + "peerDependencies": { + "@nomicfoundation/hardhat-ethers": "^4.0.5", + "ethers": "^6.17.0", + "hardhat": "^3.1.10" + }, + "peerDependenciesMeta": { + "@nomicfoundation/hardhat-ethers": { + "optional": true + }, + "ethers": { + "optional": true + }, + "hardhat": { + "optional": true + } } }, "node_modules/@adraffy/ens-normalize": { - "version": "1.10.1", - "resolved": "https://registry.npmjs.org/@adraffy/ens-normalize/-/ens-normalize-1.10.1.tgz", - "integrity": "sha512-96Z2IP3mYmF1Xg2cDm8f1gWGf/HUVedQ3FMifV4kG/PQ4yEP51xDtRAEfhVNt5f/uzpNkZHwWQuUcu6D6K+Ekw==", + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@adraffy/ens-normalize/-/ens-normalize-1.11.1.tgz", + "integrity": "sha512-nhCBV3quEgesuf7c7KYfperqSS14T8bYuvJ8PcLJp6znkZpFc0AuW4qBtr8eKVyPPe/8RSr7sglCWPU5eaxwKQ==", "dev": true, - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/@arbitrum/nitro-contracts": { "version": "3.0.0", @@ -79,6 +96,12 @@ "node": ">=6.9.0" } }, + "node_modules/@chainlink/ace": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@chainlink/ace/-/ace-1.0.0.tgz", + "integrity": "sha512-lamF+fabw5cyIQ+7PA5QkEl0GyHmmH3lc875jrspo9VxsxiKbMxDcRDGPEuubFQS3Zcx7H/Z80C72+Xm/FgeqA==", + "license": "BUSL-1.1" + }, "node_modules/@chainlink/contracts": { "version": "1.5.0", "resolved": "https://registry.npmjs.org/@chainlink/contracts/-/contracts-1.5.0.tgz", @@ -106,35 +129,21 @@ } }, "node_modules/@chainlink/contracts-ccip": { - "version": "1.6.2", - "resolved": "https://registry.npmjs.org/@chainlink/contracts-ccip/-/contracts-ccip-1.6.2.tgz", - "integrity": "sha512-dHAOxhpTo9Dp1S5wFeSEN3hV9t2gy7iCXNdnZxmskD+gRVb7qGpTqoXPXXu8qEf2zVmRsrs/nSbrTU/UpqfHQg==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@chainlink/contracts-ccip/-/contracts-ccip-2.0.0.tgz", + "integrity": "sha512-P0KvQtZSYC1LevMSS16jOOSsqZG4g0n/MJdcWGmE0Z5U01NVYd1MnTQJOBPsbu1NWR79DBXPXLvyr9tR5y+tiw==", "license": "BUSL-1.1", "dependencies": { + "@chainlink/ace": "1.0.0", "@chainlink/contracts": "1.5.0", - "@changesets/cli": "^2.29.5", - "@changesets/get-github-info": "^0.6.0", "@openzeppelin/contracts-4.8.3": "npm:@openzeppelin/contracts@4.8.3", - "@openzeppelin/contracts-5.0.2": "npm:@openzeppelin/contracts@5.0.2", - "semver": "^7.7.2" + "@openzeppelin/contracts-5.3.0": "npm:@openzeppelin/contracts@5.3.0" }, "engines": { "node": ">=20", "pnpm": ">=10" } }, - "node_modules/@chainlink/contracts-ccip/node_modules/semver": { - "version": "7.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", - "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/@chainlink/contracts/node_modules/@eth-optimism/contracts": { "version": "0.6.0", "resolved": "https://registry.npmjs.org/@eth-optimism/contracts/-/contracts-0.6.0.tgz", @@ -196,18 +205,6 @@ "@ethersproject/wordlists": "5.7.0" } }, - "node_modules/@chainlink/contracts/node_modules/semver": { - "version": "7.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", - "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/@changesets/apply-release-plan": { "version": "7.0.13", "resolved": "https://registry.npmjs.org/@changesets/apply-release-plan/-/apply-release-plan-7.0.13.tgz", @@ -276,18 +273,6 @@ "node": ">=8" } }, - "node_modules/@changesets/apply-release-plan/node_modules/semver": { - "version": "7.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", - "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/@changesets/apply-release-plan/node_modules/universalify": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", @@ -311,18 +296,6 @@ "semver": "^7.5.3" } }, - "node_modules/@changesets/assemble-release-plan/node_modules/semver": { - "version": "7.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", - "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/@changesets/changelog-git": { "version": "0.2.1", "resolved": "https://registry.npmjs.org/@changesets/changelog-git/-/changelog-git-0.2.1.tgz", @@ -442,18 +415,6 @@ "node": ">=8" } }, - "node_modules/@changesets/cli/node_modules/semver": { - "version": "7.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", - "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/@changesets/cli/node_modules/universalify": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", @@ -531,18 +492,6 @@ "semver": "^7.5.3" } }, - "node_modules/@changesets/get-dependents-graph/node_modules/semver": { - "version": "7.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", - "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/@changesets/get-github-info": { "version": "0.6.0", "resolved": "https://registry.npmjs.org/@changesets/get-github-info/-/get-github-info-0.6.0.tgz", @@ -805,397 +754,520 @@ "node": ">= 4.0.0" } }, - "node_modules/@cspotcode/source-map-support": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", - "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", + "node_modules/@esbuild/aix-ppc64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.3.tgz", + "integrity": "sha512-9fJMTNFTWZMh5qwrBItuziu834eOCUcEqymSH7pY+zoMVEZg3gcPuBNxH1EvfVYe9h0x/Ptw8KBzv7qxb7l8dg==", + "cpu": [ + "ppc64" + ], "dev": true, - "peer": true, - "dependencies": { - "@jridgewell/trace-mapping": "0.3.9" - }, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], "engines": { - "node": ">=12" + "node": ">=18" } }, - "node_modules/@eslint/eslintrc": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.1.tgz", - "integrity": "sha512-gtF186CXhIl1p4pJNGZw8Yc6RlshoePRvE0X91oPGb3vZ8pM3qOS9W9NGPat9LziaBV7XrJWGylNQXkGcnM3IQ==", + "node_modules/@esbuild/android-arm": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.3.tgz", + "integrity": "sha512-i5D1hPY7GIQmXlXhs2w8AWHhenb00+GxjxRncS2ZM7YNVGNfaMxgzSGuO8o8SJzRc/oZwU2bcScvVERk03QhzA==", + "cpu": [ + "arm" + ], + "dev": true, "license": "MIT", - "dependencies": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^10.0.1", - "globals": "^14.0.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" - }, + "optional": true, + "os": [ + "android" + ], "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" + "node": ">=18" } }, - "node_modules/@eslint/eslintrc/node_modules/ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "node_modules/@esbuild/android-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.27.3.tgz", + "integrity": "sha512-YdghPYUmj/FX2SYKJ0OZxf+iaKgMsKHVPF1MAq/P8WirnSpCStzKJFjOjzsW0QQ7oIAiccHdcqjbHmJxRb/dmg==", + "cpu": [ + "arm64" + ], + "dev": true, "license": "MIT", - "dependencies": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" } }, - "node_modules/@eslint/eslintrc/node_modules/json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "license": "MIT" - }, - "node_modules/@eth-optimism/core-utils": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/@eth-optimism/core-utils/-/core-utils-0.12.0.tgz", - "integrity": "sha512-qW+7LZYCz7i8dRa7SRlUKIo1VBU8lvN0HeXCxJR+z+xtMzMQpPds20XJNCMclszxYQHkXY00fOT6GvFw9ZL6nw==", - "dependencies": { - "@ethersproject/abi": "^5.7.0", - "@ethersproject/abstract-provider": "^5.7.0", - "@ethersproject/address": "^5.7.0", - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/constants": "^5.7.0", - "@ethersproject/contracts": "^5.7.0", - "@ethersproject/hash": "^5.7.0", - "@ethersproject/keccak256": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "@ethersproject/providers": "^5.7.0", - "@ethersproject/rlp": "^5.7.0", - "@ethersproject/transactions": "^5.7.0", - "@ethersproject/web": "^5.7.0", - "bufio": "^1.0.7", - "chai": "^4.3.4" + "node_modules/@esbuild/android-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.27.3.tgz", + "integrity": "sha512-IN/0BNTkHtk8lkOM8JWAYFg4ORxBkZQf9zXiEOfERX/CzxW3Vg1ewAhU7QSWQpVIzTW+b8Xy+lGzdYXV6UZObQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" } }, - "node_modules/@ethereumjs/rlp": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/@ethereumjs/rlp/-/rlp-5.0.2.tgz", - "integrity": "sha512-DziebCdg4JpGlEqEdGgXmjqcFoJi+JGulUXwEjsZGAscAQ7MyD/7LE/GVCP29vEQxKc7AAwjT3A2ywHp2xfoCA==", + "node_modules/@esbuild/darwin-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.3.tgz", + "integrity": "sha512-Re491k7ByTVRy0t3EKWajdLIr0gz2kKKfzafkth4Q8A5n1xTHrkqZgLLjFEHVD+AXdUGgQMq+Godfq45mGpCKg==", + "cpu": [ + "arm64" + ], "dev": true, - "license": "MPL-2.0", - "bin": { - "rlp": "bin/rlp.cjs" - }, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], "engines": { "node": ">=18" } }, - "node_modules/@ethereumjs/util": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/@ethereumjs/util/-/util-9.1.0.tgz", - "integrity": "sha512-XBEKsYqLGXLah9PNJbgdkigthkG7TAGvlD/sH12beMXEyHDyigfcbdvHhmLyDWgDyOJn4QwiQUaF7yeuhnjdog==", + "node_modules/@esbuild/darwin-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.27.3.tgz", + "integrity": "sha512-vHk/hA7/1AckjGzRqi6wbo+jaShzRowYip6rt6q7VYEDX4LEy1pZfDpdxCBnGtl+A5zq8iXDcyuxwtv3hNtHFg==", + "cpu": [ + "x64" + ], "dev": true, - "license": "MPL-2.0", - "dependencies": { - "@ethereumjs/rlp": "^5.0.2", - "ethereum-cryptography": "^2.2.1" - }, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], "engines": { "node": ">=18" } }, - "node_modules/@ethereumjs/util/node_modules/@noble/curves": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.4.2.tgz", - "integrity": "sha512-TavHr8qycMChk8UwMld0ZDRvatedkzWfH8IiaeGCfymOP5i0hSCozz9vHOL0nkwk7HRMlFnAiKpS2jrUmSybcw==", + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.3.tgz", + "integrity": "sha512-ipTYM2fjt3kQAYOvo6vcxJx3nBYAzPjgTCk7QEgZG8AUO3ydUhvelmhrbOheMnGOlaSFUoHXB6un+A7q4ygY9w==", + "cpu": [ + "arm64" + ], "dev": true, "license": "MIT", - "dependencies": { - "@noble/hashes": "1.4.0" - }, - "funding": { - "url": "https://paulmillr.com/funding/" + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" } }, - "node_modules/@ethereumjs/util/node_modules/@noble/hashes": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.4.0.tgz", - "integrity": "sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==", + "node_modules/@esbuild/freebsd-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.27.3.tgz", + "integrity": "sha512-dDk0X87T7mI6U3K9VjWtHOXqwAMJBNN2r7bejDsc+j03SEjtD9HrOl8gVFByeM0aJksoUuUVU9TBaZa2rgj0oA==", + "cpu": [ + "x64" + ], "dev": true, "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], "engines": { - "node": ">= 16" - }, - "funding": { - "url": "https://paulmillr.com/funding/" + "node": ">=18" } }, - "node_modules/@ethereumjs/util/node_modules/ethereum-cryptography": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-2.2.1.tgz", - "integrity": "sha512-r/W8lkHSiTLxUxW8Rf3u4HGB0xQweG2RyETjywylKZSzLWoWAijRz8WCuOtJ6wah+avllXBqZuk29HCCvhEIRg==", + "node_modules/@esbuild/linux-arm": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.27.3.tgz", + "integrity": "sha512-s6nPv2QkSupJwLYyfS+gwdirm0ukyTFNl3KTgZEAiJDd+iHZcbTPPcWCcRYH+WlNbwChgH2QkE9NSlNrMT8Gfw==", + "cpu": [ + "arm" + ], "dev": true, "license": "MIT", - "dependencies": { - "@noble/curves": "1.4.2", - "@noble/hashes": "1.4.0", - "@scure/bip32": "1.4.0", - "@scure/bip39": "1.3.0" + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" } }, - "node_modules/@ethersproject/abi": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/abi/-/abi-5.7.0.tgz", - "integrity": "sha512-351ktp42TiRcYB3H1OP8yajPeAQstMW/yCFokj/AthP9bLHzQFPlOrxOcwYEDkUAICmOHljvN4K39OMTMUa9RA==", - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } + "node_modules/@esbuild/linux-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.27.3.tgz", + "integrity": "sha512-sZOuFz/xWnZ4KH3YfFrKCf1WyPZHakVzTiqji3WDc0BCl2kBwiJLCXpzLzUBLgmp4veFZdvN5ChW4Eq/8Fc2Fg==", + "cpu": [ + "arm64" ], - "dependencies": { - "@ethersproject/address": "^5.7.0", - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/constants": "^5.7.0", - "@ethersproject/hash": "^5.7.0", - "@ethersproject/keccak256": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "@ethersproject/strings": "^5.7.0" - } - }, - "node_modules/@ethersproject/abstract-provider": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/abstract-provider/-/abstract-provider-5.7.0.tgz", - "integrity": "sha512-R41c9UkchKCpAqStMYUpdunjo3pkEvZC3FAwZn5S5MGbXoMQOHIdHItezTETxAO5bevtMApSyEhn9+CHcDsWBw==", - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" ], - "dependencies": { - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/networks": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "@ethersproject/transactions": "^5.7.0", - "@ethersproject/web": "^5.7.0" + "engines": { + "node": ">=18" } }, - "node_modules/@ethersproject/abstract-signer": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/abstract-signer/-/abstract-signer-5.7.0.tgz", - "integrity": "sha512-a16V8bq1/Cz+TGCkE2OPMTOUDLS3grCpdjoJCYNnVBbdYEMSgKrU0+B90s8b6H+ByYTBZN7a3g76jdIJi7UfKQ==", - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } + "node_modules/@esbuild/linux-ia32": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.27.3.tgz", + "integrity": "sha512-yGlQYjdxtLdh0a3jHjuwOrxQjOZYD/C9PfdbgJJF3TIZWnm/tMd/RcNiLngiu4iwcBAOezdnSLAwQDPqTmtTYg==", + "cpu": [ + "ia32" ], - "dependencies": { - "@ethersproject/abstract-provider": "^5.7.0", - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/properties": "^5.7.0" + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" } }, - "node_modules/@ethersproject/address": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/address/-/address-5.7.0.tgz", - "integrity": "sha512-9wYhYt7aghVGo758POM5nqcOMaE168Q6aRLJZwUmiqSrAungkG74gSSeKEIR7ukixesdRZGPgVqme6vmxs1fkA==", - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } + "node_modules/@esbuild/linux-loong64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.27.3.tgz", + "integrity": "sha512-WO60Sn8ly3gtzhyjATDgieJNet/KqsDlX5nRC5Y3oTFcS1l0KWba+SEa9Ja1GfDqSF1z6hif/SkpQJbL63cgOA==", + "cpu": [ + "loong64" ], - "dependencies": { - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/keccak256": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/rlp": "^5.7.0" + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" } }, - "node_modules/@ethersproject/base64": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/base64/-/base64-5.7.0.tgz", - "integrity": "sha512-Dr8tcHt2mEbsZr/mwTPIQAf3Ai0Bks/7gTw9dSqk1mQvhW3XvRlmDJr/4n+wg1JmCl16NZue17CDh8xb/vZ0sQ==", - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } + "node_modules/@esbuild/linux-mips64el": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.27.3.tgz", + "integrity": "sha512-APsymYA6sGcZ4pD6k+UxbDjOFSvPWyZhjaiPyl/f79xKxwTnrn5QUnXR5prvetuaSMsb4jgeHewIDCIWljrSxw==", + "cpu": [ + "mips64el" ], - "dependencies": { - "@ethersproject/bytes": "^5.7.0" + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" } }, - "node_modules/@ethersproject/basex": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/basex/-/basex-5.7.0.tgz", - "integrity": "sha512-ywlh43GwZLv2Voc2gQVTKBoVQ1mti3d8HK5aMxsfu/nRDnMmNqaSJ3r3n85HBByT8OpoY96SXM1FogC533T4zw==", - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } + "node_modules/@esbuild/linux-ppc64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.27.3.tgz", + "integrity": "sha512-eizBnTeBefojtDb9nSh4vvVQ3V9Qf9Df01PfawPcRzJH4gFSgrObw+LveUyDoKU3kxi5+9RJTCWlj4FjYXVPEA==", + "cpu": [ + "ppc64" ], - "dependencies": { - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/properties": "^5.7.0" + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" } }, - "node_modules/@ethersproject/bignumber": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/bignumber/-/bignumber-5.7.0.tgz", - "integrity": "sha512-n1CAdIHRWjSucQO3MC1zPSVgV/6dy/fjL9pMrPP9peL+QxEg9wOsVqwD4+818B6LUEtaXzVHQiuivzRoxPxUGw==", - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } + "node_modules/@esbuild/linux-riscv64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.27.3.tgz", + "integrity": "sha512-3Emwh0r5wmfm3ssTWRQSyVhbOHvqegUDRd0WhmXKX2mkHJe1SFCMJhagUleMq+Uci34wLSipf8Lagt4LlpRFWQ==", + "cpu": [ + "riscv64" ], - "dependencies": { - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "bn.js": "^5.2.1" + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" } }, - "node_modules/@ethersproject/bytes": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/bytes/-/bytes-5.7.0.tgz", - "integrity": "sha512-nsbxwgFXWh9NyYWo+U8atvmMsSdKJprTcICAkvbBffT75qDocbuggBU0SJiVK2MuTrp0q+xvLkTnGMPK1+uA9A==", - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } + "node_modules/@esbuild/linux-s390x": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.27.3.tgz", + "integrity": "sha512-pBHUx9LzXWBc7MFIEEL0yD/ZVtNgLytvx60gES28GcWMqil8ElCYR4kvbV2BDqsHOvVDRrOxGySBM9Fcv744hw==", + "cpu": [ + "s390x" ], - "dependencies": { - "@ethersproject/logger": "^5.7.0" + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" } }, - "node_modules/@ethersproject/constants": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/constants/-/constants-5.7.0.tgz", - "integrity": "sha512-DHI+y5dBNvkpYUMiRQyxRBYBefZkJfo70VUkUAsRjcPs47muV9evftfZ0PJVCXYbAiCgght0DtcF9srFQmIgWA==", - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } + "node_modules/@esbuild/linux-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.3.tgz", + "integrity": "sha512-Czi8yzXUWIQYAtL/2y6vogER8pvcsOsk5cpwL4Gk5nJqH5UZiVByIY8Eorm5R13gq+DQKYg0+JyQoytLQas4dA==", + "cpu": [ + "x64" ], - "dependencies": { - "@ethersproject/bignumber": "^5.7.0" + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" } }, - "node_modules/@ethersproject/contracts": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/contracts/-/contracts-5.7.0.tgz", - "integrity": "sha512-5GJbzEU3X+d33CdfPhcyS+z8MzsTrBGk/sc+G+59+tPa9yFkl6HQ9D6L0QMgNTA9q8dT0XKxxkyp883XsQvbbg==", - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.3.tgz", + "integrity": "sha512-sDpk0RgmTCR/5HguIZa9n9u+HVKf40fbEUt+iTzSnCaGvY9kFP0YKBWZtJaraonFnqef5SlJ8/TiPAxzyS+UoA==", + "cpu": [ + "arm64" ], - "dependencies": { - "@ethersproject/abi": "^5.7.0", - "@ethersproject/abstract-provider": "^5.7.0", - "@ethersproject/abstract-signer": "^5.7.0", - "@ethersproject/address": "^5.7.0", - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/constants": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "@ethersproject/transactions": "^5.7.0" + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" } }, - "node_modules/@ethersproject/hash": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/hash/-/hash-5.7.0.tgz", - "integrity": "sha512-qX5WrQfnah1EFnO5zJv1v46a8HW0+E5xuBBDTwMFZLuVTx0tbU2kkx15NqdjxecrLGatQN9FGQKpb1FKdHCt+g==", - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } + "node_modules/@esbuild/netbsd-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.27.3.tgz", + "integrity": "sha512-P14lFKJl/DdaE00LItAukUdZO5iqNH7+PjoBm+fLQjtxfcfFE20Xf5CrLsmZdq5LFFZzb5JMZ9grUwvtVYzjiA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.3.tgz", + "integrity": "sha512-AIcMP77AvirGbRl/UZFTq5hjXK+2wC7qFRGoHSDrZ5v5b8DK/GYpXW3CPRL53NkvDqb9D+alBiC/dV0Fb7eJcw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.27.3.tgz", + "integrity": "sha512-DnW2sRrBzA+YnE70LKqnM3P+z8vehfJWHXECbwBmH/CU51z6FiqTQTHFenPlHmo3a8UgpLyH3PT+87OViOh1AQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openharmony-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.3.tgz", + "integrity": "sha512-NinAEgr/etERPTsZJ7aEZQvvg/A6IsZG/LgZy+81wON2huV7SrK3e63dU0XhyZP4RKGyTm7aOgmQk0bGp0fy2g==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.27.3.tgz", + "integrity": "sha512-PanZ+nEz+eWoBJ8/f8HKxTTD172SKwdXebZ0ndd953gt1HRBbhMsaNqjTyYLGLPdoWHy4zLU7bDVJztF5f3BHA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.3.tgz", + "integrity": "sha512-B2t59lWWYrbRDw/tjiWOuzSsFh1Y/E95ofKz7rIVYSQkUYBjfSgf6oeYPNWHToFRr2zx52JKApIcAS/D5TUBnA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.27.3.tgz", + "integrity": "sha512-QLKSFeXNS8+tHW7tZpMtjlNb7HKau0QDpwm49u0vUp9y1WOF+PEzkU84y9GqYaAVW8aH8f3GcBck26jh54cX4Q==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.27.3.tgz", + "integrity": "sha512-4uJGhsxuptu3OcpVAzli+/gWusVGwZZHTlS63hh++ehExkVT8SgiEf7/uC/PclrPPkLhZqGgCTjd0VWLo6xMqA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.1.tgz", + "integrity": "sha512-gtF186CXhIl1p4pJNGZw8Yc6RlshoePRvE0X91oPGb3vZ8pM3qOS9W9NGPat9LziaBV7XrJWGylNQXkGcnM3IQ==", + "license": "MIT", "dependencies": { - "@ethersproject/abstract-signer": "^5.7.0", + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^10.0.1", + "globals": "^14.0.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/eslintrc/node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/@eslint/eslintrc/node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "license": "MIT" + }, + "node_modules/@eth-optimism/core-utils": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/@eth-optimism/core-utils/-/core-utils-0.12.0.tgz", + "integrity": "sha512-qW+7LZYCz7i8dRa7SRlUKIo1VBU8lvN0HeXCxJR+z+xtMzMQpPds20XJNCMclszxYQHkXY00fOT6GvFw9ZL6nw==", + "dependencies": { + "@ethersproject/abi": "^5.7.0", + "@ethersproject/abstract-provider": "^5.7.0", "@ethersproject/address": "^5.7.0", - "@ethersproject/base64": "^5.7.0", "@ethersproject/bignumber": "^5.7.0", "@ethersproject/bytes": "^5.7.0", + "@ethersproject/constants": "^5.7.0", + "@ethersproject/contracts": "^5.7.0", + "@ethersproject/hash": "^5.7.0", "@ethersproject/keccak256": "^5.7.0", - "@ethersproject/logger": "^5.7.0", "@ethersproject/properties": "^5.7.0", - "@ethersproject/strings": "^5.7.0" + "@ethersproject/providers": "^5.7.0", + "@ethersproject/rlp": "^5.7.0", + "@ethersproject/transactions": "^5.7.0", + "@ethersproject/web": "^5.7.0", + "bufio": "^1.0.7", + "chai": "^4.3.4" } }, - "node_modules/@ethersproject/hdnode": { + "node_modules/@ethersproject/abi": { "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/hdnode/-/hdnode-5.7.0.tgz", - "integrity": "sha512-OmyYo9EENBPPf4ERhR7oj6uAtUAhYGqOnIS+jE5pTXvdKBS99ikzq1E7Iv0ZQZ5V36Lqx1qZLeak0Ra16qpeOg==", + "resolved": "https://registry.npmjs.org/@ethersproject/abi/-/abi-5.7.0.tgz", + "integrity": "sha512-351ktp42TiRcYB3H1OP8yajPeAQstMW/yCFokj/AthP9bLHzQFPlOrxOcwYEDkUAICmOHljvN4K39OMTMUa9RA==", "funding": [ { "type": "individual", @@ -1206,26 +1278,22 @@ "url": "https://www.buymeacoffee.com/ricmoo" } ], - "peer": true, "dependencies": { - "@ethersproject/abstract-signer": "^5.7.0", - "@ethersproject/basex": "^5.7.0", + "@ethersproject/address": "^5.7.0", "@ethersproject/bignumber": "^5.7.0", "@ethersproject/bytes": "^5.7.0", + "@ethersproject/constants": "^5.7.0", + "@ethersproject/hash": "^5.7.0", + "@ethersproject/keccak256": "^5.7.0", "@ethersproject/logger": "^5.7.0", - "@ethersproject/pbkdf2": "^5.7.0", "@ethersproject/properties": "^5.7.0", - "@ethersproject/sha2": "^5.7.0", - "@ethersproject/signing-key": "^5.7.0", - "@ethersproject/strings": "^5.7.0", - "@ethersproject/transactions": "^5.7.0", - "@ethersproject/wordlists": "^5.7.0" + "@ethersproject/strings": "^5.7.0" } }, - "node_modules/@ethersproject/json-wallets": { + "node_modules/@ethersproject/abstract-provider": { "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/json-wallets/-/json-wallets-5.7.0.tgz", - "integrity": "sha512-8oee5Xgu6+RKgJTkvEMl2wDgSPSAQ9MB/3JYjFV9jlKvcYHUXZC+cQp0njgmxdHkYWn8s6/IqIZYm0YWCjO/0g==", + "resolved": "https://registry.npmjs.org/@ethersproject/abstract-provider/-/abstract-provider-5.7.0.tgz", + "integrity": "sha512-R41c9UkchKCpAqStMYUpdunjo3pkEvZC3FAwZn5S5MGbXoMQOHIdHItezTETxAO5bevtMApSyEhn9+CHcDsWBw==", "funding": [ { "type": "individual", @@ -1236,33 +1304,20 @@ "url": "https://www.buymeacoffee.com/ricmoo" } ], - "peer": true, "dependencies": { - "@ethersproject/abstract-signer": "^5.7.0", - "@ethersproject/address": "^5.7.0", + "@ethersproject/bignumber": "^5.7.0", "@ethersproject/bytes": "^5.7.0", - "@ethersproject/hdnode": "^5.7.0", - "@ethersproject/keccak256": "^5.7.0", "@ethersproject/logger": "^5.7.0", - "@ethersproject/pbkdf2": "^5.7.0", + "@ethersproject/networks": "^5.7.0", "@ethersproject/properties": "^5.7.0", - "@ethersproject/random": "^5.7.0", - "@ethersproject/strings": "^5.7.0", "@ethersproject/transactions": "^5.7.0", - "aes-js": "3.0.0", - "scrypt-js": "3.0.1" + "@ethersproject/web": "^5.7.0" } }, - "node_modules/@ethersproject/json-wallets/node_modules/aes-js": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/aes-js/-/aes-js-3.0.0.tgz", - "integrity": "sha512-H7wUZRn8WpTq9jocdxQ2c8x2sKo9ZVmzfRE13GiNJXfp7NcKYEdvl3vspKjXox6RIG2VtaRe4JFvxG4rqp2Zuw==", - "peer": true - }, - "node_modules/@ethersproject/keccak256": { + "node_modules/@ethersproject/abstract-signer": { "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/keccak256/-/keccak256-5.7.0.tgz", - "integrity": "sha512-2UcPboeL/iW+pSg6vZ6ydF8tCnv3Iu/8tUmLLzWWGzxWKFFqOBQFLo6uLUv6BDrLgCDfN28RJ/wtByx+jZ4KBg==", + "resolved": "https://registry.npmjs.org/@ethersproject/abstract-signer/-/abstract-signer-5.7.0.tgz", + "integrity": "sha512-a16V8bq1/Cz+TGCkE2OPMTOUDLS3grCpdjoJCYNnVBbdYEMSgKrU0+B90s8b6H+ByYTBZN7a3g76jdIJi7UfKQ==", "funding": [ { "type": "individual", @@ -1274,14 +1329,17 @@ } ], "dependencies": { + "@ethersproject/abstract-provider": "^5.7.0", + "@ethersproject/bignumber": "^5.7.0", "@ethersproject/bytes": "^5.7.0", - "js-sha3": "0.8.0" + "@ethersproject/logger": "^5.7.0", + "@ethersproject/properties": "^5.7.0" } }, - "node_modules/@ethersproject/logger": { + "node_modules/@ethersproject/address": { "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/logger/-/logger-5.7.0.tgz", - "integrity": "sha512-0odtFdXu/XHtjQXJYA3u9G0G8btm0ND5Cu8M7i5vhEcE8/HmF4Lbdqanwyv4uQTr2tx6b7fQRmgLrsnpQlmnig==", + "resolved": "https://registry.npmjs.org/@ethersproject/address/-/address-5.7.0.tgz", + "integrity": "sha512-9wYhYt7aghVGo758POM5nqcOMaE168Q6aRLJZwUmiqSrAungkG74gSSeKEIR7ukixesdRZGPgVqme6vmxs1fkA==", "funding": [ { "type": "individual", @@ -1291,12 +1349,19 @@ "type": "individual", "url": "https://www.buymeacoffee.com/ricmoo" } - ] + ], + "dependencies": { + "@ethersproject/bignumber": "^5.7.0", + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/keccak256": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "@ethersproject/rlp": "^5.7.0" + } }, - "node_modules/@ethersproject/networks": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/@ethersproject/networks/-/networks-5.7.1.tgz", - "integrity": "sha512-n/MufjFYv3yFcUyfhnXotyDlNdFb7onmkSy8aQERi2PjNcnWQ66xXxa3XlS8nCcA8aJKJjIIMNJTC7tu80GwpQ==", + "node_modules/@ethersproject/base64": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/@ethersproject/base64/-/base64-5.7.0.tgz", + "integrity": "sha512-Dr8tcHt2mEbsZr/mwTPIQAf3Ai0Bks/7gTw9dSqk1mQvhW3XvRlmDJr/4n+wg1JmCl16NZue17CDh8xb/vZ0sQ==", "funding": [ { "type": "individual", @@ -1308,13 +1373,260 @@ } ], "dependencies": { - "@ethersproject/logger": "^5.7.0" + "@ethersproject/bytes": "^5.7.0" } }, - "node_modules/@ethersproject/pbkdf2": { + "node_modules/@ethersproject/basex": { "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/pbkdf2/-/pbkdf2-5.7.0.tgz", - "integrity": "sha512-oR/dBRZR6GTyaofd86DehG72hY6NpAjhabkhxgr3X2FpJtJuodEl2auADWBZfhDHgVCbu3/H/Ocq2uC6dpNjjw==", + "resolved": "https://registry.npmjs.org/@ethersproject/basex/-/basex-5.7.0.tgz", + "integrity": "sha512-ywlh43GwZLv2Voc2gQVTKBoVQ1mti3d8HK5aMxsfu/nRDnMmNqaSJ3r3n85HBByT8OpoY96SXM1FogC533T4zw==", + "funding": [ + { + "type": "individual", + "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" + }, + { + "type": "individual", + "url": "https://www.buymeacoffee.com/ricmoo" + } + ], + "dependencies": { + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/properties": "^5.7.0" + } + }, + "node_modules/@ethersproject/bignumber": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/@ethersproject/bignumber/-/bignumber-5.7.0.tgz", + "integrity": "sha512-n1CAdIHRWjSucQO3MC1zPSVgV/6dy/fjL9pMrPP9peL+QxEg9wOsVqwD4+818B6LUEtaXzVHQiuivzRoxPxUGw==", + "funding": [ + { + "type": "individual", + "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" + }, + { + "type": "individual", + "url": "https://www.buymeacoffee.com/ricmoo" + } + ], + "dependencies": { + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "bn.js": "^5.2.1" + } + }, + "node_modules/@ethersproject/bytes": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/@ethersproject/bytes/-/bytes-5.7.0.tgz", + "integrity": "sha512-nsbxwgFXWh9NyYWo+U8atvmMsSdKJprTcICAkvbBffT75qDocbuggBU0SJiVK2MuTrp0q+xvLkTnGMPK1+uA9A==", + "funding": [ + { + "type": "individual", + "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" + }, + { + "type": "individual", + "url": "https://www.buymeacoffee.com/ricmoo" + } + ], + "dependencies": { + "@ethersproject/logger": "^5.7.0" + } + }, + "node_modules/@ethersproject/constants": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/@ethersproject/constants/-/constants-5.7.0.tgz", + "integrity": "sha512-DHI+y5dBNvkpYUMiRQyxRBYBefZkJfo70VUkUAsRjcPs47muV9evftfZ0PJVCXYbAiCgght0DtcF9srFQmIgWA==", + "funding": [ + { + "type": "individual", + "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" + }, + { + "type": "individual", + "url": "https://www.buymeacoffee.com/ricmoo" + } + ], + "dependencies": { + "@ethersproject/bignumber": "^5.7.0" + } + }, + "node_modules/@ethersproject/contracts": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/@ethersproject/contracts/-/contracts-5.7.0.tgz", + "integrity": "sha512-5GJbzEU3X+d33CdfPhcyS+z8MzsTrBGk/sc+G+59+tPa9yFkl6HQ9D6L0QMgNTA9q8dT0XKxxkyp883XsQvbbg==", + "funding": [ + { + "type": "individual", + "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" + }, + { + "type": "individual", + "url": "https://www.buymeacoffee.com/ricmoo" + } + ], + "dependencies": { + "@ethersproject/abi": "^5.7.0", + "@ethersproject/abstract-provider": "^5.7.0", + "@ethersproject/abstract-signer": "^5.7.0", + "@ethersproject/address": "^5.7.0", + "@ethersproject/bignumber": "^5.7.0", + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/constants": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "@ethersproject/properties": "^5.7.0", + "@ethersproject/transactions": "^5.7.0" + } + }, + "node_modules/@ethersproject/hash": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/@ethersproject/hash/-/hash-5.7.0.tgz", + "integrity": "sha512-qX5WrQfnah1EFnO5zJv1v46a8HW0+E5xuBBDTwMFZLuVTx0tbU2kkx15NqdjxecrLGatQN9FGQKpb1FKdHCt+g==", + "funding": [ + { + "type": "individual", + "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" + }, + { + "type": "individual", + "url": "https://www.buymeacoffee.com/ricmoo" + } + ], + "dependencies": { + "@ethersproject/abstract-signer": "^5.7.0", + "@ethersproject/address": "^5.7.0", + "@ethersproject/base64": "^5.7.0", + "@ethersproject/bignumber": "^5.7.0", + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/keccak256": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "@ethersproject/properties": "^5.7.0", + "@ethersproject/strings": "^5.7.0" + } + }, + "node_modules/@ethersproject/hdnode": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/@ethersproject/hdnode/-/hdnode-5.7.0.tgz", + "integrity": "sha512-OmyYo9EENBPPf4ERhR7oj6uAtUAhYGqOnIS+jE5pTXvdKBS99ikzq1E7Iv0ZQZ5V36Lqx1qZLeak0Ra16qpeOg==", + "funding": [ + { + "type": "individual", + "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" + }, + { + "type": "individual", + "url": "https://www.buymeacoffee.com/ricmoo" + } + ], + "peer": true, + "dependencies": { + "@ethersproject/abstract-signer": "^5.7.0", + "@ethersproject/basex": "^5.7.0", + "@ethersproject/bignumber": "^5.7.0", + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "@ethersproject/pbkdf2": "^5.7.0", + "@ethersproject/properties": "^5.7.0", + "@ethersproject/sha2": "^5.7.0", + "@ethersproject/signing-key": "^5.7.0", + "@ethersproject/strings": "^5.7.0", + "@ethersproject/transactions": "^5.7.0", + "@ethersproject/wordlists": "^5.7.0" + } + }, + "node_modules/@ethersproject/json-wallets": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/@ethersproject/json-wallets/-/json-wallets-5.7.0.tgz", + "integrity": "sha512-8oee5Xgu6+RKgJTkvEMl2wDgSPSAQ9MB/3JYjFV9jlKvcYHUXZC+cQp0njgmxdHkYWn8s6/IqIZYm0YWCjO/0g==", + "funding": [ + { + "type": "individual", + "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" + }, + { + "type": "individual", + "url": "https://www.buymeacoffee.com/ricmoo" + } + ], + "peer": true, + "dependencies": { + "@ethersproject/abstract-signer": "^5.7.0", + "@ethersproject/address": "^5.7.0", + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/hdnode": "^5.7.0", + "@ethersproject/keccak256": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "@ethersproject/pbkdf2": "^5.7.0", + "@ethersproject/properties": "^5.7.0", + "@ethersproject/random": "^5.7.0", + "@ethersproject/strings": "^5.7.0", + "@ethersproject/transactions": "^5.7.0", + "aes-js": "3.0.0", + "scrypt-js": "3.0.1" + } + }, + "node_modules/@ethersproject/json-wallets/node_modules/aes-js": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/aes-js/-/aes-js-3.0.0.tgz", + "integrity": "sha512-H7wUZRn8WpTq9jocdxQ2c8x2sKo9ZVmzfRE13GiNJXfp7NcKYEdvl3vspKjXox6RIG2VtaRe4JFvxG4rqp2Zuw==", + "peer": true + }, + "node_modules/@ethersproject/keccak256": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/@ethersproject/keccak256/-/keccak256-5.7.0.tgz", + "integrity": "sha512-2UcPboeL/iW+pSg6vZ6ydF8tCnv3Iu/8tUmLLzWWGzxWKFFqOBQFLo6uLUv6BDrLgCDfN28RJ/wtByx+jZ4KBg==", + "funding": [ + { + "type": "individual", + "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" + }, + { + "type": "individual", + "url": "https://www.buymeacoffee.com/ricmoo" + } + ], + "dependencies": { + "@ethersproject/bytes": "^5.7.0", + "js-sha3": "0.8.0" + } + }, + "node_modules/@ethersproject/logger": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/@ethersproject/logger/-/logger-5.7.0.tgz", + "integrity": "sha512-0odtFdXu/XHtjQXJYA3u9G0G8btm0ND5Cu8M7i5vhEcE8/HmF4Lbdqanwyv4uQTr2tx6b7fQRmgLrsnpQlmnig==", + "funding": [ + { + "type": "individual", + "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" + }, + { + "type": "individual", + "url": "https://www.buymeacoffee.com/ricmoo" + } + ] + }, + "node_modules/@ethersproject/networks": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/@ethersproject/networks/-/networks-5.7.1.tgz", + "integrity": "sha512-n/MufjFYv3yFcUyfhnXotyDlNdFb7onmkSy8aQERi2PjNcnWQ66xXxa3XlS8nCcA8aJKJjIIMNJTC7tu80GwpQ==", + "funding": [ + { + "type": "individual", + "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" + }, + { + "type": "individual", + "url": "https://www.buymeacoffee.com/ricmoo" + } + ], + "dependencies": { + "@ethersproject/logger": "^5.7.0" + } + }, + "node_modules/@ethersproject/pbkdf2": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/@ethersproject/pbkdf2/-/pbkdf2-5.7.0.tgz", + "integrity": "sha512-oR/dBRZR6GTyaofd86DehG72hY6NpAjhabkhxgr3X2FpJtJuodEl2auADWBZfhDHgVCbu3/H/Ocq2uC6dpNjjw==", "funding": [ { "type": "individual", @@ -1656,15 +1968,6 @@ "@ethersproject/strings": "^5.7.0" } }, - "node_modules/@fastify/busboy": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@fastify/busboy/-/busboy-2.1.0.tgz", - "integrity": "sha512-+KpH+QxZU7O4675t3mnkQKcZZg56u+K/Ct2K+N2AZYNVK8kyeo/bI18tI8aPm3tvNNRyTWfj6s5tnGNlcbQRsA==", - "dev": true, - "engines": { - "node": ">=14" - } - }, "node_modules/@inquirer/external-editor": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/@inquirer/external-editor/-/external-editor-1.0.2.tgz", @@ -1702,137 +2005,6 @@ "url": "https://opencollective.com/express" } }, - "node_modules/@isaacs/cliui": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", - "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", - "dev": true, - "license": "ISC", - "dependencies": { - "string-width": "^5.1.2", - "string-width-cjs": "npm:string-width@^4.2.0", - "strip-ansi": "^7.0.1", - "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", - "wrap-ansi": "^8.1.0", - "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@isaacs/cliui/node_modules/ansi-regex": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", - "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-regex?sponsor=1" - } - }, - "node_modules/@isaacs/cliui/node_modules/ansi-styles": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", - "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/@isaacs/cliui/node_modules/emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", - "dev": true, - "license": "MIT" - }, - "node_modules/@isaacs/cliui/node_modules/string-width": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", - "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", - "dev": true, - "license": "MIT", - "dependencies": { - "eastasianwidth": "^0.2.0", - "emoji-regex": "^9.2.2", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@isaacs/cliui/node_modules/strip-ansi": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", - "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^6.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/strip-ansi?sponsor=1" - } - }, - "node_modules/@isaacs/cliui/node_modules/wrap-ansi": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", - "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^6.1.0", - "string-width": "^5.0.1", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", - "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", - "dev": true, - "peer": true, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.4.15", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", - "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", - "dev": true, - "peer": true - }, - "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.9", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", - "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", - "dev": true, - "peer": true, - "dependencies": { - "@jridgewell/resolve-uri": "^3.0.3", - "@jridgewell/sourcemap-codec": "^1.4.10" - } - }, "node_modules/@jsdoc/salty": { "version": "0.2.8", "resolved": "https://registry.npmjs.org/@jsdoc/salty/-/salty-0.2.8.tgz", @@ -2030,26 +2202,24 @@ } }, "node_modules/@noble/curves": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.2.0.tgz", - "integrity": "sha512-oYclrNgRaM9SsBUBVbb8M6DTV7ZHRTKugureoYEncY5c65HOmRzvSiTE3y5CYaPYJA/GVkrhXEoF0M3Ya9PMnw==", + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.4.2.tgz", + "integrity": "sha512-TavHr8qycMChk8UwMld0ZDRvatedkzWfH8IiaeGCfymOP5i0hSCozz9vHOL0nkwk7HRMlFnAiKpS2jrUmSybcw==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { - "@noble/hashes": "1.3.2" + "@noble/hashes": "1.4.0" }, "funding": { "url": "https://paulmillr.com/funding/" } }, "node_modules/@noble/hashes": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.2.tgz", - "integrity": "sha512-MVC8EAQp7MvEcm30KWENFjgR+Mkmf+D189XJTkFIlwohU5hcBbn1ZkKq7KVTi2Hme3PMGF390DaL52beVrIihQ==", + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.4.0.tgz", + "integrity": "sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">= 16" }, @@ -2057,18 +2227,6 @@ "url": "https://paulmillr.com/funding/" } }, - "node_modules/@noble/secp256k1": { - "version": "1.7.1", - "resolved": "https://registry.npmjs.org/@noble/secp256k1/-/secp256k1-1.7.1.tgz", - "integrity": "sha512-hOUk6AyBFmqVrv7k5WAw/LpszxVbj9gGN4JRkIX52fdFAj1UA61KXmZDvqVEm+pOyec3+fIeZB02LYa/pWOArw==", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ] - }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", @@ -2102,203 +2260,157 @@ } }, "node_modules/@nomicfoundation/edr": { - "version": "0.11.3", - "resolved": "https://registry.npmjs.org/@nomicfoundation/edr/-/edr-0.11.3.tgz", - "integrity": "sha512-kqILRkAd455Sd6v8mfP3C1/0tCOynJWY+Ir+k/9Boocu2kObCrsFgG+ZWB7fSBVdd9cPVSNrnhWS+V+PEo637g==", + "version": "0.12.0-next.24", + "resolved": "https://registry.npmjs.org/@nomicfoundation/edr/-/edr-0.12.0-next.24.tgz", + "integrity": "sha512-/NwB9yX7uBs/FIJKHBZo2hVhP7g3v6LbE21JvTLvshgb+XscyaRRUmzB//ankxLGJ1TehtXAf/Qh/a19vgpiig==", "dev": true, "license": "MIT", "dependencies": { - "@nomicfoundation/edr-darwin-arm64": "0.11.3", - "@nomicfoundation/edr-darwin-x64": "0.11.3", - "@nomicfoundation/edr-linux-arm64-gnu": "0.11.3", - "@nomicfoundation/edr-linux-arm64-musl": "0.11.3", - "@nomicfoundation/edr-linux-x64-gnu": "0.11.3", - "@nomicfoundation/edr-linux-x64-musl": "0.11.3", - "@nomicfoundation/edr-win32-x64-msvc": "0.11.3" + "@nomicfoundation/edr-darwin-arm64": "0.12.0-next.24", + "@nomicfoundation/edr-darwin-x64": "0.12.0-next.24", + "@nomicfoundation/edr-linux-arm64-gnu": "0.12.0-next.24", + "@nomicfoundation/edr-linux-arm64-musl": "0.12.0-next.24", + "@nomicfoundation/edr-linux-x64-gnu": "0.12.0-next.24", + "@nomicfoundation/edr-linux-x64-musl": "0.12.0-next.24", + "@nomicfoundation/edr-win32-x64-msvc": "0.12.0-next.24" }, "engines": { - "node": ">= 18" + "node": ">= 20" } }, "node_modules/@nomicfoundation/edr-darwin-arm64": { - "version": "0.11.3", - "resolved": "https://registry.npmjs.org/@nomicfoundation/edr-darwin-arm64/-/edr-darwin-arm64-0.11.3.tgz", - "integrity": "sha512-w0tksbdtSxz9nuzHKsfx4c2mwaD0+l5qKL2R290QdnN9gi9AV62p9DHkOgfBdyg6/a6ZlnQqnISi7C9avk/6VA==", + "version": "0.12.0-next.24", + "resolved": "https://registry.npmjs.org/@nomicfoundation/edr-darwin-arm64/-/edr-darwin-arm64-0.12.0-next.24.tgz", + "integrity": "sha512-lYcD9IM52G0hk/3Sso2Rpdpyfafy3aHH0GsSy/FVog9UrEkmmU14AmccE18/zTL+UyV0yzYMDOmh6y83SD/lbg==", "dev": true, "license": "MIT", "engines": { - "node": ">= 18" + "node": ">= 20" } }, "node_modules/@nomicfoundation/edr-darwin-x64": { - "version": "0.11.3", - "resolved": "https://registry.npmjs.org/@nomicfoundation/edr-darwin-x64/-/edr-darwin-x64-0.11.3.tgz", - "integrity": "sha512-QR4jAFrPbOcrO7O2z2ESg+eUeIZPe2bPIlQYgiJ04ltbSGW27FblOzdd5+S3RoOD/dsZGKAvvy6dadBEl0NgoA==", + "version": "0.12.0-next.24", + "resolved": "https://registry.npmjs.org/@nomicfoundation/edr-darwin-x64/-/edr-darwin-x64-0.12.0-next.24.tgz", + "integrity": "sha512-cHDJZlPDpDXJXxQDVM0TGzEuNvV3wW94gipEdjNxZHeC9T2/NU/5GUoQajMJgvCZ6PWDlRMwIBRtM1jC/ny5DA==", "dev": true, "license": "MIT", "engines": { - "node": ">= 18" + "node": ">= 20" } }, "node_modules/@nomicfoundation/edr-linux-arm64-gnu": { - "version": "0.11.3", - "resolved": "https://registry.npmjs.org/@nomicfoundation/edr-linux-arm64-gnu/-/edr-linux-arm64-gnu-0.11.3.tgz", - "integrity": "sha512-Ktjv89RZZiUmOFPspuSBVJ61mBZQ2+HuLmV67InNlh9TSUec/iDjGIwAn59dx0bF/LOSrM7qg5od3KKac4LJDQ==", + "version": "0.12.0-next.24", + "resolved": "https://registry.npmjs.org/@nomicfoundation/edr-linux-arm64-gnu/-/edr-linux-arm64-gnu-0.12.0-next.24.tgz", + "integrity": "sha512-G/iln4W79CR9f68+crBZM1kBdmmK3IbQCD4b5u+iqby+H5BOLSPQmjeW9UREK5WSecnv7Oxr/ZTHHRq/w9pUPA==", "dev": true, "license": "MIT", "engines": { - "node": ">= 18" + "node": ">= 20" } }, "node_modules/@nomicfoundation/edr-linux-arm64-musl": { - "version": "0.11.3", - "resolved": "https://registry.npmjs.org/@nomicfoundation/edr-linux-arm64-musl/-/edr-linux-arm64-musl-0.11.3.tgz", - "integrity": "sha512-B3sLJx1rL2E9pfdD4mApiwOZSrX0a/KQSBWdlq1uAhFKqkl00yZaY4LejgZndsJAa4iKGQJlGnw4HCGeVt0+jA==", + "version": "0.12.0-next.24", + "resolved": "https://registry.npmjs.org/@nomicfoundation/edr-linux-arm64-musl/-/edr-linux-arm64-musl-0.12.0-next.24.tgz", + "integrity": "sha512-wt6UuOutufL3UTSyMiwPOyfRly3uQEFHASXqLsNjgp4qBrm0s+kkyaYpAe8h53lGzZmXIDOAbO0P/fwxnLCnWw==", "dev": true, "license": "MIT", "engines": { - "node": ">= 18" + "node": ">= 20" } }, "node_modules/@nomicfoundation/edr-linux-x64-gnu": { - "version": "0.11.3", - "resolved": "https://registry.npmjs.org/@nomicfoundation/edr-linux-x64-gnu/-/edr-linux-x64-gnu-0.11.3.tgz", - "integrity": "sha512-D/4cFKDXH6UYyKPu6J3Y8TzW11UzeQI0+wS9QcJzjlrrfKj0ENW7g9VihD1O2FvXkdkTjcCZYb6ai8MMTCsaVw==", + "version": "0.12.0-next.24", + "resolved": "https://registry.npmjs.org/@nomicfoundation/edr-linux-x64-gnu/-/edr-linux-x64-gnu-0.12.0-next.24.tgz", + "integrity": "sha512-mHgkUSynINTnnIvZuZymJ4dMqjemGjdrzQ87rP5/SQQGRQVV82uDomSEglp9btSmbBWfPj4r4tWsV+a3844W0w==", "dev": true, "license": "MIT", "engines": { - "node": ">= 18" + "node": ">= 20" } }, "node_modules/@nomicfoundation/edr-linux-x64-musl": { - "version": "0.11.3", - "resolved": "https://registry.npmjs.org/@nomicfoundation/edr-linux-x64-musl/-/edr-linux-x64-musl-0.11.3.tgz", - "integrity": "sha512-ergXuIb4nIvmf+TqyiDX5tsE49311DrBky6+jNLgsGDTBaN1GS3OFwFS8I6Ri/GGn6xOaT8sKu3q7/m+WdlFzg==", + "version": "0.12.0-next.24", + "resolved": "https://registry.npmjs.org/@nomicfoundation/edr-linux-x64-musl/-/edr-linux-x64-musl-0.12.0-next.24.tgz", + "integrity": "sha512-E0XNSlPc8Hx5Nhowe5VIvAqVeT+1VUWSRqG0cZtYcpUgJZxTp8p03ojPtbyfjL4T+78GfnpmzkkLhB6S2jZ1FQ==", "dev": true, "license": "MIT", "engines": { - "node": ">= 18" + "node": ">= 20" } }, "node_modules/@nomicfoundation/edr-win32-x64-msvc": { - "version": "0.11.3", - "resolved": "https://registry.npmjs.org/@nomicfoundation/edr-win32-x64-msvc/-/edr-win32-x64-msvc-0.11.3.tgz", - "integrity": "sha512-snvEf+WB3OV0wj2A7kQ+ZQqBquMcrozSLXcdnMdEl7Tmn+KDCbmFKBt3Tk0X3qOU4RKQpLPnTxdM07TJNVtung==", + "version": "0.12.0-next.24", + "resolved": "https://registry.npmjs.org/@nomicfoundation/edr-win32-x64-msvc/-/edr-win32-x64-msvc-0.12.0-next.24.tgz", + "integrity": "sha512-PbtY2zWc4k8HK4gVnVbPohJnfrICboo6J91vxTlhnPKCWGvfGbsqLfDUAp91ExHHY+80qRfQnwaLbhJiIqLFGw==", "dev": true, "license": "MIT", "engines": { - "node": ">= 18" + "node": ">= 20" } }, - "node_modules/@nomicfoundation/hardhat-chai-matchers": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/hardhat-chai-matchers/-/hardhat-chai-matchers-2.1.0.tgz", - "integrity": "sha512-GPhBNafh1fCnVD9Y7BYvoLnblnvfcq3j8YDbO1gGe/1nOFWzGmV7gFu5DkwFXF+IpYsS+t96o9qc/mPu3V3Vfw==", + "node_modules/@nomicfoundation/hardhat-errors": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/@nomicfoundation/hardhat-errors/-/hardhat-errors-3.0.7.tgz", + "integrity": "sha512-l4RrzTfJ/WO0B9Te6i9161+pRbCSFXILanmHmgRfS4Bb4pDOjs+0eQf2I2cQrnqcJ6O/bxLvChPTQuad97dmQw==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { - "@types/chai-as-promised": "^7.1.3", - "chai-as-promised": "^7.1.1", - "deep-eql": "^4.0.1", - "ordinal": "^1.0.3" - }, - "peerDependencies": { - "@nomicfoundation/hardhat-ethers": "^3.1.0", - "chai": "^4.2.0", - "ethers": "^6.14.0", - "hardhat": "^2.26.0" + "@nomicfoundation/hardhat-utils": "^4.0.0" } }, "node_modules/@nomicfoundation/hardhat-ethers": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/hardhat-ethers/-/hardhat-ethers-3.1.0.tgz", - "integrity": "sha512-jx6fw3Ms7QBwFGT2MU6ICG292z0P81u6g54JjSV105+FbTZOF4FJqPksLfDybxkkOeq28eDxbqq7vpxRYyIlxA==", + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/@nomicfoundation/hardhat-ethers/-/hardhat-ethers-4.0.5.tgz", + "integrity": "sha512-DFTpsg6MBV/JNv8Rd0M/C70Wqk3giYSAYCrBu3PeerX1eNd4wuz5kUlsX4yVoNOPpM6Lva9z+30JRDEuFEt0bQ==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { - "debug": "^4.1.1", - "lodash.isequal": "^4.5.0" + "@nomicfoundation/hardhat-errors": "^3.0.7", + "@nomicfoundation/hardhat-utils": "^4.0.0", + "debug": "^4.3.2", + "ethereum-cryptography": "^2.2.1", + "ethers": "^6.14.0" }, "peerDependencies": { - "ethers": "^6.14.0", - "hardhat": "^2.26.0" + "hardhat": "^3.0.7" } }, - "node_modules/@nomicfoundation/hardhat-foundry": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/hardhat-foundry/-/hardhat-foundry-1.2.0.tgz", - "integrity": "sha512-2AJQLcWnUk/iQqHDVnyOadASKFQKF1PhNtt1cONEQqzUPK+fqME1IbP+EKu+RkZTRcyc4xqUMaB0sutglKRITg==", + "node_modules/@nomicfoundation/hardhat-utils": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@nomicfoundation/hardhat-utils/-/hardhat-utils-4.0.0.tgz", + "integrity": "sha512-Deu4od7flcM89K+SEAxmOyn7FFWGiEILrGjoxYl/Gus0tctgpLNaK3M4LIjrJ25ci8LBjGVe3i28XZA4+QGQHQ==", "dev": true, "license": "MIT", "dependencies": { - "picocolors": "^1.1.0" - }, - "peerDependencies": { - "hardhat": "^2.26.0" + "@streamparser/json-node": "^0.0.22", + "debug": "^4.3.2", + "env-paths": "^2.2.0", + "ethereum-cryptography": "^2.2.1", + "fast-equals": "^5.4.0", + "json-stream-stringify": "^3.1.6", + "rfdc": "^1.3.1", + "undici": "^6.16.1" } }, - "node_modules/@nomicfoundation/hardhat-network-helpers": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/hardhat-network-helpers/-/hardhat-network-helpers-1.1.0.tgz", - "integrity": "sha512-ZS+NulZuR99NUHt2VwcgZvgeD6Y63qrbORNRuKO+lTowJxNVsrJ0zbRx1j5De6G3dOno5pVGvuYSq2QVG0qCYg==", + "node_modules/@nomicfoundation/hardhat-vendored": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@nomicfoundation/hardhat-vendored/-/hardhat-vendored-3.0.1.tgz", + "integrity": "sha512-jBOAqmEAMJ8zdfiQmTLV+c0IaSyySqkDSJ9spTy8Ts/m/mO8w364TClyfn+p4ZpxBjyX4LMa3NfC402hoDtwCg==", "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "ethereumjs-util": "^7.1.4" - }, - "peerDependencies": { - "hardhat": "^2.26.0" - } + "license": "MIT" }, - "node_modules/@nomicfoundation/hardhat-toolbox": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/hardhat-toolbox/-/hardhat-toolbox-4.0.0.tgz", - "integrity": "sha512-jhcWHp0aHaL0aDYj8IJl80v4SZXWMS1A2XxXa1CA6pBiFfJKuZinCkO6wb+POAt0LIfXB3gA3AgdcOccrcwBwA==", - "dev": true, - "license": "MIT", - "peerDependencies": { - "@nomicfoundation/hardhat-chai-matchers": "^2.0.0", - "@nomicfoundation/hardhat-ethers": "^3.0.0", - "@nomicfoundation/hardhat-network-helpers": "^1.0.0", - "@nomicfoundation/hardhat-verify": "^2.0.0", - "@typechain/ethers-v6": "^0.5.0", - "@typechain/hardhat": "^9.0.0", - "@types/chai": "^4.2.0", - "@types/mocha": ">=9.1.0", - "@types/node": ">=16.0.0", - "chai": "^4.2.0", - "ethers": "^6.4.0", - "hardhat": "^2.11.0", - "hardhat-gas-reporter": "^1.0.8", - "solidity-coverage": "^0.8.1", - "ts-node": ">=8.0.0", - "typechain": "^8.3.0", - "typescript": ">=4.5.0" - } - }, - "node_modules/@nomicfoundation/hardhat-verify": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/hardhat-verify/-/hardhat-verify-2.1.1.tgz", - "integrity": "sha512-K1plXIS42xSHDJZRkrE2TZikqxp9T4y6jUMUNI/imLgN5uCcEQokmfU0DlyP9zzHncYK92HlT5IWP35UVCLrPw==", + "node_modules/@nomicfoundation/hardhat-zod-utils": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@nomicfoundation/hardhat-zod-utils/-/hardhat-zod-utils-3.0.2.tgz", + "integrity": "sha512-EtMIhi7jtpeQYd+pRQBNlxthi8OPVr/t32yn+VHHp6nwS5wgXLh6/KpvFZfJj5mBAUbOtogB7YQ4n5fpOeuggA==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { - "@ethersproject/abi": "^5.1.2", - "@ethersproject/address": "^5.0.2", - "cbor": "^8.1.0", - "debug": "^4.1.1", - "lodash.clonedeep": "^4.5.0", - "picocolors": "^1.1.0", - "semver": "^6.3.0", - "table": "^6.8.0", - "undici": "^5.14.0" + "@nomicfoundation/hardhat-errors": "^3.0.7", + "@nomicfoundation/hardhat-utils": "^4.0.0" }, "peerDependencies": { - "hardhat": "^2.26.0" + "zod": "^3.23.8" } }, "node_modules/@nomicfoundation/solidity-analyzer": { @@ -2536,22 +2648,18 @@ "integrity": "sha512-p1ULhl7BXzjjbha5aqst+QMLY+4/LCWADXOCsmLHRM77AqiPjnd9vvUN9sosUfhL9JGKpZ0TjEGxgvnizmWGSA==", "license": "MIT" }, + "node_modules/@openzeppelin/contracts-5.3.0": { + "name": "@openzeppelin/contracts", + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/@openzeppelin/contracts/-/contracts-5.3.0.tgz", + "integrity": "sha512-zj/KGoW7zxWUE8qOI++rUM18v+VeLTTzKs/DJFkSzHpQFPD/jKKF0TrMxBfGLl3kpdELCNccvB3zmofSzm4nlA==", + "license": "MIT" + }, "node_modules/@openzeppelin/contracts-upgradeable": { "version": "4.9.6", "resolved": "https://registry.npmjs.org/@openzeppelin/contracts-upgradeable/-/contracts-upgradeable-4.9.6.tgz", "integrity": "sha512-m4iHazOsOCv1DgM7eD7GupTJ+NFVujRZt1wzddDPSVGpWdKq1SKkla5htKG7+IS4d2XOCtzkUNwRZ7Vq5aEUMA==" }, - "node_modules/@pkgjs/parseargs": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", - "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", - "dev": true, - "license": "MIT", - "optional": true, - "engines": { - "node": ">=14" - } - }, "node_modules/@scroll-tech/contracts": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/@scroll-tech/contracts/-/contracts-2.0.0.tgz", @@ -2583,32 +2691,6 @@ "url": "https://paulmillr.com/funding/" } }, - "node_modules/@scure/bip32/node_modules/@noble/curves": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.4.2.tgz", - "integrity": "sha512-TavHr8qycMChk8UwMld0ZDRvatedkzWfH8IiaeGCfymOP5i0hSCozz9vHOL0nkwk7HRMlFnAiKpS2jrUmSybcw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@noble/hashes": "1.4.0" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/@scure/bip32/node_modules/@noble/hashes": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.4.0.tgz", - "integrity": "sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 16" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, "node_modules/@scure/bip39": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.3.0.tgz", @@ -2623,16819 +2705,6002 @@ "url": "https://paulmillr.com/funding/" } }, - "node_modules/@scure/bip39/node_modules/@noble/hashes": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.4.0.tgz", - "integrity": "sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==", + "node_modules/@sentry/core": { + "version": "9.47.1", + "resolved": "https://registry.npmjs.org/@sentry/core/-/core-9.47.1.tgz", + "integrity": "sha512-KX62+qIt4xgy8eHKHiikfhz2p5fOciXd0Cl+dNzhgPFq8klq4MGMNaf148GB3M/vBqP4nw/eFvRMAayFCgdRQw==", "dev": true, "license": "MIT", "engines": { - "node": ">= 16" - }, - "funding": { - "url": "https://paulmillr.com/funding/" + "node": ">=18" } }, - "node_modules/@sentry/core": { - "version": "5.30.0", - "resolved": "https://registry.npmjs.org/@sentry/core/-/core-5.30.0.tgz", - "integrity": "sha512-TmfrII8w1PQZSZgPpUESqjB+jC6MvZJZdLtE/0hZ+SrnKhW3x5WlYLvTXZpcWePYBku7rl2wn1RZu6uT0qCTeg==", + "node_modules/@streamparser/json": { + "version": "0.0.22", + "resolved": "https://registry.npmjs.org/@streamparser/json/-/json-0.0.22.tgz", + "integrity": "sha512-b6gTSBjJ8G8SuO3Gbbj+zXbVx8NSs1EbpbMKpzGLWMdkR+98McH9bEjSz3+0mPJf68c5nxa3CrJHp5EQNXM6zQ==", "dev": true, - "dependencies": { - "@sentry/hub": "5.30.0", - "@sentry/minimal": "5.30.0", - "@sentry/types": "5.30.0", - "@sentry/utils": "5.30.0", - "tslib": "^1.9.3" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/@sentry/core/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true + "license": "MIT" }, - "node_modules/@sentry/hub": { - "version": "5.30.0", - "resolved": "https://registry.npmjs.org/@sentry/hub/-/hub-5.30.0.tgz", - "integrity": "sha512-2tYrGnzb1gKz2EkMDQcfLrDTvmGcQPuWxLnJKXJvYTQDGLlEvi2tWz1VIHjunmOvJrB5aIQLhm+dcMRwFZDCqQ==", + "node_modules/@streamparser/json-node": { + "version": "0.0.22", + "resolved": "https://registry.npmjs.org/@streamparser/json-node/-/json-node-0.0.22.tgz", + "integrity": "sha512-sJT2ptNRwqB1lIsQrQlCoWk5rF4tif9wDh+7yluAGijJamAhrHGYpFB/Zg3hJeceoZypi74ftXk8DHzwYpbZSg==", "dev": true, + "license": "MIT", "dependencies": { - "@sentry/types": "5.30.0", - "@sentry/utils": "5.30.0", - "tslib": "^1.9.3" - }, - "engines": { - "node": ">=6" + "@streamparser/json": "^0.0.22" } }, - "node_modules/@sentry/hub/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true + "node_modules/@types/linkify-it": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@types/linkify-it/-/linkify-it-5.0.0.tgz", + "integrity": "sha512-sVDA58zAw4eWAffKOaQH5/5j3XeayukzDk+ewSsnv3p4yJEZHCCzMDiZM8e0OUrRvmpGZ85jf4yDHkHsgBNr9Q==", + "dev": true, + "license": "MIT" }, - "node_modules/@sentry/minimal": { - "version": "5.30.0", - "resolved": "https://registry.npmjs.org/@sentry/minimal/-/minimal-5.30.0.tgz", - "integrity": "sha512-BwWb/owZKtkDX+Sc4zCSTNcvZUq7YcH3uAVlmh/gtR9rmUvbzAA3ewLuB3myi4wWRAMEtny6+J/FN/x+2wn9Xw==", + "node_modules/@types/markdown-it": { + "version": "14.1.1", + "resolved": "https://registry.npmjs.org/@types/markdown-it/-/markdown-it-14.1.1.tgz", + "integrity": "sha512-4NpsnpYl2Gt1ljyBGrKMxFYAYvpqbnnkgP/i/g+NLpjEUa3obn1XJCur9YbEXKDAkaXqsR1LbDnGEJ0MmKFxfg==", "dev": true, + "license": "MIT", "dependencies": { - "@sentry/hub": "5.30.0", - "@sentry/types": "5.30.0", - "tslib": "^1.9.3" - }, - "engines": { - "node": ">=6" + "@types/linkify-it": "^5", + "@types/mdurl": "^2" } }, - "node_modules/@sentry/minimal/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true - }, - "node_modules/@sentry/node": { - "version": "5.30.0", - "resolved": "https://registry.npmjs.org/@sentry/node/-/node-5.30.0.tgz", - "integrity": "sha512-Br5oyVBF0fZo6ZS9bxbJZG4ApAjRqAnqFFurMVJJdunNb80brh7a5Qva2kjhm+U6r9NJAB5OmDyPkA1Qnt+QVg==", + "node_modules/@types/mdurl": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@types/mdurl/-/mdurl-2.0.0.tgz", + "integrity": "sha512-RGdgjQUZba5p6QEFAVx2OGb8rQDL/cPRG7GiedRzMcJ1tYnUANBncjbSB1NRGwbvjcPeikRABz2nshyPk1bhWg==", "dev": true, + "license": "MIT" + }, + "node_modules/@types/node": { + "version": "22.7.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.7.5.tgz", + "integrity": "sha512-jML7s2NAzMWc//QSJ1a3prpk78cOPchGvXJsC3C6R6PSMoooztvRVQEz89gmBTBY1SPMaqo5teB4uNHPdetShQ==", + "devOptional": true, + "license": "MIT", "dependencies": { - "@sentry/core": "5.30.0", - "@sentry/hub": "5.30.0", - "@sentry/tracing": "5.30.0", - "@sentry/types": "5.30.0", - "@sentry/utils": "5.30.0", - "cookie": "^0.4.1", - "https-proxy-agent": "^5.0.0", - "lru_map": "^0.3.3", - "tslib": "^1.9.3" - }, - "engines": { - "node": ">=6" + "undici-types": "~6.19.2" } }, - "node_modules/@sentry/node/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true + "node_modules/@yarnpkg/lockfile": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@yarnpkg/lockfile/-/lockfile-1.1.0.tgz", + "integrity": "sha512-GpSwvyXOcOOlV70vbnzjj4fW5xW/FdUF6nQEt1ENy7m4ZCczi1+/buVUPAqmGfqznsORNFzUMjctTIp8a9tuCQ==" }, - "node_modules/@sentry/tracing": { - "version": "5.30.0", - "resolved": "https://registry.npmjs.org/@sentry/tracing/-/tracing-5.30.0.tgz", - "integrity": "sha512-dUFowCr0AIMwiLD7Fs314Mdzcug+gBVo/+NCMyDw8tFxJkwWAKl7Qa2OZxLQ0ZHjakcj1hNKfCQJ9rhyfOl4Aw==", - "dev": true, - "dependencies": { - "@sentry/hub": "5.30.0", - "@sentry/minimal": "5.30.0", - "@sentry/types": "5.30.0", - "@sentry/utils": "5.30.0", - "tslib": "^1.9.3" + "node_modules/@zksync/contracts": { + "name": "era-contracts", + "version": "0.1.0", + "resolved": "git+ssh://git@github.com/matter-labs/era-contracts.git#446d391d34bdb48255d5f8fef8a8248925fc98b9", + "integrity": "sha512-F+mqGoqlXzBgGVeNDuzZOou4UvGoJC0aTLWLwMTKvKo0umUcR+Wocl1PRK9d+iavF1oAUgd5Ljpg+aKn8AwXQw==", + "workspaces": { + "packages": [ + "l1-contracts", + "l2-contracts", + "system-contracts", + "gas-bound-caller" + ], + "nohoist": [ + "**/@openzeppelin/**" + ] + } + }, + "node_modules/acorn": { + "version": "8.15.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", + "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", + "license": "MIT", + "bin": { + "acorn": "bin/acorn" }, "engines": { - "node": ">=6" + "node": ">=0.4.0" } }, - "node_modules/@sentry/tracing/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true - }, - "node_modules/@sentry/types": { - "version": "5.30.0", - "resolved": "https://registry.npmjs.org/@sentry/types/-/types-5.30.0.tgz", - "integrity": "sha512-R8xOqlSTZ+htqrfteCWU5Nk0CDN5ApUTvrlvBuiH1DyP6czDZ4ktbZB0hAgBlVcK0U+qpD3ag3Tqqpa5Q67rPw==", - "dev": true, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "license": "MIT", + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/adm-zip": { + "version": "0.4.16", + "resolved": "https://registry.npmjs.org/adm-zip/-/adm-zip-0.4.16.tgz", + "integrity": "sha512-TFi4HBKSGfIKsK5YCkKaaFG2m4PEDyViZmEwof3MTIgzimHLto6muaHVpbrljdIvIrFZzEq/p4nafOeLcYegrg==", + "dev": true, "engines": { - "node": ">=6" + "node": ">=0.3.0" } }, - "node_modules/@sentry/utils": { - "version": "5.30.0", - "resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-5.30.0.tgz", - "integrity": "sha512-zaYmoH0NWWtvnJjC9/CBseXMtKHm/tm40sz3YfJRxeQjyzRqNQPgivpd9R/oDJCYj999mzdW382p/qi2ypjLww==", + "node_modules/aes-js": { + "version": "4.0.0-beta.5", + "resolved": "https://registry.npmjs.org/aes-js/-/aes-js-4.0.0-beta.5.tgz", + "integrity": "sha512-G965FqalsNyrPqgEGON7nIx1e/OVENSgiEIzyC63haUMuvNnwIgIjMs52hlTCKhkBny7A2ORNlfY9Zu+jmGk1Q==", "dev": true, - "dependencies": { - "@sentry/types": "5.30.0", - "tslib": "^1.9.3" - }, + "license": "MIT" + }, + "node_modules/ansi-colors": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz", + "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==", "engines": { "node": ">=6" } }, - "node_modules/@sentry/utils/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true - }, - "node_modules/@solidity-parser/parser": { - "version": "0.14.5", - "resolved": "https://registry.npmjs.org/@solidity-parser/parser/-/parser-0.14.5.tgz", - "integrity": "sha512-6dKnHZn7fg/iQATVEzqyUOyEidbn05q7YA2mQ9hC0MMXhhV3/JrsxmFSYZAcr7j1yUP700LLhTruvJ3MiQmjJg==", + "node_modules/ansi-escape-sequences": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/ansi-escape-sequences/-/ansi-escape-sequences-4.1.0.tgz", + "integrity": "sha512-dzW9kHxH011uBsidTXd14JXgzye/YLb2LzeKZ4bsgl/Knwx8AtbSFkkGxagdNOoh0DlqHCmfiEjWKBaqjOanVw==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { - "antlr4ts": "^0.5.0-alpha.4" + "array-back": "^3.0.1" + }, + "engines": { + "node": ">=8.0.0" } }, - "node_modules/@tsconfig/node10": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz", - "integrity": "sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==", - "dev": true, - "peer": true + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "engines": { + "node": ">=8" + } }, - "node_modules/@tsconfig/node12": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", - "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", - "dev": true, - "peer": true + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" }, - "node_modules/@tsconfig/node14": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", - "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", + "node_modules/array-back": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/array-back/-/array-back-3.1.0.tgz", + "integrity": "sha512-TkuxA4UCOvxuDK6NZYXCalszEzj+TLszyASooky+i742l9TqsOdYCMJJupxRic61hwquNtppB3hgcuq9SVSH1Q==", "dev": true, - "peer": true + "engines": { + "node": ">=6" + } }, - "node_modules/@tsconfig/node16": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz", - "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==", - "dev": true, - "peer": true + "node_modules/array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "engines": { + "node": ">=8" + } }, - "node_modules/@typechain/ethers-v6": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/@typechain/ethers-v6/-/ethers-v6-0.5.1.tgz", - "integrity": "sha512-F+GklO8jBWlsaVV+9oHaPh5NJdd6rAKN4tklGfInX1Q7h0xPgVLP39Jl3eCulPB5qexI71ZFHwbljx4ZXNfouA==", - "dev": true, + "node_modules/assertion-error": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", + "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==", + "engines": { + "node": "*" + } + }, + "node_modules/at-least-node": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", + "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", + "license": "ISC", + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + }, + "node_modules/bech32": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/bech32/-/bech32-1.1.4.tgz", + "integrity": "sha512-s0IrSOzLlbvX7yp4WBfPITzpAU8sqQcpsmwXDiKwrG4r491vwCO/XpejasRNl0piBMe/DvP4Tz0mIS/X1DPJBQ==" + }, + "node_modules/better-path-resolve": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/better-path-resolve/-/better-path-resolve-1.0.0.tgz", + "integrity": "sha512-pbnl5XzGBdrFU/wT4jqmJVPn2B6UHPBOhzMQkY/SPUPB6QtUXtmBHBIwCbXJol93mOpGMnQyP/+BB19q04xj7g==", "license": "MIT", - "peer": true, "dependencies": { - "lodash": "^4.17.15", - "ts-essentials": "^7.0.1" + "is-windows": "^1.0.0" }, - "peerDependencies": { - "ethers": "6.x", - "typechain": "^8.3.2", - "typescript": ">=4.7.0" + "engines": { + "node": ">=4" } }, - "node_modules/@typechain/hardhat": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/@typechain/hardhat/-/hardhat-9.1.0.tgz", - "integrity": "sha512-mtaUlzLlkqTlfPwB3FORdejqBskSnh+Jl8AIJGjXNAQfRQ4ofHADPl1+oU7Z3pAJzmZbUXII8MhOLQltcHgKnA==", + "node_modules/bluebird": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", + "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==", "dev": true, - "license": "MIT", - "peer": true, + "license": "MIT" + }, + "node_modules/bn.js": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.1.tgz", + "integrity": "sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==" + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "dependencies": { - "fs-extra": "^9.1.0" - }, - "peerDependencies": { - "@typechain/ethers-v6": "^0.5.1", - "ethers": "^6.1.0", - "hardhat": "^2.9.9", - "typechain": "^8.3.2" + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" } }, - "node_modules/@typechain/hardhat/node_modules/fs-extra": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", - "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", - "dev": true, - "license": "MIT", - "peer": true, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dependencies": { - "at-least-node": "^1.0.0", - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" + "fill-range": "^7.1.1" }, "engines": { - "node": ">=10" + "node": ">=8" } }, - "node_modules/@types/bn.js": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/@types/bn.js/-/bn.js-5.2.0.tgz", - "integrity": "sha512-DLbJ1BPqxvQhIGbeu8VbUC1DiAiahHtAYvA0ZEAa4P31F7IaArc8z3C3BRQdWX4mtLQuABG4yzp76ZrS02Ui1Q==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "@types/node": "*" + "node_modules/brorand": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", + "integrity": "sha512-cKV8tMCEpQs4hK/ik71d6LrPOnpkpGBR0wzxqr68g2m/LB2GxVYQroAjMJZRVM1Y4BCjCKc3vAamxSzOY2RP+w==" + }, + "node_modules/bufio": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/bufio/-/bufio-1.2.1.tgz", + "integrity": "sha512-9oR3zNdupcg/Ge2sSHQF3GX+kmvL/fTPvD0nd5AGLq8SjUYnTz+SlFjK/GXidndbZtIj+pVKXiWeR9w6e9wKCA==", + "engines": { + "node": ">=14.0.0" } }, - "node_modules/@types/chai": { - "version": "4.3.20", - "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.3.20.tgz", - "integrity": "sha512-/pC9HAB5I/xMlc5FP77qjCnI16ChlJfW0tGa0IUcFn38VJrTV6DeZ60NU5KZBtaOZqjdpwTWohz5HU1RrhiYxQ==", + "node_modules/cache-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/cache-point/-/cache-point-2.0.0.tgz", + "integrity": "sha512-4gkeHlFpSKgm3vm2gJN5sPqfmijYRFYCQ6tv5cLw0xVmT6r1z1vd4FNnpuOREco3cBs1G709sZ72LdgddKvL5w==", "dev": true, "license": "MIT", - "peer": true + "dependencies": { + "array-back": "^4.0.1", + "fs-then-native": "^2.0.0", + "mkdirp2": "^1.0.4" + }, + "engines": { + "node": ">=8" + } }, - "node_modules/@types/chai-as-promised": { - "version": "7.1.8", - "resolved": "https://registry.npmjs.org/@types/chai-as-promised/-/chai-as-promised-7.1.8.tgz", - "integrity": "sha512-ThlRVIJhr69FLlh6IctTXFkmhtP3NpMZ2QGq69StYLyKZFp/HOp1VdKZj7RvfNWYYcJ1xlbLGLLWj1UvP5u/Gw==", + "node_modules/cache-point/node_modules/array-back": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/array-back/-/array-back-4.0.2.tgz", + "integrity": "sha512-NbdMezxqf94cnNfWLL7V/im0Ub+Anbb0IoZhvzie8+4HJ4nMQuzHuy49FkGYCJK2yAloZ3meiB6AVMClbrI1vg==", "dev": true, "license": "MIT", - "peer": true, - "dependencies": { - "@types/chai": "*" + "engines": { + "node": ">=8" } }, - "node_modules/@types/concat-stream": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/@types/concat-stream/-/concat-stream-1.6.1.tgz", - "integrity": "sha512-eHE4cQPoj6ngxBZMvVf6Hw7Mh4jMW4U9lpGmS5GBPB9RYxlFg+CHaVN7ErNY4W9XfLIEn20b4VDYaIrbq0q4uA==", - "dev": true, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", "license": "MIT", - "peer": true, - "dependencies": { - "@types/node": "*" + "engines": { + "node": ">=6" } }, - "node_modules/@types/form-data": { - "version": "0.0.33", - "resolved": "https://registry.npmjs.org/@types/form-data/-/form-data-0.0.33.tgz", - "integrity": "sha512-8BSvG1kGm83cyJITQMZSulnl6QV8jqAGreJsc5tPu1Jq0vTSOiY/k24Wx82JRpWwZSqrala6sd5rWi6aNXvqcw==", + "node_modules/catharsis": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/catharsis/-/catharsis-0.9.0.tgz", + "integrity": "sha512-prMTQVpcns/tzFgFVkVp6ak6RykZyWb3gu8ckUpd6YkTlacOd3DXGJjIpD4Q6zJirizvaiAjSSHlOsA+6sNh2A==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { - "@types/node": "*" + "lodash": "^4.17.15" + }, + "engines": { + "node": ">= 10" } }, - "node_modules/@types/fs-extra": { - "version": "11.0.4", - "resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-11.0.4.tgz", - "integrity": "sha512-yTbItCNreRooED33qjunPthRcSjERP1r4MqCZc7wv0u2sUkzTFp45tgUfS5+r7FrZPdmCCNflLhVSP/o+SemsQ==", - "dev": true, - "license": "MIT", + "node_modules/chai": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/chai/-/chai-4.4.1.tgz", + "integrity": "sha512-13sOfMv2+DWduEU+/xbun3LScLoqN17nBeTLUsmDfKdoiC1fr0n9PU4guu4AhRcOVFk/sW8LyZWHuhWtQZiF+g==", "dependencies": { - "@types/jsonfile": "*", - "@types/node": "*" + "assertion-error": "^1.1.0", + "check-error": "^1.0.3", + "deep-eql": "^4.1.3", + "get-func-name": "^2.0.2", + "loupe": "^2.3.6", + "pathval": "^1.1.1", + "type-detect": "^4.0.8" + }, + "engines": { + "node": ">=4" } }, - "node_modules/@types/glob": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.2.0.tgz", - "integrity": "sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA==", + "node_modules/chalk": { + "version": "5.6.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.6.2.tgz", + "integrity": "sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==", "dev": true, "license": "MIT", - "peer": true, - "dependencies": { - "@types/minimatch": "*", - "@types/node": "*" + "engines": { + "node": "^12.17.0 || ^14.13 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/@types/jsdoc-to-markdown": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/@types/jsdoc-to-markdown/-/jsdoc-to-markdown-7.0.6.tgz", - "integrity": "sha512-FB/oOam8P4WoGbkfLu6ciektQhqlVuL4VsbrGJp3/YDAlRGcoiOhXDnnPL73TtHYMsDZ7NHYhCGJn4hu0TZdHg==", - "dev": true, + "node_modules/chardet": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/chardet/-/chardet-2.1.0.tgz", + "integrity": "sha512-bNFETTG/pM5ryzQ9Ad0lJOTa6HWD/YsScAR3EnCPZRPlQh77JocYktSHOUHelyhm8IARL+o4c4F1bP5KVOjiRA==", "license": "MIT" }, - "node_modules/@types/jsonfile": { - "version": "6.1.4", - "resolved": "https://registry.npmjs.org/@types/jsonfile/-/jsonfile-6.1.4.tgz", - "integrity": "sha512-D5qGUYwjvnNNextdU59/+fI+spnwtTFmyQP0h+PfIOSkNfpU6AOICUOkm4i0OnSk+NyjdPJrxCDro0sJsWlRpQ==", + "node_modules/check-error": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.3.tgz", + "integrity": "sha512-iKEoDYaRmd1mxM90a2OEfWhjsjPpYPuQ+lMYsoxB126+t8fw7ySEO48nmDg5COTjxDI65/Y2OWpeEHk3ZOe8zg==", + "dependencies": { + "get-func-name": "^2.0.2" + }, + "engines": { + "node": "*" + } + }, + "node_modules/chokidar": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz", + "integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==", "dev": true, "license": "MIT", "dependencies": { - "@types/node": "*" + "readdirp": "^4.0.1" + }, + "engines": { + "node": ">= 14.16.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" } }, - "node_modules/@types/linkify-it": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@types/linkify-it/-/linkify-it-5.0.0.tgz", - "integrity": "sha512-sVDA58zAw4eWAffKOaQH5/5j3XeayukzDk+ewSsnv3p4yJEZHCCzMDiZM8e0OUrRvmpGZ85jf4yDHkHsgBNr9Q==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/markdown-it": { - "version": "14.1.1", - "resolved": "https://registry.npmjs.org/@types/markdown-it/-/markdown-it-14.1.1.tgz", - "integrity": "sha512-4NpsnpYl2Gt1ljyBGrKMxFYAYvpqbnnkgP/i/g+NLpjEUa3obn1XJCur9YbEXKDAkaXqsR1LbDnGEJ0MmKFxfg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/linkify-it": "^5", - "@types/mdurl": "^2" - } - }, - "node_modules/@types/mdurl": { + "node_modules/ci-info": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@types/mdurl/-/mdurl-2.0.0.tgz", - "integrity": "sha512-RGdgjQUZba5p6QEFAVx2OGb8rQDL/cPRG7GiedRzMcJ1tYnUANBncjbSB1NRGwbvjcPeikRABz2nshyPk1bhWg==", - "dev": true, - "license": "MIT" - }, - "node_modules/@types/minimatch": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-5.1.2.tgz", - "integrity": "sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA==", - "dev": true, - "license": "MIT", - "peer": true + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", + "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==" }, - "node_modules/@types/mocha": { - "version": "10.0.10", - "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-10.0.10.tgz", - "integrity": "sha512-xPyYSz1cMPnJQhl0CLMH68j3gprKZaTjG3s5Vi+fDgx+uhG9NOXwbVt52eFS8ECyXhyKcjDLCBEqBExKuiZb7Q==", + "node_modules/collect-all": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/collect-all/-/collect-all-1.0.4.tgz", + "integrity": "sha512-RKZhRwJtJEP5FWul+gkSMEnaK6H3AGPTTWOiRimCcs+rc/OmQE3Yhy1Q7A7KsdkG3ZXVdZq68Y6ONSdvkeEcKA==", "dev": true, "license": "MIT", - "peer": true - }, - "node_modules/@types/node": { - "version": "22.7.5", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.7.5.tgz", - "integrity": "sha512-jML7s2NAzMWc//QSJ1a3prpk78cOPchGvXJsC3C6R6PSMoooztvRVQEz89gmBTBY1SPMaqo5teB4uNHPdetShQ==", - "devOptional": true, - "license": "MIT", "dependencies": { - "undici-types": "~6.19.2" + "stream-connect": "^1.0.2", + "stream-via": "^1.0.4" + }, + "engines": { + "node": ">=0.10.0" } }, - "node_modules/@types/pbkdf2": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/@types/pbkdf2/-/pbkdf2-3.1.2.tgz", - "integrity": "sha512-uRwJqmiXmh9++aSu1VNEn3iIxWOhd8AHXNSdlaLfdAAdSTY9jYVeGWnzejM3dvrkbqE3/hyQkQQ29IFATEGlew==", + "node_modules/command-line-args": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/command-line-args/-/command-line-args-5.2.1.tgz", + "integrity": "sha512-H4UfQhZyakIjC74I9d34fGYDwk3XpSr17QhEd0Q3I9Xq1CETHo4Hcuo87WyWHpAF1aSLjLRf5lD9ZGX2qStUvg==", "dev": true, - "license": "MIT", - "peer": true, "dependencies": { - "@types/node": "*" + "array-back": "^3.1.0", + "find-replace": "^3.0.0", + "lodash.camelcase": "^4.3.0", + "typical": "^4.0.0" + }, + "engines": { + "node": ">=4.0.0" } }, - "node_modules/@types/prettier": { - "version": "2.7.3", - "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.7.3.tgz", - "integrity": "sha512-+68kP9yzs4LMp7VNh8gdzMSPZFL44MLGqiHWvttYJe+6qnuVr4Ek9wSBQoveqY/r+LwjCcU29kNVkidwim+kYA==", - "dev": true, - "license": "MIT", - "peer": true - }, - "node_modules/@types/qs": { - "version": "6.14.0", - "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.14.0.tgz", - "integrity": "sha512-eOunJqu0K1923aExK6y8p6fsihYEn/BYuQ4g0CxAAgFc4b/ZLN4CrsRZ55srTdqoiLzU2B2evC+apEIxprEzkQ==", - "dev": true, - "license": "MIT", - "peer": true - }, - "node_modules/@types/secp256k1": { - "version": "4.0.7", - "resolved": "https://registry.npmjs.org/@types/secp256k1/-/secp256k1-4.0.7.tgz", - "integrity": "sha512-Rcvjl6vARGAKRO6jHeKMatGrvOMGrR/AR11N1x2LqintPCyDZ7NBhrh238Z2VZc7aM7KIwnFpFQ7fnfK4H/9Qw==", + "node_modules/command-line-tool": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/command-line-tool/-/command-line-tool-0.8.0.tgz", + "integrity": "sha512-Xw18HVx/QzQV3Sc5k1vy3kgtOeGmsKIqwtFFoyjI4bbcpSgnw2CWVULvtakyw4s6fhyAdI6soQQhXc2OzJy62g==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@yarnpkg/lockfile": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@yarnpkg/lockfile/-/lockfile-1.1.0.tgz", - "integrity": "sha512-GpSwvyXOcOOlV70vbnzjj4fW5xW/FdUF6nQEt1ENy7m4ZCczi1+/buVUPAqmGfqznsORNFzUMjctTIp8a9tuCQ==" - }, - "node_modules/@zksync/contracts": { - "name": "era-contracts", - "version": "0.1.0", - "resolved": "git+ssh://git@github.com/matter-labs/era-contracts.git#446d391d34bdb48255d5f8fef8a8248925fc98b9", - "integrity": "sha512-F+mqGoqlXzBgGVeNDuzZOou4UvGoJC0aTLWLwMTKvKo0umUcR+Wocl1PRK9d+iavF1oAUgd5Ljpg+aKn8AwXQw==", - "workspaces": { - "packages": [ - "l1-contracts", - "l2-contracts", - "system-contracts", - "gas-bound-caller" - ], - "nohoist": [ - "**/@openzeppelin/**" - ] + "ansi-escape-sequences": "^4.0.0", + "array-back": "^2.0.0", + "command-line-args": "^5.0.0", + "command-line-usage": "^4.1.0", + "typical": "^2.6.1" + }, + "engines": { + "node": ">=4.0.0" } }, - "node_modules/abbrev": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.0.9.tgz", - "integrity": "sha512-LEyx4aLEC3x6T0UguF6YILf+ntvmOaWsVfENmIW0E9H09vKlLDGelMjjSm0jkDHALj8A8quZ/HapKNigzwge+Q==", + "node_modules/command-line-tool/node_modules/array-back": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/array-back/-/array-back-2.0.0.tgz", + "integrity": "sha512-eJv4pLLufP3g5kcZry0j6WXpIbzYw9GUB4mVJZno9wfwiBxbizTnHCw3VJb07cBihbFX48Y7oSrW9y+gt4glyw==", "dev": true, - "license": "ISC", - "peer": true - }, - "node_modules/acorn": { - "version": "8.15.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", - "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", "license": "MIT", - "bin": { - "acorn": "bin/acorn" + "dependencies": { + "typical": "^2.6.1" }, "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "license": "MIT", - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + "node": ">=4" } }, - "node_modules/acorn-walk": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.2.tgz", - "integrity": "sha512-cjkyv4OtNCIeqhHrfS81QWXoCBPExR/J62oyEqepVw8WaQeSqpW2uhuLPh1m9eWhDuOo/jUXVTlifvesOWp/4A==", + "node_modules/command-line-tool/node_modules/command-line-usage": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/command-line-usage/-/command-line-usage-4.1.0.tgz", + "integrity": "sha512-MxS8Ad995KpdAC0Jopo/ovGIroV/m0KHwzKfXxKag6FHOkGsH8/lv5yjgablcRxCJJC0oJeUMuO/gmaq+Wq46g==", "dev": true, - "peer": true, + "license": "MIT", + "dependencies": { + "ansi-escape-sequences": "^4.0.0", + "array-back": "^2.0.0", + "table-layout": "^0.4.2", + "typical": "^2.6.1" + }, "engines": { - "node": ">=0.4.0" + "node": ">=4.0.0" } }, - "node_modules/adm-zip": { - "version": "0.4.16", - "resolved": "https://registry.npmjs.org/adm-zip/-/adm-zip-0.4.16.tgz", - "integrity": "sha512-TFi4HBKSGfIKsK5YCkKaaFG2m4PEDyViZmEwof3MTIgzimHLto6muaHVpbrljdIvIrFZzEq/p4nafOeLcYegrg==", + "node_modules/command-line-tool/node_modules/reduce-flatten": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/reduce-flatten/-/reduce-flatten-1.0.1.tgz", + "integrity": "sha512-j5WfFJfc9CoXv/WbwVLHq74i/hdTUpy+iNC534LxczMRP67vJeK3V9JOdnL0N1cIRbn9mYhE2yVjvvKXDxvNXQ==", "dev": true, + "license": "MIT", "engines": { - "node": ">=0.3.0" + "node": ">=0.10.0" } }, - "node_modules/aes-js": { - "version": "4.0.0-beta.5", - "resolved": "https://registry.npmjs.org/aes-js/-/aes-js-4.0.0-beta.5.tgz", - "integrity": "sha512-G965FqalsNyrPqgEGON7nIx1e/OVENSgiEIzyC63haUMuvNnwIgIjMs52hlTCKhkBny7A2ORNlfY9Zu+jmGk1Q==", + "node_modules/command-line-tool/node_modules/table-layout": { + "version": "0.4.5", + "resolved": "https://registry.npmjs.org/table-layout/-/table-layout-0.4.5.tgz", + "integrity": "sha512-zTvf0mcggrGeTe/2jJ6ECkJHAQPIYEwDoqsiqBjI24mvRmQbInK5jq33fyypaCBxX08hMkfmdOqj6haT33EqWw==", "dev": true, "license": "MIT", - "peer": true - }, - "node_modules/agent-base": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", - "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", - "dev": true, "dependencies": { - "debug": "4" + "array-back": "^2.0.0", + "deep-extend": "~0.6.0", + "lodash.padend": "^4.6.1", + "typical": "^2.6.1", + "wordwrapjs": "^3.0.0" }, "engines": { - "node": ">= 6.0.0" + "node": ">=4.0.0" } }, - "node_modules/aggregate-error": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", - "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==", + "node_modules/command-line-tool/node_modules/typical": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/typical/-/typical-2.6.1.tgz", + "integrity": "sha512-ofhi8kjIje6npGozTip9Fr8iecmYfEbS06i0JnIg+rh51KakryWF4+jX8lLKZVhy6N+ID45WYSFCxPOdTWCzNg==", "dev": true, - "dependencies": { - "clean-stack": "^2.0.0", - "indent-string": "^4.0.0" - }, - "engines": { - "node": ">=8" - } + "license": "MIT" }, - "node_modules/ajv": { - "version": "8.17.1", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", - "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", + "node_modules/command-line-tool/node_modules/wordwrapjs": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/wordwrapjs/-/wordwrapjs-3.0.0.tgz", + "integrity": "sha512-mO8XtqyPvykVCsrwj5MlOVWvSnCdT+C+QVbm6blradR7JExAhbkZ7hZ9A+9NUtwzSqrlUo9a67ws0EiILrvRpw==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { - "fast-deep-equal": "^3.1.3", - "fast-uri": "^3.0.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2" + "reduce-flatten": "^1.0.1", + "typical": "^2.6.1" }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/epoberezkin" + "engines": { + "node": ">=4.0.0" } }, - "node_modules/amdefine": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz", - "integrity": "sha512-S2Hw0TtNkMJhIabBwIojKL9YHO5T0n5eNqWJ7Lrlel/zDbftQpxpapi8tZs3X1HWa+u+QeydGmzzNU0m09+Rcg==", + "node_modules/common-sequence": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/common-sequence/-/common-sequence-2.0.2.tgz", + "integrity": "sha512-jAg09gkdkrDO9EWTdXfv80WWH3yeZl5oT69fGfedBNS9pXUKYInVJ1bJ+/ht2+Moeei48TmSbQDYMc8EOx9G0g==", "dev": true, - "license": "BSD-3-Clause OR MIT", - "optional": true, - "peer": true, + "license": "MIT", "engines": { - "node": ">=0.4.2" + "node": ">=8" } }, - "node_modules/ansi-align": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-3.0.1.tgz", - "integrity": "sha512-IOfwwBF5iczOjp/WeY4YxyjqAFMQoZufdQWDd19SEExbVLNXqvpzSJ/M7Za4/sCPmQ0+GRquoA7bGcINcxew6w==", + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" + }, + "node_modules/config-master": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/config-master/-/config-master-3.1.0.tgz", + "integrity": "sha512-n7LBL1zBzYdTpF1mx5DNcZnZn05CWIdsdvtPL4MosvqbBUK3Rq6VWEtGUuF3Y0s9/CIhMejezqlSkP6TnCJ/9g==", "dev": true, + "license": "MIT", "dependencies": { - "string-width": "^4.1.0" - } - }, - "node_modules/ansi-colors": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz", - "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==", - "engines": { - "node": ">=6" + "walk-back": "^2.0.1" } }, - "node_modules/ansi-escape-sequences": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/ansi-escape-sequences/-/ansi-escape-sequences-4.1.0.tgz", - "integrity": "sha512-dzW9kHxH011uBsidTXd14JXgzye/YLb2LzeKZ4bsgl/Knwx8AtbSFkkGxagdNOoh0DlqHCmfiEjWKBaqjOanVw==", + "node_modules/config-master/node_modules/walk-back": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/walk-back/-/walk-back-2.0.1.tgz", + "integrity": "sha512-Nb6GvBR8UWX1D+Le+xUq0+Q1kFmRBIWVrfLnQAOmcpEzA9oAxwJ9gIr36t9TWYfzvWRvuMtjHiVsJYEkXWaTAQ==", "dev": true, "license": "MIT", - "dependencies": { - "array-back": "^3.0.1" - }, "engines": { - "node": ">=8.0.0" + "node": ">=0.10.0" } }, - "node_modules/ansi-escapes": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", - "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", - "dev": true, + "node_modules/cross-spawn": { + "version": "6.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.6.tgz", + "integrity": "sha512-VqCUuhcd1iB+dsv8gxPttb5iZh/D0iubSP21g36KXdEuf6I5JiioesUVjpCdHV9MZRUfVFlvwtIUyPfxo5trtw==", "dependencies": { - "type-fest": "^0.21.3" + "nice-try": "^1.0.4", + "path-key": "^2.0.1", + "semver": "^5.5.0", + "shebang-command": "^1.2.0", + "which": "^1.2.9" }, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=4.8" } }, - "node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "engines": { - "node": ">=8" + "node_modules/cross-spawn/node_modules/semver": { + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", + "bin": { + "semver": "bin/semver" } }, - "node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "license": "MIT", - "peer": true, + "node_modules/dataloader": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/dataloader/-/dataloader-1.4.0.tgz", + "integrity": "sha512-68s5jYdlvasItOJnCuI2Q9s4q98g0pCyL3HrcKJu8KNugUl8ahgmZYg38ysLTgQjjXX3H8CJLkAvWrclWfcalw==" + }, + "node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", "dependencies": { - "color-convert": "^1.9.0" + "ms": "2.1.2" }, "engines": { - "node": ">=4" + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } } }, - "node_modules/antlr4ts": { - "version": "0.5.0-alpha.4", - "resolved": "https://registry.npmjs.org/antlr4ts/-/antlr4ts-0.5.0-alpha.4.tgz", - "integrity": "sha512-WPQDt1B74OfPv/IMS2ekXAKkTZIHl88uMetg6q3OTqgFxZ/dxDXI0EWLyZid/1Pe6hTftyg5N7gel5wNAGxXyQ==", - "dev": true, - "license": "BSD-3-Clause", - "peer": true - }, - "node_modules/anymatch": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", - "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", - "dev": true, + "node_modules/deep-eql": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-4.1.3.tgz", + "integrity": "sha512-WaEtAOpRA1MQ0eohqZjpGD8zdI0Ovsm8mmFhaDN8dvDZzyoUMcYDnf5Y6iu7HTXxf8JDS23qWa4a+hKCDyOPzw==", "dependencies": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" + "type-detect": "^4.0.0" }, "engines": { - "node": ">= 8" + "node": ">=6" } }, - "node_modules/arg": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", - "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", + "node_modules/deep-extend": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", + "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", "dev": true, - "peer": true + "engines": { + "node": ">=4.0.0" + } }, - "node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" + "node_modules/detect-indent": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-6.1.0.tgz", + "integrity": "sha512-reYkTUJAZb9gUuZ2RvVCNhVHdg62RHnJ7WJl8ftMi4diZ6NWlciOzQN88pUhSELEwflJht4oQDv0F0BMlwaYtA==", + "license": "MIT", + "engines": { + "node": ">=8" + } }, - "node_modules/array-back": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-3.1.0.tgz", - "integrity": "sha512-TkuxA4UCOvxuDK6NZYXCalszEzj+TLszyASooky+i742l9TqsOdYCMJJupxRic61hwquNtppB3hgcuq9SVSH1Q==", - "dev": true, + "node_modules/dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "dependencies": { + "path-type": "^4.0.0" + }, "engines": { - "node": ">=6" + "node": ">=8" } }, - "node_modules/array-buffer-byte-length": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.1.tgz", - "integrity": "sha512-ahC5W1xgou+KTXix4sAO8Ki12Q+jf4i0+tmk3sC+zgcynshkHxzpXdImBehiUYKKKDwvfFiJl1tZt6ewscS1Mg==", + "node_modules/dmd": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/dmd/-/dmd-6.2.0.tgz", + "integrity": "sha512-uXWxLF1H7TkUAuoHK59/h/ts5cKavm2LnhrIgJWisip4BVzPoXavlwyoprFFn2CzcahKYgvkfaebS6oxzgflkg==", "dev": true, + "license": "MIT", "dependencies": { - "call-bind": "^1.0.5", - "is-array-buffer": "^3.0.4" + "array-back": "^6.2.2", + "cache-point": "^2.0.0", + "common-sequence": "^2.0.2", + "file-set": "^4.0.2", + "handlebars": "^4.7.7", + "marked": "^4.2.3", + "object-get": "^2.1.1", + "reduce-flatten": "^3.0.1", + "reduce-unique": "^2.0.1", + "reduce-without": "^1.0.1", + "test-value": "^3.0.0", + "walk-back": "^5.1.0" }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=12" } }, - "node_modules/array-union": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", - "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "node_modules/dmd/node_modules/array-back": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/array-back/-/array-back-6.2.2.tgz", + "integrity": "sha512-gUAZ7HPyb4SJczXAMUXMGAvI976JoK3qEx9v1FTmeYuJj0IBiaKttG1ydtGKdkfqWkIkouke7nG8ufGy77+Cvw==", + "dev": true, + "license": "MIT", "engines": { - "node": ">=8" + "node": ">=12.17" } }, - "node_modules/array-uniq": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz", - "integrity": "sha512-MNha4BWQ6JbwhFhj03YK552f7cb3AzoE8SzeljgChvL1dl3IcvggXVz1DilzySZkCja+CXuZbdW7yATchWn8/Q==", + "node_modules/dmd/node_modules/reduce-flatten": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/reduce-flatten/-/reduce-flatten-3.0.1.tgz", + "integrity": "sha512-bYo+97BmUUOzg09XwfkwALt4PQH1M5L0wzKerBt6WLm3Fhdd43mMS89HiT1B9pJIqko/6lWx3OnV4J9f2Kqp5Q==", "dev": true, "license": "MIT", - "peer": true, "engines": { - "node": ">=0.10.0" + "node": ">=8" } }, - "node_modules/array.prototype.findlast": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/array.prototype.findlast/-/array.prototype.findlast-1.2.5.tgz", - "integrity": "sha512-CVvd6FHg1Z3POpBLxO6E6zr+rSKEQ9L6rZHAaY7lLfhKsWYUBBOuMs0e9o24oopj6H+geRCX0YJ+TJLBK2eHyQ==", + "node_modules/dotenv": { + "version": "16.4.5", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.5.tgz", + "integrity": "sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==", "dev": true, - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.2", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.0.0", - "es-shim-unscopables": "^1.0.2" - }, "engines": { - "node": ">= 0.4" + "node": ">=12" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://dotenvx.com" } }, - "node_modules/arraybuffer.prototype.slice": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.3.tgz", - "integrity": "sha512-bMxMKAjg13EBSVscxTaYA4mRc5t1UAXa2kXiGTNfZ079HIWXEkKmkgFrh/nJqamaLSrXO5H4WFFkPEaLJWbs3A==", - "dev": true, + "node_modules/elliptic": { + "version": "6.5.4", + "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz", + "integrity": "sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==", "dependencies": { - "array-buffer-byte-length": "^1.0.1", - "call-bind": "^1.0.5", - "define-properties": "^1.2.1", - "es-abstract": "^1.22.3", - "es-errors": "^1.2.1", - "get-intrinsic": "^1.2.3", - "is-array-buffer": "^3.0.4", - "is-shared-array-buffer": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "bn.js": "^4.11.9", + "brorand": "^1.1.0", + "hash.js": "^1.0.0", + "hmac-drbg": "^1.0.1", + "inherits": "^2.0.4", + "minimalistic-assert": "^1.0.1", + "minimalistic-crypto-utils": "^1.0.1" } }, - "node_modules/asap": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", - "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==", - "dev": true, - "license": "MIT", - "peer": true + "node_modules/elliptic/node_modules/bn.js": { + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" }, - "node_modules/assertion-error": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", - "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==", + "node_modules/enquirer": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.4.1.tgz", + "integrity": "sha512-rRqJg/6gd538VHvR3PSrdRBb/1Vy2YfzHqzvbhGIQpDRKIa4FgV/54b5Q1xYSxOOwKvjXweS26E0Q+nAMwp2pQ==", + "dependencies": { + "ansi-colors": "^4.1.1", + "strip-ansi": "^6.0.1" + }, "engines": { - "node": "*" + "node": ">=8.6" } }, - "node_modules/astral-regex": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", - "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", + "node_modules/entities": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", + "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", "dev": true, - "license": "MIT", - "peer": true, + "license": "BSD-2-Clause", "engines": { - "node": ">=8" + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" } }, - "node_modules/async": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", - "integrity": "sha512-nSVgobk4rv61R9PUSDtYt7mPVB2olxNR5RWJcAsH676/ef11bUZwvu7+RGYrYauVdDPcO519v68wRhXQtxsV9w==", + "node_modules/env-paths": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", + "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", "dev": true, "license": "MIT", - "peer": true + "engines": { + "node": ">=6" + } }, - "node_modules/asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "node_modules/esbuild": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.3.tgz", + "integrity": "sha512-8VwMnyGCONIs6cWue2IdpHxHnAjzxnw2Zr7MkVxB2vjmQ2ivqGFb4LEG3SMnv0Gb2F/G/2yA8zUaiL1gywDCCg==", "dev": true, + "hasInstallScript": true, "license": "MIT", - "peer": true + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.27.3", + "@esbuild/android-arm": "0.27.3", + "@esbuild/android-arm64": "0.27.3", + "@esbuild/android-x64": "0.27.3", + "@esbuild/darwin-arm64": "0.27.3", + "@esbuild/darwin-x64": "0.27.3", + "@esbuild/freebsd-arm64": "0.27.3", + "@esbuild/freebsd-x64": "0.27.3", + "@esbuild/linux-arm": "0.27.3", + "@esbuild/linux-arm64": "0.27.3", + "@esbuild/linux-ia32": "0.27.3", + "@esbuild/linux-loong64": "0.27.3", + "@esbuild/linux-mips64el": "0.27.3", + "@esbuild/linux-ppc64": "0.27.3", + "@esbuild/linux-riscv64": "0.27.3", + "@esbuild/linux-s390x": "0.27.3", + "@esbuild/linux-x64": "0.27.3", + "@esbuild/netbsd-arm64": "0.27.3", + "@esbuild/netbsd-x64": "0.27.3", + "@esbuild/openbsd-arm64": "0.27.3", + "@esbuild/openbsd-x64": "0.27.3", + "@esbuild/openharmony-arm64": "0.27.3", + "@esbuild/sunos-x64": "0.27.3", + "@esbuild/win32-arm64": "0.27.3", + "@esbuild/win32-ia32": "0.27.3", + "@esbuild/win32-x64": "0.27.3" + } }, - "node_modules/at-least-node": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", - "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==", - "license": "ISC", + "node_modules/eslint-visitor-keys": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", + "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", + "license": "Apache-2.0", "engines": { - "node": ">= 4.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, - "node_modules/available-typed-arrays": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", - "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==", - "dev": true, + "node_modules/espree": { + "version": "10.4.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz", + "integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==", + "license": "BSD-2-Clause", "dependencies": { - "possible-typed-array-names": "^1.0.0" + "acorn": "^8.15.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^4.2.1" }, "engines": { - "node": ">= 0.4" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://opencollective.com/eslint" } }, - "node_modules/axios": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.12.2.tgz", - "integrity": "sha512-vMJzPewAlRyOgxV2dU0Cuz2O8zzzx9VYtbJOaBgXFeLc4IV/Eg50n4LowmehOOR61S8ZMpc2K5Sa7g6A4jfkUw==", + "node_modules/ethereum-cryptography": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-2.2.1.tgz", + "integrity": "sha512-r/W8lkHSiTLxUxW8Rf3u4HGB0xQweG2RyETjywylKZSzLWoWAijRz8WCuOtJ6wah+avllXBqZuk29HCCvhEIRg==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { - "follow-redirects": "^1.15.6", - "form-data": "^4.0.4", - "proxy-from-env": "^1.1.0" + "@noble/curves": "1.4.2", + "@noble/hashes": "1.4.0", + "@scure/bip32": "1.4.0", + "@scure/bip39": "1.3.0" } }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" - }, - "node_modules/base-x": { - "version": "3.0.11", - "resolved": "https://registry.npmjs.org/base-x/-/base-x-3.0.11.tgz", - "integrity": "sha512-xz7wQ8xDhdyP7tQxwdteLYeFfS68tSMNCZ/Y37WJ4bhGfKPpqEIlmIyueQHqOyoPhE6xNUqjzRr8ra0eF9VRvA==", + "node_modules/ethers": { + "version": "6.17.0", + "resolved": "https://registry.npmjs.org/ethers/-/ethers-6.17.0.tgz", + "integrity": "sha512-BpyrpIPJ3ydEVow8zGaz1DuPS7YU8DcWxuBnY9a0UA/lvAPwrMr+EPXsfrul628SRaekPNeIM4UFh/91GWZang==", "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/ethers-io/" + }, + { + "type": "individual", + "url": "https://www.buymeacoffee.com/ricmoo" + } + ], "license": "MIT", - "peer": true, "dependencies": { - "safe-buffer": "^5.0.1" - } - }, - "node_modules/bech32": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/bech32/-/bech32-1.1.4.tgz", - "integrity": "sha512-s0IrSOzLlbvX7yp4WBfPITzpAU8sqQcpsmwXDiKwrG4r491vwCO/XpejasRNl0piBMe/DvP4Tz0mIS/X1DPJBQ==" - }, - "node_modules/better-path-resolve": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/better-path-resolve/-/better-path-resolve-1.0.0.tgz", - "integrity": "sha512-pbnl5XzGBdrFU/wT4jqmJVPn2B6UHPBOhzMQkY/SPUPB6QtUXtmBHBIwCbXJol93mOpGMnQyP/+BB19q04xj7g==", - "license": "MIT", - "dependencies": { - "is-windows": "^1.0.0" + "@adraffy/ens-normalize": "1.11.1", + "@noble/curves": "1.2.0", + "@noble/hashes": "1.3.2", + "@types/node": "22.7.5", + "aes-js": "4.0.0-beta.5", + "tslib": "2.7.0", + "ws": "8.21.0" }, "engines": { - "node": ">=4" - } - }, - "node_modules/binary-extensions": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", - "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", - "dev": true, - "engines": { - "node": ">=8" + "node": ">=14.0.0" } }, - "node_modules/blakejs": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/blakejs/-/blakejs-1.2.1.tgz", - "integrity": "sha512-QXUSXI3QVc/gJME0dBpXrag1kbzOqCjCX8/b54ntNyW6sjtoqxqRk3LTmXzaJoh71zMsDCjM+47jS7XiwN/+fQ==", + "node_modules/ethers/node_modules/@noble/curves": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.2.0.tgz", + "integrity": "sha512-oYclrNgRaM9SsBUBVbb8M6DTV7ZHRTKugureoYEncY5c65HOmRzvSiTE3y5CYaPYJA/GVkrhXEoF0M3Ya9PMnw==", "dev": true, "license": "MIT", - "peer": true - }, - "node_modules/bluebird": { - "version": "3.7.2", - "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", - "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==", - "dev": true, - "license": "MIT" - }, - "node_modules/bn.js": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.1.tgz", - "integrity": "sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==" - }, - "node_modules/boxen": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/boxen/-/boxen-5.1.2.tgz", - "integrity": "sha512-9gYgQKXx+1nP8mP7CzFyaUARhg7D3n1dF/FnErWmu9l6JvGpNUN278h0aSb+QjoiKSWG+iZ3uHrcqk0qrY9RQQ==", - "dev": true, "dependencies": { - "ansi-align": "^3.0.0", - "camelcase": "^6.2.0", - "chalk": "^4.1.0", - "cli-boxes": "^2.2.1", - "string-width": "^4.2.2", - "type-fest": "^0.20.2", - "widest-line": "^3.1.0", - "wrap-ansi": "^7.0.0" - }, - "engines": { - "node": ">=10" + "@noble/hashes": "1.3.2" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://paulmillr.com/funding/" } }, - "node_modules/boxen/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "node_modules/ethers/node_modules/@noble/hashes": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.2.tgz", + "integrity": "sha512-MVC8EAQp7MvEcm30KWENFjgR+Mkmf+D189XJTkFIlwohU5hcBbn1ZkKq7KVTi2Hme3PMGF390DaL52beVrIihQ==", "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, + "license": "MIT", "engines": { - "node": ">=8" + "node": ">= 16" }, "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "url": "https://paulmillr.com/funding/" } }, - "node_modules/boxen/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/extendable-error": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/extendable-error/-/extendable-error-0.1.7.tgz", + "integrity": "sha512-UOiS2in6/Q0FK0R0q6UY9vYpQ21mr/Qn1KOnte7vsACuNJf514WvCCUHSRCPcgjPT2bAhNIJdlE6bVap1GKmeg==", + "license": "MIT" + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" + }, + "node_modules/fast-equals": { + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/fast-equals/-/fast-equals-5.4.0.tgz", + "integrity": "sha512-jt2DW/aNFNwke7AUd+Z+e6pz39KO5rzdbbFCg2sGafS4mk13MI7Z8O5z9cADNn5lhGODIgLwug6TZO2ctf7kcw==", "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, + "license": "MIT", "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "node": ">=6.0.0" } }, - "node_modules/boxen/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, + "node_modules/fast-glob": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", + "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", "dependencies": { - "color-name": "~1.1.4" + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" }, "engines": { - "node": ">=7.0.0" + "node": ">=8.6.0" } }, - "node_modules/boxen/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "license": "MIT" }, - "node_modules/boxen/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" + "node_modules/fastq": { + "version": "1.17.1", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", + "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", + "dependencies": { + "reusify": "^1.0.4" } }, - "node_modules/boxen/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "node_modules/file-set": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/file-set/-/file-set-4.0.2.tgz", + "integrity": "sha512-fuxEgzk4L8waGXaAkd8cMr73Pm0FxOVkn8hztzUW7BAHhOGH90viQNXbiOsnecCWmfInqU6YmAMwxRMdKETceQ==", "dev": true, + "license": "MIT", "dependencies": { - "has-flag": "^4.0.0" + "array-back": "^5.0.0", + "glob": "^7.1.6" }, "engines": { - "node": ">=8" + "node": ">=10" } }, - "node_modules/boxen/node_modules/type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "node_modules/file-set/node_modules/array-back": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/array-back/-/array-back-5.0.0.tgz", + "integrity": "sha512-kgVWwJReZWmVuWOQKEOohXKJX+nD02JAZ54D1RRWlv8L0NebauKAaFxACKzB74RTclt1+WNz5KHaLRDAPZbDEw==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" } }, - "node_modules/braces": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", - "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dependencies": { - "fill-range": "^7.1.1" + "to-regex-range": "^5.0.1" }, "engines": { "node": ">=8" } }, - "node_modules/brorand": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", - "integrity": "sha512-cKV8tMCEpQs4hK/ik71d6LrPOnpkpGBR0wzxqr68g2m/LB2GxVYQroAjMJZRVM1Y4BCjCKc3vAamxSzOY2RP+w==" - }, - "node_modules/browser-stdout": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", - "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", - "dev": true - }, - "node_modules/browserify-aes": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz", - "integrity": "sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "buffer-xor": "^1.0.3", - "cipher-base": "^1.0.0", - "create-hash": "^1.1.0", - "evp_bytestokey": "^1.0.3", - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" - } - }, - "node_modules/bs58": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/bs58/-/bs58-4.0.1.tgz", - "integrity": "sha512-Ok3Wdf5vOIlBrgCvTq96gBkJw+JUEzdBgyaza5HLtPm7yTHkjRy8+JzNyHF7BHa0bNWOQIp3m5YF0nnFcOIKLw==", + "node_modules/find-replace": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/find-replace/-/find-replace-3.0.0.tgz", + "integrity": "sha512-6Tb2myMioCAgv5kfvP5/PkZZ/ntTpVK39fHY7WkWBgvbeE+VHd/tZuZ4mrC+bxh4cfOZeYKVPaJIZtZXV7GNCQ==", "dev": true, - "license": "MIT", - "peer": true, "dependencies": { - "base-x": "^3.0.2" + "array-back": "^3.0.1" + }, + "engines": { + "node": ">=4.0.0" } }, - "node_modules/bs58check": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/bs58check/-/bs58check-2.1.2.tgz", - "integrity": "sha512-0TS1jicxdU09dwJMNZtVAfzPi6Q6QeN0pM1Fkzrjn+XYHvzMKPU3pHVpva+769iNVSfIYWf7LJ6WR+BuuMf8cA==", - "dev": true, - "license": "MIT", - "peer": true, + "node_modules/find-yarn-workspace-root": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/find-yarn-workspace-root/-/find-yarn-workspace-root-2.0.0.tgz", + "integrity": "sha512-1IMnbjt4KzsQfnhnzNd8wUEgXZ44IzZaZmnLYx7D5FZlaHt2gW20Cri8Q+E/t5tIj4+epTBub+2Zxu/vNILzqQ==", "dependencies": { - "bs58": "^4.0.0", - "create-hash": "^1.1.0", - "safe-buffer": "^5.1.2" + "micromatch": "^4.0.2" } }, - "node_modules/buffer-from": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", - "dev": true + "node_modules/forge-std": { + "version": "1.9.4", + "resolved": "git+ssh://git@github.com/foundry-rs/forge-std.git#1eea5bae12ae557d589f9f0f0edae2faa47cb262", + "license": "(Apache-2.0 OR MIT)" }, - "node_modules/buffer-xor": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz", - "integrity": "sha512-571s0T7nZWK6vB67HI5dyUF7wXiNcfaPPPTl6zYCNApANjIvYJTg7hlud/+cJpdAhS7dVzqMLmfhfHR3rAcOjQ==", + "node_modules/fs-then-native": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/fs-then-native/-/fs-then-native-2.0.0.tgz", + "integrity": "sha512-X712jAOaWXkemQCAmWeg5rOT2i+KOpWz1Z/txk/cW0qlOu2oQ9H61vc5w3X/iyuUEfq/OyaFJ78/cZAQD1/bgA==", "dev": true, "license": "MIT", - "peer": true - }, - "node_modules/bufio": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/bufio/-/bufio-1.2.1.tgz", - "integrity": "sha512-9oR3zNdupcg/Ge2sSHQF3GX+kmvL/fTPvD0nd5AGLq8SjUYnTz+SlFjK/GXidndbZtIj+pVKXiWeR9w6e9wKCA==", "engines": { - "node": ">=14.0.0" + "node": ">=4.0.0" } }, - "node_modules/bytes": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", - "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", - "dev": true, - "engines": { - "node": ">= 0.8" - } + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" }, - "node_modules/cache-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/cache-point/-/cache-point-2.0.0.tgz", - "integrity": "sha512-4gkeHlFpSKgm3vm2gJN5sPqfmijYRFYCQ6tv5cLw0xVmT6r1z1vd4FNnpuOREco3cBs1G709sZ72LdgddKvL5w==", + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", "dev": true, + "hasInstallScript": true, "license": "MIT", - "dependencies": { - "array-back": "^4.0.1", - "fs-then-native": "^2.0.0", - "mkdirp2": "^1.0.4" - }, + "optional": true, + "os": [ + "darwin" + ], "engines": { - "node": ">=8" + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" } }, - "node_modules/cache-point/node_modules/array-back": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-4.0.2.tgz", - "integrity": "sha512-NbdMezxqf94cnNfWLL7V/im0Ub+Anbb0IoZhvzie8+4HJ4nMQuzHuy49FkGYCJK2yAloZ3meiB6AVMClbrI1vg==", - "dev": true, - "license": "MIT", + "node_modules/get-func-name": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.2.tgz", + "integrity": "sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==", "engines": { - "node": ">=8" + "node": "*" } }, - "node_modules/call-bind": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.8.tgz", - "integrity": "sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==", + "node_modules/get-tsconfig": { + "version": "4.13.6", + "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.13.6.tgz", + "integrity": "sha512-shZT/QMiSHc/YBLxxOkMtgSid5HFoauqCE3/exfsEcwg1WkeqjG+V40yBbBrsD+jW2HDXcs28xOfcbm2jI8Ddw==", "dev": true, "license": "MIT", "dependencies": { - "call-bind-apply-helpers": "^1.0.0", - "es-define-property": "^1.0.0", - "get-intrinsic": "^1.2.4", - "set-function-length": "^1.2.2" - }, - "engines": { - "node": ">= 0.4" + "resolve-pkg-maps": "^1.0.0" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" } }, - "node_modules/call-bind-apply-helpers": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", - "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/call-bound": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", - "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", - "dev": true, - "license": "MIT", + "node_modules/glob": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", + "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==", "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "get-intrinsic": "^1.3.0" + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" }, "engines": { - "node": ">= 0.4" + "node": "*" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "license": "MIT", + "node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dependencies": { + "is-glob": "^4.0.1" + }, "engines": { - "node": ">=6" + "node": ">= 6" } }, - "node_modules/camelcase": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", - "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", - "dev": true, + "node_modules/globals": { + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", + "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", + "license": "MIT", "engines": { - "node": ">=10" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/caseless": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", - "integrity": "sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw==", - "dev": true, - "license": "Apache-2.0", - "peer": true + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" }, - "node_modules/catharsis": { - "version": "0.9.0", - "resolved": "https://registry.npmjs.org/catharsis/-/catharsis-0.9.0.tgz", - "integrity": "sha512-prMTQVpcns/tzFgFVkVp6ak6RykZyWb3gu8ckUpd6YkTlacOd3DXGJjIpD4Q6zJirizvaiAjSSHlOsA+6sNh2A==", + "node_modules/handlebars": { + "version": "4.7.8", + "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.8.tgz", + "integrity": "sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ==", "dev": true, "license": "MIT", "dependencies": { - "lodash": "^4.17.15" + "minimist": "^1.2.5", + "neo-async": "^2.6.2", + "source-map": "^0.6.1", + "wordwrap": "^1.0.0" + }, + "bin": { + "handlebars": "bin/handlebars" }, "engines": { - "node": ">= 10" + "node": ">=0.4.7" + }, + "optionalDependencies": { + "uglify-js": "^3.1.4" } }, - "node_modules/cbor": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/cbor/-/cbor-8.1.0.tgz", - "integrity": "sha512-DwGjNW9omn6EwP70aXsn7FQJx5kO12tX0bZkaTjzdVFM6/7nhA4t0EENocKGx6D2Bch9PE2KzCUf5SceBdeijg==", + "node_modules/handlebars/node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "nofilter": "^3.1.0" - }, "engines": { - "node": ">=12.19" + "node": ">=0.10.0" } }, - "node_modules/chai": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/chai/-/chai-4.4.1.tgz", - "integrity": "sha512-13sOfMv2+DWduEU+/xbun3LScLoqN17nBeTLUsmDfKdoiC1fr0n9PU4guu4AhRcOVFk/sW8LyZWHuhWtQZiF+g==", + "node_modules/hardhat": { + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/hardhat/-/hardhat-3.1.10.tgz", + "integrity": "sha512-+J3LmO5j3r8bYRIiImaTT6WtT0EKcR0nfFxWq/bokAKZq7GKYf6ErKSrOuH+gFIqo+CfnrkxcgbPY20P5vuuSQ==", + "dev": true, + "license": "MIT", "dependencies": { - "assertion-error": "^1.1.0", - "check-error": "^1.0.3", - "deep-eql": "^4.1.3", - "get-func-name": "^2.0.2", - "loupe": "^2.3.6", - "pathval": "^1.1.1", - "type-detect": "^4.0.8" + "@nomicfoundation/edr": "0.12.0-next.24", + "@nomicfoundation/hardhat-errors": "^3.0.7", + "@nomicfoundation/hardhat-utils": "^4.0.0", + "@nomicfoundation/hardhat-vendored": "^3.0.1", + "@nomicfoundation/hardhat-zod-utils": "^3.0.2", + "@nomicfoundation/solidity-analyzer": "^0.1.1", + "@sentry/core": "^9.4.0", + "adm-zip": "^0.4.16", + "chalk": "^5.3.0", + "chokidar": "^4.0.3", + "debug": "^4.3.2", + "enquirer": "^2.3.0", + "ethereum-cryptography": "^2.2.1", + "micro-eth-signer": "^0.14.0", + "p-map": "^7.0.2", + "resolve.exports": "^2.0.3", + "semver": "^7.6.3", + "tsx": "^4.19.3", + "ws": "^8.18.0", + "zod": "^3.23.8" }, - "engines": { - "node": ">=4" + "bin": { + "hardhat": "dist/src/cli.js" } }, - "node_modules/chai-as-promised": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/chai-as-promised/-/chai-as-promised-7.1.2.tgz", - "integrity": "sha512-aBDHZxRzYnUYuIAIPBH2s511DjlKPzXNlXSGFC8CwmroWQLfrW0LtE1nK3MAwwNhJPa9raEjNCmRoFpG0Hurdw==", - "dev": true, - "license": "WTFPL", - "peer": true, + "node_modules/hash.js": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz", + "integrity": "sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==", "dependencies": { - "check-error": "^1.0.2" - }, - "peerDependencies": { - "chai": ">= 2.1.2 < 6" + "inherits": "^2.0.3", + "minimalistic-assert": "^1.0.1" } }, - "node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "license": "MIT", - "peer": true, + "node_modules/hmac-drbg": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", + "integrity": "sha512-Tti3gMqLdZfhOQY1Mzf/AanLiqh1WTiJgEj26ZuYQ9fbkLomzGchCws4FyrSd4VkpBfiNhaE1On+lOz894jvXg==", "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" + "hash.js": "^1.0.3", + "minimalistic-assert": "^1.0.0", + "minimalistic-crypto-utils": "^1.0.1" } }, - "node_modules/chardet": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/chardet/-/chardet-2.1.0.tgz", - "integrity": "sha512-bNFETTG/pM5ryzQ9Ad0lJOTa6HWD/YsScAR3EnCPZRPlQh77JocYktSHOUHelyhm8IARL+o4c4F1bP5KVOjiRA==", - "license": "MIT" - }, - "node_modules/charenc": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/charenc/-/charenc-0.0.2.tgz", - "integrity": "sha512-yrLQ/yVUFXkzg7EDQsPieE/53+0RlaWTs+wBrvW36cyilJ2SaDWfl4Yj7MtLTXleV9uEKefbAGUPv2/iWSooRA==", - "dev": true, - "license": "BSD-3-Clause", - "peer": true, - "engines": { - "node": "*" + "node_modules/human-id": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/human-id/-/human-id-4.1.1.tgz", + "integrity": "sha512-3gKm/gCSUipeLsRYZbbdA1BD83lBoWUkZ7G9VFrhWPAU76KwYo5KR8V28bpoPm/ygy0x5/GCbpRQdY7VLYCoIg==", + "license": "MIT", + "bin": { + "human-id": "dist/cli.js" } }, - "node_modules/check-error": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.3.tgz", - "integrity": "sha512-iKEoDYaRmd1mxM90a2OEfWhjsjPpYPuQ+lMYsoxB126+t8fw7ySEO48nmDg5COTjxDI65/Y2OWpeEHk3ZOe8zg==", - "dependencies": { - "get-func-name": "^2.0.2" - }, + "node_modules/ignore": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.1.tgz", + "integrity": "sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==", "engines": { - "node": "*" + "node": ">= 4" } }, - "node_modules/chokidar": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.1.tgz", - "integrity": "sha512-n8enUVCED/KVRQlab1hr3MVpcVMvxtZjmEa956u+4YijlmQED223XMSYj2tLuKvr4jcCTzNNMpQDUer72MMmzA==", - "dev": true, + "node_modules/import-fresh": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", + "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", + "license": "MIT", "dependencies": { - "readdirp": "^4.0.1" + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" }, "engines": { - "node": ">= 14.16.0" + "node": ">=6" }, "funding": { - "url": "https://paulmillr.com/funding/" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/chokidar/node_modules/readdirp": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.0.2.tgz", - "integrity": "sha512-yDMz9g+VaZkqBYS/ozoBJwaBhTbZo3UNYQHNRw1D3UFQB8oHB4uS/tAODO+ZLjGWmUbKnIlOWO+aaIiAxrUWHA==", - "dev": true, + "node_modules/import-fresh/node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "license": "MIT", "engines": { - "node": ">= 14.16.0" - }, - "funding": { - "type": "individual", - "url": "https://paulmillr.com/funding/" + "node": ">=4" } }, - "node_modules/ci-info": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", - "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==" - }, - "node_modules/cipher-base": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.7.tgz", - "integrity": "sha512-Mz9QMT5fJe7bKI7MH31UilT5cEK5EHHRCccw/YRFsRY47AuNgaV6HY3rscp0/I4Q+tTW/5zoqpSeRRI54TkDWA==", - "dev": true, - "license": "MIT", - "peer": true, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", "dependencies": { - "inherits": "^2.0.4", - "safe-buffer": "^5.2.1", - "to-buffer": "^1.2.2" - }, - "engines": { - "node": ">= 0.10" + "once": "^1.3.0", + "wrappy": "1" } }, - "node_modules/clean-stack": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", - "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", - "dev": true, - "engines": { - "node": ">=6" + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + }, + "node_modules/is-ci": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", + "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==", + "dependencies": { + "ci-info": "^2.0.0" + }, + "bin": { + "is-ci": "bin.js" } }, - "node_modules/cli-boxes": { + "node_modules/is-docker": { "version": "2.2.1", - "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-2.2.1.tgz", - "integrity": "sha512-y4coMcylgSCdVinjiDBuR8PCC2bLjyGTwEmPb9NHR/QaNU6EUOXcTY/s6VjGMD6ENSEaeQYHCY0GNGS5jfMwPw==", - "dev": true, + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", + "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", + "bin": { + "is-docker": "cli.js" + }, "engines": { - "node": ">=6" + "node": ">=8" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/cli-table3": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/cli-table3/-/cli-table3-0.5.1.tgz", - "integrity": "sha512-7Qg2Jrep1S/+Q3EceiZtQcDPWxhAvBw+ERf1162v4sikJrvojMHFqXt8QIVha8UlH9rgU0BeWPytZ9/TzYqlUw==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "object-assign": "^4.1.0", - "string-width": "^2.1.1" - }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", "engines": { - "node": ">=6" - }, - "optionalDependencies": { - "colors": "^1.1.2" + "node": ">=0.10.0" } }, - "node_modules/cli-table3/node_modules/ansi-regex": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.1.tgz", - "integrity": "sha512-+O9Jct8wf++lXxxFc4hc8LsjaSq0HFzzL7cVsw8pRDIPdjKD2mT4ytDZlLuSBZ4cLKZFXIrMGO7DbQCtMJJMKw==", - "dev": true, - "license": "MIT", - "peer": true, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dependencies": { + "is-extglob": "^2.1.1" + }, "engines": { - "node": ">=4" + "node": ">=0.10.0" } }, - "node_modules/cli-table3/node_modules/is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w==", - "dev": true, - "license": "MIT", - "peer": true, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", "engines": { - "node": ">=4" + "node": ">=0.12.0" } }, - "node_modules/cli-table3/node_modules/string-width": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", - "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", - "dev": true, + "node_modules/is-subdir": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/is-subdir/-/is-subdir-1.2.0.tgz", + "integrity": "sha512-2AT6j+gXe/1ueqbW6fLZJiIw3F8iXGJtt0yDrZaBhAZEG1raiTxKWU+IPqMCzQAXOUCKdA4UDMgacKH25XG2Cw==", "license": "MIT", - "peer": true, "dependencies": { - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^4.0.0" + "better-path-resolve": "1.0.0" }, "engines": { "node": ">=4" } }, - "node_modules/cli-table3/node_modules/strip-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha512-4XaJ2zQdCzROZDivEVIDPkcQn8LMFSa8kj8Gxb/Lnwzv9A8VctNZ+lfivC/sV3ivW8ElJTERXZoPBRrZKkNKow==", - "dev": true, + "node_modules/is-windows": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", + "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", "license": "MIT", - "peer": true, - "dependencies": { - "ansi-regex": "^3.0.0" - }, "engines": { - "node": ">=4" + "node": ">=0.10.0" } }, - "node_modules/cliui": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", - "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", - "dev": true, + "node_modules/is-wsl": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", + "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^7.0.0" + "is-docker": "^2.0.0" + }, + "engines": { + "node": ">=8" } }, - "node_modules/collect-all": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/collect-all/-/collect-all-1.0.4.tgz", - "integrity": "sha512-RKZhRwJtJEP5FWul+gkSMEnaK6H3AGPTTWOiRimCcs+rc/OmQE3Yhy1Q7A7KsdkG3ZXVdZq68Y6ONSdvkeEcKA==", - "dev": true, - "license": "MIT", + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" + }, + "node_modules/js-sha3": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.8.0.tgz", + "integrity": "sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q==" + }, + "node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", "dependencies": { - "stream-connect": "^1.0.2", - "stream-via": "^1.0.4" + "argparse": "^2.0.1" }, - "engines": { - "node": ">=0.10.0" + "bin": { + "js-yaml": "bin/js-yaml.js" } }, - "node_modules/color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "node_modules/js2xmlparser": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/js2xmlparser/-/js2xmlparser-4.0.2.tgz", + "integrity": "sha512-6n4D8gLlLf1n5mNLQPRfViYzu9RATblzPEtm1SthMX1Pjao0r9YI9nw7ZIfRxQMERS87mcswrg+r/OYrPRX6jA==", "dev": true, - "license": "MIT", - "peer": true, + "license": "Apache-2.0", "dependencies": { - "color-name": "1.1.3" + "xmlcreate": "^2.0.4" } }, - "node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", - "dev": true, - "license": "MIT", - "peer": true - }, - "node_modules/colors": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/colors/-/colors-1.4.0.tgz", - "integrity": "sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==", + "node_modules/jsdoc": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/jsdoc/-/jsdoc-4.0.3.tgz", + "integrity": "sha512-Nu7Sf35kXJ1MWDZIMAuATRQTg1iIPdzh7tqJ6jjvaU/GfDf+qi5UV8zJR3Mo+/pYFvm8mzay4+6O5EWigaQBQw==", "dev": true, - "license": "MIT", - "peer": true, + "license": "Apache-2.0", + "dependencies": { + "@babel/parser": "^7.20.15", + "@jsdoc/salty": "^0.2.1", + "@types/markdown-it": "^14.1.1", + "bluebird": "^3.7.2", + "catharsis": "^0.9.0", + "escape-string-regexp": "^2.0.0", + "js2xmlparser": "^4.0.2", + "klaw": "^3.0.0", + "markdown-it": "^14.1.0", + "markdown-it-anchor": "^8.6.7", + "marked": "^4.0.10", + "mkdirp": "^1.0.4", + "requizzle": "^0.2.3", + "strip-json-comments": "^3.1.0", + "underscore": "~1.13.2" + }, + "bin": { + "jsdoc": "jsdoc.js" + }, "engines": { - "node": ">=0.1.90" + "node": ">=12.0.0" } }, - "node_modules/combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "node_modules/jsdoc-api": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/jsdoc-api/-/jsdoc-api-8.0.0.tgz", + "integrity": "sha512-Rnhor0suB1Ds1abjmFkFfKeD+kSMRN9oHMTMZoJVUrmtCGDwXty+sWMA9sa4xbe4UyxuPjhC7tavZ40mDKK6QQ==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { - "delayed-stream": "~1.0.0" + "array-back": "^6.2.2", + "cache-point": "^2.0.0", + "collect-all": "^1.0.4", + "file-set": "^4.0.2", + "fs-then-native": "^2.0.0", + "jsdoc": "^4.0.0", + "object-to-spawn-args": "^2.0.1", + "temp-path": "^1.0.0", + "walk-back": "^5.1.0" }, "engines": { - "node": ">= 0.8" + "node": ">=12.17" } }, - "node_modules/command-exists": { - "version": "1.2.9", - "resolved": "https://registry.npmjs.org/command-exists/-/command-exists-1.2.9.tgz", - "integrity": "sha512-LTQ/SGc+s0Xc0Fu5WaKnR0YiygZkm9eKFvyS+fRsU7/ZWFF8ykFM6Pc9aCVf1+xasOOZpO3BAVgVrKvsqKHV7w==", - "dev": true - }, - "node_modules/command-line-args": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/command-line-args/-/command-line-args-5.2.1.tgz", - "integrity": "sha512-H4UfQhZyakIjC74I9d34fGYDwk3XpSr17QhEd0Q3I9Xq1CETHo4Hcuo87WyWHpAF1aSLjLRf5lD9ZGX2qStUvg==", + "node_modules/jsdoc-api/node_modules/array-back": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/array-back/-/array-back-6.2.2.tgz", + "integrity": "sha512-gUAZ7HPyb4SJczXAMUXMGAvI976JoK3qEx9v1FTmeYuJj0IBiaKttG1ydtGKdkfqWkIkouke7nG8ufGy77+Cvw==", "dev": true, - "dependencies": { - "array-back": "^3.1.0", - "find-replace": "^3.0.0", - "lodash.camelcase": "^4.3.0", - "typical": "^4.0.0" - }, + "license": "MIT", "engines": { - "node": ">=4.0.0" + "node": ">=12.17" } }, - "node_modules/command-line-tool": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/command-line-tool/-/command-line-tool-0.8.0.tgz", - "integrity": "sha512-Xw18HVx/QzQV3Sc5k1vy3kgtOeGmsKIqwtFFoyjI4bbcpSgnw2CWVULvtakyw4s6fhyAdI6soQQhXc2OzJy62g==", + "node_modules/jsdoc-parse": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/jsdoc-parse/-/jsdoc-parse-6.2.1.tgz", + "integrity": "sha512-9viGRUUtWOk/G4V0+nQ6rfLucz5plxh5I74WbNSNm9h9NWugCDVX4jbG8hZP9QqKGpdTPDE+qJXzaYNos3wqTA==", "dev": true, "license": "MIT", "dependencies": { - "ansi-escape-sequences": "^4.0.0", - "array-back": "^2.0.0", - "command-line-args": "^5.0.0", - "command-line-usage": "^4.1.0", - "typical": "^2.6.1" + "array-back": "^6.2.2", + "lodash.omit": "^4.5.0", + "reduce-extract": "^1.0.0", + "sort-array": "^4.1.5", + "test-value": "^3.0.0" }, "engines": { - "node": ">=4.0.0" + "node": ">=12" } }, - "node_modules/command-line-tool/node_modules/array-back": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-2.0.0.tgz", - "integrity": "sha512-eJv4pLLufP3g5kcZry0j6WXpIbzYw9GUB4mVJZno9wfwiBxbizTnHCw3VJb07cBihbFX48Y7oSrW9y+gt4glyw==", + "node_modules/jsdoc-parse/node_modules/array-back": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/array-back/-/array-back-6.2.2.tgz", + "integrity": "sha512-gUAZ7HPyb4SJczXAMUXMGAvI976JoK3qEx9v1FTmeYuJj0IBiaKttG1ydtGKdkfqWkIkouke7nG8ufGy77+Cvw==", "dev": true, "license": "MIT", - "dependencies": { - "typical": "^2.6.1" - }, "engines": { - "node": ">=4" + "node": ">=12.17" } }, - "node_modules/command-line-tool/node_modules/command-line-usage": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/command-line-usage/-/command-line-usage-4.1.0.tgz", - "integrity": "sha512-MxS8Ad995KpdAC0Jopo/ovGIroV/m0KHwzKfXxKag6FHOkGsH8/lv5yjgablcRxCJJC0oJeUMuO/gmaq+Wq46g==", + "node_modules/jsdoc-to-markdown": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/jsdoc-to-markdown/-/jsdoc-to-markdown-8.0.1.tgz", + "integrity": "sha512-qJfNJhkq2C26UYoOdj8L1yheTJlk1veCsxwRejRmj07XZKCn7oSkuPErx6+JoNi8afCaUKdIM5oUu0uF2/T8iw==", "dev": true, "license": "MIT", "dependencies": { - "ansi-escape-sequences": "^4.0.0", - "array-back": "^2.0.0", - "table-layout": "^0.4.2", - "typical": "^2.6.1" + "array-back": "^6.2.2", + "command-line-tool": "^0.8.0", + "config-master": "^3.1.0", + "dmd": "^6.2.0", + "jsdoc-api": "^8.0.0", + "jsdoc-parse": "^6.2.1", + "walk-back": "^5.1.0" + }, + "bin": { + "jsdoc2md": "bin/cli.js" }, "engines": { - "node": ">=4.0.0" + "node": ">=12.17" } }, - "node_modules/command-line-tool/node_modules/reduce-flatten": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/reduce-flatten/-/reduce-flatten-1.0.1.tgz", - "integrity": "sha512-j5WfFJfc9CoXv/WbwVLHq74i/hdTUpy+iNC534LxczMRP67vJeK3V9JOdnL0N1cIRbn9mYhE2yVjvvKXDxvNXQ==", + "node_modules/jsdoc-to-markdown/node_modules/array-back": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/array-back/-/array-back-6.2.2.tgz", + "integrity": "sha512-gUAZ7HPyb4SJczXAMUXMGAvI976JoK3qEx9v1FTmeYuJj0IBiaKttG1ydtGKdkfqWkIkouke7nG8ufGy77+Cvw==", "dev": true, "license": "MIT", "engines": { - "node": ">=0.10.0" + "node": ">=12.17" } }, - "node_modules/command-line-tool/node_modules/table-layout": { - "version": "0.4.5", - "resolved": "https://registry.npmjs.org/table-layout/-/table-layout-0.4.5.tgz", - "integrity": "sha512-zTvf0mcggrGeTe/2jJ6ECkJHAQPIYEwDoqsiqBjI24mvRmQbInK5jq33fyypaCBxX08hMkfmdOqj6haT33EqWw==", + "node_modules/jsdoc/node_modules/escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", "dev": true, "license": "MIT", - "dependencies": { - "array-back": "^2.0.0", - "deep-extend": "~0.6.0", - "lodash.padend": "^4.6.1", - "typical": "^2.6.1", - "wordwrapjs": "^3.0.0" - }, "engines": { - "node": ">=4.0.0" + "node": ">=8" } }, - "node_modules/command-line-tool/node_modules/typical": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/typical/-/typical-2.6.1.tgz", - "integrity": "sha512-ofhi8kjIje6npGozTip9Fr8iecmYfEbS06i0JnIg+rh51KakryWF4+jX8lLKZVhy6N+ID45WYSFCxPOdTWCzNg==", - "dev": true, - "license": "MIT" - }, - "node_modules/command-line-tool/node_modules/wordwrapjs": { + "node_modules/jsdoc/node_modules/klaw": { "version": "3.0.0", - "resolved": "https://registry.npmjs.org/wordwrapjs/-/wordwrapjs-3.0.0.tgz", - "integrity": "sha512-mO8XtqyPvykVCsrwj5MlOVWvSnCdT+C+QVbm6blradR7JExAhbkZ7hZ9A+9NUtwzSqrlUo9a67ws0EiILrvRpw==", + "resolved": "https://registry.npmjs.org/klaw/-/klaw-3.0.0.tgz", + "integrity": "sha512-0Fo5oir+O9jnXu5EefYbVK+mHMBeEVEy2cmctR1O1NECcCkPRreJKrS6Qt/j3KC2C148Dfo9i3pCmCMsdqGr0g==", "dev": true, "license": "MIT", "dependencies": { - "reduce-flatten": "^1.0.1", - "typical": "^2.6.1" - }, - "engines": { - "node": ">=4.0.0" + "graceful-fs": "^4.1.9" } }, - "node_modules/command-line-usage": { - "version": "6.1.3", - "resolved": "https://registry.npmjs.org/command-line-usage/-/command-line-usage-6.1.3.tgz", - "integrity": "sha512-sH5ZSPr+7UStsloltmDh7Ce5fb8XPlHyoPzTpyyMuYCtervL65+ubVZ6Q61cFtFl62UyJlc8/JwERRbAFPUqgw==", + "node_modules/jsdoc/node_modules/mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", "dev": true, "license": "MIT", - "peer": true, - "dependencies": { - "array-back": "^4.0.2", - "chalk": "^2.4.2", - "table-layout": "^1.0.2", - "typical": "^5.2.0" + "bin": { + "mkdirp": "bin/cmd.js" }, "engines": { - "node": ">=8.0.0" + "node": ">=10" } }, - "node_modules/command-line-usage/node_modules/array-back": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-4.0.2.tgz", - "integrity": "sha512-NbdMezxqf94cnNfWLL7V/im0Ub+Anbb0IoZhvzie8+4HJ4nMQuzHuy49FkGYCJK2yAloZ3meiB6AVMClbrI1vg==", + "node_modules/json-stream-stringify": { + "version": "3.1.6", + "resolved": "https://registry.npmjs.org/json-stream-stringify/-/json-stream-stringify-3.1.6.tgz", + "integrity": "sha512-x7fpwxOkbhFCaJDJ8vb1fBY3DdSa4AlITaz+HHILQJzdPMnHEFjxPwVUi1ALIbcIxDE0PNe/0i7frnY8QnBQog==", "dev": true, "license": "MIT", - "peer": true, "engines": { - "node": ">=8" + "node": ">=7.10.1" } }, - "node_modules/command-line-usage/node_modules/typical": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/typical/-/typical-5.2.0.tgz", - "integrity": "sha512-dvdQgNDNJo+8B2uBQoqdb11eUCE1JQXhvjC/CZtgvZseVd5TYMXnq0+vuUemXbd/Se29cTaUuPX3YIc2xgbvIg==", - "dev": true, - "license": "MIT", - "peer": true, - "engines": { - "node": ">=8" + "node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" } }, - "node_modules/commander": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz", - "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==", - "dev": true, - "engines": { - "node": ">= 12" + "node_modules/klaw-sync": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/klaw-sync/-/klaw-sync-6.0.0.tgz", + "integrity": "sha512-nIeuVSzdCCs6TDPTqI8w1Yre34sSq7AkZ4B3sfOBbI2CgVSB4Du4aLQijFU2+lhAFCwt9+42Hel6lQNIv6AntQ==", + "dependencies": { + "graceful-fs": "^4.1.11" } }, - "node_modules/common-sequence": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/common-sequence/-/common-sequence-2.0.2.tgz", - "integrity": "sha512-jAg09gkdkrDO9EWTdXfv80WWH3yeZl5oT69fGfedBNS9pXUKYInVJ1bJ+/ht2+Moeei48TmSbQDYMc8EOx9G0g==", + "node_modules/linkify-it": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-5.0.0.tgz", + "integrity": "sha512-5aHCbzQRADcdP+ATqnDuhhJ/MRIqDkZX5pyjFHRRysS8vZ5AbqGEoFIb6pYHPZ+L/OC2Lc+xT8uHVVR5CAK/wQ==", "dev": true, "license": "MIT", - "engines": { - "node": ">=8" + "dependencies": { + "uc.micro": "^2.0.0" } }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "dev": true }, - "node_modules/concat-stream": { - "version": "1.6.2", - "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", - "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", - "dev": true, - "engines": [ - "node >= 0.8" - ], - "license": "MIT", - "peer": true, - "dependencies": { - "buffer-from": "^1.0.0", - "inherits": "^2.0.3", - "readable-stream": "^2.2.2", - "typedarray": "^0.0.6" - } + "node_modules/lodash.camelcase": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", + "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==", + "dev": true }, - "node_modules/concat-stream/node_modules/isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", + "node_modules/lodash.omit": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.omit/-/lodash.omit-4.5.0.tgz", + "integrity": "sha512-XeqSp49hNGmlkj2EJlfrQFIzQ6lXdNro9sddtQzcJY8QaoC2GO0DT7xaIokHeyM+mIT0mPMlPvkYzg2xCuHdZg==", "dev": true, - "license": "MIT", - "peer": true + "license": "MIT" }, - "node_modules/concat-stream/node_modules/readable-stream": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", - "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", + "node_modules/lodash.padend": { + "version": "4.6.1", + "resolved": "https://registry.npmjs.org/lodash.padend/-/lodash.padend-4.6.1.tgz", + "integrity": "sha512-sOQs2aqGpbl27tmCS1QNZA09Uqp01ZzWfDUoD+xzTii0E7dSQfRKcRetFwa+uXaxaqL+TKm7CgD2JdKP7aZBSw==", "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } + "license": "MIT" }, - "node_modules/concat-stream/node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true, - "license": "MIT", - "peer": true + "node_modules/lodash.startcase": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/lodash.startcase/-/lodash.startcase-4.4.0.tgz", + "integrity": "sha512-+WKqsK294HMSc2jEbNgpHpd0JfIBhp7rEV4aqXWqFr6AlXov+SlcgB1Fv01y2kGe3Gc8nMW7VA0SrGuSkRfIEg==", + "license": "MIT" }, - "node_modules/concat-stream/node_modules/string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, - "license": "MIT", - "peer": true, + "node_modules/loupe": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.7.tgz", + "integrity": "sha512-zSMINGVYkdpYSOBmLi0D1Uo7JU9nVdQKrHxC8eYlV+9YKK9WePqAlL7lSlorG/U2Fw1w0hTBmaa/jrQ3UbPHtA==", "dependencies": { - "safe-buffer": "~5.1.0" + "get-func-name": "^2.0.1" } }, - "node_modules/config-master": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/config-master/-/config-master-3.1.0.tgz", - "integrity": "sha512-n7LBL1zBzYdTpF1mx5DNcZnZn05CWIdsdvtPL4MosvqbBUK3Rq6VWEtGUuF3Y0s9/CIhMejezqlSkP6TnCJ/9g==", + "node_modules/markdown-it": { + "version": "14.1.0", + "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-14.1.0.tgz", + "integrity": "sha512-a54IwgWPaeBCAAsv13YgmALOF1elABB08FxO9i+r4VFk5Vl4pKokRPeX8u5TCgSsPi6ec1otfLjdOpVcgbpshg==", "dev": true, "license": "MIT", "dependencies": { - "walk-back": "^2.0.1" + "argparse": "^2.0.1", + "entities": "^4.4.0", + "linkify-it": "^5.0.0", + "mdurl": "^2.0.0", + "punycode.js": "^2.3.1", + "uc.micro": "^2.1.0" + }, + "bin": { + "markdown-it": "bin/markdown-it.mjs" } }, - "node_modules/config-master/node_modules/walk-back": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/walk-back/-/walk-back-2.0.1.tgz", - "integrity": "sha512-Nb6GvBR8UWX1D+Le+xUq0+Q1kFmRBIWVrfLnQAOmcpEzA9oAxwJ9gIr36t9TWYfzvWRvuMtjHiVsJYEkXWaTAQ==", + "node_modules/markdown-it-anchor": { + "version": "8.6.7", + "resolved": "https://registry.npmjs.org/markdown-it-anchor/-/markdown-it-anchor-8.6.7.tgz", + "integrity": "sha512-FlCHFwNnutLgVTflOYHPW2pPcl2AACqVzExlkGQNsi4CJgqOHN7YTgDd4LuhgN1BFO3TS0vLAruV1Td6dwWPJA==", "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" + "license": "Unlicense", + "peerDependencies": { + "@types/markdown-it": "*", + "markdown-it": "*" } }, - "node_modules/cookie": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.2.tgz", - "integrity": "sha512-aSWTXFzaKWkvHO1Ny/s+ePFpvKsPnjc551iI41v3ny/ow6tBG5Vd+FuqGNhh1LxOmVzOlGUriIlOaokOvhaStA==", + "node_modules/marked": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/marked/-/marked-4.3.0.tgz", + "integrity": "sha512-PRsaiG84bK+AMvxziE/lCFss8juXjNaWzVbN5tXAm4XjeaS9NAHhop+PjQxz2A9h8Q4M/xGmzP8vqNwy6JeK0A==", "dev": true, + "license": "MIT", + "bin": { + "marked": "bin/marked.js" + }, "engines": { - "node": ">= 0.6" + "node": ">= 12" } }, - "node_modules/core-util-is": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", - "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", + "node_modules/mdurl": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-2.0.0.tgz", + "integrity": "sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w==", "dev": true, - "license": "MIT", - "peer": true + "license": "MIT" }, - "node_modules/create-hash": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz", - "integrity": "sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "cipher-base": "^1.0.1", - "inherits": "^2.0.1", - "md5.js": "^1.3.4", - "ripemd160": "^2.0.1", - "sha.js": "^2.4.0" + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "engines": { + "node": ">= 8" } }, - "node_modules/create-hmac": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.7.tgz", - "integrity": "sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg==", + "node_modules/micro-eth-signer": { + "version": "0.14.0", + "resolved": "https://registry.npmjs.org/micro-eth-signer/-/micro-eth-signer-0.14.0.tgz", + "integrity": "sha512-5PLLzHiVYPWClEvZIXXFu5yutzpadb73rnQCpUqIHu3No3coFuWQNfE5tkBQJ7djuLYl6aRLaS0MgWJYGoqiBw==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { - "cipher-base": "^1.0.3", - "create-hash": "^1.1.0", - "inherits": "^2.0.1", - "ripemd160": "^2.0.0", - "safe-buffer": "^5.0.1", - "sha.js": "^2.4.8" + "@noble/curves": "~1.8.1", + "@noble/hashes": "~1.7.1", + "micro-packed": "~0.7.2" } }, - "node_modules/create-require": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", - "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", + "node_modules/micro-eth-signer/node_modules/@noble/curves": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.8.2.tgz", + "integrity": "sha512-vnI7V6lFNe0tLAuJMu+2sX+FcL14TaCWy1qiczg1VwRmPrpQCdq5ESXQMqUc2tluRNf6irBXrWbl1mGN8uaU/g==", "dev": true, - "peer": true - }, - "node_modules/cross-spawn": { - "version": "6.0.6", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.6.tgz", - "integrity": "sha512-VqCUuhcd1iB+dsv8gxPttb5iZh/D0iubSP21g36KXdEuf6I5JiioesUVjpCdHV9MZRUfVFlvwtIUyPfxo5trtw==", + "license": "MIT", "dependencies": { - "nice-try": "^1.0.4", - "path-key": "^2.0.1", - "semver": "^5.5.0", - "shebang-command": "^1.2.0", - "which": "^1.2.9" + "@noble/hashes": "1.7.2" }, "engines": { - "node": ">=4.8" - } - }, - "node_modules/cross-spawn/node_modules/semver": { - "version": "5.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", - "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", - "bin": { - "semver": "bin/semver" + "node": "^14.21.3 || >=16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" } }, - "node_modules/crypt": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/crypt/-/crypt-0.0.2.tgz", - "integrity": "sha512-mCxBlsHFYh9C+HVpiEacem8FEBnMXgU9gy4zmNC+SXAZNB/1idgp/aulFJ4FgCi7GPEVbfyng092GqL2k2rmow==", + "node_modules/micro-eth-signer/node_modules/@noble/hashes": { + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.7.2.tgz", + "integrity": "sha512-biZ0NUSxyjLLqo6KxEJ1b+C2NAx0wtDoFvCaXHGgUkeHzf3Xc1xKumFKREuT7f7DARNZ/slvYUwFG6B0f2b6hQ==", "dev": true, - "license": "BSD-3-Clause", - "peer": true, + "license": "MIT", "engines": { - "node": "*" + "node": "^14.21.3 || >=16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" } }, - "node_modules/data-view-buffer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/data-view-buffer/-/data-view-buffer-1.0.1.tgz", - "integrity": "sha512-0lht7OugA5x3iJLOWFhWK/5ehONdprk0ISXqVFn/NFrDu+cuc8iADFrGQz5BnRK7LLU3JmkbXSxaqX+/mXYtUA==", + "node_modules/micro-packed": { + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/micro-packed/-/micro-packed-0.7.3.tgz", + "integrity": "sha512-2Milxs+WNC00TRlem41oRswvw31146GiSaoCT7s3Xi2gMUglW5QBeqlQaZeHr5tJx9nm3i57LNXPqxOOaWtTYg==", "dev": true, + "license": "MIT", "dependencies": { - "call-bind": "^1.0.6", - "es-errors": "^1.3.0", - "is-data-view": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" + "@scure/base": "~1.2.5" }, "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://paulmillr.com/funding/" } }, - "node_modules/data-view-byte-length": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/data-view-byte-length/-/data-view-byte-length-1.0.1.tgz", - "integrity": "sha512-4J7wRJD3ABAzr8wP+OcIcqq2dlUKp4DVflx++hs5h5ZKydWMI6/D/fAot+yh6g2tHh8fLFTvNOaVN357NvSrOQ==", + "node_modules/micro-packed/node_modules/@scure/base": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.2.6.tgz", + "integrity": "sha512-g/nm5FgUa//MCj1gV09zTJTaM6KBAHqLN907YVQqf7zC49+DcO4B1so4ZX07Ef10Twr6nuqYEH9GEggFXA4Fmg==", "dev": true, - "dependencies": { - "call-bind": "^1.0.7", - "es-errors": "^1.3.0", - "is-data-view": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, + "license": "MIT", "funding": { - "url": "https://github.com/sponsors/ljharb" + "url": "https://paulmillr.com/funding/" } }, - "node_modules/data-view-byte-offset": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/data-view-byte-offset/-/data-view-byte-offset-1.0.0.tgz", - "integrity": "sha512-t/Ygsytq+R995EJ5PZlD4Cu56sWa8InXySaViRzw9apusqsOO2bQP+SbYzAhR0pFKoB+43lYy8rWban9JSuXnA==", - "dev": true, + "node_modules/micromatch": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", "dependencies": { - "call-bind": "^1.0.6", - "es-errors": "^1.3.0", - "is-data-view": "^1.0.1" + "braces": "^3.0.3", + "picomatch": "^2.3.1" }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=8.6" } }, - "node_modules/dataloader": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/dataloader/-/dataloader-1.4.0.tgz", - "integrity": "sha512-68s5jYdlvasItOJnCuI2Q9s4q98g0pCyL3HrcKJu8KNugUl8ahgmZYg38ysLTgQjjXX3H8CJLkAvWrclWfcalw==" + "node_modules/minimalistic-assert": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", + "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==" }, - "node_modules/death": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/death/-/death-1.1.0.tgz", - "integrity": "sha512-vsV6S4KVHvTGxbEcij7hkWRv0It+sGGWVOM67dQde/o5Xjnr+KmLjxWJii2uEObIrt1CcM9w0Yaovx+iOlIL+w==", - "dev": true, - "peer": true + "node_modules/minimalistic-crypto-utils": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", + "integrity": "sha512-JIYlbt6g8i5jKfJ3xz7rF0LXmv2TkDxBLUkiBeZ7bAx4GnnNMr8xFpGnOxn6GhTEHx3SjRrZEoU+j04prX1ktg==" }, - "node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", "dependencies": { - "ms": "2.1.2" + "brace-expansion": "^1.1.7" }, "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } + "node": "*" } }, - "node_modules/decamelize": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz", - "integrity": "sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==", - "dev": true, - "engines": { - "node": ">=10" - }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/deep-eql": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-4.1.3.tgz", - "integrity": "sha512-WaEtAOpRA1MQ0eohqZjpGD8zdI0Ovsm8mmFhaDN8dvDZzyoUMcYDnf5Y6iu7HTXxf8JDS23qWa4a+hKCDyOPzw==", - "dependencies": { - "type-detect": "^4.0.0" - }, - "engines": { - "node": ">=6" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/deep-extend": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", - "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", + "node_modules/mkdirp2": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/mkdirp2/-/mkdirp2-1.0.5.tgz", + "integrity": "sha512-xOE9xbICroUDmG1ye2h4bZ8WBie9EGmACaco8K8cx6RlkJJrxGIqjGqztAI+NMhexXBcdGbSEzI6N3EJPevxZw==", "dev": true, - "engines": { - "node": ">=4.0.0" - } + "license": "MIT" }, - "node_modules/deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true, + "node_modules/mri": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz", + "integrity": "sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==", "license": "MIT", - "peer": true - }, - "node_modules/define-data-property": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", - "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", - "dev": true, - "dependencies": { - "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "gopd": "^1.0.1" - }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=4" } }, - "node_modules/define-properties": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", - "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", - "dev": true, + "node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, + "node_modules/neo-async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "dev": true + }, + "node_modules/nice-try": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", + "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==" + }, + "node_modules/node-fetch": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", "dependencies": { - "define-data-property": "^1.0.1", - "has-property-descriptors": "^1.0.0", - "object-keys": "^1.1.1" + "whatwg-url": "^5.0.0" }, "engines": { - "node": ">= 0.4" + "node": "4.x || >=6.0.0" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } } }, - "node_modules/delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "node_modules/object-get": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/object-get/-/object-get-2.1.1.tgz", + "integrity": "sha512-7n4IpLMzGGcLEMiQKsNR7vCe+N5E9LORFrtNUVy4sO3dj9a3HedZCxEL2T7QuLhcHN1NBuBsMOKaOsAYI9IIvg==", "dev": true, - "license": "MIT", - "peer": true, - "engines": { - "node": ">=0.4.0" - } + "license": "MIT" }, - "node_modules/depd": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", - "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", + "node_modules/object-to-spawn-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/object-to-spawn-args/-/object-to-spawn-args-2.0.1.tgz", + "integrity": "sha512-6FuKFQ39cOID+BMZ3QaphcC8Y4cw6LXBLyIgPU+OhIYwviJamPAn+4mITapnSBQrejB+NNp+FMskhD8Cq+Ys3w==", "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/detect-indent": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-6.1.0.tgz", - "integrity": "sha512-reYkTUJAZb9gUuZ2RvVCNhVHdg62RHnJ7WJl8ftMi4diZ6NWlciOzQN88pUhSELEwflJht4oQDv0F0BMlwaYtA==", "license": "MIT", "engines": { - "node": ">=8" + "node": ">=8.0.0" } }, - "node_modules/diff": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-5.0.0.tgz", - "integrity": "sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w==", - "dev": true, - "engines": { - "node": ">=0.3.1" + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dependencies": { + "wrappy": "1" } }, - "node_modules/difflib": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/difflib/-/difflib-0.2.4.tgz", - "integrity": "sha512-9YVwmMb0wQHQNr5J9m6BSj6fk4pfGITGQOOs+D9Fl+INODWFOfvhIU1hNv6GgR1RBoC/9NJcwu77zShxV0kT7w==", - "dev": true, - "peer": true, + "node_modules/open": { + "version": "7.4.2", + "resolved": "https://registry.npmjs.org/open/-/open-7.4.2.tgz", + "integrity": "sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q==", "dependencies": { - "heap": ">= 0.2.0" + "is-docker": "^2.0.0", + "is-wsl": "^2.1.1" }, "engines": { - "node": "*" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/dir-glob": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", - "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", - "dependencies": { - "path-type": "^4.0.0" - }, + "node_modules/os-tmpdir": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", + "integrity": "sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==", "engines": { - "node": ">=8" + "node": ">=0.10.0" } }, - "node_modules/dmd": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/dmd/-/dmd-6.2.0.tgz", - "integrity": "sha512-uXWxLF1H7TkUAuoHK59/h/ts5cKavm2LnhrIgJWisip4BVzPoXavlwyoprFFn2CzcahKYgvkfaebS6oxzgflkg==", - "dev": true, + "node_modules/outdent": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/outdent/-/outdent-0.5.0.tgz", + "integrity": "sha512-/jHxFIzoMXdqPzTaCpFzAAWhpkSjZPF4Vsn6jAfNpmbH/ymsmd7Qc6VE9BGn0L6YMj6uwpQLxCECpus4ukKS9Q==", + "license": "MIT" + }, + "node_modules/p-filter": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/p-filter/-/p-filter-2.1.0.tgz", + "integrity": "sha512-ZBxxZ5sL2HghephhpGAQdoskxplTwr7ICaehZwLIlfL6acuVgZPm8yBNuRAFBGEqtD/hmUeq9eqLg2ys9Xr/yw==", "license": "MIT", "dependencies": { - "array-back": "^6.2.2", - "cache-point": "^2.0.0", - "common-sequence": "^2.0.2", - "file-set": "^4.0.2", - "handlebars": "^4.7.7", - "marked": "^4.2.3", - "object-get": "^2.1.1", - "reduce-flatten": "^3.0.1", - "reduce-unique": "^2.0.1", - "reduce-without": "^1.0.1", - "test-value": "^3.0.0", - "walk-back": "^5.1.0" + "p-map": "^2.0.0" }, "engines": { - "node": ">=12" + "node": ">=8" } }, - "node_modules/dmd/node_modules/array-back": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-6.2.2.tgz", - "integrity": "sha512-gUAZ7HPyb4SJczXAMUXMGAvI976JoK3qEx9v1FTmeYuJj0IBiaKttG1ydtGKdkfqWkIkouke7nG8ufGy77+Cvw==", - "dev": true, + "node_modules/p-filter/node_modules/p-map": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-2.1.0.tgz", + "integrity": "sha512-y3b8Kpd8OAN444hxfBbFfj1FY/RjtTd8tzYwhUqNYXx0fXx2iX4maP4Qr6qhIKbQXI02wTLAda4fYUbDagTUFw==", "license": "MIT", "engines": { - "node": ">=12.17" + "node": ">=6" } }, - "node_modules/dmd/node_modules/reduce-flatten": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/reduce-flatten/-/reduce-flatten-3.0.1.tgz", - "integrity": "sha512-bYo+97BmUUOzg09XwfkwALt4PQH1M5L0wzKerBt6WLm3Fhdd43mMS89HiT1B9pJIqko/6lWx3OnV4J9f2Kqp5Q==", + "node_modules/p-map": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-7.0.4.tgz", + "integrity": "sha512-tkAQEw8ysMzmkhgw8k+1U/iPhWNhykKnSk4Rd5zLoPJCuJaGRPo6YposrZgaxHKzDHdDWWZvE/Sk7hsL2X/CpQ==", "dev": true, "license": "MIT", "engines": { - "node": ">=8" - } - }, - "node_modules/dotenv": { - "version": "16.4.5", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.5.tgz", - "integrity": "sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==", - "dev": true, - "engines": { - "node": ">=12" + "node": ">=18" }, "funding": { - "url": "https://dotenvx.com" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/dunder-proto": { + "node_modules/package-manager-detector": { + "version": "0.2.11", + "resolved": "https://registry.npmjs.org/package-manager-detector/-/package-manager-detector-0.2.11.tgz", + "integrity": "sha512-BEnLolu+yuz22S56CU1SUKq3XC3PkwD5wv4ikR4MfGvnRVcmzXR9DwSlW2fEamyTPyXHomBJRzgapeuBvRNzJQ==", + "license": "MIT", + "dependencies": { + "quansync": "^0.2.7" + } + }, + "node_modules/parent-module": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", - "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", - "dev": true, + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", "license": "MIT", "dependencies": { - "call-bind-apply-helpers": "^1.0.1", - "es-errors": "^1.3.0", - "gopd": "^1.2.0" + "callsites": "^3.0.0" }, "engines": { - "node": ">= 0.4" + "node": ">=6" } }, - "node_modules/eastasianwidth": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", - "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", - "dev": true, - "license": "MIT" - }, - "node_modules/elliptic": { - "version": "6.5.4", - "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz", - "integrity": "sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==", + "node_modules/patch-package": { + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/patch-package/-/patch-package-6.5.1.tgz", + "integrity": "sha512-I/4Zsalfhc6bphmJTlrLoOcAF87jcxko4q0qsv4bGcurbr8IskEOtdnt9iCmsQVGL1B+iUhSQqweyTLJfCF9rA==", "dependencies": { - "bn.js": "^4.11.9", - "brorand": "^1.1.0", - "hash.js": "^1.0.0", - "hmac-drbg": "^1.0.1", - "inherits": "^2.0.4", - "minimalistic-assert": "^1.0.1", - "minimalistic-crypto-utils": "^1.0.1" - } - }, - "node_modules/elliptic/node_modules/bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" - }, - "node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "node_modules/enquirer": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.4.1.tgz", - "integrity": "sha512-rRqJg/6gd538VHvR3PSrdRBb/1Vy2YfzHqzvbhGIQpDRKIa4FgV/54b5Q1xYSxOOwKvjXweS26E0Q+nAMwp2pQ==", - "dependencies": { - "ansi-colors": "^4.1.1", - "strip-ansi": "^6.0.1" + "@yarnpkg/lockfile": "^1.1.0", + "chalk": "^4.1.2", + "cross-spawn": "^6.0.5", + "find-yarn-workspace-root": "^2.0.0", + "fs-extra": "^9.0.0", + "is-ci": "^2.0.0", + "klaw-sync": "^6.0.0", + "minimist": "^1.2.6", + "open": "^7.4.2", + "rimraf": "^2.6.3", + "semver": "^5.6.0", + "slash": "^2.0.0", + "tmp": "^0.0.33", + "yaml": "^1.10.2" + }, + "bin": { + "patch-package": "index.js" }, "engines": { - "node": ">=8.6" + "node": ">=10", + "npm": ">5" } }, - "node_modules/entities": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", - "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", - "dev": true, - "license": "BSD-2-Clause", + "node_modules/patch-package/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, "engines": { - "node": ">=0.12" + "node": ">=8" }, "funding": { - "url": "https://github.com/fb55/entities?sponsor=1" + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/env-paths": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", - "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", - "dev": true, + "node_modules/patch-package/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, "engines": { - "node": ">=6" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/es-abstract": { - "version": "1.23.3", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.23.3.tgz", - "integrity": "sha512-e+HfNH61Bj1X9/jLc5v1owaLYuHdeHHSQlkhCBiTK8rBvKaULl/beGMxwrMXjpYrv4pz22BlY570vVePA2ho4A==", - "dev": true, + "node_modules/patch-package/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dependencies": { - "array-buffer-byte-length": "^1.0.1", - "arraybuffer.prototype.slice": "^1.0.3", - "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.7", - "data-view-buffer": "^1.0.1", - "data-view-byte-length": "^1.0.1", - "data-view-byte-offset": "^1.0.0", - "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.0.0", - "es-set-tostringtag": "^2.0.3", - "es-to-primitive": "^1.2.1", - "function.prototype.name": "^1.1.6", - "get-intrinsic": "^1.2.4", - "get-symbol-description": "^1.0.2", - "globalthis": "^1.0.3", - "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.2", - "has-proto": "^1.0.3", - "has-symbols": "^1.0.3", - "hasown": "^2.0.2", - "internal-slot": "^1.0.7", - "is-array-buffer": "^3.0.4", - "is-callable": "^1.2.7", - "is-data-view": "^1.0.1", - "is-negative-zero": "^2.0.3", - "is-regex": "^1.1.4", - "is-shared-array-buffer": "^1.0.3", - "is-string": "^1.0.7", - "is-typed-array": "^1.1.13", - "is-weakref": "^1.0.2", - "object-inspect": "^1.13.1", - "object-keys": "^1.1.1", - "object.assign": "^4.1.5", - "regexp.prototype.flags": "^1.5.2", - "safe-array-concat": "^1.1.2", - "safe-regex-test": "^1.0.3", - "string.prototype.trim": "^1.2.9", - "string.prototype.trimend": "^1.0.8", - "string.prototype.trimstart": "^1.0.8", - "typed-array-buffer": "^1.0.2", - "typed-array-byte-length": "^1.0.1", - "typed-array-byte-offset": "^1.0.2", - "typed-array-length": "^1.0.6", - "unbox-primitive": "^1.0.2", - "which-typed-array": "^1.1.15" + "color-name": "~1.1.4" }, "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=7.0.0" } }, - "node_modules/es-define-property": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", - "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", - "dev": true, - "license": "MIT", + "node_modules/patch-package/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/patch-package/node_modules/fs-extra": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", + "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", + "dependencies": { + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, "engines": { - "node": ">= 0.4" + "node": ">=10" } }, - "node_modules/es-errors": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", - "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", - "dev": true, + "node_modules/patch-package/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "engines": { - "node": ">= 0.4" + "node": ">=8" } }, - "node_modules/es-object-atoms": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", - "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", - "dev": true, - "license": "MIT", + "node_modules/patch-package/node_modules/rimraf": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", + "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", + "deprecated": "Rimraf versions prior to v4 are no longer supported", "dependencies": { - "es-errors": "^1.3.0" + "glob": "^7.1.3" }, + "bin": { + "rimraf": "bin.js" + } + }, + "node_modules/patch-package/node_modules/semver": { + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/patch-package/node_modules/slash": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-2.0.0.tgz", + "integrity": "sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==", "engines": { - "node": ">= 0.4" + "node": ">=6" } }, - "node_modules/es-set-tostringtag": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", - "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", - "dev": true, - "license": "MIT", + "node_modules/patch-package/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dependencies": { - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.6", - "has-tostringtag": "^1.0.2", - "hasown": "^2.0.2" + "has-flag": "^4.0.0" }, "engines": { - "node": ">= 0.4" + "node": ">=8" } }, - "node_modules/es-shim-unscopables": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.2.tgz", - "integrity": "sha512-J3yBRXCzDu4ULnQwxyToo/OjdMx6akgVC7K6few0a7F/0wLtmKKN7I73AH5T2836UuXRqN7Qg+IIUw/+YJksRw==", - "dev": true, - "dependencies": { - "hasown": "^2.0.0" + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "license": "MIT", + "engines": { + "node": ">=8" } }, - "node_modules/es-to-primitive": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", - "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", - "dev": true, - "dependencies": { - "is-callable": "^1.1.4", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.2" - }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">=0.10.0" } }, - "node_modules/escalade": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", - "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==", - "dev": true, + "node_modules/path-key": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", + "integrity": "sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw==", "engines": { - "node": ">=6" + "node": ">=4" } }, - "node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "dev": true, - "license": "MIT", - "peer": true, + "node_modules/path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", "engines": { - "node": ">=0.8.0" + "node": ">=8" } }, - "node_modules/escodegen": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.8.1.tgz", - "integrity": "sha512-yhi5S+mNTOuRvyW4gWlg5W1byMaQGWWSYHXsuFZ7GBo7tpyOwi2EdzMP/QWxh9hwkD2m+wDVHJsxhRIj+v/b/A==", - "dev": true, - "license": "BSD-2-Clause", - "peer": true, - "dependencies": { - "esprima": "^2.7.1", - "estraverse": "^1.9.1", - "esutils": "^2.0.2", - "optionator": "^0.8.1" - }, - "bin": { - "escodegen": "bin/escodegen.js", - "esgenerate": "bin/esgenerate.js" - }, + "node_modules/pathval": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz", + "integrity": "sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==", "engines": { - "node": ">=0.12.0" - }, - "optionalDependencies": { - "source-map": "~0.2.0" + "node": "*" } }, - "node_modules/eslint-visitor-keys": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", - "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", - "license": "Apache-2.0", + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + "node": ">=8.6" }, "funding": { - "url": "https://opencollective.com/eslint" + "url": "https://github.com/sponsors/jonschlinkert" } }, - "node_modules/espree": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz", - "integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==", - "license": "BSD-2-Clause", - "dependencies": { - "acorn": "^8.15.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^4.2.1" - }, + "node_modules/pify": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", + "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" + "node": ">=6" } }, - "node_modules/esprima": { - "version": "2.7.3", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-2.7.3.tgz", - "integrity": "sha512-OarPfz0lFCiW4/AV2Oy1Rp9qu0iusTKqykwTspGCZtPxmF81JR4MmIebvF1F9+UOKth2ZubLQ4XGGaU+hSn99A==", + "node_modules/prettier": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.3.tgz", + "integrity": "sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==", "dev": true, - "license": "BSD-2-Clause", - "peer": true, + "license": "MIT", "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" + "prettier": "bin/prettier.cjs" }, "engines": { - "node": ">=0.10.0" + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" } }, - "node_modules/estraverse": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-1.9.3.tgz", - "integrity": "sha512-25w1fMXQrGdoquWnScXZGckOv+Wes+JDnuN/+7ex3SauFRS72r2lFDec0EKPt2YD1wUJ/IrfEex+9yp4hfSOJA==", - "dev": true, - "peer": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true, - "license": "BSD-2-Clause", - "peer": true, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", "engines": { - "node": ">=0.10.0" + "node": ">=6" } }, - "node_modules/eth-gas-reporter": { - "version": "0.2.27", - "resolved": "https://registry.npmjs.org/eth-gas-reporter/-/eth-gas-reporter-0.2.27.tgz", - "integrity": "sha512-femhvoAM7wL0GcI8ozTdxfuBtBFJ9qsyIAsmKVjlWAHUbdnnXHt+lKzz/kmldM5lA9jLuNHGwuIxorNpLbR1Zw==", + "node_modules/punycode.js": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode.js/-/punycode.js-2.3.1.tgz", + "integrity": "sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==", "dev": true, "license": "MIT", - "peer": true, - "dependencies": { - "@solidity-parser/parser": "^0.14.0", - "axios": "^1.5.1", - "cli-table3": "^0.5.0", - "colors": "1.4.0", - "ethereum-cryptography": "^1.0.3", - "ethers": "^5.7.2", - "fs-readdir-recursive": "^1.1.0", - "lodash": "^4.17.14", - "markdown-table": "^1.1.3", - "mocha": "^10.2.0", - "req-cwd": "^2.0.0", - "sha1": "^1.1.1", - "sync-request": "^6.0.0" - }, - "peerDependencies": { - "@codechecks/client": "^0.1.0" - }, - "peerDependenciesMeta": { - "@codechecks/client": { - "optional": true - } + "engines": { + "node": ">=6" } }, - "node_modules/eth-gas-reporter/node_modules/@ethersproject/abi": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/abi/-/abi-5.8.0.tgz", - "integrity": "sha512-b9YS/43ObplgyV6SlyQsG53/vkSal0MNA1fskSC4mbnCMi8R+NkcH8K9FPYNESf6jUefBUniE4SOKms0E/KK1Q==", - "dev": true, + "node_modules/quansync": { + "version": "0.2.11", + "resolved": "https://registry.npmjs.org/quansync/-/quansync-0.2.11.tgz", + "integrity": "sha512-AifT7QEbW9Nri4tAwR5M/uzpBuqfZf+zwaEM/QkzEjj7NBuFD2rBuy0K3dE+8wltbezDV7JMA0WfnCPYRSYbXA==", "funding": [ { "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" + "url": "https://github.com/sponsors/antfu" }, { "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" + "url": "https://github.com/sponsors/sxzz" } ], - "license": "MIT", - "peer": true, - "dependencies": { - "@ethersproject/address": "^5.8.0", - "@ethersproject/bignumber": "^5.8.0", - "@ethersproject/bytes": "^5.8.0", - "@ethersproject/constants": "^5.8.0", - "@ethersproject/hash": "^5.8.0", - "@ethersproject/keccak256": "^5.8.0", - "@ethersproject/logger": "^5.8.0", - "@ethersproject/properties": "^5.8.0", - "@ethersproject/strings": "^5.8.0" - } - }, - "node_modules/eth-gas-reporter/node_modules/@ethersproject/abstract-provider": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/abstract-provider/-/abstract-provider-5.8.0.tgz", - "integrity": "sha512-wC9SFcmh4UK0oKuLJQItoQdzS/qZ51EJegK6EmAWlh+OptpQ/npECOR3QqECd8iGHC0RJb4WKbVdSfif4ammrg==", - "dev": true, + "license": "MIT" + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", "funding": [ { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" + "type": "github", + "url": "https://github.com/sponsors/feross" }, { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" } - ], + ] + }, + "node_modules/read-yaml-file": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/read-yaml-file/-/read-yaml-file-1.1.0.tgz", + "integrity": "sha512-VIMnQi/Z4HT2Fxuwg5KrY174U1VdUIASQVWXXyqtNRtxSr9IYkn1rsI6Tb6HsrHCmB7gVpNwX6JxPTHcH6IoTA==", "license": "MIT", - "peer": true, "dependencies": { - "@ethersproject/bignumber": "^5.8.0", - "@ethersproject/bytes": "^5.8.0", - "@ethersproject/logger": "^5.8.0", - "@ethersproject/networks": "^5.8.0", - "@ethersproject/properties": "^5.8.0", - "@ethersproject/transactions": "^5.8.0", - "@ethersproject/web": "^5.8.0" + "graceful-fs": "^4.1.5", + "js-yaml": "^3.6.1", + "pify": "^4.0.1", + "strip-bom": "^3.0.0" + }, + "engines": { + "node": ">=6" } }, - "node_modules/eth-gas-reporter/node_modules/@ethersproject/abstract-signer": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/abstract-signer/-/abstract-signer-5.8.0.tgz", - "integrity": "sha512-N0XhZTswXcmIZQdYtUnd79VJzvEwXQw6PK0dTl9VoYrEBxxCPXqS0Eod7q5TNKRxe1/5WUMuR0u0nqTF/avdCA==", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], + "node_modules/read-yaml-file/node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", "license": "MIT", - "peer": true, "dependencies": { - "@ethersproject/abstract-provider": "^5.8.0", - "@ethersproject/bignumber": "^5.8.0", - "@ethersproject/bytes": "^5.8.0", - "@ethersproject/logger": "^5.8.0", - "@ethersproject/properties": "^5.8.0" + "sprintf-js": "~1.0.2" } }, - "node_modules/eth-gas-reporter/node_modules/@ethersproject/address": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/address/-/address-5.8.0.tgz", - "integrity": "sha512-GhH/abcC46LJwshoN+uBNoKVFPxUuZm6dA257z0vZkKmU1+t8xTn8oK7B9qrj8W2rFRMch4gbJl6PmVxjxBEBA==", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], + "node_modules/read-yaml-file/node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "license": "BSD-2-Clause", + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/read-yaml-file/node_modules/js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", "license": "MIT", - "peer": true, "dependencies": { - "@ethersproject/bignumber": "^5.8.0", - "@ethersproject/bytes": "^5.8.0", - "@ethersproject/keccak256": "^5.8.0", - "@ethersproject/logger": "^5.8.0", - "@ethersproject/rlp": "^5.8.0" + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" } }, - "node_modules/eth-gas-reporter/node_modules/@ethersproject/base64": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/base64/-/base64-5.8.0.tgz", - "integrity": "sha512-lN0oIwfkYj9LbPx4xEkie6rAMJtySbpOAFXSDVQaBnAzYfB4X2Qr+FXJGxMoc3Bxp2Sm8OwvzMrywxyw0gLjIQ==", + "node_modules/readdirp": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz", + "integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==", "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], "license": "MIT", - "peer": true, - "dependencies": { - "@ethersproject/bytes": "^5.8.0" + "engines": { + "node": ">= 14.18.0" + }, + "funding": { + "type": "individual", + "url": "https://paulmillr.com/funding/" } }, - "node_modules/eth-gas-reporter/node_modules/@ethersproject/basex": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/basex/-/basex-5.8.0.tgz", - "integrity": "sha512-PIgTszMlDRmNwW9nhS6iqtVfdTAKosA7llYXNmGPw4YAI1PUyMv28988wAb41/gHF/WqGdoLv0erHaRcHRKW2Q==", + "node_modules/reduce-extract": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/reduce-extract/-/reduce-extract-1.0.0.tgz", + "integrity": "sha512-QF8vjWx3wnRSL5uFMyCjDeDc5EBMiryoT9tz94VvgjKfzecHAVnqmXAwQDcr7X4JmLc2cjkjFGCVzhMqDjgR9g==", "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], "license": "MIT", - "peer": true, "dependencies": { - "@ethersproject/bytes": "^5.8.0", - "@ethersproject/properties": "^5.8.0" + "test-value": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" } }, - "node_modules/eth-gas-reporter/node_modules/@ethersproject/bignumber": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/bignumber/-/bignumber-5.8.0.tgz", - "integrity": "sha512-ZyaT24bHaSeJon2tGPKIiHszWjD/54Sz8t57Toch475lCLljC6MgPmxk7Gtzz+ddNN5LuHea9qhAe0x3D+uYPA==", + "node_modules/reduce-extract/node_modules/array-back": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/array-back/-/array-back-1.0.4.tgz", + "integrity": "sha512-1WxbZvrmyhkNoeYcizokbmh5oiOCIfyvGtcqbK3Ls1v1fKcquzxnQSceOx6tzq7jmai2kFLWIpGND2cLhH6TPw==", "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], "license": "MIT", - "peer": true, "dependencies": { - "@ethersproject/bytes": "^5.8.0", - "@ethersproject/logger": "^5.8.0", - "bn.js": "^5.2.1" + "typical": "^2.6.0" + }, + "engines": { + "node": ">=0.12.0" } }, - "node_modules/eth-gas-reporter/node_modules/@ethersproject/bytes": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/bytes/-/bytes-5.8.0.tgz", - "integrity": "sha512-vTkeohgJVCPVHu5c25XWaWQOZ4v+DkGoC42/TS2ond+PARCxTJvgTFUNDZovyQ/uAQ4EcpqqowKydcdmRKjg7A==", + "node_modules/reduce-extract/node_modules/test-value": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/test-value/-/test-value-1.1.0.tgz", + "integrity": "sha512-wrsbRo7qP+2Je8x8DsK8ovCGyxe3sYfQwOraIY/09A2gFXU9DYKiTF14W4ki/01AEh56kMzAmlj9CaHGDDUBJA==", "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], "license": "MIT", - "peer": true, "dependencies": { - "@ethersproject/logger": "^5.8.0" + "array-back": "^1.0.2", + "typical": "^2.4.2" + }, + "engines": { + "node": ">=0.10.0" } }, - "node_modules/eth-gas-reporter/node_modules/@ethersproject/constants": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/constants/-/constants-5.8.0.tgz", - "integrity": "sha512-wigX4lrf5Vu+axVTIvNsuL6YrV4O5AXl5ubcURKMEME5TnWBouUh0CDTWxZ2GpnRn1kcCgE7l8O5+VbV9QTTcg==", + "node_modules/reduce-extract/node_modules/typical": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/typical/-/typical-2.6.1.tgz", + "integrity": "sha512-ofhi8kjIje6npGozTip9Fr8iecmYfEbS06i0JnIg+rh51KakryWF4+jX8lLKZVhy6N+ID45WYSFCxPOdTWCzNg==", + "dev": true, + "license": "MIT" + }, + "node_modules/reduce-unique": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/reduce-unique/-/reduce-unique-2.0.1.tgz", + "integrity": "sha512-x4jH/8L1eyZGR785WY+ePtyMNhycl1N2XOLxhCbzZFaqF4AXjLzqSxa2UHgJ2ZVR/HHyPOvl1L7xRnW8ye5MdA==", "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], "license": "MIT", - "peer": true, - "dependencies": { - "@ethersproject/bignumber": "^5.8.0" + "engines": { + "node": ">=6" } }, - "node_modules/eth-gas-reporter/node_modules/@ethersproject/contracts": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/contracts/-/contracts-5.8.0.tgz", - "integrity": "sha512-0eFjGz9GtuAi6MZwhb4uvUM216F38xiuR0yYCjKJpNfSEy4HUM8hvqqBj9Jmm0IUz8l0xKEhWwLIhPgxNY0yvQ==", + "node_modules/reduce-without": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/reduce-without/-/reduce-without-1.0.1.tgz", + "integrity": "sha512-zQv5y/cf85sxvdrKPlfcRzlDn/OqKFThNimYmsS3flmkioKvkUGn2Qg9cJVoQiEvdxFGLE0MQER/9fZ9sUqdxg==", "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], "license": "MIT", - "peer": true, "dependencies": { - "@ethersproject/abi": "^5.8.0", - "@ethersproject/abstract-provider": "^5.8.0", - "@ethersproject/abstract-signer": "^5.8.0", - "@ethersproject/address": "^5.8.0", - "@ethersproject/bignumber": "^5.8.0", - "@ethersproject/bytes": "^5.8.0", - "@ethersproject/constants": "^5.8.0", - "@ethersproject/logger": "^5.8.0", - "@ethersproject/properties": "^5.8.0", - "@ethersproject/transactions": "^5.8.0" - } - }, - "node_modules/eth-gas-reporter/node_modules/@ethersproject/hash": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/hash/-/hash-5.8.0.tgz", - "integrity": "sha512-ac/lBcTbEWW/VGJij0CNSw/wPcw9bSRgCB0AIBz8CvED/jfvDoV9hsIIiWfvWmFEi8RcXtlNwp2jv6ozWOsooA==", + "test-value": "^2.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/reduce-without/node_modules/array-back": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/array-back/-/array-back-1.0.4.tgz", + "integrity": "sha512-1WxbZvrmyhkNoeYcizokbmh5oiOCIfyvGtcqbK3Ls1v1fKcquzxnQSceOx6tzq7jmai2kFLWIpGND2cLhH6TPw==", "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], - "license": "MIT", - "peer": true, - "dependencies": { - "@ethersproject/abstract-signer": "^5.8.0", - "@ethersproject/address": "^5.8.0", - "@ethersproject/base64": "^5.8.0", - "@ethersproject/bignumber": "^5.8.0", - "@ethersproject/bytes": "^5.8.0", - "@ethersproject/keccak256": "^5.8.0", - "@ethersproject/logger": "^5.8.0", - "@ethersproject/properties": "^5.8.0", - "@ethersproject/strings": "^5.8.0" - } - }, - "node_modules/eth-gas-reporter/node_modules/@ethersproject/hdnode": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/hdnode/-/hdnode-5.8.0.tgz", - "integrity": "sha512-4bK1VF6E83/3/Im0ERnnUeWOY3P1BZml4ZD3wcH8Ys0/d1h1xaFt6Zc+Dh9zXf9TapGro0T4wvO71UTCp3/uoA==", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], - "license": "MIT", - "peer": true, - "dependencies": { - "@ethersproject/abstract-signer": "^5.8.0", - "@ethersproject/basex": "^5.8.0", - "@ethersproject/bignumber": "^5.8.0", - "@ethersproject/bytes": "^5.8.0", - "@ethersproject/logger": "^5.8.0", - "@ethersproject/pbkdf2": "^5.8.0", - "@ethersproject/properties": "^5.8.0", - "@ethersproject/sha2": "^5.8.0", - "@ethersproject/signing-key": "^5.8.0", - "@ethersproject/strings": "^5.8.0", - "@ethersproject/transactions": "^5.8.0", - "@ethersproject/wordlists": "^5.8.0" - } - }, - "node_modules/eth-gas-reporter/node_modules/@ethersproject/json-wallets": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/json-wallets/-/json-wallets-5.8.0.tgz", - "integrity": "sha512-HxblNck8FVUtNxS3VTEYJAcwiKYsBIF77W15HufqlBF9gGfhmYOJtYZp8fSDZtn9y5EaXTE87zDwzxRoTFk11w==", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], "license": "MIT", - "peer": true, "dependencies": { - "@ethersproject/abstract-signer": "^5.8.0", - "@ethersproject/address": "^5.8.0", - "@ethersproject/bytes": "^5.8.0", - "@ethersproject/hdnode": "^5.8.0", - "@ethersproject/keccak256": "^5.8.0", - "@ethersproject/logger": "^5.8.0", - "@ethersproject/pbkdf2": "^5.8.0", - "@ethersproject/properties": "^5.8.0", - "@ethersproject/random": "^5.8.0", - "@ethersproject/strings": "^5.8.0", - "@ethersproject/transactions": "^5.8.0", - "aes-js": "3.0.0", - "scrypt-js": "3.0.1" + "typical": "^2.6.0" + }, + "engines": { + "node": ">=0.12.0" } }, - "node_modules/eth-gas-reporter/node_modules/@ethersproject/keccak256": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/keccak256/-/keccak256-5.8.0.tgz", - "integrity": "sha512-A1pkKLZSz8pDaQ1ftutZoaN46I6+jvuqugx5KYNeQOPqq+JZ0Txm7dlWesCHB5cndJSu5vP2VKptKf7cksERng==", + "node_modules/reduce-without/node_modules/test-value": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/test-value/-/test-value-2.1.0.tgz", + "integrity": "sha512-+1epbAxtKeXttkGFMTX9H42oqzOTufR1ceCF+GYA5aOmvaPq9wd4PUS8329fn2RRLGNeUkgRLnVpycjx8DsO2w==", "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], "license": "MIT", - "peer": true, "dependencies": { - "@ethersproject/bytes": "^5.8.0", - "js-sha3": "0.8.0" + "array-back": "^1.0.3", + "typical": "^2.6.0" + }, + "engines": { + "node": ">=0.10.0" } }, - "node_modules/eth-gas-reporter/node_modules/@ethersproject/logger": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/logger/-/logger-5.8.0.tgz", - "integrity": "sha512-Qe6knGmY+zPPWTC+wQrpitodgBfH7XoceCGL5bJVejmH+yCS3R8jJm8iiWuvWbG76RUmyEG53oqv6GMVWqunjA==", + "node_modules/reduce-without/node_modules/typical": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/typical/-/typical-2.6.1.tgz", + "integrity": "sha512-ofhi8kjIje6npGozTip9Fr8iecmYfEbS06i0JnIg+rh51KakryWF4+jX8lLKZVhy6N+ID45WYSFCxPOdTWCzNg==", "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], - "license": "MIT", - "peer": true + "license": "MIT" }, - "node_modules/eth-gas-reporter/node_modules/@ethersproject/networks": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/networks/-/networks-5.8.0.tgz", - "integrity": "sha512-egPJh3aPVAzbHwq8DD7Po53J4OUSsA1MjQp8Vf/OZPav5rlmWUaFLiq8cvQiGK0Z5K6LYzm29+VA/p4RL1FzNg==", + "node_modules/requizzle": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/requizzle/-/requizzle-0.2.4.tgz", + "integrity": "sha512-JRrFk1D4OQ4SqovXOgdav+K8EAhSB/LJZqCz8tbX0KObcdeM15Ss59ozWMBWmmINMagCwmqn4ZNryUGpBsl6Jw==", "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], "license": "MIT", - "peer": true, "dependencies": { - "@ethersproject/logger": "^5.8.0" + "lodash": "^4.17.21" } }, - "node_modules/eth-gas-reporter/node_modules/@ethersproject/pbkdf2": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/pbkdf2/-/pbkdf2-5.8.0.tgz", - "integrity": "sha512-wuHiv97BrzCmfEaPbUFpMjlVg/IDkZThp9Ri88BpjRleg4iePJaj2SW8AIyE8cXn5V1tuAaMj6lzvsGJkGWskg==", + "node_modules/resolve-pkg-maps": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", + "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==", "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], "license": "MIT", - "peer": true, - "dependencies": { - "@ethersproject/bytes": "^5.8.0", - "@ethersproject/sha2": "^5.8.0" + "funding": { + "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" } }, - "node_modules/eth-gas-reporter/node_modules/@ethersproject/properties": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/properties/-/properties-5.8.0.tgz", - "integrity": "sha512-PYuiEoQ+FMaZZNGrStmN7+lWjlsoufGIHdww7454FIaGdbe/p5rnaCXTr5MtBYl3NkeoVhHZuyzChPeGeKIpQw==", + "node_modules/resolve.exports": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.3.tgz", + "integrity": "sha512-OcXjMsGdhL4XnbShKpAcSqPMzQoYkYyhbEaeSko47MjRP9NfEQMhZkXL1DoFlt9LWQn4YttrdnV6X2OiyzBi+A==", "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], "license": "MIT", - "peer": true, - "dependencies": { - "@ethersproject/logger": "^5.8.0" + "engines": { + "node": ">=10" } }, - "node_modules/eth-gas-reporter/node_modules/@ethersproject/providers": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/providers/-/providers-5.8.0.tgz", - "integrity": "sha512-3Il3oTzEx3o6kzcg9ZzbE+oCZYyY+3Zh83sKkn4s1DZfTUjIegHnN2Cm0kbn9YFy45FDVcuCLLONhU7ny0SsCw==", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], - "license": "MIT", - "peer": true, - "dependencies": { - "@ethersproject/abstract-provider": "^5.8.0", - "@ethersproject/abstract-signer": "^5.8.0", - "@ethersproject/address": "^5.8.0", - "@ethersproject/base64": "^5.8.0", - "@ethersproject/basex": "^5.8.0", - "@ethersproject/bignumber": "^5.8.0", - "@ethersproject/bytes": "^5.8.0", - "@ethersproject/constants": "^5.8.0", - "@ethersproject/hash": "^5.8.0", - "@ethersproject/logger": "^5.8.0", - "@ethersproject/networks": "^5.8.0", - "@ethersproject/properties": "^5.8.0", - "@ethersproject/random": "^5.8.0", - "@ethersproject/rlp": "^5.8.0", - "@ethersproject/sha2": "^5.8.0", - "@ethersproject/strings": "^5.8.0", - "@ethersproject/transactions": "^5.8.0", - "@ethersproject/web": "^5.8.0", - "bech32": "1.1.4", - "ws": "8.18.0" + "node_modules/reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" } }, - "node_modules/eth-gas-reporter/node_modules/@ethersproject/random": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/random/-/random-5.8.0.tgz", - "integrity": "sha512-E4I5TDl7SVqyg4/kkA/qTfuLWAQGXmSOgYyO01So8hLfwgKvYK5snIlzxJMk72IFdG/7oh8yuSqY2KX7MMwg+A==", + "node_modules/rfdc": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.4.1.tgz", + "integrity": "sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==", "dev": true, + "license": "MIT" + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", "funding": [ { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" + "type": "github", + "url": "https://github.com/sponsors/feross" }, { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], - "license": "MIT", - "peer": true, - "dependencies": { - "@ethersproject/bytes": "^5.8.0", - "@ethersproject/logger": "^5.8.0" - } - }, - "node_modules/eth-gas-reporter/node_modules/@ethersproject/rlp": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/rlp/-/rlp-5.8.0.tgz", - "integrity": "sha512-LqZgAznqDbiEunaUvykH2JAoXTT9NV0Atqk8rQN9nx9SEgThA/WMx5DnW8a9FOufo//6FZOCHZ+XiClzgbqV9Q==", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" + "type": "patreon", + "url": "https://www.patreon.com/feross" }, { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" + "type": "consulting", + "url": "https://feross.org/support" } ], - "license": "MIT", - "peer": true, "dependencies": { - "@ethersproject/bytes": "^5.8.0", - "@ethersproject/logger": "^5.8.0" + "queue-microtask": "^1.2.2" } }, - "node_modules/eth-gas-reporter/node_modules/@ethersproject/sha2": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/sha2/-/sha2-5.8.0.tgz", - "integrity": "sha512-dDOUrXr9wF/YFltgTBYS0tKslPEKr6AekjqDW2dbn1L1xmjGR+9GiKu4ajxovnrDbwxAKdHjW8jNcwfz8PAz4A==", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], - "license": "MIT", - "peer": true, - "dependencies": { - "@ethersproject/bytes": "^5.8.0", - "@ethersproject/logger": "^5.8.0", - "hash.js": "1.1.7" + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + }, + "node_modules/scrypt-js": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/scrypt-js/-/scrypt-js-3.0.1.tgz", + "integrity": "sha512-cdwTTnqPu0Hyvf5in5asVdZocVDTNRmR7XEcJuIzMjJeSHybHl7vpB66AzwTaIg6CLSbtjcxc8fqcySfnTkccA==", + "peer": true + }, + "node_modules/semver": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz", + "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" } }, - "node_modules/eth-gas-reporter/node_modules/@ethersproject/signing-key": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/signing-key/-/signing-key-5.8.0.tgz", - "integrity": "sha512-LrPW2ZxoigFi6U6aVkFN/fa9Yx/+4AtIUe4/HACTvKJdhm0eeb107EVCIQcrLZkxaSIgc/eCrX8Q1GtbH+9n3w==", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], - "license": "MIT", - "peer": true, + "node_modules/shebang-command": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", + "integrity": "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==", "dependencies": { - "@ethersproject/bytes": "^5.8.0", - "@ethersproject/logger": "^5.8.0", - "@ethersproject/properties": "^5.8.0", - "bn.js": "^5.2.1", - "elliptic": "6.6.1", - "hash.js": "1.1.7" + "shebang-regex": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" } }, - "node_modules/eth-gas-reporter/node_modules/@ethersproject/solidity": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/solidity/-/solidity-5.8.0.tgz", - "integrity": "sha512-4CxFeCgmIWamOHwYN9d+QWGxye9qQLilpgTU0XhYs1OahkclF+ewO+3V1U0mvpiuQxm5EHHmv8f7ClVII8EHsA==", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], - "license": "MIT", - "peer": true, - "dependencies": { - "@ethersproject/bignumber": "^5.8.0", - "@ethersproject/bytes": "^5.8.0", - "@ethersproject/keccak256": "^5.8.0", - "@ethersproject/logger": "^5.8.0", - "@ethersproject/sha2": "^5.8.0", - "@ethersproject/strings": "^5.8.0" + "node_modules/shebang-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", + "integrity": "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==", + "engines": { + "node": ">=0.10.0" } }, - "node_modules/eth-gas-reporter/node_modules/@ethersproject/strings": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/strings/-/strings-5.8.0.tgz", - "integrity": "sha512-qWEAk0MAvl0LszjdfnZ2uC8xbR2wdv4cDabyHiBh3Cldq/T8dPH3V4BbBsAYJUeonwD+8afVXld274Ls+Y1xXg==", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], - "license": "MIT", - "peer": true, - "dependencies": { - "@ethersproject/bytes": "^5.8.0", - "@ethersproject/constants": "^5.8.0", - "@ethersproject/logger": "^5.8.0" + "node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/eth-gas-reporter/node_modules/@ethersproject/transactions": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/transactions/-/transactions-5.8.0.tgz", - "integrity": "sha512-UglxSDjByHG0TuU17bDfCemZ3AnKO2vYrL5/2n2oXvKzvb7Cz+W9gOWXKARjp2URVwcWlQlPOEQyAviKwT4AHg==", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], - "license": "MIT", - "peer": true, - "dependencies": { - "@ethersproject/address": "^5.8.0", - "@ethersproject/bignumber": "^5.8.0", - "@ethersproject/bytes": "^5.8.0", - "@ethersproject/constants": "^5.8.0", - "@ethersproject/keccak256": "^5.8.0", - "@ethersproject/logger": "^5.8.0", - "@ethersproject/properties": "^5.8.0", - "@ethersproject/rlp": "^5.8.0", - "@ethersproject/signing-key": "^5.8.0" - } - }, - "node_modules/eth-gas-reporter/node_modules/@ethersproject/units": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/units/-/units-5.8.0.tgz", - "integrity": "sha512-lxq0CAnc5kMGIiWW4Mr041VT8IhNM+Pn5T3haO74XZWFulk7wH1Gv64HqE96hT4a7iiNMdOCFEBgaxWuk8ETKQ==", + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "engines": { + "node": ">=8" + } + }, + "node_modules/solady": { + "version": "0.0.182", + "resolved": "https://registry.npmjs.org/solady/-/solady-0.0.182.tgz", + "integrity": "sha512-FW6xo1akJoYpkXMzu58/56FcNU3HYYNamEbnFO3iSibXk0nSHo0DV2Gu/zI3FPg3So5CCX6IYli1TT1IWATnvg==" + }, + "node_modules/sort-array": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/sort-array/-/sort-array-4.1.5.tgz", + "integrity": "sha512-Ya4peoS1fgFN42RN1REk2FgdNOeLIEMKFGJvs7VTP3OklF8+kl2SkpVliZ4tk/PurWsrWRsdNdU+tgyOBkB9sA==", "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], "license": "MIT", - "peer": true, "dependencies": { - "@ethersproject/bignumber": "^5.8.0", - "@ethersproject/constants": "^5.8.0", - "@ethersproject/logger": "^5.8.0" + "array-back": "^5.0.0", + "typical": "^6.0.1" + }, + "engines": { + "node": ">=10" } }, - "node_modules/eth-gas-reporter/node_modules/@ethersproject/wallet": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/wallet/-/wallet-5.8.0.tgz", - "integrity": "sha512-G+jnzmgg6UxurVKRKvw27h0kvG75YKXZKdlLYmAHeF32TGUzHkOFd7Zn6QHOTYRFWnfjtSSFjBowKo7vfrXzPA==", + "node_modules/sort-array/node_modules/array-back": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/array-back/-/array-back-5.0.0.tgz", + "integrity": "sha512-kgVWwJReZWmVuWOQKEOohXKJX+nD02JAZ54D1RRWlv8L0NebauKAaFxACKzB74RTclt1+WNz5KHaLRDAPZbDEw==", "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], "license": "MIT", - "peer": true, - "dependencies": { - "@ethersproject/abstract-provider": "^5.8.0", - "@ethersproject/abstract-signer": "^5.8.0", - "@ethersproject/address": "^5.8.0", - "@ethersproject/bignumber": "^5.8.0", - "@ethersproject/bytes": "^5.8.0", - "@ethersproject/hash": "^5.8.0", - "@ethersproject/hdnode": "^5.8.0", - "@ethersproject/json-wallets": "^5.8.0", - "@ethersproject/keccak256": "^5.8.0", - "@ethersproject/logger": "^5.8.0", - "@ethersproject/properties": "^5.8.0", - "@ethersproject/random": "^5.8.0", - "@ethersproject/signing-key": "^5.8.0", - "@ethersproject/transactions": "^5.8.0", - "@ethersproject/wordlists": "^5.8.0" - } - }, - "node_modules/eth-gas-reporter/node_modules/@ethersproject/web": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/web/-/web-5.8.0.tgz", - "integrity": "sha512-j7+Ksi/9KfGviws6Qtf9Q7KCqRhpwrYKQPs+JBA/rKVFF/yaWLHJEH3zfVP2plVu+eys0d2DlFmhoQJayFewcw==", + "engines": { + "node": ">=10" + } + }, + "node_modules/sort-array/node_modules/typical": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/typical/-/typical-6.0.1.tgz", + "integrity": "sha512-+g3NEp7fJLe9DPa1TArHm9QAA7YciZmWnfAqEaFrBihQ7epOv9i99rjtgb6Iz0wh3WuQDjsCTDfgRoGnmHN81A==", "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], "license": "MIT", - "peer": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/spawndamnit": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/spawndamnit/-/spawndamnit-3.0.1.tgz", + "integrity": "sha512-MmnduQUuHCoFckZoWnXsTg7JaiLBJrKFj9UI2MbRPGaJeVpsLcVBu6P/IGZovziM/YBsellCmsprgNA+w0CzVg==", + "license": "SEE LICENSE IN LICENSE", "dependencies": { - "@ethersproject/base64": "^5.8.0", - "@ethersproject/bytes": "^5.8.0", - "@ethersproject/logger": "^5.8.0", - "@ethersproject/properties": "^5.8.0", - "@ethersproject/strings": "^5.8.0" + "cross-spawn": "^7.0.5", + "signal-exit": "^4.0.1" } }, - "node_modules/eth-gas-reporter/node_modules/@ethersproject/wordlists": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/wordlists/-/wordlists-5.8.0.tgz", - "integrity": "sha512-2df9bbXicZws2Sb5S6ET493uJ0Z84Fjr3pC4tu/qlnZERibZCeUVuqdtt+7Tv9xxhUxHoIekIA7avrKUWHrezg==", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], + "node_modules/spawndamnit/node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "license": "MIT", - "peer": true, "dependencies": { - "@ethersproject/bytes": "^5.8.0", - "@ethersproject/hash": "^5.8.0", - "@ethersproject/logger": "^5.8.0", - "@ethersproject/properties": "^5.8.0", - "@ethersproject/strings": "^5.8.0" + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" } }, - "node_modules/eth-gas-reporter/node_modules/@noble/hashes": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.2.0.tgz", - "integrity": "sha512-FZfhjEDbT5GRswV3C6uvLPHMiVD6lQBmpoX5+eSiPaMTXte/IKqI5dykDxzZB/WBeK/CDuQRBWarPdi3FNY2zQ==", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], + "node_modules/spawndamnit/node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", "license": "MIT", - "peer": true + "engines": { + "node": ">=8" + } }, - "node_modules/eth-gas-reporter/node_modules/@scure/bip32": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.1.5.tgz", - "integrity": "sha512-XyNh1rB0SkEqd3tXcXMi+Xe1fvg+kUIcoRIEujP1Jgv7DqW2r9lg3Ah0NkFaCs9sTkQAQA8kw7xiRXzENi9Rtw==", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], + "node_modules/spawndamnit/node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", "license": "MIT", - "peer": true, "dependencies": { - "@noble/hashes": "~1.2.0", - "@noble/secp256k1": "~1.7.0", - "@scure/base": "~1.1.0" + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" } }, - "node_modules/eth-gas-reporter/node_modules/@scure/bip39": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.1.1.tgz", - "integrity": "sha512-t+wDck2rVkh65Hmv280fYdVdY25J9YeEUIgn2LG1WM6gxFkGzcksoDiUkWVpVp3Oex9xGC68JU2dSbUfwZ2jPg==", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], + "node_modules/spawndamnit/node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "license": "MIT", - "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/spawndamnit/node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "license": "ISC", "dependencies": { - "@noble/hashes": "~1.2.0", - "@scure/base": "~1.1.0" + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" } }, - "node_modules/eth-gas-reporter/node_modules/aes-js": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/aes-js/-/aes-js-3.0.0.tgz", - "integrity": "sha512-H7wUZRn8WpTq9jocdxQ2c8x2sKo9ZVmzfRE13GiNJXfp7NcKYEdvl3vspKjXox6RIG2VtaRe4JFvxG4rqp2Zuw==", + "node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==" + }, + "node_modules/stream-connect": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/stream-connect/-/stream-connect-1.0.2.tgz", + "integrity": "sha512-68Kl+79cE0RGKemKkhxTSg8+6AGrqBt+cbZAXevg2iJ6Y3zX4JhA/sZeGzLpxW9cXhmqAcE7KnJCisUmIUfnFQ==", "dev": true, "license": "MIT", - "peer": true + "dependencies": { + "array-back": "^1.0.2" + }, + "engines": { + "node": ">=0.10.0" + } }, - "node_modules/eth-gas-reporter/node_modules/elliptic": { - "version": "6.6.1", - "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.6.1.tgz", - "integrity": "sha512-RaddvvMatK2LJHqFJ+YA4WysVN5Ita9E35botqIYspQ4TkRAlCicdzKOjlyv/1Za5RyTNn7di//eEV0uTAfe3g==", + "node_modules/stream-connect/node_modules/array-back": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/array-back/-/array-back-1.0.4.tgz", + "integrity": "sha512-1WxbZvrmyhkNoeYcizokbmh5oiOCIfyvGtcqbK3Ls1v1fKcquzxnQSceOx6tzq7jmai2kFLWIpGND2cLhH6TPw==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { - "bn.js": "^4.11.9", - "brorand": "^1.1.0", - "hash.js": "^1.0.0", - "hmac-drbg": "^1.0.1", - "inherits": "^2.0.4", - "minimalistic-assert": "^1.0.1", - "minimalistic-crypto-utils": "^1.0.1" + "typical": "^2.6.0" + }, + "engines": { + "node": ">=0.12.0" } }, - "node_modules/eth-gas-reporter/node_modules/elliptic/node_modules/bn.js": { - "version": "4.12.2", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.2.tgz", - "integrity": "sha512-n4DSx829VRTRByMRGdjQ9iqsN0Bh4OolPsFnaZBLcbi8iXcB+kJ9s7EnRt4wILZNV3kPLHkRVfOc/HvhC3ovDw==", + "node_modules/stream-connect/node_modules/typical": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/typical/-/typical-2.6.1.tgz", + "integrity": "sha512-ofhi8kjIje6npGozTip9Fr8iecmYfEbS06i0JnIg+rh51KakryWF4+jX8lLKZVhy6N+ID45WYSFCxPOdTWCzNg==", "dev": true, - "license": "MIT", - "peer": true + "license": "MIT" }, - "node_modules/eth-gas-reporter/node_modules/ethereum-cryptography": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-1.2.0.tgz", - "integrity": "sha512-6yFQC9b5ug6/17CQpCyE3k9eKBMdhyVjzUy1WkiuY/E4vj/SXDBbCw8QEIaXqf0Mf2SnY6RmpDcwlUmBSS0EJw==", + "node_modules/stream-via": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/stream-via/-/stream-via-1.0.4.tgz", + "integrity": "sha512-DBp0lSvX5G9KGRDTkR/R+a29H+Wk2xItOF+MpZLLNDWbEV9tGPnqLPxHEYjmiz8xGtJHRIqmI+hCjmNzqoA4nQ==", "dev": true, "license": "MIT", - "peer": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dependencies": { - "@noble/hashes": "1.2.0", - "@noble/secp256k1": "1.7.1", - "@scure/bip32": "1.1.5", - "@scure/bip39": "1.1.1" + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" } }, - "node_modules/eth-gas-reporter/node_modules/ethers": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/ethers/-/ethers-5.8.0.tgz", - "integrity": "sha512-DUq+7fHrCg1aPDFCHx6UIPb3nmt2XMpM7Y/g2gLhsl3lIBqeAfOJIl1qEvRf2uq3BiKxmh6Fh5pfp2ieyek7Kg==", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], - "license": "MIT", - "peer": true, - "dependencies": { - "@ethersproject/abi": "5.8.0", - "@ethersproject/abstract-provider": "5.8.0", - "@ethersproject/abstract-signer": "5.8.0", - "@ethersproject/address": "5.8.0", - "@ethersproject/base64": "5.8.0", - "@ethersproject/basex": "5.8.0", - "@ethersproject/bignumber": "5.8.0", - "@ethersproject/bytes": "5.8.0", - "@ethersproject/constants": "5.8.0", - "@ethersproject/contracts": "5.8.0", - "@ethersproject/hash": "5.8.0", - "@ethersproject/hdnode": "5.8.0", - "@ethersproject/json-wallets": "5.8.0", - "@ethersproject/keccak256": "5.8.0", - "@ethersproject/logger": "5.8.0", - "@ethersproject/networks": "5.8.0", - "@ethersproject/pbkdf2": "5.8.0", - "@ethersproject/properties": "5.8.0", - "@ethersproject/providers": "5.8.0", - "@ethersproject/random": "5.8.0", - "@ethersproject/rlp": "5.8.0", - "@ethersproject/sha2": "5.8.0", - "@ethersproject/signing-key": "5.8.0", - "@ethersproject/solidity": "5.8.0", - "@ethersproject/strings": "5.8.0", - "@ethersproject/transactions": "5.8.0", - "@ethersproject/units": "5.8.0", - "@ethersproject/wallet": "5.8.0", - "@ethersproject/web": "5.8.0", - "@ethersproject/wordlists": "5.8.0" - } - }, - "node_modules/eth-gas-reporter/node_modules/ws": { - "version": "8.18.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.0.tgz", - "integrity": "sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==", - "dev": true, + "node_modules/strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", "license": "MIT", - "peer": true, "engines": { - "node": ">=10.0.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": ">=5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } - } - }, - "node_modules/ethereum-bloom-filters": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/ethereum-bloom-filters/-/ethereum-bloom-filters-1.2.0.tgz", - "integrity": "sha512-28hyiE7HVsWubqhpVLVmZXFd4ITeHi+BUu05o9isf0GUpMtzBUi+8/gFrGaGYzvGAJQmJ3JKj77Mk9G98T84rA==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "@noble/hashes": "^1.4.0" + "node": ">=4" } }, - "node_modules/ethereum-bloom-filters/node_modules/@noble/hashes": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz", - "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==", - "dev": true, - "license": "MIT", - "peer": true, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", "engines": { - "node": "^14.21.3 || >=16" + "node": ">=8" }, "funding": { - "url": "https://paulmillr.com/funding/" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/ethereum-cryptography": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", - "integrity": "sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ==", + "node_modules/temp-path": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/temp-path/-/temp-path-1.0.0.tgz", + "integrity": "sha512-TvmyH7kC6ZVTYkqCODjJIbgvu0FKiwQpZ4D1aknE7xpcDf/qEOB8KZEK5ef2pfbVoiBhNWs3yx4y+ESMtNYmlg==", "dev": true, + "license": "MIT" + }, + "node_modules/term-size": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/term-size/-/term-size-2.2.1.tgz", + "integrity": "sha512-wK0Ri4fOGjv/XPy8SBHZChl8CM7uMc5VML7SqiQ0zG7+J5Vr+RMQDoHa2CNT6KHUnTGIXH34UDMkPzAUyapBZg==", "license": "MIT", - "peer": true, - "dependencies": { - "@types/pbkdf2": "^3.0.0", - "@types/secp256k1": "^4.0.1", - "blakejs": "^1.1.0", - "browserify-aes": "^1.2.0", - "bs58check": "^2.1.2", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "hash.js": "^1.1.7", - "keccak": "^3.0.0", - "pbkdf2": "^3.0.17", - "randombytes": "^2.1.0", - "safe-buffer": "^5.1.2", - "scrypt-js": "^3.0.0", - "secp256k1": "^4.0.1", - "setimmediate": "^1.0.5" - } - }, - "node_modules/ethereumjs-util": { - "version": "7.1.5", - "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-7.1.5.tgz", - "integrity": "sha512-SDl5kKrQAudFBUe5OJM9Ac6WmMyYmXX/6sTmLZ3ffG2eY6ZIGBes3pEDxNN6V72WyOw4CPD5RomKdsa8DAAwLg==", - "dev": true, - "license": "MPL-2.0", - "peer": true, - "dependencies": { - "@types/bn.js": "^5.1.0", - "bn.js": "^5.1.2", - "create-hash": "^1.1.2", - "ethereum-cryptography": "^0.1.3", - "rlp": "^2.2.4" - }, "engines": { - "node": ">=10.0.0" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/ethers": { - "version": "6.15.0", - "resolved": "https://registry.npmjs.org/ethers/-/ethers-6.15.0.tgz", - "integrity": "sha512-Kf/3ZW54L4UT0pZtsY/rf+EkBU7Qi5nnhonjUb8yTXcxH3cdcWrV2cRyk0Xk/4jK6OoHhxxZHriyhje20If2hQ==", + "node_modules/test-value": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/test-value/-/test-value-3.0.0.tgz", + "integrity": "sha512-sVACdAWcZkSU9x7AOmJo5TqE+GyNJknHaHsMrR6ZnhjVlVN9Yx6FjHrsKZ3BjIpPCT68zYesPWkakrNupwfOTQ==", "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://github.com/sponsors/ethers-io/" - }, - { - "type": "individual", - "url": "https://www.buymeacoffee.com/ricmoo" - } - ], "license": "MIT", - "peer": true, "dependencies": { - "@adraffy/ens-normalize": "1.10.1", - "@noble/curves": "1.2.0", - "@noble/hashes": "1.3.2", - "@types/node": "22.7.5", - "aes-js": "4.0.0-beta.5", - "tslib": "2.7.0", - "ws": "8.17.1" + "array-back": "^2.0.0", + "typical": "^2.6.1" }, "engines": { - "node": ">=14.0.0" + "node": ">=4.0.0" } }, - "node_modules/ethjs-unit": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/ethjs-unit/-/ethjs-unit-0.1.6.tgz", - "integrity": "sha512-/Sn9Y0oKl0uqQuvgFk/zQgR7aw1g36qX/jzSQ5lSwlO0GigPymk4eGQfeNTD03w1dPOqfz8V77Cy43jH56pagw==", + "node_modules/test-value/node_modules/array-back": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/array-back/-/array-back-2.0.0.tgz", + "integrity": "sha512-eJv4pLLufP3g5kcZry0j6WXpIbzYw9GUB4mVJZno9wfwiBxbizTnHCw3VJb07cBihbFX48Y7oSrW9y+gt4glyw==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { - "bn.js": "4.11.6", - "number-to-bn": "1.7.0" + "typical": "^2.6.1" }, "engines": { - "node": ">=6.5.0", - "npm": ">=3" + "node": ">=4" } }, - "node_modules/ethjs-unit/node_modules/bn.js": { - "version": "4.11.6", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.6.tgz", - "integrity": "sha512-XWwnNNFCuuSQ0m3r3C4LE3EiORltHd9M05pq6FOlVeiophzRbMo50Sbz1ehl8K3Z+jw9+vmgnXefY1hz8X+2wA==", + "node_modules/test-value/node_modules/typical": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/typical/-/typical-2.6.1.tgz", + "integrity": "sha512-ofhi8kjIje6npGozTip9Fr8iecmYfEbS06i0JnIg+rh51KakryWF4+jX8lLKZVhy6N+ID45WYSFCxPOdTWCzNg==", "dev": true, - "license": "MIT", - "peer": true + "license": "MIT" }, - "node_modules/evp_bytestokey": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz", - "integrity": "sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA==", - "dev": true, - "license": "MIT", - "peer": true, + "node_modules/tmp": { + "version": "0.0.33", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", + "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", "dependencies": { - "md5.js": "^1.3.4", - "safe-buffer": "^5.1.1" + "os-tmpdir": "~1.0.2" + }, + "engines": { + "node": ">=0.6.0" } }, - "node_modules/extendable-error": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/extendable-error/-/extendable-error-0.1.7.tgz", - "integrity": "sha512-UOiS2in6/Q0FK0R0q6UY9vYpQ21mr/Qn1KOnte7vsACuNJf514WvCCUHSRCPcgjPT2bAhNIJdlE6bVap1GKmeg==", - "license": "MIT" - }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" - }, - "node_modules/fast-glob": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", - "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", "dependencies": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.4" + "is-number": "^7.0.0" }, "engines": { - "node": ">=8.6.0" + "node": ">=8.0" } }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "license": "MIT" - }, - "node_modules/fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "dev": true, - "license": "MIT", - "peer": true + "node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" }, - "node_modules/fast-uri": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.0.tgz", - "integrity": "sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA==", + "node_modules/tslib": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.7.0.tgz", + "integrity": "sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA==", "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/fastify" - }, - { - "type": "opencollective", - "url": "https://opencollective.com/fastify" - } - ], - "license": "BSD-3-Clause", - "peer": true - }, - "node_modules/fastq": { - "version": "1.17.1", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", - "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", - "dependencies": { - "reusify": "^1.0.4" - } + "license": "0BSD" }, - "node_modules/file-set": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/file-set/-/file-set-4.0.2.tgz", - "integrity": "sha512-fuxEgzk4L8waGXaAkd8cMr73Pm0FxOVkn8hztzUW7BAHhOGH90viQNXbiOsnecCWmfInqU6YmAMwxRMdKETceQ==", + "node_modules/tsx": { + "version": "4.21.0", + "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.21.0.tgz", + "integrity": "sha512-5C1sg4USs1lfG0GFb2RLXsdpXqBSEhAaA/0kPL01wxzpMqLILNxIxIOKiILz+cdg/pLnOUxFYOR5yhHU666wbw==", "dev": true, "license": "MIT", "dependencies": { - "array-back": "^5.0.0", - "glob": "^7.1.6" + "esbuild": "~0.27.0", + "get-tsconfig": "^4.7.5" + }, + "bin": { + "tsx": "dist/cli.mjs" }, "engines": { - "node": ">=10" + "node": ">=18.0.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" } }, - "node_modules/file-set/node_modules/array-back": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-5.0.0.tgz", - "integrity": "sha512-kgVWwJReZWmVuWOQKEOohXKJX+nD02JAZ54D1RRWlv8L0NebauKAaFxACKzB74RTclt1+WNz5KHaLRDAPZbDEw==", - "dev": true, - "license": "MIT", + "node_modules/type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", "engines": { - "node": ">=10" + "node": ">=4" } }, - "node_modules/fill-range": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", - "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", - "dependencies": { - "to-regex-range": "^5.0.1" - }, + "node_modules/typical": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/typical/-/typical-4.0.0.tgz", + "integrity": "sha512-VAH4IvQ7BDFYglMd7BPRDfLgxZZX4O4TFcRDA6EN5X7erNJJq+McIEp8np9aVtxrCJ6qx4GTYVfOWNjcqwZgRw==", + "dev": true, "engines": { "node": ">=8" } }, - "node_modules/find-replace": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/find-replace/-/find-replace-3.0.0.tgz", - "integrity": "sha512-6Tb2myMioCAgv5kfvP5/PkZZ/ntTpVK39fHY7WkWBgvbeE+VHd/tZuZ4mrC+bxh4cfOZeYKVPaJIZtZXV7GNCQ==", + "node_modules/uc.micro": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-2.1.0.tgz", + "integrity": "sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A==", "dev": true, - "dependencies": { - "array-back": "^3.0.1" + "license": "MIT" + }, + "node_modules/uglify-js": { + "version": "3.17.4", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.17.4.tgz", + "integrity": "sha512-T9q82TJI9e/C1TAxYvfb16xO120tMVFZrGA3f9/P4424DNu6ypK103y0GPFVa17yotwSyZW5iYXgjYHkGrJW/g==", + "dev": true, + "optional": true, + "bin": { + "uglifyjs": "bin/uglifyjs" }, "engines": { - "node": ">=4.0.0" + "node": ">=0.8.0" } }, - "node_modules/find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "node_modules/underscore": { + "version": "1.13.6", + "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.13.6.tgz", + "integrity": "sha512-+A5Sja4HP1M08MaXya7p5LvjuM7K6q/2EaC0+iovj/wOcMsTzMvDFbasi/oSapiwOlt252IqsKqPjCl7huKS0A==", + "dev": true, + "license": "MIT" + }, + "node_modules/undici": { + "version": "6.23.0", + "resolved": "https://registry.npmjs.org/undici/-/undici-6.23.0.tgz", + "integrity": "sha512-VfQPToRA5FZs/qJxLIinmU59u0r7LXqoJkCzinq3ckNJp3vKEh7jTWN589YQ5+aoAC/TGRLyJLCPKcLQbM8r9g==", "dev": true, "license": "MIT", - "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/find-yarn-workspace-root": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/find-yarn-workspace-root/-/find-yarn-workspace-root-2.0.0.tgz", - "integrity": "sha512-1IMnbjt4KzsQfnhnzNd8wUEgXZ44IzZaZmnLYx7D5FZlaHt2gW20Cri8Q+E/t5tIj4+epTBub+2Zxu/vNILzqQ==", - "dependencies": { - "micromatch": "^4.0.2" - } - }, - "node_modules/flat": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", - "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==", - "dev": true, - "bin": { - "flat": "cli.js" + "node": ">=18.17" } }, - "node_modules/follow-redirects": { - "version": "1.15.9", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.9.tgz", - "integrity": "sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://github.com/sponsors/RubenVerborgh" - } - ], - "engines": { - "node": ">=4.0" - }, - "peerDependenciesMeta": { - "debug": { - "optional": true - } - } + "node_modules/undici-types": { + "version": "6.19.8", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", + "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", + "devOptional": true, + "license": "MIT" }, - "node_modules/for-each": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz", - "integrity": "sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==", - "dev": true, - "license": "MIT", - "dependencies": { - "is-callable": "^1.2.7" - }, + "node_modules/universalify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", + "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "node": ">= 10.0.0" } }, - "node_modules/foreground-child": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.2.1.tgz", - "integrity": "sha512-PXUUyLqrR2XCWICfv6ukppP96sdFwWbNEnfEMt7jNsISjMsvaLNinAHNDYyvkyU+SZG2BTSbT5NjG+vZslfGTA==", - "dev": true, - "license": "ISC", + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", "dependencies": { - "cross-spawn": "^7.0.0", - "signal-exit": "^4.0.1" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "punycode": "^2.1.0" } }, - "node_modules/foreground-child/node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "node_modules/walk-back": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/walk-back/-/walk-back-5.1.0.tgz", + "integrity": "sha512-Uhxps5yZcVNbLEAnb+xaEEMdgTXl9qAQDzKYejG2AZ7qPwRQ81lozY9ECDbjLPNWm7YsO1IK5rsP1KoQzXAcGA==", "dev": true, "license": "MIT", - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, "engines": { - "node": ">= 8" + "node": ">=12.17" } }, - "node_modules/foreground-child/node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } + "node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" }, - "node_modules/foreground-child/node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "license": "MIT", + "node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/foreground-child/node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" } }, - "node_modules/foreground-child/node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "license": "ISC", + "node_modules/which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", "dependencies": { "isexe": "^2.0.0" }, "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/form-data": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.4.tgz", - "integrity": "sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "es-set-tostringtag": "^2.1.0", - "hasown": "^2.0.2", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 6" + "which": "bin/which" } }, - "node_modules/fp-ts": { - "version": "1.19.3", - "resolved": "https://registry.npmjs.org/fp-ts/-/fp-ts-1.19.3.tgz", - "integrity": "sha512-H5KQDspykdHuztLTg+ajGN0Z2qUjcEf3Ybxc6hLt0k7/zPkn29XnKnxlBPyW2XIddWrGaJBzBl4VLYOtk39yZg==", + "node_modules/wordwrap": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", + "integrity": "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==", "dev": true }, - "node_modules/fs-extra": { - "version": "11.2.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.2.0.tgz", - "integrity": "sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==", - "dev": true, - "license": "MIT", - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=14.14" - } - }, - "node_modules/fs-readdir-recursive": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/fs-readdir-recursive/-/fs-readdir-recursive-1.1.0.tgz", - "integrity": "sha512-GNanXlVr2pf02+sPN40XN8HG+ePaNcvM0q5mZBd668Obwb0yD5GiUbZOFgwn8kGMY6I3mdyDJzieUy3PTYyTRA==", - "dev": true, - "license": "MIT", - "peer": true + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" }, - "node_modules/fs-then-native": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/fs-then-native/-/fs-then-native-2.0.0.tgz", - "integrity": "sha512-X712jAOaWXkemQCAmWeg5rOT2i+KOpWz1Z/txk/cW0qlOu2oQ9H61vc5w3X/iyuUEfq/OyaFJ78/cZAQD1/bgA==", + "node_modules/ws": { + "version": "8.21.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.21.0.tgz", + "integrity": "sha512-Vsp28b7DRcimFQvrqu2Wek3z1iYxDCWqHYB8Qsnk/S4RfaCQzPGPyBNuVjJV3cd6UiKtUtp6sNM77gWvzcCH+g==", "dev": true, "license": "MIT", "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" - }, - "node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, - "hasInstallScript": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/function-bind": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", - "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/function.prototype.name": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.6.tgz", - "integrity": "sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1", - "functions-have-names": "^1.2.3" + "node": ">=10.0.0" }, - "engines": { - "node": ">= 0.4" + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/functions-have-names": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", - "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } } }, - "node_modules/get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "node_modules/xmlcreate": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/xmlcreate/-/xmlcreate-2.0.4.tgz", + "integrity": "sha512-nquOebG4sngPmGPICTS5EnxqhKbCmz5Ox5hsszI2T6U5qdrJizBc+0ilYSEjTSzU0yZcmvppztXe/5Al5fUwdg==", "dev": true, - "engines": { - "node": "6.* || 8.* || >= 10.*" - } + "license": "Apache-2.0" }, - "node_modules/get-func-name": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.2.tgz", - "integrity": "sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==", + "node_modules/yaml": { + "version": "1.10.2", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", + "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", "engines": { - "node": "*" + "node": ">= 6" } }, - "node_modules/get-intrinsic": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", - "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "node_modules/zod": { + "version": "3.25.76", + "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz", + "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==", "dev": true, "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "es-define-property": "^1.0.1", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.1.1", - "function-bind": "^1.1.2", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "has-symbols": "^1.1.0", - "hasown": "^2.0.2", - "math-intrinsics": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-port": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/get-port/-/get-port-3.2.0.tgz", - "integrity": "sha512-x5UJKlgeUiNT8nyo/AcnwLnZuZNcSjSw0kogRB+Whd1fjjFq4B1hySFxSFWWSn4mIBzg3sRNUDFYc4g5gjPoLg==", - "dev": true, - "license": "MIT", - "peer": true, - "engines": { - "node": ">=4" + "url": "https://github.com/sponsors/colinhacks" } + } + }, + "dependencies": { + "@adraffy/ens-normalize": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/@adraffy/ens-normalize/-/ens-normalize-1.11.1.tgz", + "integrity": "sha512-nhCBV3quEgesuf7c7KYfperqSS14T8bYuvJ8PcLJp6znkZpFc0AuW4qBtr8eKVyPPe/8RSr7sglCWPU5eaxwKQ==", + "dev": true }, - "node_modules/get-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", - "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", - "dev": true, - "license": "MIT", - "dependencies": { - "dunder-proto": "^1.0.1", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/get-symbol-description": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.2.tgz", - "integrity": "sha512-g0QYk1dZBxGwk+Ngc+ltRH2IBp2f7zBkBMBJZCDerh6EhlhSR6+9irMCuT/09zD6qkarHUSn529sK/yL4S27mg==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.5", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/ghost-testrpc": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/ghost-testrpc/-/ghost-testrpc-0.0.2.tgz", - "integrity": "sha512-i08dAEgJ2g8z5buJIrCTduwPIhih3DP+hOCTyyryikfV8T0bNvHnGXO67i0DD1H4GBDETTclPy9njZbfluQYrQ==", - "dev": true, - "license": "ISC", - "peer": true, - "dependencies": { - "chalk": "^2.4.2", - "node-emoji": "^1.10.0" - }, - "bin": { - "testrpc-sc": "index.js" - } - }, - "node_modules/glob": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", - "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==", - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dependencies": { - "is-glob": "^4.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/global-modules": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/global-modules/-/global-modules-2.0.0.tgz", - "integrity": "sha512-NGbfmJBp9x8IxyJSd1P+otYK8vonoJactOogrVfFRIAEY1ukil8RSKDz2Yo7wh1oihl51l/r6W4epkeKJHqL8A==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "global-prefix": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/global-prefix": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/global-prefix/-/global-prefix-3.0.0.tgz", - "integrity": "sha512-awConJSVCHVGND6x3tmMaKcQvwXLhjdkmomy2W+Goaui8YPgYgXJZewhg3fWC+DlfqqQuWg8AwqjGTD2nAPVWg==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "ini": "^1.3.5", - "kind-of": "^6.0.2", - "which": "^1.3.1" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/globals": { - "version": "14.0.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", - "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", - "license": "MIT", - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/globalthis": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", - "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", - "dev": true, - "dependencies": { - "define-properties": "^1.1.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/globby": { - "version": "10.0.2", - "resolved": "https://registry.npmjs.org/globby/-/globby-10.0.2.tgz", - "integrity": "sha512-7dUi7RvCoT/xast/o/dLN53oqND4yk0nsHkhRgn9w65C4PofCLOoJ39iSOg+qVDdWQPIEj+eszMHQ+aLVwwQSg==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "@types/glob": "^7.1.1", - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.0.3", - "glob": "^7.1.3", - "ignore": "^5.1.1", - "merge2": "^1.2.3", - "slash": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/gopd": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", - "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/graceful-fs": { - "version": "4.2.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" - }, - "node_modules/handlebars": { - "version": "4.7.8", - "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.8.tgz", - "integrity": "sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "minimist": "^1.2.5", - "neo-async": "^2.6.2", - "source-map": "^0.6.1", - "wordwrap": "^1.0.0" - }, - "bin": { - "handlebars": "bin/handlebars" - }, - "engines": { - "node": ">=0.4.7" - }, - "optionalDependencies": { - "uglify-js": "^3.1.4" - } - }, - "node_modules/handlebars/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/hardhat": { - "version": "2.26.3", - "resolved": "https://registry.npmjs.org/hardhat/-/hardhat-2.26.3.tgz", - "integrity": "sha512-gBfjbxCCEaRgMCRgTpjo1CEoJwqNPhyGMMVHYZJxoQ3LLftp2erSVf8ZF6hTQC0r2wst4NcqNmLWqMnHg1quTw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@ethereumjs/util": "^9.1.0", - "@ethersproject/abi": "^5.1.2", - "@nomicfoundation/edr": "^0.11.3", - "@nomicfoundation/solidity-analyzer": "^0.1.0", - "@sentry/node": "^5.18.1", - "adm-zip": "^0.4.16", - "aggregate-error": "^3.0.0", - "ansi-escapes": "^4.3.0", - "boxen": "^5.1.2", - "chokidar": "^4.0.0", - "ci-info": "^2.0.0", - "debug": "^4.1.1", - "enquirer": "^2.3.0", - "env-paths": "^2.2.0", - "ethereum-cryptography": "^1.0.3", - "find-up": "^5.0.0", - "fp-ts": "1.19.3", - "fs-extra": "^7.0.1", - "immutable": "^4.0.0-rc.12", - "io-ts": "1.10.4", - "json-stream-stringify": "^3.1.4", - "keccak": "^3.0.2", - "lodash": "^4.17.11", - "micro-eth-signer": "^0.14.0", - "mnemonist": "^0.38.0", - "mocha": "^10.0.0", - "p-map": "^4.0.0", - "picocolors": "^1.1.0", - "raw-body": "^2.4.1", - "resolve": "1.17.0", - "semver": "^6.3.0", - "solc": "0.8.26", - "source-map-support": "^0.5.13", - "stacktrace-parser": "^0.1.10", - "tinyglobby": "^0.2.6", - "tsort": "0.0.1", - "undici": "^5.14.0", - "uuid": "^8.3.2", - "ws": "^7.4.6" - }, - "bin": { - "hardhat": "internal/cli/bootstrap.js" - }, - "peerDependencies": { - "ts-node": "*", - "typescript": "*" - }, - "peerDependenciesMeta": { - "ts-node": { - "optional": true - }, - "typescript": { - "optional": true - } - } - }, - "node_modules/hardhat-gas-reporter": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/hardhat-gas-reporter/-/hardhat-gas-reporter-1.0.10.tgz", - "integrity": "sha512-02N4+So/fZrzJ88ci54GqwVA3Zrf0C9duuTyGt0CFRIh/CdNwbnTgkXkRfojOMLBQ+6t+lBIkgbsOtqMvNwikA==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "array-uniq": "1.0.3", - "eth-gas-reporter": "^0.2.25", - "sha1": "^1.1.1" - }, - "peerDependencies": { - "hardhat": "^2.0.2" - } - }, - "node_modules/hardhat/node_modules/@noble/hashes": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.2.0.tgz", - "integrity": "sha512-FZfhjEDbT5GRswV3C6uvLPHMiVD6lQBmpoX5+eSiPaMTXte/IKqI5dykDxzZB/WBeK/CDuQRBWarPdi3FNY2zQ==", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ] - }, - "node_modules/hardhat/node_modules/@scure/bip32": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.1.5.tgz", - "integrity": "sha512-XyNh1rB0SkEqd3tXcXMi+Xe1fvg+kUIcoRIEujP1Jgv7DqW2r9lg3Ah0NkFaCs9sTkQAQA8kw7xiRXzENi9Rtw==", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "dependencies": { - "@noble/hashes": "~1.2.0", - "@noble/secp256k1": "~1.7.0", - "@scure/base": "~1.1.0" - } - }, - "node_modules/hardhat/node_modules/@scure/bip39": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.1.1.tgz", - "integrity": "sha512-t+wDck2rVkh65Hmv280fYdVdY25J9YeEUIgn2LG1WM6gxFkGzcksoDiUkWVpVp3Oex9xGC68JU2dSbUfwZ2jPg==", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "dependencies": { - "@noble/hashes": "~1.2.0", - "@scure/base": "~1.1.0" - } - }, - "node_modules/hardhat/node_modules/ethereum-cryptography": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-1.2.0.tgz", - "integrity": "sha512-6yFQC9b5ug6/17CQpCyE3k9eKBMdhyVjzUy1WkiuY/E4vj/SXDBbCw8QEIaXqf0Mf2SnY6RmpDcwlUmBSS0EJw==", - "dev": true, - "dependencies": { - "@noble/hashes": "1.2.0", - "@noble/secp256k1": "1.7.1", - "@scure/bip32": "1.1.5", - "@scure/bip39": "1.1.1" - } - }, - "node_modules/hardhat/node_modules/fs-extra": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", - "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", - "dev": true, - "dependencies": { - "graceful-fs": "^4.1.2", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" - }, - "engines": { - "node": ">=6 <7 || >=8" - } - }, - "node_modules/hardhat/node_modules/jsonfile": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", - "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", - "dev": true, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/hardhat/node_modules/universalify": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", - "dev": true, - "engines": { - "node": ">= 4.0.0" - } - }, - "node_modules/hardhat/node_modules/ws": { - "version": "7.5.9", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", - "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", - "dev": true, - "engines": { - "node": ">=8.3.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": "^5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } - } - }, - "node_modules/has-bigints": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", - "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "dev": true, - "license": "MIT", - "peer": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/has-property-descriptors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", - "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", - "dev": true, - "dependencies": { - "es-define-property": "^1.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-proto": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz", - "integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-symbols": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", - "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-tostringtag": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", - "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", - "dev": true, - "dependencies": { - "has-symbols": "^1.0.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/hash-base": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.1.2.tgz", - "integrity": "sha512-Bb33KbowVTIj5s7Ked1OsqHUeCpz//tPwR+E2zJgJKo9Z5XolZ9b6bdUgjmYlwnWhoOQKoTd1TYToZGn5mAYOg==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "inherits": "^2.0.4", - "readable-stream": "^2.3.8", - "safe-buffer": "^5.2.1", - "to-buffer": "^1.2.1" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/hash-base/node_modules/isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", - "dev": true, - "license": "MIT", - "peer": true - }, - "node_modules/hash-base/node_modules/readable-stream": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", - "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "node_modules/hash-base/node_modules/readable-stream/node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true, - "license": "MIT", - "peer": true - }, - "node_modules/hash-base/node_modules/string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "safe-buffer": "~5.1.0" - } - }, - "node_modules/hash-base/node_modules/string_decoder/node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true, - "license": "MIT", - "peer": true - }, - "node_modules/hash.js": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz", - "integrity": "sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==", - "dependencies": { - "inherits": "^2.0.3", - "minimalistic-assert": "^1.0.1" - } - }, - "node_modules/hasown": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", - "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", - "dev": true, - "dependencies": { - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/he": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", - "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", - "dev": true, - "bin": { - "he": "bin/he" - } - }, - "node_modules/heap": { - "version": "0.2.7", - "resolved": "https://registry.npmjs.org/heap/-/heap-0.2.7.tgz", - "integrity": "sha512-2bsegYkkHO+h/9MGbn6KWcE45cHZgPANo5LXF7EvWdT0yT2EguSVO1nDgU5c8+ZOPwp2vMNa7YFsJhVcDR9Sdg==", - "dev": true, - "license": "MIT", - "peer": true - }, - "node_modules/hmac-drbg": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", - "integrity": "sha512-Tti3gMqLdZfhOQY1Mzf/AanLiqh1WTiJgEj26ZuYQ9fbkLomzGchCws4FyrSd4VkpBfiNhaE1On+lOz894jvXg==", - "dependencies": { - "hash.js": "^1.0.3", - "minimalistic-assert": "^1.0.0", - "minimalistic-crypto-utils": "^1.0.1" - } - }, - "node_modules/http-basic": { - "version": "8.1.3", - "resolved": "https://registry.npmjs.org/http-basic/-/http-basic-8.1.3.tgz", - "integrity": "sha512-/EcDMwJZh3mABI2NhGfHOGOeOZITqfkEO4p/xK+l3NpyncIHUQBoMvCSF/b5GqvKtySC2srL/GGG3+EtlqlmCw==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "caseless": "^0.12.0", - "concat-stream": "^1.6.2", - "http-response-object": "^3.0.1", - "parse-cache-control": "^1.0.1" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/http-errors": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", - "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", - "dev": true, - "dependencies": { - "depd": "2.0.0", - "inherits": "2.0.4", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "toidentifier": "1.0.1" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/http-response-object": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/http-response-object/-/http-response-object-3.0.2.tgz", - "integrity": "sha512-bqX0XTF6fnXSQcEJ2Iuyr75yVakyjIDCqroJQ/aHfSdlM743Cwqoi2nDYMzLGWUcuTWGWy8AAvOKXTfiv6q9RA==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "@types/node": "^10.0.3" - } - }, - "node_modules/http-response-object/node_modules/@types/node": { - "version": "10.17.60", - "resolved": "https://registry.npmjs.org/@types/node/-/node-10.17.60.tgz", - "integrity": "sha512-F0KIgDJfy2nA3zMLmWGKxcH2ZVEtCZXHHdOQs2gSaQ27+lNeEfGxzkIw90aXswATX7AZ33tahPbzy6KAfUreVw==", - "dev": true, - "license": "MIT", - "peer": true - }, - "node_modules/https-proxy-agent": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", - "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", - "dev": true, - "dependencies": { - "agent-base": "6", - "debug": "4" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/human-id": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/human-id/-/human-id-4.1.1.tgz", - "integrity": "sha512-3gKm/gCSUipeLsRYZbbdA1BD83lBoWUkZ7G9VFrhWPAU76KwYo5KR8V28bpoPm/ygy0x5/GCbpRQdY7VLYCoIg==", - "license": "MIT", - "bin": { - "human-id": "dist/cli.js" - } - }, - "node_modules/iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "dev": true, - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/ignore": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.1.tgz", - "integrity": "sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==", - "engines": { - "node": ">= 4" - } - }, - "node_modules/immutable": { - "version": "4.3.5", - "resolved": "https://registry.npmjs.org/immutable/-/immutable-4.3.5.tgz", - "integrity": "sha512-8eabxkth9gZatlwl5TBuJnCsoTADlL6ftEr7A4qgdaTsPyreilDSnUk57SO+jfKcNtxPa22U5KK6DSeAYhpBJw==", - "dev": true - }, - "node_modules/import-fresh": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", - "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", - "license": "MIT", - "dependencies": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/import-fresh/node_modules/resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/indent-string": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", - "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" - }, - "node_modules/ini": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", - "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", - "dev": true, - "license": "ISC", - "peer": true - }, - "node_modules/internal-slot": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.7.tgz", - "integrity": "sha512-NGnrKwXzSms2qUUih/ILZ5JBqNTSa1+ZmP6flaIp6KmSElgE9qdndzS3cqjrDovwFdmwsGsLdeFgB6suw+1e9g==", - "dev": true, - "dependencies": { - "es-errors": "^1.3.0", - "hasown": "^2.0.0", - "side-channel": "^1.0.4" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/interpret": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz", - "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==", - "dev": true, - "license": "MIT", - "peer": true, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/io-ts": { - "version": "1.10.4", - "resolved": "https://registry.npmjs.org/io-ts/-/io-ts-1.10.4.tgz", - "integrity": "sha512-b23PteSnYXSONJ6JQXRAlvJhuw8KOtkqa87W4wDtvMrud/DTJd5X+NpOOI+O/zZwVq6v0VLAaJ+1EDViKEuN9g==", - "dev": true, - "dependencies": { - "fp-ts": "^1.0.0" - } - }, - "node_modules/is-array-buffer": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.4.tgz", - "integrity": "sha512-wcjaerHw0ydZwfhiKbXJWLDY8A7yV7KhjQOpb83hGgGfId/aQa4TOvwyzn2PuswW2gPCYEL/nEAiSVpdOj1lXw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.2.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-bigint": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", - "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", - "dev": true, - "dependencies": { - "has-bigints": "^1.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-binary-path": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", - "dev": true, - "dependencies": { - "binary-extensions": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-boolean-object": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", - "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-callable": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", - "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-ci": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", - "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==", - "dependencies": { - "ci-info": "^2.0.0" - }, - "bin": { - "is-ci": "bin.js" - } - }, - "node_modules/is-data-view": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-data-view/-/is-data-view-1.0.1.tgz", - "integrity": "sha512-AHkaJrsUVW6wq6JS8y3JnM/GJF/9cf+k20+iDzlSaJrinEo5+7vRiteOSwBhHRiAyQATN1AmY4hwzxJKPmYf+w==", - "dev": true, - "dependencies": { - "is-typed-array": "^1.1.13" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-date-object": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", - "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", - "dev": true, - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-docker": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", - "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", - "bin": { - "is-docker": "cli.js" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "dependencies": { - "is-extglob": "^2.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-hex-prefixed": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-hex-prefixed/-/is-hex-prefixed-1.0.0.tgz", - "integrity": "sha512-WvtOiug1VFrE9v1Cydwm+FnXd3+w9GaeVUss5W4v/SLy3UW00vP+6iNF2SdnfiBoLy4bTqVdkftNGTUeOFVsbA==", - "dev": true, - "license": "MIT", - "peer": true, - "engines": { - "node": ">=6.5.0", - "npm": ">=3" - } - }, - "node_modules/is-negative-zero": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.3.tgz", - "integrity": "sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/is-number-object": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", - "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", - "dev": true, - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-plain-obj": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", - "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-regex": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", - "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-shared-array-buffer": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.3.tgz", - "integrity": "sha512-nA2hv5XIhLR3uVzDDfCIknerhx8XUKnstuOERPNNIinXG7v9u+ohXF67vxm4TPTEPU6lm61ZkwP3c9PCB97rhg==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.7" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-string": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", - "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", - "dev": true, - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-subdir": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/is-subdir/-/is-subdir-1.2.0.tgz", - "integrity": "sha512-2AT6j+gXe/1ueqbW6fLZJiIw3F8iXGJtt0yDrZaBhAZEG1raiTxKWU+IPqMCzQAXOUCKdA4UDMgacKH25XG2Cw==", - "license": "MIT", - "dependencies": { - "better-path-resolve": "1.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/is-symbol": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", - "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", - "dev": true, - "dependencies": { - "has-symbols": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-typed-array": { - "version": "1.1.15", - "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.15.tgz", - "integrity": "sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "which-typed-array": "^1.1.16" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-unicode-supported": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", - "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-weakref": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", - "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-windows": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", - "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-wsl": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", - "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", - "dependencies": { - "is-docker": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/isarray": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", - "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", - "dev": true, - "license": "MIT" - }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" - }, - "node_modules/jackspeak": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-4.0.1.tgz", - "integrity": "sha512-cub8rahkh0Q/bw1+GxP7aeSe29hHHn2V4m29nnDlvCdlgU+3UGxkZp7Z53jLUdpX3jdTO0nJZUDl3xvbWc2Xog==", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "@isaacs/cliui": "^8.0.2" - }, - "engines": { - "node": "20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - }, - "optionalDependencies": { - "@pkgjs/parseargs": "^0.11.0" - } - }, - "node_modules/js-sha3": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.8.0.tgz", - "integrity": "sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q==" - }, - "node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/js2xmlparser": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/js2xmlparser/-/js2xmlparser-4.0.2.tgz", - "integrity": "sha512-6n4D8gLlLf1n5mNLQPRfViYzu9RATblzPEtm1SthMX1Pjao0r9YI9nw7ZIfRxQMERS87mcswrg+r/OYrPRX6jA==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "xmlcreate": "^2.0.4" - } - }, - "node_modules/jsdoc": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/jsdoc/-/jsdoc-4.0.3.tgz", - "integrity": "sha512-Nu7Sf35kXJ1MWDZIMAuATRQTg1iIPdzh7tqJ6jjvaU/GfDf+qi5UV8zJR3Mo+/pYFvm8mzay4+6O5EWigaQBQw==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@babel/parser": "^7.20.15", - "@jsdoc/salty": "^0.2.1", - "@types/markdown-it": "^14.1.1", - "bluebird": "^3.7.2", - "catharsis": "^0.9.0", - "escape-string-regexp": "^2.0.0", - "js2xmlparser": "^4.0.2", - "klaw": "^3.0.0", - "markdown-it": "^14.1.0", - "markdown-it-anchor": "^8.6.7", - "marked": "^4.0.10", - "mkdirp": "^1.0.4", - "requizzle": "^0.2.3", - "strip-json-comments": "^3.1.0", - "underscore": "~1.13.2" - }, - "bin": { - "jsdoc": "jsdoc.js" - }, - "engines": { - "node": ">=12.0.0" - } - }, - "node_modules/jsdoc-api": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/jsdoc-api/-/jsdoc-api-8.0.0.tgz", - "integrity": "sha512-Rnhor0suB1Ds1abjmFkFfKeD+kSMRN9oHMTMZoJVUrmtCGDwXty+sWMA9sa4xbe4UyxuPjhC7tavZ40mDKK6QQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "array-back": "^6.2.2", - "cache-point": "^2.0.0", - "collect-all": "^1.0.4", - "file-set": "^4.0.2", - "fs-then-native": "^2.0.0", - "jsdoc": "^4.0.0", - "object-to-spawn-args": "^2.0.1", - "temp-path": "^1.0.0", - "walk-back": "^5.1.0" - }, - "engines": { - "node": ">=12.17" - } - }, - "node_modules/jsdoc-api/node_modules/array-back": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-6.2.2.tgz", - "integrity": "sha512-gUAZ7HPyb4SJczXAMUXMGAvI976JoK3qEx9v1FTmeYuJj0IBiaKttG1ydtGKdkfqWkIkouke7nG8ufGy77+Cvw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12.17" - } - }, - "node_modules/jsdoc-parse": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/jsdoc-parse/-/jsdoc-parse-6.2.1.tgz", - "integrity": "sha512-9viGRUUtWOk/G4V0+nQ6rfLucz5plxh5I74WbNSNm9h9NWugCDVX4jbG8hZP9QqKGpdTPDE+qJXzaYNos3wqTA==", - "dev": true, - "license": "MIT", - "dependencies": { - "array-back": "^6.2.2", - "lodash.omit": "^4.5.0", - "reduce-extract": "^1.0.0", - "sort-array": "^4.1.5", - "test-value": "^3.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/jsdoc-parse/node_modules/array-back": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-6.2.2.tgz", - "integrity": "sha512-gUAZ7HPyb4SJczXAMUXMGAvI976JoK3qEx9v1FTmeYuJj0IBiaKttG1ydtGKdkfqWkIkouke7nG8ufGy77+Cvw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12.17" - } - }, - "node_modules/jsdoc-to-markdown": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/jsdoc-to-markdown/-/jsdoc-to-markdown-8.0.1.tgz", - "integrity": "sha512-qJfNJhkq2C26UYoOdj8L1yheTJlk1veCsxwRejRmj07XZKCn7oSkuPErx6+JoNi8afCaUKdIM5oUu0uF2/T8iw==", - "dev": true, - "license": "MIT", - "dependencies": { - "array-back": "^6.2.2", - "command-line-tool": "^0.8.0", - "config-master": "^3.1.0", - "dmd": "^6.2.0", - "jsdoc-api": "^8.0.0", - "jsdoc-parse": "^6.2.1", - "walk-back": "^5.1.0" - }, - "bin": { - "jsdoc2md": "bin/cli.js" - }, - "engines": { - "node": ">=12.17" - } - }, - "node_modules/jsdoc-to-markdown/node_modules/array-back": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-6.2.2.tgz", - "integrity": "sha512-gUAZ7HPyb4SJczXAMUXMGAvI976JoK3qEx9v1FTmeYuJj0IBiaKttG1ydtGKdkfqWkIkouke7nG8ufGy77+Cvw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12.17" - } - }, - "node_modules/jsdoc/node_modules/escape-string-regexp": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", - "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/jsdoc/node_modules/klaw": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/klaw/-/klaw-3.0.0.tgz", - "integrity": "sha512-0Fo5oir+O9jnXu5EefYbVK+mHMBeEVEy2cmctR1O1NECcCkPRreJKrS6Qt/j3KC2C148Dfo9i3pCmCMsdqGr0g==", - "dev": true, - "license": "MIT", - "dependencies": { - "graceful-fs": "^4.1.9" - } - }, - "node_modules/jsdoc/node_modules/mkdirp": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", - "dev": true, - "license": "MIT", - "bin": { - "mkdirp": "bin/cmd.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "dev": true, - "license": "MIT", - "peer": true - }, - "node_modules/json-stream-stringify": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/json-stream-stringify/-/json-stream-stringify-3.1.6.tgz", - "integrity": "sha512-x7fpwxOkbhFCaJDJ8vb1fBY3DdSa4AlITaz+HHILQJzdPMnHEFjxPwVUi1ALIbcIxDE0PNe/0i7frnY8QnBQog==", - "dev": true, - "engines": { - "node": ">=7.10.1" - } - }, - "node_modules/jsonfile": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", - "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", - "dependencies": { - "universalify": "^2.0.0" - }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/jsonschema": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/jsonschema/-/jsonschema-1.5.0.tgz", - "integrity": "sha512-K+A9hhqbn0f3pJX17Q/7H6yQfD/5OXgdrR5UE12gMXCiN9D5Xq2o5mddV2QEcX/bjla99ASsAAQUyMCCRWAEhw==", - "dev": true, - "license": "MIT", - "peer": true, - "engines": { - "node": "*" - } - }, - "node_modules/keccak": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/keccak/-/keccak-3.0.4.tgz", - "integrity": "sha512-3vKuW0jV8J3XNTzvfyicFR5qvxrSAGl7KIhvgOu5cmWwM7tZRj3fMbj/pfIf4be7aznbc+prBWGjywox/g2Y6Q==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "dependencies": { - "node-addon-api": "^2.0.0", - "node-gyp-build": "^4.2.0", - "readable-stream": "^3.6.0" - }, - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/kind-of": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", - "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", - "dev": true, - "license": "MIT", - "peer": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/klaw-sync": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/klaw-sync/-/klaw-sync-6.0.0.tgz", - "integrity": "sha512-nIeuVSzdCCs6TDPTqI8w1Yre34sSq7AkZ4B3sfOBbI2CgVSB4Du4aLQijFU2+lhAFCwt9+42Hel6lQNIv6AntQ==", - "dependencies": { - "graceful-fs": "^4.1.11" - } - }, - "node_modules/levn": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", - "integrity": "sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/linkify-it": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-5.0.0.tgz", - "integrity": "sha512-5aHCbzQRADcdP+ATqnDuhhJ/MRIqDkZX5pyjFHRRysS8vZ5AbqGEoFIb6pYHPZ+L/OC2Lc+xT8uHVVR5CAK/wQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "uc.micro": "^2.0.0" - } - }, - "node_modules/locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-locate": "^5.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", - "dev": true - }, - "node_modules/lodash.camelcase": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", - "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==", - "dev": true - }, - "node_modules/lodash.clonedeep": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", - "integrity": "sha512-H5ZhCF25riFd9uB5UCkVKo61m3S/xZk1x4wA6yp/L3RFP6Z/eHH1ymQcGLo7J3GMPfm0V/7m1tryHuGVxpqEBQ==", - "dev": true, - "license": "MIT", - "peer": true - }, - "node_modules/lodash.isequal": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz", - "integrity": "sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==", - "deprecated": "This package is deprecated. Use require('node:util').isDeepStrictEqual instead.", - "dev": true, - "license": "MIT", - "peer": true - }, - "node_modules/lodash.omit": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.omit/-/lodash.omit-4.5.0.tgz", - "integrity": "sha512-XeqSp49hNGmlkj2EJlfrQFIzQ6lXdNro9sddtQzcJY8QaoC2GO0DT7xaIokHeyM+mIT0mPMlPvkYzg2xCuHdZg==", - "dev": true, - "license": "MIT" - }, - "node_modules/lodash.padend": { - "version": "4.6.1", - "resolved": "https://registry.npmjs.org/lodash.padend/-/lodash.padend-4.6.1.tgz", - "integrity": "sha512-sOQs2aqGpbl27tmCS1QNZA09Uqp01ZzWfDUoD+xzTii0E7dSQfRKcRetFwa+uXaxaqL+TKm7CgD2JdKP7aZBSw==", - "dev": true, - "license": "MIT" - }, - "node_modules/lodash.startcase": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/lodash.startcase/-/lodash.startcase-4.4.0.tgz", - "integrity": "sha512-+WKqsK294HMSc2jEbNgpHpd0JfIBhp7rEV4aqXWqFr6AlXov+SlcgB1Fv01y2kGe3Gc8nMW7VA0SrGuSkRfIEg==", - "license": "MIT" - }, - "node_modules/lodash.truncate": { - "version": "4.4.2", - "resolved": "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz", - "integrity": "sha512-jttmRe7bRse52OsWIMDLaXxWqRAmtIUccAQ3garviCqJjafXOfNMO0yMfNpdD6zbGaTU0P5Nz7e7gAT6cKmJRw==", - "dev": true, - "license": "MIT", - "peer": true - }, - "node_modules/log-symbols": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", - "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", - "dev": true, - "dependencies": { - "chalk": "^4.1.0", - "is-unicode-supported": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/log-symbols/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/log-symbols/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/log-symbols/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/log-symbols/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/log-symbols/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/log-symbols/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/loupe": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.7.tgz", - "integrity": "sha512-zSMINGVYkdpYSOBmLi0D1Uo7JU9nVdQKrHxC8eYlV+9YKK9WePqAlL7lSlorG/U2Fw1w0hTBmaa/jrQ3UbPHtA==", - "dependencies": { - "get-func-name": "^2.0.1" - } - }, - "node_modules/lru_map": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/lru_map/-/lru_map-0.3.3.tgz", - "integrity": "sha512-Pn9cox5CsMYngeDbmChANltQl+5pi6XmTrraMSzhPmMBbmgcxmqWry0U3PGapCU1yB4/LqCcom7qhHZiF/jGfQ==", - "dev": true - }, - "node_modules/make-error": { - "version": "1.3.6", - "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", - "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", - "dev": true, - "peer": true - }, - "node_modules/markdown-it": { - "version": "14.1.0", - "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-14.1.0.tgz", - "integrity": "sha512-a54IwgWPaeBCAAsv13YgmALOF1elABB08FxO9i+r4VFk5Vl4pKokRPeX8u5TCgSsPi6ec1otfLjdOpVcgbpshg==", - "dev": true, - "license": "MIT", - "dependencies": { - "argparse": "^2.0.1", - "entities": "^4.4.0", - "linkify-it": "^5.0.0", - "mdurl": "^2.0.0", - "punycode.js": "^2.3.1", - "uc.micro": "^2.1.0" - }, - "bin": { - "markdown-it": "bin/markdown-it.mjs" - } - }, - "node_modules/markdown-it-anchor": { - "version": "8.6.7", - "resolved": "https://registry.npmjs.org/markdown-it-anchor/-/markdown-it-anchor-8.6.7.tgz", - "integrity": "sha512-FlCHFwNnutLgVTflOYHPW2pPcl2AACqVzExlkGQNsi4CJgqOHN7YTgDd4LuhgN1BFO3TS0vLAruV1Td6dwWPJA==", - "dev": true, - "license": "Unlicense", - "peerDependencies": { - "@types/markdown-it": "*", - "markdown-it": "*" - } - }, - "node_modules/markdown-table": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/markdown-table/-/markdown-table-1.1.3.tgz", - "integrity": "sha512-1RUZVgQlpJSPWYbFSpmudq5nHY1doEIv89gBtF0s4gW1GF2XorxcA/70M5vq7rLv0a6mhOUccRsqkwhwLCIQ2Q==", - "dev": true, - "license": "MIT", - "peer": true - }, - "node_modules/marked": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/marked/-/marked-4.3.0.tgz", - "integrity": "sha512-PRsaiG84bK+AMvxziE/lCFss8juXjNaWzVbN5tXAm4XjeaS9NAHhop+PjQxz2A9h8Q4M/xGmzP8vqNwy6JeK0A==", - "dev": true, - "license": "MIT", - "bin": { - "marked": "bin/marked.js" - }, - "engines": { - "node": ">= 12" - } - }, - "node_modules/math-intrinsics": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", - "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/md5.js": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz", - "integrity": "sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "hash-base": "^3.0.0", - "inherits": "^2.0.1", - "safe-buffer": "^5.1.2" - } - }, - "node_modules/mdurl": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-2.0.0.tgz", - "integrity": "sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w==", - "dev": true, - "license": "MIT" - }, - "node_modules/memorystream": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/memorystream/-/memorystream-0.3.1.tgz", - "integrity": "sha512-S3UwM3yj5mtUSEfP41UZmt/0SCoVYUcU1rkXv+BQ5Ig8ndL4sPoJNBUJERafdPb5jjHJGuMgytgKvKIf58XNBw==", - "dev": true, - "engines": { - "node": ">= 0.10.0" - } - }, - "node_modules/merge2": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", - "engines": { - "node": ">= 8" - } - }, - "node_modules/micro-eth-signer": { - "version": "0.14.0", - "resolved": "https://registry.npmjs.org/micro-eth-signer/-/micro-eth-signer-0.14.0.tgz", - "integrity": "sha512-5PLLzHiVYPWClEvZIXXFu5yutzpadb73rnQCpUqIHu3No3coFuWQNfE5tkBQJ7djuLYl6aRLaS0MgWJYGoqiBw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@noble/curves": "~1.8.1", - "@noble/hashes": "~1.7.1", - "micro-packed": "~0.7.2" - } - }, - "node_modules/micro-eth-signer/node_modules/@noble/curves": { - "version": "1.8.2", - "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.8.2.tgz", - "integrity": "sha512-vnI7V6lFNe0tLAuJMu+2sX+FcL14TaCWy1qiczg1VwRmPrpQCdq5ESXQMqUc2tluRNf6irBXrWbl1mGN8uaU/g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@noble/hashes": "1.7.2" - }, - "engines": { - "node": "^14.21.3 || >=16" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/micro-eth-signer/node_modules/@noble/hashes": { - "version": "1.7.2", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.7.2.tgz", - "integrity": "sha512-biZ0NUSxyjLLqo6KxEJ1b+C2NAx0wtDoFvCaXHGgUkeHzf3Xc1xKumFKREuT7f7DARNZ/slvYUwFG6B0f2b6hQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^14.21.3 || >=16" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/micro-ftch": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/micro-ftch/-/micro-ftch-0.3.1.tgz", - "integrity": "sha512-/0LLxhzP0tfiR5hcQebtudP56gUurs2CLkGarnCiB/OqEyUFQ6U3paQi/tgLv0hBJYt2rnr9MNpxz4fiiugstg==", - "dev": true, - "license": "MIT", - "peer": true - }, - "node_modules/micro-packed": { - "version": "0.7.3", - "resolved": "https://registry.npmjs.org/micro-packed/-/micro-packed-0.7.3.tgz", - "integrity": "sha512-2Milxs+WNC00TRlem41oRswvw31146GiSaoCT7s3Xi2gMUglW5QBeqlQaZeHr5tJx9nm3i57LNXPqxOOaWtTYg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@scure/base": "~1.2.5" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/micro-packed/node_modules/@scure/base": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.2.6.tgz", - "integrity": "sha512-g/nm5FgUa//MCj1gV09zTJTaM6KBAHqLN907YVQqf7zC49+DcO4B1so4ZX07Ef10Twr6nuqYEH9GEggFXA4Fmg==", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/micromatch": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", - "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", - "dependencies": { - "braces": "^3.0.3", - "picomatch": "^2.3.1" - }, - "engines": { - "node": ">=8.6" - } - }, - "node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "dev": true, - "license": "MIT", - "peer": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/minimalistic-assert": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", - "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==" - }, - "node_modules/minimalistic-crypto-utils": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", - "integrity": "sha512-JIYlbt6g8i5jKfJ3xz7rF0LXmv2TkDxBLUkiBeZ7bAx4GnnNMr8xFpGnOxn6GhTEHx3SjRrZEoU+j04prX1ktg==" - }, - "node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/minimist": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", - "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/minipass": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", - "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", - "dev": true, - "license": "ISC", - "engines": { - "node": ">=16 || 14 >=14.17" - } - }, - "node_modules/mkdirp": { - "version": "0.5.6", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", - "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "minimist": "^1.2.6" - }, - "bin": { - "mkdirp": "bin/cmd.js" - } - }, - "node_modules/mkdirp2": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/mkdirp2/-/mkdirp2-1.0.5.tgz", - "integrity": "sha512-xOE9xbICroUDmG1ye2h4bZ8WBie9EGmACaco8K8cx6RlkJJrxGIqjGqztAI+NMhexXBcdGbSEzI6N3EJPevxZw==", - "dev": true, - "license": "MIT" - }, - "node_modules/mnemonist": { - "version": "0.38.5", - "resolved": "https://registry.npmjs.org/mnemonist/-/mnemonist-0.38.5.tgz", - "integrity": "sha512-bZTFT5rrPKtPJxj8KSV0WkPyNxl72vQepqqVUAW2ARUpUSF2qXMB6jZj7hW5/k7C1rtpzqbD/IIbJwLXUjCHeg==", - "dev": true, - "dependencies": { - "obliterator": "^2.0.0" - } - }, - "node_modules/mocha": { - "version": "10.3.0", - "resolved": "https://registry.npmjs.org/mocha/-/mocha-10.3.0.tgz", - "integrity": "sha512-uF2XJs+7xSLsrmIvn37i/wnc91nw7XjOQB8ccyx5aEgdnohr7n+rEiZP23WkCYHjilR6+EboEnbq/ZQDz4LSbg==", - "dev": true, - "dependencies": { - "ansi-colors": "4.1.1", - "browser-stdout": "1.3.1", - "chokidar": "3.5.3", - "debug": "4.3.4", - "diff": "5.0.0", - "escape-string-regexp": "4.0.0", - "find-up": "5.0.0", - "glob": "8.1.0", - "he": "1.2.0", - "js-yaml": "4.1.0", - "log-symbols": "4.1.0", - "minimatch": "5.0.1", - "ms": "2.1.3", - "serialize-javascript": "6.0.0", - "strip-json-comments": "3.1.1", - "supports-color": "8.1.1", - "workerpool": "6.2.1", - "yargs": "16.2.0", - "yargs-parser": "20.2.4", - "yargs-unparser": "2.0.0" - }, - "bin": { - "_mocha": "bin/_mocha", - "mocha": "bin/mocha.js" - }, - "engines": { - "node": ">= 14.0.0" - } - }, - "node_modules/mocha/node_modules/ansi-colors": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", - "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/mocha/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/mocha/node_modules/chokidar": { - "version": "3.5.3", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", - "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], - "dependencies": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" - }, - "engines": { - "node": ">= 8.10.0" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - } - }, - "node_modules/mocha/node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/mocha/node_modules/glob": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz", - "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==", - "dev": true, - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^5.0.1", - "once": "^1.3.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/mocha/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/mocha/node_modules/minimatch": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.0.1.tgz", - "integrity": "sha512-nLDxIFRyhDblz3qMuq+SoRZED4+miJ/G+tdDrjkkkRnjAsBexeGpgjLEQ0blJy7rHhR2b93rhQY4SvyWu9v03g==", - "dev": true, - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/mocha/node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true - }, - "node_modules/mocha/node_modules/supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" - } - }, - "node_modules/mri": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz", - "integrity": "sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" - }, - "node_modules/neo-async": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", - "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", - "dev": true - }, - "node_modules/nice-try": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", - "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==" - }, - "node_modules/node-addon-api": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-2.0.2.tgz", - "integrity": "sha512-Ntyt4AIXyaLIuMHF6IOoTakB3K+RWxwtsHNRxllEoA6vPwP9o4866g6YWDLUdnucilZhmkxiHwHr11gAENw+QA==", - "dev": true, - "license": "MIT" - }, - "node_modules/node-emoji": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/node-emoji/-/node-emoji-1.11.0.tgz", - "integrity": "sha512-wo2DpQkQp7Sjm2A0cq+sN7EHKO6Sl0ctXeBdFZrL9T9+UywORbufTcTZxom8YqpLQt/FqNMUkOpkZrJVYSKD3A==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "lodash": "^4.17.21" - } - }, - "node_modules/node-fetch": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", - "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", - "dependencies": { - "whatwg-url": "^5.0.0" - }, - "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } - } - }, - "node_modules/node-gyp-build": { - "version": "4.8.4", - "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.8.4.tgz", - "integrity": "sha512-LA4ZjwlnUblHVgq0oBF3Jl/6h/Nvs5fzBLwdEF4nuxnFdsfajde4WfxtJr3CaiH+F6ewcIB/q4jQ4UzPyid+CQ==", - "dev": true, - "license": "MIT", - "bin": { - "node-gyp-build": "bin.js", - "node-gyp-build-optional": "optional.js", - "node-gyp-build-test": "build-test.js" - } - }, - "node_modules/nofilter": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/nofilter/-/nofilter-3.1.0.tgz", - "integrity": "sha512-l2NNj07e9afPnhAhvgVrCD/oy2Ai1yfLpuo3EpiO1jFTsB4sFz6oIfAfSZyQzVpkZQ9xS8ZS5g1jCBgq4Hwo0g==", - "dev": true, - "license": "MIT", - "peer": true, - "engines": { - "node": ">=12.19" - } - }, - "node_modules/nopt": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz", - "integrity": "sha512-4GUt3kSEYmk4ITxzB/b9vaIDfUVWN/Ml1Fwl11IlnIG2iaJ9O6WXZ9SrYM9NLI8OCBieN2Y8SWC2oJV0RQ7qYg==", - "dev": true, - "license": "ISC", - "peer": true, - "dependencies": { - "abbrev": "1" - }, - "bin": { - "nopt": "bin/nopt.js" - } - }, - "node_modules/normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/number-to-bn": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/number-to-bn/-/number-to-bn-1.7.0.tgz", - "integrity": "sha512-wsJ9gfSz1/s4ZsJN01lyonwuxA1tml6X1yBDnfpMglypcBRFZZkus26EdPSlqS5GJfYddVZa22p3VNb3z5m5Ig==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "bn.js": "4.11.6", - "strip-hex-prefix": "1.0.0" - }, - "engines": { - "node": ">=6.5.0", - "npm": ">=3" - } - }, - "node_modules/number-to-bn/node_modules/bn.js": { - "version": "4.11.6", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.6.tgz", - "integrity": "sha512-XWwnNNFCuuSQ0m3r3C4LE3EiORltHd9M05pq6FOlVeiophzRbMo50Sbz1ehl8K3Z+jw9+vmgnXefY1hz8X+2wA==", - "dev": true, - "license": "MIT", - "peer": true - }, - "node_modules/object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", - "dev": true, - "license": "MIT", - "peer": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object-get": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/object-get/-/object-get-2.1.1.tgz", - "integrity": "sha512-7n4IpLMzGGcLEMiQKsNR7vCe+N5E9LORFrtNUVy4sO3dj9a3HedZCxEL2T7QuLhcHN1NBuBsMOKaOsAYI9IIvg==", - "dev": true, - "license": "MIT" - }, - "node_modules/object-inspect": { - "version": "1.13.4", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", - "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/object-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", - "dev": true, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/object-to-spawn-args": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/object-to-spawn-args/-/object-to-spawn-args-2.0.1.tgz", - "integrity": "sha512-6FuKFQ39cOID+BMZ3QaphcC8Y4cw6LXBLyIgPU+OhIYwviJamPAn+4mITapnSBQrejB+NNp+FMskhD8Cq+Ys3w==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/object.assign": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.5.tgz", - "integrity": "sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.5", - "define-properties": "^1.2.1", - "has-symbols": "^1.0.3", - "object-keys": "^1.1.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/obliterator": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/obliterator/-/obliterator-2.0.4.tgz", - "integrity": "sha512-lgHwxlxV1qIg1Eap7LgIeoBWIMFibOjbrYPIPJZcI1mmGAI2m3lNYpK12Y+GBdPQ0U1hRwSord7GIaawz962qQ==", - "dev": true - }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/open": { - "version": "7.4.2", - "resolved": "https://registry.npmjs.org/open/-/open-7.4.2.tgz", - "integrity": "sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q==", - "dependencies": { - "is-docker": "^2.0.0", - "is-wsl": "^2.1.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/optionator": { - "version": "0.8.3", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", - "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "deep-is": "~0.1.3", - "fast-levenshtein": "~2.0.6", - "levn": "~0.3.0", - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2", - "word-wrap": "~1.2.3" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/ordinal": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/ordinal/-/ordinal-1.0.3.tgz", - "integrity": "sha512-cMddMgb2QElm8G7vdaa02jhUNbTSrhsgAGUz1OokD83uJTwSUn+nKoNoKVVaRa08yF6sgfO7Maou1+bgLd9rdQ==", - "dev": true, - "license": "MIT", - "peer": true - }, - "node_modules/os-tmpdir": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", - "integrity": "sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/outdent": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/outdent/-/outdent-0.5.0.tgz", - "integrity": "sha512-/jHxFIzoMXdqPzTaCpFzAAWhpkSjZPF4Vsn6jAfNpmbH/ymsmd7Qc6VE9BGn0L6YMj6uwpQLxCECpus4ukKS9Q==", - "license": "MIT" - }, - "node_modules/p-filter": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/p-filter/-/p-filter-2.1.0.tgz", - "integrity": "sha512-ZBxxZ5sL2HghephhpGAQdoskxplTwr7ICaehZwLIlfL6acuVgZPm8yBNuRAFBGEqtD/hmUeq9eqLg2ys9Xr/yw==", - "license": "MIT", - "dependencies": { - "p-map": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/p-filter/node_modules/p-map": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-2.1.0.tgz", - "integrity": "sha512-y3b8Kpd8OAN444hxfBbFfj1FY/RjtTd8tzYwhUqNYXx0fXx2iX4maP4Qr6qhIKbQXI02wTLAda4fYUbDagTUFw==", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-limit": "^3.0.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-map": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz", - "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==", - "dev": true, - "dependencies": { - "aggregate-error": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/package-json-from-dist": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.0.tgz", - "integrity": "sha512-dATvCeZN/8wQsGywez1mzHtTlP22H8OEfPrVMLNr4/eGa+ijtLn/6M5f0dY8UKNrC2O9UCU6SSoG3qRKnt7STw==", - "dev": true, - "license": "BlueOak-1.0.0" - }, - "node_modules/package-manager-detector": { - "version": "0.2.11", - "resolved": "https://registry.npmjs.org/package-manager-detector/-/package-manager-detector-0.2.11.tgz", - "integrity": "sha512-BEnLolu+yuz22S56CU1SUKq3XC3PkwD5wv4ikR4MfGvnRVcmzXR9DwSlW2fEamyTPyXHomBJRzgapeuBvRNzJQ==", - "license": "MIT", - "dependencies": { - "quansync": "^0.2.7" - } - }, - "node_modules/parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "license": "MIT", - "dependencies": { - "callsites": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/parse-cache-control": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parse-cache-control/-/parse-cache-control-1.0.1.tgz", - "integrity": "sha512-60zvsJReQPX5/QP0Kzfd/VrpjScIQ7SHBW6bFCYfEP+fp0Eppr1SHhIO5nd1PjZtvclzSzES9D/p5nFJurwfWg==", - "dev": true, - "peer": true - }, - "node_modules/patch-package": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/patch-package/-/patch-package-6.5.1.tgz", - "integrity": "sha512-I/4Zsalfhc6bphmJTlrLoOcAF87jcxko4q0qsv4bGcurbr8IskEOtdnt9iCmsQVGL1B+iUhSQqweyTLJfCF9rA==", - "dependencies": { - "@yarnpkg/lockfile": "^1.1.0", - "chalk": "^4.1.2", - "cross-spawn": "^6.0.5", - "find-yarn-workspace-root": "^2.0.0", - "fs-extra": "^9.0.0", - "is-ci": "^2.0.0", - "klaw-sync": "^6.0.0", - "minimist": "^1.2.6", - "open": "^7.4.2", - "rimraf": "^2.6.3", - "semver": "^5.6.0", - "slash": "^2.0.0", - "tmp": "^0.0.33", - "yaml": "^1.10.2" - }, - "bin": { - "patch-package": "index.js" - }, - "engines": { - "node": ">=10", - "npm": ">5" - } - }, - "node_modules/patch-package/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/patch-package/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/patch-package/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/patch-package/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/patch-package/node_modules/fs-extra": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", - "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", - "dependencies": { - "at-least-node": "^1.0.0", - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/patch-package/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/patch-package/node_modules/rimraf": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", - "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", - "deprecated": "Rimraf versions prior to v4 are no longer supported", - "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - } - }, - "node_modules/patch-package/node_modules/semver": { - "version": "5.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", - "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", - "bin": { - "semver": "bin/semver" - } - }, - "node_modules/patch-package/node_modules/slash": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-2.0.0.tgz", - "integrity": "sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==", - "engines": { - "node": ">=6" - } - }, - "node_modules/patch-package/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/path-key": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", - "integrity": "sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw==", - "engines": { - "node": ">=4" - } - }, - "node_modules/path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true - }, - "node_modules/path-scurry": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.0.tgz", - "integrity": "sha512-ypGJsmGtdXUOeM5u93TyeIEfEhM6s+ljAhrk5vAvSx8uyY/02OvrZnA0YNGUrPXfpJMgI1ODd3nwz8Npx4O4cg==", - "dev": true, - "license": "BlueOak-1.0.0", - "dependencies": { - "lru-cache": "^11.0.0", - "minipass": "^7.1.2" - }, - "engines": { - "node": "20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/path-scurry/node_modules/lru-cache": { - "version": "11.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.0.0.tgz", - "integrity": "sha512-Qv32eSV1RSCfhY3fpPE2GNZ8jgM9X7rdAfemLWqTUxwiyIC4jJ6Sy0fZ8H+oLWevO6i4/bizg7c8d8i6bxrzbA==", - "dev": true, - "license": "ISC", - "engines": { - "node": "20 || >=22" - } - }, - "node_modules/path-type": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", - "engines": { - "node": ">=8" - } - }, - "node_modules/pathval": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz", - "integrity": "sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==", - "engines": { - "node": "*" - } - }, - "node_modules/pbkdf2": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.1.5.tgz", - "integrity": "sha512-Q3CG/cYvCO1ye4QKkuH7EXxs3VC/rI1/trd+qX2+PolbaKG0H+bgcZzrTt96mMyRtejk+JMCiLUn3y29W8qmFQ==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "ripemd160": "^2.0.3", - "safe-buffer": "^5.2.1", - "sha.js": "^2.4.12", - "to-buffer": "^1.2.1" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/picocolors": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", - "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", - "license": "ISC" - }, - "node_modules/picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/pify": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", - "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", - "engines": { - "node": ">=6" - } - }, - "node_modules/possible-typed-array-names": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz", - "integrity": "sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==", - "dev": true, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/prelude-ls": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", - "integrity": "sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==", - "dev": true, - "peer": true, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/prettier": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.3.tgz", - "integrity": "sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==", - "dev": true, - "license": "MIT", - "bin": { - "prettier": "bin/prettier.cjs" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/prettier/prettier?sponsor=1" - } - }, - "node_modules/process-nextick-args": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", - "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", - "dev": true, - "license": "MIT", - "peer": true - }, - "node_modules/promise": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/promise/-/promise-8.3.0.tgz", - "integrity": "sha512-rZPNPKTOYVNEEKFaq1HqTgOwZD+4/YHS5ukLzQCypkj+OkYx7iv0mA91lJlpPPZ8vMau3IIGj5Qlwrx+8iiSmg==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "asap": "~2.0.6" - } - }, - "node_modules/proxy-from-env": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", - "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", - "dev": true, - "license": "MIT", - "peer": true - }, - "node_modules/punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "engines": { - "node": ">=6" - } - }, - "node_modules/punycode.js": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode.js/-/punycode.js-2.3.1.tgz", - "integrity": "sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/qs": { - "version": "6.14.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.0.tgz", - "integrity": "sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w==", - "dev": true, - "license": "BSD-3-Clause", - "peer": true, - "dependencies": { - "side-channel": "^1.1.0" - }, - "engines": { - "node": ">=0.6" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/quansync": { - "version": "0.2.11", - "resolved": "https://registry.npmjs.org/quansync/-/quansync-0.2.11.tgz", - "integrity": "sha512-AifT7QEbW9Nri4tAwR5M/uzpBuqfZf+zwaEM/QkzEjj7NBuFD2rBuy0K3dE+8wltbezDV7JMA0WfnCPYRSYbXA==", - "funding": [ - { - "type": "individual", - "url": "https://github.com/sponsors/antfu" - }, - { - "type": "individual", - "url": "https://github.com/sponsors/sxzz" - } - ], - "license": "MIT" - }, - "node_modules/queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/randombytes": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", - "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", - "dev": true, - "dependencies": { - "safe-buffer": "^5.1.0" - } - }, - "node_modules/raw-body": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz", - "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==", - "dev": true, - "dependencies": { - "bytes": "3.1.2", - "http-errors": "2.0.0", - "iconv-lite": "0.4.24", - "unpipe": "1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/read-yaml-file": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/read-yaml-file/-/read-yaml-file-1.1.0.tgz", - "integrity": "sha512-VIMnQi/Z4HT2Fxuwg5KrY174U1VdUIASQVWXXyqtNRtxSr9IYkn1rsI6Tb6HsrHCmB7gVpNwX6JxPTHcH6IoTA==", - "license": "MIT", - "dependencies": { - "graceful-fs": "^4.1.5", - "js-yaml": "^3.6.1", - "pify": "^4.0.1", - "strip-bom": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/read-yaml-file/node_modules/argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "license": "MIT", - "dependencies": { - "sprintf-js": "~1.0.2" - } - }, - "node_modules/read-yaml-file/node_modules/esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "license": "BSD-2-Clause", - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/read-yaml-file/node_modules/js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", - "license": "MIT", - "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "dev": true, - "license": "MIT", - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/readdirp": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", - "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", - "dev": true, - "dependencies": { - "picomatch": "^2.2.1" - }, - "engines": { - "node": ">=8.10.0" - } - }, - "node_modules/rechoir": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", - "integrity": "sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==", - "dev": true, - "peer": true, - "dependencies": { - "resolve": "^1.1.6" - }, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/recursive-readdir": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/recursive-readdir/-/recursive-readdir-2.2.3.tgz", - "integrity": "sha512-8HrF5ZsXk5FAH9dgsx3BlUer73nIhuj+9OrQwEbLTPOBzGkL1lsFCR01am+v+0m2Cmbs1nP12hLDl5FA7EszKA==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "minimatch": "^3.0.5" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/reduce-extract": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/reduce-extract/-/reduce-extract-1.0.0.tgz", - "integrity": "sha512-QF8vjWx3wnRSL5uFMyCjDeDc5EBMiryoT9tz94VvgjKfzecHAVnqmXAwQDcr7X4JmLc2cjkjFGCVzhMqDjgR9g==", - "dev": true, - "license": "MIT", - "dependencies": { - "test-value": "^1.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/reduce-extract/node_modules/array-back": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-1.0.4.tgz", - "integrity": "sha512-1WxbZvrmyhkNoeYcizokbmh5oiOCIfyvGtcqbK3Ls1v1fKcquzxnQSceOx6tzq7jmai2kFLWIpGND2cLhH6TPw==", - "dev": true, - "license": "MIT", - "dependencies": { - "typical": "^2.6.0" - }, - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/reduce-extract/node_modules/test-value": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/test-value/-/test-value-1.1.0.tgz", - "integrity": "sha512-wrsbRo7qP+2Je8x8DsK8ovCGyxe3sYfQwOraIY/09A2gFXU9DYKiTF14W4ki/01AEh56kMzAmlj9CaHGDDUBJA==", - "dev": true, - "license": "MIT", - "dependencies": { - "array-back": "^1.0.2", - "typical": "^2.4.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/reduce-extract/node_modules/typical": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/typical/-/typical-2.6.1.tgz", - "integrity": "sha512-ofhi8kjIje6npGozTip9Fr8iecmYfEbS06i0JnIg+rh51KakryWF4+jX8lLKZVhy6N+ID45WYSFCxPOdTWCzNg==", - "dev": true, - "license": "MIT" - }, - "node_modules/reduce-flatten": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/reduce-flatten/-/reduce-flatten-2.0.0.tgz", - "integrity": "sha512-EJ4UNY/U1t2P/2k6oqotuX2Cc3T6nxJwsM0N0asT7dhrtH1ltUxDn4NalSYmPE2rCkVpcf/X6R0wDwcFpzhd4w==", - "dev": true, - "license": "MIT", - "peer": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/reduce-unique": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/reduce-unique/-/reduce-unique-2.0.1.tgz", - "integrity": "sha512-x4jH/8L1eyZGR785WY+ePtyMNhycl1N2XOLxhCbzZFaqF4AXjLzqSxa2UHgJ2ZVR/HHyPOvl1L7xRnW8ye5MdA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/reduce-without": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/reduce-without/-/reduce-without-1.0.1.tgz", - "integrity": "sha512-zQv5y/cf85sxvdrKPlfcRzlDn/OqKFThNimYmsS3flmkioKvkUGn2Qg9cJVoQiEvdxFGLE0MQER/9fZ9sUqdxg==", - "dev": true, - "license": "MIT", - "dependencies": { - "test-value": "^2.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/reduce-without/node_modules/array-back": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-1.0.4.tgz", - "integrity": "sha512-1WxbZvrmyhkNoeYcizokbmh5oiOCIfyvGtcqbK3Ls1v1fKcquzxnQSceOx6tzq7jmai2kFLWIpGND2cLhH6TPw==", - "dev": true, - "license": "MIT", - "dependencies": { - "typical": "^2.6.0" - }, - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/reduce-without/node_modules/test-value": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/test-value/-/test-value-2.1.0.tgz", - "integrity": "sha512-+1epbAxtKeXttkGFMTX9H42oqzOTufR1ceCF+GYA5aOmvaPq9wd4PUS8329fn2RRLGNeUkgRLnVpycjx8DsO2w==", - "dev": true, - "license": "MIT", - "dependencies": { - "array-back": "^1.0.3", - "typical": "^2.6.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/reduce-without/node_modules/typical": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/typical/-/typical-2.6.1.tgz", - "integrity": "sha512-ofhi8kjIje6npGozTip9Fr8iecmYfEbS06i0JnIg+rh51KakryWF4+jX8lLKZVhy6N+ID45WYSFCxPOdTWCzNg==", - "dev": true, - "license": "MIT" - }, - "node_modules/regexp.prototype.flags": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.2.tgz", - "integrity": "sha512-NcDiDkTLuPR+++OCKB0nWafEmhg/Da8aUPLPMQbK+bxKKCm1/S5he+AqYa4PlMCVBalb4/yxIRub6qkEx5yJbw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.6", - "define-properties": "^1.2.1", - "es-errors": "^1.3.0", - "set-function-name": "^2.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/req-cwd": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/req-cwd/-/req-cwd-2.0.0.tgz", - "integrity": "sha512-ueoIoLo1OfB6b05COxAA9UpeoscNpYyM+BqYlA7H6LVF4hKGPXQQSSaD2YmvDVJMkk4UDpAHIeU1zG53IqjvlQ==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "req-from": "^2.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/req-from": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/req-from/-/req-from-2.0.0.tgz", - "integrity": "sha512-LzTfEVDVQHBRfjOUMgNBA+V6DWsSnoeKzf42J7l0xa/B4jyPOuuF5MlNSmomLNGemWTnV2TIdjSSLnEn95fOQA==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "resolve-from": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/require-from-string": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", - "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", - "dev": true, - "license": "MIT", - "peer": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/requizzle": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/requizzle/-/requizzle-0.2.4.tgz", - "integrity": "sha512-JRrFk1D4OQ4SqovXOgdav+K8EAhSB/LJZqCz8tbX0KObcdeM15Ss59ozWMBWmmINMagCwmqn4ZNryUGpBsl6Jw==", - "dev": true, - "license": "MIT", - "dependencies": { - "lodash": "^4.17.21" - } - }, - "node_modules/resolve": { - "version": "1.17.0", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.17.0.tgz", - "integrity": "sha512-ic+7JYiV8Vi2yzQGFWOkiZD5Z9z7O2Zhm9XMaTxdJExKasieFCr+yXZ/WmXsckHiKl12ar0y6XiXDx3m4RHn1w==", - "dev": true, - "dependencies": { - "path-parse": "^1.0.6" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/resolve-from": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-3.0.0.tgz", - "integrity": "sha512-GnlH6vxLymXJNMBo7XP1fJIzBFbdYt49CuTwmB/6N53t+kMPRMFKz783LlQ4tv28XoQfMWinAJX6WCGf2IlaIw==", - "dev": true, - "license": "MIT", - "peer": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/reusify": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", - "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", - "engines": { - "iojs": ">=1.0.0", - "node": ">=0.10.0" - } - }, - "node_modules/rimraf": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-6.0.1.tgz", - "integrity": "sha512-9dkvaxAsk/xNXSJzMgFqqMCuFgt2+KsOFek3TMLfo8NCPfWpBmqwyNn5Y+NX56QUYfCtsyhF3ayiboEoUmJk/A==", - "dev": true, - "license": "ISC", - "dependencies": { - "glob": "^11.0.0", - "package-json-from-dist": "^1.0.0" - }, - "bin": { - "rimraf": "dist/esm/bin.mjs" - }, - "engines": { - "node": "20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/rimraf/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/rimraf/node_modules/glob": { - "version": "11.0.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-11.0.0.tgz", - "integrity": "sha512-9UiX/Bl6J2yaBbxKoEBRm4Cipxgok8kQYcOPEhScPwebu2I0HoQOuYdIO6S3hLuWoZgpDpwQZMzTFxgpkyT76g==", - "dev": true, - "license": "ISC", - "dependencies": { - "foreground-child": "^3.1.0", - "jackspeak": "^4.0.1", - "minimatch": "^10.0.0", - "minipass": "^7.1.2", - "package-json-from-dist": "^1.0.0", - "path-scurry": "^2.0.0" - }, - "bin": { - "glob": "dist/esm/bin.mjs" - }, - "engines": { - "node": "20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/rimraf/node_modules/minimatch": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.0.1.tgz", - "integrity": "sha512-ethXTt3SGGR+95gudmqJ1eNhRO7eGEGIgYA9vnPatK4/etz2MEVDno5GMCibdMTuBMyElzIlgxMna3K94XDIDQ==", - "dev": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": "20 || >=22" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/ripemd160": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.3.tgz", - "integrity": "sha512-5Di9UC0+8h1L6ZD2d7awM7E/T4uA1fJRlx6zk/NvdCCVEoAnFqvHmCuNeIKoCeIixBX/q8uM+6ycDvF8woqosA==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "hash-base": "^3.1.2", - "inherits": "^2.0.4" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/rlp": { - "version": "2.2.7", - "resolved": "https://registry.npmjs.org/rlp/-/rlp-2.2.7.tgz", - "integrity": "sha512-d5gdPmgQ0Z+AklL2NVXr/IoSjNZFfTVvQWzL/AM2AOcSzYP2xjlb0AC8YyCLc41MSNf6P6QVtjgPdmVtzb+4lQ==", - "dev": true, - "license": "MPL-2.0", - "peer": true, - "dependencies": { - "bn.js": "^5.2.0" - }, - "bin": { - "rlp": "bin/rlp" - } - }, - "node_modules/run-parallel": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "queue-microtask": "^1.2.2" - } - }, - "node_modules/safe-array-concat": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.1.2.tgz", - "integrity": "sha512-vj6RsCsWBCf19jIeHEfkRMw8DPiBb+DMXklQ/1SGDHOMlHdPUkZXFQ2YdplS23zESTijAcurb1aSgJA3AgMu1Q==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.7", - "get-intrinsic": "^1.2.4", - "has-symbols": "^1.0.3", - "isarray": "^2.0.5" - }, - "engines": { - "node": ">=0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, - "node_modules/safe-regex-test": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.3.tgz", - "integrity": "sha512-CdASjNJPvRa7roO6Ra/gLYBTzYzzPyyBXxIMdGW3USQLyjWEls2RgW5UBTXaQVp+OrpeCK3bLem8smtmheoRuw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.6", - "es-errors": "^1.3.0", - "is-regex": "^1.1.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" - }, - "node_modules/sc-istanbul": { - "version": "0.4.6", - "resolved": "https://registry.npmjs.org/sc-istanbul/-/sc-istanbul-0.4.6.tgz", - "integrity": "sha512-qJFF/8tW/zJsbyfh/iT/ZM5QNHE3CXxtLJbZsL+CzdJLBsPD7SedJZoUA4d8iAcN2IoMp/Dx80shOOd2x96X/g==", - "dev": true, - "license": "BSD-3-Clause", - "peer": true, - "dependencies": { - "abbrev": "1.0.x", - "async": "1.x", - "escodegen": "1.8.x", - "esprima": "2.7.x", - "glob": "^5.0.15", - "handlebars": "^4.0.1", - "js-yaml": "3.x", - "mkdirp": "0.5.x", - "nopt": "3.x", - "once": "1.x", - "resolve": "1.1.x", - "supports-color": "^3.1.0", - "which": "^1.1.1", - "wordwrap": "^1.0.0" - }, - "bin": { - "istanbul": "lib/cli.js" - } - }, - "node_modules/sc-istanbul/node_modules/argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "sprintf-js": "~1.0.2" - } - }, - "node_modules/sc-istanbul/node_modules/glob": { - "version": "5.0.15", - "resolved": "https://registry.npmjs.org/glob/-/glob-5.0.15.tgz", - "integrity": "sha512-c9IPMazfRITpmAAKi22dK1VKxGDX9ehhqfABDriL/lzO92xcUKEJPQHrVA/2YHSNFB4iFlykVmWvwo48nr3OxA==", - "deprecated": "Glob versions prior to v9 are no longer supported", - "dev": true, - "license": "ISC", - "peer": true, - "dependencies": { - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "2 || 3", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - } - }, - "node_modules/sc-istanbul/node_modules/has-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", - "integrity": "sha512-DyYHfIYwAJmjAjSSPKANxI8bFY9YtFrgkAfinBojQ8YJTOuOuav64tMUJv584SES4xl74PmuaevIyaLESHdTAA==", - "dev": true, - "license": "MIT", - "peer": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sc-istanbul/node_modules/js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/sc-istanbul/node_modules/js-yaml/node_modules/esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true, - "license": "BSD-2-Clause", - "peer": true, - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/sc-istanbul/node_modules/resolve": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.1.7.tgz", - "integrity": "sha512-9znBF0vBcaSN3W2j7wKvdERPwqTxSpCq+if5C0WoTCyV9n24rua28jeuQ2pL/HOf+yUe/Mef+H/5p60K0Id3bg==", - "dev": true, - "license": "MIT", - "peer": true - }, - "node_modules/sc-istanbul/node_modules/supports-color": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", - "integrity": "sha512-Jds2VIYDrlp5ui7t8abHN2bjAu4LV/q4N2KivFPpGH0lrka0BMq/33AmECUXlKPcHigkNaqfXRENFju+rlcy+A==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "has-flag": "^1.0.0" - }, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/scrypt-js": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/scrypt-js/-/scrypt-js-3.0.1.tgz", - "integrity": "sha512-cdwTTnqPu0Hyvf5in5asVdZocVDTNRmR7XEcJuIzMjJeSHybHl7vpB66AzwTaIg6CLSbtjcxc8fqcySfnTkccA==", - "peer": true - }, - "node_modules/secp256k1": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/secp256k1/-/secp256k1-4.0.4.tgz", - "integrity": "sha512-6JfvwvjUOn8F/jUoBY2Q1v5WY5XS+rj8qSe0v8Y4ezH4InLgTEeOOPQsRll9OV429Pvo6BCHGavIyJfr3TAhsw==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "peer": true, - "dependencies": { - "elliptic": "^6.5.7", - "node-addon-api": "^5.0.0", - "node-gyp-build": "^4.2.0" - }, - "engines": { - "node": ">=18.0.0" - } - }, - "node_modules/secp256k1/node_modules/bn.js": { - "version": "4.12.2", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.2.tgz", - "integrity": "sha512-n4DSx829VRTRByMRGdjQ9iqsN0Bh4OolPsFnaZBLcbi8iXcB+kJ9s7EnRt4wILZNV3kPLHkRVfOc/HvhC3ovDw==", - "dev": true, - "license": "MIT", - "peer": true - }, - "node_modules/secp256k1/node_modules/elliptic": { - "version": "6.6.1", - "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.6.1.tgz", - "integrity": "sha512-RaddvvMatK2LJHqFJ+YA4WysVN5Ita9E35botqIYspQ4TkRAlCicdzKOjlyv/1Za5RyTNn7di//eEV0uTAfe3g==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "bn.js": "^4.11.9", - "brorand": "^1.1.0", - "hash.js": "^1.0.0", - "hmac-drbg": "^1.0.1", - "inherits": "^2.0.4", - "minimalistic-assert": "^1.0.1", - "minimalistic-crypto-utils": "^1.0.1" - } - }, - "node_modules/secp256k1/node_modules/node-addon-api": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-5.1.0.tgz", - "integrity": "sha512-eh0GgfEkpnoWDq+VY8OyvYhFEzBk6jIYbRKdIlyTiAXIVJ8PyBaKb0rp7oDtoddbdoHWhq8wwr+XZ81F1rpNdA==", - "dev": true, - "license": "MIT", - "peer": true - }, - "node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/serialize-javascript": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz", - "integrity": "sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==", - "dev": true, - "dependencies": { - "randombytes": "^2.1.0" - } - }, - "node_modules/set-function-length": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", - "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", - "dev": true, - "license": "MIT", - "dependencies": { - "define-data-property": "^1.1.4", - "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.4", - "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/set-function-name": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.2.tgz", - "integrity": "sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==", - "dev": true, - "dependencies": { - "define-data-property": "^1.1.4", - "es-errors": "^1.3.0", - "functions-have-names": "^1.2.3", - "has-property-descriptors": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/setimmediate": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", - "integrity": "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==", - "dev": true, - "license": "MIT", - "peer": true - }, - "node_modules/setprototypeof": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", - "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", - "dev": true - }, - "node_modules/sha.js": { - "version": "2.4.12", - "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.12.tgz", - "integrity": "sha512-8LzC5+bvI45BjpfXU8V5fdU2mfeKiQe1D1gIMn7XUlF3OTUrpdJpPPH4EMAnF0DsHHdSZqCdSss5qCmJKuiO3w==", - "dev": true, - "license": "(MIT AND BSD-3-Clause)", - "peer": true, - "dependencies": { - "inherits": "^2.0.4", - "safe-buffer": "^5.2.1", - "to-buffer": "^1.2.0" - }, - "bin": { - "sha.js": "bin.js" - }, - "engines": { - "node": ">= 0.10" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/sha1": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/sha1/-/sha1-1.1.1.tgz", - "integrity": "sha512-dZBS6OrMjtgVkopB1Gmo4RQCDKiZsqcpAQpkV/aaj+FCrCg8r4I4qMkDPQjBgLIxlmu9k4nUbWq6ohXahOneYA==", - "dev": true, - "license": "BSD-3-Clause", - "peer": true, - "dependencies": { - "charenc": ">= 0.0.1", - "crypt": ">= 0.0.1" - }, - "engines": { - "node": "*" - } - }, - "node_modules/shebang-command": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", - "integrity": "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==", - "dependencies": { - "shebang-regex": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/shebang-regex": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", - "integrity": "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/shelljs": { - "version": "0.8.5", - "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.5.tgz", - "integrity": "sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==", - "dev": true, - "license": "BSD-3-Clause", - "peer": true, - "dependencies": { - "glob": "^7.0.0", - "interpret": "^1.0.0", - "rechoir": "^0.6.2" - }, - "bin": { - "shjs": "bin/shjs" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/side-channel": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", - "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "object-inspect": "^1.13.3", - "side-channel-list": "^1.0.0", - "side-channel-map": "^1.0.1", - "side-channel-weakmap": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel-list": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", - "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", - "dev": true, - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "object-inspect": "^1.13.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel-map": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", - "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.5", - "object-inspect": "^1.13.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/side-channel-weakmap": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", - "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.5", - "object-inspect": "^1.13.3", - "side-channel-map": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "engines": { - "node": ">=8" - } - }, - "node_modules/slice-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", - "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "astral-regex": "^2.0.0", - "is-fullwidth-code-point": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/slice-ansi?sponsor=1" - } - }, - "node_modules/slice-ansi/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/slice-ansi/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/slice-ansi/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, - "license": "MIT", - "peer": true - }, - "node_modules/solady": { - "version": "0.0.182", - "resolved": "https://registry.npmjs.org/solady/-/solady-0.0.182.tgz", - "integrity": "sha512-FW6xo1akJoYpkXMzu58/56FcNU3HYYNamEbnFO3iSibXk0nSHo0DV2Gu/zI3FPg3So5CCX6IYli1TT1IWATnvg==" - }, - "node_modules/solc": { - "version": "0.8.26", - "resolved": "https://registry.npmjs.org/solc/-/solc-0.8.26.tgz", - "integrity": "sha512-yiPQNVf5rBFHwN6SIf3TUUvVAFKcQqmSUFeq+fb6pNRCo0ZCgpYOZDi3BVoezCPIAcKrVYd/qXlBLUP9wVrZ9g==", - "dev": true, - "dependencies": { - "command-exists": "^1.2.8", - "commander": "^8.1.0", - "follow-redirects": "^1.12.1", - "js-sha3": "0.8.0", - "memorystream": "^0.3.1", - "semver": "^5.5.0", - "tmp": "0.0.33" - }, - "bin": { - "solcjs": "solc.js" - }, - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/solc/node_modules/semver": { - "version": "5.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", - "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", - "dev": true, - "bin": { - "semver": "bin/semver" - } - }, - "node_modules/solidity-ast": { - "version": "0.4.56", - "resolved": "https://registry.npmjs.org/solidity-ast/-/solidity-ast-0.4.56.tgz", - "integrity": "sha512-HgmsA/Gfklm/M8GFbCX/J1qkVH0spXHgALCNZ8fA8x5X+MFdn/8CP2gr5OVyXjXw6RZTPC/Sxl2RUDQOXyNMeA==", - "dev": true, - "dependencies": { - "array.prototype.findlast": "^1.2.2" - } - }, - "node_modules/solidity-coverage": { - "version": "0.8.16", - "resolved": "https://registry.npmjs.org/solidity-coverage/-/solidity-coverage-0.8.16.tgz", - "integrity": "sha512-qKqgm8TPpcnCK0HCDLJrjbOA2tQNEJY4dHX/LSSQ9iwYFS973MwjtgYn2Iv3vfCEQJTj5xtm4cuUMzlJsJSMbg==", - "dev": true, - "license": "ISC", - "peer": true, - "dependencies": { - "@ethersproject/abi": "^5.0.9", - "@solidity-parser/parser": "^0.20.1", - "chalk": "^2.4.2", - "death": "^1.1.0", - "difflib": "^0.2.4", - "fs-extra": "^8.1.0", - "ghost-testrpc": "^0.0.2", - "global-modules": "^2.0.0", - "globby": "^10.0.1", - "jsonschema": "^1.2.4", - "lodash": "^4.17.21", - "mocha": "^10.2.0", - "node-emoji": "^1.10.0", - "pify": "^4.0.1", - "recursive-readdir": "^2.2.2", - "sc-istanbul": "^0.4.5", - "semver": "^7.3.4", - "shelljs": "^0.8.3", - "web3-utils": "^1.3.6" - }, - "bin": { - "solidity-coverage": "plugins/bin.js" - }, - "peerDependencies": { - "hardhat": "^2.11.0" - } - }, - "node_modules/solidity-coverage/node_modules/@solidity-parser/parser": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@solidity-parser/parser/-/parser-0.20.2.tgz", - "integrity": "sha512-rbu0bzwNvMcwAjH86hiEAcOeRI2EeK8zCkHDrFykh/Al8mvJeFmjy3UrE7GYQjNwOgbGUUtCn5/k8CB8zIu7QA==", - "dev": true, - "license": "MIT", - "peer": true - }, - "node_modules/solidity-coverage/node_modules/fs-extra": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", - "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" - }, - "engines": { - "node": ">=6 <7 || >=8" - } - }, - "node_modules/solidity-coverage/node_modules/jsonfile": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", - "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", - "dev": true, - "license": "MIT", - "peer": true, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/solidity-coverage/node_modules/semver": { - "version": "7.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", - "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", - "dev": true, - "license": "ISC", - "peer": true, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/solidity-coverage/node_modules/universalify": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", - "dev": true, - "license": "MIT", - "peer": true, - "engines": { - "node": ">= 4.0.0" - } - }, - "node_modules/solidity-docgen": { - "version": "0.6.0-beta.36", - "resolved": "https://registry.npmjs.org/solidity-docgen/-/solidity-docgen-0.6.0-beta.36.tgz", - "integrity": "sha512-f/I5G2iJgU1h0XrrjRD0hHMr7C10u276vYvm//rw1TzFcYQ4xTOyAoi9oNAHRU0JU4mY9eTuxdVc2zahdMuhaQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "handlebars": "^4.7.7", - "solidity-ast": "^0.4.38" - }, - "peerDependencies": { - "hardhat": "^2.8.0" - } - }, - "node_modules/sort-array": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/sort-array/-/sort-array-4.1.5.tgz", - "integrity": "sha512-Ya4peoS1fgFN42RN1REk2FgdNOeLIEMKFGJvs7VTP3OklF8+kl2SkpVliZ4tk/PurWsrWRsdNdU+tgyOBkB9sA==", - "dev": true, - "license": "MIT", - "dependencies": { - "array-back": "^5.0.0", - "typical": "^6.0.1" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/sort-array/node_modules/array-back": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-5.0.0.tgz", - "integrity": "sha512-kgVWwJReZWmVuWOQKEOohXKJX+nD02JAZ54D1RRWlv8L0NebauKAaFxACKzB74RTclt1+WNz5KHaLRDAPZbDEw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - } - }, - "node_modules/sort-array/node_modules/typical": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/typical/-/typical-6.0.1.tgz", - "integrity": "sha512-+g3NEp7fJLe9DPa1TArHm9QAA7YciZmWnfAqEaFrBihQ7epOv9i99rjtgb6Iz0wh3WuQDjsCTDfgRoGnmHN81A==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - } - }, - "node_modules/source-map": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.2.0.tgz", - "integrity": "sha512-CBdZ2oa/BHhS4xj5DlhjWNHcan57/5YuvfdLf17iVmIpd9KRm+DFLmC6nBNj+6Ua7Kt3TmOjDpQT1aTYOQtoUA==", - "dev": true, - "optional": true, - "peer": true, - "dependencies": { - "amdefine": ">=0.0.4" - }, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "dev": true, - "dependencies": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } - }, - "node_modules/source-map-support/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/spawndamnit": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/spawndamnit/-/spawndamnit-3.0.1.tgz", - "integrity": "sha512-MmnduQUuHCoFckZoWnXsTg7JaiLBJrKFj9UI2MbRPGaJeVpsLcVBu6P/IGZovziM/YBsellCmsprgNA+w0CzVg==", - "license": "SEE LICENSE IN LICENSE", - "dependencies": { - "cross-spawn": "^7.0.5", - "signal-exit": "^4.0.1" - } - }, - "node_modules/spawndamnit/node_modules/cross-spawn": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", - "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", - "license": "MIT", - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/spawndamnit/node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/spawndamnit/node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "license": "MIT", - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/spawndamnit/node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/spawndamnit/node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "license": "ISC", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==" - }, - "node_modules/stacktrace-parser": { - "version": "0.1.10", - "resolved": "https://registry.npmjs.org/stacktrace-parser/-/stacktrace-parser-0.1.10.tgz", - "integrity": "sha512-KJP1OCML99+8fhOHxwwzyWrlUuVX5GQ0ZpJTd1DFXhdkrvg1szxfHhawXUZ3g9TkXORQd4/WG68jMlQZ2p8wlg==", - "dev": true, - "dependencies": { - "type-fest": "^0.7.1" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/stacktrace-parser/node_modules/type-fest": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.7.1.tgz", - "integrity": "sha512-Ne2YiiGN8bmrmJJEuTWTLJR32nh/JdL1+PSicowtNb0WFpn59GK8/lfD61bVtzguz7b3PBt74nxpv/Pw5po5Rg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/statuses": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", - "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/stream-connect": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/stream-connect/-/stream-connect-1.0.2.tgz", - "integrity": "sha512-68Kl+79cE0RGKemKkhxTSg8+6AGrqBt+cbZAXevg2iJ6Y3zX4JhA/sZeGzLpxW9cXhmqAcE7KnJCisUmIUfnFQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "array-back": "^1.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/stream-connect/node_modules/array-back": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-1.0.4.tgz", - "integrity": "sha512-1WxbZvrmyhkNoeYcizokbmh5oiOCIfyvGtcqbK3Ls1v1fKcquzxnQSceOx6tzq7jmai2kFLWIpGND2cLhH6TPw==", - "dev": true, - "license": "MIT", - "dependencies": { - "typical": "^2.6.0" - }, - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/stream-connect/node_modules/typical": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/typical/-/typical-2.6.1.tgz", - "integrity": "sha512-ofhi8kjIje6npGozTip9Fr8iecmYfEbS06i0JnIg+rh51KakryWF4+jX8lLKZVhy6N+ID45WYSFCxPOdTWCzNg==", - "dev": true, - "license": "MIT" - }, - "node_modules/stream-via": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/stream-via/-/stream-via-1.0.4.tgz", - "integrity": "sha512-DBp0lSvX5G9KGRDTkR/R+a29H+Wk2xItOF+MpZLLNDWbEV9tGPnqLPxHEYjmiz8xGtJHRIqmI+hCjmNzqoA4nQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "dev": true, - "license": "MIT", - "dependencies": { - "safe-buffer": "~5.2.0" - } - }, - "node_modules/string-format": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/string-format/-/string-format-2.0.0.tgz", - "integrity": "sha512-bbEs3scLeYNXLecRRuk6uJxdXUSj6le/8rNPHChIJTn2V79aXVTR1EH2OH5zLKKoz0V02fOUKZZcw01pLUShZA==", - "dev": true, - "license": "WTFPL OR MIT", - "peer": true - }, - "node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/string-width-cjs": { - "name": "string-width", - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "license": "MIT", - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/string.prototype.trim": { - "version": "1.2.9", - "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.9.tgz", - "integrity": "sha512-klHuCNxiMZ8MlsOihJhJEBJAiMVqU3Z2nEXWfWnIqjN0gEFS9J9+IxKozWWtQGcgoa1WUZzLjKPTr4ZHNFTFxw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.0", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/string.prototype.trimend": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.8.tgz", - "integrity": "sha512-p73uL5VCHCO2BZZ6krwwQE3kCzM7NKmis8S//xEC6fQonchbum4eP6kR4DLEjQFO3Wnj3Fuo8NM0kOSjVdHjZQ==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-object-atoms": "^1.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/string.prototype.trimstart": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.8.tgz", - "integrity": "sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-ansi-cjs": { - "name": "strip-ansi", - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/strip-hex-prefix": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/strip-hex-prefix/-/strip-hex-prefix-1.0.0.tgz", - "integrity": "sha512-q8d4ue7JGEiVcypji1bALTos+0pWtyGlivAWyPuTkHzuTCJqrK9sWxYQZUq6Nq3cuyv3bm734IhHvHtGGURU6A==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "is-hex-prefixed": "1.0.0" - }, - "engines": { - "node": ">=6.5.0", - "npm": ">=3" - } - }, - "node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/sync-request": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/sync-request/-/sync-request-6.1.0.tgz", - "integrity": "sha512-8fjNkrNlNCrVc/av+Jn+xxqfCjYaBoHqCsDz6mt030UMxJGr+GSfCV1dQt2gRtlL63+VPidwDVLr7V2OcTSdRw==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "http-response-object": "^3.0.1", - "sync-rpc": "^1.2.1", - "then-request": "^6.0.0" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/sync-rpc": { - "version": "1.3.6", - "resolved": "https://registry.npmjs.org/sync-rpc/-/sync-rpc-1.3.6.tgz", - "integrity": "sha512-J8jTXuZzRlvU7HemDgHi3pGnh/rkoqR/OZSjhTyyZrEkkYQbk7Z33AXp37mkPfPpfdOuj7Ex3H/TJM1z48uPQw==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "get-port": "^3.1.0" - } - }, - "node_modules/table": { - "version": "6.9.0", - "resolved": "https://registry.npmjs.org/table/-/table-6.9.0.tgz", - "integrity": "sha512-9kY+CygyYM6j02t5YFHbNz2FN5QmYGv9zAjVp4lCDjlCw7amdckXlEt/bjMhUIfj4ThGRE4gCUH5+yGnNuPo5A==", - "dev": true, - "license": "BSD-3-Clause", - "peer": true, - "dependencies": { - "ajv": "^8.0.1", - "lodash.truncate": "^4.4.2", - "slice-ansi": "^4.0.0", - "string-width": "^4.2.3", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=10.0.0" - } - }, - "node_modules/table-layout": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/table-layout/-/table-layout-1.0.2.tgz", - "integrity": "sha512-qd/R7n5rQTRFi+Zf2sk5XVVd9UQl6ZkduPFC3S7WEGJAmetDTjY3qPN50eSKzwuzEyQKy5TN2TiZdkIjos2L6A==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "array-back": "^4.0.1", - "deep-extend": "~0.6.0", - "typical": "^5.2.0", - "wordwrapjs": "^4.0.0" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/table-layout/node_modules/array-back": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-4.0.2.tgz", - "integrity": "sha512-NbdMezxqf94cnNfWLL7V/im0Ub+Anbb0IoZhvzie8+4HJ4nMQuzHuy49FkGYCJK2yAloZ3meiB6AVMClbrI1vg==", - "dev": true, - "license": "MIT", - "peer": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/table-layout/node_modules/typical": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/typical/-/typical-5.2.0.tgz", - "integrity": "sha512-dvdQgNDNJo+8B2uBQoqdb11eUCE1JQXhvjC/CZtgvZseVd5TYMXnq0+vuUemXbd/Se29cTaUuPX3YIc2xgbvIg==", - "dev": true, - "license": "MIT", - "peer": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/temp-path": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/temp-path/-/temp-path-1.0.0.tgz", - "integrity": "sha512-TvmyH7kC6ZVTYkqCODjJIbgvu0FKiwQpZ4D1aknE7xpcDf/qEOB8KZEK5ef2pfbVoiBhNWs3yx4y+ESMtNYmlg==", - "dev": true, - "license": "MIT" - }, - "node_modules/term-size": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/term-size/-/term-size-2.2.1.tgz", - "integrity": "sha512-wK0Ri4fOGjv/XPy8SBHZChl8CM7uMc5VML7SqiQ0zG7+J5Vr+RMQDoHa2CNT6KHUnTGIXH34UDMkPzAUyapBZg==", - "license": "MIT", - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/test-value": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/test-value/-/test-value-3.0.0.tgz", - "integrity": "sha512-sVACdAWcZkSU9x7AOmJo5TqE+GyNJknHaHsMrR6ZnhjVlVN9Yx6FjHrsKZ3BjIpPCT68zYesPWkakrNupwfOTQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "array-back": "^2.0.0", - "typical": "^2.6.1" - }, - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/test-value/node_modules/array-back": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-2.0.0.tgz", - "integrity": "sha512-eJv4pLLufP3g5kcZry0j6WXpIbzYw9GUB4mVJZno9wfwiBxbizTnHCw3VJb07cBihbFX48Y7oSrW9y+gt4glyw==", - "dev": true, - "license": "MIT", - "dependencies": { - "typical": "^2.6.1" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/test-value/node_modules/typical": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/typical/-/typical-2.6.1.tgz", - "integrity": "sha512-ofhi8kjIje6npGozTip9Fr8iecmYfEbS06i0JnIg+rh51KakryWF4+jX8lLKZVhy6N+ID45WYSFCxPOdTWCzNg==", - "dev": true, - "license": "MIT" - }, - "node_modules/then-request": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/then-request/-/then-request-6.0.2.tgz", - "integrity": "sha512-3ZBiG7JvP3wbDzA9iNY5zJQcHL4jn/0BWtXIkagfz7QgOL/LqjCEOBQuJNZfu0XYnv5JhKh+cDxCPM4ILrqruA==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "@types/concat-stream": "^1.6.0", - "@types/form-data": "0.0.33", - "@types/node": "^8.0.0", - "@types/qs": "^6.2.31", - "caseless": "~0.12.0", - "concat-stream": "^1.6.0", - "form-data": "^2.2.0", - "http-basic": "^8.1.1", - "http-response-object": "^3.0.1", - "promise": "^8.0.0", - "qs": "^6.4.0" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/then-request/node_modules/@types/node": { - "version": "8.10.66", - "resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.66.tgz", - "integrity": "sha512-tktOkFUA4kXx2hhhrB8bIFb5TbwzS4uOhKEmwiD+NoiL0qtP2OQ9mFldbgD4dV1djrlBYP6eBuQZiWjuHUpqFw==", - "dev": true, - "license": "MIT", - "peer": true - }, - "node_modules/then-request/node_modules/form-data": { - "version": "2.5.5", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.5.5.tgz", - "integrity": "sha512-jqdObeR2rxZZbPSGL+3VckHMYtu+f9//KXBsVny6JSX/pa38Fy+bGjuG8eW/H6USNQWhLi8Num++cU2yOCNz4A==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "es-set-tostringtag": "^2.1.0", - "hasown": "^2.0.2", - "mime-types": "^2.1.35", - "safe-buffer": "^5.2.1" - }, - "engines": { - "node": ">= 0.12" - } - }, - "node_modules/tinyglobby": { - "version": "0.2.15", - "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz", - "integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "fdir": "^6.5.0", - "picomatch": "^4.0.3" - }, - "engines": { - "node": ">=12.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/SuperchupuDev" - } - }, - "node_modules/tinyglobby/node_modules/fdir": { - "version": "6.5.0", - "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", - "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12.0.0" - }, - "peerDependencies": { - "picomatch": "^3 || ^4" - }, - "peerDependenciesMeta": { - "picomatch": { - "optional": true - } - } - }, - "node_modules/tinyglobby/node_modules/picomatch": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", - "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/tmp": { - "version": "0.0.33", - "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", - "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", - "dependencies": { - "os-tmpdir": "~1.0.2" - }, - "engines": { - "node": ">=0.6.0" - } - }, - "node_modules/to-buffer": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/to-buffer/-/to-buffer-1.2.2.tgz", - "integrity": "sha512-db0E3UJjcFhpDhAF4tLo03oli3pwl3dbnzXOUIlRKrp+ldk/VUxzpWYZENsw2SZiuBjHAk7DfB0VU7NKdpb6sw==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "isarray": "^2.0.5", - "safe-buffer": "^5.2.1", - "typed-array-buffer": "^1.0.3" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/toidentifier": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", - "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", - "dev": true, - "engines": { - "node": ">=0.6" - } - }, - "node_modules/tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" - }, - "node_modules/ts-command-line-args": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/ts-command-line-args/-/ts-command-line-args-2.5.1.tgz", - "integrity": "sha512-H69ZwTw3rFHb5WYpQya40YAX2/w7Ut75uUECbgBIsLmM+BNuYnxsltfyyLMxy6sEeKxgijLTnQtLd0nKd6+IYw==", - "dev": true, - "license": "ISC", - "peer": true, - "dependencies": { - "chalk": "^4.1.0", - "command-line-args": "^5.1.1", - "command-line-usage": "^6.1.0", - "string-format": "^2.0.0" - }, - "bin": { - "write-markdown": "dist/write-markdown.js" - } - }, - "node_modules/ts-command-line-args/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/ts-command-line-args/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/ts-command-line-args/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/ts-command-line-args/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, - "license": "MIT", - "peer": true - }, - "node_modules/ts-command-line-args/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "license": "MIT", - "peer": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/ts-command-line-args/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/ts-essentials": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/ts-essentials/-/ts-essentials-7.0.3.tgz", - "integrity": "sha512-8+gr5+lqO3G84KdiTSMRLtuyJ+nTBVRKuCrK4lidMPdVeEp0uqC875uE5NMcaA7YYMN7XsNiFQuMvasF8HT/xQ==", - "dev": true, - "license": "MIT", - "peer": true, - "peerDependencies": { - "typescript": ">=3.7.0" - } - }, - "node_modules/ts-node": { - "version": "10.9.2", - "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz", - "integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==", - "dev": true, - "peer": true, - "dependencies": { - "@cspotcode/source-map-support": "^0.8.0", - "@tsconfig/node10": "^1.0.7", - "@tsconfig/node12": "^1.0.7", - "@tsconfig/node14": "^1.0.0", - "@tsconfig/node16": "^1.0.2", - "acorn": "^8.4.1", - "acorn-walk": "^8.1.1", - "arg": "^4.1.0", - "create-require": "^1.1.0", - "diff": "^4.0.1", - "make-error": "^1.1.1", - "v8-compile-cache-lib": "^3.0.1", - "yn": "3.1.1" - }, - "bin": { - "ts-node": "dist/bin.js", - "ts-node-cwd": "dist/bin-cwd.js", - "ts-node-esm": "dist/bin-esm.js", - "ts-node-script": "dist/bin-script.js", - "ts-node-transpile-only": "dist/bin-transpile.js", - "ts-script": "dist/bin-script-deprecated.js" - }, - "peerDependencies": { - "@swc/core": ">=1.2.50", - "@swc/wasm": ">=1.2.50", - "@types/node": "*", - "typescript": ">=2.7" - }, - "peerDependenciesMeta": { - "@swc/core": { - "optional": true - }, - "@swc/wasm": { - "optional": true - } - } - }, - "node_modules/ts-node/node_modules/diff": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", - "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", - "dev": true, - "peer": true, - "engines": { - "node": ">=0.3.1" - } - }, - "node_modules/tslib": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.7.0.tgz", - "integrity": "sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA==", - "dev": true, - "license": "0BSD", - "peer": true - }, - "node_modules/tsort": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/tsort/-/tsort-0.0.1.tgz", - "integrity": "sha512-Tyrf5mxF8Ofs1tNoxA13lFeZ2Zrbd6cKbuH3V+MQ5sb6DtBj5FjrXVsRWT8YvNAQTqNoz66dz1WsbigI22aEnw==", - "dev": true - }, - "node_modules/type-check": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", - "integrity": "sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "prelude-ls": "~1.1.2" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/type-detect": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", - "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", - "engines": { - "node": ">=4" - } - }, - "node_modules/type-fest": { - "version": "0.21.3", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", - "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/typechain": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/typechain/-/typechain-8.3.2.tgz", - "integrity": "sha512-x/sQYr5w9K7yv3es7jo4KTX05CLxOf7TRWwoHlrjRh8H82G64g+k7VuWPJlgMo6qrjfCulOdfBjiaDtmhFYD/Q==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "@types/prettier": "^2.1.1", - "debug": "^4.3.1", - "fs-extra": "^7.0.0", - "glob": "7.1.7", - "js-sha3": "^0.8.0", - "lodash": "^4.17.15", - "mkdirp": "^1.0.4", - "prettier": "^2.3.1", - "ts-command-line-args": "^2.2.0", - "ts-essentials": "^7.0.1" - }, - "bin": { - "typechain": "dist/cli/cli.js" - }, - "peerDependencies": { - "typescript": ">=4.3.0" - } - }, - "node_modules/typechain/node_modules/fs-extra": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", - "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "graceful-fs": "^4.1.2", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" - }, - "engines": { - "node": ">=6 <7 || >=8" - } - }, - "node_modules/typechain/node_modules/glob": { - "version": "7.1.7", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.7.tgz", - "integrity": "sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==", - "deprecated": "Glob versions prior to v9 are no longer supported", - "dev": true, - "license": "ISC", - "peer": true, - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/typechain/node_modules/jsonfile": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", - "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", - "dev": true, - "license": "MIT", - "peer": true, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/typechain/node_modules/mkdirp": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", - "dev": true, - "license": "MIT", - "peer": true, - "bin": { - "mkdirp": "bin/cmd.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/typechain/node_modules/prettier": { - "version": "2.8.8", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", - "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", - "dev": true, - "license": "MIT", - "peer": true, - "bin": { - "prettier": "bin-prettier.js" - }, - "engines": { - "node": ">=10.13.0" - }, - "funding": { - "url": "https://github.com/prettier/prettier?sponsor=1" - } - }, - "node_modules/typechain/node_modules/universalify": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", - "dev": true, - "license": "MIT", - "peer": true, - "engines": { - "node": ">= 4.0.0" - } - }, - "node_modules/typed-array-buffer": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.3.tgz", - "integrity": "sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bound": "^1.0.3", - "es-errors": "^1.3.0", - "is-typed-array": "^1.1.14" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/typed-array-byte-length": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.1.tgz", - "integrity": "sha512-3iMJ9q0ao7WE9tWcaYKIptkNBuOIcZCCT0d4MRvuuH88fEoEH62IuQe0OtraD3ebQEoTRk8XCBoknUNc1Y67pw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.7", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-proto": "^1.0.3", - "is-typed-array": "^1.1.13" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/typed-array-byte-offset": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.2.tgz", - "integrity": "sha512-Ous0vodHa56FviZucS2E63zkgtgrACj7omjwd/8lTEMEPFFyjfixMZ1ZXenpgCFBBt4EC1J2XsyVS2gkG0eTFA==", - "dev": true, - "dependencies": { - "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.7", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-proto": "^1.0.3", - "is-typed-array": "^1.1.13" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/typed-array-length": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.6.tgz", - "integrity": "sha512-/OxDN6OtAk5KBpGb28T+HZc2M+ADtvRxXrKKbUwtsLgdoxgX13hyy7ek6bFRl5+aBs2yZzB0c4CnQfAtVypW/g==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.7", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-proto": "^1.0.3", - "is-typed-array": "^1.1.13", - "possible-typed-array-names": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/typedarray": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", - "integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==", - "dev": true, - "license": "MIT", - "peer": true - }, - "node_modules/typescript": { - "version": "5.3.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz", - "integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==", - "dev": true, - "peer": true, - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=14.17" - } - }, - "node_modules/typical": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/typical/-/typical-4.0.0.tgz", - "integrity": "sha512-VAH4IvQ7BDFYglMd7BPRDfLgxZZX4O4TFcRDA6EN5X7erNJJq+McIEp8np9aVtxrCJ6qx4GTYVfOWNjcqwZgRw==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/uc.micro": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-2.1.0.tgz", - "integrity": "sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A==", - "dev": true, - "license": "MIT" - }, - "node_modules/uglify-js": { - "version": "3.17.4", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.17.4.tgz", - "integrity": "sha512-T9q82TJI9e/C1TAxYvfb16xO120tMVFZrGA3f9/P4424DNu6ypK103y0GPFVa17yotwSyZW5iYXgjYHkGrJW/g==", - "dev": true, - "optional": true, - "bin": { - "uglifyjs": "bin/uglifyjs" - }, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/unbox-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", - "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "has-bigints": "^1.0.2", - "has-symbols": "^1.0.3", - "which-boxed-primitive": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/underscore": { - "version": "1.13.6", - "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.13.6.tgz", - "integrity": "sha512-+A5Sja4HP1M08MaXya7p5LvjuM7K6q/2EaC0+iovj/wOcMsTzMvDFbasi/oSapiwOlt252IqsKqPjCl7huKS0A==", - "dev": true, - "license": "MIT" - }, - "node_modules/undici": { - "version": "5.28.3", - "resolved": "https://registry.npmjs.org/undici/-/undici-5.28.3.tgz", - "integrity": "sha512-3ItfzbrhDlINjaP0duwnNsKpDQk3acHI3gVJ1z4fmwMK31k5G9OVIAMLSIaP6w4FaGkaAkN6zaQO9LUvZ1t7VA==", - "dev": true, - "dependencies": { - "@fastify/busboy": "^2.0.0" - }, - "engines": { - "node": ">=14.0" - } - }, - "node_modules/undici-types": { - "version": "6.19.8", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", - "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", - "devOptional": true, - "license": "MIT" - }, - "node_modules/universalify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", - "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==", - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/unpipe": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", - "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", - "dev": true, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/uri-js": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", - "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", - "dependencies": { - "punycode": "^2.1.0" - } - }, - "node_modules/utf8": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/utf8/-/utf8-3.0.0.tgz", - "integrity": "sha512-E8VjFIQ/TyQgp+TZfS6l8yp/xWppSAHzidGiRrqe4bK4XP9pTRyKFgGJpO3SN7zdX4DeomTrwaseCHovfpFcqQ==", - "dev": true, - "license": "MIT", - "peer": true - }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", - "dev": true, - "license": "MIT" - }, - "node_modules/uuid": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", - "dev": true, - "bin": { - "uuid": "dist/bin/uuid" - } - }, - "node_modules/v8-compile-cache-lib": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", - "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", - "dev": true, - "peer": true - }, - "node_modules/walk-back": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/walk-back/-/walk-back-5.1.0.tgz", - "integrity": "sha512-Uhxps5yZcVNbLEAnb+xaEEMdgTXl9qAQDzKYejG2AZ7qPwRQ81lozY9ECDbjLPNWm7YsO1IK5rsP1KoQzXAcGA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12.17" - } - }, - "node_modules/web3-utils": { - "version": "1.10.4", - "resolved": "https://registry.npmjs.org/web3-utils/-/web3-utils-1.10.4.tgz", - "integrity": "sha512-tsu8FiKJLk2PzhDl9fXbGUWTkkVXYhtTA+SmEFkKft+9BgwLxfCRpU96sWv7ICC8zixBNd3JURVoiR3dUXgP8A==", - "dev": true, - "license": "LGPL-3.0", - "peer": true, - "dependencies": { - "@ethereumjs/util": "^8.1.0", - "bn.js": "^5.2.1", - "ethereum-bloom-filters": "^1.0.6", - "ethereum-cryptography": "^2.1.2", - "ethjs-unit": "0.1.6", - "number-to-bn": "1.7.0", - "randombytes": "^2.1.0", - "utf8": "3.0.0" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/web3-utils/node_modules/@ethereumjs/rlp": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@ethereumjs/rlp/-/rlp-4.0.1.tgz", - "integrity": "sha512-tqsQiBQDQdmPWE1xkkBq4rlSW5QZpLOUJ5RJh2/9fug+q9tnUhuZoVLk7s0scUIKTOzEtR72DFBXI4WiZcMpvw==", - "dev": true, - "license": "MPL-2.0", - "peer": true, - "bin": { - "rlp": "bin/rlp" - }, - "engines": { - "node": ">=14" - } - }, - "node_modules/web3-utils/node_modules/@ethereumjs/util": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/@ethereumjs/util/-/util-8.1.0.tgz", - "integrity": "sha512-zQ0IqbdX8FZ9aw11vP+dZkKDkS+kgIvQPHnSAXzP9pLu+Rfu3D3XEeLbicvoXJTYnhZiPmsZUxgdzXwNKxRPbA==", - "dev": true, - "license": "MPL-2.0", - "peer": true, - "dependencies": { - "@ethereumjs/rlp": "^4.0.1", - "ethereum-cryptography": "^2.0.0", - "micro-ftch": "^0.3.1" - }, - "engines": { - "node": ">=14" - } - }, - "node_modules/web3-utils/node_modules/@noble/curves": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.4.2.tgz", - "integrity": "sha512-TavHr8qycMChk8UwMld0ZDRvatedkzWfH8IiaeGCfymOP5i0hSCozz9vHOL0nkwk7HRMlFnAiKpS2jrUmSybcw==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "@noble/hashes": "1.4.0" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/web3-utils/node_modules/@noble/hashes": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.4.0.tgz", - "integrity": "sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==", - "dev": true, - "license": "MIT", - "peer": true, - "engines": { - "node": ">= 16" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/web3-utils/node_modules/ethereum-cryptography": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-2.2.1.tgz", - "integrity": "sha512-r/W8lkHSiTLxUxW8Rf3u4HGB0xQweG2RyETjywylKZSzLWoWAijRz8WCuOtJ6wah+avllXBqZuk29HCCvhEIRg==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "@noble/curves": "1.4.2", - "@noble/hashes": "1.4.0", - "@scure/bip32": "1.4.0", - "@scure/bip39": "1.3.0" - } - }, - "node_modules/webidl-conversions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" - }, - "node_modules/whatwg-url": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", - "dependencies": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } - }, - "node_modules/which": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", - "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "which": "bin/which" - } - }, - "node_modules/which-boxed-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", - "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", - "dev": true, - "dependencies": { - "is-bigint": "^1.0.1", - "is-boolean-object": "^1.1.0", - "is-number-object": "^1.0.4", - "is-string": "^1.0.5", - "is-symbol": "^1.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/which-typed-array": { - "version": "1.1.19", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.19.tgz", - "integrity": "sha512-rEvr90Bck4WZt9HHFC4DJMsjvu7x+r6bImz0/BrbWb7A2djJ8hnZMrWnHo9F8ssv0OMErasDhftrfROTyqSDrw==", - "dev": true, - "license": "MIT", - "dependencies": { - "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.8", - "call-bound": "^1.0.4", - "for-each": "^0.3.5", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "has-tostringtag": "^1.0.2" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/widest-line": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-3.1.0.tgz", - "integrity": "sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg==", - "dev": true, - "dependencies": { - "string-width": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/word-wrap": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", - "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", - "dev": true, - "license": "MIT", - "peer": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/wordwrap": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", - "integrity": "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==", - "dev": true - }, - "node_modules/wordwrapjs": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/wordwrapjs/-/wordwrapjs-4.0.1.tgz", - "integrity": "sha512-kKlNACbvHrkpIw6oPeYDSmdCTu2hdMHoyXLTcUKala++lx5Y+wjJ/e474Jqv5abnVmwxw08DiTuHmw69lJGksA==", - "dev": true, - "license": "MIT", - "peer": true, - "dependencies": { - "reduce-flatten": "^2.0.0", - "typical": "^5.2.0" - }, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/wordwrapjs/node_modules/typical": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/typical/-/typical-5.2.0.tgz", - "integrity": "sha512-dvdQgNDNJo+8B2uBQoqdb11eUCE1JQXhvjC/CZtgvZseVd5TYMXnq0+vuUemXbd/Se29cTaUuPX3YIc2xgbvIg==", - "dev": true, - "license": "MIT", - "peer": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/workerpool": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.2.1.tgz", - "integrity": "sha512-ILEIE97kDZvF9Wb9f6h5aXK4swSlKGUcOEGiIYb2OOu/IrDU9iwj0fD//SsA6E5ibwJxpEvhullJY4Sl4GcpAw==", - "dev": true - }, - "node_modules/wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/wrap-ansi-cjs": { - "name": "wrap-ansi", - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/wrap-ansi-cjs/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/wrap-ansi-cjs/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/wrap-ansi-cjs/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, - "license": "MIT" - }, - "node_modules/wrap-ansi/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/wrap-ansi/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/wrap-ansi/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" - }, - "node_modules/ws": { - "version": "8.17.1", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.17.1.tgz", - "integrity": "sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ==", - "dev": true, - "license": "MIT", - "peer": true, - "engines": { - "node": ">=10.0.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": ">=5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } - } - }, - "node_modules/xmlcreate": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/xmlcreate/-/xmlcreate-2.0.4.tgz", - "integrity": "sha512-nquOebG4sngPmGPICTS5EnxqhKbCmz5Ox5hsszI2T6U5qdrJizBc+0ilYSEjTSzU0yZcmvppztXe/5Al5fUwdg==", - "dev": true, - "license": "Apache-2.0" - }, - "node_modules/y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "dev": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/yaml": { - "version": "1.10.2", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", - "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==", - "engines": { - "node": ">= 6" - } - }, - "node_modules/yargs": { - "version": "16.2.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", - "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", - "dev": true, - "dependencies": { - "cliui": "^7.0.2", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.0", - "y18n": "^5.0.5", - "yargs-parser": "^20.2.2" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/yargs-parser": { - "version": "20.2.4", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.4.tgz", - "integrity": "sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA==", - "dev": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/yargs-unparser": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-2.0.0.tgz", - "integrity": "sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==", - "dev": true, - "dependencies": { - "camelcase": "^6.0.0", - "decamelize": "^4.0.0", - "flat": "^5.0.2", - "is-plain-obj": "^2.1.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/yn": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", - "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", - "dev": true, - "peer": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - } - }, - "dependencies": { - "@adraffy/ens-normalize": { - "version": "1.10.1", - "resolved": "https://registry.npmjs.org/@adraffy/ens-normalize/-/ens-normalize-1.10.1.tgz", - "integrity": "sha512-96Z2IP3mYmF1Xg2cDm8f1gWGf/HUVedQ3FMifV4kG/PQ4yEP51xDtRAEfhVNt5f/uzpNkZHwWQuUcu6D6K+Ekw==", - "dev": true, - "peer": true - }, - "@arbitrum/nitro-contracts": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@arbitrum/nitro-contracts/-/nitro-contracts-3.0.0.tgz", - "integrity": "sha512-7VzNW9TxvrX9iONDDsi7AZlEUPa6z+cjBkB4Mxlnog9VQZAapRC3CdRXyUzHnBYmUhRzyNJdyxkWPw59QGcLmA==", - "requires": { - "@offchainlabs/upgrade-executor": "1.1.0-beta.0", - "@openzeppelin/contracts": "4.7.3", - "@openzeppelin/contracts-upgradeable": "4.7.3", - "patch-package": "^6.4.7", - "solady": "0.0.182" - }, - "dependencies": { - "@openzeppelin/contracts": { - "version": "4.7.3", - "resolved": "https://registry.npmjs.org/@openzeppelin/contracts/-/contracts-4.7.3.tgz", - "integrity": "sha512-dGRS0agJzu8ybo44pCIf3xBaPQN/65AIXNgK8+4gzKd5kbvlqyxryUYVLJv7fK98Seyd2hDZzVEHSWAh0Bt1Yw==" - }, - "@openzeppelin/contracts-upgradeable": { - "version": "4.7.3", - "resolved": "https://registry.npmjs.org/@openzeppelin/contracts-upgradeable/-/contracts-upgradeable-4.7.3.tgz", - "integrity": "sha512-+wuegAMaLcZnLCJIvrVUDzA9z/Wp93f0Dla/4jJvIhijRrPabjQbZe6fWiECLaJyfn5ci9fqf9vTw3xpQOad2A==" - } - } - }, - "@babel/parser": { - "version": "7.24.8", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.24.8.tgz", - "integrity": "sha512-WzfbgXOkGzZiXXCqk43kKwZjzwx4oulxZi3nq2TYL9mOjQv6kYwul9mz6ID36njuL7Xkp6nJEfok848Zj10j/w==", - "dev": true - }, - "@babel/runtime": { - "version": "7.28.4", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.28.4.tgz", - "integrity": "sha512-Q/N6JNWvIvPnLDvjlE1OUBLPQHH6l3CltCEsHIujp45zQUSSh8K+gHnaEX45yAT1nyngnINhvWtzN+Nb9D8RAQ==" - }, - "@chainlink/contracts": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/@chainlink/contracts/-/contracts-1.5.0.tgz", - "integrity": "sha512-1fGJwjvivqAxvVOTqZUEXGR54CATtg0vjcXgSIk4Cfoad2nUhSG/qaWHXjLg1CkNTeOoteoxGQcpP/HiA5HsUA==", - "requires": { - "@arbitrum/nitro-contracts": "3.0.0", - "@changesets/cli": "^2.29.6", - "@changesets/get-github-info": "^0.6.0", - "@eslint/eslintrc": "^3.3.1", - "@eth-optimism/contracts": "0.6.0", - "@openzeppelin/contracts-4.7.3": "npm:@openzeppelin/contracts@4.7.3", - "@openzeppelin/contracts-4.8.3": "npm:@openzeppelin/contracts@4.8.3", - "@openzeppelin/contracts-4.9.6": "npm:@openzeppelin/contracts@4.9.6", - "@openzeppelin/contracts-5.0.2": "npm:@openzeppelin/contracts@5.0.2", - "@openzeppelin/contracts-5.1.0": "npm:@openzeppelin/contracts@5.1.0", - "@openzeppelin/contracts-upgradeable": "4.9.6", - "@scroll-tech/contracts": "2.0.0", - "@zksync/contracts": "github:matter-labs/era-contracts#446d391d34bdb48255d5f8fef8a8248925fc98b9", - "semver": "^7.7.2" - }, - "dependencies": { - "@eth-optimism/contracts": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/@eth-optimism/contracts/-/contracts-0.6.0.tgz", - "integrity": "sha512-vQ04wfG9kMf1Fwy3FEMqH2QZbgS0gldKhcBeBUPfO8zu68L61VI97UDXmsMQXzTsEAxK8HnokW3/gosl4/NW3w==", - "requires": { - "@eth-optimism/core-utils": "0.12.0", - "@ethersproject/abstract-provider": "^5.7.0", - "@ethersproject/abstract-signer": "^5.7.0" - } - }, - "ethers": { - "version": "5.7.2", - "resolved": "https://registry.npmjs.org/ethers/-/ethers-5.7.2.tgz", - "integrity": "sha512-wswUsmWo1aOK8rR7DIKiWSw9DbLWe6x98Jrn8wcTflTVvaXhAMaB5zGAXy0GYQEQp9iO1iSHWVyARQm11zUtyg==", - "peer": true, - "requires": { - "@ethersproject/abi": "5.7.0", - "@ethersproject/abstract-provider": "5.7.0", - "@ethersproject/abstract-signer": "5.7.0", - "@ethersproject/address": "5.7.0", - "@ethersproject/base64": "5.7.0", - "@ethersproject/basex": "5.7.0", - "@ethersproject/bignumber": "5.7.0", - "@ethersproject/bytes": "5.7.0", - "@ethersproject/constants": "5.7.0", - "@ethersproject/contracts": "5.7.0", - "@ethersproject/hash": "5.7.0", - "@ethersproject/hdnode": "5.7.0", - "@ethersproject/json-wallets": "5.7.0", - "@ethersproject/keccak256": "5.7.0", - "@ethersproject/logger": "5.7.0", - "@ethersproject/networks": "5.7.1", - "@ethersproject/pbkdf2": "5.7.0", - "@ethersproject/properties": "5.7.0", - "@ethersproject/providers": "5.7.2", - "@ethersproject/random": "5.7.0", - "@ethersproject/rlp": "5.7.0", - "@ethersproject/sha2": "5.7.0", - "@ethersproject/signing-key": "5.7.0", - "@ethersproject/solidity": "5.7.0", - "@ethersproject/strings": "5.7.0", - "@ethersproject/transactions": "5.7.0", - "@ethersproject/units": "5.7.0", - "@ethersproject/wallet": "5.7.0", - "@ethersproject/web": "5.7.1", - "@ethersproject/wordlists": "5.7.0" - } - }, - "semver": { - "version": "7.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", - "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==" - } - } - }, - "@chainlink/contracts-ccip": { - "version": "1.6.2", - "resolved": "https://registry.npmjs.org/@chainlink/contracts-ccip/-/contracts-ccip-1.6.2.tgz", - "integrity": "sha512-dHAOxhpTo9Dp1S5wFeSEN3hV9t2gy7iCXNdnZxmskD+gRVb7qGpTqoXPXXu8qEf2zVmRsrs/nSbrTU/UpqfHQg==", - "requires": { - "@chainlink/contracts": "1.5.0", - "@changesets/cli": "^2.29.5", - "@changesets/get-github-info": "^0.6.0", - "@openzeppelin/contracts-4.8.3": "npm:@openzeppelin/contracts@4.8.3", - "@openzeppelin/contracts-5.0.2": "npm:@openzeppelin/contracts@5.0.2", - "semver": "^7.7.2" - }, - "dependencies": { - "semver": { - "version": "7.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", - "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==" - } - } - }, - "@changesets/apply-release-plan": { - "version": "7.0.13", - "resolved": "https://registry.npmjs.org/@changesets/apply-release-plan/-/apply-release-plan-7.0.13.tgz", - "integrity": "sha512-BIW7bofD2yAWoE8H4V40FikC+1nNFEKBisMECccS16W1rt6qqhNTBDmIw5HaqmMgtLNz9e7oiALiEUuKrQ4oHg==", - "requires": { - "@changesets/config": "^3.1.1", - "@changesets/get-version-range-type": "^0.4.0", - "@changesets/git": "^3.0.4", - "@changesets/should-skip-package": "^0.1.2", - "@changesets/types": "^6.1.0", - "@manypkg/get-packages": "^1.1.3", - "detect-indent": "^6.0.0", - "fs-extra": "^7.0.1", - "lodash.startcase": "^4.4.0", - "outdent": "^0.5.0", - "prettier": "^2.7.1", - "resolve-from": "^5.0.0", - "semver": "^7.5.3" - }, - "dependencies": { - "fs-extra": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", - "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", - "requires": { - "graceful-fs": "^4.1.2", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" - } - }, - "jsonfile": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", - "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", - "requires": { - "graceful-fs": "^4.1.6" - } - }, - "prettier": { - "version": "2.8.8", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", - "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==" - }, - "resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==" - }, - "semver": { - "version": "7.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", - "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==" - }, - "universalify": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" - } - } - }, - "@changesets/assemble-release-plan": { - "version": "6.0.9", - "resolved": "https://registry.npmjs.org/@changesets/assemble-release-plan/-/assemble-release-plan-6.0.9.tgz", - "integrity": "sha512-tPgeeqCHIwNo8sypKlS3gOPmsS3wP0zHt67JDuL20P4QcXiw/O4Hl7oXiuLnP9yg+rXLQ2sScdV1Kkzde61iSQ==", - "requires": { - "@changesets/errors": "^0.2.0", - "@changesets/get-dependents-graph": "^2.1.3", - "@changesets/should-skip-package": "^0.1.2", - "@changesets/types": "^6.1.0", - "@manypkg/get-packages": "^1.1.3", - "semver": "^7.5.3" - }, - "dependencies": { - "semver": { - "version": "7.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", - "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==" - } - } - }, - "@changesets/changelog-git": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/@changesets/changelog-git/-/changelog-git-0.2.1.tgz", - "integrity": "sha512-x/xEleCFLH28c3bQeQIyeZf8lFXyDFVn1SgcBiR2Tw/r4IAWlk1fzxCEZ6NxQAjF2Nwtczoen3OA2qR+UawQ8Q==", - "requires": { - "@changesets/types": "^6.1.0" - } - }, - "@changesets/cli": { - "version": "2.29.7", - "resolved": "https://registry.npmjs.org/@changesets/cli/-/cli-2.29.7.tgz", - "integrity": "sha512-R7RqWoaksyyKXbKXBTbT4REdy22yH81mcFK6sWtqSanxUCbUi9Uf+6aqxZtDQouIqPdem2W56CdxXgsxdq7FLQ==", - "requires": { - "@changesets/apply-release-plan": "^7.0.13", - "@changesets/assemble-release-plan": "^6.0.9", - "@changesets/changelog-git": "^0.2.1", - "@changesets/config": "^3.1.1", - "@changesets/errors": "^0.2.0", - "@changesets/get-dependents-graph": "^2.1.3", - "@changesets/get-release-plan": "^4.0.13", - "@changesets/git": "^3.0.4", - "@changesets/logger": "^0.1.1", - "@changesets/pre": "^2.0.2", - "@changesets/read": "^0.6.5", - "@changesets/should-skip-package": "^0.1.2", - "@changesets/types": "^6.1.0", - "@changesets/write": "^0.4.0", - "@inquirer/external-editor": "^1.0.0", - "@manypkg/get-packages": "^1.1.3", - "ansi-colors": "^4.1.3", - "ci-info": "^3.7.0", - "enquirer": "^2.4.1", - "fs-extra": "^7.0.1", - "mri": "^1.2.0", - "p-limit": "^2.2.0", - "package-manager-detector": "^0.2.0", - "picocolors": "^1.1.0", - "resolve-from": "^5.0.0", - "semver": "^7.5.3", - "spawndamnit": "^3.0.1", - "term-size": "^2.1.0" - }, - "dependencies": { - "ci-info": { - "version": "3.9.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", - "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==" - }, - "fs-extra": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", - "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", - "requires": { - "graceful-fs": "^4.1.2", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" - } - }, - "jsonfile": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", - "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", - "requires": { - "graceful-fs": "^4.1.6" - } - }, - "p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "requires": { - "p-try": "^2.0.0" - } - }, - "p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==" - }, - "resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==" - }, - "semver": { - "version": "7.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", - "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==" - }, - "universalify": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" - } - } - }, - "@changesets/config": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/@changesets/config/-/config-3.1.1.tgz", - "integrity": "sha512-bd+3Ap2TKXxljCggI0mKPfzCQKeV/TU4yO2h2C6vAihIo8tzseAn2e7klSuiyYYXvgu53zMN1OeYMIQkaQoWnA==", - "requires": { - "@changesets/errors": "^0.2.0", - "@changesets/get-dependents-graph": "^2.1.3", - "@changesets/logger": "^0.1.1", - "@changesets/types": "^6.1.0", - "@manypkg/get-packages": "^1.1.3", - "fs-extra": "^7.0.1", - "micromatch": "^4.0.8" - }, - "dependencies": { - "fs-extra": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", - "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", - "requires": { - "graceful-fs": "^4.1.2", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" - } - }, - "jsonfile": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", - "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", - "requires": { - "graceful-fs": "^4.1.6" - } - }, - "universalify": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" - } - } - }, - "@changesets/errors": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/@changesets/errors/-/errors-0.2.0.tgz", - "integrity": "sha512-6BLOQUscTpZeGljvyQXlWOItQyU71kCdGz7Pi8H8zdw6BI0g3m43iL4xKUVPWtG+qrrL9DTjpdn8eYuCQSRpow==", - "requires": { - "extendable-error": "^0.1.5" - } - }, - "@changesets/get-dependents-graph": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/@changesets/get-dependents-graph/-/get-dependents-graph-2.1.3.tgz", - "integrity": "sha512-gphr+v0mv2I3Oxt19VdWRRUxq3sseyUpX9DaHpTUmLj92Y10AGy+XOtV+kbM6L/fDcpx7/ISDFK6T8A/P3lOdQ==", - "requires": { - "@changesets/types": "^6.1.0", - "@manypkg/get-packages": "^1.1.3", - "picocolors": "^1.1.0", - "semver": "^7.5.3" - }, - "dependencies": { - "semver": { - "version": "7.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", - "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==" - } - } - }, - "@changesets/get-github-info": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/@changesets/get-github-info/-/get-github-info-0.6.0.tgz", - "integrity": "sha512-v/TSnFVXI8vzX9/w3DU2Ol+UlTZcu3m0kXTjTT4KlAdwSvwutcByYwyYn9hwerPWfPkT2JfpoX0KgvCEi8Q/SA==", - "requires": { - "dataloader": "^1.4.0", - "node-fetch": "^2.5.0" - } - }, - "@changesets/get-release-plan": { - "version": "4.0.13", - "resolved": "https://registry.npmjs.org/@changesets/get-release-plan/-/get-release-plan-4.0.13.tgz", - "integrity": "sha512-DWG1pus72FcNeXkM12tx+xtExyH/c9I1z+2aXlObH3i9YA7+WZEVaiHzHl03thpvAgWTRaH64MpfHxozfF7Dvg==", - "requires": { - "@changesets/assemble-release-plan": "^6.0.9", - "@changesets/config": "^3.1.1", - "@changesets/pre": "^2.0.2", - "@changesets/read": "^0.6.5", - "@changesets/types": "^6.1.0", - "@manypkg/get-packages": "^1.1.3" - } - }, - "@changesets/get-version-range-type": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/@changesets/get-version-range-type/-/get-version-range-type-0.4.0.tgz", - "integrity": "sha512-hwawtob9DryoGTpixy1D3ZXbGgJu1Rhr+ySH2PvTLHvkZuQ7sRT4oQwMh0hbqZH1weAooedEjRsbrWcGLCeyVQ==" - }, - "@changesets/git": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/@changesets/git/-/git-3.0.4.tgz", - "integrity": "sha512-BXANzRFkX+XcC1q/d27NKvlJ1yf7PSAgi8JG6dt8EfbHFHi4neau7mufcSca5zRhwOL8j9s6EqsxmT+s+/E6Sw==", - "requires": { - "@changesets/errors": "^0.2.0", - "@manypkg/get-packages": "^1.1.3", - "is-subdir": "^1.1.1", - "micromatch": "^4.0.8", - "spawndamnit": "^3.0.1" - } - }, - "@changesets/logger": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/@changesets/logger/-/logger-0.1.1.tgz", - "integrity": "sha512-OQtR36ZlnuTxKqoW4Sv6x5YIhOmClRd5pWsjZsddYxpWs517R0HkyiefQPIytCVh4ZcC5x9XaG8KTdd5iRQUfg==", - "requires": { - "picocolors": "^1.1.0" - } - }, - "@changesets/parse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/@changesets/parse/-/parse-0.4.1.tgz", - "integrity": "sha512-iwksMs5Bf/wUItfcg+OXrEpravm5rEd9Bf4oyIPL4kVTmJQ7PNDSd6MDYkpSJR1pn7tz/k8Zf2DhTCqX08Ou+Q==", - "requires": { - "@changesets/types": "^6.1.0", - "js-yaml": "^3.13.1" - }, - "dependencies": { - "argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "requires": { - "sprintf-js": "~1.0.2" - } - }, - "esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" - }, - "js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", - "requires": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - } - } - } - }, - "@changesets/pre": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@changesets/pre/-/pre-2.0.2.tgz", - "integrity": "sha512-HaL/gEyFVvkf9KFg6484wR9s0qjAXlZ8qWPDkTyKF6+zqjBe/I2mygg3MbpZ++hdi0ToqNUF8cjj7fBy0dg8Ug==", - "requires": { - "@changesets/errors": "^0.2.0", - "@changesets/types": "^6.1.0", - "@manypkg/get-packages": "^1.1.3", - "fs-extra": "^7.0.1" - }, - "dependencies": { - "fs-extra": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", - "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", - "requires": { - "graceful-fs": "^4.1.2", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" - } - }, - "jsonfile": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", - "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", - "requires": { - "graceful-fs": "^4.1.6" - } - }, - "universalify": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" - } - } - }, - "@changesets/read": { - "version": "0.6.5", - "resolved": "https://registry.npmjs.org/@changesets/read/-/read-0.6.5.tgz", - "integrity": "sha512-UPzNGhsSjHD3Veb0xO/MwvasGe8eMyNrR/sT9gR8Q3DhOQZirgKhhXv/8hVsI0QpPjR004Z9iFxoJU6in3uGMg==", - "requires": { - "@changesets/git": "^3.0.4", - "@changesets/logger": "^0.1.1", - "@changesets/parse": "^0.4.1", - "@changesets/types": "^6.1.0", - "fs-extra": "^7.0.1", - "p-filter": "^2.1.0", - "picocolors": "^1.1.0" - }, - "dependencies": { - "fs-extra": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", - "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", - "requires": { - "graceful-fs": "^4.1.2", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" - } - }, - "jsonfile": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", - "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", - "requires": { - "graceful-fs": "^4.1.6" - } - }, - "universalify": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" - } - } - }, - "@changesets/should-skip-package": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/@changesets/should-skip-package/-/should-skip-package-0.1.2.tgz", - "integrity": "sha512-qAK/WrqWLNCP22UDdBTMPH5f41elVDlsNyat180A33dWxuUDyNpg6fPi/FyTZwRriVjg0L8gnjJn2F9XAoF0qw==", - "requires": { - "@changesets/types": "^6.1.0", - "@manypkg/get-packages": "^1.1.3" - } - }, - "@changesets/types": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/@changesets/types/-/types-6.1.0.tgz", - "integrity": "sha512-rKQcJ+o1nKNgeoYRHKOS07tAMNd3YSN0uHaJOZYjBAgxfV7TUE7JE+z4BzZdQwb5hKaYbayKN5KrYV7ODb2rAA==" - }, - "@changesets/write": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/@changesets/write/-/write-0.4.0.tgz", - "integrity": "sha512-CdTLvIOPiCNuH71pyDu3rA+Q0n65cmAbXnwWH84rKGiFumFzkmHNT8KHTMEchcxN+Kl8I54xGUhJ7l3E7X396Q==", - "requires": { - "@changesets/types": "^6.1.0", - "fs-extra": "^7.0.1", - "human-id": "^4.1.1", - "prettier": "^2.7.1" - }, - "dependencies": { - "fs-extra": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", - "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", - "requires": { - "graceful-fs": "^4.1.2", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" - } - }, - "jsonfile": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", - "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", - "requires": { - "graceful-fs": "^4.1.6" - } - }, - "prettier": { - "version": "2.8.8", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", - "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==" - }, - "universalify": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" - } - } - }, - "@cspotcode/source-map-support": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", - "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", - "dev": true, - "peer": true, - "requires": { - "@jridgewell/trace-mapping": "0.3.9" - } - }, - "@eslint/eslintrc": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.1.tgz", - "integrity": "sha512-gtF186CXhIl1p4pJNGZw8Yc6RlshoePRvE0X91oPGb3vZ8pM3qOS9W9NGPat9LziaBV7XrJWGylNQXkGcnM3IQ==", - "requires": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^10.0.1", - "globals": "^14.0.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" - }, - "dependencies": { - "ajv": { - "version": "6.12.6", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", - "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", - "requires": { - "fast-deep-equal": "^3.1.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" - } - }, - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" - } - } - }, - "@eth-optimism/core-utils": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/@eth-optimism/core-utils/-/core-utils-0.12.0.tgz", - "integrity": "sha512-qW+7LZYCz7i8dRa7SRlUKIo1VBU8lvN0HeXCxJR+z+xtMzMQpPds20XJNCMclszxYQHkXY00fOT6GvFw9ZL6nw==", - "requires": { - "@ethersproject/abi": "^5.7.0", - "@ethersproject/abstract-provider": "^5.7.0", - "@ethersproject/address": "^5.7.0", - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/constants": "^5.7.0", - "@ethersproject/contracts": "^5.7.0", - "@ethersproject/hash": "^5.7.0", - "@ethersproject/keccak256": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "@ethersproject/providers": "^5.7.0", - "@ethersproject/rlp": "^5.7.0", - "@ethersproject/transactions": "^5.7.0", - "@ethersproject/web": "^5.7.0", - "bufio": "^1.0.7", - "chai": "^4.3.4" - } - }, - "@ethereumjs/rlp": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/@ethereumjs/rlp/-/rlp-5.0.2.tgz", - "integrity": "sha512-DziebCdg4JpGlEqEdGgXmjqcFoJi+JGulUXwEjsZGAscAQ7MyD/7LE/GVCP29vEQxKc7AAwjT3A2ywHp2xfoCA==", - "dev": true - }, - "@ethereumjs/util": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/@ethereumjs/util/-/util-9.1.0.tgz", - "integrity": "sha512-XBEKsYqLGXLah9PNJbgdkigthkG7TAGvlD/sH12beMXEyHDyigfcbdvHhmLyDWgDyOJn4QwiQUaF7yeuhnjdog==", - "dev": true, - "requires": { - "@ethereumjs/rlp": "^5.0.2", - "ethereum-cryptography": "^2.2.1" - }, - "dependencies": { - "@noble/curves": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.4.2.tgz", - "integrity": "sha512-TavHr8qycMChk8UwMld0ZDRvatedkzWfH8IiaeGCfymOP5i0hSCozz9vHOL0nkwk7HRMlFnAiKpS2jrUmSybcw==", - "dev": true, - "requires": { - "@noble/hashes": "1.4.0" - } - }, - "@noble/hashes": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.4.0.tgz", - "integrity": "sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==", - "dev": true - }, - "ethereum-cryptography": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-2.2.1.tgz", - "integrity": "sha512-r/W8lkHSiTLxUxW8Rf3u4HGB0xQweG2RyETjywylKZSzLWoWAijRz8WCuOtJ6wah+avllXBqZuk29HCCvhEIRg==", - "dev": true, - "requires": { - "@noble/curves": "1.4.2", - "@noble/hashes": "1.4.0", - "@scure/bip32": "1.4.0", - "@scure/bip39": "1.3.0" - } - } - } - }, - "@ethersproject/abi": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/abi/-/abi-5.7.0.tgz", - "integrity": "sha512-351ktp42TiRcYB3H1OP8yajPeAQstMW/yCFokj/AthP9bLHzQFPlOrxOcwYEDkUAICmOHljvN4K39OMTMUa9RA==", - "requires": { - "@ethersproject/address": "^5.7.0", - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/constants": "^5.7.0", - "@ethersproject/hash": "^5.7.0", - "@ethersproject/keccak256": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "@ethersproject/strings": "^5.7.0" - } - }, - "@ethersproject/abstract-provider": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/abstract-provider/-/abstract-provider-5.7.0.tgz", - "integrity": "sha512-R41c9UkchKCpAqStMYUpdunjo3pkEvZC3FAwZn5S5MGbXoMQOHIdHItezTETxAO5bevtMApSyEhn9+CHcDsWBw==", - "requires": { - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/networks": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "@ethersproject/transactions": "^5.7.0", - "@ethersproject/web": "^5.7.0" - } - }, - "@ethersproject/abstract-signer": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/abstract-signer/-/abstract-signer-5.7.0.tgz", - "integrity": "sha512-a16V8bq1/Cz+TGCkE2OPMTOUDLS3grCpdjoJCYNnVBbdYEMSgKrU0+B90s8b6H+ByYTBZN7a3g76jdIJi7UfKQ==", - "requires": { - "@ethersproject/abstract-provider": "^5.7.0", - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/properties": "^5.7.0" - } - }, - "@ethersproject/address": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/address/-/address-5.7.0.tgz", - "integrity": "sha512-9wYhYt7aghVGo758POM5nqcOMaE168Q6aRLJZwUmiqSrAungkG74gSSeKEIR7ukixesdRZGPgVqme6vmxs1fkA==", - "requires": { - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/keccak256": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/rlp": "^5.7.0" - } - }, - "@ethersproject/base64": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/base64/-/base64-5.7.0.tgz", - "integrity": "sha512-Dr8tcHt2mEbsZr/mwTPIQAf3Ai0Bks/7gTw9dSqk1mQvhW3XvRlmDJr/4n+wg1JmCl16NZue17CDh8xb/vZ0sQ==", - "requires": { - "@ethersproject/bytes": "^5.7.0" - } - }, - "@ethersproject/basex": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/basex/-/basex-5.7.0.tgz", - "integrity": "sha512-ywlh43GwZLv2Voc2gQVTKBoVQ1mti3d8HK5aMxsfu/nRDnMmNqaSJ3r3n85HBByT8OpoY96SXM1FogC533T4zw==", - "requires": { - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/properties": "^5.7.0" - } - }, - "@ethersproject/bignumber": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/bignumber/-/bignumber-5.7.0.tgz", - "integrity": "sha512-n1CAdIHRWjSucQO3MC1zPSVgV/6dy/fjL9pMrPP9peL+QxEg9wOsVqwD4+818B6LUEtaXzVHQiuivzRoxPxUGw==", - "requires": { - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "bn.js": "^5.2.1" - } - }, - "@ethersproject/bytes": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/bytes/-/bytes-5.7.0.tgz", - "integrity": "sha512-nsbxwgFXWh9NyYWo+U8atvmMsSdKJprTcICAkvbBffT75qDocbuggBU0SJiVK2MuTrp0q+xvLkTnGMPK1+uA9A==", - "requires": { - "@ethersproject/logger": "^5.7.0" - } - }, - "@ethersproject/constants": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/constants/-/constants-5.7.0.tgz", - "integrity": "sha512-DHI+y5dBNvkpYUMiRQyxRBYBefZkJfo70VUkUAsRjcPs47muV9evftfZ0PJVCXYbAiCgght0DtcF9srFQmIgWA==", - "requires": { - "@ethersproject/bignumber": "^5.7.0" - } - }, - "@ethersproject/contracts": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/contracts/-/contracts-5.7.0.tgz", - "integrity": "sha512-5GJbzEU3X+d33CdfPhcyS+z8MzsTrBGk/sc+G+59+tPa9yFkl6HQ9D6L0QMgNTA9q8dT0XKxxkyp883XsQvbbg==", - "requires": { - "@ethersproject/abi": "^5.7.0", - "@ethersproject/abstract-provider": "^5.7.0", - "@ethersproject/abstract-signer": "^5.7.0", - "@ethersproject/address": "^5.7.0", - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/constants": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "@ethersproject/transactions": "^5.7.0" - } - }, - "@ethersproject/hash": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/hash/-/hash-5.7.0.tgz", - "integrity": "sha512-qX5WrQfnah1EFnO5zJv1v46a8HW0+E5xuBBDTwMFZLuVTx0tbU2kkx15NqdjxecrLGatQN9FGQKpb1FKdHCt+g==", - "requires": { - "@ethersproject/abstract-signer": "^5.7.0", - "@ethersproject/address": "^5.7.0", - "@ethersproject/base64": "^5.7.0", - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/keccak256": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "@ethersproject/strings": "^5.7.0" - } - }, - "@ethersproject/hdnode": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/hdnode/-/hdnode-5.7.0.tgz", - "integrity": "sha512-OmyYo9EENBPPf4ERhR7oj6uAtUAhYGqOnIS+jE5pTXvdKBS99ikzq1E7Iv0ZQZ5V36Lqx1qZLeak0Ra16qpeOg==", - "peer": true, - "requires": { - "@ethersproject/abstract-signer": "^5.7.0", - "@ethersproject/basex": "^5.7.0", - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/pbkdf2": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "@ethersproject/sha2": "^5.7.0", - "@ethersproject/signing-key": "^5.7.0", - "@ethersproject/strings": "^5.7.0", - "@ethersproject/transactions": "^5.7.0", - "@ethersproject/wordlists": "^5.7.0" - } - }, - "@ethersproject/json-wallets": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/json-wallets/-/json-wallets-5.7.0.tgz", - "integrity": "sha512-8oee5Xgu6+RKgJTkvEMl2wDgSPSAQ9MB/3JYjFV9jlKvcYHUXZC+cQp0njgmxdHkYWn8s6/IqIZYm0YWCjO/0g==", - "peer": true, - "requires": { - "@ethersproject/abstract-signer": "^5.7.0", - "@ethersproject/address": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/hdnode": "^5.7.0", - "@ethersproject/keccak256": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/pbkdf2": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "@ethersproject/random": "^5.7.0", - "@ethersproject/strings": "^5.7.0", - "@ethersproject/transactions": "^5.7.0", - "aes-js": "3.0.0", - "scrypt-js": "3.0.1" - }, - "dependencies": { - "aes-js": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/aes-js/-/aes-js-3.0.0.tgz", - "integrity": "sha512-H7wUZRn8WpTq9jocdxQ2c8x2sKo9ZVmzfRE13GiNJXfp7NcKYEdvl3vspKjXox6RIG2VtaRe4JFvxG4rqp2Zuw==", - "peer": true - } - } - }, - "@ethersproject/keccak256": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/keccak256/-/keccak256-5.7.0.tgz", - "integrity": "sha512-2UcPboeL/iW+pSg6vZ6ydF8tCnv3Iu/8tUmLLzWWGzxWKFFqOBQFLo6uLUv6BDrLgCDfN28RJ/wtByx+jZ4KBg==", - "requires": { - "@ethersproject/bytes": "^5.7.0", - "js-sha3": "0.8.0" - } - }, - "@ethersproject/logger": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/logger/-/logger-5.7.0.tgz", - "integrity": "sha512-0odtFdXu/XHtjQXJYA3u9G0G8btm0ND5Cu8M7i5vhEcE8/HmF4Lbdqanwyv4uQTr2tx6b7fQRmgLrsnpQlmnig==" - }, - "@ethersproject/networks": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/@ethersproject/networks/-/networks-5.7.1.tgz", - "integrity": "sha512-n/MufjFYv3yFcUyfhnXotyDlNdFb7onmkSy8aQERi2PjNcnWQ66xXxa3XlS8nCcA8aJKJjIIMNJTC7tu80GwpQ==", - "requires": { - "@ethersproject/logger": "^5.7.0" - } - }, - "@ethersproject/pbkdf2": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/pbkdf2/-/pbkdf2-5.7.0.tgz", - "integrity": "sha512-oR/dBRZR6GTyaofd86DehG72hY6NpAjhabkhxgr3X2FpJtJuodEl2auADWBZfhDHgVCbu3/H/Ocq2uC6dpNjjw==", - "peer": true, - "requires": { - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/sha2": "^5.7.0" - } - }, - "@ethersproject/properties": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/properties/-/properties-5.7.0.tgz", - "integrity": "sha512-J87jy8suntrAkIZtecpxEPxY//szqr1mlBaYlQ0r4RCaiD2hjheqF9s1LVE8vVuJCXisjIP+JgtK/Do54ej4Sw==", - "requires": { - "@ethersproject/logger": "^5.7.0" - } - }, - "@ethersproject/providers": { - "version": "5.7.2", - "resolved": "https://registry.npmjs.org/@ethersproject/providers/-/providers-5.7.2.tgz", - "integrity": "sha512-g34EWZ1WWAVgr4aptGlVBF8mhl3VWjv+8hoAnzStu8Ah22VHBsuGzP17eb6xDVRzw895G4W7vvx60lFFur/1Rg==", - "requires": { - "@ethersproject/abstract-provider": "^5.7.0", - "@ethersproject/abstract-signer": "^5.7.0", - "@ethersproject/address": "^5.7.0", - "@ethersproject/base64": "^5.7.0", - "@ethersproject/basex": "^5.7.0", - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/constants": "^5.7.0", - "@ethersproject/hash": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/networks": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "@ethersproject/random": "^5.7.0", - "@ethersproject/rlp": "^5.7.0", - "@ethersproject/sha2": "^5.7.0", - "@ethersproject/strings": "^5.7.0", - "@ethersproject/transactions": "^5.7.0", - "@ethersproject/web": "^5.7.0", - "bech32": "1.1.4", - "ws": "7.4.6" - }, - "dependencies": { - "ws": { - "version": "7.4.6", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.4.6.tgz", - "integrity": "sha512-YmhHDO4MzaDLB+M9ym/mDA5z0naX8j7SIlT8f8z+I0VtzsRbekxEutHSme7NPS2qE8StCYQNUnfWdXta/Yu85A==", - "requires": {} - } - } - }, - "@ethersproject/random": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/random/-/random-5.7.0.tgz", - "integrity": "sha512-19WjScqRA8IIeWclFme75VMXSBvi4e6InrUNuaR4s5pTF2qNhcGdCUwdxUVGtDDqC00sDLCO93jPQoDUH4HVmQ==", - "requires": { - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/logger": "^5.7.0" - } - }, - "@ethersproject/rlp": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/rlp/-/rlp-5.7.0.tgz", - "integrity": "sha512-rBxzX2vK8mVF7b0Tol44t5Tb8gomOHkj5guL+HhzQ1yBh/ydjGnpw6at+X6Iw0Kp3OzzzkcKp8N9r0W4kYSs9w==", - "requires": { - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/logger": "^5.7.0" - } - }, - "@ethersproject/sha2": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/sha2/-/sha2-5.7.0.tgz", - "integrity": "sha512-gKlH42riwb3KYp0reLsFTokByAKoJdgFCwI+CCiX/k+Jm2mbNs6oOaCjYQSlI1+XBVejwH2KrmCbMAT/GnRDQw==", - "requires": { - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "hash.js": "1.1.7" - } - }, - "@ethersproject/signing-key": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/signing-key/-/signing-key-5.7.0.tgz", - "integrity": "sha512-MZdy2nL3wO0u7gkB4nA/pEf8lu1TlFswPNmy8AiYkfKTdO6eXBJyUdmHO/ehm/htHw9K/qF8ujnTyUAD+Ry54Q==", - "requires": { - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "bn.js": "^5.2.1", - "elliptic": "6.5.4", - "hash.js": "1.1.7" - } - }, - "@ethersproject/solidity": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/solidity/-/solidity-5.7.0.tgz", - "integrity": "sha512-HmabMd2Dt/raavyaGukF4XxizWKhKQ24DoLtdNbBmNKUOPqwjsKQSdV9GQtj9CBEea9DlzETlVER1gYeXXBGaA==", - "peer": true, - "requires": { - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/keccak256": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/sha2": "^5.7.0", - "@ethersproject/strings": "^5.7.0" - } - }, - "@ethersproject/strings": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/strings/-/strings-5.7.0.tgz", - "integrity": "sha512-/9nu+lj0YswRNSH0NXYqrh8775XNyEdUQAuf3f+SmOrnVewcJ5SBNAjF7lpgehKi4abvNNXyf+HX86czCdJ8Mg==", - "requires": { - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/constants": "^5.7.0", - "@ethersproject/logger": "^5.7.0" - } - }, - "@ethersproject/transactions": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/transactions/-/transactions-5.7.0.tgz", - "integrity": "sha512-kmcNicCp1lp8qanMTC3RIikGgoJ80ztTyvtsFvCYpSCfkjhD0jZ2LOrnbcuxuToLIUYYf+4XwD1rP+B/erDIhQ==", - "requires": { - "@ethersproject/address": "^5.7.0", - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/constants": "^5.7.0", - "@ethersproject/keccak256": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "@ethersproject/rlp": "^5.7.0", - "@ethersproject/signing-key": "^5.7.0" - } - }, - "@ethersproject/units": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/units/-/units-5.7.0.tgz", - "integrity": "sha512-pD3xLMy3SJu9kG5xDGI7+xhTEmGXlEqXU4OfNapmfnxLVY4EMSSRp7j1k7eezutBPH7RBN/7QPnwR7hzNlEFeg==", - "peer": true, - "requires": { - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/constants": "^5.7.0", - "@ethersproject/logger": "^5.7.0" - } - }, - "@ethersproject/wallet": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/wallet/-/wallet-5.7.0.tgz", - "integrity": "sha512-MhmXlJXEJFBFVKrDLB4ZdDzxcBxQ3rLyCkhNqVu3CDYvR97E+8r01UgrI+TI99Le+aYm/in/0vp86guJuM7FCA==", - "peer": true, - "requires": { - "@ethersproject/abstract-provider": "^5.7.0", - "@ethersproject/abstract-signer": "^5.7.0", - "@ethersproject/address": "^5.7.0", - "@ethersproject/bignumber": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/hash": "^5.7.0", - "@ethersproject/hdnode": "^5.7.0", - "@ethersproject/json-wallets": "^5.7.0", - "@ethersproject/keccak256": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "@ethersproject/random": "^5.7.0", - "@ethersproject/signing-key": "^5.7.0", - "@ethersproject/transactions": "^5.7.0", - "@ethersproject/wordlists": "^5.7.0" - } - }, - "@ethersproject/web": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/@ethersproject/web/-/web-5.7.1.tgz", - "integrity": "sha512-Gueu8lSvyjBWL4cYsWsjh6MtMwM0+H4HvqFPZfB6dV8ctbP9zFAO73VG1cMWae0FLPCtz0peKPpZY8/ugJJX2w==", - "requires": { - "@ethersproject/base64": "^5.7.0", - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "@ethersproject/strings": "^5.7.0" - } - }, - "@ethersproject/wordlists": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/@ethersproject/wordlists/-/wordlists-5.7.0.tgz", - "integrity": "sha512-S2TFNJNfHWVHNE6cNDjbVlZ6MgE17MIxMbMg2zv3wn+3XSJGosL1m9ZVv3GXCf/2ymSsQ+hRI5IzoMJTG6aoVA==", - "peer": true, - "requires": { - "@ethersproject/bytes": "^5.7.0", - "@ethersproject/hash": "^5.7.0", - "@ethersproject/logger": "^5.7.0", - "@ethersproject/properties": "^5.7.0", - "@ethersproject/strings": "^5.7.0" - } - }, - "@fastify/busboy": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@fastify/busboy/-/busboy-2.1.0.tgz", - "integrity": "sha512-+KpH+QxZU7O4675t3mnkQKcZZg56u+K/Ct2K+N2AZYNVK8kyeo/bI18tI8aPm3tvNNRyTWfj6s5tnGNlcbQRsA==", - "dev": true - }, - "@inquirer/external-editor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@inquirer/external-editor/-/external-editor-1.0.2.tgz", - "integrity": "sha512-yy9cOoBnx58TlsPrIxauKIFQTiyH+0MK4e97y4sV9ERbI+zDxw7i2hxHLCIEGIE/8PPvDxGhgzIOTSOWcs6/MQ==", - "requires": { - "chardet": "^2.1.0", - "iconv-lite": "^0.7.0" - }, - "dependencies": { - "iconv-lite": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.0.tgz", - "integrity": "sha512-cf6L2Ds3h57VVmkZe+Pn+5APsT7FpqJtEhhieDCvrE2MK5Qk9MyffgQyuxQTm6BChfeZNtcOLHp9IcWRVcIcBQ==", - "requires": { - "safer-buffer": ">= 2.1.2 < 3.0.0" - } - } - } - }, - "@isaacs/cliui": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", - "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", - "dev": true, - "requires": { - "string-width": "^5.1.2", - "string-width-cjs": "npm:string-width@^4.2.0", - "strip-ansi": "^7.0.1", - "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", - "wrap-ansi": "^8.1.0", - "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" - }, - "dependencies": { - "ansi-regex": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", - "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", - "dev": true - }, - "ansi-styles": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", - "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", - "dev": true - }, - "emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", - "dev": true - }, - "string-width": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", - "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", - "dev": true, - "requires": { - "eastasianwidth": "^0.2.0", - "emoji-regex": "^9.2.2", - "strip-ansi": "^7.0.1" - } - }, - "strip-ansi": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", - "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", - "dev": true, - "requires": { - "ansi-regex": "^6.0.1" - } - }, - "wrap-ansi": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", - "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", - "dev": true, - "requires": { - "ansi-styles": "^6.1.0", - "string-width": "^5.0.1", - "strip-ansi": "^7.0.1" - } - } - } - }, - "@jridgewell/resolve-uri": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", - "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", - "dev": true, - "peer": true - }, - "@jridgewell/sourcemap-codec": { - "version": "1.4.15", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", - "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", - "dev": true, - "peer": true - }, - "@jridgewell/trace-mapping": { - "version": "0.3.9", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", - "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", - "dev": true, - "peer": true, - "requires": { - "@jridgewell/resolve-uri": "^3.0.3", - "@jridgewell/sourcemap-codec": "^1.4.10" - } - }, - "@jsdoc/salty": { - "version": "0.2.8", - "resolved": "https://registry.npmjs.org/@jsdoc/salty/-/salty-0.2.8.tgz", - "integrity": "sha512-5e+SFVavj1ORKlKaKr2BmTOekmXbelU7dC0cDkQLqag7xfuTPuGMUFx7KWJuv4bYZrTsoL2Z18VVCOKYxzoHcg==", - "dev": true, - "requires": { - "lodash": "^4.17.21" - } - }, - "@manypkg/find-root": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@manypkg/find-root/-/find-root-1.1.0.tgz", - "integrity": "sha512-mki5uBvhHzO8kYYix/WRy2WX8S3B5wdVSc9D6KcU5lQNglP2yt58/VfLuAK49glRXChosY8ap2oJ1qgma3GUVA==", - "requires": { - "@babel/runtime": "^7.5.5", - "@types/node": "^12.7.1", - "find-up": "^4.1.0", - "fs-extra": "^8.1.0" - }, - "dependencies": { - "@types/node": { - "version": "12.20.55", - "resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.55.tgz", - "integrity": "sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==" - }, - "find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "requires": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - } - }, - "fs-extra": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", - "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", - "requires": { - "graceful-fs": "^4.2.0", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" - } - }, - "jsonfile": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", - "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", - "requires": { - "graceful-fs": "^4.1.6" - } - }, - "locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "requires": { - "p-locate": "^4.1.0" - } - }, - "p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "requires": { - "p-try": "^2.0.0" - } - }, - "p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "requires": { - "p-limit": "^2.2.0" - } - }, - "p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==" - }, - "universalify": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" - } - } - }, - "@manypkg/get-packages": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/@manypkg/get-packages/-/get-packages-1.1.3.tgz", - "integrity": "sha512-fo+QhuU3qE/2TQMQmbVMqaQ6EWbMhi4ABWP+O4AM1NqPBuy0OrApV5LO6BrrgnhtAHS2NH6RrVk9OL181tTi8A==", - "requires": { - "@babel/runtime": "^7.5.5", - "@changesets/types": "^4.0.1", - "@manypkg/find-root": "^1.1.0", - "fs-extra": "^8.1.0", - "globby": "^11.0.0", - "read-yaml-file": "^1.1.0" - }, - "dependencies": { - "@changesets/types": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/@changesets/types/-/types-4.1.0.tgz", - "integrity": "sha512-LDQvVDv5Kb50ny2s25Fhm3d9QSZimsoUGBsUioj6MC3qbMUCuC8GPIvk/M6IvXx3lYhAs0lwWUQLb+VIEUCECw==" - }, - "fs-extra": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", - "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", - "requires": { - "graceful-fs": "^4.2.0", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" - } - }, - "globby": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", - "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", - "requires": { - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.2.9", - "ignore": "^5.2.0", - "merge2": "^1.4.1", - "slash": "^3.0.0" - } - }, - "jsonfile": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", - "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", - "requires": { - "graceful-fs": "^4.1.6" - } - }, - "universalify": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" - } - } - }, - "@noble/curves": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.2.0.tgz", - "integrity": "sha512-oYclrNgRaM9SsBUBVbb8M6DTV7ZHRTKugureoYEncY5c65HOmRzvSiTE3y5CYaPYJA/GVkrhXEoF0M3Ya9PMnw==", - "dev": true, - "peer": true, - "requires": { - "@noble/hashes": "1.3.2" - } - }, - "@noble/hashes": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.2.tgz", - "integrity": "sha512-MVC8EAQp7MvEcm30KWENFjgR+Mkmf+D189XJTkFIlwohU5hcBbn1ZkKq7KVTi2Hme3PMGF390DaL52beVrIihQ==", - "dev": true, - "peer": true - }, - "@noble/secp256k1": { - "version": "1.7.1", - "resolved": "https://registry.npmjs.org/@noble/secp256k1/-/secp256k1-1.7.1.tgz", - "integrity": "sha512-hOUk6AyBFmqVrv7k5WAw/LpszxVbj9gGN4JRkIX52fdFAj1UA61KXmZDvqVEm+pOyec3+fIeZB02LYa/pWOArw==", - "dev": true - }, - "@nodelib/fs.scandir": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", - "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", - "requires": { - "@nodelib/fs.stat": "2.0.5", - "run-parallel": "^1.1.9" - } - }, - "@nodelib/fs.stat": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", - "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==" - }, - "@nodelib/fs.walk": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", - "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", - "requires": { - "@nodelib/fs.scandir": "2.1.5", - "fastq": "^1.6.0" - } - }, - "@nomicfoundation/edr": { - "version": "0.11.3", - "resolved": "https://registry.npmjs.org/@nomicfoundation/edr/-/edr-0.11.3.tgz", - "integrity": "sha512-kqILRkAd455Sd6v8mfP3C1/0tCOynJWY+Ir+k/9Boocu2kObCrsFgG+ZWB7fSBVdd9cPVSNrnhWS+V+PEo637g==", - "dev": true, - "requires": { - "@nomicfoundation/edr-darwin-arm64": "0.11.3", - "@nomicfoundation/edr-darwin-x64": "0.11.3", - "@nomicfoundation/edr-linux-arm64-gnu": "0.11.3", - "@nomicfoundation/edr-linux-arm64-musl": "0.11.3", - "@nomicfoundation/edr-linux-x64-gnu": "0.11.3", - "@nomicfoundation/edr-linux-x64-musl": "0.11.3", - "@nomicfoundation/edr-win32-x64-msvc": "0.11.3" - } - }, - "@nomicfoundation/edr-darwin-arm64": { - "version": "0.11.3", - "resolved": "https://registry.npmjs.org/@nomicfoundation/edr-darwin-arm64/-/edr-darwin-arm64-0.11.3.tgz", - "integrity": "sha512-w0tksbdtSxz9nuzHKsfx4c2mwaD0+l5qKL2R290QdnN9gi9AV62p9DHkOgfBdyg6/a6ZlnQqnISi7C9avk/6VA==", - "dev": true - }, - "@nomicfoundation/edr-darwin-x64": { - "version": "0.11.3", - "resolved": "https://registry.npmjs.org/@nomicfoundation/edr-darwin-x64/-/edr-darwin-x64-0.11.3.tgz", - "integrity": "sha512-QR4jAFrPbOcrO7O2z2ESg+eUeIZPe2bPIlQYgiJ04ltbSGW27FblOzdd5+S3RoOD/dsZGKAvvy6dadBEl0NgoA==", - "dev": true - }, - "@nomicfoundation/edr-linux-arm64-gnu": { - "version": "0.11.3", - "resolved": "https://registry.npmjs.org/@nomicfoundation/edr-linux-arm64-gnu/-/edr-linux-arm64-gnu-0.11.3.tgz", - "integrity": "sha512-Ktjv89RZZiUmOFPspuSBVJ61mBZQ2+HuLmV67InNlh9TSUec/iDjGIwAn59dx0bF/LOSrM7qg5od3KKac4LJDQ==", - "dev": true - }, - "@nomicfoundation/edr-linux-arm64-musl": { - "version": "0.11.3", - "resolved": "https://registry.npmjs.org/@nomicfoundation/edr-linux-arm64-musl/-/edr-linux-arm64-musl-0.11.3.tgz", - "integrity": "sha512-B3sLJx1rL2E9pfdD4mApiwOZSrX0a/KQSBWdlq1uAhFKqkl00yZaY4LejgZndsJAa4iKGQJlGnw4HCGeVt0+jA==", - "dev": true - }, - "@nomicfoundation/edr-linux-x64-gnu": { - "version": "0.11.3", - "resolved": "https://registry.npmjs.org/@nomicfoundation/edr-linux-x64-gnu/-/edr-linux-x64-gnu-0.11.3.tgz", - "integrity": "sha512-D/4cFKDXH6UYyKPu6J3Y8TzW11UzeQI0+wS9QcJzjlrrfKj0ENW7g9VihD1O2FvXkdkTjcCZYb6ai8MMTCsaVw==", - "dev": true - }, - "@nomicfoundation/edr-linux-x64-musl": { - "version": "0.11.3", - "resolved": "https://registry.npmjs.org/@nomicfoundation/edr-linux-x64-musl/-/edr-linux-x64-musl-0.11.3.tgz", - "integrity": "sha512-ergXuIb4nIvmf+TqyiDX5tsE49311DrBky6+jNLgsGDTBaN1GS3OFwFS8I6Ri/GGn6xOaT8sKu3q7/m+WdlFzg==", - "dev": true - }, - "@nomicfoundation/edr-win32-x64-msvc": { - "version": "0.11.3", - "resolved": "https://registry.npmjs.org/@nomicfoundation/edr-win32-x64-msvc/-/edr-win32-x64-msvc-0.11.3.tgz", - "integrity": "sha512-snvEf+WB3OV0wj2A7kQ+ZQqBquMcrozSLXcdnMdEl7Tmn+KDCbmFKBt3Tk0X3qOU4RKQpLPnTxdM07TJNVtung==", - "dev": true - }, - "@nomicfoundation/hardhat-chai-matchers": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/hardhat-chai-matchers/-/hardhat-chai-matchers-2.1.0.tgz", - "integrity": "sha512-GPhBNafh1fCnVD9Y7BYvoLnblnvfcq3j8YDbO1gGe/1nOFWzGmV7gFu5DkwFXF+IpYsS+t96o9qc/mPu3V3Vfw==", - "dev": true, - "peer": true, - "requires": { - "@types/chai-as-promised": "^7.1.3", - "chai-as-promised": "^7.1.1", - "deep-eql": "^4.0.1", - "ordinal": "^1.0.3" - } - }, - "@nomicfoundation/hardhat-ethers": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/hardhat-ethers/-/hardhat-ethers-3.1.0.tgz", - "integrity": "sha512-jx6fw3Ms7QBwFGT2MU6ICG292z0P81u6g54JjSV105+FbTZOF4FJqPksLfDybxkkOeq28eDxbqq7vpxRYyIlxA==", - "dev": true, - "peer": true, - "requires": { - "debug": "^4.1.1", - "lodash.isequal": "^4.5.0" - } - }, - "@nomicfoundation/hardhat-foundry": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/hardhat-foundry/-/hardhat-foundry-1.2.0.tgz", - "integrity": "sha512-2AJQLcWnUk/iQqHDVnyOadASKFQKF1PhNtt1cONEQqzUPK+fqME1IbP+EKu+RkZTRcyc4xqUMaB0sutglKRITg==", - "dev": true, - "requires": { - "picocolors": "^1.1.0" - } - }, - "@nomicfoundation/hardhat-network-helpers": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/hardhat-network-helpers/-/hardhat-network-helpers-1.1.0.tgz", - "integrity": "sha512-ZS+NulZuR99NUHt2VwcgZvgeD6Y63qrbORNRuKO+lTowJxNVsrJ0zbRx1j5De6G3dOno5pVGvuYSq2QVG0qCYg==", - "dev": true, - "peer": true, - "requires": { - "ethereumjs-util": "^7.1.4" - } - }, - "@nomicfoundation/hardhat-toolbox": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@nomicfoundation/hardhat-toolbox/-/hardhat-toolbox-4.0.0.tgz", - "integrity": "sha512-jhcWHp0aHaL0aDYj8IJl80v4SZXWMS1A2XxXa1CA6pBiFfJKuZinCkO6wb+POAt0LIfXB3gA3AgdcOccrcwBwA==", - "dev": true, - "requires": {} - }, - "@nomicfoundation/hardhat-verify": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/hardhat-verify/-/hardhat-verify-2.1.1.tgz", - "integrity": "sha512-K1plXIS42xSHDJZRkrE2TZikqxp9T4y6jUMUNI/imLgN5uCcEQokmfU0DlyP9zzHncYK92HlT5IWP35UVCLrPw==", - "dev": true, - "peer": true, - "requires": { - "@ethersproject/abi": "^5.1.2", - "@ethersproject/address": "^5.0.2", - "cbor": "^8.1.0", - "debug": "^4.1.1", - "lodash.clonedeep": "^4.5.0", - "picocolors": "^1.1.0", - "semver": "^6.3.0", - "table": "^6.8.0", - "undici": "^5.14.0" - } - }, - "@nomicfoundation/solidity-analyzer": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer/-/solidity-analyzer-0.1.1.tgz", - "integrity": "sha512-1LMtXj1puAxyFusBgUIy5pZk3073cNXYnXUpuNKFghHbIit/xZgbk0AokpUADbNm3gyD6bFWl3LRFh3dhVdREg==", - "dev": true, - "requires": { - "@nomicfoundation/solidity-analyzer-darwin-arm64": "0.1.1", - "@nomicfoundation/solidity-analyzer-darwin-x64": "0.1.1", - "@nomicfoundation/solidity-analyzer-freebsd-x64": "0.1.1", - "@nomicfoundation/solidity-analyzer-linux-arm64-gnu": "0.1.1", - "@nomicfoundation/solidity-analyzer-linux-arm64-musl": "0.1.1", - "@nomicfoundation/solidity-analyzer-linux-x64-gnu": "0.1.1", - "@nomicfoundation/solidity-analyzer-linux-x64-musl": "0.1.1", - "@nomicfoundation/solidity-analyzer-win32-arm64-msvc": "0.1.1", - "@nomicfoundation/solidity-analyzer-win32-ia32-msvc": "0.1.1", - "@nomicfoundation/solidity-analyzer-win32-x64-msvc": "0.1.1" - } - }, - "@nomicfoundation/solidity-analyzer-darwin-arm64": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-darwin-arm64/-/solidity-analyzer-darwin-arm64-0.1.1.tgz", - "integrity": "sha512-KcTodaQw8ivDZyF+D76FokN/HdpgGpfjc/gFCImdLUyqB6eSWVaZPazMbeAjmfhx3R0zm/NYVzxwAokFKgrc0w==", - "dev": true, - "optional": true - }, - "@nomicfoundation/solidity-analyzer-darwin-x64": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-darwin-x64/-/solidity-analyzer-darwin-x64-0.1.1.tgz", - "integrity": "sha512-XhQG4BaJE6cIbjAVtzGOGbK3sn1BO9W29uhk9J8y8fZF1DYz0Doj8QDMfpMu+A6TjPDs61lbsmeYodIDnfveSA==", - "dev": true, - "optional": true - }, - "@nomicfoundation/solidity-analyzer-freebsd-x64": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-freebsd-x64/-/solidity-analyzer-freebsd-x64-0.1.1.tgz", - "integrity": "sha512-GHF1VKRdHW3G8CndkwdaeLkVBi5A9u2jwtlS7SLhBc8b5U/GcoL39Q+1CSO3hYqePNP+eV5YI7Zgm0ea6kMHoA==", - "dev": true, - "optional": true - }, - "@nomicfoundation/solidity-analyzer-linux-arm64-gnu": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-linux-arm64-gnu/-/solidity-analyzer-linux-arm64-gnu-0.1.1.tgz", - "integrity": "sha512-g4Cv2fO37ZsUENQ2vwPnZc2zRenHyAxHcyBjKcjaSmmkKrFr64yvzeNO8S3GBFCo90rfochLs99wFVGT/0owpg==", - "dev": true, - "optional": true - }, - "@nomicfoundation/solidity-analyzer-linux-arm64-musl": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-linux-arm64-musl/-/solidity-analyzer-linux-arm64-musl-0.1.1.tgz", - "integrity": "sha512-WJ3CE5Oek25OGE3WwzK7oaopY8xMw9Lhb0mlYuJl/maZVo+WtP36XoQTb7bW/i8aAdHW5Z+BqrHMux23pvxG3w==", - "dev": true, - "optional": true - }, - "@nomicfoundation/solidity-analyzer-linux-x64-gnu": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-linux-x64-gnu/-/solidity-analyzer-linux-x64-gnu-0.1.1.tgz", - "integrity": "sha512-5WN7leSr5fkUBBjE4f3wKENUy9HQStu7HmWqbtknfXkkil+eNWiBV275IOlpXku7v3uLsXTOKpnnGHJYI2qsdA==", - "dev": true, - "optional": true - }, - "@nomicfoundation/solidity-analyzer-linux-x64-musl": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-linux-x64-musl/-/solidity-analyzer-linux-x64-musl-0.1.1.tgz", - "integrity": "sha512-KdYMkJOq0SYPQMmErv/63CwGwMm5XHenEna9X9aB8mQmhDBrYrlAOSsIPgFCUSL0hjxE3xHP65/EPXR/InD2+w==", - "dev": true, - "optional": true - }, - "@nomicfoundation/solidity-analyzer-win32-arm64-msvc": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-win32-arm64-msvc/-/solidity-analyzer-win32-arm64-msvc-0.1.1.tgz", - "integrity": "sha512-VFZASBfl4qiBYwW5xeY20exWhmv6ww9sWu/krWSesv3q5hA0o1JuzmPHR4LPN6SUZj5vcqci0O6JOL8BPw+APg==", - "dev": true, - "optional": true - }, - "@nomicfoundation/solidity-analyzer-win32-ia32-msvc": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-win32-ia32-msvc/-/solidity-analyzer-win32-ia32-msvc-0.1.1.tgz", - "integrity": "sha512-JnFkYuyCSA70j6Si6cS1A9Gh1aHTEb8kOTBApp/c7NRTFGNMH8eaInKlyuuiIbvYFhlXW4LicqyYuWNNq9hkpQ==", - "dev": true, - "optional": true - }, - "@nomicfoundation/solidity-analyzer-win32-x64-msvc": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-win32-x64-msvc/-/solidity-analyzer-win32-x64-msvc-0.1.1.tgz", - "integrity": "sha512-HrVJr6+WjIXGnw3Q9u6KQcbZCtk0caVWhCdFADySvRyUxJ8PnzlaP+MhwNE8oyT8OZ6ejHBRrrgjSqDCFXGirw==", - "dev": true, - "optional": true - }, - "@offchainlabs/upgrade-executor": { - "version": "1.1.0-beta.0", - "resolved": "https://registry.npmjs.org/@offchainlabs/upgrade-executor/-/upgrade-executor-1.1.0-beta.0.tgz", - "integrity": "sha512-mpn6PHjH/KDDjNX0pXHEKdyv8m6DVGQiI2nGzQn0JbM1nOSHJpWx6fvfjtH7YxHJ6zBZTcsKkqGkFKDtCfoSLw==", - "requires": { - "@openzeppelin/contracts": "4.7.3", - "@openzeppelin/contracts-upgradeable": "4.7.3" - }, - "dependencies": { - "@openzeppelin/contracts": { - "version": "4.7.3", - "resolved": "https://registry.npmjs.org/@openzeppelin/contracts/-/contracts-4.7.3.tgz", - "integrity": "sha512-dGRS0agJzu8ybo44pCIf3xBaPQN/65AIXNgK8+4gzKd5kbvlqyxryUYVLJv7fK98Seyd2hDZzVEHSWAh0Bt1Yw==" - }, - "@openzeppelin/contracts-upgradeable": { - "version": "4.7.3", - "resolved": "https://registry.npmjs.org/@openzeppelin/contracts-upgradeable/-/contracts-upgradeable-4.7.3.tgz", - "integrity": "sha512-+wuegAMaLcZnLCJIvrVUDzA9z/Wp93f0Dla/4jJvIhijRrPabjQbZe6fWiECLaJyfn5ci9fqf9vTw3xpQOad2A==" - } - } - }, - "@openzeppelin/contracts-4.7.3": { - "version": "npm:@openzeppelin/contracts@4.7.3", - "resolved": "https://registry.npmjs.org/@openzeppelin/contracts/-/contracts-4.7.3.tgz", - "integrity": "sha512-dGRS0agJzu8ybo44pCIf3xBaPQN/65AIXNgK8+4gzKd5kbvlqyxryUYVLJv7fK98Seyd2hDZzVEHSWAh0Bt1Yw==" - }, - "@openzeppelin/contracts-4.8.3": { - "version": "npm:@openzeppelin/contracts@4.8.3", - "resolved": "https://registry.npmjs.org/@openzeppelin/contracts/-/contracts-4.8.3.tgz", - "integrity": "sha512-bQHV8R9Me8IaJoJ2vPG4rXcL7seB7YVuskr4f+f5RyOStSZetwzkWtoqDMl5erkBJy0lDRUnIR2WIkPiC0GJlg==" - }, - "@openzeppelin/contracts-4.9.6": { - "version": "npm:@openzeppelin/contracts@4.9.6", - "resolved": "https://registry.npmjs.org/@openzeppelin/contracts/-/contracts-4.9.6.tgz", - "integrity": "sha512-xSmezSupL+y9VkHZJGDoCBpmnB2ogM13ccaYDWqJTfS3dbuHkgjuwDFUmaFauBCboQMGB/S5UqUl2y54X99BmA==" - }, - "@openzeppelin/contracts-5.0.2": { - "version": "npm:@openzeppelin/contracts@5.0.2", - "resolved": "https://registry.npmjs.org/@openzeppelin/contracts/-/contracts-5.0.2.tgz", - "integrity": "sha512-ytPc6eLGcHHnapAZ9S+5qsdomhjo6QBHTDRRBFfTxXIpsicMhVPouPgmUPebZZZGX7vt9USA+Z+0M0dSVtSUEA==" - }, - "@openzeppelin/contracts-5.1.0": { - "version": "npm:@openzeppelin/contracts@5.1.0", - "resolved": "https://registry.npmjs.org/@openzeppelin/contracts/-/contracts-5.1.0.tgz", - "integrity": "sha512-p1ULhl7BXzjjbha5aqst+QMLY+4/LCWADXOCsmLHRM77AqiPjnd9vvUN9sosUfhL9JGKpZ0TjEGxgvnizmWGSA==" - }, - "@openzeppelin/contracts-upgradeable": { - "version": "4.9.6", - "resolved": "https://registry.npmjs.org/@openzeppelin/contracts-upgradeable/-/contracts-upgradeable-4.9.6.tgz", - "integrity": "sha512-m4iHazOsOCv1DgM7eD7GupTJ+NFVujRZt1wzddDPSVGpWdKq1SKkla5htKG7+IS4d2XOCtzkUNwRZ7Vq5aEUMA==" - }, - "@pkgjs/parseargs": { - "version": "0.11.0", - "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", - "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", - "dev": true, - "optional": true - }, - "@scroll-tech/contracts": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@scroll-tech/contracts/-/contracts-2.0.0.tgz", - "integrity": "sha512-O8sVaA/bVKH/mp+bBfUjZ/vYr5mdBExCpKRLre4r9TbXTtiaY9Uo5xU8dcG3weLxyK0BZqDTP2aCNp4Q0f7SeA==" - }, - "@scure/base": { - "version": "1.1.9", - "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.9.tgz", - "integrity": "sha512-8YKhl8GHiNI/pU2VMaofa2Tor7PJRAjwQLBBuilkJ9L5+13yVbC7JO/wS7piioAvPSwR3JKM1IJ/u4xQzbcXKg==", - "dev": true - }, - "@scure/bip32": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.4.0.tgz", - "integrity": "sha512-sVUpc0Vq3tXCkDGYVWGIZTRfnvu8LoTDaev7vbwh0omSvVORONr960MQWdKqJDCReIEmTj3PAr73O3aoxz7OPg==", - "dev": true, - "requires": { - "@noble/curves": "~1.4.0", - "@noble/hashes": "~1.4.0", - "@scure/base": "~1.1.6" - }, - "dependencies": { - "@noble/curves": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.4.2.tgz", - "integrity": "sha512-TavHr8qycMChk8UwMld0ZDRvatedkzWfH8IiaeGCfymOP5i0hSCozz9vHOL0nkwk7HRMlFnAiKpS2jrUmSybcw==", - "dev": true, - "requires": { - "@noble/hashes": "1.4.0" - } - }, - "@noble/hashes": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.4.0.tgz", - "integrity": "sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==", - "dev": true - } - } - }, - "@scure/bip39": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.3.0.tgz", - "integrity": "sha512-disdg7gHuTDZtY+ZdkmLpPCk7fxZSu3gBiEGuoC1XYxv9cGx3Z6cpTggCgW6odSOOIXCiDjuGejW+aJKCY/pIQ==", - "dev": true, - "requires": { - "@noble/hashes": "~1.4.0", - "@scure/base": "~1.1.6" - }, - "dependencies": { - "@noble/hashes": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.4.0.tgz", - "integrity": "sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==", - "dev": true - } - } - }, - "@sentry/core": { - "version": "5.30.0", - "resolved": "https://registry.npmjs.org/@sentry/core/-/core-5.30.0.tgz", - "integrity": "sha512-TmfrII8w1PQZSZgPpUESqjB+jC6MvZJZdLtE/0hZ+SrnKhW3x5WlYLvTXZpcWePYBku7rl2wn1RZu6uT0qCTeg==", - "dev": true, - "requires": { - "@sentry/hub": "5.30.0", - "@sentry/minimal": "5.30.0", - "@sentry/types": "5.30.0", - "@sentry/utils": "5.30.0", - "tslib": "^1.9.3" - }, - "dependencies": { - "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true - } - } - }, - "@sentry/hub": { - "version": "5.30.0", - "resolved": "https://registry.npmjs.org/@sentry/hub/-/hub-5.30.0.tgz", - "integrity": "sha512-2tYrGnzb1gKz2EkMDQcfLrDTvmGcQPuWxLnJKXJvYTQDGLlEvi2tWz1VIHjunmOvJrB5aIQLhm+dcMRwFZDCqQ==", - "dev": true, - "requires": { - "@sentry/types": "5.30.0", - "@sentry/utils": "5.30.0", - "tslib": "^1.9.3" - }, - "dependencies": { - "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true - } - } - }, - "@sentry/minimal": { - "version": "5.30.0", - "resolved": "https://registry.npmjs.org/@sentry/minimal/-/minimal-5.30.0.tgz", - "integrity": "sha512-BwWb/owZKtkDX+Sc4zCSTNcvZUq7YcH3uAVlmh/gtR9rmUvbzAA3ewLuB3myi4wWRAMEtny6+J/FN/x+2wn9Xw==", - "dev": true, - "requires": { - "@sentry/hub": "5.30.0", - "@sentry/types": "5.30.0", - "tslib": "^1.9.3" - }, - "dependencies": { - "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true - } - } - }, - "@sentry/node": { - "version": "5.30.0", - "resolved": "https://registry.npmjs.org/@sentry/node/-/node-5.30.0.tgz", - "integrity": "sha512-Br5oyVBF0fZo6ZS9bxbJZG4ApAjRqAnqFFurMVJJdunNb80brh7a5Qva2kjhm+U6r9NJAB5OmDyPkA1Qnt+QVg==", - "dev": true, - "requires": { - "@sentry/core": "5.30.0", - "@sentry/hub": "5.30.0", - "@sentry/tracing": "5.30.0", - "@sentry/types": "5.30.0", - "@sentry/utils": "5.30.0", - "cookie": "^0.4.1", - "https-proxy-agent": "^5.0.0", - "lru_map": "^0.3.3", - "tslib": "^1.9.3" - }, - "dependencies": { - "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true - } - } - }, - "@sentry/tracing": { - "version": "5.30.0", - "resolved": "https://registry.npmjs.org/@sentry/tracing/-/tracing-5.30.0.tgz", - "integrity": "sha512-dUFowCr0AIMwiLD7Fs314Mdzcug+gBVo/+NCMyDw8tFxJkwWAKl7Qa2OZxLQ0ZHjakcj1hNKfCQJ9rhyfOl4Aw==", - "dev": true, - "requires": { - "@sentry/hub": "5.30.0", - "@sentry/minimal": "5.30.0", - "@sentry/types": "5.30.0", - "@sentry/utils": "5.30.0", - "tslib": "^1.9.3" - }, - "dependencies": { - "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true - } - } - }, - "@sentry/types": { - "version": "5.30.0", - "resolved": "https://registry.npmjs.org/@sentry/types/-/types-5.30.0.tgz", - "integrity": "sha512-R8xOqlSTZ+htqrfteCWU5Nk0CDN5ApUTvrlvBuiH1DyP6czDZ4ktbZB0hAgBlVcK0U+qpD3ag3Tqqpa5Q67rPw==", - "dev": true - }, - "@sentry/utils": { - "version": "5.30.0", - "resolved": "https://registry.npmjs.org/@sentry/utils/-/utils-5.30.0.tgz", - "integrity": "sha512-zaYmoH0NWWtvnJjC9/CBseXMtKHm/tm40sz3YfJRxeQjyzRqNQPgivpd9R/oDJCYj999mzdW382p/qi2ypjLww==", - "dev": true, - "requires": { - "@sentry/types": "5.30.0", - "tslib": "^1.9.3" - }, - "dependencies": { - "tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true - } - } - }, - "@solidity-parser/parser": { - "version": "0.14.5", - "resolved": "https://registry.npmjs.org/@solidity-parser/parser/-/parser-0.14.5.tgz", - "integrity": "sha512-6dKnHZn7fg/iQATVEzqyUOyEidbn05q7YA2mQ9hC0MMXhhV3/JrsxmFSYZAcr7j1yUP700LLhTruvJ3MiQmjJg==", - "dev": true, - "peer": true, - "requires": { - "antlr4ts": "^0.5.0-alpha.4" - } - }, - "@tsconfig/node10": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz", - "integrity": "sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==", - "dev": true, - "peer": true - }, - "@tsconfig/node12": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", - "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", - "dev": true, - "peer": true - }, - "@tsconfig/node14": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", - "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", - "dev": true, - "peer": true - }, - "@tsconfig/node16": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz", - "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==", - "dev": true, - "peer": true - }, - "@typechain/ethers-v6": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/@typechain/ethers-v6/-/ethers-v6-0.5.1.tgz", - "integrity": "sha512-F+GklO8jBWlsaVV+9oHaPh5NJdd6rAKN4tklGfInX1Q7h0xPgVLP39Jl3eCulPB5qexI71ZFHwbljx4ZXNfouA==", - "dev": true, - "peer": true, - "requires": { - "lodash": "^4.17.15", - "ts-essentials": "^7.0.1" - } - }, - "@typechain/hardhat": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/@typechain/hardhat/-/hardhat-9.1.0.tgz", - "integrity": "sha512-mtaUlzLlkqTlfPwB3FORdejqBskSnh+Jl8AIJGjXNAQfRQ4ofHADPl1+oU7Z3pAJzmZbUXII8MhOLQltcHgKnA==", - "dev": true, - "peer": true, - "requires": { - "fs-extra": "^9.1.0" - }, - "dependencies": { - "fs-extra": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", - "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", - "dev": true, - "peer": true, - "requires": { - "at-least-node": "^1.0.0", - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - } - } - } - }, - "@types/bn.js": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/@types/bn.js/-/bn.js-5.2.0.tgz", - "integrity": "sha512-DLbJ1BPqxvQhIGbeu8VbUC1DiAiahHtAYvA0ZEAa4P31F7IaArc8z3C3BRQdWX4mtLQuABG4yzp76ZrS02Ui1Q==", - "dev": true, - "peer": true, - "requires": { - "@types/node": "*" - } - }, - "@types/chai": { - "version": "4.3.20", - "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.3.20.tgz", - "integrity": "sha512-/pC9HAB5I/xMlc5FP77qjCnI16ChlJfW0tGa0IUcFn38VJrTV6DeZ60NU5KZBtaOZqjdpwTWohz5HU1RrhiYxQ==", - "dev": true, - "peer": true - }, - "@types/chai-as-promised": { - "version": "7.1.8", - "resolved": "https://registry.npmjs.org/@types/chai-as-promised/-/chai-as-promised-7.1.8.tgz", - "integrity": "sha512-ThlRVIJhr69FLlh6IctTXFkmhtP3NpMZ2QGq69StYLyKZFp/HOp1VdKZj7RvfNWYYcJ1xlbLGLLWj1UvP5u/Gw==", - "dev": true, - "peer": true, - "requires": { - "@types/chai": "*" - } - }, - "@types/concat-stream": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/@types/concat-stream/-/concat-stream-1.6.1.tgz", - "integrity": "sha512-eHE4cQPoj6ngxBZMvVf6Hw7Mh4jMW4U9lpGmS5GBPB9RYxlFg+CHaVN7ErNY4W9XfLIEn20b4VDYaIrbq0q4uA==", - "dev": true, - "peer": true, - "requires": { - "@types/node": "*" - } - }, - "@types/form-data": { - "version": "0.0.33", - "resolved": "https://registry.npmjs.org/@types/form-data/-/form-data-0.0.33.tgz", - "integrity": "sha512-8BSvG1kGm83cyJITQMZSulnl6QV8jqAGreJsc5tPu1Jq0vTSOiY/k24Wx82JRpWwZSqrala6sd5rWi6aNXvqcw==", - "dev": true, - "peer": true, - "requires": { - "@types/node": "*" - } - }, - "@types/fs-extra": { - "version": "11.0.4", - "resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-11.0.4.tgz", - "integrity": "sha512-yTbItCNreRooED33qjunPthRcSjERP1r4MqCZc7wv0u2sUkzTFp45tgUfS5+r7FrZPdmCCNflLhVSP/o+SemsQ==", - "dev": true, - "requires": { - "@types/jsonfile": "*", - "@types/node": "*" - } - }, - "@types/glob": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.2.0.tgz", - "integrity": "sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA==", - "dev": true, - "peer": true, - "requires": { - "@types/minimatch": "*", - "@types/node": "*" - } - }, - "@types/jsdoc-to-markdown": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/@types/jsdoc-to-markdown/-/jsdoc-to-markdown-7.0.6.tgz", - "integrity": "sha512-FB/oOam8P4WoGbkfLu6ciektQhqlVuL4VsbrGJp3/YDAlRGcoiOhXDnnPL73TtHYMsDZ7NHYhCGJn4hu0TZdHg==", - "dev": true - }, - "@types/jsonfile": { - "version": "6.1.4", - "resolved": "https://registry.npmjs.org/@types/jsonfile/-/jsonfile-6.1.4.tgz", - "integrity": "sha512-D5qGUYwjvnNNextdU59/+fI+spnwtTFmyQP0h+PfIOSkNfpU6AOICUOkm4i0OnSk+NyjdPJrxCDro0sJsWlRpQ==", - "dev": true, - "requires": { - "@types/node": "*" - } - }, - "@types/linkify-it": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@types/linkify-it/-/linkify-it-5.0.0.tgz", - "integrity": "sha512-sVDA58zAw4eWAffKOaQH5/5j3XeayukzDk+ewSsnv3p4yJEZHCCzMDiZM8e0OUrRvmpGZ85jf4yDHkHsgBNr9Q==", - "dev": true - }, - "@types/markdown-it": { - "version": "14.1.1", - "resolved": "https://registry.npmjs.org/@types/markdown-it/-/markdown-it-14.1.1.tgz", - "integrity": "sha512-4NpsnpYl2Gt1ljyBGrKMxFYAYvpqbnnkgP/i/g+NLpjEUa3obn1XJCur9YbEXKDAkaXqsR1LbDnGEJ0MmKFxfg==", - "dev": true, - "requires": { - "@types/linkify-it": "^5", - "@types/mdurl": "^2" - } - }, - "@types/mdurl": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@types/mdurl/-/mdurl-2.0.0.tgz", - "integrity": "sha512-RGdgjQUZba5p6QEFAVx2OGb8rQDL/cPRG7GiedRzMcJ1tYnUANBncjbSB1NRGwbvjcPeikRABz2nshyPk1bhWg==", - "dev": true - }, - "@types/minimatch": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-5.1.2.tgz", - "integrity": "sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA==", - "dev": true, - "peer": true - }, - "@types/mocha": { - "version": "10.0.10", - "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-10.0.10.tgz", - "integrity": "sha512-xPyYSz1cMPnJQhl0CLMH68j3gprKZaTjG3s5Vi+fDgx+uhG9NOXwbVt52eFS8ECyXhyKcjDLCBEqBExKuiZb7Q==", - "dev": true, - "peer": true - }, - "@types/node": { - "version": "22.7.5", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.7.5.tgz", - "integrity": "sha512-jML7s2NAzMWc//QSJ1a3prpk78cOPchGvXJsC3C6R6PSMoooztvRVQEz89gmBTBY1SPMaqo5teB4uNHPdetShQ==", - "devOptional": true, - "requires": { - "undici-types": "~6.19.2" - } - }, - "@types/pbkdf2": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/@types/pbkdf2/-/pbkdf2-3.1.2.tgz", - "integrity": "sha512-uRwJqmiXmh9++aSu1VNEn3iIxWOhd8AHXNSdlaLfdAAdSTY9jYVeGWnzejM3dvrkbqE3/hyQkQQ29IFATEGlew==", - "dev": true, - "peer": true, - "requires": { - "@types/node": "*" - } - }, - "@types/prettier": { - "version": "2.7.3", - "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.7.3.tgz", - "integrity": "sha512-+68kP9yzs4LMp7VNh8gdzMSPZFL44MLGqiHWvttYJe+6qnuVr4Ek9wSBQoveqY/r+LwjCcU29kNVkidwim+kYA==", - "dev": true, - "peer": true - }, - "@types/qs": { - "version": "6.14.0", - "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.14.0.tgz", - "integrity": "sha512-eOunJqu0K1923aExK6y8p6fsihYEn/BYuQ4g0CxAAgFc4b/ZLN4CrsRZ55srTdqoiLzU2B2evC+apEIxprEzkQ==", - "dev": true, - "peer": true - }, - "@types/secp256k1": { - "version": "4.0.7", - "resolved": "https://registry.npmjs.org/@types/secp256k1/-/secp256k1-4.0.7.tgz", - "integrity": "sha512-Rcvjl6vARGAKRO6jHeKMatGrvOMGrR/AR11N1x2LqintPCyDZ7NBhrh238Z2VZc7aM7KIwnFpFQ7fnfK4H/9Qw==", - "dev": true, - "peer": true, - "requires": { - "@types/node": "*" - } - }, - "@yarnpkg/lockfile": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@yarnpkg/lockfile/-/lockfile-1.1.0.tgz", - "integrity": "sha512-GpSwvyXOcOOlV70vbnzjj4fW5xW/FdUF6nQEt1ENy7m4ZCczi1+/buVUPAqmGfqznsORNFzUMjctTIp8a9tuCQ==" - }, - "@zksync/contracts": { - "version": "git+ssh://git@github.com/matter-labs/era-contracts.git#446d391d34bdb48255d5f8fef8a8248925fc98b9", - "integrity": "sha512-F+mqGoqlXzBgGVeNDuzZOou4UvGoJC0aTLWLwMTKvKo0umUcR+Wocl1PRK9d+iavF1oAUgd5Ljpg+aKn8AwXQw==", - "from": "@zksync/contracts@github:matter-labs/era-contracts#446d391d34bdb48255d5f8fef8a8248925fc98b9" - }, - "abbrev": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.0.9.tgz", - "integrity": "sha512-LEyx4aLEC3x6T0UguF6YILf+ntvmOaWsVfENmIW0E9H09vKlLDGelMjjSm0jkDHALj8A8quZ/HapKNigzwge+Q==", - "dev": true, - "peer": true - }, - "acorn": { - "version": "8.15.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", - "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==" - }, - "acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "requires": {} - }, - "acorn-walk": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.2.tgz", - "integrity": "sha512-cjkyv4OtNCIeqhHrfS81QWXoCBPExR/J62oyEqepVw8WaQeSqpW2uhuLPh1m9eWhDuOo/jUXVTlifvesOWp/4A==", - "dev": true, - "peer": true - }, - "adm-zip": { - "version": "0.4.16", - "resolved": "https://registry.npmjs.org/adm-zip/-/adm-zip-0.4.16.tgz", - "integrity": "sha512-TFi4HBKSGfIKsK5YCkKaaFG2m4PEDyViZmEwof3MTIgzimHLto6muaHVpbrljdIvIrFZzEq/p4nafOeLcYegrg==", - "dev": true - }, - "aes-js": { - "version": "4.0.0-beta.5", - "resolved": "https://registry.npmjs.org/aes-js/-/aes-js-4.0.0-beta.5.tgz", - "integrity": "sha512-G965FqalsNyrPqgEGON7nIx1e/OVENSgiEIzyC63haUMuvNnwIgIjMs52hlTCKhkBny7A2ORNlfY9Zu+jmGk1Q==", - "dev": true, - "peer": true - }, - "agent-base": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", - "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", - "dev": true, - "requires": { - "debug": "4" - } - }, - "aggregate-error": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", - "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==", - "dev": true, - "requires": { - "clean-stack": "^2.0.0", - "indent-string": "^4.0.0" - } - }, - "ajv": { - "version": "8.17.1", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", - "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", - "dev": true, - "peer": true, - "requires": { - "fast-deep-equal": "^3.1.3", - "fast-uri": "^3.0.1", - "json-schema-traverse": "^1.0.0", - "require-from-string": "^2.0.2" - } - }, - "amdefine": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz", - "integrity": "sha512-S2Hw0TtNkMJhIabBwIojKL9YHO5T0n5eNqWJ7Lrlel/zDbftQpxpapi8tZs3X1HWa+u+QeydGmzzNU0m09+Rcg==", - "dev": true, - "optional": true, - "peer": true - }, - "ansi-align": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-3.0.1.tgz", - "integrity": "sha512-IOfwwBF5iczOjp/WeY4YxyjqAFMQoZufdQWDd19SEExbVLNXqvpzSJ/M7Za4/sCPmQ0+GRquoA7bGcINcxew6w==", - "dev": true, - "requires": { - "string-width": "^4.1.0" - } - }, - "ansi-colors": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz", - "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==" - }, - "ansi-escape-sequences": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/ansi-escape-sequences/-/ansi-escape-sequences-4.1.0.tgz", - "integrity": "sha512-dzW9kHxH011uBsidTXd14JXgzye/YLb2LzeKZ4bsgl/Knwx8AtbSFkkGxagdNOoh0DlqHCmfiEjWKBaqjOanVw==", - "dev": true, - "requires": { - "array-back": "^3.0.1" - } - }, - "ansi-escapes": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", - "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", - "dev": true, - "requires": { - "type-fest": "^0.21.3" - } - }, - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==" - }, - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "peer": true, - "requires": { - "color-convert": "^1.9.0" - } - }, - "antlr4ts": { - "version": "0.5.0-alpha.4", - "resolved": "https://registry.npmjs.org/antlr4ts/-/antlr4ts-0.5.0-alpha.4.tgz", - "integrity": "sha512-WPQDt1B74OfPv/IMS2ekXAKkTZIHl88uMetg6q3OTqgFxZ/dxDXI0EWLyZid/1Pe6hTftyg5N7gel5wNAGxXyQ==", - "dev": true, - "peer": true - }, - "anymatch": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", - "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", - "dev": true, - "requires": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - } - }, - "arg": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", - "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", - "dev": true, - "peer": true - }, - "argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" - }, - "array-back": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-3.1.0.tgz", - "integrity": "sha512-TkuxA4UCOvxuDK6NZYXCalszEzj+TLszyASooky+i742l9TqsOdYCMJJupxRic61hwquNtppB3hgcuq9SVSH1Q==", - "dev": true - }, - "array-buffer-byte-length": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/array-buffer-byte-length/-/array-buffer-byte-length-1.0.1.tgz", - "integrity": "sha512-ahC5W1xgou+KTXix4sAO8Ki12Q+jf4i0+tmk3sC+zgcynshkHxzpXdImBehiUYKKKDwvfFiJl1tZt6ewscS1Mg==", - "dev": true, - "requires": { - "call-bind": "^1.0.5", - "is-array-buffer": "^3.0.4" - } - }, - "array-union": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", - "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==" - }, - "array-uniq": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz", - "integrity": "sha512-MNha4BWQ6JbwhFhj03YK552f7cb3AzoE8SzeljgChvL1dl3IcvggXVz1DilzySZkCja+CXuZbdW7yATchWn8/Q==", - "dev": true, - "peer": true - }, - "array.prototype.findlast": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/array.prototype.findlast/-/array.prototype.findlast-1.2.5.tgz", - "integrity": "sha512-CVvd6FHg1Z3POpBLxO6E6zr+rSKEQ9L6rZHAaY7lLfhKsWYUBBOuMs0e9o24oopj6H+geRCX0YJ+TJLBK2eHyQ==", - "dev": true, - "requires": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.2", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.0.0", - "es-shim-unscopables": "^1.0.2" - } - }, - "arraybuffer.prototype.slice": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.3.tgz", - "integrity": "sha512-bMxMKAjg13EBSVscxTaYA4mRc5t1UAXa2kXiGTNfZ079HIWXEkKmkgFrh/nJqamaLSrXO5H4WFFkPEaLJWbs3A==", - "dev": true, - "requires": { - "array-buffer-byte-length": "^1.0.1", - "call-bind": "^1.0.5", - "define-properties": "^1.2.1", - "es-abstract": "^1.22.3", - "es-errors": "^1.2.1", - "get-intrinsic": "^1.2.3", - "is-array-buffer": "^3.0.4", - "is-shared-array-buffer": "^1.0.2" - } - }, - "asap": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", - "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==", - "dev": true, - "peer": true - }, - "assertion-error": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", - "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==" - }, - "astral-regex": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", - "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", - "dev": true, - "peer": true - }, - "async": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", - "integrity": "sha512-nSVgobk4rv61R9PUSDtYt7mPVB2olxNR5RWJcAsH676/ef11bUZwvu7+RGYrYauVdDPcO519v68wRhXQtxsV9w==", - "dev": true, - "peer": true - }, - "asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", - "dev": true, - "peer": true - }, - "at-least-node": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", - "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==" - }, - "available-typed-arrays": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz", - "integrity": "sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==", - "dev": true, - "requires": { - "possible-typed-array-names": "^1.0.0" - } - }, - "axios": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.12.2.tgz", - "integrity": "sha512-vMJzPewAlRyOgxV2dU0Cuz2O8zzzx9VYtbJOaBgXFeLc4IV/Eg50n4LowmehOOR61S8ZMpc2K5Sa7g6A4jfkUw==", - "dev": true, - "peer": true, - "requires": { - "follow-redirects": "^1.15.6", - "form-data": "^4.0.4", - "proxy-from-env": "^1.1.0" - } - }, - "balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" - }, - "base-x": { - "version": "3.0.11", - "resolved": "https://registry.npmjs.org/base-x/-/base-x-3.0.11.tgz", - "integrity": "sha512-xz7wQ8xDhdyP7tQxwdteLYeFfS68tSMNCZ/Y37WJ4bhGfKPpqEIlmIyueQHqOyoPhE6xNUqjzRr8ra0eF9VRvA==", - "dev": true, - "peer": true, - "requires": { - "safe-buffer": "^5.0.1" - } - }, - "bech32": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/bech32/-/bech32-1.1.4.tgz", - "integrity": "sha512-s0IrSOzLlbvX7yp4WBfPITzpAU8sqQcpsmwXDiKwrG4r491vwCO/XpejasRNl0piBMe/DvP4Tz0mIS/X1DPJBQ==" - }, - "better-path-resolve": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/better-path-resolve/-/better-path-resolve-1.0.0.tgz", - "integrity": "sha512-pbnl5XzGBdrFU/wT4jqmJVPn2B6UHPBOhzMQkY/SPUPB6QtUXtmBHBIwCbXJol93mOpGMnQyP/+BB19q04xj7g==", - "requires": { - "is-windows": "^1.0.0" - } - }, - "binary-extensions": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", - "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", - "dev": true - }, - "blakejs": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/blakejs/-/blakejs-1.2.1.tgz", - "integrity": "sha512-QXUSXI3QVc/gJME0dBpXrag1kbzOqCjCX8/b54ntNyW6sjtoqxqRk3LTmXzaJoh71zMsDCjM+47jS7XiwN/+fQ==", - "dev": true, - "peer": true - }, - "bluebird": { - "version": "3.7.2", - "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", - "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==", - "dev": true - }, - "bn.js": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.1.tgz", - "integrity": "sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==" - }, - "boxen": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/boxen/-/boxen-5.1.2.tgz", - "integrity": "sha512-9gYgQKXx+1nP8mP7CzFyaUARhg7D3n1dF/FnErWmu9l6JvGpNUN278h0aSb+QjoiKSWG+iZ3uHrcqk0qrY9RQQ==", - "dev": true, - "requires": { - "ansi-align": "^3.0.0", - "camelcase": "^6.2.0", - "chalk": "^4.1.0", - "cli-boxes": "^2.2.1", - "string-width": "^4.2.2", - "type-fest": "^0.20.2", - "widest-line": "^3.1.0", - "wrap-ansi": "^7.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - }, - "type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "dev": true - } - } - }, - "brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "braces": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", - "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", - "requires": { - "fill-range": "^7.1.1" - } - }, - "brorand": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", - "integrity": "sha512-cKV8tMCEpQs4hK/ik71d6LrPOnpkpGBR0wzxqr68g2m/LB2GxVYQroAjMJZRVM1Y4BCjCKc3vAamxSzOY2RP+w==" - }, - "browser-stdout": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", - "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", - "dev": true - }, - "browserify-aes": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz", - "integrity": "sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA==", - "dev": true, - "peer": true, - "requires": { - "buffer-xor": "^1.0.3", - "cipher-base": "^1.0.0", - "create-hash": "^1.1.0", - "evp_bytestokey": "^1.0.3", - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" - } - }, - "bs58": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/bs58/-/bs58-4.0.1.tgz", - "integrity": "sha512-Ok3Wdf5vOIlBrgCvTq96gBkJw+JUEzdBgyaza5HLtPm7yTHkjRy8+JzNyHF7BHa0bNWOQIp3m5YF0nnFcOIKLw==", - "dev": true, - "peer": true, - "requires": { - "base-x": "^3.0.2" - } - }, - "bs58check": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/bs58check/-/bs58check-2.1.2.tgz", - "integrity": "sha512-0TS1jicxdU09dwJMNZtVAfzPi6Q6QeN0pM1Fkzrjn+XYHvzMKPU3pHVpva+769iNVSfIYWf7LJ6WR+BuuMf8cA==", - "dev": true, - "peer": true, - "requires": { - "bs58": "^4.0.0", - "create-hash": "^1.1.0", - "safe-buffer": "^5.1.2" - } - }, - "buffer-from": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", - "dev": true - }, - "buffer-xor": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz", - "integrity": "sha512-571s0T7nZWK6vB67HI5dyUF7wXiNcfaPPPTl6zYCNApANjIvYJTg7hlud/+cJpdAhS7dVzqMLmfhfHR3rAcOjQ==", - "dev": true, - "peer": true - }, - "bufio": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/bufio/-/bufio-1.2.1.tgz", - "integrity": "sha512-9oR3zNdupcg/Ge2sSHQF3GX+kmvL/fTPvD0nd5AGLq8SjUYnTz+SlFjK/GXidndbZtIj+pVKXiWeR9w6e9wKCA==" - }, - "bytes": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", - "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", - "dev": true - }, - "cache-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/cache-point/-/cache-point-2.0.0.tgz", - "integrity": "sha512-4gkeHlFpSKgm3vm2gJN5sPqfmijYRFYCQ6tv5cLw0xVmT6r1z1vd4FNnpuOREco3cBs1G709sZ72LdgddKvL5w==", - "dev": true, - "requires": { - "array-back": "^4.0.1", - "fs-then-native": "^2.0.0", - "mkdirp2": "^1.0.4" - }, - "dependencies": { - "array-back": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-4.0.2.tgz", - "integrity": "sha512-NbdMezxqf94cnNfWLL7V/im0Ub+Anbb0IoZhvzie8+4HJ4nMQuzHuy49FkGYCJK2yAloZ3meiB6AVMClbrI1vg==", - "dev": true - } - } - }, - "call-bind": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.8.tgz", - "integrity": "sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==", - "dev": true, - "requires": { - "call-bind-apply-helpers": "^1.0.0", - "es-define-property": "^1.0.0", - "get-intrinsic": "^1.2.4", - "set-function-length": "^1.2.2" - } - }, - "call-bind-apply-helpers": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", - "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", - "dev": true, - "requires": { - "es-errors": "^1.3.0", - "function-bind": "^1.1.2" - } - }, - "call-bound": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", - "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", - "dev": true, - "requires": { - "call-bind-apply-helpers": "^1.0.2", - "get-intrinsic": "^1.3.0" - } - }, - "callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==" - }, - "camelcase": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", - "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", - "dev": true - }, - "caseless": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", - "integrity": "sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw==", - "dev": true, - "peer": true - }, - "catharsis": { - "version": "0.9.0", - "resolved": "https://registry.npmjs.org/catharsis/-/catharsis-0.9.0.tgz", - "integrity": "sha512-prMTQVpcns/tzFgFVkVp6ak6RykZyWb3gu8ckUpd6YkTlacOd3DXGJjIpD4Q6zJirizvaiAjSSHlOsA+6sNh2A==", - "dev": true, - "requires": { - "lodash": "^4.17.15" - } - }, - "cbor": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/cbor/-/cbor-8.1.0.tgz", - "integrity": "sha512-DwGjNW9omn6EwP70aXsn7FQJx5kO12tX0bZkaTjzdVFM6/7nhA4t0EENocKGx6D2Bch9PE2KzCUf5SceBdeijg==", - "dev": true, - "peer": true, - "requires": { - "nofilter": "^3.1.0" - } - }, - "chai": { - "version": "4.4.1", - "resolved": "https://registry.npmjs.org/chai/-/chai-4.4.1.tgz", - "integrity": "sha512-13sOfMv2+DWduEU+/xbun3LScLoqN17nBeTLUsmDfKdoiC1fr0n9PU4guu4AhRcOVFk/sW8LyZWHuhWtQZiF+g==", - "requires": { - "assertion-error": "^1.1.0", - "check-error": "^1.0.3", - "deep-eql": "^4.1.3", - "get-func-name": "^2.0.2", - "loupe": "^2.3.6", - "pathval": "^1.1.1", - "type-detect": "^4.0.8" - } - }, - "chai-as-promised": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/chai-as-promised/-/chai-as-promised-7.1.2.tgz", - "integrity": "sha512-aBDHZxRzYnUYuIAIPBH2s511DjlKPzXNlXSGFC8CwmroWQLfrW0LtE1nK3MAwwNhJPa9raEjNCmRoFpG0Hurdw==", - "dev": true, - "peer": true, - "requires": { - "check-error": "^1.0.2" - } - }, - "chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "peer": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - }, - "chardet": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/chardet/-/chardet-2.1.0.tgz", - "integrity": "sha512-bNFETTG/pM5ryzQ9Ad0lJOTa6HWD/YsScAR3EnCPZRPlQh77JocYktSHOUHelyhm8IARL+o4c4F1bP5KVOjiRA==" - }, - "charenc": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/charenc/-/charenc-0.0.2.tgz", - "integrity": "sha512-yrLQ/yVUFXkzg7EDQsPieE/53+0RlaWTs+wBrvW36cyilJ2SaDWfl4Yj7MtLTXleV9uEKefbAGUPv2/iWSooRA==", - "dev": true, - "peer": true - }, - "check-error": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.3.tgz", - "integrity": "sha512-iKEoDYaRmd1mxM90a2OEfWhjsjPpYPuQ+lMYsoxB126+t8fw7ySEO48nmDg5COTjxDI65/Y2OWpeEHk3ZOe8zg==", - "requires": { - "get-func-name": "^2.0.2" - } - }, - "chokidar": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.1.tgz", - "integrity": "sha512-n8enUVCED/KVRQlab1hr3MVpcVMvxtZjmEa956u+4YijlmQED223XMSYj2tLuKvr4jcCTzNNMpQDUer72MMmzA==", - "dev": true, - "requires": { - "readdirp": "^4.0.1" - }, - "dependencies": { - "readdirp": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.0.2.tgz", - "integrity": "sha512-yDMz9g+VaZkqBYS/ozoBJwaBhTbZo3UNYQHNRw1D3UFQB8oHB4uS/tAODO+ZLjGWmUbKnIlOWO+aaIiAxrUWHA==", - "dev": true - } - } - }, - "ci-info": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", - "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==" - }, - "cipher-base": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.7.tgz", - "integrity": "sha512-Mz9QMT5fJe7bKI7MH31UilT5cEK5EHHRCccw/YRFsRY47AuNgaV6HY3rscp0/I4Q+tTW/5zoqpSeRRI54TkDWA==", - "dev": true, - "peer": true, - "requires": { - "inherits": "^2.0.4", - "safe-buffer": "^5.2.1", - "to-buffer": "^1.2.2" - } - }, - "clean-stack": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", - "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", - "dev": true - }, - "cli-boxes": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-2.2.1.tgz", - "integrity": "sha512-y4coMcylgSCdVinjiDBuR8PCC2bLjyGTwEmPb9NHR/QaNU6EUOXcTY/s6VjGMD6ENSEaeQYHCY0GNGS5jfMwPw==", - "dev": true - }, - "cli-table3": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/cli-table3/-/cli-table3-0.5.1.tgz", - "integrity": "sha512-7Qg2Jrep1S/+Q3EceiZtQcDPWxhAvBw+ERf1162v4sikJrvojMHFqXt8QIVha8UlH9rgU0BeWPytZ9/TzYqlUw==", - "dev": true, - "peer": true, - "requires": { - "colors": "^1.1.2", - "object-assign": "^4.1.0", - "string-width": "^2.1.1" - }, - "dependencies": { - "ansi-regex": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.1.tgz", - "integrity": "sha512-+O9Jct8wf++lXxxFc4hc8LsjaSq0HFzzL7cVsw8pRDIPdjKD2mT4ytDZlLuSBZ4cLKZFXIrMGO7DbQCtMJJMKw==", - "dev": true, - "peer": true - }, - "is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w==", - "dev": true, - "peer": true - }, - "string-width": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", - "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", - "dev": true, - "peer": true, - "requires": { - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^4.0.0" - } - }, - "strip-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha512-4XaJ2zQdCzROZDivEVIDPkcQn8LMFSa8kj8Gxb/Lnwzv9A8VctNZ+lfivC/sV3ivW8ElJTERXZoPBRrZKkNKow==", - "dev": true, - "peer": true, - "requires": { - "ansi-regex": "^3.0.0" - } - } - } - }, - "cliui": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", - "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", - "dev": true, - "requires": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^7.0.0" - } - }, - "collect-all": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/collect-all/-/collect-all-1.0.4.tgz", - "integrity": "sha512-RKZhRwJtJEP5FWul+gkSMEnaK6H3AGPTTWOiRimCcs+rc/OmQE3Yhy1Q7A7KsdkG3ZXVdZq68Y6ONSdvkeEcKA==", - "dev": true, - "requires": { - "stream-connect": "^1.0.2", - "stream-via": "^1.0.4" - } - }, - "color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, - "peer": true, - "requires": { - "color-name": "1.1.3" - } - }, - "color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", - "dev": true, - "peer": true - }, - "colors": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/colors/-/colors-1.4.0.tgz", - "integrity": "sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==", - "dev": true, - "peer": true - }, - "combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "dev": true, - "peer": true, - "requires": { - "delayed-stream": "~1.0.0" - } - }, - "command-exists": { - "version": "1.2.9", - "resolved": "https://registry.npmjs.org/command-exists/-/command-exists-1.2.9.tgz", - "integrity": "sha512-LTQ/SGc+s0Xc0Fu5WaKnR0YiygZkm9eKFvyS+fRsU7/ZWFF8ykFM6Pc9aCVf1+xasOOZpO3BAVgVrKvsqKHV7w==", - "dev": true - }, - "command-line-args": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/command-line-args/-/command-line-args-5.2.1.tgz", - "integrity": "sha512-H4UfQhZyakIjC74I9d34fGYDwk3XpSr17QhEd0Q3I9Xq1CETHo4Hcuo87WyWHpAF1aSLjLRf5lD9ZGX2qStUvg==", - "dev": true, - "requires": { - "array-back": "^3.1.0", - "find-replace": "^3.0.0", - "lodash.camelcase": "^4.3.0", - "typical": "^4.0.0" - } - }, - "command-line-tool": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/command-line-tool/-/command-line-tool-0.8.0.tgz", - "integrity": "sha512-Xw18HVx/QzQV3Sc5k1vy3kgtOeGmsKIqwtFFoyjI4bbcpSgnw2CWVULvtakyw4s6fhyAdI6soQQhXc2OzJy62g==", - "dev": true, - "requires": { - "ansi-escape-sequences": "^4.0.0", - "array-back": "^2.0.0", - "command-line-args": "^5.0.0", - "command-line-usage": "^4.1.0", - "typical": "^2.6.1" - }, - "dependencies": { - "array-back": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-2.0.0.tgz", - "integrity": "sha512-eJv4pLLufP3g5kcZry0j6WXpIbzYw9GUB4mVJZno9wfwiBxbizTnHCw3VJb07cBihbFX48Y7oSrW9y+gt4glyw==", - "dev": true, - "requires": { - "typical": "^2.6.1" - } - }, - "command-line-usage": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/command-line-usage/-/command-line-usage-4.1.0.tgz", - "integrity": "sha512-MxS8Ad995KpdAC0Jopo/ovGIroV/m0KHwzKfXxKag6FHOkGsH8/lv5yjgablcRxCJJC0oJeUMuO/gmaq+Wq46g==", - "dev": true, - "requires": { - "ansi-escape-sequences": "^4.0.0", - "array-back": "^2.0.0", - "table-layout": "^0.4.2", - "typical": "^2.6.1" - } - }, - "reduce-flatten": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/reduce-flatten/-/reduce-flatten-1.0.1.tgz", - "integrity": "sha512-j5WfFJfc9CoXv/WbwVLHq74i/hdTUpy+iNC534LxczMRP67vJeK3V9JOdnL0N1cIRbn9mYhE2yVjvvKXDxvNXQ==", - "dev": true - }, - "table-layout": { - "version": "0.4.5", - "resolved": "https://registry.npmjs.org/table-layout/-/table-layout-0.4.5.tgz", - "integrity": "sha512-zTvf0mcggrGeTe/2jJ6ECkJHAQPIYEwDoqsiqBjI24mvRmQbInK5jq33fyypaCBxX08hMkfmdOqj6haT33EqWw==", - "dev": true, - "requires": { - "array-back": "^2.0.0", - "deep-extend": "~0.6.0", - "lodash.padend": "^4.6.1", - "typical": "^2.6.1", - "wordwrapjs": "^3.0.0" - } - }, - "typical": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/typical/-/typical-2.6.1.tgz", - "integrity": "sha512-ofhi8kjIje6npGozTip9Fr8iecmYfEbS06i0JnIg+rh51KakryWF4+jX8lLKZVhy6N+ID45WYSFCxPOdTWCzNg==", - "dev": true - }, - "wordwrapjs": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/wordwrapjs/-/wordwrapjs-3.0.0.tgz", - "integrity": "sha512-mO8XtqyPvykVCsrwj5MlOVWvSnCdT+C+QVbm6blradR7JExAhbkZ7hZ9A+9NUtwzSqrlUo9a67ws0EiILrvRpw==", - "dev": true, - "requires": { - "reduce-flatten": "^1.0.1", - "typical": "^2.6.1" - } - } - } - }, - "command-line-usage": { - "version": "6.1.3", - "resolved": "https://registry.npmjs.org/command-line-usage/-/command-line-usage-6.1.3.tgz", - "integrity": "sha512-sH5ZSPr+7UStsloltmDh7Ce5fb8XPlHyoPzTpyyMuYCtervL65+ubVZ6Q61cFtFl62UyJlc8/JwERRbAFPUqgw==", - "dev": true, - "peer": true, - "requires": { - "array-back": "^4.0.2", - "chalk": "^2.4.2", - "table-layout": "^1.0.2", - "typical": "^5.2.0" - }, - "dependencies": { - "array-back": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-4.0.2.tgz", - "integrity": "sha512-NbdMezxqf94cnNfWLL7V/im0Ub+Anbb0IoZhvzie8+4HJ4nMQuzHuy49FkGYCJK2yAloZ3meiB6AVMClbrI1vg==", - "dev": true, - "peer": true - }, - "typical": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/typical/-/typical-5.2.0.tgz", - "integrity": "sha512-dvdQgNDNJo+8B2uBQoqdb11eUCE1JQXhvjC/CZtgvZseVd5TYMXnq0+vuUemXbd/Se29cTaUuPX3YIc2xgbvIg==", - "dev": true, - "peer": true - } - } - }, - "commander": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz", - "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==", - "dev": true - }, - "common-sequence": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/common-sequence/-/common-sequence-2.0.2.tgz", - "integrity": "sha512-jAg09gkdkrDO9EWTdXfv80WWH3yeZl5oT69fGfedBNS9pXUKYInVJ1bJ+/ht2+Moeei48TmSbQDYMc8EOx9G0g==", - "dev": true - }, - "concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" - }, - "concat-stream": { - "version": "1.6.2", - "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", - "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", - "dev": true, - "peer": true, - "requires": { - "buffer-from": "^1.0.0", - "inherits": "^2.0.3", - "readable-stream": "^2.2.2", - "typedarray": "^0.0.6" - }, - "dependencies": { - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", - "dev": true, - "peer": true - }, - "readable-stream": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", - "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", - "dev": true, - "peer": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true, - "peer": true - }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, - "peer": true, - "requires": { - "safe-buffer": "~5.1.0" - } - } - } - }, - "config-master": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/config-master/-/config-master-3.1.0.tgz", - "integrity": "sha512-n7LBL1zBzYdTpF1mx5DNcZnZn05CWIdsdvtPL4MosvqbBUK3Rq6VWEtGUuF3Y0s9/CIhMejezqlSkP6TnCJ/9g==", - "dev": true, - "requires": { - "walk-back": "^2.0.1" - }, - "dependencies": { - "walk-back": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/walk-back/-/walk-back-2.0.1.tgz", - "integrity": "sha512-Nb6GvBR8UWX1D+Le+xUq0+Q1kFmRBIWVrfLnQAOmcpEzA9oAxwJ9gIr36t9TWYfzvWRvuMtjHiVsJYEkXWaTAQ==", - "dev": true - } - } - }, - "cookie": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.2.tgz", - "integrity": "sha512-aSWTXFzaKWkvHO1Ny/s+ePFpvKsPnjc551iI41v3ny/ow6tBG5Vd+FuqGNhh1LxOmVzOlGUriIlOaokOvhaStA==", - "dev": true - }, - "core-util-is": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", - "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", - "dev": true, - "peer": true - }, - "create-hash": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz", - "integrity": "sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg==", - "dev": true, - "peer": true, - "requires": { - "cipher-base": "^1.0.1", - "inherits": "^2.0.1", - "md5.js": "^1.3.4", - "ripemd160": "^2.0.1", - "sha.js": "^2.4.0" - } - }, - "create-hmac": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.7.tgz", - "integrity": "sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg==", - "dev": true, - "peer": true, - "requires": { - "cipher-base": "^1.0.3", - "create-hash": "^1.1.0", - "inherits": "^2.0.1", - "ripemd160": "^2.0.0", - "safe-buffer": "^5.0.1", - "sha.js": "^2.4.8" - } - }, - "create-require": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", - "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", - "dev": true, - "peer": true - }, - "cross-spawn": { - "version": "6.0.6", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.6.tgz", - "integrity": "sha512-VqCUuhcd1iB+dsv8gxPttb5iZh/D0iubSP21g36KXdEuf6I5JiioesUVjpCdHV9MZRUfVFlvwtIUyPfxo5trtw==", - "requires": { - "nice-try": "^1.0.4", - "path-key": "^2.0.1", - "semver": "^5.5.0", - "shebang-command": "^1.2.0", - "which": "^1.2.9" - }, - "dependencies": { - "semver": { - "version": "5.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", - "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==" - } - } - }, - "crypt": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/crypt/-/crypt-0.0.2.tgz", - "integrity": "sha512-mCxBlsHFYh9C+HVpiEacem8FEBnMXgU9gy4zmNC+SXAZNB/1idgp/aulFJ4FgCi7GPEVbfyng092GqL2k2rmow==", - "dev": true, - "peer": true - }, - "data-view-buffer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/data-view-buffer/-/data-view-buffer-1.0.1.tgz", - "integrity": "sha512-0lht7OugA5x3iJLOWFhWK/5ehONdprk0ISXqVFn/NFrDu+cuc8iADFrGQz5BnRK7LLU3JmkbXSxaqX+/mXYtUA==", - "dev": true, - "requires": { - "call-bind": "^1.0.6", - "es-errors": "^1.3.0", - "is-data-view": "^1.0.1" - } - }, - "data-view-byte-length": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/data-view-byte-length/-/data-view-byte-length-1.0.1.tgz", - "integrity": "sha512-4J7wRJD3ABAzr8wP+OcIcqq2dlUKp4DVflx++hs5h5ZKydWMI6/D/fAot+yh6g2tHh8fLFTvNOaVN357NvSrOQ==", - "dev": true, - "requires": { - "call-bind": "^1.0.7", - "es-errors": "^1.3.0", - "is-data-view": "^1.0.1" - } - }, - "data-view-byte-offset": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/data-view-byte-offset/-/data-view-byte-offset-1.0.0.tgz", - "integrity": "sha512-t/Ygsytq+R995EJ5PZlD4Cu56sWa8InXySaViRzw9apusqsOO2bQP+SbYzAhR0pFKoB+43lYy8rWban9JSuXnA==", - "dev": true, - "requires": { - "call-bind": "^1.0.6", - "es-errors": "^1.3.0", - "is-data-view": "^1.0.1" - } - }, - "dataloader": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/dataloader/-/dataloader-1.4.0.tgz", - "integrity": "sha512-68s5jYdlvasItOJnCuI2Q9s4q98g0pCyL3HrcKJu8KNugUl8ahgmZYg38ysLTgQjjXX3H8CJLkAvWrclWfcalw==" - }, - "death": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/death/-/death-1.1.0.tgz", - "integrity": "sha512-vsV6S4KVHvTGxbEcij7hkWRv0It+sGGWVOM67dQde/o5Xjnr+KmLjxWJii2uEObIrt1CcM9w0Yaovx+iOlIL+w==", - "dev": true, - "peer": true - }, - "debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "requires": { - "ms": "2.1.2" - } - }, - "decamelize": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz", - "integrity": "sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==", - "dev": true - }, - "deep-eql": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-4.1.3.tgz", - "integrity": "sha512-WaEtAOpRA1MQ0eohqZjpGD8zdI0Ovsm8mmFhaDN8dvDZzyoUMcYDnf5Y6iu7HTXxf8JDS23qWa4a+hKCDyOPzw==", - "requires": { - "type-detect": "^4.0.0" - } - }, - "deep-extend": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", - "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", - "dev": true - }, - "deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true, - "peer": true - }, - "define-data-property": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", - "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", - "dev": true, - "requires": { - "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "gopd": "^1.0.1" - } - }, - "define-properties": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.2.1.tgz", - "integrity": "sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==", - "dev": true, - "requires": { - "define-data-property": "^1.0.1", - "has-property-descriptors": "^1.0.0", - "object-keys": "^1.1.1" - } - }, - "delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", - "dev": true, - "peer": true - }, - "depd": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", - "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", - "dev": true - }, - "detect-indent": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-6.1.0.tgz", - "integrity": "sha512-reYkTUJAZb9gUuZ2RvVCNhVHdg62RHnJ7WJl8ftMi4diZ6NWlciOzQN88pUhSELEwflJht4oQDv0F0BMlwaYtA==" - }, - "diff": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-5.0.0.tgz", - "integrity": "sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w==", - "dev": true - }, - "difflib": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/difflib/-/difflib-0.2.4.tgz", - "integrity": "sha512-9YVwmMb0wQHQNr5J9m6BSj6fk4pfGITGQOOs+D9Fl+INODWFOfvhIU1hNv6GgR1RBoC/9NJcwu77zShxV0kT7w==", - "dev": true, - "peer": true, - "requires": { - "heap": ">= 0.2.0" - } - }, - "dir-glob": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", - "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", - "requires": { - "path-type": "^4.0.0" - } - }, - "dmd": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/dmd/-/dmd-6.2.0.tgz", - "integrity": "sha512-uXWxLF1H7TkUAuoHK59/h/ts5cKavm2LnhrIgJWisip4BVzPoXavlwyoprFFn2CzcahKYgvkfaebS6oxzgflkg==", - "dev": true, - "requires": { - "array-back": "^6.2.2", - "cache-point": "^2.0.0", - "common-sequence": "^2.0.2", - "file-set": "^4.0.2", - "handlebars": "^4.7.7", - "marked": "^4.2.3", - "object-get": "^2.1.1", - "reduce-flatten": "^3.0.1", - "reduce-unique": "^2.0.1", - "reduce-without": "^1.0.1", - "test-value": "^3.0.0", - "walk-back": "^5.1.0" - }, - "dependencies": { - "array-back": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-6.2.2.tgz", - "integrity": "sha512-gUAZ7HPyb4SJczXAMUXMGAvI976JoK3qEx9v1FTmeYuJj0IBiaKttG1ydtGKdkfqWkIkouke7nG8ufGy77+Cvw==", - "dev": true - }, - "reduce-flatten": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/reduce-flatten/-/reduce-flatten-3.0.1.tgz", - "integrity": "sha512-bYo+97BmUUOzg09XwfkwALt4PQH1M5L0wzKerBt6WLm3Fhdd43mMS89HiT1B9pJIqko/6lWx3OnV4J9f2Kqp5Q==", - "dev": true - } - } - }, - "dotenv": { - "version": "16.4.5", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.5.tgz", - "integrity": "sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==", - "dev": true - }, - "dunder-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", - "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", - "dev": true, - "requires": { - "call-bind-apply-helpers": "^1.0.1", - "es-errors": "^1.3.0", - "gopd": "^1.2.0" - } - }, - "eastasianwidth": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", - "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", - "dev": true - }, - "elliptic": { - "version": "6.5.4", - "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz", - "integrity": "sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==", - "requires": { - "bn.js": "^4.11.9", - "brorand": "^1.1.0", - "hash.js": "^1.0.0", - "hmac-drbg": "^1.0.1", - "inherits": "^2.0.4", - "minimalistic-assert": "^1.0.1", - "minimalistic-crypto-utils": "^1.0.1" + "@arbitrum/nitro-contracts": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@arbitrum/nitro-contracts/-/nitro-contracts-3.0.0.tgz", + "integrity": "sha512-7VzNW9TxvrX9iONDDsi7AZlEUPa6z+cjBkB4Mxlnog9VQZAapRC3CdRXyUzHnBYmUhRzyNJdyxkWPw59QGcLmA==", + "requires": { + "@offchainlabs/upgrade-executor": "1.1.0-beta.0", + "@openzeppelin/contracts": "4.7.3", + "@openzeppelin/contracts-upgradeable": "4.7.3", + "patch-package": "^6.4.7", + "solady": "0.0.182" }, "dependencies": { - "bn.js": { - "version": "4.12.0", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", - "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" + "@openzeppelin/contracts": { + "version": "4.7.3", + "resolved": "https://registry.npmjs.org/@openzeppelin/contracts/-/contracts-4.7.3.tgz", + "integrity": "sha512-dGRS0agJzu8ybo44pCIf3xBaPQN/65AIXNgK8+4gzKd5kbvlqyxryUYVLJv7fK98Seyd2hDZzVEHSWAh0Bt1Yw==" + }, + "@openzeppelin/contracts-upgradeable": { + "version": "4.7.3", + "resolved": "https://registry.npmjs.org/@openzeppelin/contracts-upgradeable/-/contracts-upgradeable-4.7.3.tgz", + "integrity": "sha512-+wuegAMaLcZnLCJIvrVUDzA9z/Wp93f0Dla/4jJvIhijRrPabjQbZe6fWiECLaJyfn5ci9fqf9vTw3xpQOad2A==" } } }, - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "enquirer": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.4.1.tgz", - "integrity": "sha512-rRqJg/6gd538VHvR3PSrdRBb/1Vy2YfzHqzvbhGIQpDRKIa4FgV/54b5Q1xYSxOOwKvjXweS26E0Q+nAMwp2pQ==", - "requires": { - "ansi-colors": "^4.1.1", - "strip-ansi": "^6.0.1" - } - }, - "entities": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", - "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", - "dev": true - }, - "env-paths": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", - "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", - "dev": true - }, - "es-abstract": { - "version": "1.23.3", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.23.3.tgz", - "integrity": "sha512-e+HfNH61Bj1X9/jLc5v1owaLYuHdeHHSQlkhCBiTK8rBvKaULl/beGMxwrMXjpYrv4pz22BlY570vVePA2ho4A==", - "dev": true, - "requires": { - "array-buffer-byte-length": "^1.0.1", - "arraybuffer.prototype.slice": "^1.0.3", - "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.7", - "data-view-buffer": "^1.0.1", - "data-view-byte-length": "^1.0.1", - "data-view-byte-offset": "^1.0.0", - "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.0.0", - "es-set-tostringtag": "^2.0.3", - "es-to-primitive": "^1.2.1", - "function.prototype.name": "^1.1.6", - "get-intrinsic": "^1.2.4", - "get-symbol-description": "^1.0.2", - "globalthis": "^1.0.3", - "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.2", - "has-proto": "^1.0.3", - "has-symbols": "^1.0.3", - "hasown": "^2.0.2", - "internal-slot": "^1.0.7", - "is-array-buffer": "^3.0.4", - "is-callable": "^1.2.7", - "is-data-view": "^1.0.1", - "is-negative-zero": "^2.0.3", - "is-regex": "^1.1.4", - "is-shared-array-buffer": "^1.0.3", - "is-string": "^1.0.7", - "is-typed-array": "^1.1.13", - "is-weakref": "^1.0.2", - "object-inspect": "^1.13.1", - "object-keys": "^1.1.1", - "object.assign": "^4.1.5", - "regexp.prototype.flags": "^1.5.2", - "safe-array-concat": "^1.1.2", - "safe-regex-test": "^1.0.3", - "string.prototype.trim": "^1.2.9", - "string.prototype.trimend": "^1.0.8", - "string.prototype.trimstart": "^1.0.8", - "typed-array-buffer": "^1.0.2", - "typed-array-byte-length": "^1.0.1", - "typed-array-byte-offset": "^1.0.2", - "typed-array-length": "^1.0.6", - "unbox-primitive": "^1.0.2", - "which-typed-array": "^1.1.15" - } - }, - "es-define-property": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", - "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", - "dev": true - }, - "es-errors": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", - "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", - "dev": true - }, - "es-object-atoms": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", - "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", - "dev": true, - "requires": { - "es-errors": "^1.3.0" - } - }, - "es-set-tostringtag": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", - "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", - "dev": true, - "requires": { - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.6", - "has-tostringtag": "^1.0.2", - "hasown": "^2.0.2" - } - }, - "es-shim-unscopables": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.2.tgz", - "integrity": "sha512-J3yBRXCzDu4ULnQwxyToo/OjdMx6akgVC7K6few0a7F/0wLtmKKN7I73AH5T2836UuXRqN7Qg+IIUw/+YJksRw==", - "dev": true, - "requires": { - "hasown": "^2.0.0" - } - }, - "es-to-primitive": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", - "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", - "dev": true, - "requires": { - "is-callable": "^1.1.4", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.2" - } - }, - "escalade": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", - "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==", + "@babel/parser": { + "version": "7.24.8", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.24.8.tgz", + "integrity": "sha512-WzfbgXOkGzZiXXCqk43kKwZjzwx4oulxZi3nq2TYL9mOjQv6kYwul9mz6ID36njuL7Xkp6nJEfok848Zj10j/w==", "dev": true }, - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "dev": true, - "peer": true - }, - "escodegen": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.8.1.tgz", - "integrity": "sha512-yhi5S+mNTOuRvyW4gWlg5W1byMaQGWWSYHXsuFZ7GBo7tpyOwi2EdzMP/QWxh9hwkD2m+wDVHJsxhRIj+v/b/A==", - "dev": true, - "peer": true, - "requires": { - "esprima": "^2.7.1", - "estraverse": "^1.9.1", - "esutils": "^2.0.2", - "optionator": "^0.8.1", - "source-map": "~0.2.0" - } - }, - "eslint-visitor-keys": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", - "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==" - }, - "espree": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz", - "integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==", - "requires": { - "acorn": "^8.15.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^4.2.1" - } - }, - "esprima": { - "version": "2.7.3", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-2.7.3.tgz", - "integrity": "sha512-OarPfz0lFCiW4/AV2Oy1Rp9qu0iusTKqykwTspGCZtPxmF81JR4MmIebvF1F9+UOKth2ZubLQ4XGGaU+hSn99A==", - "dev": true, - "peer": true - }, - "estraverse": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-1.9.3.tgz", - "integrity": "sha512-25w1fMXQrGdoquWnScXZGckOv+Wes+JDnuN/+7ex3SauFRS72r2lFDec0EKPt2YD1wUJ/IrfEex+9yp4hfSOJA==", - "dev": true, - "peer": true + "@babel/runtime": { + "version": "7.28.4", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.28.4.tgz", + "integrity": "sha512-Q/N6JNWvIvPnLDvjlE1OUBLPQHH6l3CltCEsHIujp45zQUSSh8K+gHnaEX45yAT1nyngnINhvWtzN+Nb9D8RAQ==" }, - "esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true, - "peer": true + "@chainlink/ace": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@chainlink/ace/-/ace-1.0.0.tgz", + "integrity": "sha512-lamF+fabw5cyIQ+7PA5QkEl0GyHmmH3lc875jrspo9VxsxiKbMxDcRDGPEuubFQS3Zcx7H/Z80C72+Xm/FgeqA==" }, - "eth-gas-reporter": { - "version": "0.2.27", - "resolved": "https://registry.npmjs.org/eth-gas-reporter/-/eth-gas-reporter-0.2.27.tgz", - "integrity": "sha512-femhvoAM7wL0GcI8ozTdxfuBtBFJ9qsyIAsmKVjlWAHUbdnnXHt+lKzz/kmldM5lA9jLuNHGwuIxorNpLbR1Zw==", - "dev": true, - "peer": true, + "@chainlink/contracts": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@chainlink/contracts/-/contracts-1.5.0.tgz", + "integrity": "sha512-1fGJwjvivqAxvVOTqZUEXGR54CATtg0vjcXgSIk4Cfoad2nUhSG/qaWHXjLg1CkNTeOoteoxGQcpP/HiA5HsUA==", "requires": { - "@solidity-parser/parser": "^0.14.0", - "axios": "^1.5.1", - "cli-table3": "^0.5.0", - "colors": "1.4.0", - "ethereum-cryptography": "^1.0.3", - "ethers": "^5.7.2", - "fs-readdir-recursive": "^1.1.0", - "lodash": "^4.17.14", - "markdown-table": "^1.1.3", - "mocha": "^10.2.0", - "req-cwd": "^2.0.0", - "sha1": "^1.1.1", - "sync-request": "^6.0.0" - }, - "dependencies": { - "@ethersproject/abi": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/abi/-/abi-5.8.0.tgz", - "integrity": "sha512-b9YS/43ObplgyV6SlyQsG53/vkSal0MNA1fskSC4mbnCMi8R+NkcH8K9FPYNESf6jUefBUniE4SOKms0E/KK1Q==", - "dev": true, - "peer": true, - "requires": { - "@ethersproject/address": "^5.8.0", - "@ethersproject/bignumber": "^5.8.0", - "@ethersproject/bytes": "^5.8.0", - "@ethersproject/constants": "^5.8.0", - "@ethersproject/hash": "^5.8.0", - "@ethersproject/keccak256": "^5.8.0", - "@ethersproject/logger": "^5.8.0", - "@ethersproject/properties": "^5.8.0", - "@ethersproject/strings": "^5.8.0" - } - }, - "@ethersproject/abstract-provider": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/abstract-provider/-/abstract-provider-5.8.0.tgz", - "integrity": "sha512-wC9SFcmh4UK0oKuLJQItoQdzS/qZ51EJegK6EmAWlh+OptpQ/npECOR3QqECd8iGHC0RJb4WKbVdSfif4ammrg==", - "dev": true, - "peer": true, - "requires": { - "@ethersproject/bignumber": "^5.8.0", - "@ethersproject/bytes": "^5.8.0", - "@ethersproject/logger": "^5.8.0", - "@ethersproject/networks": "^5.8.0", - "@ethersproject/properties": "^5.8.0", - "@ethersproject/transactions": "^5.8.0", - "@ethersproject/web": "^5.8.0" - } - }, - "@ethersproject/abstract-signer": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/abstract-signer/-/abstract-signer-5.8.0.tgz", - "integrity": "sha512-N0XhZTswXcmIZQdYtUnd79VJzvEwXQw6PK0dTl9VoYrEBxxCPXqS0Eod7q5TNKRxe1/5WUMuR0u0nqTF/avdCA==", - "dev": true, - "peer": true, - "requires": { - "@ethersproject/abstract-provider": "^5.8.0", - "@ethersproject/bignumber": "^5.8.0", - "@ethersproject/bytes": "^5.8.0", - "@ethersproject/logger": "^5.8.0", - "@ethersproject/properties": "^5.8.0" - } - }, - "@ethersproject/address": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/address/-/address-5.8.0.tgz", - "integrity": "sha512-GhH/abcC46LJwshoN+uBNoKVFPxUuZm6dA257z0vZkKmU1+t8xTn8oK7B9qrj8W2rFRMch4gbJl6PmVxjxBEBA==", - "dev": true, - "peer": true, - "requires": { - "@ethersproject/bignumber": "^5.8.0", - "@ethersproject/bytes": "^5.8.0", - "@ethersproject/keccak256": "^5.8.0", - "@ethersproject/logger": "^5.8.0", - "@ethersproject/rlp": "^5.8.0" - } - }, - "@ethersproject/base64": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/base64/-/base64-5.8.0.tgz", - "integrity": "sha512-lN0oIwfkYj9LbPx4xEkie6rAMJtySbpOAFXSDVQaBnAzYfB4X2Qr+FXJGxMoc3Bxp2Sm8OwvzMrywxyw0gLjIQ==", - "dev": true, - "peer": true, - "requires": { - "@ethersproject/bytes": "^5.8.0" - } - }, - "@ethersproject/basex": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/basex/-/basex-5.8.0.tgz", - "integrity": "sha512-PIgTszMlDRmNwW9nhS6iqtVfdTAKosA7llYXNmGPw4YAI1PUyMv28988wAb41/gHF/WqGdoLv0erHaRcHRKW2Q==", - "dev": true, - "peer": true, - "requires": { - "@ethersproject/bytes": "^5.8.0", - "@ethersproject/properties": "^5.8.0" - } - }, - "@ethersproject/bignumber": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/bignumber/-/bignumber-5.8.0.tgz", - "integrity": "sha512-ZyaT24bHaSeJon2tGPKIiHszWjD/54Sz8t57Toch475lCLljC6MgPmxk7Gtzz+ddNN5LuHea9qhAe0x3D+uYPA==", - "dev": true, - "peer": true, - "requires": { - "@ethersproject/bytes": "^5.8.0", - "@ethersproject/logger": "^5.8.0", - "bn.js": "^5.2.1" - } - }, - "@ethersproject/bytes": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/bytes/-/bytes-5.8.0.tgz", - "integrity": "sha512-vTkeohgJVCPVHu5c25XWaWQOZ4v+DkGoC42/TS2ond+PARCxTJvgTFUNDZovyQ/uAQ4EcpqqowKydcdmRKjg7A==", - "dev": true, - "peer": true, - "requires": { - "@ethersproject/logger": "^5.8.0" - } - }, - "@ethersproject/constants": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/constants/-/constants-5.8.0.tgz", - "integrity": "sha512-wigX4lrf5Vu+axVTIvNsuL6YrV4O5AXl5ubcURKMEME5TnWBouUh0CDTWxZ2GpnRn1kcCgE7l8O5+VbV9QTTcg==", - "dev": true, - "peer": true, - "requires": { - "@ethersproject/bignumber": "^5.8.0" - } - }, - "@ethersproject/contracts": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/contracts/-/contracts-5.8.0.tgz", - "integrity": "sha512-0eFjGz9GtuAi6MZwhb4uvUM216F38xiuR0yYCjKJpNfSEy4HUM8hvqqBj9Jmm0IUz8l0xKEhWwLIhPgxNY0yvQ==", - "dev": true, - "peer": true, - "requires": { - "@ethersproject/abi": "^5.8.0", - "@ethersproject/abstract-provider": "^5.8.0", - "@ethersproject/abstract-signer": "^5.8.0", - "@ethersproject/address": "^5.8.0", - "@ethersproject/bignumber": "^5.8.0", - "@ethersproject/bytes": "^5.8.0", - "@ethersproject/constants": "^5.8.0", - "@ethersproject/logger": "^5.8.0", - "@ethersproject/properties": "^5.8.0", - "@ethersproject/transactions": "^5.8.0" - } - }, - "@ethersproject/hash": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/hash/-/hash-5.8.0.tgz", - "integrity": "sha512-ac/lBcTbEWW/VGJij0CNSw/wPcw9bSRgCB0AIBz8CvED/jfvDoV9hsIIiWfvWmFEi8RcXtlNwp2jv6ozWOsooA==", - "dev": true, - "peer": true, - "requires": { - "@ethersproject/abstract-signer": "^5.8.0", - "@ethersproject/address": "^5.8.0", - "@ethersproject/base64": "^5.8.0", - "@ethersproject/bignumber": "^5.8.0", - "@ethersproject/bytes": "^5.8.0", - "@ethersproject/keccak256": "^5.8.0", - "@ethersproject/logger": "^5.8.0", - "@ethersproject/properties": "^5.8.0", - "@ethersproject/strings": "^5.8.0" - } - }, - "@ethersproject/hdnode": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/hdnode/-/hdnode-5.8.0.tgz", - "integrity": "sha512-4bK1VF6E83/3/Im0ERnnUeWOY3P1BZml4ZD3wcH8Ys0/d1h1xaFt6Zc+Dh9zXf9TapGro0T4wvO71UTCp3/uoA==", - "dev": true, - "peer": true, - "requires": { - "@ethersproject/abstract-signer": "^5.8.0", - "@ethersproject/basex": "^5.8.0", - "@ethersproject/bignumber": "^5.8.0", - "@ethersproject/bytes": "^5.8.0", - "@ethersproject/logger": "^5.8.0", - "@ethersproject/pbkdf2": "^5.8.0", - "@ethersproject/properties": "^5.8.0", - "@ethersproject/sha2": "^5.8.0", - "@ethersproject/signing-key": "^5.8.0", - "@ethersproject/strings": "^5.8.0", - "@ethersproject/transactions": "^5.8.0", - "@ethersproject/wordlists": "^5.8.0" - } - }, - "@ethersproject/json-wallets": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/json-wallets/-/json-wallets-5.8.0.tgz", - "integrity": "sha512-HxblNck8FVUtNxS3VTEYJAcwiKYsBIF77W15HufqlBF9gGfhmYOJtYZp8fSDZtn9y5EaXTE87zDwzxRoTFk11w==", - "dev": true, - "peer": true, - "requires": { - "@ethersproject/abstract-signer": "^5.8.0", - "@ethersproject/address": "^5.8.0", - "@ethersproject/bytes": "^5.8.0", - "@ethersproject/hdnode": "^5.8.0", - "@ethersproject/keccak256": "^5.8.0", - "@ethersproject/logger": "^5.8.0", - "@ethersproject/pbkdf2": "^5.8.0", - "@ethersproject/properties": "^5.8.0", - "@ethersproject/random": "^5.8.0", - "@ethersproject/strings": "^5.8.0", - "@ethersproject/transactions": "^5.8.0", - "aes-js": "3.0.0", - "scrypt-js": "3.0.1" - } - }, - "@ethersproject/keccak256": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/keccak256/-/keccak256-5.8.0.tgz", - "integrity": "sha512-A1pkKLZSz8pDaQ1ftutZoaN46I6+jvuqugx5KYNeQOPqq+JZ0Txm7dlWesCHB5cndJSu5vP2VKptKf7cksERng==", - "dev": true, - "peer": true, - "requires": { - "@ethersproject/bytes": "^5.8.0", - "js-sha3": "0.8.0" - } - }, - "@ethersproject/logger": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/logger/-/logger-5.8.0.tgz", - "integrity": "sha512-Qe6knGmY+zPPWTC+wQrpitodgBfH7XoceCGL5bJVejmH+yCS3R8jJm8iiWuvWbG76RUmyEG53oqv6GMVWqunjA==", - "dev": true, - "peer": true - }, - "@ethersproject/networks": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/networks/-/networks-5.8.0.tgz", - "integrity": "sha512-egPJh3aPVAzbHwq8DD7Po53J4OUSsA1MjQp8Vf/OZPav5rlmWUaFLiq8cvQiGK0Z5K6LYzm29+VA/p4RL1FzNg==", - "dev": true, - "peer": true, - "requires": { - "@ethersproject/logger": "^5.8.0" - } - }, - "@ethersproject/pbkdf2": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/pbkdf2/-/pbkdf2-5.8.0.tgz", - "integrity": "sha512-wuHiv97BrzCmfEaPbUFpMjlVg/IDkZThp9Ri88BpjRleg4iePJaj2SW8AIyE8cXn5V1tuAaMj6lzvsGJkGWskg==", - "dev": true, - "peer": true, - "requires": { - "@ethersproject/bytes": "^5.8.0", - "@ethersproject/sha2": "^5.8.0" - } - }, - "@ethersproject/properties": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/properties/-/properties-5.8.0.tgz", - "integrity": "sha512-PYuiEoQ+FMaZZNGrStmN7+lWjlsoufGIHdww7454FIaGdbe/p5rnaCXTr5MtBYl3NkeoVhHZuyzChPeGeKIpQw==", - "dev": true, - "peer": true, - "requires": { - "@ethersproject/logger": "^5.8.0" - } - }, - "@ethersproject/providers": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/providers/-/providers-5.8.0.tgz", - "integrity": "sha512-3Il3oTzEx3o6kzcg9ZzbE+oCZYyY+3Zh83sKkn4s1DZfTUjIegHnN2Cm0kbn9YFy45FDVcuCLLONhU7ny0SsCw==", - "dev": true, - "peer": true, - "requires": { - "@ethersproject/abstract-provider": "^5.8.0", - "@ethersproject/abstract-signer": "^5.8.0", - "@ethersproject/address": "^5.8.0", - "@ethersproject/base64": "^5.8.0", - "@ethersproject/basex": "^5.8.0", - "@ethersproject/bignumber": "^5.8.0", - "@ethersproject/bytes": "^5.8.0", - "@ethersproject/constants": "^5.8.0", - "@ethersproject/hash": "^5.8.0", - "@ethersproject/logger": "^5.8.0", - "@ethersproject/networks": "^5.8.0", - "@ethersproject/properties": "^5.8.0", - "@ethersproject/random": "^5.8.0", - "@ethersproject/rlp": "^5.8.0", - "@ethersproject/sha2": "^5.8.0", - "@ethersproject/strings": "^5.8.0", - "@ethersproject/transactions": "^5.8.0", - "@ethersproject/web": "^5.8.0", - "bech32": "1.1.4", - "ws": "8.18.0" - } - }, - "@ethersproject/random": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/random/-/random-5.8.0.tgz", - "integrity": "sha512-E4I5TDl7SVqyg4/kkA/qTfuLWAQGXmSOgYyO01So8hLfwgKvYK5snIlzxJMk72IFdG/7oh8yuSqY2KX7MMwg+A==", - "dev": true, - "peer": true, - "requires": { - "@ethersproject/bytes": "^5.8.0", - "@ethersproject/logger": "^5.8.0" - } - }, - "@ethersproject/rlp": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/rlp/-/rlp-5.8.0.tgz", - "integrity": "sha512-LqZgAznqDbiEunaUvykH2JAoXTT9NV0Atqk8rQN9nx9SEgThA/WMx5DnW8a9FOufo//6FZOCHZ+XiClzgbqV9Q==", - "dev": true, - "peer": true, - "requires": { - "@ethersproject/bytes": "^5.8.0", - "@ethersproject/logger": "^5.8.0" - } - }, - "@ethersproject/sha2": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/sha2/-/sha2-5.8.0.tgz", - "integrity": "sha512-dDOUrXr9wF/YFltgTBYS0tKslPEKr6AekjqDW2dbn1L1xmjGR+9GiKu4ajxovnrDbwxAKdHjW8jNcwfz8PAz4A==", - "dev": true, - "peer": true, - "requires": { - "@ethersproject/bytes": "^5.8.0", - "@ethersproject/logger": "^5.8.0", - "hash.js": "1.1.7" - } - }, - "@ethersproject/signing-key": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/signing-key/-/signing-key-5.8.0.tgz", - "integrity": "sha512-LrPW2ZxoigFi6U6aVkFN/fa9Yx/+4AtIUe4/HACTvKJdhm0eeb107EVCIQcrLZkxaSIgc/eCrX8Q1GtbH+9n3w==", - "dev": true, - "peer": true, + "@arbitrum/nitro-contracts": "3.0.0", + "@changesets/cli": "^2.29.6", + "@changesets/get-github-info": "^0.6.0", + "@eslint/eslintrc": "^3.3.1", + "@eth-optimism/contracts": "0.6.0", + "@openzeppelin/contracts-4.7.3": "npm:@openzeppelin/contracts@4.7.3", + "@openzeppelin/contracts-4.8.3": "npm:@openzeppelin/contracts@4.8.3", + "@openzeppelin/contracts-4.9.6": "npm:@openzeppelin/contracts@4.9.6", + "@openzeppelin/contracts-5.0.2": "npm:@openzeppelin/contracts@5.0.2", + "@openzeppelin/contracts-5.1.0": "npm:@openzeppelin/contracts@5.1.0", + "@openzeppelin/contracts-upgradeable": "4.9.6", + "@scroll-tech/contracts": "2.0.0", + "@zksync/contracts": "github:matter-labs/era-contracts#446d391d34bdb48255d5f8fef8a8248925fc98b9", + "semver": "^7.7.2" + }, + "dependencies": { + "@eth-optimism/contracts": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/@eth-optimism/contracts/-/contracts-0.6.0.tgz", + "integrity": "sha512-vQ04wfG9kMf1Fwy3FEMqH2QZbgS0gldKhcBeBUPfO8zu68L61VI97UDXmsMQXzTsEAxK8HnokW3/gosl4/NW3w==", "requires": { - "@ethersproject/bytes": "^5.8.0", - "@ethersproject/logger": "^5.8.0", - "@ethersproject/properties": "^5.8.0", - "bn.js": "^5.2.1", - "elliptic": "6.6.1", - "hash.js": "1.1.7" + "@eth-optimism/core-utils": "0.12.0", + "@ethersproject/abstract-provider": "^5.7.0", + "@ethersproject/abstract-signer": "^5.7.0" } }, - "@ethersproject/solidity": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/solidity/-/solidity-5.8.0.tgz", - "integrity": "sha512-4CxFeCgmIWamOHwYN9d+QWGxye9qQLilpgTU0XhYs1OahkclF+ewO+3V1U0mvpiuQxm5EHHmv8f7ClVII8EHsA==", - "dev": true, + "ethers": { + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/ethers/-/ethers-5.7.2.tgz", + "integrity": "sha512-wswUsmWo1aOK8rR7DIKiWSw9DbLWe6x98Jrn8wcTflTVvaXhAMaB5zGAXy0GYQEQp9iO1iSHWVyARQm11zUtyg==", "peer": true, "requires": { - "@ethersproject/bignumber": "^5.8.0", - "@ethersproject/bytes": "^5.8.0", - "@ethersproject/keccak256": "^5.8.0", - "@ethersproject/logger": "^5.8.0", - "@ethersproject/sha2": "^5.8.0", - "@ethersproject/strings": "^5.8.0" + "@ethersproject/abi": "5.7.0", + "@ethersproject/abstract-provider": "5.7.0", + "@ethersproject/abstract-signer": "5.7.0", + "@ethersproject/address": "5.7.0", + "@ethersproject/base64": "5.7.0", + "@ethersproject/basex": "5.7.0", + "@ethersproject/bignumber": "5.7.0", + "@ethersproject/bytes": "5.7.0", + "@ethersproject/constants": "5.7.0", + "@ethersproject/contracts": "5.7.0", + "@ethersproject/hash": "5.7.0", + "@ethersproject/hdnode": "5.7.0", + "@ethersproject/json-wallets": "5.7.0", + "@ethersproject/keccak256": "5.7.0", + "@ethersproject/logger": "5.7.0", + "@ethersproject/networks": "5.7.1", + "@ethersproject/pbkdf2": "5.7.0", + "@ethersproject/properties": "5.7.0", + "@ethersproject/providers": "5.7.2", + "@ethersproject/random": "5.7.0", + "@ethersproject/rlp": "5.7.0", + "@ethersproject/sha2": "5.7.0", + "@ethersproject/signing-key": "5.7.0", + "@ethersproject/solidity": "5.7.0", + "@ethersproject/strings": "5.7.0", + "@ethersproject/transactions": "5.7.0", + "@ethersproject/units": "5.7.0", + "@ethersproject/wallet": "5.7.0", + "@ethersproject/web": "5.7.1", + "@ethersproject/wordlists": "5.7.0" } - }, - "@ethersproject/strings": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/strings/-/strings-5.8.0.tgz", - "integrity": "sha512-qWEAk0MAvl0LszjdfnZ2uC8xbR2wdv4cDabyHiBh3Cldq/T8dPH3V4BbBsAYJUeonwD+8afVXld274Ls+Y1xXg==", - "dev": true, - "peer": true, + } + } + }, + "@chainlink/contracts-ccip": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@chainlink/contracts-ccip/-/contracts-ccip-2.0.0.tgz", + "integrity": "sha512-P0KvQtZSYC1LevMSS16jOOSsqZG4g0n/MJdcWGmE0Z5U01NVYd1MnTQJOBPsbu1NWR79DBXPXLvyr9tR5y+tiw==", + "requires": { + "@chainlink/ace": "1.0.0", + "@chainlink/contracts": "1.5.0", + "@openzeppelin/contracts-4.8.3": "npm:@openzeppelin/contracts@4.8.3", + "@openzeppelin/contracts-5.3.0": "npm:@openzeppelin/contracts@5.3.0" + } + }, + "@changesets/apply-release-plan": { + "version": "7.0.13", + "resolved": "https://registry.npmjs.org/@changesets/apply-release-plan/-/apply-release-plan-7.0.13.tgz", + "integrity": "sha512-BIW7bofD2yAWoE8H4V40FikC+1nNFEKBisMECccS16W1rt6qqhNTBDmIw5HaqmMgtLNz9e7oiALiEUuKrQ4oHg==", + "requires": { + "@changesets/config": "^3.1.1", + "@changesets/get-version-range-type": "^0.4.0", + "@changesets/git": "^3.0.4", + "@changesets/should-skip-package": "^0.1.2", + "@changesets/types": "^6.1.0", + "@manypkg/get-packages": "^1.1.3", + "detect-indent": "^6.0.0", + "fs-extra": "^7.0.1", + "lodash.startcase": "^4.4.0", + "outdent": "^0.5.0", + "prettier": "^2.7.1", + "resolve-from": "^5.0.0", + "semver": "^7.5.3" + }, + "dependencies": { + "fs-extra": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", + "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", "requires": { - "@ethersproject/bytes": "^5.8.0", - "@ethersproject/constants": "^5.8.0", - "@ethersproject/logger": "^5.8.0" + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" } }, - "@ethersproject/transactions": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/transactions/-/transactions-5.8.0.tgz", - "integrity": "sha512-UglxSDjByHG0TuU17bDfCemZ3AnKO2vYrL5/2n2oXvKzvb7Cz+W9gOWXKARjp2URVwcWlQlPOEQyAviKwT4AHg==", - "dev": true, - "peer": true, + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", "requires": { - "@ethersproject/address": "^5.8.0", - "@ethersproject/bignumber": "^5.8.0", - "@ethersproject/bytes": "^5.8.0", - "@ethersproject/constants": "^5.8.0", - "@ethersproject/keccak256": "^5.8.0", - "@ethersproject/logger": "^5.8.0", - "@ethersproject/properties": "^5.8.0", - "@ethersproject/rlp": "^5.8.0", - "@ethersproject/signing-key": "^5.8.0" + "graceful-fs": "^4.1.6" } }, - "@ethersproject/units": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/units/-/units-5.8.0.tgz", - "integrity": "sha512-lxq0CAnc5kMGIiWW4Mr041VT8IhNM+Pn5T3haO74XZWFulk7wH1Gv64HqE96hT4a7iiNMdOCFEBgaxWuk8ETKQ==", - "dev": true, - "peer": true, - "requires": { - "@ethersproject/bignumber": "^5.8.0", - "@ethersproject/constants": "^5.8.0", - "@ethersproject/logger": "^5.8.0" - } + "prettier": { + "version": "2.8.8", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", + "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==" }, - "@ethersproject/wallet": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/wallet/-/wallet-5.8.0.tgz", - "integrity": "sha512-G+jnzmgg6UxurVKRKvw27h0kvG75YKXZKdlLYmAHeF32TGUzHkOFd7Zn6QHOTYRFWnfjtSSFjBowKo7vfrXzPA==", - "dev": true, - "peer": true, - "requires": { - "@ethersproject/abstract-provider": "^5.8.0", - "@ethersproject/abstract-signer": "^5.8.0", - "@ethersproject/address": "^5.8.0", - "@ethersproject/bignumber": "^5.8.0", - "@ethersproject/bytes": "^5.8.0", - "@ethersproject/hash": "^5.8.0", - "@ethersproject/hdnode": "^5.8.0", - "@ethersproject/json-wallets": "^5.8.0", - "@ethersproject/keccak256": "^5.8.0", - "@ethersproject/logger": "^5.8.0", - "@ethersproject/properties": "^5.8.0", - "@ethersproject/random": "^5.8.0", - "@ethersproject/signing-key": "^5.8.0", - "@ethersproject/transactions": "^5.8.0", - "@ethersproject/wordlists": "^5.8.0" - } + "resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==" }, - "@ethersproject/web": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/web/-/web-5.8.0.tgz", - "integrity": "sha512-j7+Ksi/9KfGviws6Qtf9Q7KCqRhpwrYKQPs+JBA/rKVFF/yaWLHJEH3zfVP2plVu+eys0d2DlFmhoQJayFewcw==", - "dev": true, - "peer": true, - "requires": { - "@ethersproject/base64": "^5.8.0", - "@ethersproject/bytes": "^5.8.0", - "@ethersproject/logger": "^5.8.0", - "@ethersproject/properties": "^5.8.0", - "@ethersproject/strings": "^5.8.0" - } + "universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" + } + } + }, + "@changesets/assemble-release-plan": { + "version": "6.0.9", + "resolved": "https://registry.npmjs.org/@changesets/assemble-release-plan/-/assemble-release-plan-6.0.9.tgz", + "integrity": "sha512-tPgeeqCHIwNo8sypKlS3gOPmsS3wP0zHt67JDuL20P4QcXiw/O4Hl7oXiuLnP9yg+rXLQ2sScdV1Kkzde61iSQ==", + "requires": { + "@changesets/errors": "^0.2.0", + "@changesets/get-dependents-graph": "^2.1.3", + "@changesets/should-skip-package": "^0.1.2", + "@changesets/types": "^6.1.0", + "@manypkg/get-packages": "^1.1.3", + "semver": "^7.5.3" + } + }, + "@changesets/changelog-git": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/@changesets/changelog-git/-/changelog-git-0.2.1.tgz", + "integrity": "sha512-x/xEleCFLH28c3bQeQIyeZf8lFXyDFVn1SgcBiR2Tw/r4IAWlk1fzxCEZ6NxQAjF2Nwtczoen3OA2qR+UawQ8Q==", + "requires": { + "@changesets/types": "^6.1.0" + } + }, + "@changesets/cli": { + "version": "2.29.7", + "resolved": "https://registry.npmjs.org/@changesets/cli/-/cli-2.29.7.tgz", + "integrity": "sha512-R7RqWoaksyyKXbKXBTbT4REdy22yH81mcFK6sWtqSanxUCbUi9Uf+6aqxZtDQouIqPdem2W56CdxXgsxdq7FLQ==", + "requires": { + "@changesets/apply-release-plan": "^7.0.13", + "@changesets/assemble-release-plan": "^6.0.9", + "@changesets/changelog-git": "^0.2.1", + "@changesets/config": "^3.1.1", + "@changesets/errors": "^0.2.0", + "@changesets/get-dependents-graph": "^2.1.3", + "@changesets/get-release-plan": "^4.0.13", + "@changesets/git": "^3.0.4", + "@changesets/logger": "^0.1.1", + "@changesets/pre": "^2.0.2", + "@changesets/read": "^0.6.5", + "@changesets/should-skip-package": "^0.1.2", + "@changesets/types": "^6.1.0", + "@changesets/write": "^0.4.0", + "@inquirer/external-editor": "^1.0.0", + "@manypkg/get-packages": "^1.1.3", + "ansi-colors": "^4.1.3", + "ci-info": "^3.7.0", + "enquirer": "^2.4.1", + "fs-extra": "^7.0.1", + "mri": "^1.2.0", + "p-limit": "^2.2.0", + "package-manager-detector": "^0.2.0", + "picocolors": "^1.1.0", + "resolve-from": "^5.0.0", + "semver": "^7.5.3", + "spawndamnit": "^3.0.1", + "term-size": "^2.1.0" + }, + "dependencies": { + "ci-info": { + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", + "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==" }, - "@ethersproject/wordlists": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@ethersproject/wordlists/-/wordlists-5.8.0.tgz", - "integrity": "sha512-2df9bbXicZws2Sb5S6ET493uJ0Z84Fjr3pC4tu/qlnZERibZCeUVuqdtt+7Tv9xxhUxHoIekIA7avrKUWHrezg==", - "dev": true, - "peer": true, + "fs-extra": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", + "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", "requires": { - "@ethersproject/bytes": "^5.8.0", - "@ethersproject/hash": "^5.8.0", - "@ethersproject/logger": "^5.8.0", - "@ethersproject/properties": "^5.8.0", - "@ethersproject/strings": "^5.8.0" + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" } }, - "@noble/hashes": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.2.0.tgz", - "integrity": "sha512-FZfhjEDbT5GRswV3C6uvLPHMiVD6lQBmpoX5+eSiPaMTXte/IKqI5dykDxzZB/WBeK/CDuQRBWarPdi3FNY2zQ==", - "dev": true, - "peer": true - }, - "@scure/bip32": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.1.5.tgz", - "integrity": "sha512-XyNh1rB0SkEqd3tXcXMi+Xe1fvg+kUIcoRIEujP1Jgv7DqW2r9lg3Ah0NkFaCs9sTkQAQA8kw7xiRXzENi9Rtw==", - "dev": true, - "peer": true, + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", "requires": { - "@noble/hashes": "~1.2.0", - "@noble/secp256k1": "~1.7.0", - "@scure/base": "~1.1.0" + "graceful-fs": "^4.1.6" } }, - "@scure/bip39": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.1.1.tgz", - "integrity": "sha512-t+wDck2rVkh65Hmv280fYdVdY25J9YeEUIgn2LG1WM6gxFkGzcksoDiUkWVpVp3Oex9xGC68JU2dSbUfwZ2jPg==", - "dev": true, - "peer": true, + "p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", "requires": { - "@noble/hashes": "~1.2.0", - "@scure/base": "~1.1.0" + "p-try": "^2.0.0" } }, - "aes-js": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/aes-js/-/aes-js-3.0.0.tgz", - "integrity": "sha512-H7wUZRn8WpTq9jocdxQ2c8x2sKo9ZVmzfRE13GiNJXfp7NcKYEdvl3vspKjXox6RIG2VtaRe4JFvxG4rqp2Zuw==", - "dev": true, - "peer": true + "p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==" }, - "elliptic": { - "version": "6.6.1", - "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.6.1.tgz", - "integrity": "sha512-RaddvvMatK2LJHqFJ+YA4WysVN5Ita9E35botqIYspQ4TkRAlCicdzKOjlyv/1Za5RyTNn7di//eEV0uTAfe3g==", - "dev": true, - "peer": true, - "requires": { - "bn.js": "^4.11.9", - "brorand": "^1.1.0", - "hash.js": "^1.0.0", - "hmac-drbg": "^1.0.1", - "inherits": "^2.0.4", - "minimalistic-assert": "^1.0.1", - "minimalistic-crypto-utils": "^1.0.1" - }, - "dependencies": { - "bn.js": { - "version": "4.12.2", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.2.tgz", - "integrity": "sha512-n4DSx829VRTRByMRGdjQ9iqsN0Bh4OolPsFnaZBLcbi8iXcB+kJ9s7EnRt4wILZNV3kPLHkRVfOc/HvhC3ovDw==", - "dev": true, - "peer": true - } - } + "resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==" }, - "ethereum-cryptography": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-1.2.0.tgz", - "integrity": "sha512-6yFQC9b5ug6/17CQpCyE3k9eKBMdhyVjzUy1WkiuY/E4vj/SXDBbCw8QEIaXqf0Mf2SnY6RmpDcwlUmBSS0EJw==", - "dev": true, - "peer": true, + "universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" + } + } + }, + "@changesets/config": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/@changesets/config/-/config-3.1.1.tgz", + "integrity": "sha512-bd+3Ap2TKXxljCggI0mKPfzCQKeV/TU4yO2h2C6vAihIo8tzseAn2e7klSuiyYYXvgu53zMN1OeYMIQkaQoWnA==", + "requires": { + "@changesets/errors": "^0.2.0", + "@changesets/get-dependents-graph": "^2.1.3", + "@changesets/logger": "^0.1.1", + "@changesets/types": "^6.1.0", + "@manypkg/get-packages": "^1.1.3", + "fs-extra": "^7.0.1", + "micromatch": "^4.0.8" + }, + "dependencies": { + "fs-extra": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", + "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", "requires": { - "@noble/hashes": "1.2.0", - "@noble/secp256k1": "1.7.1", - "@scure/bip32": "1.1.5", - "@scure/bip39": "1.1.1" + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" } }, - "ethers": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/ethers/-/ethers-5.8.0.tgz", - "integrity": "sha512-DUq+7fHrCg1aPDFCHx6UIPb3nmt2XMpM7Y/g2gLhsl3lIBqeAfOJIl1qEvRf2uq3BiKxmh6Fh5pfp2ieyek7Kg==", - "dev": true, - "peer": true, + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", "requires": { - "@ethersproject/abi": "5.8.0", - "@ethersproject/abstract-provider": "5.8.0", - "@ethersproject/abstract-signer": "5.8.0", - "@ethersproject/address": "5.8.0", - "@ethersproject/base64": "5.8.0", - "@ethersproject/basex": "5.8.0", - "@ethersproject/bignumber": "5.8.0", - "@ethersproject/bytes": "5.8.0", - "@ethersproject/constants": "5.8.0", - "@ethersproject/contracts": "5.8.0", - "@ethersproject/hash": "5.8.0", - "@ethersproject/hdnode": "5.8.0", - "@ethersproject/json-wallets": "5.8.0", - "@ethersproject/keccak256": "5.8.0", - "@ethersproject/logger": "5.8.0", - "@ethersproject/networks": "5.8.0", - "@ethersproject/pbkdf2": "5.8.0", - "@ethersproject/properties": "5.8.0", - "@ethersproject/providers": "5.8.0", - "@ethersproject/random": "5.8.0", - "@ethersproject/rlp": "5.8.0", - "@ethersproject/sha2": "5.8.0", - "@ethersproject/signing-key": "5.8.0", - "@ethersproject/solidity": "5.8.0", - "@ethersproject/strings": "5.8.0", - "@ethersproject/transactions": "5.8.0", - "@ethersproject/units": "5.8.0", - "@ethersproject/wallet": "5.8.0", - "@ethersproject/web": "5.8.0", - "@ethersproject/wordlists": "5.8.0" + "graceful-fs": "^4.1.6" } }, - "ws": { - "version": "8.18.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.0.tgz", - "integrity": "sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==", - "dev": true, - "peer": true, - "requires": {} + "universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" } } }, - "ethereum-bloom-filters": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/ethereum-bloom-filters/-/ethereum-bloom-filters-1.2.0.tgz", - "integrity": "sha512-28hyiE7HVsWubqhpVLVmZXFd4ITeHi+BUu05o9isf0GUpMtzBUi+8/gFrGaGYzvGAJQmJ3JKj77Mk9G98T84rA==", - "dev": true, - "peer": true, + "@changesets/errors": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/@changesets/errors/-/errors-0.2.0.tgz", + "integrity": "sha512-6BLOQUscTpZeGljvyQXlWOItQyU71kCdGz7Pi8H8zdw6BI0g3m43iL4xKUVPWtG+qrrL9DTjpdn8eYuCQSRpow==", "requires": { - "@noble/hashes": "^1.4.0" - }, - "dependencies": { - "@noble/hashes": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz", - "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==", - "dev": true, - "peer": true - } + "extendable-error": "^0.1.5" } }, - "ethereum-cryptography": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-0.1.3.tgz", - "integrity": "sha512-w8/4x1SGGzc+tO97TASLja6SLd3fRIK2tLVcV2Gx4IB21hE19atll5Cq9o3d0ZmAYC/8aw0ipieTSiekAea4SQ==", - "dev": true, - "peer": true, + "@changesets/get-dependents-graph": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/@changesets/get-dependents-graph/-/get-dependents-graph-2.1.3.tgz", + "integrity": "sha512-gphr+v0mv2I3Oxt19VdWRRUxq3sseyUpX9DaHpTUmLj92Y10AGy+XOtV+kbM6L/fDcpx7/ISDFK6T8A/P3lOdQ==", "requires": { - "@types/pbkdf2": "^3.0.0", - "@types/secp256k1": "^4.0.1", - "blakejs": "^1.1.0", - "browserify-aes": "^1.2.0", - "bs58check": "^2.1.2", - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "hash.js": "^1.1.7", - "keccak": "^3.0.0", - "pbkdf2": "^3.0.17", - "randombytes": "^2.1.0", - "safe-buffer": "^5.1.2", - "scrypt-js": "^3.0.0", - "secp256k1": "^4.0.1", - "setimmediate": "^1.0.5" - } - }, - "ethereumjs-util": { - "version": "7.1.5", - "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-7.1.5.tgz", - "integrity": "sha512-SDl5kKrQAudFBUe5OJM9Ac6WmMyYmXX/6sTmLZ3ffG2eY6ZIGBes3pEDxNN6V72WyOw4CPD5RomKdsa8DAAwLg==", - "dev": true, - "peer": true, + "@changesets/types": "^6.1.0", + "@manypkg/get-packages": "^1.1.3", + "picocolors": "^1.1.0", + "semver": "^7.5.3" + } + }, + "@changesets/get-github-info": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/@changesets/get-github-info/-/get-github-info-0.6.0.tgz", + "integrity": "sha512-v/TSnFVXI8vzX9/w3DU2Ol+UlTZcu3m0kXTjTT4KlAdwSvwutcByYwyYn9hwerPWfPkT2JfpoX0KgvCEi8Q/SA==", "requires": { - "@types/bn.js": "^5.1.0", - "bn.js": "^5.1.2", - "create-hash": "^1.1.2", - "ethereum-cryptography": "^0.1.3", - "rlp": "^2.2.4" + "dataloader": "^1.4.0", + "node-fetch": "^2.5.0" } }, - "ethers": { - "version": "6.15.0", - "resolved": "https://registry.npmjs.org/ethers/-/ethers-6.15.0.tgz", - "integrity": "sha512-Kf/3ZW54L4UT0pZtsY/rf+EkBU7Qi5nnhonjUb8yTXcxH3cdcWrV2cRyk0Xk/4jK6OoHhxxZHriyhje20If2hQ==", - "dev": true, - "peer": true, + "@changesets/get-release-plan": { + "version": "4.0.13", + "resolved": "https://registry.npmjs.org/@changesets/get-release-plan/-/get-release-plan-4.0.13.tgz", + "integrity": "sha512-DWG1pus72FcNeXkM12tx+xtExyH/c9I1z+2aXlObH3i9YA7+WZEVaiHzHl03thpvAgWTRaH64MpfHxozfF7Dvg==", "requires": { - "@adraffy/ens-normalize": "1.10.1", - "@noble/curves": "1.2.0", - "@noble/hashes": "1.3.2", - "@types/node": "22.7.5", - "aes-js": "4.0.0-beta.5", - "tslib": "2.7.0", - "ws": "8.17.1" + "@changesets/assemble-release-plan": "^6.0.9", + "@changesets/config": "^3.1.1", + "@changesets/pre": "^2.0.2", + "@changesets/read": "^0.6.5", + "@changesets/types": "^6.1.0", + "@manypkg/get-packages": "^1.1.3" } }, - "ethjs-unit": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/ethjs-unit/-/ethjs-unit-0.1.6.tgz", - "integrity": "sha512-/Sn9Y0oKl0uqQuvgFk/zQgR7aw1g36qX/jzSQ5lSwlO0GigPymk4eGQfeNTD03w1dPOqfz8V77Cy43jH56pagw==", - "dev": true, - "peer": true, + "@changesets/get-version-range-type": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@changesets/get-version-range-type/-/get-version-range-type-0.4.0.tgz", + "integrity": "sha512-hwawtob9DryoGTpixy1D3ZXbGgJu1Rhr+ySH2PvTLHvkZuQ7sRT4oQwMh0hbqZH1weAooedEjRsbrWcGLCeyVQ==" + }, + "@changesets/git": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@changesets/git/-/git-3.0.4.tgz", + "integrity": "sha512-BXANzRFkX+XcC1q/d27NKvlJ1yf7PSAgi8JG6dt8EfbHFHi4neau7mufcSca5zRhwOL8j9s6EqsxmT+s+/E6Sw==", + "requires": { + "@changesets/errors": "^0.2.0", + "@manypkg/get-packages": "^1.1.3", + "is-subdir": "^1.1.1", + "micromatch": "^4.0.8", + "spawndamnit": "^3.0.1" + } + }, + "@changesets/logger": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@changesets/logger/-/logger-0.1.1.tgz", + "integrity": "sha512-OQtR36ZlnuTxKqoW4Sv6x5YIhOmClRd5pWsjZsddYxpWs517R0HkyiefQPIytCVh4ZcC5x9XaG8KTdd5iRQUfg==", + "requires": { + "picocolors": "^1.1.0" + } + }, + "@changesets/parse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/@changesets/parse/-/parse-0.4.1.tgz", + "integrity": "sha512-iwksMs5Bf/wUItfcg+OXrEpravm5rEd9Bf4oyIPL4kVTmJQ7PNDSd6MDYkpSJR1pn7tz/k8Zf2DhTCqX08Ou+Q==", "requires": { - "bn.js": "4.11.6", - "number-to-bn": "1.7.0" + "@changesets/types": "^6.1.0", + "js-yaml": "^3.13.1" }, "dependencies": { - "bn.js": { - "version": "4.11.6", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.6.tgz", - "integrity": "sha512-XWwnNNFCuuSQ0m3r3C4LE3EiORltHd9M05pq6FOlVeiophzRbMo50Sbz1ehl8K3Z+jw9+vmgnXefY1hz8X+2wA==", - "dev": true, - "peer": true + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "requires": { + "sprintf-js": "~1.0.2" + } + }, + "esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" + }, + "js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } } } }, - "evp_bytestokey": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz", - "integrity": "sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA==", - "dev": true, - "peer": true, + "@changesets/pre": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/@changesets/pre/-/pre-2.0.2.tgz", + "integrity": "sha512-HaL/gEyFVvkf9KFg6484wR9s0qjAXlZ8qWPDkTyKF6+zqjBe/I2mygg3MbpZ++hdi0ToqNUF8cjj7fBy0dg8Ug==", "requires": { - "md5.js": "^1.3.4", - "safe-buffer": "^5.1.1" + "@changesets/errors": "^0.2.0", + "@changesets/types": "^6.1.0", + "@manypkg/get-packages": "^1.1.3", + "fs-extra": "^7.0.1" + }, + "dependencies": { + "fs-extra": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", + "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", + "requires": { + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + } + }, + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "requires": { + "graceful-fs": "^4.1.6" + } + }, + "universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" + } } }, - "extendable-error": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/extendable-error/-/extendable-error-0.1.7.tgz", - "integrity": "sha512-UOiS2in6/Q0FK0R0q6UY9vYpQ21mr/Qn1KOnte7vsACuNJf514WvCCUHSRCPcgjPT2bAhNIJdlE6bVap1GKmeg==" + "@changesets/read": { + "version": "0.6.5", + "resolved": "https://registry.npmjs.org/@changesets/read/-/read-0.6.5.tgz", + "integrity": "sha512-UPzNGhsSjHD3Veb0xO/MwvasGe8eMyNrR/sT9gR8Q3DhOQZirgKhhXv/8hVsI0QpPjR004Z9iFxoJU6in3uGMg==", + "requires": { + "@changesets/git": "^3.0.4", + "@changesets/logger": "^0.1.1", + "@changesets/parse": "^0.4.1", + "@changesets/types": "^6.1.0", + "fs-extra": "^7.0.1", + "p-filter": "^2.1.0", + "picocolors": "^1.1.0" + }, + "dependencies": { + "fs-extra": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", + "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", + "requires": { + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + } + }, + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "requires": { + "graceful-fs": "^4.1.6" + } + }, + "universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" + } + } }, - "fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" + "@changesets/should-skip-package": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/@changesets/should-skip-package/-/should-skip-package-0.1.2.tgz", + "integrity": "sha512-qAK/WrqWLNCP22UDdBTMPH5f41elVDlsNyat180A33dWxuUDyNpg6fPi/FyTZwRriVjg0L8gnjJn2F9XAoF0qw==", + "requires": { + "@changesets/types": "^6.1.0", + "@manypkg/get-packages": "^1.1.3" + } }, - "fast-glob": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", - "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", + "@changesets/types": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/@changesets/types/-/types-6.1.0.tgz", + "integrity": "sha512-rKQcJ+o1nKNgeoYRHKOS07tAMNd3YSN0uHaJOZYjBAgxfV7TUE7JE+z4BzZdQwb5hKaYbayKN5KrYV7ODb2rAA==" + }, + "@changesets/write": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/@changesets/write/-/write-0.4.0.tgz", + "integrity": "sha512-CdTLvIOPiCNuH71pyDu3rA+Q0n65cmAbXnwWH84rKGiFumFzkmHNT8KHTMEchcxN+Kl8I54xGUhJ7l3E7X396Q==", "requires": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.4" + "@changesets/types": "^6.1.0", + "fs-extra": "^7.0.1", + "human-id": "^4.1.1", + "prettier": "^2.7.1" + }, + "dependencies": { + "fs-extra": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", + "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", + "requires": { + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + } + }, + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "requires": { + "graceful-fs": "^4.1.6" + } + }, + "prettier": { + "version": "2.8.8", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", + "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==" + }, + "universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" + } } }, - "fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" - }, - "fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "@esbuild/aix-ppc64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.3.tgz", + "integrity": "sha512-9fJMTNFTWZMh5qwrBItuziu834eOCUcEqymSH7pY+zoMVEZg3gcPuBNxH1EvfVYe9h0x/Ptw8KBzv7qxb7l8dg==", "dev": true, - "peer": true + "optional": true }, - "fast-uri": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.0.tgz", - "integrity": "sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA==", + "@esbuild/android-arm": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.3.tgz", + "integrity": "sha512-i5D1hPY7GIQmXlXhs2w8AWHhenb00+GxjxRncS2ZM7YNVGNfaMxgzSGuO8o8SJzRc/oZwU2bcScvVERk03QhzA==", "dev": true, - "peer": true - }, - "fastq": { - "version": "1.17.1", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", - "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", - "requires": { - "reusify": "^1.0.4" - } + "optional": true }, - "file-set": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/file-set/-/file-set-4.0.2.tgz", - "integrity": "sha512-fuxEgzk4L8waGXaAkd8cMr73Pm0FxOVkn8hztzUW7BAHhOGH90viQNXbiOsnecCWmfInqU6YmAMwxRMdKETceQ==", + "@esbuild/android-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.27.3.tgz", + "integrity": "sha512-YdghPYUmj/FX2SYKJ0OZxf+iaKgMsKHVPF1MAq/P8WirnSpCStzKJFjOjzsW0QQ7oIAiccHdcqjbHmJxRb/dmg==", "dev": true, - "requires": { - "array-back": "^5.0.0", - "glob": "^7.1.6" - }, - "dependencies": { - "array-back": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-5.0.0.tgz", - "integrity": "sha512-kgVWwJReZWmVuWOQKEOohXKJX+nD02JAZ54D1RRWlv8L0NebauKAaFxACKzB74RTclt1+WNz5KHaLRDAPZbDEw==", - "dev": true - } - } + "optional": true }, - "fill-range": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", - "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", - "requires": { - "to-regex-range": "^5.0.1" - } + "@esbuild/android-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.27.3.tgz", + "integrity": "sha512-IN/0BNTkHtk8lkOM8JWAYFg4ORxBkZQf9zXiEOfERX/CzxW3Vg1ewAhU7QSWQpVIzTW+b8Xy+lGzdYXV6UZObQ==", + "dev": true, + "optional": true }, - "find-replace": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/find-replace/-/find-replace-3.0.0.tgz", - "integrity": "sha512-6Tb2myMioCAgv5kfvP5/PkZZ/ntTpVK39fHY7WkWBgvbeE+VHd/tZuZ4mrC+bxh4cfOZeYKVPaJIZtZXV7GNCQ==", + "@esbuild/darwin-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.3.tgz", + "integrity": "sha512-Re491k7ByTVRy0t3EKWajdLIr0gz2kKKfzafkth4Q8A5n1xTHrkqZgLLjFEHVD+AXdUGgQMq+Godfq45mGpCKg==", "dev": true, - "requires": { - "array-back": "^3.0.1" - } + "optional": true }, - "find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "@esbuild/darwin-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.27.3.tgz", + "integrity": "sha512-vHk/hA7/1AckjGzRqi6wbo+jaShzRowYip6rt6q7VYEDX4LEy1pZfDpdxCBnGtl+A5zq8iXDcyuxwtv3hNtHFg==", "dev": true, - "requires": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - } + "optional": true }, - "find-yarn-workspace-root": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/find-yarn-workspace-root/-/find-yarn-workspace-root-2.0.0.tgz", - "integrity": "sha512-1IMnbjt4KzsQfnhnzNd8wUEgXZ44IzZaZmnLYx7D5FZlaHt2gW20Cri8Q+E/t5tIj4+epTBub+2Zxu/vNILzqQ==", - "requires": { - "micromatch": "^4.0.2" - } + "@esbuild/freebsd-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.3.tgz", + "integrity": "sha512-ipTYM2fjt3kQAYOvo6vcxJx3nBYAzPjgTCk7QEgZG8AUO3ydUhvelmhrbOheMnGOlaSFUoHXB6un+A7q4ygY9w==", + "dev": true, + "optional": true }, - "flat": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", - "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==", - "dev": true + "@esbuild/freebsd-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.27.3.tgz", + "integrity": "sha512-dDk0X87T7mI6U3K9VjWtHOXqwAMJBNN2r7bejDsc+j03SEjtD9HrOl8gVFByeM0aJksoUuUVU9TBaZa2rgj0oA==", + "dev": true, + "optional": true }, - "follow-redirects": { - "version": "1.15.9", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.9.tgz", - "integrity": "sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==", - "dev": true + "@esbuild/linux-arm": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.27.3.tgz", + "integrity": "sha512-s6nPv2QkSupJwLYyfS+gwdirm0ukyTFNl3KTgZEAiJDd+iHZcbTPPcWCcRYH+WlNbwChgH2QkE9NSlNrMT8Gfw==", + "dev": true, + "optional": true }, - "for-each": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.5.tgz", - "integrity": "sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==", + "@esbuild/linux-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.27.3.tgz", + "integrity": "sha512-sZOuFz/xWnZ4KH3YfFrKCf1WyPZHakVzTiqji3WDc0BCl2kBwiJLCXpzLzUBLgmp4veFZdvN5ChW4Eq/8Fc2Fg==", "dev": true, - "requires": { - "is-callable": "^1.2.7" - } + "optional": true }, - "foreground-child": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.2.1.tgz", - "integrity": "sha512-PXUUyLqrR2XCWICfv6ukppP96sdFwWbNEnfEMt7jNsISjMsvaLNinAHNDYyvkyU+SZG2BTSbT5NjG+vZslfGTA==", + "@esbuild/linux-ia32": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.27.3.tgz", + "integrity": "sha512-yGlQYjdxtLdh0a3jHjuwOrxQjOZYD/C9PfdbgJJF3TIZWnm/tMd/RcNiLngiu4iwcBAOezdnSLAwQDPqTmtTYg==", "dev": true, - "requires": { - "cross-spawn": "^7.0.0", - "signal-exit": "^4.0.1" - }, - "dependencies": { - "cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", - "dev": true, - "requires": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - } - }, - "path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true - }, - "shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "requires": { - "shebang-regex": "^3.0.0" - } - }, - "shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true - }, - "which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "requires": { - "isexe": "^2.0.0" - } - } - } + "optional": true }, - "form-data": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.4.tgz", - "integrity": "sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow==", + "@esbuild/linux-loong64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.27.3.tgz", + "integrity": "sha512-WO60Sn8ly3gtzhyjATDgieJNet/KqsDlX5nRC5Y3oTFcS1l0KWba+SEa9Ja1GfDqSF1z6hif/SkpQJbL63cgOA==", "dev": true, - "peer": true, - "requires": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "es-set-tostringtag": "^2.1.0", - "hasown": "^2.0.2", - "mime-types": "^2.1.12" - } + "optional": true }, - "fp-ts": { - "version": "1.19.3", - "resolved": "https://registry.npmjs.org/fp-ts/-/fp-ts-1.19.3.tgz", - "integrity": "sha512-H5KQDspykdHuztLTg+ajGN0Z2qUjcEf3Ybxc6hLt0k7/zPkn29XnKnxlBPyW2XIddWrGaJBzBl4VLYOtk39yZg==", - "dev": true + "@esbuild/linux-mips64el": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.27.3.tgz", + "integrity": "sha512-APsymYA6sGcZ4pD6k+UxbDjOFSvPWyZhjaiPyl/f79xKxwTnrn5QUnXR5prvetuaSMsb4jgeHewIDCIWljrSxw==", + "dev": true, + "optional": true }, - "fs-extra": { - "version": "11.2.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.2.0.tgz", - "integrity": "sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==", + "@esbuild/linux-ppc64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.27.3.tgz", + "integrity": "sha512-eizBnTeBefojtDb9nSh4vvVQ3V9Qf9Df01PfawPcRzJH4gFSgrObw+LveUyDoKU3kxi5+9RJTCWlj4FjYXVPEA==", "dev": true, - "requires": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - } + "optional": true }, - "fs-readdir-recursive": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/fs-readdir-recursive/-/fs-readdir-recursive-1.1.0.tgz", - "integrity": "sha512-GNanXlVr2pf02+sPN40XN8HG+ePaNcvM0q5mZBd668Obwb0yD5GiUbZOFgwn8kGMY6I3mdyDJzieUy3PTYyTRA==", + "@esbuild/linux-riscv64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.27.3.tgz", + "integrity": "sha512-3Emwh0r5wmfm3ssTWRQSyVhbOHvqegUDRd0WhmXKX2mkHJe1SFCMJhagUleMq+Uci34wLSipf8Lagt4LlpRFWQ==", "dev": true, - "peer": true + "optional": true }, - "fs-then-native": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/fs-then-native/-/fs-then-native-2.0.0.tgz", - "integrity": "sha512-X712jAOaWXkemQCAmWeg5rOT2i+KOpWz1Z/txk/cW0qlOu2oQ9H61vc5w3X/iyuUEfq/OyaFJ78/cZAQD1/bgA==", - "dev": true + "@esbuild/linux-s390x": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.27.3.tgz", + "integrity": "sha512-pBHUx9LzXWBc7MFIEEL0yD/ZVtNgLytvx60gES28GcWMqil8ElCYR4kvbV2BDqsHOvVDRrOxGySBM9Fcv744hw==", + "dev": true, + "optional": true }, - "fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" + "@esbuild/linux-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.3.tgz", + "integrity": "sha512-Czi8yzXUWIQYAtL/2y6vogER8pvcsOsk5cpwL4Gk5nJqH5UZiVByIY8Eorm5R13gq+DQKYg0+JyQoytLQas4dA==", + "dev": true, + "optional": true }, - "fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "@esbuild/netbsd-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.3.tgz", + "integrity": "sha512-sDpk0RgmTCR/5HguIZa9n9u+HVKf40fbEUt+iTzSnCaGvY9kFP0YKBWZtJaraonFnqef5SlJ8/TiPAxzyS+UoA==", "dev": true, "optional": true }, - "function-bind": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", - "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", - "dev": true + "@esbuild/netbsd-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.27.3.tgz", + "integrity": "sha512-P14lFKJl/DdaE00LItAukUdZO5iqNH7+PjoBm+fLQjtxfcfFE20Xf5CrLsmZdq5LFFZzb5JMZ9grUwvtVYzjiA==", + "dev": true, + "optional": true }, - "function.prototype.name": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/function.prototype.name/-/function.prototype.name-1.1.6.tgz", - "integrity": "sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg==", + "@esbuild/openbsd-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.3.tgz", + "integrity": "sha512-AIcMP77AvirGbRl/UZFTq5hjXK+2wC7qFRGoHSDrZ5v5b8DK/GYpXW3CPRL53NkvDqb9D+alBiC/dV0Fb7eJcw==", "dev": true, - "requires": { - "call-bind": "^1.0.2", - "define-properties": "^1.2.0", - "es-abstract": "^1.22.1", - "functions-have-names": "^1.2.3" - } + "optional": true }, - "functions-have-names": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", - "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", - "dev": true + "@esbuild/openbsd-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.27.3.tgz", + "integrity": "sha512-DnW2sRrBzA+YnE70LKqnM3P+z8vehfJWHXECbwBmH/CU51z6FiqTQTHFenPlHmo3a8UgpLyH3PT+87OViOh1AQ==", + "dev": true, + "optional": true }, - "get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "dev": true + "@esbuild/openharmony-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.3.tgz", + "integrity": "sha512-NinAEgr/etERPTsZJ7aEZQvvg/A6IsZG/LgZy+81wON2huV7SrK3e63dU0XhyZP4RKGyTm7aOgmQk0bGp0fy2g==", + "dev": true, + "optional": true }, - "get-func-name": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.2.tgz", - "integrity": "sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==" + "@esbuild/sunos-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.27.3.tgz", + "integrity": "sha512-PanZ+nEz+eWoBJ8/f8HKxTTD172SKwdXebZ0ndd953gt1HRBbhMsaNqjTyYLGLPdoWHy4zLU7bDVJztF5f3BHA==", + "dev": true, + "optional": true }, - "get-intrinsic": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", - "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "@esbuild/win32-arm64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.3.tgz", + "integrity": "sha512-B2t59lWWYrbRDw/tjiWOuzSsFh1Y/E95ofKz7rIVYSQkUYBjfSgf6oeYPNWHToFRr2zx52JKApIcAS/D5TUBnA==", "dev": true, - "requires": { - "call-bind-apply-helpers": "^1.0.2", - "es-define-property": "^1.0.1", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.1.1", - "function-bind": "^1.1.2", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "has-symbols": "^1.1.0", - "hasown": "^2.0.2", - "math-intrinsics": "^1.1.0" - } - }, - "get-port": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/get-port/-/get-port-3.2.0.tgz", - "integrity": "sha512-x5UJKlgeUiNT8nyo/AcnwLnZuZNcSjSw0kogRB+Whd1fjjFq4B1hySFxSFWWSn4mIBzg3sRNUDFYc4g5gjPoLg==", + "optional": true + }, + "@esbuild/win32-ia32": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.27.3.tgz", + "integrity": "sha512-QLKSFeXNS8+tHW7tZpMtjlNb7HKau0QDpwm49u0vUp9y1WOF+PEzkU84y9GqYaAVW8aH8f3GcBck26jh54cX4Q==", "dev": true, - "peer": true + "optional": true }, - "get-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", - "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "@esbuild/win32-x64": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.27.3.tgz", + "integrity": "sha512-4uJGhsxuptu3OcpVAzli+/gWusVGwZZHTlS63hh++ehExkVT8SgiEf7/uC/PclrPPkLhZqGgCTjd0VWLo6xMqA==", "dev": true, + "optional": true + }, + "@eslint/eslintrc": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.1.tgz", + "integrity": "sha512-gtF186CXhIl1p4pJNGZw8Yc6RlshoePRvE0X91oPGb3vZ8pM3qOS9W9NGPat9LziaBV7XrJWGylNQXkGcnM3IQ==", "requires": { - "dunder-proto": "^1.0.1", - "es-object-atoms": "^1.0.0" + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^10.0.1", + "globals": "^14.0.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "dependencies": { + "ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "requires": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, + "json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" + } } }, - "get-symbol-description": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/get-symbol-description/-/get-symbol-description-1.0.2.tgz", - "integrity": "sha512-g0QYk1dZBxGwk+Ngc+ltRH2IBp2f7zBkBMBJZCDerh6EhlhSR6+9irMCuT/09zD6qkarHUSn529sK/yL4S27mg==", - "dev": true, + "@eth-optimism/core-utils": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/@eth-optimism/core-utils/-/core-utils-0.12.0.tgz", + "integrity": "sha512-qW+7LZYCz7i8dRa7SRlUKIo1VBU8lvN0HeXCxJR+z+xtMzMQpPds20XJNCMclszxYQHkXY00fOT6GvFw9ZL6nw==", "requires": { - "call-bind": "^1.0.5", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.4" + "@ethersproject/abi": "^5.7.0", + "@ethersproject/abstract-provider": "^5.7.0", + "@ethersproject/address": "^5.7.0", + "@ethersproject/bignumber": "^5.7.0", + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/constants": "^5.7.0", + "@ethersproject/contracts": "^5.7.0", + "@ethersproject/hash": "^5.7.0", + "@ethersproject/keccak256": "^5.7.0", + "@ethersproject/properties": "^5.7.0", + "@ethersproject/providers": "^5.7.0", + "@ethersproject/rlp": "^5.7.0", + "@ethersproject/transactions": "^5.7.0", + "@ethersproject/web": "^5.7.0", + "bufio": "^1.0.7", + "chai": "^4.3.4" } }, - "ghost-testrpc": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/ghost-testrpc/-/ghost-testrpc-0.0.2.tgz", - "integrity": "sha512-i08dAEgJ2g8z5buJIrCTduwPIhih3DP+hOCTyyryikfV8T0bNvHnGXO67i0DD1H4GBDETTclPy9njZbfluQYrQ==", - "dev": true, - "peer": true, + "@ethersproject/abi": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/@ethersproject/abi/-/abi-5.7.0.tgz", + "integrity": "sha512-351ktp42TiRcYB3H1OP8yajPeAQstMW/yCFokj/AthP9bLHzQFPlOrxOcwYEDkUAICmOHljvN4K39OMTMUa9RA==", "requires": { - "chalk": "^2.4.2", - "node-emoji": "^1.10.0" + "@ethersproject/address": "^5.7.0", + "@ethersproject/bignumber": "^5.7.0", + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/constants": "^5.7.0", + "@ethersproject/hash": "^5.7.0", + "@ethersproject/keccak256": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "@ethersproject/properties": "^5.7.0", + "@ethersproject/strings": "^5.7.0" } }, - "glob": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", - "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==", + "@ethersproject/abstract-provider": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/@ethersproject/abstract-provider/-/abstract-provider-5.7.0.tgz", + "integrity": "sha512-R41c9UkchKCpAqStMYUpdunjo3pkEvZC3FAwZn5S5MGbXoMQOHIdHItezTETxAO5bevtMApSyEhn9+CHcDsWBw==", "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" + "@ethersproject/bignumber": "^5.7.0", + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "@ethersproject/networks": "^5.7.0", + "@ethersproject/properties": "^5.7.0", + "@ethersproject/transactions": "^5.7.0", + "@ethersproject/web": "^5.7.0" } }, - "glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "@ethersproject/abstract-signer": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/@ethersproject/abstract-signer/-/abstract-signer-5.7.0.tgz", + "integrity": "sha512-a16V8bq1/Cz+TGCkE2OPMTOUDLS3grCpdjoJCYNnVBbdYEMSgKrU0+B90s8b6H+ByYTBZN7a3g76jdIJi7UfKQ==", "requires": { - "is-glob": "^4.0.1" + "@ethersproject/abstract-provider": "^5.7.0", + "@ethersproject/bignumber": "^5.7.0", + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "@ethersproject/properties": "^5.7.0" } }, - "global-modules": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/global-modules/-/global-modules-2.0.0.tgz", - "integrity": "sha512-NGbfmJBp9x8IxyJSd1P+otYK8vonoJactOogrVfFRIAEY1ukil8RSKDz2Yo7wh1oihl51l/r6W4epkeKJHqL8A==", - "dev": true, - "peer": true, + "@ethersproject/address": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/@ethersproject/address/-/address-5.7.0.tgz", + "integrity": "sha512-9wYhYt7aghVGo758POM5nqcOMaE168Q6aRLJZwUmiqSrAungkG74gSSeKEIR7ukixesdRZGPgVqme6vmxs1fkA==", "requires": { - "global-prefix": "^3.0.0" + "@ethersproject/bignumber": "^5.7.0", + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/keccak256": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "@ethersproject/rlp": "^5.7.0" } }, - "global-prefix": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/global-prefix/-/global-prefix-3.0.0.tgz", - "integrity": "sha512-awConJSVCHVGND6x3tmMaKcQvwXLhjdkmomy2W+Goaui8YPgYgXJZewhg3fWC+DlfqqQuWg8AwqjGTD2nAPVWg==", - "dev": true, - "peer": true, + "@ethersproject/base64": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/@ethersproject/base64/-/base64-5.7.0.tgz", + "integrity": "sha512-Dr8tcHt2mEbsZr/mwTPIQAf3Ai0Bks/7gTw9dSqk1mQvhW3XvRlmDJr/4n+wg1JmCl16NZue17CDh8xb/vZ0sQ==", "requires": { - "ini": "^1.3.5", - "kind-of": "^6.0.2", - "which": "^1.3.1" + "@ethersproject/bytes": "^5.7.0" } }, - "globals": { - "version": "14.0.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", - "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==" - }, - "globalthis": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", - "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", - "dev": true, + "@ethersproject/basex": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/@ethersproject/basex/-/basex-5.7.0.tgz", + "integrity": "sha512-ywlh43GwZLv2Voc2gQVTKBoVQ1mti3d8HK5aMxsfu/nRDnMmNqaSJ3r3n85HBByT8OpoY96SXM1FogC533T4zw==", "requires": { - "define-properties": "^1.1.3" + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/properties": "^5.7.0" } }, - "globby": { - "version": "10.0.2", - "resolved": "https://registry.npmjs.org/globby/-/globby-10.0.2.tgz", - "integrity": "sha512-7dUi7RvCoT/xast/o/dLN53oqND4yk0nsHkhRgn9w65C4PofCLOoJ39iSOg+qVDdWQPIEj+eszMHQ+aLVwwQSg==", - "dev": true, - "peer": true, + "@ethersproject/bignumber": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/@ethersproject/bignumber/-/bignumber-5.7.0.tgz", + "integrity": "sha512-n1CAdIHRWjSucQO3MC1zPSVgV/6dy/fjL9pMrPP9peL+QxEg9wOsVqwD4+818B6LUEtaXzVHQiuivzRoxPxUGw==", "requires": { - "@types/glob": "^7.1.1", - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.0.3", - "glob": "^7.1.3", - "ignore": "^5.1.1", - "merge2": "^1.2.3", - "slash": "^3.0.0" + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "bn.js": "^5.2.1" } }, - "gopd": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", - "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", - "dev": true - }, - "graceful-fs": { - "version": "4.2.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" - }, - "handlebars": { - "version": "4.7.8", - "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.8.tgz", - "integrity": "sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ==", - "dev": true, + "@ethersproject/bytes": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/@ethersproject/bytes/-/bytes-5.7.0.tgz", + "integrity": "sha512-nsbxwgFXWh9NyYWo+U8atvmMsSdKJprTcICAkvbBffT75qDocbuggBU0SJiVK2MuTrp0q+xvLkTnGMPK1+uA9A==", "requires": { - "minimist": "^1.2.5", - "neo-async": "^2.6.2", - "source-map": "^0.6.1", - "uglify-js": "^3.1.4", - "wordwrap": "^1.0.0" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } + "@ethersproject/logger": "^5.7.0" } }, - "hardhat": { - "version": "2.26.3", - "resolved": "https://registry.npmjs.org/hardhat/-/hardhat-2.26.3.tgz", - "integrity": "sha512-gBfjbxCCEaRgMCRgTpjo1CEoJwqNPhyGMMVHYZJxoQ3LLftp2erSVf8ZF6hTQC0r2wst4NcqNmLWqMnHg1quTw==", - "dev": true, + "@ethersproject/constants": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/@ethersproject/constants/-/constants-5.7.0.tgz", + "integrity": "sha512-DHI+y5dBNvkpYUMiRQyxRBYBefZkJfo70VUkUAsRjcPs47muV9evftfZ0PJVCXYbAiCgght0DtcF9srFQmIgWA==", "requires": { - "@ethereumjs/util": "^9.1.0", - "@ethersproject/abi": "^5.1.2", - "@nomicfoundation/edr": "^0.11.3", - "@nomicfoundation/solidity-analyzer": "^0.1.0", - "@sentry/node": "^5.18.1", - "adm-zip": "^0.4.16", - "aggregate-error": "^3.0.0", - "ansi-escapes": "^4.3.0", - "boxen": "^5.1.2", - "chokidar": "^4.0.0", - "ci-info": "^2.0.0", - "debug": "^4.1.1", - "enquirer": "^2.3.0", - "env-paths": "^2.2.0", - "ethereum-cryptography": "^1.0.3", - "find-up": "^5.0.0", - "fp-ts": "1.19.3", - "fs-extra": "^7.0.1", - "immutable": "^4.0.0-rc.12", - "io-ts": "1.10.4", - "json-stream-stringify": "^3.1.4", - "keccak": "^3.0.2", - "lodash": "^4.17.11", - "micro-eth-signer": "^0.14.0", - "mnemonist": "^0.38.0", - "mocha": "^10.0.0", - "p-map": "^4.0.0", - "picocolors": "^1.1.0", - "raw-body": "^2.4.1", - "resolve": "1.17.0", - "semver": "^6.3.0", - "solc": "0.8.26", - "source-map-support": "^0.5.13", - "stacktrace-parser": "^0.1.10", - "tinyglobby": "^0.2.6", - "tsort": "0.0.1", - "undici": "^5.14.0", - "uuid": "^8.3.2", - "ws": "^7.4.6" - }, - "dependencies": { - "@noble/hashes": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.2.0.tgz", - "integrity": "sha512-FZfhjEDbT5GRswV3C6uvLPHMiVD6lQBmpoX5+eSiPaMTXte/IKqI5dykDxzZB/WBeK/CDuQRBWarPdi3FNY2zQ==", - "dev": true - }, - "@scure/bip32": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.1.5.tgz", - "integrity": "sha512-XyNh1rB0SkEqd3tXcXMi+Xe1fvg+kUIcoRIEujP1Jgv7DqW2r9lg3Ah0NkFaCs9sTkQAQA8kw7xiRXzENi9Rtw==", - "dev": true, - "requires": { - "@noble/hashes": "~1.2.0", - "@noble/secp256k1": "~1.7.0", - "@scure/base": "~1.1.0" - } - }, - "@scure/bip39": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.1.1.tgz", - "integrity": "sha512-t+wDck2rVkh65Hmv280fYdVdY25J9YeEUIgn2LG1WM6gxFkGzcksoDiUkWVpVp3Oex9xGC68JU2dSbUfwZ2jPg==", - "dev": true, - "requires": { - "@noble/hashes": "~1.2.0", - "@scure/base": "~1.1.0" - } - }, - "ethereum-cryptography": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-1.2.0.tgz", - "integrity": "sha512-6yFQC9b5ug6/17CQpCyE3k9eKBMdhyVjzUy1WkiuY/E4vj/SXDBbCw8QEIaXqf0Mf2SnY6RmpDcwlUmBSS0EJw==", - "dev": true, - "requires": { - "@noble/hashes": "1.2.0", - "@noble/secp256k1": "1.7.1", - "@scure/bip32": "1.1.5", - "@scure/bip39": "1.1.1" - } - }, - "fs-extra": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", - "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" - } - }, - "jsonfile": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", - "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", - "dev": true, - "requires": { - "graceful-fs": "^4.1.6" - } - }, - "universalify": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", - "dev": true - }, - "ws": { - "version": "7.5.9", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", - "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", - "dev": true, - "requires": {} - } + "@ethersproject/bignumber": "^5.7.0" } }, - "hardhat-gas-reporter": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/hardhat-gas-reporter/-/hardhat-gas-reporter-1.0.10.tgz", - "integrity": "sha512-02N4+So/fZrzJ88ci54GqwVA3Zrf0C9duuTyGt0CFRIh/CdNwbnTgkXkRfojOMLBQ+6t+lBIkgbsOtqMvNwikA==", - "dev": true, - "peer": true, + "@ethersproject/contracts": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/@ethersproject/contracts/-/contracts-5.7.0.tgz", + "integrity": "sha512-5GJbzEU3X+d33CdfPhcyS+z8MzsTrBGk/sc+G+59+tPa9yFkl6HQ9D6L0QMgNTA9q8dT0XKxxkyp883XsQvbbg==", "requires": { - "array-uniq": "1.0.3", - "eth-gas-reporter": "^0.2.25", - "sha1": "^1.1.1" + "@ethersproject/abi": "^5.7.0", + "@ethersproject/abstract-provider": "^5.7.0", + "@ethersproject/abstract-signer": "^5.7.0", + "@ethersproject/address": "^5.7.0", + "@ethersproject/bignumber": "^5.7.0", + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/constants": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "@ethersproject/properties": "^5.7.0", + "@ethersproject/transactions": "^5.7.0" } }, - "has-bigints": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz", - "integrity": "sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ==", - "dev": true - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "dev": true, - "peer": true - }, - "has-property-descriptors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", - "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", - "dev": true, + "@ethersproject/hash": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/@ethersproject/hash/-/hash-5.7.0.tgz", + "integrity": "sha512-qX5WrQfnah1EFnO5zJv1v46a8HW0+E5xuBBDTwMFZLuVTx0tbU2kkx15NqdjxecrLGatQN9FGQKpb1FKdHCt+g==", "requires": { - "es-define-property": "^1.0.0" + "@ethersproject/abstract-signer": "^5.7.0", + "@ethersproject/address": "^5.7.0", + "@ethersproject/base64": "^5.7.0", + "@ethersproject/bignumber": "^5.7.0", + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/keccak256": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "@ethersproject/properties": "^5.7.0", + "@ethersproject/strings": "^5.7.0" } }, - "has-proto": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz", - "integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==", - "dev": true - }, - "has-symbols": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", - "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", - "dev": true - }, - "has-tostringtag": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", - "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", - "dev": true, + "@ethersproject/hdnode": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/@ethersproject/hdnode/-/hdnode-5.7.0.tgz", + "integrity": "sha512-OmyYo9EENBPPf4ERhR7oj6uAtUAhYGqOnIS+jE5pTXvdKBS99ikzq1E7Iv0ZQZ5V36Lqx1qZLeak0Ra16qpeOg==", + "peer": true, "requires": { - "has-symbols": "^1.0.3" + "@ethersproject/abstract-signer": "^5.7.0", + "@ethersproject/basex": "^5.7.0", + "@ethersproject/bignumber": "^5.7.0", + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "@ethersproject/pbkdf2": "^5.7.0", + "@ethersproject/properties": "^5.7.0", + "@ethersproject/sha2": "^5.7.0", + "@ethersproject/signing-key": "^5.7.0", + "@ethersproject/strings": "^5.7.0", + "@ethersproject/transactions": "^5.7.0", + "@ethersproject/wordlists": "^5.7.0" } }, - "hash-base": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.1.2.tgz", - "integrity": "sha512-Bb33KbowVTIj5s7Ked1OsqHUeCpz//tPwR+E2zJgJKo9Z5XolZ9b6bdUgjmYlwnWhoOQKoTd1TYToZGn5mAYOg==", - "dev": true, + "@ethersproject/json-wallets": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/@ethersproject/json-wallets/-/json-wallets-5.7.0.tgz", + "integrity": "sha512-8oee5Xgu6+RKgJTkvEMl2wDgSPSAQ9MB/3JYjFV9jlKvcYHUXZC+cQp0njgmxdHkYWn8s6/IqIZYm0YWCjO/0g==", "peer": true, "requires": { - "inherits": "^2.0.4", - "readable-stream": "^2.3.8", - "safe-buffer": "^5.2.1", - "to-buffer": "^1.2.1" + "@ethersproject/abstract-signer": "^5.7.0", + "@ethersproject/address": "^5.7.0", + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/hdnode": "^5.7.0", + "@ethersproject/keccak256": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "@ethersproject/pbkdf2": "^5.7.0", + "@ethersproject/properties": "^5.7.0", + "@ethersproject/random": "^5.7.0", + "@ethersproject/strings": "^5.7.0", + "@ethersproject/transactions": "^5.7.0", + "aes-js": "3.0.0", + "scrypt-js": "3.0.1" }, "dependencies": { - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", - "dev": true, + "aes-js": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/aes-js/-/aes-js-3.0.0.tgz", + "integrity": "sha512-H7wUZRn8WpTq9jocdxQ2c8x2sKo9ZVmzfRE13GiNJXfp7NcKYEdvl3vspKjXox6RIG2VtaRe4JFvxG4rqp2Zuw==", "peer": true - }, - "readable-stream": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", - "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", - "dev": true, - "peer": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - }, - "dependencies": { - "safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true, - "peer": true - } - } - }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "dev": true, - "peer": true, - "requires": { - "safe-buffer": "~5.1.0" - }, - "dependencies": { - "safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true, - "peer": true - } - } } } }, - "hash.js": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz", - "integrity": "sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==", - "requires": { - "inherits": "^2.0.3", - "minimalistic-assert": "^1.0.1" - } - }, - "hasown": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", - "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", - "dev": true, + "@ethersproject/keccak256": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/@ethersproject/keccak256/-/keccak256-5.7.0.tgz", + "integrity": "sha512-2UcPboeL/iW+pSg6vZ6ydF8tCnv3Iu/8tUmLLzWWGzxWKFFqOBQFLo6uLUv6BDrLgCDfN28RJ/wtByx+jZ4KBg==", "requires": { - "function-bind": "^1.1.2" + "@ethersproject/bytes": "^5.7.0", + "js-sha3": "0.8.0" } }, - "he": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", - "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", - "dev": true - }, - "heap": { - "version": "0.2.7", - "resolved": "https://registry.npmjs.org/heap/-/heap-0.2.7.tgz", - "integrity": "sha512-2bsegYkkHO+h/9MGbn6KWcE45cHZgPANo5LXF7EvWdT0yT2EguSVO1nDgU5c8+ZOPwp2vMNa7YFsJhVcDR9Sdg==", - "dev": true, - "peer": true + "@ethersproject/logger": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/@ethersproject/logger/-/logger-5.7.0.tgz", + "integrity": "sha512-0odtFdXu/XHtjQXJYA3u9G0G8btm0ND5Cu8M7i5vhEcE8/HmF4Lbdqanwyv4uQTr2tx6b7fQRmgLrsnpQlmnig==" }, - "hmac-drbg": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", - "integrity": "sha512-Tti3gMqLdZfhOQY1Mzf/AanLiqh1WTiJgEj26ZuYQ9fbkLomzGchCws4FyrSd4VkpBfiNhaE1On+lOz894jvXg==", + "@ethersproject/networks": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/@ethersproject/networks/-/networks-5.7.1.tgz", + "integrity": "sha512-n/MufjFYv3yFcUyfhnXotyDlNdFb7onmkSy8aQERi2PjNcnWQ66xXxa3XlS8nCcA8aJKJjIIMNJTC7tu80GwpQ==", "requires": { - "hash.js": "^1.0.3", - "minimalistic-assert": "^1.0.0", - "minimalistic-crypto-utils": "^1.0.1" + "@ethersproject/logger": "^5.7.0" } }, - "http-basic": { - "version": "8.1.3", - "resolved": "https://registry.npmjs.org/http-basic/-/http-basic-8.1.3.tgz", - "integrity": "sha512-/EcDMwJZh3mABI2NhGfHOGOeOZITqfkEO4p/xK+l3NpyncIHUQBoMvCSF/b5GqvKtySC2srL/GGG3+EtlqlmCw==", - "dev": true, + "@ethersproject/pbkdf2": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/@ethersproject/pbkdf2/-/pbkdf2-5.7.0.tgz", + "integrity": "sha512-oR/dBRZR6GTyaofd86DehG72hY6NpAjhabkhxgr3X2FpJtJuodEl2auADWBZfhDHgVCbu3/H/Ocq2uC6dpNjjw==", "peer": true, "requires": { - "caseless": "^0.12.0", - "concat-stream": "^1.6.2", - "http-response-object": "^3.0.1", - "parse-cache-control": "^1.0.1" + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/sha2": "^5.7.0" } }, - "http-errors": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", - "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", - "dev": true, + "@ethersproject/properties": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/@ethersproject/properties/-/properties-5.7.0.tgz", + "integrity": "sha512-J87jy8suntrAkIZtecpxEPxY//szqr1mlBaYlQ0r4RCaiD2hjheqF9s1LVE8vVuJCXisjIP+JgtK/Do54ej4Sw==", "requires": { - "depd": "2.0.0", - "inherits": "2.0.4", - "setprototypeof": "1.2.0", - "statuses": "2.0.1", - "toidentifier": "1.0.1" + "@ethersproject/logger": "^5.7.0" } }, - "http-response-object": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/http-response-object/-/http-response-object-3.0.2.tgz", - "integrity": "sha512-bqX0XTF6fnXSQcEJ2Iuyr75yVakyjIDCqroJQ/aHfSdlM743Cwqoi2nDYMzLGWUcuTWGWy8AAvOKXTfiv6q9RA==", - "dev": true, - "peer": true, + "@ethersproject/providers": { + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/@ethersproject/providers/-/providers-5.7.2.tgz", + "integrity": "sha512-g34EWZ1WWAVgr4aptGlVBF8mhl3VWjv+8hoAnzStu8Ah22VHBsuGzP17eb6xDVRzw895G4W7vvx60lFFur/1Rg==", "requires": { - "@types/node": "^10.0.3" + "@ethersproject/abstract-provider": "^5.7.0", + "@ethersproject/abstract-signer": "^5.7.0", + "@ethersproject/address": "^5.7.0", + "@ethersproject/base64": "^5.7.0", + "@ethersproject/basex": "^5.7.0", + "@ethersproject/bignumber": "^5.7.0", + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/constants": "^5.7.0", + "@ethersproject/hash": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "@ethersproject/networks": "^5.7.0", + "@ethersproject/properties": "^5.7.0", + "@ethersproject/random": "^5.7.0", + "@ethersproject/rlp": "^5.7.0", + "@ethersproject/sha2": "^5.7.0", + "@ethersproject/strings": "^5.7.0", + "@ethersproject/transactions": "^5.7.0", + "@ethersproject/web": "^5.7.0", + "bech32": "1.1.4", + "ws": "7.4.6" }, "dependencies": { - "@types/node": { - "version": "10.17.60", - "resolved": "https://registry.npmjs.org/@types/node/-/node-10.17.60.tgz", - "integrity": "sha512-F0KIgDJfy2nA3zMLmWGKxcH2ZVEtCZXHHdOQs2gSaQ27+lNeEfGxzkIw90aXswATX7AZ33tahPbzy6KAfUreVw==", - "dev": true, - "peer": true + "ws": { + "version": "7.4.6", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.4.6.tgz", + "integrity": "sha512-YmhHDO4MzaDLB+M9ym/mDA5z0naX8j7SIlT8f8z+I0VtzsRbekxEutHSme7NPS2qE8StCYQNUnfWdXta/Yu85A==", + "requires": {} } } }, - "https-proxy-agent": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", - "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", - "dev": true, + "@ethersproject/random": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/@ethersproject/random/-/random-5.7.0.tgz", + "integrity": "sha512-19WjScqRA8IIeWclFme75VMXSBvi4e6InrUNuaR4s5pTF2qNhcGdCUwdxUVGtDDqC00sDLCO93jPQoDUH4HVmQ==", "requires": { - "agent-base": "6", - "debug": "4" + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/logger": "^5.7.0" } }, - "human-id": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/human-id/-/human-id-4.1.1.tgz", - "integrity": "sha512-3gKm/gCSUipeLsRYZbbdA1BD83lBoWUkZ7G9VFrhWPAU76KwYo5KR8V28bpoPm/ygy0x5/GCbpRQdY7VLYCoIg==" + "@ethersproject/rlp": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/@ethersproject/rlp/-/rlp-5.7.0.tgz", + "integrity": "sha512-rBxzX2vK8mVF7b0Tol44t5Tb8gomOHkj5guL+HhzQ1yBh/ydjGnpw6at+X6Iw0Kp3OzzzkcKp8N9r0W4kYSs9w==", + "requires": { + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/logger": "^5.7.0" + } }, - "iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "dev": true, + "@ethersproject/sha2": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/@ethersproject/sha2/-/sha2-5.7.0.tgz", + "integrity": "sha512-gKlH42riwb3KYp0reLsFTokByAKoJdgFCwI+CCiX/k+Jm2mbNs6oOaCjYQSlI1+XBVejwH2KrmCbMAT/GnRDQw==", "requires": { - "safer-buffer": ">= 2.1.2 < 3" + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "hash.js": "1.1.7" } }, - "ignore": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.1.tgz", - "integrity": "sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==" + "@ethersproject/signing-key": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/@ethersproject/signing-key/-/signing-key-5.7.0.tgz", + "integrity": "sha512-MZdy2nL3wO0u7gkB4nA/pEf8lu1TlFswPNmy8AiYkfKTdO6eXBJyUdmHO/ehm/htHw9K/qF8ujnTyUAD+Ry54Q==", + "requires": { + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "@ethersproject/properties": "^5.7.0", + "bn.js": "^5.2.1", + "elliptic": "6.5.4", + "hash.js": "1.1.7" + } }, - "immutable": { - "version": "4.3.5", - "resolved": "https://registry.npmjs.org/immutable/-/immutable-4.3.5.tgz", - "integrity": "sha512-8eabxkth9gZatlwl5TBuJnCsoTADlL6ftEr7A4qgdaTsPyreilDSnUk57SO+jfKcNtxPa22U5KK6DSeAYhpBJw==", - "dev": true + "@ethersproject/solidity": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/@ethersproject/solidity/-/solidity-5.7.0.tgz", + "integrity": "sha512-HmabMd2Dt/raavyaGukF4XxizWKhKQ24DoLtdNbBmNKUOPqwjsKQSdV9GQtj9CBEea9DlzETlVER1gYeXXBGaA==", + "peer": true, + "requires": { + "@ethersproject/bignumber": "^5.7.0", + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/keccak256": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "@ethersproject/sha2": "^5.7.0", + "@ethersproject/strings": "^5.7.0" + } }, - "import-fresh": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", - "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", + "@ethersproject/strings": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/@ethersproject/strings/-/strings-5.7.0.tgz", + "integrity": "sha512-/9nu+lj0YswRNSH0NXYqrh8775XNyEdUQAuf3f+SmOrnVewcJ5SBNAjF7lpgehKi4abvNNXyf+HX86czCdJ8Mg==", "requires": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - }, - "dependencies": { - "resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==" - } + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/constants": "^5.7.0", + "@ethersproject/logger": "^5.7.0" } }, - "indent-string": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", - "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", - "dev": true + "@ethersproject/transactions": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/@ethersproject/transactions/-/transactions-5.7.0.tgz", + "integrity": "sha512-kmcNicCp1lp8qanMTC3RIikGgoJ80ztTyvtsFvCYpSCfkjhD0jZ2LOrnbcuxuToLIUYYf+4XwD1rP+B/erDIhQ==", + "requires": { + "@ethersproject/address": "^5.7.0", + "@ethersproject/bignumber": "^5.7.0", + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/constants": "^5.7.0", + "@ethersproject/keccak256": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "@ethersproject/properties": "^5.7.0", + "@ethersproject/rlp": "^5.7.0", + "@ethersproject/signing-key": "^5.7.0" + } }, - "inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "@ethersproject/units": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/@ethersproject/units/-/units-5.7.0.tgz", + "integrity": "sha512-pD3xLMy3SJu9kG5xDGI7+xhTEmGXlEqXU4OfNapmfnxLVY4EMSSRp7j1k7eezutBPH7RBN/7QPnwR7hzNlEFeg==", + "peer": true, "requires": { - "once": "^1.3.0", - "wrappy": "1" + "@ethersproject/bignumber": "^5.7.0", + "@ethersproject/constants": "^5.7.0", + "@ethersproject/logger": "^5.7.0" } }, - "inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + "@ethersproject/wallet": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/@ethersproject/wallet/-/wallet-5.7.0.tgz", + "integrity": "sha512-MhmXlJXEJFBFVKrDLB4ZdDzxcBxQ3rLyCkhNqVu3CDYvR97E+8r01UgrI+TI99Le+aYm/in/0vp86guJuM7FCA==", + "peer": true, + "requires": { + "@ethersproject/abstract-provider": "^5.7.0", + "@ethersproject/abstract-signer": "^5.7.0", + "@ethersproject/address": "^5.7.0", + "@ethersproject/bignumber": "^5.7.0", + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/hash": "^5.7.0", + "@ethersproject/hdnode": "^5.7.0", + "@ethersproject/json-wallets": "^5.7.0", + "@ethersproject/keccak256": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "@ethersproject/properties": "^5.7.0", + "@ethersproject/random": "^5.7.0", + "@ethersproject/signing-key": "^5.7.0", + "@ethersproject/transactions": "^5.7.0", + "@ethersproject/wordlists": "^5.7.0" + } }, - "ini": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", - "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", - "dev": true, - "peer": true + "@ethersproject/web": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/@ethersproject/web/-/web-5.7.1.tgz", + "integrity": "sha512-Gueu8lSvyjBWL4cYsWsjh6MtMwM0+H4HvqFPZfB6dV8ctbP9zFAO73VG1cMWae0FLPCtz0peKPpZY8/ugJJX2w==", + "requires": { + "@ethersproject/base64": "^5.7.0", + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "@ethersproject/properties": "^5.7.0", + "@ethersproject/strings": "^5.7.0" + } }, - "internal-slot": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.7.tgz", - "integrity": "sha512-NGnrKwXzSms2qUUih/ILZ5JBqNTSa1+ZmP6flaIp6KmSElgE9qdndzS3cqjrDovwFdmwsGsLdeFgB6suw+1e9g==", - "dev": true, + "@ethersproject/wordlists": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/@ethersproject/wordlists/-/wordlists-5.7.0.tgz", + "integrity": "sha512-S2TFNJNfHWVHNE6cNDjbVlZ6MgE17MIxMbMg2zv3wn+3XSJGosL1m9ZVv3GXCf/2ymSsQ+hRI5IzoMJTG6aoVA==", + "peer": true, "requires": { - "es-errors": "^1.3.0", - "hasown": "^2.0.0", - "side-channel": "^1.0.4" + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/hash": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "@ethersproject/properties": "^5.7.0", + "@ethersproject/strings": "^5.7.0" } }, - "interpret": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz", - "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==", - "dev": true, - "peer": true - }, - "io-ts": { - "version": "1.10.4", - "resolved": "https://registry.npmjs.org/io-ts/-/io-ts-1.10.4.tgz", - "integrity": "sha512-b23PteSnYXSONJ6JQXRAlvJhuw8KOtkqa87W4wDtvMrud/DTJd5X+NpOOI+O/zZwVq6v0VLAaJ+1EDViKEuN9g==", - "dev": true, + "@inquirer/external-editor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@inquirer/external-editor/-/external-editor-1.0.2.tgz", + "integrity": "sha512-yy9cOoBnx58TlsPrIxauKIFQTiyH+0MK4e97y4sV9ERbI+zDxw7i2hxHLCIEGIE/8PPvDxGhgzIOTSOWcs6/MQ==", "requires": { - "fp-ts": "^1.0.0" + "chardet": "^2.1.0", + "iconv-lite": "^0.7.0" + }, + "dependencies": { + "iconv-lite": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.0.tgz", + "integrity": "sha512-cf6L2Ds3h57VVmkZe+Pn+5APsT7FpqJtEhhieDCvrE2MK5Qk9MyffgQyuxQTm6BChfeZNtcOLHp9IcWRVcIcBQ==", + "requires": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + } + } } }, - "is-array-buffer": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.4.tgz", - "integrity": "sha512-wcjaerHw0ydZwfhiKbXJWLDY8A7yV7KhjQOpb83hGgGfId/aQa4TOvwyzn2PuswW2gPCYEL/nEAiSVpdOj1lXw==", + "@jsdoc/salty": { + "version": "0.2.8", + "resolved": "https://registry.npmjs.org/@jsdoc/salty/-/salty-0.2.8.tgz", + "integrity": "sha512-5e+SFVavj1ORKlKaKr2BmTOekmXbelU7dC0cDkQLqag7xfuTPuGMUFx7KWJuv4bYZrTsoL2Z18VVCOKYxzoHcg==", "dev": true, "requires": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.2.1" + "lodash": "^4.17.21" } }, - "is-bigint": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", - "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", - "dev": true, + "@manypkg/find-root": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@manypkg/find-root/-/find-root-1.1.0.tgz", + "integrity": "sha512-mki5uBvhHzO8kYYix/WRy2WX8S3B5wdVSc9D6KcU5lQNglP2yt58/VfLuAK49glRXChosY8ap2oJ1qgma3GUVA==", "requires": { - "has-bigints": "^1.0.1" + "@babel/runtime": "^7.5.5", + "@types/node": "^12.7.1", + "find-up": "^4.1.0", + "fs-extra": "^8.1.0" + }, + "dependencies": { + "@types/node": { + "version": "12.20.55", + "resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.55.tgz", + "integrity": "sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==" + }, + "find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "requires": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + } + }, + "fs-extra": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", + "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", + "requires": { + "graceful-fs": "^4.2.0", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + } + }, + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "requires": { + "graceful-fs": "^4.1.6" + } + }, + "locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "requires": { + "p-locate": "^4.1.0" + } + }, + "p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "requires": { + "p-limit": "^2.2.0" + } + }, + "p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==" + }, + "universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" + } } }, - "is-binary-path": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", - "dev": true, + "@manypkg/get-packages": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@manypkg/get-packages/-/get-packages-1.1.3.tgz", + "integrity": "sha512-fo+QhuU3qE/2TQMQmbVMqaQ6EWbMhi4ABWP+O4AM1NqPBuy0OrApV5LO6BrrgnhtAHS2NH6RrVk9OL181tTi8A==", "requires": { - "binary-extensions": "^2.0.0" + "@babel/runtime": "^7.5.5", + "@changesets/types": "^4.0.1", + "@manypkg/find-root": "^1.1.0", + "fs-extra": "^8.1.0", + "globby": "^11.0.0", + "read-yaml-file": "^1.1.0" + }, + "dependencies": { + "@changesets/types": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@changesets/types/-/types-4.1.0.tgz", + "integrity": "sha512-LDQvVDv5Kb50ny2s25Fhm3d9QSZimsoUGBsUioj6MC3qbMUCuC8GPIvk/M6IvXx3lYhAs0lwWUQLb+VIEUCECw==" + }, + "fs-extra": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", + "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", + "requires": { + "graceful-fs": "^4.2.0", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + } + }, + "globby": { + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", + "requires": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" + } + }, + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "requires": { + "graceful-fs": "^4.1.6" + } + }, + "universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==" + } } }, - "is-boolean-object": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", - "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", + "@noble/curves": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.4.2.tgz", + "integrity": "sha512-TavHr8qycMChk8UwMld0ZDRvatedkzWfH8IiaeGCfymOP5i0hSCozz9vHOL0nkwk7HRMlFnAiKpS2jrUmSybcw==", "dev": true, "requires": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" + "@noble/hashes": "1.4.0" } }, - "is-callable": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", - "integrity": "sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==", + "@noble/hashes": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.4.0.tgz", + "integrity": "sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==", "dev": true }, - "is-ci": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", - "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==", + "@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", "requires": { - "ci-info": "^2.0.0" + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" } }, - "is-data-view": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-data-view/-/is-data-view-1.0.1.tgz", - "integrity": "sha512-AHkaJrsUVW6wq6JS8y3JnM/GJF/9cf+k20+iDzlSaJrinEo5+7vRiteOSwBhHRiAyQATN1AmY4hwzxJKPmYf+w==", - "dev": true, + "@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==" + }, + "@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", "requires": { - "is-typed-array": "^1.1.13" + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" } }, - "is-date-object": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", - "integrity": "sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ==", + "@nomicfoundation/edr": { + "version": "0.12.0-next.24", + "resolved": "https://registry.npmjs.org/@nomicfoundation/edr/-/edr-0.12.0-next.24.tgz", + "integrity": "sha512-/NwB9yX7uBs/FIJKHBZo2hVhP7g3v6LbE21JvTLvshgb+XscyaRRUmzB//ankxLGJ1TehtXAf/Qh/a19vgpiig==", "dev": true, "requires": { - "has-tostringtag": "^1.0.0" + "@nomicfoundation/edr-darwin-arm64": "0.12.0-next.24", + "@nomicfoundation/edr-darwin-x64": "0.12.0-next.24", + "@nomicfoundation/edr-linux-arm64-gnu": "0.12.0-next.24", + "@nomicfoundation/edr-linux-arm64-musl": "0.12.0-next.24", + "@nomicfoundation/edr-linux-x64-gnu": "0.12.0-next.24", + "@nomicfoundation/edr-linux-x64-musl": "0.12.0-next.24", + "@nomicfoundation/edr-win32-x64-msvc": "0.12.0-next.24" } }, - "is-docker": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", - "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==" - }, - "is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==" - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "@nomicfoundation/edr-darwin-arm64": { + "version": "0.12.0-next.24", + "resolved": "https://registry.npmjs.org/@nomicfoundation/edr-darwin-arm64/-/edr-darwin-arm64-0.12.0-next.24.tgz", + "integrity": "sha512-lYcD9IM52G0hk/3Sso2Rpdpyfafy3aHH0GsSy/FVog9UrEkmmU14AmccE18/zTL+UyV0yzYMDOmh6y83SD/lbg==", "dev": true }, - "is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "requires": { - "is-extglob": "^2.1.1" - } - }, - "is-hex-prefixed": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-hex-prefixed/-/is-hex-prefixed-1.0.0.tgz", - "integrity": "sha512-WvtOiug1VFrE9v1Cydwm+FnXd3+w9GaeVUss5W4v/SLy3UW00vP+6iNF2SdnfiBoLy4bTqVdkftNGTUeOFVsbA==", - "dev": true, - "peer": true - }, - "is-negative-zero": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.3.tgz", - "integrity": "sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==", + "@nomicfoundation/edr-darwin-x64": { + "version": "0.12.0-next.24", + "resolved": "https://registry.npmjs.org/@nomicfoundation/edr-darwin-x64/-/edr-darwin-x64-0.12.0-next.24.tgz", + "integrity": "sha512-cHDJZlPDpDXJXxQDVM0TGzEuNvV3wW94gipEdjNxZHeC9T2/NU/5GUoQajMJgvCZ6PWDlRMwIBRtM1jC/ny5DA==", "dev": true }, - "is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==" - }, - "is-number-object": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-number-object/-/is-number-object-1.0.7.tgz", - "integrity": "sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ==", - "dev": true, - "requires": { - "has-tostringtag": "^1.0.0" - } + "@nomicfoundation/edr-linux-arm64-gnu": { + "version": "0.12.0-next.24", + "resolved": "https://registry.npmjs.org/@nomicfoundation/edr-linux-arm64-gnu/-/edr-linux-arm64-gnu-0.12.0-next.24.tgz", + "integrity": "sha512-G/iln4W79CR9f68+crBZM1kBdmmK3IbQCD4b5u+iqby+H5BOLSPQmjeW9UREK5WSecnv7Oxr/ZTHHRq/w9pUPA==", + "dev": true }, - "is-plain-obj": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", - "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==", + "@nomicfoundation/edr-linux-arm64-musl": { + "version": "0.12.0-next.24", + "resolved": "https://registry.npmjs.org/@nomicfoundation/edr-linux-arm64-musl/-/edr-linux-arm64-musl-0.12.0-next.24.tgz", + "integrity": "sha512-wt6UuOutufL3UTSyMiwPOyfRly3uQEFHASXqLsNjgp4qBrm0s+kkyaYpAe8h53lGzZmXIDOAbO0P/fwxnLCnWw==", "dev": true }, - "is-regex": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", - "integrity": "sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - } + "@nomicfoundation/edr-linux-x64-gnu": { + "version": "0.12.0-next.24", + "resolved": "https://registry.npmjs.org/@nomicfoundation/edr-linux-x64-gnu/-/edr-linux-x64-gnu-0.12.0-next.24.tgz", + "integrity": "sha512-mHgkUSynINTnnIvZuZymJ4dMqjemGjdrzQ87rP5/SQQGRQVV82uDomSEglp9btSmbBWfPj4r4tWsV+a3844W0w==", + "dev": true }, - "is-shared-array-buffer": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.3.tgz", - "integrity": "sha512-nA2hv5XIhLR3uVzDDfCIknerhx8XUKnstuOERPNNIinXG7v9u+ohXF67vxm4TPTEPU6lm61ZkwP3c9PCB97rhg==", - "dev": true, - "requires": { - "call-bind": "^1.0.7" - } + "@nomicfoundation/edr-linux-x64-musl": { + "version": "0.12.0-next.24", + "resolved": "https://registry.npmjs.org/@nomicfoundation/edr-linux-x64-musl/-/edr-linux-x64-musl-0.12.0-next.24.tgz", + "integrity": "sha512-E0XNSlPc8Hx5Nhowe5VIvAqVeT+1VUWSRqG0cZtYcpUgJZxTp8p03ojPtbyfjL4T+78GfnpmzkkLhB6S2jZ1FQ==", + "dev": true }, - "is-string": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/is-string/-/is-string-1.0.7.tgz", - "integrity": "sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg==", - "dev": true, - "requires": { - "has-tostringtag": "^1.0.0" - } + "@nomicfoundation/edr-win32-x64-msvc": { + "version": "0.12.0-next.24", + "resolved": "https://registry.npmjs.org/@nomicfoundation/edr-win32-x64-msvc/-/edr-win32-x64-msvc-0.12.0-next.24.tgz", + "integrity": "sha512-PbtY2zWc4k8HK4gVnVbPohJnfrICboo6J91vxTlhnPKCWGvfGbsqLfDUAp91ExHHY+80qRfQnwaLbhJiIqLFGw==", + "dev": true }, - "is-subdir": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/is-subdir/-/is-subdir-1.2.0.tgz", - "integrity": "sha512-2AT6j+gXe/1ueqbW6fLZJiIw3F8iXGJtt0yDrZaBhAZEG1raiTxKWU+IPqMCzQAXOUCKdA4UDMgacKH25XG2Cw==", + "@nomicfoundation/hardhat-errors": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/@nomicfoundation/hardhat-errors/-/hardhat-errors-3.0.7.tgz", + "integrity": "sha512-l4RrzTfJ/WO0B9Te6i9161+pRbCSFXILanmHmgRfS4Bb4pDOjs+0eQf2I2cQrnqcJ6O/bxLvChPTQuad97dmQw==", + "dev": true, "requires": { - "better-path-resolve": "1.0.0" + "@nomicfoundation/hardhat-utils": "^4.0.0" } }, - "is-symbol": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.4.tgz", - "integrity": "sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg==", + "@nomicfoundation/hardhat-ethers": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/@nomicfoundation/hardhat-ethers/-/hardhat-ethers-4.0.5.tgz", + "integrity": "sha512-DFTpsg6MBV/JNv8Rd0M/C70Wqk3giYSAYCrBu3PeerX1eNd4wuz5kUlsX4yVoNOPpM6Lva9z+30JRDEuFEt0bQ==", "dev": true, "requires": { - "has-symbols": "^1.0.2" + "@nomicfoundation/hardhat-errors": "^3.0.7", + "@nomicfoundation/hardhat-utils": "^4.0.0", + "debug": "^4.3.2", + "ethereum-cryptography": "^2.2.1", + "ethers": "^6.14.0" } }, - "is-typed-array": { - "version": "1.1.15", - "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.15.tgz", - "integrity": "sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==", + "@nomicfoundation/hardhat-utils": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@nomicfoundation/hardhat-utils/-/hardhat-utils-4.0.0.tgz", + "integrity": "sha512-Deu4od7flcM89K+SEAxmOyn7FFWGiEILrGjoxYl/Gus0tctgpLNaK3M4LIjrJ25ci8LBjGVe3i28XZA4+QGQHQ==", "dev": true, "requires": { - "which-typed-array": "^1.1.16" + "@streamparser/json-node": "^0.0.22", + "debug": "^4.3.2", + "env-paths": "^2.2.0", + "ethereum-cryptography": "^2.2.1", + "fast-equals": "^5.4.0", + "json-stream-stringify": "^3.1.6", + "rfdc": "^1.3.1", + "undici": "^6.16.1" } }, - "is-unicode-supported": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", - "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", + "@nomicfoundation/hardhat-vendored": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@nomicfoundation/hardhat-vendored/-/hardhat-vendored-3.0.1.tgz", + "integrity": "sha512-jBOAqmEAMJ8zdfiQmTLV+c0IaSyySqkDSJ9spTy8Ts/m/mO8w364TClyfn+p4ZpxBjyX4LMa3NfC402hoDtwCg==", "dev": true }, - "is-weakref": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", - "integrity": "sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ==", + "@nomicfoundation/hardhat-zod-utils": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@nomicfoundation/hardhat-zod-utils/-/hardhat-zod-utils-3.0.2.tgz", + "integrity": "sha512-EtMIhi7jtpeQYd+pRQBNlxthi8OPVr/t32yn+VHHp6nwS5wgXLh6/KpvFZfJj5mBAUbOtogB7YQ4n5fpOeuggA==", "dev": true, "requires": { - "call-bind": "^1.0.2" + "@nomicfoundation/hardhat-errors": "^3.0.7", + "@nomicfoundation/hardhat-utils": "^4.0.0" } }, - "is-windows": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", - "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==" - }, - "is-wsl": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", - "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", + "@nomicfoundation/solidity-analyzer": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer/-/solidity-analyzer-0.1.1.tgz", + "integrity": "sha512-1LMtXj1puAxyFusBgUIy5pZk3073cNXYnXUpuNKFghHbIit/xZgbk0AokpUADbNm3gyD6bFWl3LRFh3dhVdREg==", + "dev": true, "requires": { - "is-docker": "^2.0.0" + "@nomicfoundation/solidity-analyzer-darwin-arm64": "0.1.1", + "@nomicfoundation/solidity-analyzer-darwin-x64": "0.1.1", + "@nomicfoundation/solidity-analyzer-freebsd-x64": "0.1.1", + "@nomicfoundation/solidity-analyzer-linux-arm64-gnu": "0.1.1", + "@nomicfoundation/solidity-analyzer-linux-arm64-musl": "0.1.1", + "@nomicfoundation/solidity-analyzer-linux-x64-gnu": "0.1.1", + "@nomicfoundation/solidity-analyzer-linux-x64-musl": "0.1.1", + "@nomicfoundation/solidity-analyzer-win32-arm64-msvc": "0.1.1", + "@nomicfoundation/solidity-analyzer-win32-ia32-msvc": "0.1.1", + "@nomicfoundation/solidity-analyzer-win32-x64-msvc": "0.1.1" } }, - "isarray": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", - "integrity": "sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==", - "dev": true + "@nomicfoundation/solidity-analyzer-darwin-arm64": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-darwin-arm64/-/solidity-analyzer-darwin-arm64-0.1.1.tgz", + "integrity": "sha512-KcTodaQw8ivDZyF+D76FokN/HdpgGpfjc/gFCImdLUyqB6eSWVaZPazMbeAjmfhx3R0zm/NYVzxwAokFKgrc0w==", + "dev": true, + "optional": true }, - "isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" + "@nomicfoundation/solidity-analyzer-darwin-x64": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-darwin-x64/-/solidity-analyzer-darwin-x64-0.1.1.tgz", + "integrity": "sha512-XhQG4BaJE6cIbjAVtzGOGbK3sn1BO9W29uhk9J8y8fZF1DYz0Doj8QDMfpMu+A6TjPDs61lbsmeYodIDnfveSA==", + "dev": true, + "optional": true }, - "jackspeak": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-4.0.1.tgz", - "integrity": "sha512-cub8rahkh0Q/bw1+GxP7aeSe29hHHn2V4m29nnDlvCdlgU+3UGxkZp7Z53jLUdpX3jdTO0nJZUDl3xvbWc2Xog==", + "@nomicfoundation/solidity-analyzer-freebsd-x64": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-freebsd-x64/-/solidity-analyzer-freebsd-x64-0.1.1.tgz", + "integrity": "sha512-GHF1VKRdHW3G8CndkwdaeLkVBi5A9u2jwtlS7SLhBc8b5U/GcoL39Q+1CSO3hYqePNP+eV5YI7Zgm0ea6kMHoA==", "dev": true, - "requires": { - "@isaacs/cliui": "^8.0.2", - "@pkgjs/parseargs": "^0.11.0" - } + "optional": true }, - "js-sha3": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.8.0.tgz", - "integrity": "sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q==" + "@nomicfoundation/solidity-analyzer-linux-arm64-gnu": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-linux-arm64-gnu/-/solidity-analyzer-linux-arm64-gnu-0.1.1.tgz", + "integrity": "sha512-g4Cv2fO37ZsUENQ2vwPnZc2zRenHyAxHcyBjKcjaSmmkKrFr64yvzeNO8S3GBFCo90rfochLs99wFVGT/0owpg==", + "dev": true, + "optional": true }, - "js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "requires": { - "argparse": "^2.0.1" - } + "@nomicfoundation/solidity-analyzer-linux-arm64-musl": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-linux-arm64-musl/-/solidity-analyzer-linux-arm64-musl-0.1.1.tgz", + "integrity": "sha512-WJ3CE5Oek25OGE3WwzK7oaopY8xMw9Lhb0mlYuJl/maZVo+WtP36XoQTb7bW/i8aAdHW5Z+BqrHMux23pvxG3w==", + "dev": true, + "optional": true }, - "js2xmlparser": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/js2xmlparser/-/js2xmlparser-4.0.2.tgz", - "integrity": "sha512-6n4D8gLlLf1n5mNLQPRfViYzu9RATblzPEtm1SthMX1Pjao0r9YI9nw7ZIfRxQMERS87mcswrg+r/OYrPRX6jA==", + "@nomicfoundation/solidity-analyzer-linux-x64-gnu": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-linux-x64-gnu/-/solidity-analyzer-linux-x64-gnu-0.1.1.tgz", + "integrity": "sha512-5WN7leSr5fkUBBjE4f3wKENUy9HQStu7HmWqbtknfXkkil+eNWiBV275IOlpXku7v3uLsXTOKpnnGHJYI2qsdA==", "dev": true, - "requires": { - "xmlcreate": "^2.0.4" - } + "optional": true }, - "jsdoc": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/jsdoc/-/jsdoc-4.0.3.tgz", - "integrity": "sha512-Nu7Sf35kXJ1MWDZIMAuATRQTg1iIPdzh7tqJ6jjvaU/GfDf+qi5UV8zJR3Mo+/pYFvm8mzay4+6O5EWigaQBQw==", + "@nomicfoundation/solidity-analyzer-linux-x64-musl": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-linux-x64-musl/-/solidity-analyzer-linux-x64-musl-0.1.1.tgz", + "integrity": "sha512-KdYMkJOq0SYPQMmErv/63CwGwMm5XHenEna9X9aB8mQmhDBrYrlAOSsIPgFCUSL0hjxE3xHP65/EPXR/InD2+w==", "dev": true, - "requires": { - "@babel/parser": "^7.20.15", - "@jsdoc/salty": "^0.2.1", - "@types/markdown-it": "^14.1.1", - "bluebird": "^3.7.2", - "catharsis": "^0.9.0", - "escape-string-regexp": "^2.0.0", - "js2xmlparser": "^4.0.2", - "klaw": "^3.0.0", - "markdown-it": "^14.1.0", - "markdown-it-anchor": "^8.6.7", - "marked": "^4.0.10", - "mkdirp": "^1.0.4", - "requizzle": "^0.2.3", - "strip-json-comments": "^3.1.0", - "underscore": "~1.13.2" - }, - "dependencies": { - "escape-string-regexp": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", - "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", - "dev": true - }, - "klaw": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/klaw/-/klaw-3.0.0.tgz", - "integrity": "sha512-0Fo5oir+O9jnXu5EefYbVK+mHMBeEVEy2cmctR1O1NECcCkPRreJKrS6Qt/j3KC2C148Dfo9i3pCmCMsdqGr0g==", - "dev": true, - "requires": { - "graceful-fs": "^4.1.9" - } - }, - "mkdirp": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", - "dev": true - } - } + "optional": true }, - "jsdoc-api": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/jsdoc-api/-/jsdoc-api-8.0.0.tgz", - "integrity": "sha512-Rnhor0suB1Ds1abjmFkFfKeD+kSMRN9oHMTMZoJVUrmtCGDwXty+sWMA9sa4xbe4UyxuPjhC7tavZ40mDKK6QQ==", + "@nomicfoundation/solidity-analyzer-win32-arm64-msvc": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-win32-arm64-msvc/-/solidity-analyzer-win32-arm64-msvc-0.1.1.tgz", + "integrity": "sha512-VFZASBfl4qiBYwW5xeY20exWhmv6ww9sWu/krWSesv3q5hA0o1JuzmPHR4LPN6SUZj5vcqci0O6JOL8BPw+APg==", "dev": true, - "requires": { - "array-back": "^6.2.2", - "cache-point": "^2.0.0", - "collect-all": "^1.0.4", - "file-set": "^4.0.2", - "fs-then-native": "^2.0.0", - "jsdoc": "^4.0.0", - "object-to-spawn-args": "^2.0.1", - "temp-path": "^1.0.0", - "walk-back": "^5.1.0" - }, - "dependencies": { - "array-back": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-6.2.2.tgz", - "integrity": "sha512-gUAZ7HPyb4SJczXAMUXMGAvI976JoK3qEx9v1FTmeYuJj0IBiaKttG1ydtGKdkfqWkIkouke7nG8ufGy77+Cvw==", - "dev": true - } - } + "optional": true }, - "jsdoc-parse": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/jsdoc-parse/-/jsdoc-parse-6.2.1.tgz", - "integrity": "sha512-9viGRUUtWOk/G4V0+nQ6rfLucz5plxh5I74WbNSNm9h9NWugCDVX4jbG8hZP9QqKGpdTPDE+qJXzaYNos3wqTA==", + "@nomicfoundation/solidity-analyzer-win32-ia32-msvc": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-win32-ia32-msvc/-/solidity-analyzer-win32-ia32-msvc-0.1.1.tgz", + "integrity": "sha512-JnFkYuyCSA70j6Si6cS1A9Gh1aHTEb8kOTBApp/c7NRTFGNMH8eaInKlyuuiIbvYFhlXW4LicqyYuWNNq9hkpQ==", "dev": true, - "requires": { - "array-back": "^6.2.2", - "lodash.omit": "^4.5.0", - "reduce-extract": "^1.0.0", - "sort-array": "^4.1.5", - "test-value": "^3.0.0" - }, - "dependencies": { - "array-back": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-6.2.2.tgz", - "integrity": "sha512-gUAZ7HPyb4SJczXAMUXMGAvI976JoK3qEx9v1FTmeYuJj0IBiaKttG1ydtGKdkfqWkIkouke7nG8ufGy77+Cvw==", - "dev": true - } - } + "optional": true }, - "jsdoc-to-markdown": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/jsdoc-to-markdown/-/jsdoc-to-markdown-8.0.1.tgz", - "integrity": "sha512-qJfNJhkq2C26UYoOdj8L1yheTJlk1veCsxwRejRmj07XZKCn7oSkuPErx6+JoNi8afCaUKdIM5oUu0uF2/T8iw==", + "@nomicfoundation/solidity-analyzer-win32-x64-msvc": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@nomicfoundation/solidity-analyzer-win32-x64-msvc/-/solidity-analyzer-win32-x64-msvc-0.1.1.tgz", + "integrity": "sha512-HrVJr6+WjIXGnw3Q9u6KQcbZCtk0caVWhCdFADySvRyUxJ8PnzlaP+MhwNE8oyT8OZ6ejHBRrrgjSqDCFXGirw==", "dev": true, + "optional": true + }, + "@offchainlabs/upgrade-executor": { + "version": "1.1.0-beta.0", + "resolved": "https://registry.npmjs.org/@offchainlabs/upgrade-executor/-/upgrade-executor-1.1.0-beta.0.tgz", + "integrity": "sha512-mpn6PHjH/KDDjNX0pXHEKdyv8m6DVGQiI2nGzQn0JbM1nOSHJpWx6fvfjtH7YxHJ6zBZTcsKkqGkFKDtCfoSLw==", "requires": { - "array-back": "^6.2.2", - "command-line-tool": "^0.8.0", - "config-master": "^3.1.0", - "dmd": "^6.2.0", - "jsdoc-api": "^8.0.0", - "jsdoc-parse": "^6.2.1", - "walk-back": "^5.1.0" + "@openzeppelin/contracts": "4.7.3", + "@openzeppelin/contracts-upgradeable": "4.7.3" }, "dependencies": { - "array-back": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-6.2.2.tgz", - "integrity": "sha512-gUAZ7HPyb4SJczXAMUXMGAvI976JoK3qEx9v1FTmeYuJj0IBiaKttG1ydtGKdkfqWkIkouke7nG8ufGy77+Cvw==", - "dev": true + "@openzeppelin/contracts": { + "version": "4.7.3", + "resolved": "https://registry.npmjs.org/@openzeppelin/contracts/-/contracts-4.7.3.tgz", + "integrity": "sha512-dGRS0agJzu8ybo44pCIf3xBaPQN/65AIXNgK8+4gzKd5kbvlqyxryUYVLJv7fK98Seyd2hDZzVEHSWAh0Bt1Yw==" + }, + "@openzeppelin/contracts-upgradeable": { + "version": "4.7.3", + "resolved": "https://registry.npmjs.org/@openzeppelin/contracts-upgradeable/-/contracts-upgradeable-4.7.3.tgz", + "integrity": "sha512-+wuegAMaLcZnLCJIvrVUDzA9z/Wp93f0Dla/4jJvIhijRrPabjQbZe6fWiECLaJyfn5ci9fqf9vTw3xpQOad2A==" } } }, - "json-schema-traverse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", - "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "dev": true, - "peer": true + "@openzeppelin/contracts-4.7.3": { + "version": "npm:@openzeppelin/contracts@4.7.3", + "resolved": "https://registry.npmjs.org/@openzeppelin/contracts/-/contracts-4.7.3.tgz", + "integrity": "sha512-dGRS0agJzu8ybo44pCIf3xBaPQN/65AIXNgK8+4gzKd5kbvlqyxryUYVLJv7fK98Seyd2hDZzVEHSWAh0Bt1Yw==" + }, + "@openzeppelin/contracts-4.8.3": { + "version": "npm:@openzeppelin/contracts@4.8.3", + "resolved": "https://registry.npmjs.org/@openzeppelin/contracts/-/contracts-4.8.3.tgz", + "integrity": "sha512-bQHV8R9Me8IaJoJ2vPG4rXcL7seB7YVuskr4f+f5RyOStSZetwzkWtoqDMl5erkBJy0lDRUnIR2WIkPiC0GJlg==" + }, + "@openzeppelin/contracts-4.9.6": { + "version": "npm:@openzeppelin/contracts@4.9.6", + "resolved": "https://registry.npmjs.org/@openzeppelin/contracts/-/contracts-4.9.6.tgz", + "integrity": "sha512-xSmezSupL+y9VkHZJGDoCBpmnB2ogM13ccaYDWqJTfS3dbuHkgjuwDFUmaFauBCboQMGB/S5UqUl2y54X99BmA==" }, - "json-stream-stringify": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/json-stream-stringify/-/json-stream-stringify-3.1.6.tgz", - "integrity": "sha512-x7fpwxOkbhFCaJDJ8vb1fBY3DdSa4AlITaz+HHILQJzdPMnHEFjxPwVUi1ALIbcIxDE0PNe/0i7frnY8QnBQog==", - "dev": true + "@openzeppelin/contracts-5.0.2": { + "version": "npm:@openzeppelin/contracts@5.0.2", + "resolved": "https://registry.npmjs.org/@openzeppelin/contracts/-/contracts-5.0.2.tgz", + "integrity": "sha512-ytPc6eLGcHHnapAZ9S+5qsdomhjo6QBHTDRRBFfTxXIpsicMhVPouPgmUPebZZZGX7vt9USA+Z+0M0dSVtSUEA==" }, - "jsonfile": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", - "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", - "requires": { - "graceful-fs": "^4.1.6", - "universalify": "^2.0.0" - } + "@openzeppelin/contracts-5.1.0": { + "version": "npm:@openzeppelin/contracts@5.1.0", + "resolved": "https://registry.npmjs.org/@openzeppelin/contracts/-/contracts-5.1.0.tgz", + "integrity": "sha512-p1ULhl7BXzjjbha5aqst+QMLY+4/LCWADXOCsmLHRM77AqiPjnd9vvUN9sosUfhL9JGKpZ0TjEGxgvnizmWGSA==" }, - "jsonschema": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/jsonschema/-/jsonschema-1.5.0.tgz", - "integrity": "sha512-K+A9hhqbn0f3pJX17Q/7H6yQfD/5OXgdrR5UE12gMXCiN9D5Xq2o5mddV2QEcX/bjla99ASsAAQUyMCCRWAEhw==", - "dev": true, - "peer": true + "@openzeppelin/contracts-5.3.0": { + "version": "npm:@openzeppelin/contracts@5.3.0", + "resolved": "https://registry.npmjs.org/@openzeppelin/contracts/-/contracts-5.3.0.tgz", + "integrity": "sha512-zj/KGoW7zxWUE8qOI++rUM18v+VeLTTzKs/DJFkSzHpQFPD/jKKF0TrMxBfGLl3kpdELCNccvB3zmofSzm4nlA==" }, - "keccak": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/keccak/-/keccak-3.0.4.tgz", - "integrity": "sha512-3vKuW0jV8J3XNTzvfyicFR5qvxrSAGl7KIhvgOu5cmWwM7tZRj3fMbj/pfIf4be7aznbc+prBWGjywox/g2Y6Q==", + "@openzeppelin/contracts-upgradeable": { + "version": "4.9.6", + "resolved": "https://registry.npmjs.org/@openzeppelin/contracts-upgradeable/-/contracts-upgradeable-4.9.6.tgz", + "integrity": "sha512-m4iHazOsOCv1DgM7eD7GupTJ+NFVujRZt1wzddDPSVGpWdKq1SKkla5htKG7+IS4d2XOCtzkUNwRZ7Vq5aEUMA==" + }, + "@scroll-tech/contracts": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@scroll-tech/contracts/-/contracts-2.0.0.tgz", + "integrity": "sha512-O8sVaA/bVKH/mp+bBfUjZ/vYr5mdBExCpKRLre4r9TbXTtiaY9Uo5xU8dcG3weLxyK0BZqDTP2aCNp4Q0f7SeA==" + }, + "@scure/base": { + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.9.tgz", + "integrity": "sha512-8YKhl8GHiNI/pU2VMaofa2Tor7PJRAjwQLBBuilkJ9L5+13yVbC7JO/wS7piioAvPSwR3JKM1IJ/u4xQzbcXKg==", + "dev": true + }, + "@scure/bip32": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.4.0.tgz", + "integrity": "sha512-sVUpc0Vq3tXCkDGYVWGIZTRfnvu8LoTDaev7vbwh0omSvVORONr960MQWdKqJDCReIEmTj3PAr73O3aoxz7OPg==", "dev": true, "requires": { - "node-addon-api": "^2.0.0", - "node-gyp-build": "^4.2.0", - "readable-stream": "^3.6.0" + "@noble/curves": "~1.4.0", + "@noble/hashes": "~1.4.0", + "@scure/base": "~1.1.6" } }, - "kind-of": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", - "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "@scure/bip39": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.3.0.tgz", + "integrity": "sha512-disdg7gHuTDZtY+ZdkmLpPCk7fxZSu3gBiEGuoC1XYxv9cGx3Z6cpTggCgW6odSOOIXCiDjuGejW+aJKCY/pIQ==", "dev": true, - "peer": true - }, - "klaw-sync": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/klaw-sync/-/klaw-sync-6.0.0.tgz", - "integrity": "sha512-nIeuVSzdCCs6TDPTqI8w1Yre34sSq7AkZ4B3sfOBbI2CgVSB4Du4aLQijFU2+lhAFCwt9+42Hel6lQNIv6AntQ==", "requires": { - "graceful-fs": "^4.1.11" + "@noble/hashes": "~1.4.0", + "@scure/base": "~1.1.6" } }, - "levn": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", - "integrity": "sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==", + "@sentry/core": { + "version": "9.47.1", + "resolved": "https://registry.npmjs.org/@sentry/core/-/core-9.47.1.tgz", + "integrity": "sha512-KX62+qIt4xgy8eHKHiikfhz2p5fOciXd0Cl+dNzhgPFq8klq4MGMNaf148GB3M/vBqP4nw/eFvRMAayFCgdRQw==", + "dev": true + }, + "@streamparser/json": { + "version": "0.0.22", + "resolved": "https://registry.npmjs.org/@streamparser/json/-/json-0.0.22.tgz", + "integrity": "sha512-b6gTSBjJ8G8SuO3Gbbj+zXbVx8NSs1EbpbMKpzGLWMdkR+98McH9bEjSz3+0mPJf68c5nxa3CrJHp5EQNXM6zQ==", + "dev": true + }, + "@streamparser/json-node": { + "version": "0.0.22", + "resolved": "https://registry.npmjs.org/@streamparser/json-node/-/json-node-0.0.22.tgz", + "integrity": "sha512-sJT2ptNRwqB1lIsQrQlCoWk5rF4tif9wDh+7yluAGijJamAhrHGYpFB/Zg3hJeceoZypi74ftXk8DHzwYpbZSg==", "dev": true, - "peer": true, "requires": { - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2" + "@streamparser/json": "^0.0.22" } }, - "linkify-it": { + "@types/linkify-it": { "version": "5.0.0", - "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-5.0.0.tgz", - "integrity": "sha512-5aHCbzQRADcdP+ATqnDuhhJ/MRIqDkZX5pyjFHRRysS8vZ5AbqGEoFIb6pYHPZ+L/OC2Lc+xT8uHVVR5CAK/wQ==", + "resolved": "https://registry.npmjs.org/@types/linkify-it/-/linkify-it-5.0.0.tgz", + "integrity": "sha512-sVDA58zAw4eWAffKOaQH5/5j3XeayukzDk+ewSsnv3p4yJEZHCCzMDiZM8e0OUrRvmpGZ85jf4yDHkHsgBNr9Q==", + "dev": true + }, + "@types/markdown-it": { + "version": "14.1.1", + "resolved": "https://registry.npmjs.org/@types/markdown-it/-/markdown-it-14.1.1.tgz", + "integrity": "sha512-4NpsnpYl2Gt1ljyBGrKMxFYAYvpqbnnkgP/i/g+NLpjEUa3obn1XJCur9YbEXKDAkaXqsR1LbDnGEJ0MmKFxfg==", "dev": true, "requires": { - "uc.micro": "^2.0.0" + "@types/linkify-it": "^5", + "@types/mdurl": "^2" } }, - "locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, + "@types/mdurl": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@types/mdurl/-/mdurl-2.0.0.tgz", + "integrity": "sha512-RGdgjQUZba5p6QEFAVx2OGb8rQDL/cPRG7GiedRzMcJ1tYnUANBncjbSB1NRGwbvjcPeikRABz2nshyPk1bhWg==", + "dev": true + }, + "@types/node": { + "version": "22.7.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.7.5.tgz", + "integrity": "sha512-jML7s2NAzMWc//QSJ1a3prpk78cOPchGvXJsC3C6R6PSMoooztvRVQEz89gmBTBY1SPMaqo5teB4uNHPdetShQ==", + "devOptional": true, "requires": { - "p-locate": "^5.0.0" + "undici-types": "~6.19.2" } }, - "lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", - "dev": true + "@yarnpkg/lockfile": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@yarnpkg/lockfile/-/lockfile-1.1.0.tgz", + "integrity": "sha512-GpSwvyXOcOOlV70vbnzjj4fW5xW/FdUF6nQEt1ENy7m4ZCczi1+/buVUPAqmGfqznsORNFzUMjctTIp8a9tuCQ==" }, - "lodash.camelcase": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", - "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==", - "dev": true + "@zksync/contracts": { + "version": "git+ssh://git@github.com/matter-labs/era-contracts.git#446d391d34bdb48255d5f8fef8a8248925fc98b9", + "integrity": "sha512-F+mqGoqlXzBgGVeNDuzZOou4UvGoJC0aTLWLwMTKvKo0umUcR+Wocl1PRK9d+iavF1oAUgd5Ljpg+aKn8AwXQw==", + "from": "@zksync/contracts@github:matter-labs/era-contracts#446d391d34bdb48255d5f8fef8a8248925fc98b9" }, - "lodash.clonedeep": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", - "integrity": "sha512-H5ZhCF25riFd9uB5UCkVKo61m3S/xZk1x4wA6yp/L3RFP6Z/eHH1ymQcGLo7J3GMPfm0V/7m1tryHuGVxpqEBQ==", - "dev": true, - "peer": true + "acorn": { + "version": "8.15.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz", + "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==" }, - "lodash.isequal": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz", - "integrity": "sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==", - "dev": true, - "peer": true + "acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "requires": {} }, - "lodash.omit": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.omit/-/lodash.omit-4.5.0.tgz", - "integrity": "sha512-XeqSp49hNGmlkj2EJlfrQFIzQ6lXdNro9sddtQzcJY8QaoC2GO0DT7xaIokHeyM+mIT0mPMlPvkYzg2xCuHdZg==", + "adm-zip": { + "version": "0.4.16", + "resolved": "https://registry.npmjs.org/adm-zip/-/adm-zip-0.4.16.tgz", + "integrity": "sha512-TFi4HBKSGfIKsK5YCkKaaFG2m4PEDyViZmEwof3MTIgzimHLto6muaHVpbrljdIvIrFZzEq/p4nafOeLcYegrg==", "dev": true }, - "lodash.padend": { - "version": "4.6.1", - "resolved": "https://registry.npmjs.org/lodash.padend/-/lodash.padend-4.6.1.tgz", - "integrity": "sha512-sOQs2aqGpbl27tmCS1QNZA09Uqp01ZzWfDUoD+xzTii0E7dSQfRKcRetFwa+uXaxaqL+TKm7CgD2JdKP7aZBSw==", + "aes-js": { + "version": "4.0.0-beta.5", + "resolved": "https://registry.npmjs.org/aes-js/-/aes-js-4.0.0-beta.5.tgz", + "integrity": "sha512-G965FqalsNyrPqgEGON7nIx1e/OVENSgiEIzyC63haUMuvNnwIgIjMs52hlTCKhkBny7A2ORNlfY9Zu+jmGk1Q==", "dev": true }, - "lodash.startcase": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/lodash.startcase/-/lodash.startcase-4.4.0.tgz", - "integrity": "sha512-+WKqsK294HMSc2jEbNgpHpd0JfIBhp7rEV4aqXWqFr6AlXov+SlcgB1Fv01y2kGe3Gc8nMW7VA0SrGuSkRfIEg==" - }, - "lodash.truncate": { - "version": "4.4.2", - "resolved": "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz", - "integrity": "sha512-jttmRe7bRse52OsWIMDLaXxWqRAmtIUccAQ3garviCqJjafXOfNMO0yMfNpdD6zbGaTU0P5Nz7e7gAT6cKmJRw==", - "dev": true, - "peer": true + "ansi-colors": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz", + "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==" }, - "log-symbols": { + "ansi-escape-sequences": { "version": "4.1.0", - "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", - "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", + "resolved": "https://registry.npmjs.org/ansi-escape-sequences/-/ansi-escape-sequences-4.1.0.tgz", + "integrity": "sha512-dzW9kHxH011uBsidTXd14JXgzye/YLb2LzeKZ4bsgl/Knwx8AtbSFkkGxagdNOoh0DlqHCmfiEjWKBaqjOanVw==", "dev": true, "requires": { - "chalk": "^4.1.0", - "is-unicode-supported": "^0.1.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } + "array-back": "^3.0.1" } }, - "loupe": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.7.tgz", - "integrity": "sha512-zSMINGVYkdpYSOBmLi0D1Uo7JU9nVdQKrHxC8eYlV+9YKK9WePqAlL7lSlorG/U2Fw1w0hTBmaa/jrQ3UbPHtA==", - "requires": { - "get-func-name": "^2.0.1" - } + "ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==" + }, + "argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" }, - "lru_map": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/lru_map/-/lru_map-0.3.3.tgz", - "integrity": "sha512-Pn9cox5CsMYngeDbmChANltQl+5pi6XmTrraMSzhPmMBbmgcxmqWry0U3PGapCU1yB4/LqCcom7qhHZiF/jGfQ==", + "array-back": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/array-back/-/array-back-3.1.0.tgz", + "integrity": "sha512-TkuxA4UCOvxuDK6NZYXCalszEzj+TLszyASooky+i742l9TqsOdYCMJJupxRic61hwquNtppB3hgcuq9SVSH1Q==", "dev": true }, - "make-error": { - "version": "1.3.6", - "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", - "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", - "dev": true, - "peer": true + "array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==" + }, + "assertion-error": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", + "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==" + }, + "at-least-node": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", + "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==" + }, + "balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + }, + "bech32": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/bech32/-/bech32-1.1.4.tgz", + "integrity": "sha512-s0IrSOzLlbvX7yp4WBfPITzpAU8sqQcpsmwXDiKwrG4r491vwCO/XpejasRNl0piBMe/DvP4Tz0mIS/X1DPJBQ==" }, - "markdown-it": { - "version": "14.1.0", - "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-14.1.0.tgz", - "integrity": "sha512-a54IwgWPaeBCAAsv13YgmALOF1elABB08FxO9i+r4VFk5Vl4pKokRPeX8u5TCgSsPi6ec1otfLjdOpVcgbpshg==", - "dev": true, + "better-path-resolve": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/better-path-resolve/-/better-path-resolve-1.0.0.tgz", + "integrity": "sha512-pbnl5XzGBdrFU/wT4jqmJVPn2B6UHPBOhzMQkY/SPUPB6QtUXtmBHBIwCbXJol93mOpGMnQyP/+BB19q04xj7g==", "requires": { - "argparse": "^2.0.1", - "entities": "^4.4.0", - "linkify-it": "^5.0.0", - "mdurl": "^2.0.0", - "punycode.js": "^2.3.1", - "uc.micro": "^2.1.0" + "is-windows": "^1.0.0" } }, - "markdown-it-anchor": { - "version": "8.6.7", - "resolved": "https://registry.npmjs.org/markdown-it-anchor/-/markdown-it-anchor-8.6.7.tgz", - "integrity": "sha512-FlCHFwNnutLgVTflOYHPW2pPcl2AACqVzExlkGQNsi4CJgqOHN7YTgDd4LuhgN1BFO3TS0vLAruV1Td6dwWPJA==", - "dev": true, - "requires": {} - }, - "markdown-table": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/markdown-table/-/markdown-table-1.1.3.tgz", - "integrity": "sha512-1RUZVgQlpJSPWYbFSpmudq5nHY1doEIv89gBtF0s4gW1GF2XorxcA/70M5vq7rLv0a6mhOUccRsqkwhwLCIQ2Q==", - "dev": true, - "peer": true - }, - "marked": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/marked/-/marked-4.3.0.tgz", - "integrity": "sha512-PRsaiG84bK+AMvxziE/lCFss8juXjNaWzVbN5tXAm4XjeaS9NAHhop+PjQxz2A9h8Q4M/xGmzP8vqNwy6JeK0A==", + "bluebird": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", + "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==", "dev": true }, - "math-intrinsics": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", - "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", - "dev": true + "bn.js": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.1.tgz", + "integrity": "sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==" }, - "md5.js": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz", - "integrity": "sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg==", - "dev": true, - "peer": true, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "requires": { - "hash-base": "^3.0.0", - "inherits": "^2.0.1", - "safe-buffer": "^5.1.2" + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" } }, - "mdurl": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-2.0.0.tgz", - "integrity": "sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w==", - "dev": true + "braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "requires": { + "fill-range": "^7.1.1" + } }, - "memorystream": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/memorystream/-/memorystream-0.3.1.tgz", - "integrity": "sha512-S3UwM3yj5mtUSEfP41UZmt/0SCoVYUcU1rkXv+BQ5Ig8ndL4sPoJNBUJERafdPb5jjHJGuMgytgKvKIf58XNBw==", - "dev": true + "brorand": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", + "integrity": "sha512-cKV8tMCEpQs4hK/ik71d6LrPOnpkpGBR0wzxqr68g2m/LB2GxVYQroAjMJZRVM1Y4BCjCKc3vAamxSzOY2RP+w==" }, - "merge2": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==" + "bufio": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/bufio/-/bufio-1.2.1.tgz", + "integrity": "sha512-9oR3zNdupcg/Ge2sSHQF3GX+kmvL/fTPvD0nd5AGLq8SjUYnTz+SlFjK/GXidndbZtIj+pVKXiWeR9w6e9wKCA==" }, - "micro-eth-signer": { - "version": "0.14.0", - "resolved": "https://registry.npmjs.org/micro-eth-signer/-/micro-eth-signer-0.14.0.tgz", - "integrity": "sha512-5PLLzHiVYPWClEvZIXXFu5yutzpadb73rnQCpUqIHu3No3coFuWQNfE5tkBQJ7djuLYl6aRLaS0MgWJYGoqiBw==", + "cache-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/cache-point/-/cache-point-2.0.0.tgz", + "integrity": "sha512-4gkeHlFpSKgm3vm2gJN5sPqfmijYRFYCQ6tv5cLw0xVmT6r1z1vd4FNnpuOREco3cBs1G709sZ72LdgddKvL5w==", "dev": true, "requires": { - "@noble/curves": "~1.8.1", - "@noble/hashes": "~1.7.1", - "micro-packed": "~0.7.2" + "array-back": "^4.0.1", + "fs-then-native": "^2.0.0", + "mkdirp2": "^1.0.4" }, "dependencies": { - "@noble/curves": { - "version": "1.8.2", - "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.8.2.tgz", - "integrity": "sha512-vnI7V6lFNe0tLAuJMu+2sX+FcL14TaCWy1qiczg1VwRmPrpQCdq5ESXQMqUc2tluRNf6irBXrWbl1mGN8uaU/g==", - "dev": true, - "requires": { - "@noble/hashes": "1.7.2" - } - }, - "@noble/hashes": { - "version": "1.7.2", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.7.2.tgz", - "integrity": "sha512-biZ0NUSxyjLLqo6KxEJ1b+C2NAx0wtDoFvCaXHGgUkeHzf3Xc1xKumFKREuT7f7DARNZ/slvYUwFG6B0f2b6hQ==", + "array-back": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/array-back/-/array-back-4.0.2.tgz", + "integrity": "sha512-NbdMezxqf94cnNfWLL7V/im0Ub+Anbb0IoZhvzie8+4HJ4nMQuzHuy49FkGYCJK2yAloZ3meiB6AVMClbrI1vg==", "dev": true } } }, - "micro-ftch": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/micro-ftch/-/micro-ftch-0.3.1.tgz", - "integrity": "sha512-/0LLxhzP0tfiR5hcQebtudP56gUurs2CLkGarnCiB/OqEyUFQ6U3paQi/tgLv0hBJYt2rnr9MNpxz4fiiugstg==", - "dev": true, - "peer": true + "callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==" }, - "micro-packed": { - "version": "0.7.3", - "resolved": "https://registry.npmjs.org/micro-packed/-/micro-packed-0.7.3.tgz", - "integrity": "sha512-2Milxs+WNC00TRlem41oRswvw31146GiSaoCT7s3Xi2gMUglW5QBeqlQaZeHr5tJx9nm3i57LNXPqxOOaWtTYg==", + "catharsis": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/catharsis/-/catharsis-0.9.0.tgz", + "integrity": "sha512-prMTQVpcns/tzFgFVkVp6ak6RykZyWb3gu8ckUpd6YkTlacOd3DXGJjIpD4Q6zJirizvaiAjSSHlOsA+6sNh2A==", "dev": true, "requires": { - "@scure/base": "~1.2.5" - }, - "dependencies": { - "@scure/base": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.2.6.tgz", - "integrity": "sha512-g/nm5FgUa//MCj1gV09zTJTaM6KBAHqLN907YVQqf7zC49+DcO4B1so4ZX07Ef10Twr6nuqYEH9GEggFXA4Fmg==", - "dev": true - } + "lodash": "^4.17.15" } }, - "micromatch": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", - "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "chai": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/chai/-/chai-4.4.1.tgz", + "integrity": "sha512-13sOfMv2+DWduEU+/xbun3LScLoqN17nBeTLUsmDfKdoiC1fr0n9PU4guu4AhRcOVFk/sW8LyZWHuhWtQZiF+g==", "requires": { - "braces": "^3.0.3", - "picomatch": "^2.3.1" + "assertion-error": "^1.1.0", + "check-error": "^1.0.3", + "deep-eql": "^4.1.3", + "get-func-name": "^2.0.2", + "loupe": "^2.3.6", + "pathval": "^1.1.1", + "type-detect": "^4.0.8" } }, - "mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "dev": true, - "peer": true + "chalk": { + "version": "5.6.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.6.2.tgz", + "integrity": "sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==", + "dev": true }, - "mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dev": true, - "peer": true, + "chardet": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/chardet/-/chardet-2.1.0.tgz", + "integrity": "sha512-bNFETTG/pM5ryzQ9Ad0lJOTa6HWD/YsScAR3EnCPZRPlQh77JocYktSHOUHelyhm8IARL+o4c4F1bP5KVOjiRA==" + }, + "check-error": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.3.tgz", + "integrity": "sha512-iKEoDYaRmd1mxM90a2OEfWhjsjPpYPuQ+lMYsoxB126+t8fw7ySEO48nmDg5COTjxDI65/Y2OWpeEHk3ZOe8zg==", "requires": { - "mime-db": "1.52.0" + "get-func-name": "^2.0.2" } }, - "minimalistic-assert": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", - "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==" - }, - "minimalistic-crypto-utils": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", - "integrity": "sha512-JIYlbt6g8i5jKfJ3xz7rF0LXmv2TkDxBLUkiBeZ7bAx4GnnNMr8xFpGnOxn6GhTEHx3SjRrZEoU+j04prX1ktg==" - }, - "minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "chokidar": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz", + "integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==", + "dev": true, "requires": { - "brace-expansion": "^1.1.7" + "readdirp": "^4.0.1" } }, - "minimist": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", - "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==" - }, - "minipass": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", - "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", - "dev": true + "ci-info": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", + "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==" }, - "mkdirp": { - "version": "0.5.6", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", - "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", + "collect-all": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/collect-all/-/collect-all-1.0.4.tgz", + "integrity": "sha512-RKZhRwJtJEP5FWul+gkSMEnaK6H3AGPTTWOiRimCcs+rc/OmQE3Yhy1Q7A7KsdkG3ZXVdZq68Y6ONSdvkeEcKA==", "dev": true, - "peer": true, "requires": { - "minimist": "^1.2.6" + "stream-connect": "^1.0.2", + "stream-via": "^1.0.4" } }, - "mkdirp2": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/mkdirp2/-/mkdirp2-1.0.5.tgz", - "integrity": "sha512-xOE9xbICroUDmG1ye2h4bZ8WBie9EGmACaco8K8cx6RlkJJrxGIqjGqztAI+NMhexXBcdGbSEzI6N3EJPevxZw==", - "dev": true - }, - "mnemonist": { - "version": "0.38.5", - "resolved": "https://registry.npmjs.org/mnemonist/-/mnemonist-0.38.5.tgz", - "integrity": "sha512-bZTFT5rrPKtPJxj8KSV0WkPyNxl72vQepqqVUAW2ARUpUSF2qXMB6jZj7hW5/k7C1rtpzqbD/IIbJwLXUjCHeg==", + "command-line-args": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/command-line-args/-/command-line-args-5.2.1.tgz", + "integrity": "sha512-H4UfQhZyakIjC74I9d34fGYDwk3XpSr17QhEd0Q3I9Xq1CETHo4Hcuo87WyWHpAF1aSLjLRf5lD9ZGX2qStUvg==", "dev": true, "requires": { - "obliterator": "^2.0.0" + "array-back": "^3.1.0", + "find-replace": "^3.0.0", + "lodash.camelcase": "^4.3.0", + "typical": "^4.0.0" } }, - "mocha": { - "version": "10.3.0", - "resolved": "https://registry.npmjs.org/mocha/-/mocha-10.3.0.tgz", - "integrity": "sha512-uF2XJs+7xSLsrmIvn37i/wnc91nw7XjOQB8ccyx5aEgdnohr7n+rEiZP23WkCYHjilR6+EboEnbq/ZQDz4LSbg==", + "command-line-tool": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/command-line-tool/-/command-line-tool-0.8.0.tgz", + "integrity": "sha512-Xw18HVx/QzQV3Sc5k1vy3kgtOeGmsKIqwtFFoyjI4bbcpSgnw2CWVULvtakyw4s6fhyAdI6soQQhXc2OzJy62g==", "dev": true, "requires": { - "ansi-colors": "4.1.1", - "browser-stdout": "1.3.1", - "chokidar": "3.5.3", - "debug": "4.3.4", - "diff": "5.0.0", - "escape-string-regexp": "4.0.0", - "find-up": "5.0.0", - "glob": "8.1.0", - "he": "1.2.0", - "js-yaml": "4.1.0", - "log-symbols": "4.1.0", - "minimatch": "5.0.1", - "ms": "2.1.3", - "serialize-javascript": "6.0.0", - "strip-json-comments": "3.1.1", - "supports-color": "8.1.1", - "workerpool": "6.2.1", - "yargs": "16.2.0", - "yargs-parser": "20.2.4", - "yargs-unparser": "2.0.0" + "ansi-escape-sequences": "^4.0.0", + "array-back": "^2.0.0", + "command-line-args": "^5.0.0", + "command-line-usage": "^4.1.0", + "typical": "^2.6.1" }, "dependencies": { - "ansi-colors": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", - "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==", - "dev": true - }, - "brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "requires": { - "balanced-match": "^1.0.0" - } - }, - "chokidar": { - "version": "3.5.3", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", - "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", + "array-back": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/array-back/-/array-back-2.0.0.tgz", + "integrity": "sha512-eJv4pLLufP3g5kcZry0j6WXpIbzYw9GUB4mVJZno9wfwiBxbizTnHCw3VJb07cBihbFX48Y7oSrW9y+gt4glyw==", "dev": true, "requires": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "fsevents": "~2.3.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" + "typical": "^2.6.1" } }, - "escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true - }, - "glob": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz", - "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==", + "command-line-usage": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/command-line-usage/-/command-line-usage-4.1.0.tgz", + "integrity": "sha512-MxS8Ad995KpdAC0Jopo/ovGIroV/m0KHwzKfXxKag6FHOkGsH8/lv5yjgablcRxCJJC0oJeUMuO/gmaq+Wq46g==", "dev": true, "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^5.0.1", - "once": "^1.3.0" + "ansi-escape-sequences": "^4.0.0", + "array-back": "^2.0.0", + "table-layout": "^0.4.2", + "typical": "^2.6.1" } - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + }, + "reduce-flatten": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/reduce-flatten/-/reduce-flatten-1.0.1.tgz", + "integrity": "sha512-j5WfFJfc9CoXv/WbwVLHq74i/hdTUpy+iNC534LxczMRP67vJeK3V9JOdnL0N1cIRbn9mYhE2yVjvvKXDxvNXQ==", "dev": true }, - "minimatch": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.0.1.tgz", - "integrity": "sha512-nLDxIFRyhDblz3qMuq+SoRZED4+miJ/G+tdDrjkkkRnjAsBexeGpgjLEQ0blJy7rHhR2b93rhQY4SvyWu9v03g==", + "table-layout": { + "version": "0.4.5", + "resolved": "https://registry.npmjs.org/table-layout/-/table-layout-0.4.5.tgz", + "integrity": "sha512-zTvf0mcggrGeTe/2jJ6ECkJHAQPIYEwDoqsiqBjI24mvRmQbInK5jq33fyypaCBxX08hMkfmdOqj6haT33EqWw==", "dev": true, "requires": { - "brace-expansion": "^2.0.1" + "array-back": "^2.0.0", + "deep-extend": "~0.6.0", + "lodash.padend": "^4.6.1", + "typical": "^2.6.1", + "wordwrapjs": "^3.0.0" } }, - "ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "typical": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/typical/-/typical-2.6.1.tgz", + "integrity": "sha512-ofhi8kjIje6npGozTip9Fr8iecmYfEbS06i0JnIg+rh51KakryWF4+jX8lLKZVhy6N+ID45WYSFCxPOdTWCzNg==", "dev": true }, - "supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "wordwrapjs": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/wordwrapjs/-/wordwrapjs-3.0.0.tgz", + "integrity": "sha512-mO8XtqyPvykVCsrwj5MlOVWvSnCdT+C+QVbm6blradR7JExAhbkZ7hZ9A+9NUtwzSqrlUo9a67ws0EiILrvRpw==", "dev": true, "requires": { - "has-flag": "^4.0.0" + "reduce-flatten": "^1.0.1", + "typical": "^2.6.1" } } } }, - "mri": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz", - "integrity": "sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==" + "common-sequence": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/common-sequence/-/common-sequence-2.0.2.tgz", + "integrity": "sha512-jAg09gkdkrDO9EWTdXfv80WWH3yeZl5oT69fGfedBNS9pXUKYInVJ1bJ+/ht2+Moeei48TmSbQDYMc8EOx9G0g==", + "dev": true }, - "ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" }, - "neo-async": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", - "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", - "dev": true + "config-master": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/config-master/-/config-master-3.1.0.tgz", + "integrity": "sha512-n7LBL1zBzYdTpF1mx5DNcZnZn05CWIdsdvtPL4MosvqbBUK3Rq6VWEtGUuF3Y0s9/CIhMejezqlSkP6TnCJ/9g==", + "dev": true, + "requires": { + "walk-back": "^2.0.1" + }, + "dependencies": { + "walk-back": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/walk-back/-/walk-back-2.0.1.tgz", + "integrity": "sha512-Nb6GvBR8UWX1D+Le+xUq0+Q1kFmRBIWVrfLnQAOmcpEzA9oAxwJ9gIr36t9TWYfzvWRvuMtjHiVsJYEkXWaTAQ==", + "dev": true + } + } }, - "nice-try": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", - "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==" + "cross-spawn": { + "version": "6.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.6.tgz", + "integrity": "sha512-VqCUuhcd1iB+dsv8gxPttb5iZh/D0iubSP21g36KXdEuf6I5JiioesUVjpCdHV9MZRUfVFlvwtIUyPfxo5trtw==", + "requires": { + "nice-try": "^1.0.4", + "path-key": "^2.0.1", + "semver": "^5.5.0", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + }, + "dependencies": { + "semver": { + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==" + } + } }, - "node-addon-api": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-2.0.2.tgz", - "integrity": "sha512-Ntyt4AIXyaLIuMHF6IOoTakB3K+RWxwtsHNRxllEoA6vPwP9o4866g6YWDLUdnucilZhmkxiHwHr11gAENw+QA==", - "dev": true + "dataloader": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/dataloader/-/dataloader-1.4.0.tgz", + "integrity": "sha512-68s5jYdlvasItOJnCuI2Q9s4q98g0pCyL3HrcKJu8KNugUl8ahgmZYg38ysLTgQjjXX3H8CJLkAvWrclWfcalw==" }, - "node-emoji": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/node-emoji/-/node-emoji-1.11.0.tgz", - "integrity": "sha512-wo2DpQkQp7Sjm2A0cq+sN7EHKO6Sl0ctXeBdFZrL9T9+UywORbufTcTZxom8YqpLQt/FqNMUkOpkZrJVYSKD3A==", - "dev": true, - "peer": true, + "debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", "requires": { - "lodash": "^4.17.21" + "ms": "2.1.2" } }, - "node-fetch": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", - "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "deep-eql": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-4.1.3.tgz", + "integrity": "sha512-WaEtAOpRA1MQ0eohqZjpGD8zdI0Ovsm8mmFhaDN8dvDZzyoUMcYDnf5Y6iu7HTXxf8JDS23qWa4a+hKCDyOPzw==", "requires": { - "whatwg-url": "^5.0.0" + "type-detect": "^4.0.0" } }, - "node-gyp-build": { - "version": "4.8.4", - "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.8.4.tgz", - "integrity": "sha512-LA4ZjwlnUblHVgq0oBF3Jl/6h/Nvs5fzBLwdEF4nuxnFdsfajde4WfxtJr3CaiH+F6ewcIB/q4jQ4UzPyid+CQ==", + "deep-extend": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", + "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", "dev": true }, - "nofilter": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/nofilter/-/nofilter-3.1.0.tgz", - "integrity": "sha512-l2NNj07e9afPnhAhvgVrCD/oy2Ai1yfLpuo3EpiO1jFTsB4sFz6oIfAfSZyQzVpkZQ9xS8ZS5g1jCBgq4Hwo0g==", - "dev": true, - "peer": true + "detect-indent": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-6.1.0.tgz", + "integrity": "sha512-reYkTUJAZb9gUuZ2RvVCNhVHdg62RHnJ7WJl8ftMi4diZ6NWlciOzQN88pUhSELEwflJht4oQDv0F0BMlwaYtA==" + }, + "dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "requires": { + "path-type": "^4.0.0" + } }, - "nopt": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz", - "integrity": "sha512-4GUt3kSEYmk4ITxzB/b9vaIDfUVWN/Ml1Fwl11IlnIG2iaJ9O6WXZ9SrYM9NLI8OCBieN2Y8SWC2oJV0RQ7qYg==", + "dmd": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/dmd/-/dmd-6.2.0.tgz", + "integrity": "sha512-uXWxLF1H7TkUAuoHK59/h/ts5cKavm2LnhrIgJWisip4BVzPoXavlwyoprFFn2CzcahKYgvkfaebS6oxzgflkg==", "dev": true, - "peer": true, "requires": { - "abbrev": "1" + "array-back": "^6.2.2", + "cache-point": "^2.0.0", + "common-sequence": "^2.0.2", + "file-set": "^4.0.2", + "handlebars": "^4.7.7", + "marked": "^4.2.3", + "object-get": "^2.1.1", + "reduce-flatten": "^3.0.1", + "reduce-unique": "^2.0.1", + "reduce-without": "^1.0.1", + "test-value": "^3.0.0", + "walk-back": "^5.1.0" + }, + "dependencies": { + "array-back": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/array-back/-/array-back-6.2.2.tgz", + "integrity": "sha512-gUAZ7HPyb4SJczXAMUXMGAvI976JoK3qEx9v1FTmeYuJj0IBiaKttG1ydtGKdkfqWkIkouke7nG8ufGy77+Cvw==", + "dev": true + }, + "reduce-flatten": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/reduce-flatten/-/reduce-flatten-3.0.1.tgz", + "integrity": "sha512-bYo+97BmUUOzg09XwfkwALt4PQH1M5L0wzKerBt6WLm3Fhdd43mMS89HiT1B9pJIqko/6lWx3OnV4J9f2Kqp5Q==", + "dev": true + } } }, - "normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dotenv": { + "version": "16.4.5", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.5.tgz", + "integrity": "sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==", "dev": true }, - "number-to-bn": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/number-to-bn/-/number-to-bn-1.7.0.tgz", - "integrity": "sha512-wsJ9gfSz1/s4ZsJN01lyonwuxA1tml6X1yBDnfpMglypcBRFZZkus26EdPSlqS5GJfYddVZa22p3VNb3z5m5Ig==", - "dev": true, - "peer": true, + "elliptic": { + "version": "6.5.4", + "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz", + "integrity": "sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==", "requires": { - "bn.js": "4.11.6", - "strip-hex-prefix": "1.0.0" + "bn.js": "^4.11.9", + "brorand": "^1.1.0", + "hash.js": "^1.0.0", + "hmac-drbg": "^1.0.1", + "inherits": "^2.0.4", + "minimalistic-assert": "^1.0.1", + "minimalistic-crypto-utils": "^1.0.1" }, "dependencies": { "bn.js": { - "version": "4.11.6", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.6.tgz", - "integrity": "sha512-XWwnNNFCuuSQ0m3r3C4LE3EiORltHd9M05pq6FOlVeiophzRbMo50Sbz1ehl8K3Z+jw9+vmgnXefY1hz8X+2wA==", - "dev": true, - "peer": true + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", + "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==" } } }, - "object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", - "dev": true, - "peer": true + "enquirer": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.4.1.tgz", + "integrity": "sha512-rRqJg/6gd538VHvR3PSrdRBb/1Vy2YfzHqzvbhGIQpDRKIa4FgV/54b5Q1xYSxOOwKvjXweS26E0Q+nAMwp2pQ==", + "requires": { + "ansi-colors": "^4.1.1", + "strip-ansi": "^6.0.1" + } }, - "object-get": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/object-get/-/object-get-2.1.1.tgz", - "integrity": "sha512-7n4IpLMzGGcLEMiQKsNR7vCe+N5E9LORFrtNUVy4sO3dj9a3HedZCxEL2T7QuLhcHN1NBuBsMOKaOsAYI9IIvg==", + "entities": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", + "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", "dev": true }, - "object-inspect": { - "version": "1.13.4", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", - "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", + "env-paths": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", + "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", "dev": true }, - "object-keys": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", - "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", - "dev": true + "esbuild": { + "version": "0.27.3", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.3.tgz", + "integrity": "sha512-8VwMnyGCONIs6cWue2IdpHxHnAjzxnw2Zr7MkVxB2vjmQ2ivqGFb4LEG3SMnv0Gb2F/G/2yA8zUaiL1gywDCCg==", + "dev": true, + "requires": { + "@esbuild/aix-ppc64": "0.27.3", + "@esbuild/android-arm": "0.27.3", + "@esbuild/android-arm64": "0.27.3", + "@esbuild/android-x64": "0.27.3", + "@esbuild/darwin-arm64": "0.27.3", + "@esbuild/darwin-x64": "0.27.3", + "@esbuild/freebsd-arm64": "0.27.3", + "@esbuild/freebsd-x64": "0.27.3", + "@esbuild/linux-arm": "0.27.3", + "@esbuild/linux-arm64": "0.27.3", + "@esbuild/linux-ia32": "0.27.3", + "@esbuild/linux-loong64": "0.27.3", + "@esbuild/linux-mips64el": "0.27.3", + "@esbuild/linux-ppc64": "0.27.3", + "@esbuild/linux-riscv64": "0.27.3", + "@esbuild/linux-s390x": "0.27.3", + "@esbuild/linux-x64": "0.27.3", + "@esbuild/netbsd-arm64": "0.27.3", + "@esbuild/netbsd-x64": "0.27.3", + "@esbuild/openbsd-arm64": "0.27.3", + "@esbuild/openbsd-x64": "0.27.3", + "@esbuild/openharmony-arm64": "0.27.3", + "@esbuild/sunos-x64": "0.27.3", + "@esbuild/win32-arm64": "0.27.3", + "@esbuild/win32-ia32": "0.27.3", + "@esbuild/win32-x64": "0.27.3" + } }, - "object-to-spawn-args": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/object-to-spawn-args/-/object-to-spawn-args-2.0.1.tgz", - "integrity": "sha512-6FuKFQ39cOID+BMZ3QaphcC8Y4cw6LXBLyIgPU+OhIYwviJamPAn+4mITapnSBQrejB+NNp+FMskhD8Cq+Ys3w==", - "dev": true + "eslint-visitor-keys": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", + "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==" }, - "object.assign": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.5.tgz", - "integrity": "sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ==", + "espree": { + "version": "10.4.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz", + "integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==", + "requires": { + "acorn": "^8.15.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^4.2.1" + } + }, + "ethereum-cryptography": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-2.2.1.tgz", + "integrity": "sha512-r/W8lkHSiTLxUxW8Rf3u4HGB0xQweG2RyETjywylKZSzLWoWAijRz8WCuOtJ6wah+avllXBqZuk29HCCvhEIRg==", + "dev": true, + "requires": { + "@noble/curves": "1.4.2", + "@noble/hashes": "1.4.0", + "@scure/bip32": "1.4.0", + "@scure/bip39": "1.3.0" + } + }, + "ethers": { + "version": "6.17.0", + "resolved": "https://registry.npmjs.org/ethers/-/ethers-6.17.0.tgz", + "integrity": "sha512-BpyrpIPJ3ydEVow8zGaz1DuPS7YU8DcWxuBnY9a0UA/lvAPwrMr+EPXsfrul628SRaekPNeIM4UFh/91GWZang==", "dev": true, "requires": { - "call-bind": "^1.0.5", - "define-properties": "^1.2.1", - "has-symbols": "^1.0.3", - "object-keys": "^1.1.1" + "@adraffy/ens-normalize": "1.11.1", + "@noble/curves": "1.2.0", + "@noble/hashes": "1.3.2", + "@types/node": "22.7.5", + "aes-js": "4.0.0-beta.5", + "tslib": "2.7.0", + "ws": "8.21.0" + }, + "dependencies": { + "@noble/curves": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.2.0.tgz", + "integrity": "sha512-oYclrNgRaM9SsBUBVbb8M6DTV7ZHRTKugureoYEncY5c65HOmRzvSiTE3y5CYaPYJA/GVkrhXEoF0M3Ya9PMnw==", + "dev": true, + "requires": { + "@noble/hashes": "1.3.2" + } + }, + "@noble/hashes": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.2.tgz", + "integrity": "sha512-MVC8EAQp7MvEcm30KWENFjgR+Mkmf+D189XJTkFIlwohU5hcBbn1ZkKq7KVTi2Hme3PMGF390DaL52beVrIihQ==", + "dev": true + } } }, - "obliterator": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/obliterator/-/obliterator-2.0.4.tgz", - "integrity": "sha512-lgHwxlxV1qIg1Eap7LgIeoBWIMFibOjbrYPIPJZcI1mmGAI2m3lNYpK12Y+GBdPQ0U1hRwSord7GIaawz962qQ==", + "extendable-error": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/extendable-error/-/extendable-error-0.1.7.tgz", + "integrity": "sha512-UOiS2in6/Q0FK0R0q6UY9vYpQ21mr/Qn1KOnte7vsACuNJf514WvCCUHSRCPcgjPT2bAhNIJdlE6bVap1GKmeg==" + }, + "fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" + }, + "fast-equals": { + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/fast-equals/-/fast-equals-5.4.0.tgz", + "integrity": "sha512-jt2DW/aNFNwke7AUd+Z+e6pz39KO5rzdbbFCg2sGafS4mk13MI7Z8O5z9cADNn5lhGODIgLwug6TZO2ctf7kcw==", "dev": true }, - "once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "fast-glob": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", + "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", "requires": { - "wrappy": "1" + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" } }, - "open": { - "version": "7.4.2", - "resolved": "https://registry.npmjs.org/open/-/open-7.4.2.tgz", - "integrity": "sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q==", - "requires": { - "is-docker": "^2.0.0", - "is-wsl": "^2.1.1" - } + "fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" }, - "optionator": { - "version": "0.8.3", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", - "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", - "dev": true, - "peer": true, + "fastq": { + "version": "1.17.1", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz", + "integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==", "requires": { - "deep-is": "~0.1.3", - "fast-levenshtein": "~2.0.6", - "levn": "~0.3.0", - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2", - "word-wrap": "~1.2.3" + "reusify": "^1.0.4" } }, - "ordinal": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/ordinal/-/ordinal-1.0.3.tgz", - "integrity": "sha512-cMddMgb2QElm8G7vdaa02jhUNbTSrhsgAGUz1OokD83uJTwSUn+nKoNoKVVaRa08yF6sgfO7Maou1+bgLd9rdQ==", + "file-set": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/file-set/-/file-set-4.0.2.tgz", + "integrity": "sha512-fuxEgzk4L8waGXaAkd8cMr73Pm0FxOVkn8hztzUW7BAHhOGH90viQNXbiOsnecCWmfInqU6YmAMwxRMdKETceQ==", "dev": true, - "peer": true - }, - "os-tmpdir": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", - "integrity": "sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==" - }, - "outdent": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/outdent/-/outdent-0.5.0.tgz", - "integrity": "sha512-/jHxFIzoMXdqPzTaCpFzAAWhpkSjZPF4Vsn6jAfNpmbH/ymsmd7Qc6VE9BGn0L6YMj6uwpQLxCECpus4ukKS9Q==" - }, - "p-filter": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/p-filter/-/p-filter-2.1.0.tgz", - "integrity": "sha512-ZBxxZ5sL2HghephhpGAQdoskxplTwr7ICaehZwLIlfL6acuVgZPm8yBNuRAFBGEqtD/hmUeq9eqLg2ys9Xr/yw==", "requires": { - "p-map": "^2.0.0" + "array-back": "^5.0.0", + "glob": "^7.1.6" }, "dependencies": { - "p-map": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-2.1.0.tgz", - "integrity": "sha512-y3b8Kpd8OAN444hxfBbFfj1FY/RjtTd8tzYwhUqNYXx0fXx2iX4maP4Qr6qhIKbQXI02wTLAda4fYUbDagTUFw==" + "array-back": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/array-back/-/array-back-5.0.0.tgz", + "integrity": "sha512-kgVWwJReZWmVuWOQKEOohXKJX+nD02JAZ54D1RRWlv8L0NebauKAaFxACKzB74RTclt1+WNz5KHaLRDAPZbDEw==", + "dev": true } } }, - "p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, + "fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "requires": { - "yocto-queue": "^0.1.0" + "to-regex-range": "^5.0.1" } }, - "p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "find-replace": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/find-replace/-/find-replace-3.0.0.tgz", + "integrity": "sha512-6Tb2myMioCAgv5kfvP5/PkZZ/ntTpVK39fHY7WkWBgvbeE+VHd/tZuZ4mrC+bxh4cfOZeYKVPaJIZtZXV7GNCQ==", "dev": true, "requires": { - "p-limit": "^3.0.2" + "array-back": "^3.0.1" } }, - "p-map": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz", - "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==", - "dev": true, + "find-yarn-workspace-root": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/find-yarn-workspace-root/-/find-yarn-workspace-root-2.0.0.tgz", + "integrity": "sha512-1IMnbjt4KzsQfnhnzNd8wUEgXZ44IzZaZmnLYx7D5FZlaHt2gW20Cri8Q+E/t5tIj4+epTBub+2Zxu/vNILzqQ==", "requires": { - "aggregate-error": "^3.0.0" + "micromatch": "^4.0.2" } }, - "package-json-from-dist": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.0.tgz", - "integrity": "sha512-dATvCeZN/8wQsGywez1mzHtTlP22H8OEfPrVMLNr4/eGa+ijtLn/6M5f0dY8UKNrC2O9UCU6SSoG3qRKnt7STw==", - "dev": true + "forge-std": { + "version": "git+ssh://git@github.com/foundry-rs/forge-std.git#1eea5bae12ae557d589f9f0f0edae2faa47cb262", + "from": "forge-std@github:foundry-rs/forge-std#v1.9.4" }, - "package-manager-detector": { - "version": "0.2.11", - "resolved": "https://registry.npmjs.org/package-manager-detector/-/package-manager-detector-0.2.11.tgz", - "integrity": "sha512-BEnLolu+yuz22S56CU1SUKq3XC3PkwD5wv4ikR4MfGvnRVcmzXR9DwSlW2fEamyTPyXHomBJRzgapeuBvRNzJQ==", - "requires": { - "quansync": "^0.2.7" - } + "fs-then-native": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/fs-then-native/-/fs-then-native-2.0.0.tgz", + "integrity": "sha512-X712jAOaWXkemQCAmWeg5rOT2i+KOpWz1Z/txk/cW0qlOu2oQ9H61vc5w3X/iyuUEfq/OyaFJ78/cZAQD1/bgA==", + "dev": true }, - "parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "requires": { - "callsites": "^3.0.0" - } + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" }, - "parse-cache-control": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parse-cache-control/-/parse-cache-control-1.0.1.tgz", - "integrity": "sha512-60zvsJReQPX5/QP0Kzfd/VrpjScIQ7SHBW6bFCYfEP+fp0Eppr1SHhIO5nd1PjZtvclzSzES9D/p5nFJurwfWg==", + "fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", "dev": true, - "peer": true + "optional": true }, - "patch-package": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/patch-package/-/patch-package-6.5.1.tgz", - "integrity": "sha512-I/4Zsalfhc6bphmJTlrLoOcAF87jcxko4q0qsv4bGcurbr8IskEOtdnt9iCmsQVGL1B+iUhSQqweyTLJfCF9rA==", + "get-func-name": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.2.tgz", + "integrity": "sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==" + }, + "get-tsconfig": { + "version": "4.13.6", + "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.13.6.tgz", + "integrity": "sha512-shZT/QMiSHc/YBLxxOkMtgSid5HFoauqCE3/exfsEcwg1WkeqjG+V40yBbBrsD+jW2HDXcs28xOfcbm2jI8Ddw==", + "dev": true, "requires": { - "@yarnpkg/lockfile": "^1.1.0", - "chalk": "^4.1.2", - "cross-spawn": "^6.0.5", - "find-yarn-workspace-root": "^2.0.0", - "fs-extra": "^9.0.0", - "is-ci": "^2.0.0", - "klaw-sync": "^6.0.0", - "minimist": "^1.2.6", - "open": "^7.4.2", - "rimraf": "^2.6.3", - "semver": "^5.6.0", - "slash": "^2.0.0", - "tmp": "^0.0.33", - "yaml": "^1.10.2" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "fs-extra": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", - "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", - "requires": { - "at-least-node": "^1.0.0", - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - } - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" - }, - "rimraf": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", - "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", - "requires": { - "glob": "^7.1.3" - } - }, - "semver": { - "version": "5.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", - "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==" - }, - "slash": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-2.0.0.tgz", - "integrity": "sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==" - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "requires": { - "has-flag": "^4.0.0" - } - } + "resolve-pkg-maps": "^1.0.0" } }, - "path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==" + "glob": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", + "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==", + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } }, - "path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==" + "glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "requires": { + "is-glob": "^4.0.1" + } }, - "path-key": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", - "integrity": "sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw==" + "globals": { + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", + "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==" }, - "path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true + "graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" }, - "path-scurry": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-2.0.0.tgz", - "integrity": "sha512-ypGJsmGtdXUOeM5u93TyeIEfEhM6s+ljAhrk5vAvSx8uyY/02OvrZnA0YNGUrPXfpJMgI1ODd3nwz8Npx4O4cg==", + "handlebars": { + "version": "4.7.8", + "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.8.tgz", + "integrity": "sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ==", "dev": true, "requires": { - "lru-cache": "^11.0.0", - "minipass": "^7.1.2" + "minimist": "^1.2.5", + "neo-async": "^2.6.2", + "source-map": "^0.6.1", + "uglify-js": "^3.1.4", + "wordwrap": "^1.0.0" }, "dependencies": { - "lru-cache": { - "version": "11.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.0.0.tgz", - "integrity": "sha512-Qv32eSV1RSCfhY3fpPE2GNZ8jgM9X7rdAfemLWqTUxwiyIC4jJ6Sy0fZ8H+oLWevO6i4/bizg7c8d8i6bxrzbA==", + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "dev": true } } }, - "path-type": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==" - }, - "pathval": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz", - "integrity": "sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==" + "hardhat": { + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/hardhat/-/hardhat-3.1.10.tgz", + "integrity": "sha512-+J3LmO5j3r8bYRIiImaTT6WtT0EKcR0nfFxWq/bokAKZq7GKYf6ErKSrOuH+gFIqo+CfnrkxcgbPY20P5vuuSQ==", + "dev": true, + "requires": { + "@nomicfoundation/edr": "0.12.0-next.24", + "@nomicfoundation/hardhat-errors": "^3.0.7", + "@nomicfoundation/hardhat-utils": "^4.0.0", + "@nomicfoundation/hardhat-vendored": "^3.0.1", + "@nomicfoundation/hardhat-zod-utils": "^3.0.2", + "@nomicfoundation/solidity-analyzer": "^0.1.1", + "@sentry/core": "^9.4.0", + "adm-zip": "^0.4.16", + "chalk": "^5.3.0", + "chokidar": "^4.0.3", + "debug": "^4.3.2", + "enquirer": "^2.3.0", + "ethereum-cryptography": "^2.2.1", + "micro-eth-signer": "^0.14.0", + "p-map": "^7.0.2", + "resolve.exports": "^2.0.3", + "semver": "^7.6.3", + "tsx": "^4.19.3", + "ws": "^8.18.0", + "zod": "^3.23.8" + } }, - "pbkdf2": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.1.5.tgz", - "integrity": "sha512-Q3CG/cYvCO1ye4QKkuH7EXxs3VC/rI1/trd+qX2+PolbaKG0H+bgcZzrTt96mMyRtejk+JMCiLUn3y29W8qmFQ==", - "dev": true, - "peer": true, + "hash.js": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz", + "integrity": "sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==", "requires": { - "create-hash": "^1.2.0", - "create-hmac": "^1.1.7", - "ripemd160": "^2.0.3", - "safe-buffer": "^5.2.1", - "sha.js": "^2.4.12", - "to-buffer": "^1.2.1" + "inherits": "^2.0.3", + "minimalistic-assert": "^1.0.1" } }, - "picocolors": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", - "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==" - }, - "picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==" - }, - "pify": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", - "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==" - }, - "possible-typed-array-names": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz", - "integrity": "sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==", - "dev": true - }, - "prelude-ls": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", - "integrity": "sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==", - "dev": true, - "peer": true + "hmac-drbg": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", + "integrity": "sha512-Tti3gMqLdZfhOQY1Mzf/AanLiqh1WTiJgEj26ZuYQ9fbkLomzGchCws4FyrSd4VkpBfiNhaE1On+lOz894jvXg==", + "requires": { + "hash.js": "^1.0.3", + "minimalistic-assert": "^1.0.0", + "minimalistic-crypto-utils": "^1.0.1" + } }, - "prettier": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.3.tgz", - "integrity": "sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==", - "dev": true + "human-id": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/human-id/-/human-id-4.1.1.tgz", + "integrity": "sha512-3gKm/gCSUipeLsRYZbbdA1BD83lBoWUkZ7G9VFrhWPAU76KwYo5KR8V28bpoPm/ygy0x5/GCbpRQdY7VLYCoIg==" }, - "process-nextick-args": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", - "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", - "dev": true, - "peer": true + "ignore": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.1.tgz", + "integrity": "sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==" }, - "promise": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/promise/-/promise-8.3.0.tgz", - "integrity": "sha512-rZPNPKTOYVNEEKFaq1HqTgOwZD+4/YHS5ukLzQCypkj+OkYx7iv0mA91lJlpPPZ8vMau3IIGj5Qlwrx+8iiSmg==", - "dev": true, - "peer": true, + "import-fresh": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", + "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", "requires": { - "asap": "~2.0.6" + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "dependencies": { + "resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==" + } } }, - "proxy-from-env": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", - "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", - "dev": true, - "peer": true - }, - "punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==" + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } }, - "punycode.js": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode.js/-/punycode.js-2.3.1.tgz", - "integrity": "sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==", - "dev": true + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" }, - "qs": { - "version": "6.14.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.0.tgz", - "integrity": "sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w==", - "dev": true, - "peer": true, + "is-ci": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", + "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==", "requires": { - "side-channel": "^1.1.0" + "ci-info": "^2.0.0" } }, - "quansync": { - "version": "0.2.11", - "resolved": "https://registry.npmjs.org/quansync/-/quansync-0.2.11.tgz", - "integrity": "sha512-AifT7QEbW9Nri4tAwR5M/uzpBuqfZf+zwaEM/QkzEjj7NBuFD2rBuy0K3dE+8wltbezDV7JMA0WfnCPYRSYbXA==" + "is-docker": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", + "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==" }, - "queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==" + "is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==" }, - "randombytes": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", - "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", - "dev": true, + "is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", "requires": { - "safe-buffer": "^5.1.0" + "is-extglob": "^2.1.1" } }, - "raw-body": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz", - "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==", - "dev": true, - "requires": { - "bytes": "3.1.2", - "http-errors": "2.0.0", - "iconv-lite": "0.4.24", - "unpipe": "1.0.0" - } + "is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==" }, - "read-yaml-file": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/read-yaml-file/-/read-yaml-file-1.1.0.tgz", - "integrity": "sha512-VIMnQi/Z4HT2Fxuwg5KrY174U1VdUIASQVWXXyqtNRtxSr9IYkn1rsI6Tb6HsrHCmB7gVpNwX6JxPTHcH6IoTA==", + "is-subdir": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/is-subdir/-/is-subdir-1.2.0.tgz", + "integrity": "sha512-2AT6j+gXe/1ueqbW6fLZJiIw3F8iXGJtt0yDrZaBhAZEG1raiTxKWU+IPqMCzQAXOUCKdA4UDMgacKH25XG2Cw==", "requires": { - "graceful-fs": "^4.1.5", - "js-yaml": "^3.6.1", - "pify": "^4.0.1", - "strip-bom": "^3.0.0" - }, - "dependencies": { - "argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "requires": { - "sprintf-js": "~1.0.2" - } - }, - "esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" - }, - "js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", - "requires": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - } - } + "better-path-resolve": "1.0.0" } }, - "readable-stream": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "dev": true, - "requires": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - } + "is-windows": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", + "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==" }, - "readdirp": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", - "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", - "dev": true, + "is-wsl": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", + "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", "requires": { - "picomatch": "^2.2.1" + "is-docker": "^2.0.0" } }, - "rechoir": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", - "integrity": "sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==", - "dev": true, - "peer": true, + "isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" + }, + "js-sha3": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.8.0.tgz", + "integrity": "sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q==" + }, + "js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", "requires": { - "resolve": "^1.1.6" + "argparse": "^2.0.1" } }, - "recursive-readdir": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/recursive-readdir/-/recursive-readdir-2.2.3.tgz", - "integrity": "sha512-8HrF5ZsXk5FAH9dgsx3BlUer73nIhuj+9OrQwEbLTPOBzGkL1lsFCR01am+v+0m2Cmbs1nP12hLDl5FA7EszKA==", + "js2xmlparser": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/js2xmlparser/-/js2xmlparser-4.0.2.tgz", + "integrity": "sha512-6n4D8gLlLf1n5mNLQPRfViYzu9RATblzPEtm1SthMX1Pjao0r9YI9nw7ZIfRxQMERS87mcswrg+r/OYrPRX6jA==", "dev": true, - "peer": true, "requires": { - "minimatch": "^3.0.5" + "xmlcreate": "^2.0.4" } }, - "reduce-extract": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/reduce-extract/-/reduce-extract-1.0.0.tgz", - "integrity": "sha512-QF8vjWx3wnRSL5uFMyCjDeDc5EBMiryoT9tz94VvgjKfzecHAVnqmXAwQDcr7X4JmLc2cjkjFGCVzhMqDjgR9g==", + "jsdoc": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/jsdoc/-/jsdoc-4.0.3.tgz", + "integrity": "sha512-Nu7Sf35kXJ1MWDZIMAuATRQTg1iIPdzh7tqJ6jjvaU/GfDf+qi5UV8zJR3Mo+/pYFvm8mzay4+6O5EWigaQBQw==", "dev": true, "requires": { - "test-value": "^1.0.1" + "@babel/parser": "^7.20.15", + "@jsdoc/salty": "^0.2.1", + "@types/markdown-it": "^14.1.1", + "bluebird": "^3.7.2", + "catharsis": "^0.9.0", + "escape-string-regexp": "^2.0.0", + "js2xmlparser": "^4.0.2", + "klaw": "^3.0.0", + "markdown-it": "^14.1.0", + "markdown-it-anchor": "^8.6.7", + "marked": "^4.0.10", + "mkdirp": "^1.0.4", + "requizzle": "^0.2.3", + "strip-json-comments": "^3.1.0", + "underscore": "~1.13.2" }, "dependencies": { - "array-back": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-1.0.4.tgz", - "integrity": "sha512-1WxbZvrmyhkNoeYcizokbmh5oiOCIfyvGtcqbK3Ls1v1fKcquzxnQSceOx6tzq7jmai2kFLWIpGND2cLhH6TPw==", - "dev": true, - "requires": { - "typical": "^2.6.0" - } + "escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "dev": true }, - "test-value": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/test-value/-/test-value-1.1.0.tgz", - "integrity": "sha512-wrsbRo7qP+2Je8x8DsK8ovCGyxe3sYfQwOraIY/09A2gFXU9DYKiTF14W4ki/01AEh56kMzAmlj9CaHGDDUBJA==", + "klaw": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/klaw/-/klaw-3.0.0.tgz", + "integrity": "sha512-0Fo5oir+O9jnXu5EefYbVK+mHMBeEVEy2cmctR1O1NECcCkPRreJKrS6Qt/j3KC2C148Dfo9i3pCmCMsdqGr0g==", "dev": true, "requires": { - "array-back": "^1.0.2", - "typical": "^2.4.2" + "graceful-fs": "^4.1.9" } }, - "typical": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/typical/-/typical-2.6.1.tgz", - "integrity": "sha512-ofhi8kjIje6npGozTip9Fr8iecmYfEbS06i0JnIg+rh51KakryWF4+jX8lLKZVhy6N+ID45WYSFCxPOdTWCzNg==", + "mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", "dev": true } } }, - "reduce-flatten": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/reduce-flatten/-/reduce-flatten-2.0.0.tgz", - "integrity": "sha512-EJ4UNY/U1t2P/2k6oqotuX2Cc3T6nxJwsM0N0asT7dhrtH1ltUxDn4NalSYmPE2rCkVpcf/X6R0wDwcFpzhd4w==", - "dev": true, - "peer": true - }, - "reduce-unique": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/reduce-unique/-/reduce-unique-2.0.1.tgz", - "integrity": "sha512-x4jH/8L1eyZGR785WY+ePtyMNhycl1N2XOLxhCbzZFaqF4AXjLzqSxa2UHgJ2ZVR/HHyPOvl1L7xRnW8ye5MdA==", - "dev": true - }, - "reduce-without": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/reduce-without/-/reduce-without-1.0.1.tgz", - "integrity": "sha512-zQv5y/cf85sxvdrKPlfcRzlDn/OqKFThNimYmsS3flmkioKvkUGn2Qg9cJVoQiEvdxFGLE0MQER/9fZ9sUqdxg==", + "jsdoc-api": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/jsdoc-api/-/jsdoc-api-8.0.0.tgz", + "integrity": "sha512-Rnhor0suB1Ds1abjmFkFfKeD+kSMRN9oHMTMZoJVUrmtCGDwXty+sWMA9sa4xbe4UyxuPjhC7tavZ40mDKK6QQ==", "dev": true, "requires": { - "test-value": "^2.0.0" + "array-back": "^6.2.2", + "cache-point": "^2.0.0", + "collect-all": "^1.0.4", + "file-set": "^4.0.2", + "fs-then-native": "^2.0.0", + "jsdoc": "^4.0.0", + "object-to-spawn-args": "^2.0.1", + "temp-path": "^1.0.0", + "walk-back": "^5.1.0" }, "dependencies": { "array-back": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-1.0.4.tgz", - "integrity": "sha512-1WxbZvrmyhkNoeYcizokbmh5oiOCIfyvGtcqbK3Ls1v1fKcquzxnQSceOx6tzq7jmai2kFLWIpGND2cLhH6TPw==", - "dev": true, - "requires": { - "typical": "^2.6.0" - } - }, - "test-value": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/test-value/-/test-value-2.1.0.tgz", - "integrity": "sha512-+1epbAxtKeXttkGFMTX9H42oqzOTufR1ceCF+GYA5aOmvaPq9wd4PUS8329fn2RRLGNeUkgRLnVpycjx8DsO2w==", - "dev": true, - "requires": { - "array-back": "^1.0.3", - "typical": "^2.6.0" - } - }, - "typical": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/typical/-/typical-2.6.1.tgz", - "integrity": "sha512-ofhi8kjIje6npGozTip9Fr8iecmYfEbS06i0JnIg+rh51KakryWF4+jX8lLKZVhy6N+ID45WYSFCxPOdTWCzNg==", + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/array-back/-/array-back-6.2.2.tgz", + "integrity": "sha512-gUAZ7HPyb4SJczXAMUXMGAvI976JoK3qEx9v1FTmeYuJj0IBiaKttG1ydtGKdkfqWkIkouke7nG8ufGy77+Cvw==", "dev": true } } }, - "regexp.prototype.flags": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.5.2.tgz", - "integrity": "sha512-NcDiDkTLuPR+++OCKB0nWafEmhg/Da8aUPLPMQbK+bxKKCm1/S5he+AqYa4PlMCVBalb4/yxIRub6qkEx5yJbw==", - "dev": true, - "requires": { - "call-bind": "^1.0.6", - "define-properties": "^1.2.1", - "es-errors": "^1.3.0", - "set-function-name": "^2.0.1" - } - }, - "req-cwd": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/req-cwd/-/req-cwd-2.0.0.tgz", - "integrity": "sha512-ueoIoLo1OfB6b05COxAA9UpeoscNpYyM+BqYlA7H6LVF4hKGPXQQSSaD2YmvDVJMkk4UDpAHIeU1zG53IqjvlQ==", + "jsdoc-parse": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/jsdoc-parse/-/jsdoc-parse-6.2.1.tgz", + "integrity": "sha512-9viGRUUtWOk/G4V0+nQ6rfLucz5plxh5I74WbNSNm9h9NWugCDVX4jbG8hZP9QqKGpdTPDE+qJXzaYNos3wqTA==", "dev": true, - "peer": true, "requires": { - "req-from": "^2.0.0" + "array-back": "^6.2.2", + "lodash.omit": "^4.5.0", + "reduce-extract": "^1.0.0", + "sort-array": "^4.1.5", + "test-value": "^3.0.0" + }, + "dependencies": { + "array-back": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/array-back/-/array-back-6.2.2.tgz", + "integrity": "sha512-gUAZ7HPyb4SJczXAMUXMGAvI976JoK3qEx9v1FTmeYuJj0IBiaKttG1ydtGKdkfqWkIkouke7nG8ufGy77+Cvw==", + "dev": true + } } }, - "req-from": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/req-from/-/req-from-2.0.0.tgz", - "integrity": "sha512-LzTfEVDVQHBRfjOUMgNBA+V6DWsSnoeKzf42J7l0xa/B4jyPOuuF5MlNSmomLNGemWTnV2TIdjSSLnEn95fOQA==", + "jsdoc-to-markdown": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/jsdoc-to-markdown/-/jsdoc-to-markdown-8.0.1.tgz", + "integrity": "sha512-qJfNJhkq2C26UYoOdj8L1yheTJlk1veCsxwRejRmj07XZKCn7oSkuPErx6+JoNi8afCaUKdIM5oUu0uF2/T8iw==", "dev": true, - "peer": true, "requires": { - "resolve-from": "^3.0.0" + "array-back": "^6.2.2", + "command-line-tool": "^0.8.0", + "config-master": "^3.1.0", + "dmd": "^6.2.0", + "jsdoc-api": "^8.0.0", + "jsdoc-parse": "^6.2.1", + "walk-back": "^5.1.0" + }, + "dependencies": { + "array-back": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/array-back/-/array-back-6.2.2.tgz", + "integrity": "sha512-gUAZ7HPyb4SJczXAMUXMGAvI976JoK3qEx9v1FTmeYuJj0IBiaKttG1ydtGKdkfqWkIkouke7nG8ufGy77+Cvw==", + "dev": true + } } }, - "require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "json-stream-stringify": { + "version": "3.1.6", + "resolved": "https://registry.npmjs.org/json-stream-stringify/-/json-stream-stringify-3.1.6.tgz", + "integrity": "sha512-x7fpwxOkbhFCaJDJ8vb1fBY3DdSa4AlITaz+HHILQJzdPMnHEFjxPwVUi1ALIbcIxDE0PNe/0i7frnY8QnBQog==", "dev": true }, - "require-from-string": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", - "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", - "dev": true, - "peer": true + "jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "requires": { + "graceful-fs": "^4.1.6", + "universalify": "^2.0.0" + } }, - "requizzle": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/requizzle/-/requizzle-0.2.4.tgz", - "integrity": "sha512-JRrFk1D4OQ4SqovXOgdav+K8EAhSB/LJZqCz8tbX0KObcdeM15Ss59ozWMBWmmINMagCwmqn4ZNryUGpBsl6Jw==", - "dev": true, + "klaw-sync": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/klaw-sync/-/klaw-sync-6.0.0.tgz", + "integrity": "sha512-nIeuVSzdCCs6TDPTqI8w1Yre34sSq7AkZ4B3sfOBbI2CgVSB4Du4aLQijFU2+lhAFCwt9+42Hel6lQNIv6AntQ==", "requires": { - "lodash": "^4.17.21" + "graceful-fs": "^4.1.11" } }, - "resolve": { - "version": "1.17.0", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.17.0.tgz", - "integrity": "sha512-ic+7JYiV8Vi2yzQGFWOkiZD5Z9z7O2Zhm9XMaTxdJExKasieFCr+yXZ/WmXsckHiKl12ar0y6XiXDx3m4RHn1w==", + "linkify-it": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-5.0.0.tgz", + "integrity": "sha512-5aHCbzQRADcdP+ATqnDuhhJ/MRIqDkZX5pyjFHRRysS8vZ5AbqGEoFIb6pYHPZ+L/OC2Lc+xT8uHVVR5CAK/wQ==", "dev": true, "requires": { - "path-parse": "^1.0.6" + "uc.micro": "^2.0.0" } }, - "resolve-from": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-3.0.0.tgz", - "integrity": "sha512-GnlH6vxLymXJNMBo7XP1fJIzBFbdYt49CuTwmB/6N53t+kMPRMFKz783LlQ4tv28XoQfMWinAJX6WCGf2IlaIw==", - "dev": true, - "peer": true + "lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "dev": true }, - "reusify": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", - "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==" + "lodash.camelcase": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", + "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==", + "dev": true }, - "rimraf": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-6.0.1.tgz", - "integrity": "sha512-9dkvaxAsk/xNXSJzMgFqqMCuFgt2+KsOFek3TMLfo8NCPfWpBmqwyNn5Y+NX56QUYfCtsyhF3ayiboEoUmJk/A==", - "dev": true, - "requires": { - "glob": "^11.0.0", - "package-json-from-dist": "^1.0.0" - }, - "dependencies": { - "brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "requires": { - "balanced-match": "^1.0.0" - } - }, - "glob": { - "version": "11.0.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-11.0.0.tgz", - "integrity": "sha512-9UiX/Bl6J2yaBbxKoEBRm4Cipxgok8kQYcOPEhScPwebu2I0HoQOuYdIO6S3hLuWoZgpDpwQZMzTFxgpkyT76g==", - "dev": true, - "requires": { - "foreground-child": "^3.1.0", - "jackspeak": "^4.0.1", - "minimatch": "^10.0.0", - "minipass": "^7.1.2", - "package-json-from-dist": "^1.0.0", - "path-scurry": "^2.0.0" - } - }, - "minimatch": { - "version": "10.0.1", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.0.1.tgz", - "integrity": "sha512-ethXTt3SGGR+95gudmqJ1eNhRO7eGEGIgYA9vnPatK4/etz2MEVDno5GMCibdMTuBMyElzIlgxMna3K94XDIDQ==", - "dev": true, - "requires": { - "brace-expansion": "^2.0.1" - } - } - } + "lodash.omit": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.omit/-/lodash.omit-4.5.0.tgz", + "integrity": "sha512-XeqSp49hNGmlkj2EJlfrQFIzQ6lXdNro9sddtQzcJY8QaoC2GO0DT7xaIokHeyM+mIT0mPMlPvkYzg2xCuHdZg==", + "dev": true }, - "ripemd160": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.3.tgz", - "integrity": "sha512-5Di9UC0+8h1L6ZD2d7awM7E/T4uA1fJRlx6zk/NvdCCVEoAnFqvHmCuNeIKoCeIixBX/q8uM+6ycDvF8woqosA==", - "dev": true, - "peer": true, - "requires": { - "hash-base": "^3.1.2", - "inherits": "^2.0.4" - } + "lodash.padend": { + "version": "4.6.1", + "resolved": "https://registry.npmjs.org/lodash.padend/-/lodash.padend-4.6.1.tgz", + "integrity": "sha512-sOQs2aqGpbl27tmCS1QNZA09Uqp01ZzWfDUoD+xzTii0E7dSQfRKcRetFwa+uXaxaqL+TKm7CgD2JdKP7aZBSw==", + "dev": true }, - "rlp": { - "version": "2.2.7", - "resolved": "https://registry.npmjs.org/rlp/-/rlp-2.2.7.tgz", - "integrity": "sha512-d5gdPmgQ0Z+AklL2NVXr/IoSjNZFfTVvQWzL/AM2AOcSzYP2xjlb0AC8YyCLc41MSNf6P6QVtjgPdmVtzb+4lQ==", - "dev": true, - "peer": true, + "lodash.startcase": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/lodash.startcase/-/lodash.startcase-4.4.0.tgz", + "integrity": "sha512-+WKqsK294HMSc2jEbNgpHpd0JfIBhp7rEV4aqXWqFr6AlXov+SlcgB1Fv01y2kGe3Gc8nMW7VA0SrGuSkRfIEg==" + }, + "loupe": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.7.tgz", + "integrity": "sha512-zSMINGVYkdpYSOBmLi0D1Uo7JU9nVdQKrHxC8eYlV+9YKK9WePqAlL7lSlorG/U2Fw1w0hTBmaa/jrQ3UbPHtA==", "requires": { - "bn.js": "^5.2.0" + "get-func-name": "^2.0.1" } }, - "run-parallel": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "markdown-it": { + "version": "14.1.0", + "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-14.1.0.tgz", + "integrity": "sha512-a54IwgWPaeBCAAsv13YgmALOF1elABB08FxO9i+r4VFk5Vl4pKokRPeX8u5TCgSsPi6ec1otfLjdOpVcgbpshg==", + "dev": true, "requires": { - "queue-microtask": "^1.2.2" + "argparse": "^2.0.1", + "entities": "^4.4.0", + "linkify-it": "^5.0.0", + "mdurl": "^2.0.0", + "punycode.js": "^2.3.1", + "uc.micro": "^2.1.0" } }, - "safe-array-concat": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.1.2.tgz", - "integrity": "sha512-vj6RsCsWBCf19jIeHEfkRMw8DPiBb+DMXklQ/1SGDHOMlHdPUkZXFQ2YdplS23zESTijAcurb1aSgJA3AgMu1Q==", + "markdown-it-anchor": { + "version": "8.6.7", + "resolved": "https://registry.npmjs.org/markdown-it-anchor/-/markdown-it-anchor-8.6.7.tgz", + "integrity": "sha512-FlCHFwNnutLgVTflOYHPW2pPcl2AACqVzExlkGQNsi4CJgqOHN7YTgDd4LuhgN1BFO3TS0vLAruV1Td6dwWPJA==", "dev": true, - "requires": { - "call-bind": "^1.0.7", - "get-intrinsic": "^1.2.4", - "has-symbols": "^1.0.3", - "isarray": "^2.0.5" - } + "requires": {} }, - "safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "marked": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/marked/-/marked-4.3.0.tgz", + "integrity": "sha512-PRsaiG84bK+AMvxziE/lCFss8juXjNaWzVbN5tXAm4XjeaS9NAHhop+PjQxz2A9h8Q4M/xGmzP8vqNwy6JeK0A==", "dev": true }, - "safe-regex-test": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.3.tgz", - "integrity": "sha512-CdASjNJPvRa7roO6Ra/gLYBTzYzzPyyBXxIMdGW3USQLyjWEls2RgW5UBTXaQVp+OrpeCK3bLem8smtmheoRuw==", - "dev": true, - "requires": { - "call-bind": "^1.0.6", - "es-errors": "^1.3.0", - "is-regex": "^1.1.4" - } + "mdurl": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-2.0.0.tgz", + "integrity": "sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w==", + "dev": true }, - "safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + "merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==" }, - "sc-istanbul": { - "version": "0.4.6", - "resolved": "https://registry.npmjs.org/sc-istanbul/-/sc-istanbul-0.4.6.tgz", - "integrity": "sha512-qJFF/8tW/zJsbyfh/iT/ZM5QNHE3CXxtLJbZsL+CzdJLBsPD7SedJZoUA4d8iAcN2IoMp/Dx80shOOd2x96X/g==", + "micro-eth-signer": { + "version": "0.14.0", + "resolved": "https://registry.npmjs.org/micro-eth-signer/-/micro-eth-signer-0.14.0.tgz", + "integrity": "sha512-5PLLzHiVYPWClEvZIXXFu5yutzpadb73rnQCpUqIHu3No3coFuWQNfE5tkBQJ7djuLYl6aRLaS0MgWJYGoqiBw==", "dev": true, - "peer": true, "requires": { - "abbrev": "1.0.x", - "async": "1.x", - "escodegen": "1.8.x", - "esprima": "2.7.x", - "glob": "^5.0.15", - "handlebars": "^4.0.1", - "js-yaml": "3.x", - "mkdirp": "0.5.x", - "nopt": "3.x", - "once": "1.x", - "resolve": "1.1.x", - "supports-color": "^3.1.0", - "which": "^1.1.1", - "wordwrap": "^1.0.0" + "@noble/curves": "~1.8.1", + "@noble/hashes": "~1.7.1", + "micro-packed": "~0.7.2" }, "dependencies": { - "argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, - "peer": true, - "requires": { - "sprintf-js": "~1.0.2" - } - }, - "glob": { - "version": "5.0.15", - "resolved": "https://registry.npmjs.org/glob/-/glob-5.0.15.tgz", - "integrity": "sha512-c9IPMazfRITpmAAKi22dK1VKxGDX9ehhqfABDriL/lzO92xcUKEJPQHrVA/2YHSNFB4iFlykVmWvwo48nr3OxA==", - "dev": true, - "peer": true, - "requires": { - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "2 || 3", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "has-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-1.0.0.tgz", - "integrity": "sha512-DyYHfIYwAJmjAjSSPKANxI8bFY9YtFrgkAfinBojQ8YJTOuOuav64tMUJv584SES4xl74PmuaevIyaLESHdTAA==", - "dev": true, - "peer": true - }, - "js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "@noble/curves": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.8.2.tgz", + "integrity": "sha512-vnI7V6lFNe0tLAuJMu+2sX+FcL14TaCWy1qiczg1VwRmPrpQCdq5ESXQMqUc2tluRNf6irBXrWbl1mGN8uaU/g==", "dev": true, - "peer": true, "requires": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - }, - "dependencies": { - "esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true, - "peer": true - } + "@noble/hashes": "1.7.2" } }, - "resolve": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.1.7.tgz", - "integrity": "sha512-9znBF0vBcaSN3W2j7wKvdERPwqTxSpCq+if5C0WoTCyV9n24rua28jeuQ2pL/HOf+yUe/Mef+H/5p60K0Id3bg==", - "dev": true, - "peer": true - }, - "supports-color": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz", - "integrity": "sha512-Jds2VIYDrlp5ui7t8abHN2bjAu4LV/q4N2KivFPpGH0lrka0BMq/33AmECUXlKPcHigkNaqfXRENFju+rlcy+A==", - "dev": true, - "peer": true, - "requires": { - "has-flag": "^1.0.0" - } + "@noble/hashes": { + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.7.2.tgz", + "integrity": "sha512-biZ0NUSxyjLLqo6KxEJ1b+C2NAx0wtDoFvCaXHGgUkeHzf3Xc1xKumFKREuT7f7DARNZ/slvYUwFG6B0f2b6hQ==", + "dev": true } } }, - "scrypt-js": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/scrypt-js/-/scrypt-js-3.0.1.tgz", - "integrity": "sha512-cdwTTnqPu0Hyvf5in5asVdZocVDTNRmR7XEcJuIzMjJeSHybHl7vpB66AzwTaIg6CLSbtjcxc8fqcySfnTkccA==", - "peer": true - }, - "secp256k1": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/secp256k1/-/secp256k1-4.0.4.tgz", - "integrity": "sha512-6JfvwvjUOn8F/jUoBY2Q1v5WY5XS+rj8qSe0v8Y4ezH4InLgTEeOOPQsRll9OV429Pvo6BCHGavIyJfr3TAhsw==", + "micro-packed": { + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/micro-packed/-/micro-packed-0.7.3.tgz", + "integrity": "sha512-2Milxs+WNC00TRlem41oRswvw31146GiSaoCT7s3Xi2gMUglW5QBeqlQaZeHr5tJx9nm3i57LNXPqxOOaWtTYg==", "dev": true, - "peer": true, "requires": { - "elliptic": "^6.5.7", - "node-addon-api": "^5.0.0", - "node-gyp-build": "^4.2.0" + "@scure/base": "~1.2.5" }, "dependencies": { - "bn.js": { - "version": "4.12.2", - "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.2.tgz", - "integrity": "sha512-n4DSx829VRTRByMRGdjQ9iqsN0Bh4OolPsFnaZBLcbi8iXcB+kJ9s7EnRt4wILZNV3kPLHkRVfOc/HvhC3ovDw==", - "dev": true, - "peer": true - }, - "elliptic": { - "version": "6.6.1", - "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.6.1.tgz", - "integrity": "sha512-RaddvvMatK2LJHqFJ+YA4WysVN5Ita9E35botqIYspQ4TkRAlCicdzKOjlyv/1Za5RyTNn7di//eEV0uTAfe3g==", - "dev": true, - "peer": true, - "requires": { - "bn.js": "^4.11.9", - "brorand": "^1.1.0", - "hash.js": "^1.0.0", - "hmac-drbg": "^1.0.1", - "inherits": "^2.0.4", - "minimalistic-assert": "^1.0.1", - "minimalistic-crypto-utils": "^1.0.1" - } - }, - "node-addon-api": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-5.1.0.tgz", - "integrity": "sha512-eh0GgfEkpnoWDq+VY8OyvYhFEzBk6jIYbRKdIlyTiAXIVJ8PyBaKb0rp7oDtoddbdoHWhq8wwr+XZ81F1rpNdA==", - "dev": true, - "peer": true + "@scure/base": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.2.6.tgz", + "integrity": "sha512-g/nm5FgUa//MCj1gV09zTJTaM6KBAHqLN907YVQqf7zC49+DcO4B1so4ZX07Ef10Twr6nuqYEH9GEggFXA4Fmg==", + "dev": true } } }, - "semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true - }, - "serialize-javascript": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz", - "integrity": "sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==", - "dev": true, + "micromatch": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", "requires": { - "randombytes": "^2.1.0" + "braces": "^3.0.3", + "picomatch": "^2.3.1" } }, - "set-function-length": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", - "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", - "dev": true, - "requires": { - "define-data-property": "^1.1.4", - "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.4", - "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.2" - } + "minimalistic-assert": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", + "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==" }, - "set-function-name": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.2.tgz", - "integrity": "sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==", - "dev": true, + "minimalistic-crypto-utils": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", + "integrity": "sha512-JIYlbt6g8i5jKfJ3xz7rF0LXmv2TkDxBLUkiBeZ7bAx4GnnNMr8xFpGnOxn6GhTEHx3SjRrZEoU+j04prX1ktg==" + }, + "minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", "requires": { - "define-data-property": "^1.1.4", - "es-errors": "^1.3.0", - "functions-have-names": "^1.2.3", - "has-property-descriptors": "^1.0.2" + "brace-expansion": "^1.1.7" } }, - "setimmediate": { + "minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==" + }, + "mkdirp2": { "version": "1.0.5", - "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", - "integrity": "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==", - "dev": true, - "peer": true + "resolved": "https://registry.npmjs.org/mkdirp2/-/mkdirp2-1.0.5.tgz", + "integrity": "sha512-xOE9xbICroUDmG1ye2h4bZ8WBie9EGmACaco8K8cx6RlkJJrxGIqjGqztAI+NMhexXBcdGbSEzI6N3EJPevxZw==", + "dev": true }, - "setprototypeof": { + "mri": { "version": "1.2.0", - "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", - "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", + "resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz", + "integrity": "sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==" + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, + "neo-async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", "dev": true }, - "sha.js": { - "version": "2.4.12", - "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.12.tgz", - "integrity": "sha512-8LzC5+bvI45BjpfXU8V5fdU2mfeKiQe1D1gIMn7XUlF3OTUrpdJpPPH4EMAnF0DsHHdSZqCdSss5qCmJKuiO3w==", - "dev": true, - "peer": true, - "requires": { - "inherits": "^2.0.4", - "safe-buffer": "^5.2.1", - "to-buffer": "^1.2.0" - } + "nice-try": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", + "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==" }, - "sha1": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/sha1/-/sha1-1.1.1.tgz", - "integrity": "sha512-dZBS6OrMjtgVkopB1Gmo4RQCDKiZsqcpAQpkV/aaj+FCrCg8r4I4qMkDPQjBgLIxlmu9k4nUbWq6ohXahOneYA==", - "dev": true, - "peer": true, + "node-fetch": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", "requires": { - "charenc": ">= 0.0.1", - "crypt": ">= 0.0.1" + "whatwg-url": "^5.0.0" } }, - "shebang-command": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", - "integrity": "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==", - "requires": { - "shebang-regex": "^1.0.0" - } + "object-get": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/object-get/-/object-get-2.1.1.tgz", + "integrity": "sha512-7n4IpLMzGGcLEMiQKsNR7vCe+N5E9LORFrtNUVy4sO3dj9a3HedZCxEL2T7QuLhcHN1NBuBsMOKaOsAYI9IIvg==", + "dev": true }, - "shebang-regex": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", - "integrity": "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==" + "object-to-spawn-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/object-to-spawn-args/-/object-to-spawn-args-2.0.1.tgz", + "integrity": "sha512-6FuKFQ39cOID+BMZ3QaphcC8Y4cw6LXBLyIgPU+OhIYwviJamPAn+4mITapnSBQrejB+NNp+FMskhD8Cq+Ys3w==", + "dev": true }, - "shelljs": { - "version": "0.8.5", - "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.5.tgz", - "integrity": "sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==", - "dev": true, - "peer": true, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", "requires": { - "glob": "^7.0.0", - "interpret": "^1.0.0", - "rechoir": "^0.6.2" + "wrappy": "1" } }, - "side-channel": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", - "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", - "dev": true, + "open": { + "version": "7.4.2", + "resolved": "https://registry.npmjs.org/open/-/open-7.4.2.tgz", + "integrity": "sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q==", "requires": { - "es-errors": "^1.3.0", - "object-inspect": "^1.13.3", - "side-channel-list": "^1.0.0", - "side-channel-map": "^1.0.1", - "side-channel-weakmap": "^1.0.2" + "is-docker": "^2.0.0", + "is-wsl": "^2.1.1" } }, - "side-channel-list": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", - "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", - "dev": true, + "os-tmpdir": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", + "integrity": "sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==" + }, + "outdent": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/outdent/-/outdent-0.5.0.tgz", + "integrity": "sha512-/jHxFIzoMXdqPzTaCpFzAAWhpkSjZPF4Vsn6jAfNpmbH/ymsmd7Qc6VE9BGn0L6YMj6uwpQLxCECpus4ukKS9Q==" + }, + "p-filter": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/p-filter/-/p-filter-2.1.0.tgz", + "integrity": "sha512-ZBxxZ5sL2HghephhpGAQdoskxplTwr7ICaehZwLIlfL6acuVgZPm8yBNuRAFBGEqtD/hmUeq9eqLg2ys9Xr/yw==", "requires": { - "es-errors": "^1.3.0", - "object-inspect": "^1.13.3" + "p-map": "^2.0.0" + }, + "dependencies": { + "p-map": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-2.1.0.tgz", + "integrity": "sha512-y3b8Kpd8OAN444hxfBbFfj1FY/RjtTd8tzYwhUqNYXx0fXx2iX4maP4Qr6qhIKbQXI02wTLAda4fYUbDagTUFw==" + } } }, - "side-channel-map": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", - "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", - "dev": true, + "p-map": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-7.0.4.tgz", + "integrity": "sha512-tkAQEw8ysMzmkhgw8k+1U/iPhWNhykKnSk4Rd5zLoPJCuJaGRPo6YposrZgaxHKzDHdDWWZvE/Sk7hsL2X/CpQ==", + "dev": true + }, + "package-manager-detector": { + "version": "0.2.11", + "resolved": "https://registry.npmjs.org/package-manager-detector/-/package-manager-detector-0.2.11.tgz", + "integrity": "sha512-BEnLolu+yuz22S56CU1SUKq3XC3PkwD5wv4ikR4MfGvnRVcmzXR9DwSlW2fEamyTPyXHomBJRzgapeuBvRNzJQ==", "requires": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.5", - "object-inspect": "^1.13.3" + "quansync": "^0.2.7" } }, - "side-channel-weakmap": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", - "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", - "dev": true, + "parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", "requires": { - "call-bound": "^1.0.2", - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.5", - "object-inspect": "^1.13.3", - "side-channel-map": "^1.0.1" + "callsites": "^3.0.0" } }, - "signal-exit": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", - "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==" - }, - "slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==" - }, - "slice-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz", - "integrity": "sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ==", - "dev": true, - "peer": true, + "patch-package": { + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/patch-package/-/patch-package-6.5.1.tgz", + "integrity": "sha512-I/4Zsalfhc6bphmJTlrLoOcAF87jcxko4q0qsv4bGcurbr8IskEOtdnt9iCmsQVGL1B+iUhSQqweyTLJfCF9rA==", "requires": { - "ansi-styles": "^4.0.0", - "astral-regex": "^2.0.0", - "is-fullwidth-code-point": "^3.0.0" + "@yarnpkg/lockfile": "^1.1.0", + "chalk": "^4.1.2", + "cross-spawn": "^6.0.5", + "find-yarn-workspace-root": "^2.0.0", + "fs-extra": "^9.0.0", + "is-ci": "^2.0.0", + "klaw-sync": "^6.0.0", + "minimist": "^1.2.6", + "open": "^7.4.2", + "rimraf": "^2.6.3", + "semver": "^5.6.0", + "slash": "^2.0.0", + "tmp": "^0.0.33", + "yaml": "^1.10.2" }, "dependencies": { "ansi-styles": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "peer": true, "requires": { "color-convert": "^2.0.1" } }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, "color-convert": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "peer": true, "requires": { "color-name": "~1.1.4" } @@ -19443,504 +8708,186 @@ "color-name": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, - "peer": true - } - } - }, - "solady": { - "version": "0.0.182", - "resolved": "https://registry.npmjs.org/solady/-/solady-0.0.182.tgz", - "integrity": "sha512-FW6xo1akJoYpkXMzu58/56FcNU3HYYNamEbnFO3iSibXk0nSHo0DV2Gu/zI3FPg3So5CCX6IYli1TT1IWATnvg==" - }, - "solc": { - "version": "0.8.26", - "resolved": "https://registry.npmjs.org/solc/-/solc-0.8.26.tgz", - "integrity": "sha512-yiPQNVf5rBFHwN6SIf3TUUvVAFKcQqmSUFeq+fb6pNRCo0ZCgpYOZDi3BVoezCPIAcKrVYd/qXlBLUP9wVrZ9g==", - "dev": true, - "requires": { - "command-exists": "^1.2.8", - "commander": "^8.1.0", - "follow-redirects": "^1.12.1", - "js-sha3": "0.8.0", - "memorystream": "^0.3.1", - "semver": "^5.5.0", - "tmp": "0.0.33" - }, - "dependencies": { - "semver": { - "version": "5.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", - "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", - "dev": true - } - } - }, - "solidity-ast": { - "version": "0.4.56", - "resolved": "https://registry.npmjs.org/solidity-ast/-/solidity-ast-0.4.56.tgz", - "integrity": "sha512-HgmsA/Gfklm/M8GFbCX/J1qkVH0spXHgALCNZ8fA8x5X+MFdn/8CP2gr5OVyXjXw6RZTPC/Sxl2RUDQOXyNMeA==", - "dev": true, - "requires": { - "array.prototype.findlast": "^1.2.2" - } - }, - "solidity-coverage": { - "version": "0.8.16", - "resolved": "https://registry.npmjs.org/solidity-coverage/-/solidity-coverage-0.8.16.tgz", - "integrity": "sha512-qKqgm8TPpcnCK0HCDLJrjbOA2tQNEJY4dHX/LSSQ9iwYFS973MwjtgYn2Iv3vfCEQJTj5xtm4cuUMzlJsJSMbg==", - "dev": true, - "peer": true, - "requires": { - "@ethersproject/abi": "^5.0.9", - "@solidity-parser/parser": "^0.20.1", - "chalk": "^2.4.2", - "death": "^1.1.0", - "difflib": "^0.2.4", - "fs-extra": "^8.1.0", - "ghost-testrpc": "^0.0.2", - "global-modules": "^2.0.0", - "globby": "^10.0.1", - "jsonschema": "^1.2.4", - "lodash": "^4.17.21", - "mocha": "^10.2.0", - "node-emoji": "^1.10.0", - "pify": "^4.0.1", - "recursive-readdir": "^2.2.2", - "sc-istanbul": "^0.4.5", - "semver": "^7.3.4", - "shelljs": "^0.8.3", - "web3-utils": "^1.3.6" - }, - "dependencies": { - "@solidity-parser/parser": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/@solidity-parser/parser/-/parser-0.20.2.tgz", - "integrity": "sha512-rbu0bzwNvMcwAjH86hiEAcOeRI2EeK8zCkHDrFykh/Al8mvJeFmjy3UrE7GYQjNwOgbGUUtCn5/k8CB8zIu7QA==", - "dev": true, - "peer": true + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" }, "fs-extra": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", - "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", - "dev": true, - "peer": true, + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", + "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", "requires": { + "at-least-node": "^1.0.0", "graceful-fs": "^4.2.0", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" } }, - "jsonfile": { + "has-flag": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", - "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", - "dev": true, - "peer": true, - "requires": { - "graceful-fs": "^4.1.6" - } - }, - "semver": { - "version": "7.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz", - "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", - "dev": true, - "peer": true - }, - "universalify": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", - "dev": true, - "peer": true - } - } - }, - "solidity-docgen": { - "version": "0.6.0-beta.36", - "resolved": "https://registry.npmjs.org/solidity-docgen/-/solidity-docgen-0.6.0-beta.36.tgz", - "integrity": "sha512-f/I5G2iJgU1h0XrrjRD0hHMr7C10u276vYvm//rw1TzFcYQ4xTOyAoi9oNAHRU0JU4mY9eTuxdVc2zahdMuhaQ==", - "dev": true, - "requires": { - "handlebars": "^4.7.7", - "solidity-ast": "^0.4.38" - } - }, - "sort-array": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/sort-array/-/sort-array-4.1.5.tgz", - "integrity": "sha512-Ya4peoS1fgFN42RN1REk2FgdNOeLIEMKFGJvs7VTP3OklF8+kl2SkpVliZ4tk/PurWsrWRsdNdU+tgyOBkB9sA==", - "dev": true, - "requires": { - "array-back": "^5.0.0", - "typical": "^6.0.1" - }, - "dependencies": { - "array-back": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-5.0.0.tgz", - "integrity": "sha512-kgVWwJReZWmVuWOQKEOohXKJX+nD02JAZ54D1RRWlv8L0NebauKAaFxACKzB74RTclt1+WNz5KHaLRDAPZbDEw==", - "dev": true + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" }, - "typical": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/typical/-/typical-6.0.1.tgz", - "integrity": "sha512-+g3NEp7fJLe9DPa1TArHm9QAA7YciZmWnfAqEaFrBihQ7epOv9i99rjtgb6Iz0wh3WuQDjsCTDfgRoGnmHN81A==", - "dev": true - } - } - }, - "source-map": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.2.0.tgz", - "integrity": "sha512-CBdZ2oa/BHhS4xj5DlhjWNHcan57/5YuvfdLf17iVmIpd9KRm+DFLmC6nBNj+6Ua7Kt3TmOjDpQT1aTYOQtoUA==", - "dev": true, - "optional": true, - "peer": true, - "requires": { - "amdefine": ">=0.0.4" - } - }, - "source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "dev": true, - "requires": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "spawndamnit": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/spawndamnit/-/spawndamnit-3.0.1.tgz", - "integrity": "sha512-MmnduQUuHCoFckZoWnXsTg7JaiLBJrKFj9UI2MbRPGaJeVpsLcVBu6P/IGZovziM/YBsellCmsprgNA+w0CzVg==", - "requires": { - "cross-spawn": "^7.0.5", - "signal-exit": "^4.0.1" - }, - "dependencies": { - "cross-spawn": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", - "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "rimraf": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", + "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", "requires": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" + "glob": "^7.1.3" } }, - "path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==" + "semver": { + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==" }, - "shebang-command": { + "slash": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "requires": { - "shebang-regex": "^3.0.0" - } - }, - "shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==" + "resolved": "https://registry.npmjs.org/slash/-/slash-2.0.0.tgz", + "integrity": "sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==" }, - "which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "requires": { - "isexe": "^2.0.0" - } - } - } - }, - "sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==" - }, - "stacktrace-parser": { - "version": "0.1.10", - "resolved": "https://registry.npmjs.org/stacktrace-parser/-/stacktrace-parser-0.1.10.tgz", - "integrity": "sha512-KJP1OCML99+8fhOHxwwzyWrlUuVX5GQ0ZpJTd1DFXhdkrvg1szxfHhawXUZ3g9TkXORQd4/WG68jMlQZ2p8wlg==", - "dev": true, - "requires": { - "type-fest": "^0.7.1" - }, - "dependencies": { - "type-fest": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.7.1.tgz", - "integrity": "sha512-Ne2YiiGN8bmrmJJEuTWTLJR32nh/JdL1+PSicowtNb0WFpn59GK8/lfD61bVtzguz7b3PBt74nxpv/Pw5po5Rg==", - "dev": true - } - } - }, - "statuses": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", - "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", - "dev": true - }, - "stream-connect": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/stream-connect/-/stream-connect-1.0.2.tgz", - "integrity": "sha512-68Kl+79cE0RGKemKkhxTSg8+6AGrqBt+cbZAXevg2iJ6Y3zX4JhA/sZeGzLpxW9cXhmqAcE7KnJCisUmIUfnFQ==", - "dev": true, - "requires": { - "array-back": "^1.0.2" - }, - "dependencies": { - "array-back": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-1.0.4.tgz", - "integrity": "sha512-1WxbZvrmyhkNoeYcizokbmh5oiOCIfyvGtcqbK3Ls1v1fKcquzxnQSceOx6tzq7jmai2kFLWIpGND2cLhH6TPw==", - "dev": true, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "requires": { - "typical": "^2.6.0" + "has-flag": "^4.0.0" } - }, - "typical": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/typical/-/typical-2.6.1.tgz", - "integrity": "sha512-ofhi8kjIje6npGozTip9Fr8iecmYfEbS06i0JnIg+rh51KakryWF4+jX8lLKZVhy6N+ID45WYSFCxPOdTWCzNg==", - "dev": true } } }, - "stream-via": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/stream-via/-/stream-via-1.0.4.tgz", - "integrity": "sha512-DBp0lSvX5G9KGRDTkR/R+a29H+Wk2xItOF+MpZLLNDWbEV9tGPnqLPxHEYjmiz8xGtJHRIqmI+hCjmNzqoA4nQ==", - "dev": true - }, - "string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "dev": true, - "requires": { - "safe-buffer": "~5.2.0" - } - }, - "string-format": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/string-format/-/string-format-2.0.0.tgz", - "integrity": "sha512-bbEs3scLeYNXLecRRuk6uJxdXUSj6le/8rNPHChIJTn2V79aXVTR1EH2OH5zLKKoz0V02fOUKZZcw01pLUShZA==", - "dev": true, - "peer": true - }, - "string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - } - }, - "string-width-cjs": { - "version": "npm:string-width@4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - } + "path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==" }, - "string.prototype.trim": { - "version": "1.2.9", - "resolved": "https://registry.npmjs.org/string.prototype.trim/-/string.prototype.trim-1.2.9.tgz", - "integrity": "sha512-klHuCNxiMZ8MlsOihJhJEBJAiMVqU3Z2nEXWfWnIqjN0gEFS9J9+IxKozWWtQGcgoa1WUZzLjKPTr4ZHNFTFxw==", - "dev": true, - "requires": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-abstract": "^1.23.0", - "es-object-atoms": "^1.0.0" - } + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==" }, - "string.prototype.trimend": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.8.tgz", - "integrity": "sha512-p73uL5VCHCO2BZZ6krwwQE3kCzM7NKmis8S//xEC6fQonchbum4eP6kR4DLEjQFO3Wnj3Fuo8NM0kOSjVdHjZQ==", - "dev": true, - "requires": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-object-atoms": "^1.0.0" - } + "path-key": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", + "integrity": "sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw==" }, - "string.prototype.trimstart": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.8.tgz", - "integrity": "sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg==", - "dev": true, - "requires": { - "call-bind": "^1.0.7", - "define-properties": "^1.2.1", - "es-object-atoms": "^1.0.0" - } + "path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==" }, - "strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "requires": { - "ansi-regex": "^5.0.1" - } + "pathval": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz", + "integrity": "sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==" }, - "strip-ansi-cjs": { - "version": "npm:strip-ansi@6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.1" - } + "picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==" }, - "strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==" + "picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==" }, - "strip-hex-prefix": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/strip-hex-prefix/-/strip-hex-prefix-1.0.0.tgz", - "integrity": "sha512-q8d4ue7JGEiVcypji1bALTos+0pWtyGlivAWyPuTkHzuTCJqrK9sWxYQZUq6Nq3cuyv3bm734IhHvHtGGURU6A==", - "dev": true, - "peer": true, - "requires": { - "is-hex-prefixed": "1.0.0" - } + "pify": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", + "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==" }, - "strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==" + "prettier": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.3.tgz", + "integrity": "sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==", + "dev": true }, - "supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "peer": true, - "requires": { - "has-flag": "^3.0.0" - } + "punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==" }, - "sync-request": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/sync-request/-/sync-request-6.1.0.tgz", - "integrity": "sha512-8fjNkrNlNCrVc/av+Jn+xxqfCjYaBoHqCsDz6mt030UMxJGr+GSfCV1dQt2gRtlL63+VPidwDVLr7V2OcTSdRw==", - "dev": true, - "peer": true, - "requires": { - "http-response-object": "^3.0.1", - "sync-rpc": "^1.2.1", - "then-request": "^6.0.0" - } + "punycode.js": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode.js/-/punycode.js-2.3.1.tgz", + "integrity": "sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==", + "dev": true }, - "sync-rpc": { - "version": "1.3.6", - "resolved": "https://registry.npmjs.org/sync-rpc/-/sync-rpc-1.3.6.tgz", - "integrity": "sha512-J8jTXuZzRlvU7HemDgHi3pGnh/rkoqR/OZSjhTyyZrEkkYQbk7Z33AXp37mkPfPpfdOuj7Ex3H/TJM1z48uPQw==", - "dev": true, - "peer": true, - "requires": { - "get-port": "^3.1.0" - } + "quansync": { + "version": "0.2.11", + "resolved": "https://registry.npmjs.org/quansync/-/quansync-0.2.11.tgz", + "integrity": "sha512-AifT7QEbW9Nri4tAwR5M/uzpBuqfZf+zwaEM/QkzEjj7NBuFD2rBuy0K3dE+8wltbezDV7JMA0WfnCPYRSYbXA==" }, - "table": { - "version": "6.9.0", - "resolved": "https://registry.npmjs.org/table/-/table-6.9.0.tgz", - "integrity": "sha512-9kY+CygyYM6j02t5YFHbNz2FN5QmYGv9zAjVp4lCDjlCw7amdckXlEt/bjMhUIfj4ThGRE4gCUH5+yGnNuPo5A==", - "dev": true, - "peer": true, - "requires": { - "ajv": "^8.0.1", - "lodash.truncate": "^4.4.2", - "slice-ansi": "^4.0.0", - "string-width": "^4.2.3", - "strip-ansi": "^6.0.1" - } + "queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==" }, - "table-layout": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/table-layout/-/table-layout-1.0.2.tgz", - "integrity": "sha512-qd/R7n5rQTRFi+Zf2sk5XVVd9UQl6ZkduPFC3S7WEGJAmetDTjY3qPN50eSKzwuzEyQKy5TN2TiZdkIjos2L6A==", - "dev": true, - "peer": true, + "read-yaml-file": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/read-yaml-file/-/read-yaml-file-1.1.0.tgz", + "integrity": "sha512-VIMnQi/Z4HT2Fxuwg5KrY174U1VdUIASQVWXXyqtNRtxSr9IYkn1rsI6Tb6HsrHCmB7gVpNwX6JxPTHcH6IoTA==", "requires": { - "array-back": "^4.0.1", - "deep-extend": "~0.6.0", - "typical": "^5.2.0", - "wordwrapjs": "^4.0.0" + "graceful-fs": "^4.1.5", + "js-yaml": "^3.6.1", + "pify": "^4.0.1", + "strip-bom": "^3.0.0" }, "dependencies": { - "array-back": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-4.0.2.tgz", - "integrity": "sha512-NbdMezxqf94cnNfWLL7V/im0Ub+Anbb0IoZhvzie8+4HJ4nMQuzHuy49FkGYCJK2yAloZ3meiB6AVMClbrI1vg==", - "dev": true, - "peer": true + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "requires": { + "sprintf-js": "~1.0.2" + } }, - "typical": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/typical/-/typical-5.2.0.tgz", - "integrity": "sha512-dvdQgNDNJo+8B2uBQoqdb11eUCE1JQXhvjC/CZtgvZseVd5TYMXnq0+vuUemXbd/Se29cTaUuPX3YIc2xgbvIg==", - "dev": true, - "peer": true + "esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" + }, + "js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } } } }, - "temp-path": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/temp-path/-/temp-path-1.0.0.tgz", - "integrity": "sha512-TvmyH7kC6ZVTYkqCODjJIbgvu0FKiwQpZ4D1aknE7xpcDf/qEOB8KZEK5ef2pfbVoiBhNWs3yx4y+ESMtNYmlg==", + "readdirp": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz", + "integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==", "dev": true }, - "term-size": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/term-size/-/term-size-2.2.1.tgz", - "integrity": "sha512-wK0Ri4fOGjv/XPy8SBHZChl8CM7uMc5VML7SqiQ0zG7+J5Vr+RMQDoHa2CNT6KHUnTGIXH34UDMkPzAUyapBZg==" - }, - "test-value": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/test-value/-/test-value-3.0.0.tgz", - "integrity": "sha512-sVACdAWcZkSU9x7AOmJo5TqE+GyNJknHaHsMrR6ZnhjVlVN9Yx6FjHrsKZ3BjIpPCT68zYesPWkakrNupwfOTQ==", + "reduce-extract": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/reduce-extract/-/reduce-extract-1.0.0.tgz", + "integrity": "sha512-QF8vjWx3wnRSL5uFMyCjDeDc5EBMiryoT9tz94VvgjKfzecHAVnqmXAwQDcr7X4JmLc2cjkjFGCVzhMqDjgR9g==", "dev": true, "requires": { - "array-back": "^2.0.0", - "typical": "^2.6.1" + "test-value": "^1.0.1" }, "dependencies": { "array-back": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/array-back/-/array-back-2.0.0.tgz", - "integrity": "sha512-eJv4pLLufP3g5kcZry0j6WXpIbzYw9GUB4mVJZno9wfwiBxbizTnHCw3VJb07cBihbFX48Y7oSrW9y+gt4glyw==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/array-back/-/array-back-1.0.4.tgz", + "integrity": "sha512-1WxbZvrmyhkNoeYcizokbmh5oiOCIfyvGtcqbK3Ls1v1fKcquzxnQSceOx6tzq7jmai2kFLWIpGND2cLhH6TPw==", "dev": true, "requires": { - "typical": "^2.6.1" + "typical": "^2.6.0" + } + }, + "test-value": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/test-value/-/test-value-1.1.0.tgz", + "integrity": "sha512-wrsbRo7qP+2Je8x8DsK8ovCGyxe3sYfQwOraIY/09A2gFXU9DYKiTF14W4ki/01AEh56kMzAmlj9CaHGDDUBJA==", + "dev": true, + "requires": { + "array-back": "^1.0.2", + "typical": "^2.4.2" } }, "typical": { @@ -19951,401 +8898,338 @@ } } }, - "then-request": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/then-request/-/then-request-6.0.2.tgz", - "integrity": "sha512-3ZBiG7JvP3wbDzA9iNY5zJQcHL4jn/0BWtXIkagfz7QgOL/LqjCEOBQuJNZfu0XYnv5JhKh+cDxCPM4ILrqruA==", + "reduce-unique": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/reduce-unique/-/reduce-unique-2.0.1.tgz", + "integrity": "sha512-x4jH/8L1eyZGR785WY+ePtyMNhycl1N2XOLxhCbzZFaqF4AXjLzqSxa2UHgJ2ZVR/HHyPOvl1L7xRnW8ye5MdA==", + "dev": true + }, + "reduce-without": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/reduce-without/-/reduce-without-1.0.1.tgz", + "integrity": "sha512-zQv5y/cf85sxvdrKPlfcRzlDn/OqKFThNimYmsS3flmkioKvkUGn2Qg9cJVoQiEvdxFGLE0MQER/9fZ9sUqdxg==", "dev": true, - "peer": true, "requires": { - "@types/concat-stream": "^1.6.0", - "@types/form-data": "0.0.33", - "@types/node": "^8.0.0", - "@types/qs": "^6.2.31", - "caseless": "~0.12.0", - "concat-stream": "^1.6.0", - "form-data": "^2.2.0", - "http-basic": "^8.1.1", - "http-response-object": "^3.0.1", - "promise": "^8.0.0", - "qs": "^6.4.0" + "test-value": "^2.0.0" }, "dependencies": { - "@types/node": { - "version": "8.10.66", - "resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.66.tgz", - "integrity": "sha512-tktOkFUA4kXx2hhhrB8bIFb5TbwzS4uOhKEmwiD+NoiL0qtP2OQ9mFldbgD4dV1djrlBYP6eBuQZiWjuHUpqFw==", + "array-back": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/array-back/-/array-back-1.0.4.tgz", + "integrity": "sha512-1WxbZvrmyhkNoeYcizokbmh5oiOCIfyvGtcqbK3Ls1v1fKcquzxnQSceOx6tzq7jmai2kFLWIpGND2cLhH6TPw==", "dev": true, - "peer": true + "requires": { + "typical": "^2.6.0" + } }, - "form-data": { - "version": "2.5.5", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.5.5.tgz", - "integrity": "sha512-jqdObeR2rxZZbPSGL+3VckHMYtu+f9//KXBsVny6JSX/pa38Fy+bGjuG8eW/H6USNQWhLi8Num++cU2yOCNz4A==", + "test-value": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/test-value/-/test-value-2.1.0.tgz", + "integrity": "sha512-+1epbAxtKeXttkGFMTX9H42oqzOTufR1ceCF+GYA5aOmvaPq9wd4PUS8329fn2RRLGNeUkgRLnVpycjx8DsO2w==", "dev": true, - "peer": true, "requires": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "es-set-tostringtag": "^2.1.0", - "hasown": "^2.0.2", - "mime-types": "^2.1.35", - "safe-buffer": "^5.2.1" + "array-back": "^1.0.3", + "typical": "^2.6.0" } - } - } - }, - "tinyglobby": { - "version": "0.2.15", - "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz", - "integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==", - "dev": true, - "requires": { - "fdir": "^6.5.0", - "picomatch": "^4.0.3" - }, - "dependencies": { - "fdir": { - "version": "6.5.0", - "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", - "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", - "dev": true, - "requires": {} }, - "picomatch": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", - "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", + "typical": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/typical/-/typical-2.6.1.tgz", + "integrity": "sha512-ofhi8kjIje6npGozTip9Fr8iecmYfEbS06i0JnIg+rh51KakryWF4+jX8lLKZVhy6N+ID45WYSFCxPOdTWCzNg==", "dev": true } } }, - "tmp": { - "version": "0.0.33", - "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", - "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", + "requizzle": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/requizzle/-/requizzle-0.2.4.tgz", + "integrity": "sha512-JRrFk1D4OQ4SqovXOgdav+K8EAhSB/LJZqCz8tbX0KObcdeM15Ss59ozWMBWmmINMagCwmqn4ZNryUGpBsl6Jw==", + "dev": true, "requires": { - "os-tmpdir": "~1.0.2" + "lodash": "^4.17.21" } }, - "to-buffer": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/to-buffer/-/to-buffer-1.2.2.tgz", - "integrity": "sha512-db0E3UJjcFhpDhAF4tLo03oli3pwl3dbnzXOUIlRKrp+ldk/VUxzpWYZENsw2SZiuBjHAk7DfB0VU7NKdpb6sw==", - "dev": true, - "peer": true, + "resolve-pkg-maps": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", + "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==", + "dev": true + }, + "resolve.exports": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.3.tgz", + "integrity": "sha512-OcXjMsGdhL4XnbShKpAcSqPMzQoYkYyhbEaeSko47MjRP9NfEQMhZkXL1DoFlt9LWQn4YttrdnV6X2OiyzBi+A==", + "dev": true + }, + "reusify": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", + "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==" + }, + "rfdc": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.4.1.tgz", + "integrity": "sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==", + "dev": true + }, + "run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", "requires": { - "isarray": "^2.0.5", - "safe-buffer": "^5.2.1", - "typed-array-buffer": "^1.0.3" + "queue-microtask": "^1.2.2" } }, - "to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + }, + "scrypt-js": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/scrypt-js/-/scrypt-js-3.0.1.tgz", + "integrity": "sha512-cdwTTnqPu0Hyvf5in5asVdZocVDTNRmR7XEcJuIzMjJeSHybHl7vpB66AzwTaIg6CLSbtjcxc8fqcySfnTkccA==", + "peer": true + }, + "semver": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz", + "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==" + }, + "shebang-command": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", + "integrity": "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==", "requires": { - "is-number": "^7.0.0" + "shebang-regex": "^1.0.0" } }, - "toidentifier": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", - "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", - "dev": true + "shebang-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", + "integrity": "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==" }, - "tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" + "signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==" + }, + "slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==" + }, + "solady": { + "version": "0.0.182", + "resolved": "https://registry.npmjs.org/solady/-/solady-0.0.182.tgz", + "integrity": "sha512-FW6xo1akJoYpkXMzu58/56FcNU3HYYNamEbnFO3iSibXk0nSHo0DV2Gu/zI3FPg3So5CCX6IYli1TT1IWATnvg==" }, - "ts-command-line-args": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/ts-command-line-args/-/ts-command-line-args-2.5.1.tgz", - "integrity": "sha512-H69ZwTw3rFHb5WYpQya40YAX2/w7Ut75uUECbgBIsLmM+BNuYnxsltfyyLMxy6sEeKxgijLTnQtLd0nKd6+IYw==", + "sort-array": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/sort-array/-/sort-array-4.1.5.tgz", + "integrity": "sha512-Ya4peoS1fgFN42RN1REk2FgdNOeLIEMKFGJvs7VTP3OklF8+kl2SkpVliZ4tk/PurWsrWRsdNdU+tgyOBkB9sA==", "dev": true, - "peer": true, "requires": { - "chalk": "^4.1.0", - "command-line-args": "^5.1.1", - "command-line-usage": "^6.1.0", - "string-format": "^2.0.0" + "array-back": "^5.0.0", + "typical": "^6.0.1" }, "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "peer": true, - "requires": { - "color-convert": "^2.0.1" - } + "array-back": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/array-back/-/array-back-5.0.0.tgz", + "integrity": "sha512-kgVWwJReZWmVuWOQKEOohXKJX+nD02JAZ54D1RRWlv8L0NebauKAaFxACKzB74RTclt1+WNz5KHaLRDAPZbDEw==", + "dev": true }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "peer": true, + "typical": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/typical/-/typical-6.0.1.tgz", + "integrity": "sha512-+g3NEp7fJLe9DPa1TArHm9QAA7YciZmWnfAqEaFrBihQ7epOv9i99rjtgb6Iz0wh3WuQDjsCTDfgRoGnmHN81A==", + "dev": true + } + } + }, + "spawndamnit": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/spawndamnit/-/spawndamnit-3.0.1.tgz", + "integrity": "sha512-MmnduQUuHCoFckZoWnXsTg7JaiLBJrKFj9UI2MbRPGaJeVpsLcVBu6P/IGZovziM/YBsellCmsprgNA+w0CzVg==", + "requires": { + "cross-spawn": "^7.0.5", + "signal-exit": "^4.0.1" + }, + "dependencies": { + "cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" } }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "peer": true, + "path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==" + }, + "shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", "requires": { - "color-name": "~1.1.4" + "shebang-regex": "^3.0.0" } }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true, - "peer": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "peer": true + "shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==" }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "peer": true, + "which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", "requires": { - "has-flag": "^4.0.0" + "isexe": "^2.0.0" } } } }, - "ts-essentials": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/ts-essentials/-/ts-essentials-7.0.3.tgz", - "integrity": "sha512-8+gr5+lqO3G84KdiTSMRLtuyJ+nTBVRKuCrK4lidMPdVeEp0uqC875uE5NMcaA7YYMN7XsNiFQuMvasF8HT/xQ==", - "dev": true, - "peer": true, - "requires": {} + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==" }, - "ts-node": { - "version": "10.9.2", - "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz", - "integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==", + "stream-connect": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/stream-connect/-/stream-connect-1.0.2.tgz", + "integrity": "sha512-68Kl+79cE0RGKemKkhxTSg8+6AGrqBt+cbZAXevg2iJ6Y3zX4JhA/sZeGzLpxW9cXhmqAcE7KnJCisUmIUfnFQ==", "dev": true, - "peer": true, "requires": { - "@cspotcode/source-map-support": "^0.8.0", - "@tsconfig/node10": "^1.0.7", - "@tsconfig/node12": "^1.0.7", - "@tsconfig/node14": "^1.0.0", - "@tsconfig/node16": "^1.0.2", - "acorn": "^8.4.1", - "acorn-walk": "^8.1.1", - "arg": "^4.1.0", - "create-require": "^1.1.0", - "diff": "^4.0.1", - "make-error": "^1.1.1", - "v8-compile-cache-lib": "^3.0.1", - "yn": "3.1.1" + "array-back": "^1.0.2" }, "dependencies": { - "diff": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", - "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", + "array-back": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/array-back/-/array-back-1.0.4.tgz", + "integrity": "sha512-1WxbZvrmyhkNoeYcizokbmh5oiOCIfyvGtcqbK3Ls1v1fKcquzxnQSceOx6tzq7jmai2kFLWIpGND2cLhH6TPw==", "dev": true, - "peer": true + "requires": { + "typical": "^2.6.0" + } + }, + "typical": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/typical/-/typical-2.6.1.tgz", + "integrity": "sha512-ofhi8kjIje6npGozTip9Fr8iecmYfEbS06i0JnIg+rh51KakryWF4+jX8lLKZVhy6N+ID45WYSFCxPOdTWCzNg==", + "dev": true } } }, - "tslib": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.7.0.tgz", - "integrity": "sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA==", - "dev": true, - "peer": true - }, - "tsort": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/tsort/-/tsort-0.0.1.tgz", - "integrity": "sha512-Tyrf5mxF8Ofs1tNoxA13lFeZ2Zrbd6cKbuH3V+MQ5sb6DtBj5FjrXVsRWT8YvNAQTqNoz66dz1WsbigI22aEnw==", + "stream-via": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/stream-via/-/stream-via-1.0.4.tgz", + "integrity": "sha512-DBp0lSvX5G9KGRDTkR/R+a29H+Wk2xItOF+MpZLLNDWbEV9tGPnqLPxHEYjmiz8xGtJHRIqmI+hCjmNzqoA4nQ==", "dev": true }, - "type-check": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", - "integrity": "sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==", - "dev": true, - "peer": true, + "strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "requires": { - "prelude-ls": "~1.1.2" + "ansi-regex": "^5.0.1" } }, - "type-detect": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", - "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==" + "strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==" + }, + "strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==" }, - "type-fest": { - "version": "0.21.3", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", - "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "temp-path": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/temp-path/-/temp-path-1.0.0.tgz", + "integrity": "sha512-TvmyH7kC6ZVTYkqCODjJIbgvu0FKiwQpZ4D1aknE7xpcDf/qEOB8KZEK5ef2pfbVoiBhNWs3yx4y+ESMtNYmlg==", "dev": true }, - "typechain": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/typechain/-/typechain-8.3.2.tgz", - "integrity": "sha512-x/sQYr5w9K7yv3es7jo4KTX05CLxOf7TRWwoHlrjRh8H82G64g+k7VuWPJlgMo6qrjfCulOdfBjiaDtmhFYD/Q==", + "term-size": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/term-size/-/term-size-2.2.1.tgz", + "integrity": "sha512-wK0Ri4fOGjv/XPy8SBHZChl8CM7uMc5VML7SqiQ0zG7+J5Vr+RMQDoHa2CNT6KHUnTGIXH34UDMkPzAUyapBZg==" + }, + "test-value": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/test-value/-/test-value-3.0.0.tgz", + "integrity": "sha512-sVACdAWcZkSU9x7AOmJo5TqE+GyNJknHaHsMrR6ZnhjVlVN9Yx6FjHrsKZ3BjIpPCT68zYesPWkakrNupwfOTQ==", "dev": true, - "peer": true, "requires": { - "@types/prettier": "^2.1.1", - "debug": "^4.3.1", - "fs-extra": "^7.0.0", - "glob": "7.1.7", - "js-sha3": "^0.8.0", - "lodash": "^4.17.15", - "mkdirp": "^1.0.4", - "prettier": "^2.3.1", - "ts-command-line-args": "^2.2.0", - "ts-essentials": "^7.0.1" + "array-back": "^2.0.0", + "typical": "^2.6.1" }, "dependencies": { - "fs-extra": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz", - "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==", - "dev": true, - "peer": true, - "requires": { - "graceful-fs": "^4.1.2", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" - } - }, - "glob": { - "version": "7.1.7", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.7.tgz", - "integrity": "sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==", - "dev": true, - "peer": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "jsonfile": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", - "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "array-back": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/array-back/-/array-back-2.0.0.tgz", + "integrity": "sha512-eJv4pLLufP3g5kcZry0j6WXpIbzYw9GUB4mVJZno9wfwiBxbizTnHCw3VJb07cBihbFX48Y7oSrW9y+gt4glyw==", "dev": true, - "peer": true, "requires": { - "graceful-fs": "^4.1.6" + "typical": "^2.6.1" } }, - "mkdirp": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", - "dev": true, - "peer": true - }, - "prettier": { - "version": "2.8.8", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", - "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", - "dev": true, - "peer": true - }, - "universalify": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", - "dev": true, - "peer": true + "typical": { + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/typical/-/typical-2.6.1.tgz", + "integrity": "sha512-ofhi8kjIje6npGozTip9Fr8iecmYfEbS06i0JnIg+rh51KakryWF4+jX8lLKZVhy6N+ID45WYSFCxPOdTWCzNg==", + "dev": true } } }, - "typed-array-buffer": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/typed-array-buffer/-/typed-array-buffer-1.0.3.tgz", - "integrity": "sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw==", - "dev": true, + "tmp": { + "version": "0.0.33", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", + "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", "requires": { - "call-bound": "^1.0.3", - "es-errors": "^1.3.0", - "is-typed-array": "^1.1.14" + "os-tmpdir": "~1.0.2" } }, - "typed-array-byte-length": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/typed-array-byte-length/-/typed-array-byte-length-1.0.1.tgz", - "integrity": "sha512-3iMJ9q0ao7WE9tWcaYKIptkNBuOIcZCCT0d4MRvuuH88fEoEH62IuQe0OtraD3ebQEoTRk8XCBoknUNc1Y67pw==", - "dev": true, + "to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", "requires": { - "call-bind": "^1.0.7", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-proto": "^1.0.3", - "is-typed-array": "^1.1.13" + "is-number": "^7.0.0" } }, - "typed-array-byte-offset": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/typed-array-byte-offset/-/typed-array-byte-offset-1.0.2.tgz", - "integrity": "sha512-Ous0vodHa56FviZucS2E63zkgtgrACj7omjwd/8lTEMEPFFyjfixMZ1ZXenpgCFBBt4EC1J2XsyVS2gkG0eTFA==", - "dev": true, - "requires": { - "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.7", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-proto": "^1.0.3", - "is-typed-array": "^1.1.13" - } + "tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" }, - "typed-array-length": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.6.tgz", - "integrity": "sha512-/OxDN6OtAk5KBpGb28T+HZc2M+ADtvRxXrKKbUwtsLgdoxgX13hyy7ek6bFRl5+aBs2yZzB0c4CnQfAtVypW/g==", + "tslib": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.7.0.tgz", + "integrity": "sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA==", + "dev": true + }, + "tsx": { + "version": "4.21.0", + "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.21.0.tgz", + "integrity": "sha512-5C1sg4USs1lfG0GFb2RLXsdpXqBSEhAaA/0kPL01wxzpMqLILNxIxIOKiILz+cdg/pLnOUxFYOR5yhHU666wbw==", "dev": true, "requires": { - "call-bind": "^1.0.7", - "for-each": "^0.3.3", - "gopd": "^1.0.1", - "has-proto": "^1.0.3", - "is-typed-array": "^1.1.13", - "possible-typed-array-names": "^1.0.0" + "esbuild": "~0.27.0", + "fsevents": "~2.3.3", + "get-tsconfig": "^4.7.5" } }, - "typedarray": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", - "integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==", - "dev": true, - "peer": true - }, - "typescript": { - "version": "5.3.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz", - "integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==", - "dev": true, - "peer": true + "type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==" }, "typical": { "version": "4.0.0", @@ -20366,18 +9250,6 @@ "dev": true, "optional": true }, - "unbox-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", - "integrity": "sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==", - "dev": true, - "requires": { - "call-bind": "^1.0.2", - "has-bigints": "^1.0.2", - "has-symbols": "^1.0.3", - "which-boxed-primitive": "^1.0.2" - } - }, "underscore": { "version": "1.13.6", "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.13.6.tgz", @@ -20385,13 +9257,10 @@ "dev": true }, "undici": { - "version": "5.28.3", - "resolved": "https://registry.npmjs.org/undici/-/undici-5.28.3.tgz", - "integrity": "sha512-3ItfzbrhDlINjaP0duwnNsKpDQk3acHI3gVJ1z4fmwMK31k5G9OVIAMLSIaP6w4FaGkaAkN6zaQO9LUvZ1t7VA==", - "dev": true, - "requires": { - "@fastify/busboy": "^2.0.0" - } + "version": "6.23.0", + "resolved": "https://registry.npmjs.org/undici/-/undici-6.23.0.tgz", + "integrity": "sha512-VfQPToRA5FZs/qJxLIinmU59u0r7LXqoJkCzinq3ckNJp3vKEh7jTWN589YQ5+aoAC/TGRLyJLCPKcLQbM8r9g==", + "dev": true }, "undici-types": { "version": "6.19.8", @@ -20404,12 +9273,6 @@ "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==" }, - "unpipe": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", - "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", - "dev": true - }, "uri-js": { "version": "4.4.1", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", @@ -20418,106 +9281,12 @@ "punycode": "^2.1.0" } }, - "utf8": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/utf8/-/utf8-3.0.0.tgz", - "integrity": "sha512-E8VjFIQ/TyQgp+TZfS6l8yp/xWppSAHzidGiRrqe4bK4XP9pTRyKFgGJpO3SN7zdX4DeomTrwaseCHovfpFcqQ==", - "dev": true, - "peer": true - }, - "util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", - "dev": true - }, - "uuid": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", - "dev": true - }, - "v8-compile-cache-lib": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", - "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", - "dev": true, - "peer": true - }, "walk-back": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/walk-back/-/walk-back-5.1.0.tgz", "integrity": "sha512-Uhxps5yZcVNbLEAnb+xaEEMdgTXl9qAQDzKYejG2AZ7qPwRQ81lozY9ECDbjLPNWm7YsO1IK5rsP1KoQzXAcGA==", "dev": true }, - "web3-utils": { - "version": "1.10.4", - "resolved": "https://registry.npmjs.org/web3-utils/-/web3-utils-1.10.4.tgz", - "integrity": "sha512-tsu8FiKJLk2PzhDl9fXbGUWTkkVXYhtTA+SmEFkKft+9BgwLxfCRpU96sWv7ICC8zixBNd3JURVoiR3dUXgP8A==", - "dev": true, - "peer": true, - "requires": { - "@ethereumjs/util": "^8.1.0", - "bn.js": "^5.2.1", - "ethereum-bloom-filters": "^1.0.6", - "ethereum-cryptography": "^2.1.2", - "ethjs-unit": "0.1.6", - "number-to-bn": "1.7.0", - "randombytes": "^2.1.0", - "utf8": "3.0.0" - }, - "dependencies": { - "@ethereumjs/rlp": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/@ethereumjs/rlp/-/rlp-4.0.1.tgz", - "integrity": "sha512-tqsQiBQDQdmPWE1xkkBq4rlSW5QZpLOUJ5RJh2/9fug+q9tnUhuZoVLk7s0scUIKTOzEtR72DFBXI4WiZcMpvw==", - "dev": true, - "peer": true - }, - "@ethereumjs/util": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/@ethereumjs/util/-/util-8.1.0.tgz", - "integrity": "sha512-zQ0IqbdX8FZ9aw11vP+dZkKDkS+kgIvQPHnSAXzP9pLu+Rfu3D3XEeLbicvoXJTYnhZiPmsZUxgdzXwNKxRPbA==", - "dev": true, - "peer": true, - "requires": { - "@ethereumjs/rlp": "^4.0.1", - "ethereum-cryptography": "^2.0.0", - "micro-ftch": "^0.3.1" - } - }, - "@noble/curves": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.4.2.tgz", - "integrity": "sha512-TavHr8qycMChk8UwMld0ZDRvatedkzWfH8IiaeGCfymOP5i0hSCozz9vHOL0nkwk7HRMlFnAiKpS2jrUmSybcw==", - "dev": true, - "peer": true, - "requires": { - "@noble/hashes": "1.4.0" - } - }, - "@noble/hashes": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.4.0.tgz", - "integrity": "sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==", - "dev": true, - "peer": true - }, - "ethereum-cryptography": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ethereum-cryptography/-/ethereum-cryptography-2.2.1.tgz", - "integrity": "sha512-r/W8lkHSiTLxUxW8Rf3u4HGB0xQweG2RyETjywylKZSzLWoWAijRz8WCuOtJ6wah+avllXBqZuk29HCCvhEIRg==", - "dev": true, - "peer": true, - "requires": { - "@noble/curves": "1.4.2", - "@noble/hashes": "1.4.0", - "@scure/bip32": "1.4.0", - "@scure/bip39": "1.3.0" - } - } - } - }, "webidl-conversions": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", @@ -20540,167 +9309,22 @@ "isexe": "^2.0.0" } }, - "which-boxed-primitive": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz", - "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==", - "dev": true, - "requires": { - "is-bigint": "^1.0.1", - "is-boolean-object": "^1.1.0", - "is-number-object": "^1.0.4", - "is-string": "^1.0.5", - "is-symbol": "^1.0.3" - } - }, - "which-typed-array": { - "version": "1.1.19", - "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.19.tgz", - "integrity": "sha512-rEvr90Bck4WZt9HHFC4DJMsjvu7x+r6bImz0/BrbWb7A2djJ8hnZMrWnHo9F8ssv0OMErasDhftrfROTyqSDrw==", - "dev": true, - "requires": { - "available-typed-arrays": "^1.0.7", - "call-bind": "^1.0.8", - "call-bound": "^1.0.4", - "for-each": "^0.3.5", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "has-tostringtag": "^1.0.2" - } - }, - "widest-line": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-3.1.0.tgz", - "integrity": "sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg==", - "dev": true, - "requires": { - "string-width": "^4.0.0" - } - }, - "word-wrap": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", - "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", - "dev": true, - "peer": true - }, "wordwrap": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", "integrity": "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==", "dev": true }, - "wordwrapjs": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/wordwrapjs/-/wordwrapjs-4.0.1.tgz", - "integrity": "sha512-kKlNACbvHrkpIw6oPeYDSmdCTu2hdMHoyXLTcUKala++lx5Y+wjJ/e474Jqv5abnVmwxw08DiTuHmw69lJGksA==", - "dev": true, - "peer": true, - "requires": { - "reduce-flatten": "^2.0.0", - "typical": "^5.2.0" - }, - "dependencies": { - "typical": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/typical/-/typical-5.2.0.tgz", - "integrity": "sha512-dvdQgNDNJo+8B2uBQoqdb11eUCE1JQXhvjC/CZtgvZseVd5TYMXnq0+vuUemXbd/Se29cTaUuPX3YIc2xgbvIg==", - "dev": true, - "peer": true - } - } - }, - "workerpool": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.2.1.tgz", - "integrity": "sha512-ILEIE97kDZvF9Wb9f6h5aXK4swSlKGUcOEGiIYb2OOu/IrDU9iwj0fD//SsA6E5ibwJxpEvhullJY4Sl4GcpAw==", - "dev": true - }, - "wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "requires": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - } - } - }, - "wrap-ansi-cjs": { - "version": "npm:wrap-ansi@7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "requires": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - } - } - }, "wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" }, "ws": { - "version": "8.17.1", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.17.1.tgz", - "integrity": "sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ==", + "version": "8.21.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.21.0.tgz", + "integrity": "sha512-Vsp28b7DRcimFQvrqu2Wek3z1iYxDCWqHYB8Qsnk/S4RfaCQzPGPyBNuVjJV3cd6UiKtUtp6sNM77gWvzcCH+g==", "dev": true, - "peer": true, "requires": {} }, "xmlcreate": { @@ -20709,61 +9333,15 @@ "integrity": "sha512-nquOebG4sngPmGPICTS5EnxqhKbCmz5Ox5hsszI2T6U5qdrJizBc+0ilYSEjTSzU0yZcmvppztXe/5Al5fUwdg==", "dev": true }, - "y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "dev": true - }, "yaml": { "version": "1.10.2", "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz", "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==" }, - "yargs": { - "version": "16.2.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", - "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", - "dev": true, - "requires": { - "cliui": "^7.0.2", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.0", - "y18n": "^5.0.5", - "yargs-parser": "^20.2.2" - } - }, - "yargs-parser": { - "version": "20.2.4", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.4.tgz", - "integrity": "sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA==", - "dev": true - }, - "yargs-unparser": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-2.0.0.tgz", - "integrity": "sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==", - "dev": true, - "requires": { - "camelcase": "^6.0.0", - "decamelize": "^4.0.0", - "flat": "^5.0.2", - "is-plain-obj": "^2.1.0" - } - }, - "yn": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", - "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", - "dev": true, - "peer": true - }, - "yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "zod": { + "version": "3.25.76", + "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz", + "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==", "dev": true } } diff --git a/package.json b/package.json index fce9f16..8cb500a 100644 --- a/package.json +++ b/package.json @@ -2,14 +2,19 @@ "name": "@chainlink/local", "description": "Chainlink Local Simulator", "license": "MIT", - "version": "0.2.10-beta", + "version": "0.3.0-beta", + "type": "module", "files": [ "src/**/*.sol", "!src/test/**/*", - "scripts/ccipLocalSimulatorFork.js", + "scripts/CCIPLocalSimulatorFork.js", + "scripts/CCIPLocalSimulatorFork.d.ts", "scripts/data-streams/**/*.js", - "abi/**/*.json" + "remappings.txt" ], + "engines": { + "node": ">=22" + }, "repository": { "type": "git", "url": "git+https://github.com/smartcontractkit/chainlink-local.git" @@ -21,31 +26,49 @@ "hardhat-compile": "npx hardhat compile", "forge-compile": "forge build", "hardhat-test": "npx hardhat test", + "hardhat-test-js": "node --test --test-concurrency=1 --test-timeout=600000 test/smoke/data-streams/*.test.js test/e2e/ccip/*.test.js", + "js-unit-test": "npx hardhat build --no-tests --quiet && node --test test/unit/**/*.unit.test.js", "forge-test": "forge test", - "test": "npm run hardhat-test && npm run forge-test", + "test": "npm run hardhat-test && npm run js-unit-test && npm run forge-test", "prettier": "prettier --write 'api_reference/**/*'", - "generate-solidity": "rimraf api_reference/solidity && npm run hardhat-compile && npm run forge-compile && npx hardhat docgen", - "generate-jsdoc": "rimraf api_reference/javascript && npx ts-node helper_doc/generate-jsdoc.ts", - "generate-index": "npx ts-node helper_doc/generate-index-files.ts", - "pregenerate-docs": "npm run update-register", + "generate-solidity": "node helper_doc/generate-solidity-docs.mjs", + "generate-jsdoc": "node helper_doc/generate-jsdoc.mjs", + "generate-index": "node helper_doc/generate-index-files.mjs", "generate-docs": "npm run generate-solidity && npm run generate-jsdoc && npm run generate-index && npm run prettier", - "update-register": "node scripts/ccip/updateRegisterContract.js" + "update-register": "node helper_doc/updateRegisterContract.cjs", + "prepack": "cp remappings.txt .remappings.txt.dev-backup && cp remappings-npm.txt remappings.txt", + "postpack": "mv .remappings.txt.dev-backup remappings.txt" }, "devDependencies": { - "@nomicfoundation/hardhat-foundry": "^1.1.1", - "@nomicfoundation/hardhat-toolbox": "^4.0.0", - "@types/fs-extra": "^11.0.4", - "@types/jsdoc-to-markdown": "^7.0.6", + "@chainlink/ace": "^1.0.0", + "@nomicfoundation/hardhat-ethers": "4.0.5", "dotenv": "^16.4.5", - "fs-extra": "^11.2.0", - "hardhat": "^2.20.1", + "ethers": "6.17.0", + "hardhat": "^3.1.10", "jsdoc-to-markdown": "^8.0.1", - "prettier": "^3.3.3", - "rimraf": "^6.0.1", - "solidity-docgen": "^0.6.0-beta.36" + "prettier": "^3.3.3" }, "dependencies": { "@chainlink/contracts": "1.5.0", - "@chainlink/contracts-ccip": "1.6.2" + "@chainlink/contracts-ccip": "2.0.0", + "@openzeppelin/contracts-4.8.3": "npm:@openzeppelin/contracts@4.8.3", + "@openzeppelin/contracts-5.3.0": "npm:@openzeppelin/contracts@5.3.0", + "forge-std": "github:foundry-rs/forge-std#v1.9.4" + }, + "peerDependencies": { + "@nomicfoundation/hardhat-ethers": "^4.0.5", + "ethers": "^6.17.0", + "hardhat": "^3.1.10" + }, + "peerDependenciesMeta": { + "hardhat": { + "optional": true + }, + "@nomicfoundation/hardhat-ethers": { + "optional": true + }, + "ethers": { + "optional": true + } } } diff --git a/remappings-npm.txt b/remappings-npm.txt new file mode 100644 index 0000000..5e242cf --- /dev/null +++ b/remappings-npm.txt @@ -0,0 +1,5 @@ +@chainlink/contracts-ccip/=node_modules/@chainlink/contracts-ccip/ +@chainlink/contracts/=node_modules/@chainlink/contracts/ +@openzeppelin/contracts@4.8.3/=node_modules/@openzeppelin/contracts-4.8.3/ +@openzeppelin/contracts@5.3.0/=node_modules/@openzeppelin/contracts-5.3.0/ +forge-std/=node_modules/forge-std/src/ diff --git a/remappings.txt b/remappings.txt new file mode 100644 index 0000000..8eda8af --- /dev/null +++ b/remappings.txt @@ -0,0 +1,7 @@ +@chainlink/local/src/=src/ +@chainlink/contracts-ccip/=lib/chainlink-ccip/chains/evm/ +@chainlink/contracts/=lib/chainlink-evm/contracts/ +@chainlink/policy-management/=lib/chainlink-ace/packages/policy-management/src/ +@openzeppelin/contracts@4.8.3/=lib/openzeppelin-contracts-4.8.3/contracts/ +@openzeppelin/contracts@5.3.0/=lib/openzeppelin-contracts-5.3.0/contracts/ +forge-std/=lib/forge-std/src/ diff --git a/scripts/CCIPLocalSimulatorFork.d.ts b/scripts/CCIPLocalSimulatorFork.d.ts new file mode 100644 index 0000000..899e96c --- /dev/null +++ b/scripts/CCIPLocalSimulatorFork.d.ts @@ -0,0 +1,189 @@ +/** + * TypeScript declarations for the Hardhat 3 JavaScript helper `CCIPLocalSimulatorFork.js`. + * + * `EthersConnection` is a minimal structural type — not the real `NetworkConnection` type from `hardhat` / the + * `@nomicfoundation/hardhat-ethers` chain type extension — so that any object shaped like one (in particular, what + * `network.connect()` actually returns once the `@nomicfoundation/hardhat-ethers` plugin is registered) is accepted + * without this package depending on either of those packages' types directly. + */ + +/** A minimal, structurally-typed stand-in for ethers.js's `Contract` instances used by this module's return values. */ +export interface EthersContractLike { + getAddress(): Promise; + [name: string]: any; +} + +/** The subset of `ethers.js`'s runtime API (as exposed by `@nomicfoundation/hardhat-ethers`) this module relies on. */ +export interface EthersLike { + readonly provider: EthersProviderLike; + Contract: new (target: string, abi: ReadonlyArray, runner?: unknown) => EthersContractLike; + Interface: new (abi: ReadonlyArray) => unknown; + AbiCoder: { defaultAbiCoder(): unknown }; + ZeroAddress: string; + getSigners(): Promise; + getSigner(address: string): Promise; + getBytes(value: string): Uint8Array; + dataSlice(value: string, start?: number, end?: number): string; + hexlify(value: Uint8Array | string): string; + getAddress(value: string): string; + keccak256(value: string): string; + toBigInt(value: string | Uint8Array | number | bigint): bigint; + id(text: string): string; +} + +/** The subset of an `ethers` `Provider` this module relies on, reached either via `connection.provider` directly or + * via `connection.ethers.provider`. */ +export interface EthersProviderLike { + request(args: { method: string; params?: unknown[] }): Promise; + getBlock(blockTag: string): Promise<{ gasLimit: bigint } | null>; +} + +/** + * Minimal structural shape of the Hardhat 3 `NetworkConnection` returned by `network.connect()` once the + * `@nomicfoundation/hardhat-ethers` plugin is registered in `hardhat.config`. Every exported function in this + * module throws a clear error (naming the plugin) if `connection.ethers` is missing. + */ +export interface EthersConnection { + readonly ethers: EthersLike; + readonly provider: EthersProviderLike; +} + +/** Dedicated CCIP 2.0 routers deployed next to the default router, keyed by chain id (verified on-chain, Sep 2026). */ +export declare const CCIP_V2_ROUTERS: Readonly>; + +/** + * Requests LINK tokens from the testnet faucet by impersonating it, and returns the transaction hash. + */ +export declare function requestLinkFromTheFaucet( + connection: EthersConnection, + linkAddress: string, + to: string, + amount: bigint +): Promise; + +export interface EVMTokenAmount { + token: string; + amount: bigint; +} + +/** Pre-1.6 `Internal.EVM2EVMMessage`. */ +export interface PreV1dot6Message { + sourceChainSelector: bigint; + sender: string; + receiver: string; + sequenceNumber: bigint; + gasLimit: bigint; + strict: boolean; + nonce: bigint; + feeToken: string; + feeTokenAmount: bigint; + data: string; + tokenAmounts: EVMTokenAmount[]; + sourceTokenData: string[]; + messageId: string; +} + +export interface V1dot6RampMessageHeader { + messageId: string; + sourceChainSelector: bigint; + destChainSelector: bigint; + sequenceNumber: bigint; + nonce: bigint; +} + +export interface V1dot6TokenAmount { + sourcePoolAddress: string; + destTokenAddress: string; + extraData: string; + amount: bigint; + destExecData: string; +} + +/** 1.6 `Internal.EVM2AnyRampMessage`, as emitted by the source `OnRamp`'s `CCIPMessageSent` event. */ +export interface V1dot6Message { + header: V1dot6RampMessageHeader; + sender: string; + data: string; + receiver: string; + extraArgs: string; + feeToken: string; + feeTokenAmount: bigint; + feeValueJuels: bigint; + tokenAmounts: V1dot6TokenAmount[]; +} + +export interface V2Receipt { + issuer: string; + destGasLimit: bigint; + destBytesOverhead: bigint; + feeTokenAmount: bigint; + extraArgs: string; +} + +/** CCIP 2.0 payload: the raw `MessageV1`-encoded wire format plus the OnRamp's fee receipts. */ +export interface V2Message { + encodedMessage: string; + receipts: V2Receipt[]; +} + +interface CCIPSentMessageBase { + onRamp: string; + messageId: string; + sourceChainSelector: bigint; +} + +export interface PreV1dot6SentMessage extends CCIPSentMessageBase { + era: "PRE_V1_6"; + destChainSelector: undefined; + message: PreV1dot6Message; +} + +export interface V1dot6SentMessage extends CCIPSentMessageBase { + era: "V1_6"; + destChainSelector: bigint; + message: V1dot6Message; +} + +export interface V2SentMessage extends CCIPSentMessageBase { + era: "V2"; + destChainSelector: bigint; + message: V2Message; +} + +/** A CCIP message extracted by `getCCIPMessages`, tagged by protocol era. */ +export type CCIPSentMessage = PreV1dot6SentMessage | V1dot6SentMessage | V2SentMessage; + +/** The subset of an `ethers` `TransactionReceipt` this module reads. */ +export interface TransactionReceiptLike { + logs: ReadonlyArray<{ address: string; topics: ReadonlyArray; data: string }>; +} + +/** + * Extracts every CCIP message sent in a transaction, for all supported protocol versions. + */ +export declare function getCCIPMessages( + connection: EthersConnection, + receipt: TransactionReceiptLike +): CCIPSentMessage[]; + +export interface RouteMessageOptions { + /** Execute CCIP 2.0 messages whose executor is `NO_EXECUTION_ADDRESS` (manual execution). Default `false`. */ + forceExecution?: boolean; +} + +export interface RouteMessageResult { + offRamp: string; + executed: boolean; + /** Set only when `executed` is `false` (a CCIP 2.0 `NO_EXECUTION_ADDRESS` message routed without `forceExecution`). */ + reason?: "NO_EXECUTION_ADDRESS"; +} + +/** + * Routes a sent message on the destination (connected) network, as the destination OffRamp would execute it. + */ +export declare function routeMessage( + connection: EthersConnection, + routerAddresses: string | string[], + sent: CCIPSentMessage, + options?: RouteMessageOptions +): Promise; diff --git a/scripts/CCIPLocalSimulatorFork.js b/scripts/CCIPLocalSimulatorFork.js index 3839fc9..70b24e9 100644 --- a/scripts/CCIPLocalSimulatorFork.js +++ b/scripts/CCIPLocalSimulatorFork.js @@ -1,224 +1,677 @@ -const { ethers } = require("hardhat"); -const { setBalance } = require("@nomicfoundation/hardhat-toolbox/network-helpers"); +/** + * Hardhat 3 helpers for routing CCIP messages between forked networks (the JavaScript counterpart of the Solidity + * `CCIPLocalSimulatorFork`). Supports pre-1.6 (`EVM2EVMOnRamp`), 1.6 and CCIP 2.0 (CCV-based) lanes. + * + * Every function takes the `NetworkConnection` returned by `network.connect()` and requires the + * `@nomicfoundation/hardhat-ethers` plugin (it uses `connection.ethers`). Messages are sent on the source connection, + * then routed on the destination connection: + * + * const source = await network.connect({ network: "sepoliaFork" }); + * const destination = await network.connect({ network: "arbitrumSepoliaFork" }); + * const receipt = await (await router.ccipSend(destChainSelector, message, { value: fee })).wait(); + * const [sent] = getCCIPMessages(source, receipt); + * await routeMessage(destination, destinationRouterAddress, sent); + */ + +const LINK_FAUCET_ADDRESS = "0x4281eCF07378Ee595C564a59048801330f3084eE"; + +/** Dedicated CCIP 2.0 routers deployed next to the default router, keyed by chain id (verified on-chain, Sep 2026). */ +export const CCIP_V2_ROUTERS = Object.freeze({ + 11155111: "0x784d49a71BB4C48eB7dA4cD7e6Ecb424f9b5EAB1", // Ethereum Sepolia + 43113: "0x7C9B8B4e8024e5Ee8A630F6FCe9015e470dA5763", // Avalanche Fuji +}); + +// `Internal.MessageExecutionState.SUCCESS` +const EXECUTION_STATE_SUCCESS = BigInt(2); +// Verifier-result version the synthetic fork verifier is registered under on CCV resolvers ("FORK"). +const SYNTHETIC_VERIFIER_VERSION = "0x464f524b"; +// `Client.NO_EXECUTION_ADDRESS` = address(bytes20(keccak256("NO_EXECUTION_TAG")[:4])): marks manual execution. +const NO_EXECUTION_ADDRESS = "0xeba517d200000000000000000000000000000000"; +const DEFAULT_GAS_LIMIT = BigInt(200_000); +// Gas for the CCIP 2.0 `execute` transaction. It must be explicit: `execute` does not revert when the inner execution +// runs out of gas (it records FAILURE with `NotEnoughGasForCall`), so a gas estimate converges on a limit that is too low. +const V2_EXECUTE_GAS_LIMIT = BigInt(15_000_000); +const GENERIC_EXTRA_ARGS_V2_TAG = "0x181dcf10"; +const EVM_EXTRA_ARGS_V1_TAG = "0x97a657c9"; -const RouterAbi = require("../abi/Router.json"); -const LinkTokenAbi = require("../abi/LinkToken.json"); -const EVM2EVMOnRampAbi = require("../abi/EVM2EVMOnRamp.json"); -const EVM2EVMOffRampAbi = require("../abi/EVM2EVMOffRamp.json"); -const OnRampAbi = require("../abi/OnRamp.json"); +const PRE_V1_6_MESSAGE = + "tuple(uint64 sourceChainSelector, address sender, address receiver, uint64 sequenceNumber, uint256 gasLimit, bool strict, uint64 nonce, address feeToken, uint256 feeTokenAmount, bytes data, tuple(address token, uint256 amount)[] tokenAmounts, bytes[] sourceTokenData, bytes32 messageId)"; +const V1_6_HEADER = "tuple(bytes32 messageId, uint64 sourceChainSelector, uint64 destChainSelector, uint64 sequenceNumber, uint64 nonce)"; +const V1_6_EVM2ANY_MESSAGE = `tuple(${V1_6_HEADER} header, address sender, bytes data, bytes receiver, bytes extraArgs, address feeToken, uint256 feeTokenAmount, uint256 feeValueJuels, tuple(address sourcePoolAddress, bytes destTokenAddress, bytes extraData, uint256 amount, bytes destExecData)[] tokenAmounts)`; +const V1_6_ANY2EVM_MESSAGE = `tuple(${V1_6_HEADER} header, bytes sender, bytes data, address receiver, uint256 gasLimit, tuple(bytes sourcePoolAddress, address destTokenAddress, uint32 destGasAmount, bytes extraData, uint256 amount)[] tokenAmounts)`; + +const ABI = { + link: ["function transfer(address to, uint256 amount) returns (bool)"], + router: [ + "function getOffRamps() view returns (tuple(uint64 sourceChainSelector, address offRamp)[])", + "function getOnRamp(uint64 destChainSelector) view returns (address)", + ], + typeAndVersion: ["function typeAndVersion() view returns (string)"], + preV1_6OnRamp: [`event CCIPSendRequested(${PRE_V1_6_MESSAGE} message)`], + v1_6OnRamp: [`event CCIPMessageSent(uint64 indexed destChainSelector, uint64 indexed sequenceNumber, ${V1_6_EVM2ANY_MESSAGE} message)`], + v2OnRamp: [ + "event CCIPMessageSent(uint64 indexed destChainSelector, address indexed sender, bytes32 indexed messageId, address feeToken, uint256 tokenAmountBeforeTokenPoolFees, bytes encodedMessage, tuple(address issuer, uint32 destGasLimit, uint32 destBytesOverhead, uint256 feeTokenAmount, bytes extraArgs)[] receipts, bytes[] verifierBlobs)", + ], + preV1_6OffRamp: [ + "function getStaticConfig() view returns (tuple(address commitStore, uint64 chainSelector, uint64 sourceChainSelector, address onRamp, address prevOffRamp, address rmnProxy, address tokenAdminRegistry))", + `function executeSingleMessage(${PRE_V1_6_MESSAGE} message, bytes[] offchainTokenData)`, + `function executeSingleMessage(${PRE_V1_6_MESSAGE} message, bytes[] offchainTokenData, uint32[] tokenGasOverrides)`, + ], + v1_6OffRamp: [ + "function getSourceChainConfig(uint64 sourceChainSelector) view returns (tuple(address router, bool isEnabled, uint64 minSeqNr, bool isRMNVerificationDisabled, bytes onRamp))", + // `StaticConfig.chainSelector` (destination/local chain selector) is the first field on both the 1.6.0 and + // 2.0.0 OffRamp (verified against the pinned `lib/chainlink-ccip` OffRamp.sol `StaticConfig` struct, and the + // 1.6.0 source embedded in `lib/chainlink-ccip/chains/evm/gobindings/generated/v1_6_0/offramp/offramp_metadata.go`). + "function getStaticConfig() view returns (tuple(uint64 chainSelector, uint16 gasForCallExactCheck, address rmnRemote, address tokenAdminRegistry, address nonceManager))", + `function executeSingleMessage(${V1_6_ANY2EVM_MESSAGE} message, bytes[] offchainTokenData, uint32[] tokenGasOverrides)`, + ], + v2OffRamp: [ + "function getSourceChainConfig(uint64 sourceChainSelector) view returns (tuple(address router, bool isEnabled, bytes[] onRamps, address[] defaultCCVs, address[] laneMandatedCCVs))", + "function getCCVsForMessage(bytes encodedMessage) view returns (address[] requiredCCVs, address[] optionalCCVs, uint8 threshold)", + "function execute(bytes encodedMessage, address[] ccvs, bytes[] verifierResults, uint32 gasLimitOverride)", + "function getExecutionState(bytes32 messageId) view returns (uint8)", + "event ExecutionStateChanged(uint64 indexed sourceChainSelector, uint64 indexed messageNumber, bytes32 indexed messageId, uint8 state, bytes returnData)", + ], + // Errors decoded in failure messages. Signatures are copied from pinned sources: + // - CCIP 2.0 errors: `lib/chainlink-ccip/chains/evm/contracts/offRamp/OffRamp.sol` (tag contracts-ccip-v2.0.0). + // - 1.6.0 `TokenHandlingError`/`ReleaseOrMintBalanceMismatch`: the 1.6.0 OffRamp source embedded (as solc + // standard-json input) in `lib/chainlink-ccip/chains/evm/gobindings/generated/v1_6_0/offramp/offramp_metadata.go` + // (`contracts/offRamp/OffRamp.sol` in that input) — the 1.6.0 and 2.0.0 `CursedByRMN`/`InvalidMessageDestChainSelector` + // signatures are identical to 2.0.0's, so only one entry each is needed. + // - Pre-1.6 `TokenHandlingError(bytes)`: `git show v0.2.9:abi/EVM2EVMOffRamp.json` (the 0.2.x npm package shipped + // this ABI; `ReceiverError(bytes)` there matches the 2.0/1.6 signature too). + knownErrors: [ + "error NotEnoughGasForCall()", + "error InvalidRequestedFinality(bytes4 requestedFinality, bytes4 allowedFinality)", + "error RequestedFinalityCanOnlyHaveOneMode(bytes4 encodedFinality)", + "error ReceiverError(bytes err)", + "error RequiredCCVMissing(address requiredCCV)", + "error InboundImplementationNotFound(address ccv, bytes verifierResults)", + "error SourceChainNotEnabled(uint64 sourceChainSelector)", + "error SkippedAlreadyExecutedMessage(bytes32 messageId, uint64 sourceChainSelector, uint64 messageNumber)", + "error OptionalCCVQuorumNotReached(uint256 wanted, uint256 got)", + "error InvalidOptionalThreshold(uint8 wanted, uint256 got)", + "error InvalidVerifierResultsLength(uint256 expected, uint256 got)", + // `VersionedVerifierResolver.getInboundImplementation` (`ccvs/VersionedVerifierResolver.sol`): results < 4 bytes. + "error InvalidVerifierResultsLength()", + "error NoStateProgressMade(bytes32 messageId, bytes err)", + "error InvalidEVMAddress(bytes encodedAddress)", + // Pre-1.6 `EVM2EVMOffRamp` (v0.2.9 ABI): 1-argument shape, different selector than the 1.6/2.0 error below. + "error TokenHandlingError(bytes err)", + // 1.6.0 / 2.0.0 `OffRamp`. + "error TokenHandlingError(address target, bytes err)", + "error ReleaseOrMintBalanceMismatch(uint256 amountReleased, uint256 balancePre, uint256 balancePost)", + "error InvalidMessageDestChainSelector(uint64 messageDestChainSelector)", + "error CursedByRMN(uint64 sourceChainSelector)", + ], + ccvResolver: [ + "function owner() view returns (address)", + "function applyInboundImplementationUpdates(tuple(bytes4 version, address verifier)[] implementations)", + ], +}; /** - * Requests LINK tokens from the faucet and returns the transaction hash + * Requests LINK tokens from the testnet faucet by impersonating it, and returns the transaction hash. * - * @param {string} linkAddress The address of the LINK contract on the current network + * @param {object} connection Network connection from `network.connect()` + * @param {string} linkAddress The address of the LINK contract on the connected network * @param {string} to The address to send LINK to * @param {bigint} amount The amount of LINK to request - * @returns {Promise} Promise resolving to the transaction hash of the fund transfer + * @returns {Promise} The transaction hash of the transfer */ -async function requestLinkFromTheFaucet(linkAddress, to, amount) { - const LINK_FAUCET_ADDRESS = `0x4281eCF07378Ee595C564a59048801330f3084eE`; - const linkFaucetImpersonated = await ethers.getImpersonatedSigner(LINK_FAUCET_ADDRESS); - - const linkToken = new ethers.Contract(linkAddress, LinkTokenAbi, ethers.provider); - const tx = await linkToken.connect(linkFaucetImpersonated).transfer(to, amount); - +export async function requestLinkFromTheFaucet(connection, linkAddress, to, amount) { + _requireEthers(connection); + const { ethers } = connection; + const faucet = await _impersonate(connection, LINK_FAUCET_ADDRESS); + const tx = await new ethers.Contract(linkAddress, ABI.link, faucet).transfer(to, amount); return tx.hash; } /** - * @typedef {Object} Evm2EvmMessage - * @property {bigint} sourceChainSelector - * @property {string} sender - * @property {string} receiver - * @property {bigint} sequenceNumber - * @property {bigint} gasLimit - * @property {boolean} strict - * @property {bigint} nonce - * @property {string} feeToken - * @property {bigint} feeTokenAmount - * @property {string} data - * @property {Array<{token: string, amount: bigint}>} tokenAmounts - * @property {Array} sourceTokenData + * @typedef {Object} CCIPSentMessage + * @property {"PRE_V1_6" | "V1_6" | "V2"} era CCIP protocol version of the lane the message was sent on + * @property {string} onRamp Source OnRamp that emitted the message * @property {string} messageId + * @property {bigint} sourceChainSelector + * @property {bigint} destChainSelector + * @property {object} message Era-specific payload: the pre-1.6 `EVM2EVMMessage`, the 1.6 `EVM2AnyRampMessage`, or for + * CCIP 2.0 `{ encodedMessage, receipts }` */ /** - * Parses a transaction receipt to extract the sent message - * Scans through transaction logs to find a `CCIPSendRequested` event and then decodes it to an object + * Extracts every CCIP message sent in a transaction, for all supported protocol versions. * - * @param {object} receipt - The transaction receipt from the `ccipSend` call - * @returns {Evm2EvmMessage | null} Returns either the sent message or null if provided receipt does not contain `CCIPSendRequested` log + * @param {object} connection Network connection of the source chain + * @param {object} receipt Transaction receipt of the `ccipSend` call + * @returns {CCIPSentMessage[]} The sent messages, in log order (empty if none) */ -function getEvm2EvmMessage(receipt) { - const evm2EvmOnRampInterface = new ethers.Interface(EVM2EVMOnRampAbi); +export function getCCIPMessages(connection, receipt) { + _requireEthers(connection); + const { ethers } = connection; + const preV1_6 = new ethers.Interface(ABI.preV1_6OnRamp); + const v1_6 = new ethers.Interface(ABI.v1_6OnRamp); + const v2 = new ethers.Interface(ABI.v2OnRamp); + const topics = { + preV1_6: preV1_6.getEvent("CCIPSendRequested").topicHash, + v1_6: v1_6.getEvent("CCIPMessageSent").topicHash, + v2: v2.getEvent("CCIPMessageSent").topicHash, + }; + const messages = []; for (const log of receipt.logs) { - try { - const parsedLog = evm2EvmOnRampInterface.parseLog(log); - if (parsedLog?.name == `CCIPSendRequested`) { - const [ - sourceChainSelector, - sender, - receiver, - sequenceNumber, - gasLimit, - strict, - nonce, - feeToken, - feeTokenAmount, - data, - tokenAmountsRaw, - sourceTokenDataRaw, - messageId, - ] = parsedLog?.args[0]; - const tokenAmounts = tokenAmountsRaw.map(([token, amount]) => ({ - token, - amount, - })); - const sourceTokenData = sourceTokenDataRaw.map(data => data); - const evm2EvmMessage = { - sourceChainSelector, - sender, - receiver, - sequenceNumber, - gasLimit, - strict, - nonce, - feeToken, - feeTokenAmount, - data, - tokenAmounts, - sourceTokenData, - messageId, - }; - return evm2EvmMessage; - } - } catch (error) { - console.error("Error parsing log:", e); - continue; + const topic0 = log.topics[0]; + if (topic0 === topics.preV1_6) { + const m = preV1_6.parseLog(log).args.message; + messages.push({ + era: "PRE_V1_6", + onRamp: log.address, + messageId: m.messageId, + sourceChainSelector: m.sourceChainSelector, + destChainSelector: undefined, + message: { + sourceChainSelector: m.sourceChainSelector, + sender: m.sender, + receiver: m.receiver, + sequenceNumber: m.sequenceNumber, + gasLimit: m.gasLimit, + strict: m.strict, + nonce: m.nonce, + feeToken: m.feeToken, + feeTokenAmount: m.feeTokenAmount, + data: m.data, + tokenAmounts: m.tokenAmounts.map(([token, amount]) => ({ token, amount })), + sourceTokenData: [...m.sourceTokenData], + messageId: m.messageId, + }, + }); + } else if (topic0 === topics.v1_6) { + const m = v1_6.parseLog(log).args.message; + messages.push({ + era: "V1_6", + onRamp: log.address, + messageId: m.header.messageId, + sourceChainSelector: m.header.sourceChainSelector, + destChainSelector: m.header.destChainSelector, + message: { + header: { + messageId: m.header.messageId, + sourceChainSelector: m.header.sourceChainSelector, + destChainSelector: m.header.destChainSelector, + sequenceNumber: m.header.sequenceNumber, + nonce: m.header.nonce, + }, + sender: m.sender, + data: m.data, + receiver: m.receiver, + extraArgs: m.extraArgs, + feeToken: m.feeToken, + feeTokenAmount: m.feeTokenAmount, + feeValueJuels: m.feeValueJuels, + tokenAmounts: m.tokenAmounts.map(([sourcePoolAddress, destTokenAddress, extraData, amount, destExecData]) => ({ + sourcePoolAddress, + destTokenAddress, + extraData, + amount, + destExecData, + })), + }, + }); + } else if (topic0 === topics.v2) { + const args = v2.parseLog(log).args; + // MessageV1 wire format starts with version (1 byte), sourceChainSelector and destChainSelector (8 bytes each, + // big endian). These fields precede everything that changed across codec versions, so no full decode is needed. + const encoded = ethers.getBytes(args.encodedMessage); + messages.push({ + era: "V2", + onRamp: log.address, + messageId: args.messageId, + sourceChainSelector: ethers.toBigInt(encoded.slice(1, 9)), + destChainSelector: ethers.toBigInt(encoded.slice(9, 17)), + message: { + encodedMessage: args.encodedMessage, + receipts: args.receipts.map(([issuer, destGasLimit, destBytesOverhead, feeTokenAmount, extraArgs]) => ({ + issuer, + destGasLimit, + destBytesOverhead, + feeTokenAmount, + extraArgs, + })), + }, + }); } } - - return null; + return messages; } /** - * Parses a transaction receipt to extract the sent message from CCIPMessageSent + * Routes a sent message on the destination (connected) network, as the destination OffRamp would execute it. + * + * - pre-1.6 and 1.6: impersonates the lane's OffRamp and calls `executeSingleMessage`. + * - CCIP 2.0: the OffRamp selects the CCVs (`getCCVsForMessage`), CCVs that are owner-configurable verifier resolvers + * are pointed at a synthetic no-op verifier, and the raw encoded message is executed through the permissionless + * `execute`. A message is only delivered if the OffRamp reports SUCCESS. * - * @param {object} receipt – The tx receipt from the on-ramp contract - * @returns {object | null} Returns { destChainSelector, sequenceNumber, EVM2AnyRampMessage message } or null + * @param {object} connection Network connection of the destination chain + * @param {string | string[]} routerAddresses Destination router address(es) whose OffRamps are searched, e.g. the default + * router and `CCIP_V2_ROUTERS[chainId]` + * @param {CCIPSentMessage} sent A message returned by `getCCIPMessages` + * @param {Object} [options] + * @param {boolean} [options.forceExecution=false] Execute CCIP 2.0 messages whose executor is `NO_EXECUTION_ADDRESS` + * (manual execution) + * @returns {Promise} `{ offRamp, executed, reason }`: `executed` is false only for a CCIP 2.0 NO_EXECUTION + * message routed without `forceExecution` (`reason` is then `"NO_EXECUTION_ADDRESS"`) + * @throws {Error} If no OffRamp serves the lane, or if execution fails (receiver revert, finality or CCV rejection) */ -function getEvm2AnyRampMessage(receipt) { - const onRampInterface = new ethers.Interface(OnRampAbi); +export async function routeMessage(connection, routerAddresses, sent, options = {}) { + _requireEthers(connection); + const routers = (Array.isArray(routerAddresses) ? routerAddresses : [routerAddresses]).filter(Boolean); + // CCIP 2.0: prefer the OffRamp stamped into the wire-format message (see `_stampedOffRamp`) so a router that + // lists several 2.0 OffRamps for the same OnRamp (migration) executes on the one the message was actually built + // for, instead of whichever the generic reverse-order lookup happens to pick. + const preferredOffRamp = sent.era === "V2" ? _stampedOffRamp(connection, sent.message.encodedMessage) : null; + const lane = await _findOffRamp(connection, routers, sent.sourceChainSelector, sent.onRamp, preferredOffRamp); + if (!lane) { + throw new Error( + `No OffRamp found for source chain ${sent.sourceChainSelector} and OnRamp ${sent.onRamp} on routers ${routers.join(", ")}` + ); + } - for (const log of receipt.logs) { - try { - const parsedLog = onRampInterface.parseLog(log); - if (parsedLog.name === "CCIPMessageSent") { - // event CCIPMessageSent(uint64 indexed destChainSelector, uint64 indexed sequenceNumber, Internal.EVM2AnyRampMessage message); - const [destChainSelector, sequenceNumber, messageRaw] = parsedLog.args; - - const [ - headerRaw, - sender, - data, - receiver, - extraArgs, - feeToken, - feeTokenAmount, - feeValueJuels, - tokenTransfersRaw - ] = messageRaw; - - const [ - messageId, - sourceChainSelector, - destChainSelectorHdr, - sequenceNumberHdr, - nonce - ] = headerRaw; - - const tokenAmounts = tokenTransfersRaw.map(( - [sourcePoolAddress, destTokenAddress, extraData, amount, destExecData] - ) => ({ - sourcePoolAddress, - destTokenAddress, - extraData, - amount, - destExecData - })); - - return { - destChainSelector, - sequenceNumber, - message: { - header: { - messageId, - sourceChainSelector, - destChainSelector: destChainSelectorHdr, - sequenceNumber: sequenceNumberHdr, - nonce - }, - sender, - data, - receiver, - extraArgs, - feeToken, - feeTokenAmount, - feeValueJuels, - tokenAmounts - } - }; + if (sent.era === "PRE_V1_6") { + await _executePreV1_6(connection, lane, sent.message); + } else if (sent.era === "V1_6") { + await _executeV1_6(connection, lane.offRamp, sent.message); + } else if (sent.era === "V2") { + const receipts = sent.message.receipts; + const isNoExecution = receipts.length >= 2 && receipts[receipts.length - 2].issuer.toLowerCase() === NO_EXECUTION_ADDRESS; + if (isNoExecution && !options.forceExecution) { + return { offRamp: lane.offRamp, executed: false, reason: "NO_EXECUTION_ADDRESS" }; + } + await _executeV2(connection, lane.offRamp, sent.message.encodedMessage); + } else { + throw new Error(`Unsupported CCIP era: ${sent.era}`); + } + + return { offRamp: lane.offRamp, executed: true }; +} + +// ================================================================ +// │ OffRamp lookup │ +// ================================================================ + +/** + * Finds the OffRamp whose lane is bound to `sourceOnRamp`. Routers list OffRamps of several versions for the same + * source chain (1.2 / 1.5 / 1.6 / 2.0 during migrations), so candidates are matched by `typeAndVersion` and a candidate + * of unknown shape is skipped. + * @private + */ +async function _findOffRamp(connection, routerAddresses, sourceChainSelector, sourceOnRamp, preferredOffRamp) { + const { ethers } = connection; + + // If the message stamped a preferred OffRamp (CCIP 2.0), and it is actually listed for this source chain on one + // of the routers and serves the lane, use it directly instead of the generic reverse-order search below. + if (preferredOffRamp) { + for (const routerAddress of routerAddresses) { + let offRamps; + try { + offRamps = await new ethers.Contract(routerAddress, ABI.router, ethers.provider).getOffRamps(); + } catch { + continue; } - } catch (e) { - console.error("Error parsing log:", e); + for (const [candidateSelector, candidate] of offRamps) { + if (candidateSelector !== BigInt(sourceChainSelector)) continue; + if (candidate.toLowerCase() !== preferredOffRamp.toLowerCase()) continue; + const typeAndVersion = await _matchOffRamp(connection, candidate, sourceChainSelector, sourceOnRamp); + if (typeAndVersion !== null) return { offRamp: candidate, typeAndVersion }; + } + } + } + + for (const routerAddress of routerAddresses) { + let offRamps; + try { + offRamps = await new ethers.Contract(routerAddress, ABI.router, ethers.provider).getOffRamps(); + } catch { continue; } + for (let i = offRamps.length - 1; i >= 0; --i) { + const [candidateSelector, candidate] = offRamps[i]; + if (candidateSelector !== BigInt(sourceChainSelector)) continue; + const typeAndVersion = await _matchOffRamp(connection, candidate, sourceChainSelector, sourceOnRamp); + if (typeAndVersion !== null) return { offRamp: candidate, typeAndVersion }; + } } + return null; +} + +/** + * Parses the OffRamp address stamped into a CCIP 2.0 `encodedMessage` (MessageV1 wire format), if present and well + * formed. Layout (verified against `MessageV1Codec._decodeMessageV1` / `_encodeMessageV1` in + * `lib/chainlink-ccip/chains/evm/contracts/libraries/MessageV1Codec.sol`, tag contracts-ccip-v2.0.0): + * fixed header (69 bytes: 1 version + 8 sourceChainSelector + 8 destChainSelector + 8 messageNumber + + * 4 executionGasLimit + 4 ccipReceiveGasLimit + 4 finality + 32 ccvAndExecutorHash), then + * `onRampAddressLength` (1 byte) + onRamp bytes, then `offRampAddressLength` (1 byte) + offRamp bytes. `offRamp` is + * only meaningful when it is exactly 20 bytes (an EVM address); anything else (bounds overrun, other length) yields + * `null` and callers fall back to the generic lookup. + * @private + * @returns {?string} The stamped OffRamp address, or null if absent / malformed / not a 20-byte address + */ +export function _stampedOffRamp(connection, encodedMessage) { + const { ethers } = connection; + try { + const bytes = ethers.getBytes(encodedMessage); + const HEADER_SIZE = 69; + if (bytes.length <= HEADER_SIZE) return null; + const onRampLen = bytes[HEADER_SIZE]; + const offRampLenOffset = HEADER_SIZE + 1 + onRampLen; + if (offRampLenOffset >= bytes.length) return null; + const offRampLen = bytes[offRampLenOffset]; + const offRampStart = offRampLenOffset + 1; + if (offRampLen !== 20 || offRampStart + offRampLen > bytes.length) return null; + return ethers.getAddress(ethers.hexlify(bytes.slice(offRampStart, offRampStart + offRampLen))); + } catch { + return null; + } +} + +/** + * @private + * @returns {Promise} The candidate's typeAndVersion ("" if unreadable) when it serves the lane, else null + */ +async function _matchOffRamp(connection, offRamp, sourceChainSelector, sourceOnRamp) { + const { ethers } = connection; + let typeAndVersion = ""; + try { + typeAndVersion = await new ethers.Contract(offRamp, ABI.typeAndVersion, ethers.provider).typeAndVersion(); + } catch { + // No readable typeAndVersion: probe every known shape below. + } + + const is = (prefix) => typeAndVersion.startsWith(prefix); + const known = is("OffRamp 2.") || is("OffRamp 1.6") || is("EVM2EVMOffRamp 1."); + if (typeAndVersion !== "" && !known) return null; + const onRamp = sourceOnRamp.toLowerCase(); + const matchesEncoded = (encoded) => { + try { + return ethers.getBytes(encoded).length === 32 && ethers.AbiCoder.defaultAbiCoder().decode(["address"], encoded)[0].toLowerCase() === onRamp; + } catch { + return false; + } + }; + + if (typeAndVersion === "" || is("OffRamp 2.")) { + try { + const cfg = await new ethers.Contract(offRamp, ABI.v2OffRamp, ethers.provider).getSourceChainConfig(sourceChainSelector); + if (cfg.isEnabled && cfg.onRamps.some(matchesEncoded)) return typeAndVersion; + } catch {} + if (is("OffRamp 2.")) return null; + } + if (typeAndVersion === "" || is("OffRamp 1.6")) { + try { + const cfg = await new ethers.Contract(offRamp, ABI.v1_6OffRamp, ethers.provider).getSourceChainConfig(sourceChainSelector); + if (cfg.isEnabled && matchesEncoded(cfg.onRamp)) return typeAndVersion; + } catch {} + } + try { + const cfg = await new ethers.Contract(offRamp, ABI.preV1_6OffRamp, ethers.provider).getStaticConfig(); + if (cfg.onRamp.toLowerCase() === onRamp && cfg.sourceChainSelector === BigInt(sourceChainSelector)) return typeAndVersion; + } catch {} return null; } +// ================================================================ +// │ Execution │ +// ================================================================ + +async function _executePreV1_6(connection, lane, message) { + const { ethers } = connection; + const offRamp = new ethers.Contract(lane.offRamp, ABI.preV1_6OffRamp, await _impersonate(connection, lane.offRamp)); + const offchainTokenData = message.tokenAmounts.map(() => "0x"); + // Pre-1.6 lanes are single-destination: the OnRamp (and therefore the OffRamp bound to it) only ever serves one + // destination chain, so there is no `destChainSelector` to check against the connected chain here (unlike 1.6 + // below). EVM2EVMOffRamp 1.5 takes per-token gas overrides; older versions do not. + if (lane.typeAndVersion.startsWith("EVM2EVMOffRamp 1.5")) { + // Zero overrides: the OffRamp only replaces a token's `destGasAmount` (stamped by the source OnRamp) when its + // override is non-zero. The message gas limit is not a token pool budget. + const tokenGasOverrides = message.tokenAmounts.map(() => 0); + await _send(connection, offRamp["executeSingleMessage((uint64,address,address,uint64,uint256,bool,uint64,address,uint256,bytes,(address,uint256)[],bytes[],bytes32),bytes[],uint32[])"](message, offchainTokenData, tokenGasOverrides)); + } else { + await _send(connection, offRamp["executeSingleMessage((uint64,address,address,uint64,uint256,bool,uint64,address,uint256,bytes,(address,uint256)[],bytes[],bytes32),bytes[])"](message, offchainTokenData)); + } +} + +async function _executeV1_6(connection, offRampAddress, message) { + const { ethers } = connection; + const coder = ethers.AbiCoder.defaultAbiCoder(); + const gasLimit = _gasLimitFromExtraArgs(connection, message.extraArgs); + + // 1.6 OnRamps serve several destinations, and `executeSingleMessage` does not check the destination, so a message + // routed to the wrong connection would execute there. `getStaticConfig().chainSelector` is the OffRamp's own chain. + // CCIP 2.0 needs no check: `execute` reverts `InvalidMessageDestChainSelector` (decoded by `_describeError`). + const staticConfigOffRamp = new ethers.Contract(offRampAddress, ABI.v1_6OffRamp, ethers.provider); + const staticConfig = await staticConfigOffRamp.getStaticConfig(); + if (staticConfig.chainSelector !== BigInt(message.header.destChainSelector)) { + throw new Error( + `1.6 message ${message.header.messageId} targets destination chain selector ${message.header.destChainSelector}, but the connected OffRamp ${offRampAddress} is on chain selector ${staticConfig.chainSelector}` + ); + } + + const any2EVMMessage = { + header: message.header, + // Production 1.6 lanes deliver an EVM sender as a 32-byte ABI word. + sender: coder.encode(["address"], [message.sender]), + data: message.data, + receiver: _decodeEVMAddress(connection, message.receiver), + gasLimit, + tokenAmounts: message.tokenAmounts.map((t) => ({ + sourcePoolAddress: coder.encode(["address"], [t.sourcePoolAddress]), + destTokenAddress: _decodeEVMAddress(connection, t.destTokenAddress), + destGasAmount: coder.decode(["uint32"], t.destExecData)[0], + extraData: t.extraData, + amount: t.amount, + })), + }; + + const offRamp = new ethers.Contract(offRampAddress, ABI.v1_6OffRamp, await _impersonate(connection, offRampAddress)); + // Zero token gas overrides, as for pre-1.6 above. + await _send( + connection, + offRamp.executeSingleMessage( + any2EVMMessage, + message.tokenAmounts.map(() => "0x"), + message.tokenAmounts.map(() => 0) + ) + ); +} + /** - * Routes the sent message from the source network on the destination (current) network + * Selects the CCVs to pass to `OffRamp.execute`, mirroring `OffRamp._ensureCCVQuorumIsReached`: every required CCV + * must be present, plus enough optional CCVs (in order) to reach `threshold` — an optional CCV that is also required + * already counts towards the threshold because it is already present. Exported for testing; not part of the public + * module API. * - * @param {string} routerAddress - Address of the destination Router - * @param {Evm2EvmMessage} evm2EvmMessage - Sent cross-chain message - * @returns {Promise} Either resolves with no value if the message is successfully routed, or reverts - * @throws {Error} Fails if no off-ramp matches the message's source chain selector or if calling `router.getOffRamps()` + * @param {string[]} required Required CCVs (may contain duplicates; deduplicated keeping first occurrence order) + * @param {string[]} optional Optional CCVs, in priority order + * @param {number|bigint} threshold Number of optional CCVs that must be present + * @returns {string[]} The CCVs to submit to `execute` + * @private */ -async function routeMessage(routerAddress, evm2EvmMessage) { - const router = new ethers.Contract(routerAddress, RouterAbi, ethers.provider); +export function _selectCCVs(required, optional, threshold) { + const ccvs = []; + const present = new Set(); + for (const ccv of required) { + if (!present.has(ccv)) { + present.add(ccv); + ccvs.push(ccv); + } + } + + // Optional CCVs that are also required already count (the OffRamp finds them in `ccvs`); count them first so no + // unneeded optional CCV is added. Same rule as `CCIPForkAdapterV2.selectCCVs` in Solidity. + let remaining = Number(threshold); + const counted = new Set(); + optional.forEach((ccv, i) => { + if (remaining > 0 && present.has(ccv)) { + counted.add(i); + remaining--; + } + }); + optional.forEach((ccv, i) => { + if (remaining <= 0 || counted.has(i)) return; + if (!present.has(ccv)) { + present.add(ccv); + ccvs.push(ccv); + } + remaining--; + }); + return ccvs; +} - let offRamps; +async function _executeV2(connection, offRampAddress, encodedMessage) { + const { ethers } = connection; + const offRampView = new ethers.Contract(offRampAddress, ABI.v2OffRamp, ethers.provider); + const messageId = ethers.keccak256(encodedMessage); + let required, optional, threshold; try { - const offRampsRaw = await router.getOffRamps(); - offRamps = offRampsRaw.map(([sourceChainSelector, offRamp]) => ({ sourceChainSelector, offRamp })); + [required, optional, threshold] = await offRampView.getCCVsForMessage(encodedMessage); } catch (error) { - throw new Error(`Calling router.getOffRamps threw the following error: ${error}`); + // The OffRamp validates the message while selecting CCVs (e.g. receiver finality), so it cannot be executed. + const revertData = error?.data ?? error?.info?.error?.data ?? "n/a"; + throw new Error( + `CCIP 2.0 message ${messageId} cannot be executed: OffRamp.getCCVsForMessage reverted with ${_describeError(connection, revertData)}` + ); + } + // Same selection as the OffRamp quorum: all required CCVs, plus enough optional ones to reach `threshold`. + const ccvs = _selectCCVs(required, optional, threshold); + const verifierResults = []; + for (const ccv of ccvs) { + verifierResults.push((await _pointResolverAtSyntheticVerifier(connection, ccv)) ? SYNTHETIC_VERIFIER_VERSION : "0x"); } - for (const offRamp of offRamps) { - if (offRamp.sourceChainSelector == evm2EvmMessage.sourceChainSelector) { - const evm2EvmOffRamp = new ethers.Contract(offRamp.offRamp, EVM2EVMOffRampAbi); + const [executor] = await ethers.getSigners(); + const latestBlock = await ethers.provider.getBlock("latest"); + const gasLimit = latestBlock.gasLimit < V2_EXECUTE_GAS_LIMIT ? latestBlock.gasLimit : V2_EXECUTE_GAS_LIMIT; + const receipt = await _send(connection, offRampView.connect(executor).execute(encodedMessage, ccvs, verifierResults, 0, { gasLimit })); - const self = await ethers.getImpersonatedSigner(offRamp.offRamp); - await setBalance(self.address, BigInt(100) ** BigInt(18)); + // `execute` does not revert when the inner execution fails on a first attempt: it records FAILURE. + const state = await offRampView.getExecutionState(messageId); + if (state !== EXECUTION_STATE_SUCCESS) { + const offRampInterface = new ethers.Interface(ABI.v2OffRamp); + const stateChanged = receipt.logs + .map((log) => { + try { + return offRampInterface.parseLog(log); + } catch { + return null; + } + }) + .find((parsed) => parsed?.name === "ExecutionStateChanged" && parsed.args.messageId === messageId); + throw new Error( + `CCIP 2.0 message ${messageId} did not execute successfully (state ${state}): ${_describeError(connection, stateChanged?.args.returnData ?? "n/a")}` + ); + } +} - const offchainTokenData = new Array(evm2EvmMessage.tokenAmounts.length).fill("0x"); +/** + * Points an owner-configurable CCV resolver at a synthetic no-op verifier for the "FORK" verifier-result version. + * @returns {Promise} Whether the CCV could be configured (otherwise it gets an empty verifier result) + * @private + */ +async function _pointResolverAtSyntheticVerifier(connection, ccv) { + const { ethers } = connection; + let owner; + try { + owner = await new ethers.Contract(ccv, ABI.ccvResolver, ethers.provider).owner(); + } catch { + return false; + } + if (owner === ethers.ZeroAddress) return false; + + const verifier = ethers.getAddress(ethers.dataSlice(ethers.id("chainlink-local.synthetic-ccv-verifier"), 12)); + // STOP: every call succeeds with empty return data, which is all `verifyMessage` needs. + await connection.provider.request({ method: "hardhat_setCode", params: [verifier, "0x00"] }); + + try { + const resolver = new ethers.Contract(ccv, ABI.ccvResolver, await _impersonate(connection, owner)); + await _send(connection, resolver.applyInboundImplementationUpdates([{ version: SYNTHETIC_VERIFIER_VERSION, verifier }])); + return true; + } catch { + return false; + } +} - await evm2EvmOffRamp.connect(self).executeSingleMessage(evm2EvmMessage, offchainTokenData); +// ================================================================ +// │ Utilities │ +// ================================================================ - return; +/** + * Guards against calling into this module with a plain Hardhat 3 `NetworkConnection` that was not created with the + * `@nomicfoundation/hardhat-ethers` plugin, which otherwise fails deep inside with + * `Cannot read properties of undefined (reading 'Interface')`. + * @private + */ +function _requireEthers(connection) { + if (!connection?.ethers) { + throw new Error( + "@chainlink/local: requires the @nomicfoundation/hardhat-ethers plugin (add it to `plugins` in hardhat.config)" + ); + } +} + +async function _impersonate(connection, address) { + await connection.provider.request({ method: "hardhat_impersonateAccount", params: [address] }); + await connection.provider.request({ method: "hardhat_setBalance", params: [address, "0x56BC75E2D63100000"] }); // 100 ETH + return connection.ethers.getSigner(address); +} + +/** + * Awaits a transaction and its receipt. On revert (either at submission, e.g. gas estimation, or when the mined + * transaction's status is 0), re-throws an `Error` whose message includes the decoded revert reason (name + args, + * from `ABI.knownErrors`) or the raw revert hex when it is not a known error — the original error is kept as + * `.cause`. Covers `execute`, `executeSingleMessage` (1.6 and pre-1.6), and any other transaction routed through it. + * @private + */ +async function _send(connection, txPromise) { + try { + const tx = await txPromise; + return await tx.wait(); + } catch (error) { + const revertData = error?.data ?? error?.info?.error?.data; + if (revertData) { + throw new Error(`transaction reverted: ${_describeError(connection, revertData)}`, { cause: error }); } + throw error; } +} - throw new Error(`No offRamp contract found, message has not been routed. Check your input parameters please`); +/** + * Decodes revert data of the errors in `ABI.knownErrors`, falling back to the raw hex. + * @private + */ +function _describeError(connection, data) { + try { + const parsed = new connection.ethers.Interface(ABI.knownErrors).parseError(data); + if (parsed) return `${parsed.name}(${parsed.args.map(String).join(", ")})`; + } catch {} + return String(data); } -module.exports = { - requestLinkFromTheFaucet, - getEvm2EvmMessage, - routeMessage -}; +export function _decodeEVMAddress(connection, encoded) { + const { ethers } = connection; + const bytes = ethers.getBytes(encoded); + if (bytes.length === 32) return ethers.AbiCoder.defaultAbiCoder().decode(["address"], encoded)[0]; + if (bytes.length === 20) return ethers.getAddress(ethers.hexlify(bytes)); + throw new Error(`Invalid EVM address encoding: ${encoded}`); +} + +export function _gasLimitFromExtraArgs(connection, extraArgs) { + const { ethers } = connection; + if (ethers.getBytes(extraArgs).length === 0) return DEFAULT_GAS_LIMIT; + const tag = ethers.dataSlice(extraArgs, 0, 4); + const body = ethers.dataSlice(extraArgs, 4); + const coder = ethers.AbiCoder.defaultAbiCoder(); + if (tag === GENERIC_EXTRA_ARGS_V2_TAG) return coder.decode(["tuple(uint256 gasLimit, bool allowOutOfOrderExecution)"], body)[0].gasLimit; + if (tag === EVM_EXTRA_ARGS_V1_TAG) return coder.decode(["uint256"], body)[0]; + throw new Error(`Unsupported 1.6 extraArgs tag: ${tag}`); +} diff --git a/scripts/ccip/updateRegisterContract.js b/scripts/ccip/updateRegisterContract.js deleted file mode 100644 index eece9de..0000000 --- a/scripts/ccip/updateRegisterContract.js +++ /dev/null @@ -1,234 +0,0 @@ -/** - * @fileoverview Script to fetch and generate Register.sol with CCIP network details from Chainlink's API. - * - * This script queries Chainlink's CCIP API endpoints to retrieve network configuration - * details for all supported EVM chains. It fetches chain information (routers, selectors, - * fee tokens) and token information (CCIP-BnM and CCIP-LnM addresses) for both testnet - * and mainnet environments, then generates Register.sol with hardcoded network details - * in the constructor. - * - * Usage: - * CCIP_API_BASE_URL= npm run update-register - * CCIP_API_BASE_URL= node scripts/ccip/updateRegisterContract.js - * - * Requires: CCIP_API_BASE_URL environment variable (base URL for the CCIP API; paths are appended in code). - * - */ - -const fs = require("fs"); -const path = require("path"); - -const CCIP_API_BASE_URL = process.env.CCIP_API_BASE_URL; -if (!CCIP_API_BASE_URL || CCIP_API_BASE_URL.trim() === "") { - console.error("Error: CCIP_API_BASE_URL environment variable is required and must be set."); - process.exit(1); -} - -/** Normalized base URL (no trailing slash) for building API requests. */ -const apiBase = CCIP_API_BASE_URL.trim().replace(/\/$/, ""); - -/** - * Builds the full API URL for a given path and query parameters. - * @param {string} path - Path segment (e.g. "chains", "tokens") - * @param {Record} params - Query parameters - * @returns {string} Full URL - */ -function apiUrl(path, params) { - const url = new URL(`${apiBase}/${path}`); - Object.entries(params).forEach(([k, v]) => url.searchParams.set(k, v)); - return url.toString(); -} - -/** - * Generates Register.sol with hardcoded network details in the constructor. - * This makes the Register contract work in Hardhat and Remix without requiring - * Foundry's vm functions or runtime JSON file reading. - * - * @param {string} outputPath - Path to output Register.sol. Defaults to src/ccip/Register.sol - * @param {Object} networkDetails - Network details object to generate from. - */ -function generateRegister(outputPath, networkDetails) { - // Default output path - const defaultOutputPath = path.join(__dirname, "../../src/ccip/Register.sol"); - const outputFilePath = outputPath || defaultOutputPath; - - // Generate Solidity code - let constructorBody = ""; - - // Sort chain IDs for consistent output - const chainIds = Object.keys(networkDetails).sort((a, b) => Number(a) - Number(b)); - - for (const chainId of chainIds) { - const details = networkDetails[chainId]; - const name = details.name || `Chain ${chainId}`; - - // Handle empty strings for optional addresses - const ccipBnMAddress = details.ccipBnMAddress === "" - ? "address(0)" - : `address(${details.ccipBnMAddress})`; - const ccipLnMAddress = details.ccipLnMAddress === "" - ? "address(0)" - : `address(${details.ccipLnMAddress})`; - - constructorBody += ` // ${name}\n`; - constructorBody += ` s_networkDetails[${chainId}] = NetworkDetails({\n`; - constructorBody += ` chainSelector: ${details.chainSelector},\n`; - constructorBody += ` routerAddress: address(${details.routerAddress}),\n`; - constructorBody += ` linkAddress: address(${details.linkAddress}),\n`; - constructorBody += ` wrappedNativeAddress: address(${details.wrappedNativeAddress}),\n`; - constructorBody += ` ccipBnMAddress: ${ccipBnMAddress},\n`; - constructorBody += ` ccipLnMAddress: ${ccipLnMAddress},\n`; - constructorBody += ` rmnProxyAddress: address(${details.rmnProxyAddress}),\n`; - constructorBody += ` registryModuleOwnerCustomAddress: address(${details.registryModuleOwnerCustomAddress}),\n`; - constructorBody += ` tokenAdminRegistryAddress: address(${details.tokenAdminRegistryAddress})\n`; - constructorBody += ` });\n\n`; - } - - // Full constructor code for empty constructor case - const fullConstructorCode = " /// @notice Constructor to initialize network details for various chains.\n constructor() {\n" + constructorBody + " }"; - - // Read the Register.sol file - const registerPath = path.join(__dirname, "../../src/ccip/Register.sol"); - let registerCode = fs.readFileSync(registerPath, "utf8"); - - // Replace the constructor with the generated one - // Match either empty constructor or populated constructor - const emptyConstructorRegex = / \/\/\/ @notice Empty constructor\.\n constructor\(\) \{\}/s; - - // Match populated constructor - match from the comment through the closing brace - // The comment text is "Constructor to initialize the network details for various chains." - const populatedConstructorRegex = /( \/\/\/ @notice Constructor to initialize the network details for various chains\.\n constructor\(\) \{)[\s\S]*?(\n \})/; - - if (emptyConstructorRegex.test(registerCode)) { - // Replace empty constructor - registerCode = registerCode.replace(emptyConstructorRegex, fullConstructorCode); - } else if (populatedConstructorRegex.test(registerCode)) { - // Replace populated constructor - keep the comment, constructor declaration, and closing brace - // Replace only the body (everything between "constructor() {" and the closing "}") - // constructorBody already has proper indentation and ends with content (no trailing newlines after trim) - registerCode = registerCode.replace(populatedConstructorRegex, (match, p1, p2) => { - // p1 = comment + "constructor() {" - // constructorBody = body content (trimmed to remove trailing whitespace) - // p2 = "\n }" (the closing brace with proper indentation) - return p1 + '\n' + constructorBody.trimEnd() + p2; - }); - } else { - throw new Error("Could not find constructor in Register.sol. Expected either empty constructor or populated constructor with comment 'Constructor to initialize the network details for various chains.'"); - } - - // Write the generated file - console.log(`Writing generated Register.sol to: ${outputFilePath}`); - fs.writeFileSync(outputFilePath, registerCode, "utf8"); - - console.log(` Successfully generated Register.sol with ${chainIds.length} networks`); - console.log(` Output: ${outputFilePath}`); -} - -/** - * Fetches CCIP network details for a single environment from Chainlink's API. - * - * @param {string} environment - The environment to fetch data for ("testnet" or "mainnet") - * @returns {Promise} Network details object keyed by chain ID - */ -async function fetchNetworkDetails(environment) { - const queryBase = { environment, outputKey: "chainId" }; - - // Call Endpoint #1: chains - const chainsRes = await fetch(apiUrl("chains", { ...queryBase, enrichFeeTokens: "true" }), { - headers: { Accept: "application/json" } - }); - if (!chainsRes.ok) { - const body = await chainsRes.text(); - throw new Error(`Chains API HTTP ${chainsRes.status} ${chainsRes.statusText} for ${environment}\n${body}`); - } - const chainsData = await chainsRes.json(); - - // Call Endpoint #2: tokens - const tokensRes = await fetch(apiUrl("tokens", queryBase), { - headers: { Accept: "application/json" } - }); - if (!tokensRes.ok) { - const body = await tokensRes.text(); - throw new Error(`Tokens API HTTP ${tokensRes.status} ${tokensRes.statusText} for ${environment}\n${body}`); - } - const tokensData = await tokensRes.json(); - - // Process the data - const networkDetails = {}; - const evmChains = chainsData.data.evm || {}; - const ccipBnM = tokensData.data["CCIP-BnM"] || {}; - const ccipLnM = tokensData.data["CCIP-LnM"] || {}; - - // Iterate through all EVM chains - for (const [chainId, chainInfo] of Object.entries(evmChains)) { - // Find LINK token and wrapped native token from feeTokens - const linkToken = chainInfo.feeTokens?.find(token => token.symbol === "LINK"); - const wrappedNativeToken = chainInfo.feeTokens?.find(token => token.symbol !== "LINK"); - - // Get CCIP token addresses from tokens endpoint - const bnMInfo = ccipBnM[chainId]; - const lnMInfo = ccipLnM[chainId]; - - // Only include chains that have all required data - if (linkToken && wrappedNativeToken && chainInfo.router && chainInfo.rmn && - chainInfo.registryModule && chainInfo.tokenAdminRegistry) { - networkDetails[chainId] = { - name: chainInfo.displayName, - chainSelector: chainInfo.selector, - routerAddress: chainInfo.router, - linkAddress: linkToken.address, - wrappedNativeAddress: wrappedNativeToken.address, - ccipBnMAddress: bnMInfo?.tokenAddress || "", - ccipLnMAddress: lnMInfo?.tokenAddress || "", - rmnProxyAddress: chainInfo.rmn, - registryModuleOwnerCustomAddress: chainInfo.registryModule, - tokenAdminRegistryAddress: chainInfo.tokenAdminRegistry - }; - } - } - - return networkDetails; -} - -/** - * Fetches CCIP network details from Chainlink's API and generates Register.sol with hardcoded values. - * Always fetches both testnet and mainnet network details. - */ -async function fetchAndGenerate() { - try { - let networkDetails = {}; - const environments = ["testnet", "mainnet"]; - - // Fetch data for both environments in parallel - console.log(`Fetching network details for: ${environments.join(", ")}...`); - const fetchPromises = environments.map(env => fetchNetworkDetails(env)); - const results = await Promise.all(fetchPromises); - - // Merge network details from both environments - // If there are duplicate chain IDs, mainnet takes precedence - for (let i = 0; i < environments.length; i++) { - const env = environments[i]; - const details = results[i]; - const envCount = Object.keys(details).length; - console.log(` ${env}: ${envCount} networks`); - - // Merge details, with later environments (mainnet) taking precedence - for (const [chainId, chainDetails] of Object.entries(details)) { - networkDetails[chainId] = chainDetails; - } - } - - // Generate Register.sol directly from API data - const totalNetworks = Object.keys(networkDetails).length; - console.log(`\nGenerating Register.sol with ${totalNetworks} total networks...`); - generateRegister(null, networkDetails); - - console.log("\n Register.sol generated successfully!"); - } catch (err) { - console.error("Error:", err.message); - process.exit(1); - } -} - -// Run the function -fetchAndGenerate(); \ No newline at end of file diff --git a/scripts/data-streams/DataStreamsLocalSimulatorFork.js b/scripts/data-streams/DataStreamsLocalSimulatorFork.js index a301b3c..910495e 100644 --- a/scripts/data-streams/DataStreamsLocalSimulatorFork.js +++ b/scripts/data-streams/DataStreamsLocalSimulatorFork.js @@ -1,37 +1,53 @@ -const { ethers } = require("hardhat"); -const { setBalance } = require("@nomicfoundation/hardhat-toolbox/network-helpers"); +/** + * Hardhat 3 helpers for Data Streams fork tests. Every function takes the `NetworkConnection` returned by + * `network.connect()` and requires the `@nomicfoundation/hardhat-ethers` plugin (it uses `connection.ethers`). + */ -const LinkTokenAbi = require("../../abi/LinkToken.json"); +const LINK_FAUCET_ADDRESS = "0x4281eCF07378Ee595C564a59048801330f3084eE"; + +/** + * Guards against calling into this module with a `NetworkConnection` that was not created with the + * `@nomicfoundation/hardhat-ethers` plugin, which otherwise fails deep inside with + * `Cannot read properties of undefined (reading 'Interface')`. + * @private + */ +function _requireEthers(connection) { + if (!connection?.ethers) { + throw new Error( + "@chainlink/local: requires the @nomicfoundation/hardhat-ethers plugin (add it to `plugins` in hardhat.config)" + ); + } +} /** * Requests LINK tokens from the faucet and returns the transaction hash * + * @param {object} connection Network connection from `network.connect()` * @param {string} linkAddress The address of the LINK contract on the current network * @param {string} to The address to send LINK to * @param {bigint} amount The amount of LINK to request * @returns {Promise} Promise resolving to the transaction hash of the fund transfer */ -async function requestLinkFromFaucet(linkAddress, to, amount) { - const LINK_FAUCET_ADDRESS = `0x4281eCF07378Ee595C564a59048801330f3084eE`; - const linkFaucetImpersonated = await ethers.getImpersonatedSigner(LINK_FAUCET_ADDRESS); +export async function requestLinkFromFaucet(connection, linkAddress, to, amount) { + _requireEthers(connection); + const { ethers } = connection; + await connection.provider.request({ method: "hardhat_impersonateAccount", params: [LINK_FAUCET_ADDRESS] }); + await requestNativeFromFaucet(connection, LINK_FAUCET_ADDRESS, ethers.parseEther("100")); + const faucet = await ethers.getSigner(LINK_FAUCET_ADDRESS); - const linkToken = new ethers.Contract(linkAddress, LinkTokenAbi, ethers.provider); - const tx = await linkToken.connect(linkFaucetImpersonated).transfer(to, amount); + const linkToken = new ethers.Contract(linkAddress, ["function transfer(address to, uint256 amount) returns (bool)"], faucet); + const tx = await linkToken.transfer(to, amount); return tx.hash; } /** - * Requests native coins from the faucet - * + * Requests native coins from the faucet (sets the balance of `to`) + * + * @param {object} connection Network connection from `network.connect()` * @param {string} to The address to send coins to * @param {bigint} amount The amount of coins to request */ -async function requestNativeFromFaucet(to, amount) { - await setBalance(to, amount); +export async function requestNativeFromFaucet(connection, to, amount) { + await connection.provider.request({ method: "hardhat_setBalance", params: [to, `0x${BigInt(amount).toString(16)}`] }); } - -module.exports = { - requestLinkFromFaucet, - requestNativeFromFaucet -}; \ No newline at end of file diff --git a/scripts/data-streams/MockReportGenerator.js b/scripts/data-streams/MockReportGenerator.js index b828614..15ed984 100644 --- a/scripts/data-streams/MockReportGenerator.js +++ b/scripts/data-streams/MockReportGenerator.js @@ -1,6 +1,4 @@ -const { ethers } = require("hardhat"); - -const { +import { ReportV1, ReportV2, ReportV3, @@ -14,21 +12,40 @@ const { ReportV11, ReportV12, ReportV13, -} = require("./ReportVersions"); +} from "./ReportVersions.js"; + +/** + * Guards against constructing this class with a `NetworkConnection` that was not created with the + * `@nomicfoundation/hardhat-ethers` plugin, which otherwise fails deep inside with + * `Cannot read properties of undefined (reading 'Interface')`. + * @private + */ +function _requireEthers(connection) { + if (!connection?.ethers) { + throw new Error( + "@chainlink/local: requires the @nomicfoundation/hardhat-ethers plugin (add it to `plugins` in hardhat.config)" + ); + } +} /** * Utility that builds deterministic mock Data Streams signed reports for local testing. */ class MockReportGenerator { #abi_encoder; + #ethers; /** + * @param {object} connection Hardhat 3 network connection from `network.connect()`; requires the + * `@nomicfoundation/hardhat-ethers` plugin. * @param {bigint|number} initialPrice Initial benchmark price used for generated reports. */ - constructor(initialPrice) { + constructor(connection, initialPrice) { + _requireEthers(connection); + this.#ethers = connection.ethers; // uint256(keccak256(abi.encodePacked("Mock Data Streams DON"))); - this.i_donDigest = BigInt(ethers.keccak256(ethers.toUtf8Bytes("Mock Data Streams DON"))); - this.i_donAddress = ethers.computeAddress("0x" + this.i_donDigest.toString(16)); + this.i_donDigest = BigInt(this.#ethers.keccak256(this.#ethers.toUtf8Bytes("Mock Data Streams DON"))); + this.i_donAddress = this.#ethers.computeAddress("0x" + this.i_donDigest.toString(16)); this.i_reportV1MockFeedId = "0x0001777777777777777777777777777777777777777777777777777777777777"; this.i_reportV2MockFeedId = "0x0002777777777777777777777777777777777777777777777777777777777777"; @@ -51,7 +68,7 @@ class MockReportGenerator { this.s_nativeFee = 0; // 0 by default this.s_linkFee = 0; // 0 by default - this.#abi_encoder = ethers.AbiCoder.defaultAbiCoder(); + this.#abi_encoder = this.#ethers.AbiCoder.defaultAbiCoder(); } /** @@ -246,12 +263,12 @@ class MockReportGenerator { * @returns {Promise<{signedReport: string, report: ReportV1}>} Signed payload and decoded report model. */ async generateReportV1() { - const latestBlock = await ethers.provider.getBlock("latest"); + const latestBlock = await this.#ethers.provider.getBlock("latest"); const currentTimestamp = latestBlock.timestamp; const currentBlockNum = latestBlock.number; const previousBlockHash = currentBlockNum === 0 ? "0x0000000000000000000000000000000000000000000000000000000000000000" - : (await ethers.provider.getBlock(currentBlockNum - 1)).hash; + : (await this.#ethers.provider.getBlock(currentBlockNum - 1)).hash; const report = new ReportV1({ feedId: this.i_reportV1MockFeedId, @@ -276,7 +293,7 @@ class MockReportGenerator { * @returns {Promise<{signedReport: string, report: ReportV2}>} Signed payload and decoded report model. */ async generateReportV2() { - const latestBlock = await ethers.provider.getBlock("latest"); + const latestBlock = await this.#ethers.provider.getBlock("latest"); const currentTimestamp = latestBlock.timestamp; const report = new ReportV2({ @@ -300,7 +317,7 @@ class MockReportGenerator { * @returns {Promise<{signedReport: string, report: ReportV3}>} Signed payload and decoded report model. */ async generateReportV3() { - const latestBlock = await ethers.provider.getBlock("latest"); + const latestBlock = await this.#ethers.provider.getBlock("latest"); const currentTimestamp = latestBlock.timestamp; const report = new ReportV3({ @@ -326,7 +343,7 @@ class MockReportGenerator { * @returns {Promise<{signedReport: string, report: ReportV4}>} Signed payload and decoded report model. */ async generateReportV4() { - const latestBlock = await ethers.provider.getBlock("latest"); + const latestBlock = await this.#ethers.provider.getBlock("latest"); const currentTimestamp = latestBlock.timestamp; const report = new ReportV4({ @@ -351,7 +368,7 @@ class MockReportGenerator { * @returns {Promise<{signedReport: string, report: ReportV5}>} Signed payload and decoded report model. */ async generateReportV5() { - const latestBlock = await ethers.provider.getBlock("latest"); + const latestBlock = await this.#ethers.provider.getBlock("latest"); const currentTimestamp = latestBlock.timestamp; const report = new ReportV5({ @@ -377,7 +394,7 @@ class MockReportGenerator { * @returns {Promise<{signedReport: string, report: ReportV6}>} Signed payload and decoded report model. */ async generateReportV6() { - const latestBlock = await ethers.provider.getBlock("latest"); + const latestBlock = await this.#ethers.provider.getBlock("latest"); const currentTimestamp = latestBlock.timestamp; const report = new ReportV6({ @@ -405,7 +422,7 @@ class MockReportGenerator { * @returns {Promise<{signedReport: string, report: ReportV7}>} Signed payload and decoded report model. */ async generateReportV7() { - const latestBlock = await ethers.provider.getBlock("latest"); + const latestBlock = await this.#ethers.provider.getBlock("latest"); const currentTimestamp = latestBlock.timestamp; const report = new ReportV7({ @@ -429,7 +446,7 @@ class MockReportGenerator { * @returns {Promise<{signedReport: string, report: ReportV8}>} Signed payload and decoded report model. */ async generateReportV8() { - const latestBlock = await ethers.provider.getBlock("latest"); + const latestBlock = await this.#ethers.provider.getBlock("latest"); const currentTimestamp = latestBlock.timestamp; const report = new ReportV8({ @@ -455,7 +472,7 @@ class MockReportGenerator { * @returns {Promise<{signedReport: string, report: ReportV9}>} Signed payload and decoded report model. */ async generateReportV9() { - const latestBlock = await ethers.provider.getBlock("latest"); + const latestBlock = await this.#ethers.provider.getBlock("latest"); const currentTimestamp = latestBlock.timestamp; const report = new ReportV9({ @@ -482,7 +499,7 @@ class MockReportGenerator { * @returns {Promise<{signedReport: string, report: ReportV10}>} Signed payload and decoded report model. */ async generateReportV10() { - const latestBlock = await ethers.provider.getBlock("latest"); + const latestBlock = await this.#ethers.provider.getBlock("latest"); const currentTimestamp = latestBlock.timestamp; const report = new ReportV10({ @@ -512,7 +529,7 @@ class MockReportGenerator { * @returns {Promise<{signedReport: string, report: ReportV11}>} Signed payload and decoded report model. */ async generateReportV11() { - const latestBlock = await ethers.provider.getBlock("latest"); + const latestBlock = await this.#ethers.provider.getBlock("latest"); const currentTimestamp = latestBlock.timestamp; const report = new ReportV11({ @@ -543,7 +560,7 @@ class MockReportGenerator { * @returns {Promise<{signedReport: string, report: ReportV12}>} Signed payload and decoded report model. */ async generateReportV12() { - const latestBlock = await ethers.provider.getBlock("latest"); + const latestBlock = await this.#ethers.provider.getBlock("latest"); const currentTimestamp = latestBlock.timestamp; const report = new ReportV12({ @@ -570,7 +587,7 @@ class MockReportGenerator { * @returns {Promise<{signedReport: string, report: ReportV13}>} Signed payload and decoded report model. */ async generateReportV13() { - const latestBlock = await ethers.provider.getBlock("latest"); + const latestBlock = await this.#ethers.provider.getBlock("latest"); const currentTimestamp = latestBlock.timestamp; const report = new ReportV13({ @@ -678,11 +695,11 @@ class MockReportGenerator { `0x0000000000000000000000000000000000000000000000000000000000000000`, // not needed for mocks ]; - const hashedReport = ethers.keccak256(reportData); + const hashedReport = this.#ethers.keccak256(reportData); - const h = ethers.solidityPackedKeccak256(["bytes32", "bytes32[3]"], [hashedReport, reportContext]); + const h = this.#ethers.solidityPackedKeccak256(["bytes32", "bytes32[3]"], [hashedReport, reportContext]); - const signer = new ethers.SigningKey(`0x${this.i_donDigest.toString(16)}`); + const signer = new this.#ethers.SigningKey(`0x${this.i_donDigest.toString(16)}`); let signature = signer.sign(h); if (BigInt(signature.s) > BigInt(N_2)) { @@ -702,7 +719,7 @@ class MockReportGenerator { } } -module.exports = { +export { ReportV1, ReportV2, ReportV3, @@ -716,5 +733,5 @@ module.exports = { ReportV11, ReportV12, ReportV13, - MockReportGenerator -} \ No newline at end of file + MockReportGenerator, +}; diff --git a/scripts/data-streams/ReportVersions.js b/scripts/data-streams/ReportVersions.js index b9194a4..5725dd9 100644 --- a/scripts/data-streams/ReportVersions.js +++ b/scripts/data-streams/ReportVersions.js @@ -535,7 +535,7 @@ class ReportV13 { } } -module.exports = { +export { ReportV1, ReportV2, ReportV3, @@ -549,4 +549,4 @@ module.exports = { ReportV11, ReportV12, ReportV13, -} \ No newline at end of file +}; diff --git a/scripts/examples/DataStreamsConsumerFork.ts b/scripts/examples/DataStreamsConsumerFork.ts deleted file mode 100644 index ce3f571..0000000 --- a/scripts/examples/DataStreamsConsumerFork.ts +++ /dev/null @@ -1,97 +0,0 @@ -import { ethers, network } from "hardhat"; -import { requestLinkFromFaucet, requestNativeFromFaucet } from "../data-streams/DataStreamsLocalSimulatorFork"; - -// 1st Terminal: npx hardhat node -// 2nd Terminal: npx hardhat run ./scripts/examples/DataStreamsConsumerFork.ts --network localhost - -async function main() { - const verifierProxyInterface = new ethers.Interface([ - "function verify(bytes calldata payload, bytes calldata parameterPayload) external payable returns (bytes memory verifierResponse)", - "function s_feeManager() external view returns (address)" - ]); - - const feeManagerInterface = new ethers.Interface([ - "function getFeeAndReward(address subscriber, bytes memory unverifiedReport, address quoteAddress) external returns ((address token,uint256 amount) memory, (address token,uint256 amount) memory, uint256)", - "function i_linkAddress() external view returns (address)", - "function i_nativeAddress() external view returns (address)", - "function i_rewardManager() external view returns (address)" - ]); - - const erc20Interface = new ethers.Interface(["function approve(address spender, uint256 amount) external returns (bool)"]); - - const ARBITRUM_SEPOLIA_RPC_URL = process.env.ARBITRUM_SEPOLIA_RPC_URL; - - await network.provider.request({ - method: "hardhat_reset", - params: [{ - forking: { - jsonRpcUrl: ARBITRUM_SEPOLIA_RPC_URL, - blockNumber: 99556570 - }, - }], - }); - - const [alice] = await ethers.getSigners(); - - const UNVERIFIED_INPUT_REPORT = "0x0006f9b553e393ced311551efd30d1decedb63d76ad41737462e2cdbbdff1578000000000000000000000000000000000000000000000000000000004b0b4006000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000220000000000000000000000000000000000000000000000000000000000000028001010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000120000359843a543ee2fe414dc14c7e7920ef10f4372990b79d6361cdc0dd1ba7820000000000000000000000000000000000000000000000000000000067407f400000000000000000000000000000000000000000000000000000000067407f4000000000000000000000000000000000000000000000000000001b1fa2a2d6400000000000000000000000000000000000000000000000000016e76dd08b2c34000000000000000000000000000000000000000000000000000000006741d0c00000000000000000000000000000000000000000000000b5c654dd994866cb600000000000000000000000000000000000000000000000b5c6042e4f23a92c400000000000000000000000000000000000000000000000b5c7dc7c8e30df80000000000000000000000000000000000000000000000000000000000000000002f68eeb7e489bef244eb83d56e1b8af210a65363e5ad4407f374e5c06f46db98c36b4181b70329535011ba504fb8e09570c10a6de7f1f138cf322237c72cb0d650000000000000000000000000000000000000000000000000000000000000002648579956ffb863e4ea9470a87bb59b26e91ea893f96c2ab933786e531f2701a06d92b4e896a42d40d19a3b5ba1711d5f00bc262084d7afce44a5bbde3014fe5"; - - const EXPECTED_REPORT_DATA = { - feedId: "0x000359843a543ee2fe414dc14c7e7920ef10f4372990b79d6361cdc0dd1ba782", - validFromTimestamp: 1732280128, - observationsTimestamp: 1732280128, - nativeFee: 29822686516800, - linkFee: 6446908323867700, - expiresAt: 1732366528, - price: 3353151968509396700000n, - bid: 3353129257778281000000n, - ask: 3353262200000000000000n - }; - - const verifierProxyAddress = `0x2ff010DEbC1297f19579B4246cad07bd24F2488A`; - const verifierProxy = new ethers.Contract(verifierProxyAddress, verifierProxyInterface, alice); - - const feeManagerAddress = await verifierProxy.s_feeManager(); - const feeManager = new ethers.Contract(feeManagerAddress, feeManagerInterface, alice); - - const rewardManagerAddress = await feeManager.i_rewardManager(); - - const defaultAbiCoder = ethers.AbiCoder.defaultAbiCoder(); - - const [, reportData] = defaultAbiCoder.decode(["bytes32[3]", "bytes"], UNVERIFIED_INPUT_REPORT); - - console.log(reportData); - - // Pay for verification in LINK - let feeTokenAddress = await feeManager.i_linkAddress(); - - await requestLinkFromFaucet(feeTokenAddress, alice.address, EXPECTED_REPORT_DATA.linkFee); - - const linkToken = new ethers.Contract(feeTokenAddress, erc20Interface, alice); - await linkToken.approve(rewardManagerAddress, EXPECTED_REPORT_DATA.linkFee); - - let parameterPayload = defaultAbiCoder.encode(["address"], [feeTokenAddress]); - - await verifierProxy.verify(UNVERIFIED_INPUT_REPORT, parameterPayload); // this must not revert - - // Pay for verification in Native - feeTokenAddress = await feeManager.i_nativeAddress(); - const gasCosts = ethers.parseEther("0.1"); - await requestNativeFromFaucet(alice.address, EXPECTED_REPORT_DATA.nativeFee + Number(gasCosts)); - - parameterPayload = defaultAbiCoder.encode(["address"], [feeTokenAddress]); - - await verifierProxy.verify(UNVERIFIED_INPUT_REPORT, parameterPayload, { value: EXPECTED_REPORT_DATA.nativeFee }); // this must not revert - - // const txData = verifierProxy.interface.encodeFunctionData("verify", [UNVERIFIED_INPUT_REPORT, parameterPayload]); - // const txResult = await alice.call({ - // to: verifierProxyAddress, - // data: txData, - // }); - // console.log(txResult); -} - - -main().catch((error) => { - console.error(error); - process.exitCode = 1; -}); diff --git a/scripts/examples/UnsafeTokenAndDataTransfer.ts b/scripts/examples/UnsafeTokenAndDataTransfer.ts deleted file mode 100644 index 5421648..0000000 --- a/scripts/examples/UnsafeTokenAndDataTransfer.ts +++ /dev/null @@ -1,60 +0,0 @@ -import { ethers } from "hardhat"; - -// npx hardhat run ./scripts/examples/UnsafeTokenAndDataTransfer.ts - -async function main() { - const localSimulatorFactory = await ethers.getContractFactory("CCIPLocalSimulator"); - const localSimulator = await localSimulatorFactory.deploy(); - - const config: { - chainSelector_: bigint; - sourceRouter_: string; - destinationRouter_: string; - wrappedNative_: string; - linkToken_: string; - ccipBnM_: string; - ccipLnM_: string; - } = await localSimulator.configuration(); - - const CCIPSender_UnsafeFactory = await ethers.getContractFactory("CCIPSender_Unsafe"); - const CCIPSender_Unsafe = await CCIPSender_UnsafeFactory.deploy(config.linkToken_, config.sourceRouter_); - - console.log("Deployed CCIPSender_Unsafe to: ", CCIPSender_Unsafe.target); - - const CCIPReceiver_UnsafeFactory = await ethers.getContractFactory("CCIPReceiver_Unsafe"); - const CCIPReceiver_Unsafe = await CCIPReceiver_UnsafeFactory.deploy(config.destinationRouter_); - - console.log("Deployed CCIPReceiver_Unsafe to: ", CCIPReceiver_Unsafe.target); - - console.log("-------------------------------------------") - - const ccipBnMFactory = await ethers.getContractFactory("BurnMintERC677Helper"); - const ccipBnM = ccipBnMFactory.attach(config.ccipBnM_); - - await ccipBnM.drip(CCIPSender_Unsafe.target); - - const textToSend = `Hello World`; - const amountToSend = 100; - - console.log(`Balance of CCIPSender_Unsafe before: `, await ccipBnM.balanceOf(CCIPSender_Unsafe.target)); - console.log(`Balance of CCIPReceiver_Unsafe before: `, await ccipBnM.balanceOf(CCIPReceiver_Unsafe.target)); - console.log("-------------------------------------------") - - const tx = await CCIPSender_Unsafe.send(CCIPReceiver_Unsafe.target, textToSend, config.chainSelector_, config.ccipBnM_, amountToSend); - console.log("Transaction hash: ", tx.hash); - - console.log("-------------------------------------------") - console.log(`Balance of CCIPSender_Unsafe after: `, await ccipBnM.balanceOf(CCIPSender_Unsafe.target)); - console.log(`Balance of CCIPReceiver_Unsafe after: `, await ccipBnM.balanceOf(CCIPReceiver_Unsafe.target)); - - console.log("-------------------------------------------") - const received = await CCIPReceiver_Unsafe.text(); - console.log(`Received:`, received); -} - -// We recommend this pattern to be able to use async/await everywhere -// and properly handle errors. -main().catch((error) => { - console.error(error); - process.exitCode = 1; -}); diff --git a/scripts/examples/UnsafeTokenAndDataTransferFork.ts b/scripts/examples/UnsafeTokenAndDataTransferFork.ts deleted file mode 100644 index 28b1aaf..0000000 --- a/scripts/examples/UnsafeTokenAndDataTransferFork.ts +++ /dev/null @@ -1,106 +0,0 @@ -import { ethers, network } from "hardhat"; -import { getEvm2EvmMessage, requestLinkFromTheFaucet, routeMessage } from "../CCIPLocalSimulatorFork"; - -// 1st Terminal: npx hardhat node -// 2nd Terminal: npx hardhat run ./scripts/examples/UnsafeTokenAndDataTransferFork.ts --network localhost - -async function main() { - const ETHEREUM_SEPOLIA_RPC_URL = process.env.ETHEREUM_SEPOLIA_RPC_URL; - const ARBITRUM_SEPOLIA_RPC_URL = process.env.ARBITRUM_SEPOLIA_RPC_URL; - - await network.provider.request({ - method: "hardhat_reset", - params: [{ - forking: { - jsonRpcUrl: ARBITRUM_SEPOLIA_RPC_URL, - blockNumber: 33079804 - }, - }], - }); - - const ccipRouterAddressArbSepolia = `0x2a9C5afB0d0e4BAb2BCdaE109EC4b0c4Be15a165`; - const ccipBnMTokenAddressArbSepolia = `0xA8C0c11bf64AF62CDCA6f93D3769B88BdD7cb93D` - - const CCIPReceiver_UnsafeFactory = await ethers.getContractFactory("CCIPReceiver_Unsafe"); - let CCIPReceiver_Unsafe = await CCIPReceiver_UnsafeFactory.deploy(ccipRouterAddressArbSepolia); - - console.log("Deployed CCIPReceiver_Unsafe to: ", CCIPReceiver_Unsafe.target); - - const ccipBnMFactory = await ethers.getContractFactory("BurnMintERC677Helper"); - const ccipBnMArbSepolia = ccipBnMFactory.attach(ccipBnMTokenAddressArbSepolia); - - console.log(`Balance of CCIPReceiver_Unsafe before: `, await ccipBnMArbSepolia.balanceOf(CCIPReceiver_Unsafe.target)); - - console.log("-------------------------------------------"); - - - await network.provider.request({ - method: "hardhat_reset", - params: [{ - forking: { - jsonRpcUrl: ETHEREUM_SEPOLIA_RPC_URL, - blockNumber: 5663645 - }, - }], - }); - - const linkTokenAddressSepolia = `0x779877A7B0D9E8603169DdbD7836e478b4624789`; - const ccipRouterAddressSepolia = `0x0BF3dE8c5D3e8A2B34D2BEeB17ABfCeBaf363A59`; - const ccipBnMTokenAddressSepolia = `0xFd57b4ddBf88a4e07fF4e34C487b99af2Fe82a05`; - - const CCIPSender_UnsafeFactory = await ethers.getContractFactory("CCIPSender_Unsafe"); - const CCIPSender_Unsafe = await CCIPSender_UnsafeFactory.deploy(linkTokenAddressSepolia, ccipRouterAddressSepolia); - - console.log("Deployed CCIPSender_Unsafe to: ", CCIPSender_Unsafe.target); - - const ccipBnMSepolia = ccipBnMFactory.attach(ccipBnMTokenAddressSepolia); - - await ccipBnMSepolia.drip(CCIPSender_Unsafe.target); - - const linkAmountForFees = 5000000000000000000n; // 5 LINK - await requestLinkFromTheFaucet(linkTokenAddressSepolia, await CCIPSender_Unsafe.getAddress(), linkAmountForFees); - - const textToSend = `Hello World`; - const amountToSend = 100; - const arbSepoliaChainSelector = 3478487238524512106n; - - console.log(`Balance of CCIPSender_Unsafe before: `, await ccipBnMSepolia.balanceOf(CCIPSender_Unsafe.target)); - - const tx = await CCIPSender_Unsafe.send(CCIPReceiver_Unsafe.target, textToSend, arbSepoliaChainSelector, ccipBnMTokenAddressSepolia, amountToSend); - console.log("Transaction hash: ", tx.hash); - const receipt = await tx.wait(); - if (!receipt) return; - const evm2EvmMessage = getEvm2EvmMessage(receipt); - - console.log(`Balance of CCIPSender_Unsafe after: `, await ccipBnMSepolia.balanceOf(CCIPSender_Unsafe.target)); - - console.log("-------------------------------------------"); - - await network.provider.request({ - method: "hardhat_reset", - params: [{ - forking: { - jsonRpcUrl: ARBITRUM_SEPOLIA_RPC_URL, - blockNumber: 33079804 - }, - }], - }); - - // We must redeploy it because of the network reset but it will be deployed to the same address because of the CREATE opcode: address = keccak256(rlp([sender_address,sender_nonce]))[12:] - CCIPReceiver_Unsafe = await CCIPReceiver_UnsafeFactory.deploy(ccipRouterAddressArbSepolia); - - if (!evm2EvmMessage) return; - await routeMessage(ccipRouterAddressArbSepolia, evm2EvmMessage); - - const received = await CCIPReceiver_Unsafe.text(); - console.log(`Received:`, received); - - console.log(`Balance of CCIPReceiver_Unsafe after: `, await ccipBnMArbSepolia.balanceOf(CCIPReceiver_Unsafe.target)); -} - -// We recommend this pattern to be able to use async/await everywhere -// and properly handle errors. -main().catch((error) => { - console.error(error); - process.exitCode = 1; -}); diff --git a/src/ccip/BurnMintERC677Helper.sol b/src/ccip/BurnMintERC677Helper.sol index 7aecbbf..1189abd 100644 --- a/src/ccip/BurnMintERC677Helper.sol +++ b/src/ccip/BurnMintERC677Helper.sol @@ -1,7 +1,7 @@ // SPDX-License-Identifier: BUSL-1.1 pragma solidity ^0.8.19; -import {BurnMintERC677} from "../vendor/chainlink/shared/token/ERC677/BurnMintERC677.sol"; +import {BurnMintERC677} from "@chainlink/contracts/src/v0.8/shared/token/ERC677/BurnMintERC677.sol"; /// @title BurnMintERC677Helper /// @notice This contract extends the functionality of the BurnMintERC677 token contract to include a `drip` function that mints one full token to a specified address. diff --git a/src/ccip/CCIPLocalRouter.sol b/src/ccip/CCIPLocalRouter.sol new file mode 100644 index 0000000..fcb038d --- /dev/null +++ b/src/ccip/CCIPLocalRouter.sol @@ -0,0 +1,286 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.20; + +import {IAny2EVMMessageReceiver} from "@chainlink/contracts-ccip/contracts/interfaces/IAny2EVMMessageReceiver.sol"; +import {IAny2EVMMessageReceiverV2} from "@chainlink/contracts-ccip/contracts/interfaces/IAny2EVMMessageReceiverV2.sol"; +import {IRouter} from "@chainlink/contracts-ccip/contracts/interfaces/IRouter.sol"; +import {IRouterClient} from "@chainlink/contracts-ccip/contracts/interfaces/IRouterClient.sol"; +import {CCVConfigValidation} from "@chainlink/contracts-ccip/contracts/libraries/CCVConfigValidation.sol"; +import {Client} from "@chainlink/contracts-ccip/contracts/libraries/Client.sol"; +import {ExtraArgsCodec} from "@chainlink/contracts-ccip/contracts/libraries/ExtraArgsCodec.sol"; +import {FinalityCodec} from "@chainlink/contracts-ccip/contracts/libraries/FinalityCodec.sol"; +import {Internal} from "@chainlink/contracts-ccip/contracts/libraries/Internal.sol"; +import {CallWithExactGas} from "@chainlink/contracts/src/v0.8/shared/call/CallWithExactGas.sol"; + +import {IERC20} from "@openzeppelin/contracts@5.3.0/token/ERC20/IERC20.sol"; +import {SafeERC20} from "@openzeppelin/contracts@5.3.0/token/ERC20/utils/SafeERC20.sol"; +import {ERC165Checker} from "@openzeppelin/contracts@5.3.0/utils/introspection/ERC165Checker.sol"; + +/// @title CCIPLocalRouter +/// @notice Local-mode router used by `CCIPLocalSimulator`. Mirrors `MockCCIPRouter` from `@chainlink/contracts-ccip` +/// 2.0.0 (same ABI, events and behaviour) and additionally applies the CCIP 2.0 finality rules of the OnRamp and +/// OffRamp, so a test that passes locally does not fail on a fork or in production: +/// - the requested finality of `GenericExtraArgsV3` must use a single mode (OnRamp check at send time); +/// - a Faster-Than-Finality message that is not a token-only transfer is only delivered to a receiver whose +/// `getCCVsAndFinalityConfig` allows the requested finality (OffRamp check). Receivers without +/// `IAny2EVMMessageReceiverV2` accept finalized messages only. +/// @dev `MockCCIPRouter.ccipSend` is not virtual, and wrapping it would change `msg.sender`, hence the mirror. +contract CCIPLocalRouter is IRouter, IRouterClient { + using SafeERC20 for IERC20; + using ERC165Checker for address; + + error InvalidAddress(bytes encodedAddress); + error InvalidExtraArgsTag(); + error ReceiverError(bytes err); + /// @dev Mirrors `OnRamp.TokenReceiverNotAllowed`: `GenericExtraArgsV3.tokenReceiver` is rejected on all EVM lanes + /// (`DestChainConfig.tokenReceiverAllowed` is always false for EVM per its NatSpec). + error TokenReceiverNotAllowed(uint64 destChainSelector); + /// @dev Mirrors `FeeQuoter.MessageGasLimitTooHigh`. + error MessageGasLimitTooHigh(); + /// @dev Mirrors `OnRamp.CanOnlySendOneTokenPerMessage`. + error CanOnlySendOneTokenPerMessage(); + /// @dev Mirrors `OnRamp.CannotSendZeroTokens`. + error CannotSendZeroTokens(); + /// @dev Mirrors `OffRamp.InvalidOptionalThreshold`. + error InvalidOptionalThreshold(uint8 wanted, uint256 got); + + event MessageExecuted(bytes32 messageId, uint64 sourceChainSelector, address offRamp, bytes32 calldataHash); + event MsgExecuted(bool success, bytes retData, uint256 gasUsed); + + uint16 public constant GAS_FOR_CALL_EXACT_CHECK = 5_000; + uint32 public constant DEFAULT_GAS_LIMIT = 200_000; + /// @dev Source chain selector stamped on local messages (Ethereum Sepolia), as in `MockCCIPRouter`. + uint64 internal constant SOURCE_CHAIN_SELECTOR = 16015286601757825753; + + uint256 internal s_mockFeeTokenAmount; //use setFee() to change to non-zero to test fees + /// @dev Nonce used to guarantee a unique messageId per send, see `ccipSend`. + uint256 internal s_nonce; + + function routeMessage( + Client.Any2EVMMessage calldata message, + uint16 gasForCallExactCheck, + uint256 gasLimit, + address receiver + ) external returns (bool success, bytes memory retData, uint256 gasUsed) { + return _routeMessage(message, gasForCallExactCheck, gasLimit, receiver); + } + + function _routeMessage( + Client.Any2EVMMessage memory message, + uint16 gasForCallExactCheck, + uint256 gasLimit, + address receiver + ) internal returns (bool success, bytes memory retData, uint256 gasUsed) { + if (_isTokenOnlyTransfer(message.data.length, gasLimit, receiver)) { + return (true, "", 0); + } + + bytes memory data = abi.encodeWithSelector(IAny2EVMMessageReceiver.ccipReceive.selector, message); + + (success, retData, gasUsed) = CallWithExactGas._callWithExactGasSafeReturnData( + data, receiver, gasLimit, gasForCallExactCheck, Internal.MAX_RET_BYTES + ); + + // Event to assist testing, does not exist on real deployments + emit MsgExecuted(success, retData, gasUsed); + + // Real router event + emit MessageExecuted(message.messageId, message.sourceChainSelector, msg.sender, keccak256(data)); + return (success, retData, gasUsed); + } + + /// @notice Sends the tx locally to the receiver instead of on the destination chain. + /// @dev Ignores destinationChainSelector + /// @dev Returns a mock message ID, which is not calculated from the message contents in the + /// same way as the real message ID. + function ccipSend(uint64 destinationChainSelector, Client.EVM2AnyMessage calldata message) + external + payable + returns (bytes32) + { + if (message.receiver.length != 32) revert InvalidAddress(message.receiver); + uint256 decodedReceiver = abi.decode(message.receiver, (uint256)); + // We want to disallow sending to address(0) and to precompiles, which exist on address(1) through address(9). + if (decodedReceiver > type(uint160).max || decodedReceiver < 10) revert InvalidAddress(message.receiver); + + uint256 feeTokenAmount = getFee(destinationChainSelector, message); + if (message.feeToken == address(0)) { + if (msg.value < feeTokenAmount) revert InsufficientFeeTokenAmount(); + } else { + if (msg.value > 0) revert InvalidMsgValue(); + IERC20(message.feeToken).safeTransferFrom(msg.sender, address(this), feeTokenAmount); + } + + address receiver = address(uint160(decodedReceiver)); + (uint256 gasLimit, bytes4 requestedFinality) = _parseExtraArgs(destinationChainSelector, message.extraArgs); + + // Mirrors OnRamp 2.0: more than one token per message, or a zero-amount token, are rejected at send time. + if (message.tokenAmounts.length > 1) revert CanOnlySendOneTokenPerMessage(); + if (message.tokenAmounts.length == 1 && message.tokenAmounts[0].amount == 0) revert CannotSendZeroTokens(); + + // Unique per send: distinguishes otherwise-identical messages (same sender/receiver/data/dest) that would + // otherwise collide on `keccak256(abi.encode(message))`. + bytes32 mockMsgId = keccak256(abi.encode(++s_nonce, msg.sender, destinationChainSelector, message)); + + Client.Any2EVMMessage memory executableMsg = Client.Any2EVMMessage({ + messageId: mockMsgId, + sourceChainSelector: SOURCE_CHAIN_SELECTOR, + sender: abi.encode(msg.sender), + data: message.data, + destTokenAmounts: message.tokenAmounts + }); + + _ensureReceiverAllowsFinality(receiver, executableMsg, gasLimit, requestedFinality); + + for (uint256 i = 0; i < message.tokenAmounts.length; ++i) { + IERC20(message.tokenAmounts[i].token).safeTransferFrom(msg.sender, receiver, message.tokenAmounts[i].amount); + } + + (bool success, bytes memory retData,) = + _routeMessage(executableMsg, GAS_FOR_CALL_EXACT_CHECK, gasLimit, receiver); + + if (!success) revert ReceiverError(retData); + + return mockMsgId; + } + + /// @dev Same token-only rule as OffRamp 2.0 `_isTokenOnlyTransfer`, which also decides whether the receiver is called. + function _isTokenOnlyTransfer(uint256 dataLength, uint256 gasLimit, address receiver) internal view returns (bool) { + return (dataLength == 0 && gasLimit == 0) || receiver.code.length == 0 + || !receiver.supportsInterface(type(IAny2EVMMessageReceiver).interfaceId); + } + + /// @dev Mirrors OffRamp 2.0 `_getCCVsFromReceiver`, which is called for every message that is not a token-only + /// transfer regardless of requested finality (including fully finalized messages, not only Faster-Than- + /// Finality ones). Token-only transfers skip it entirely, as the pool enforces finality for them in + /// production (pools are not simulated in local mode). + /// @dev Local mode has no CCV verifiers to query for quorum, so this only reproduces the validation and finality + /// parts of `_getCCVsFromReceiver`: duplicate required/optional CCVs and `optionalThreshold > + /// optionalCCVs.length` are rejected the same way, and the receiver's allowed finality is enforced. + /// @dev If `getCCVsAndFinalityConfig` reverts, that revert is bubbled as-is (not wrapped in `ReceiverError`). + /// In production the OffRamp does not distinguish this from any other revert during message execution: it + /// simply records `ExecutionStateChanged(..., FAILURE, returnData)` with the getter's raw revert data. + /// `ReceiverError` is reserved for the narrower case of the receiver's own `ccipReceive` call failing (see + /// `_routeMessage`/`OffRamp._callReceiver`), so bubbling here (rather than wrapping) keeps that error + /// meaning precise while still failing the local send, consistent with this contract's "fails in + /// production" -> "ccipSend reverts locally" mapping. + function _ensureReceiverAllowsFinality( + address receiver, + Client.Any2EVMMessage memory message, + uint256 gasLimit, + bytes4 requestedFinality + ) internal view { + if (_isTokenOnlyTransfer(message.data.length, gasLimit, receiver)) { + return; + } + + bytes4 allowedFinality = FinalityCodec.WAIT_FOR_FINALITY_FLAG; + if (receiver.supportsInterface(type(IAny2EVMMessageReceiverV2).interfaceId)) { + ( + address[] memory requiredCCVs, + address[] memory optionalCCVs, + uint8 optionalThreshold, + bytes4 receiverFinality + ) = IAny2EVMMessageReceiverV2(receiver) + .getCCVsAndFinalityConfig(message.sourceChainSelector, message.sender); + + CCVConfigValidation._assertNoDuplicates(requiredCCVs); + CCVConfigValidation._assertNoDuplicates(optionalCCVs); + + if (optionalThreshold > optionalCCVs.length) { + revert InvalidOptionalThreshold(optionalThreshold, optionalCCVs.length); + } + + allowedFinality = receiverFinality; + } + FinalityCodec._ensureRequestedFinalityAllowed(requestedFinality, allowedFinality); + } + + /// @param destinationChainSelector Destination chain selector, used only for the `TokenReceiverNotAllowed` error. + /// @return gasLimit Callback gas limit. + /// @return requestedFinality `GenericExtraArgsV3.requestedFinalityConfig`, or WAIT_FOR_FINALITY for older tags. + function _parseExtraArgs(uint64 destinationChainSelector, bytes calldata extraArgs) + internal + pure + returns (uint256 gasLimit, bytes4 requestedFinality) + { + // Mirrors FeeQuoter._parseUnvalidatedEVMExtraArgsFromBytes/_parseSVMExtraArgsFromBytes etc.: extraArgs + // shorter than 4 bytes (including empty) are treated as unset, not as an invalid tag. + if (extraArgs.length < 4) { + return (DEFAULT_GAS_LIMIT, FinalityCodec.WAIT_FOR_FINALITY_FLAG); + } + + bytes4 extraArgsTag = bytes4(extraArgs); + if (extraArgsTag == ExtraArgsCodec.GENERIC_EXTRA_ARGS_V3_TAG) { + ExtraArgsCodec.GenericExtraArgsV3 memory decoded = ExtraArgsCodec._decodeGenericExtraArgsV3(extraArgs); + // Mirrors OnRamp 2.0 `_parseExtraArgsWithDefaults`: tokenReceiver is rejected on all EVM lanes. + if (decoded.tokenReceiver.length != 0) { + revert TokenReceiverNotAllowed(destinationChainSelector); + } + // OnRamp 2.0 validates the wire shape of the requested finality at send time. + FinalityCodec._validateRequestedFinality(decoded.requestedFinalityConfig); + return (decoded.gasLimit, decoded.requestedFinalityConfig); + } else if (extraArgsTag == Client.GENERIC_EXTRA_ARGS_V2_TAG) { + return ( + _legacyGasLimit(abi.decode(extraArgs[4:], (Client.GenericExtraArgsV2)).gasLimit), + FinalityCodec.WAIT_FOR_FINALITY_FLAG + ); + } else if (extraArgsTag == Client.EVM_EXTRA_ARGS_V1_TAG) { + return (_legacyGasLimit(abi.decode(extraArgs[4:], (uint256))), FinalityCodec.WAIT_FOR_FINALITY_FLAG); + } + + revert InvalidExtraArgsTag(); + } + + /// @dev FeeQuoter compares the full uint256 V1/V2 gas limit against the lane's uint32 `maxPerMsgGasLimit` and reverts + /// `MessageGasLimitTooHigh`, so a value above uint32 is rejected everywhere; the upstream mock truncated it. + /// Local mode has no lane config, so lower lane caps are not enforced. + function _legacyGasLimit(uint256 gasLimit) internal pure returns (uint256) { + if (gasLimit > type(uint32).max) revert MessageGasLimitTooHigh(); + return gasLimit; + } + + /// @notice Always returns true to make sure this check can be performed on any chain. + function isChainSupported(uint64) external pure returns (bool supported) { + return true; + } + + /// @notice Returns an empty array. + function getSupportedTokens(uint64) external pure returns (address[] memory tokens) { + return new address[](0); + } + + /// @notice Returns 0 as the fee is not supported in this mock contract. + function getFee(uint64, Client.EVM2AnyMessage memory) public view returns (uint256) { + return s_mockFeeTokenAmount; + } + + /// @notice Sets the fees returned by getFee but is only checked when using native fee tokens + function setFee(uint256 feeAmount) external { + s_mockFeeTokenAmount = feeAmount; + } + + /// @notice Always returns address(1234567890) + function getOnRamp( + uint64 /* destChainSelector */ + ) + external + pure + returns (address onRampAddress) + { + return address(1234567890); + } + + /// @notice Always returns true + function isOffRamp( + uint64, + /* sourceChainSelector */ + address /* offRamp */ + ) + external + pure + returns (bool) + { + return true; + } +} diff --git a/src/ccip/CCIPLocalSimulator.sol b/src/ccip/CCIPLocalSimulator.sol index a2967fc..2f1cb29 100644 --- a/src/ccip/CCIPLocalSimulator.sol +++ b/src/ccip/CCIPLocalSimulator.sol @@ -4,13 +4,13 @@ pragma solidity ^0.8.19; import {WETH9} from "../shared/WETH9.sol"; import {LinkToken} from "../shared/LinkToken.sol"; import {BurnMintERC677Helper} from "./BurnMintERC677Helper.sol"; -import {MockCCIPRouter} from "../vendor/chainlink-ccip/test/mocks/MockRouter.sol"; +import {CCIPLocalRouter} from "./CCIPLocalRouter.sol"; import {IRouterClient} from "@chainlink/contracts-ccip/contracts/interfaces/IRouterClient.sol"; -import {IERC20} from "../vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/IERC20.sol"; -import {SafeERC20} from "../vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/utils/SafeERC20.sol"; +import {IERC20} from "@openzeppelin/contracts@4.8.3/token/ERC20/IERC20.sol"; +import {SafeERC20} from "@openzeppelin/contracts@4.8.3/token/ERC20/utils/SafeERC20.sol"; import {IOwner} from "@chainlink/contracts-ccip/contracts/interfaces/IOwner.sol"; import {IGetCCIPAdmin} from "@chainlink/contracts-ccip/contracts/interfaces/IGetCCIPAdmin.sol"; -import {AccessControl} from "../vendor/openzeppelin-solidity/v5.0.2/contracts/access/AccessControl.sol"; +import {AccessControl} from "@openzeppelin/contracts@5.3.0/access/AccessControl.sol"; /// @title CCIPLocalSimulator /// @notice This contract simulates local CCIP (Cross-Chain Interoperability Protocol) operations for testing and development purposes. @@ -34,7 +34,7 @@ contract CCIPLocalSimulator { BurnMintERC677Helper internal immutable i_ccipLnM; /// @notice The mock CCIP router instance - MockCCIPRouter internal immutable i_mockRouter; + CCIPLocalRouter internal immutable i_mockRouter; /// @notice The list of supported token addresses address[] internal s_supportedTokens; @@ -50,7 +50,7 @@ contract CCIPLocalSimulator { i_linkToken = new LinkToken(); i_ccipBnM = new BurnMintERC677Helper("CCIP-BnM", "CCIP-BnM"); i_ccipLnM = new BurnMintERC677Helper("CCIP-LnM", "CCIP-LnM"); - i_mockRouter = new MockCCIPRouter(); + i_mockRouter = new CCIPLocalRouter(); s_supportedTokens.push(address(i_ccipBnM)); s_supportedTokens.push(address(i_ccipLnM)); diff --git a/src/ccip/CCIPLocalSimulatorFork.sol b/src/ccip/CCIPLocalSimulatorFork.sol index 90b7d86..03e0e06 100644 --- a/src/ccip/CCIPLocalSimulatorFork.sol +++ b/src/ccip/CCIPLocalSimulatorFork.sol @@ -3,23 +3,16 @@ pragma solidity ^0.8.19; import {Test, Vm, console2} from "forge-std/Test.sol"; import {Register} from "./Register.sol"; -import {Internal} from "@chainlink/contracts-ccip/contracts/libraries/Internal.sol"; import {Client} from "@chainlink/contracts-ccip/contracts/libraries/Client.sol"; -import {IERC20} from "../vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/IERC20.sol"; +import {IERC20} from "@openzeppelin/contracts@4.8.3/token/ERC20/IERC20.sol"; +import {CCIPForkAdapterTypes} from "./adapters/CCIPForkAdapterTypes.sol"; +import {CCIPForkAdapterPreV1dot6} from "./adapters/CCIPForkAdapterPreV1dot6.sol"; +import {CCIPForkAdapterV1dot6} from "./adapters/CCIPForkAdapterV1dot6.sol"; +import {CCIPForkAdapterV2, IMessageV1Decoder, IOffRampExecuteV2} from "./adapters/CCIPForkAdapterV2.sol"; +import {MessageV1CodecDecoder} from "./adapters/MessageV1CodecDecoder.sol"; /// @title IRouterFork Interface interface IRouterFork { - /** - * @notice Structure representing an offRamp configuration - * - * @param sourceChainSelector - The chain selector for the source chain - * @param offRamp - The address of the offRamp contract - */ - struct OffRamp { - uint64 sourceChainSelector; - address offRamp; - } - /** * @notice Return the configured onramp for specific a destination chain. * @param destChainSelector The destination chain Id to get the onRamp for. @@ -32,48 +25,7 @@ interface IRouterFork { * * @return offRamps - Array of OffRamp structs */ - function getOffRamps() external view returns (OffRamp[] memory); -} - -/// @title IEVM2EVMOffRampFork Interface -interface IEVM2EVMOffRampFork { - /** - * @notice Executes a single CCIP message on the offRamp - * - * @param message - The CCIP message to be executed - * @param offchainTokenData - Additional offchain token data - */ - function executeSingleMessage( - Internal.Any2EVMRampMessage memory message, - bytes[] calldata offchainTokenData, - uint32[] calldata tokenGasOverrides - ) external; -} - -interface InternalPreV1dot6 { - struct EVM2EVMMessage { - uint64 sourceChainSelector; // ────────╮ the chain selector of the source chain, note: not chainId - address sender; // ────────────────────╯ sender address on the source chain - address receiver; // ──────────────────╮ receiver address on the destination chain - uint64 sequenceNumber; // ─────────────╯ sequence number, not unique across lanes - uint256 gasLimit; // user supplied maximum gas amount available for dest chain execution - bool strict; // ───────────────────────╮ DEPRECATED - uint64 nonce; // │ nonce for this lane for this sender, not unique across senders/lanes - address feeToken; // ──────────────────╯ fee token - uint256 feeTokenAmount; // fee token amount - bytes data; // arbitrary data payload supplied by the message sender - Client.EVMTokenAmount[] tokenAmounts; // array of tokens and amounts to transfer - bytes[] sourceTokenData; // array of token data, one per token - bytes32 messageId; // a hash of the message data - } -} - -interface IEVM2EVMOffRampPreV1dot6Fork { - function executeSingleMessage( - InternalPreV1dot6.EVM2EVMMessage memory message, - bytes[] memory offchainTokenData, - uint32[] memory tokenGasOverrides - ) external; + function getOffRamps() external view returns (CCIPForkAdapterTypes.RouterOffRamp[] memory); } /// @title IEVM2EVMOffRampStaticConfigFork @@ -107,116 +59,318 @@ interface IOffRampSourceConfigFork { function getSourceChainConfig(uint64 sourceChainSelector) external view returns (SourceChainConfig memory); } +/// @title IOffRampSourceConfigV2Fork +/// @notice Minimal view/update surface for the CCIP 2.0 OffRamp per-source-chain config, including +/// the CCV sets used to verify messages. Mirrors `OffRamp.SourceChainConfig`. +interface IOffRampSourceConfigV2Fork { + struct SourceChainConfig { + address router; + bool isEnabled; + bytes[] onRamps; + address[] defaultCCVs; + address[] laneMandatedCCVs; + } + + struct SourceChainConfigArgs { + address router; + uint64 sourceChainSelector; + bool isEnabled; + bytes[] onRamps; + address[] defaultCCVs; + address[] laneMandatedCCVs; + } + + function getSourceChainConfig(uint64 sourceChainSelector) external view returns (SourceChainConfig memory); + + function applySourceChainConfigUpdates(SourceChainConfigArgs[] calldata updates) external; + + function owner() external view returns (address); +} + +interface ITypeAndVersionProbe { + function typeAndVersion() external view returns (string memory); +} + +interface IVersionedVerifierResolverAdminFork { + struct InboundImplementationArgs { + bytes4 version; + address verifier; + } + + function owner() external view returns (address); + + function applyInboundImplementationUpdates(InboundImplementationArgs[] calldata implementations) external; + + function getInboundImplementation(bytes calldata verifierResults) external view returns (address); +} + +contract CCIPLocalSimulatorV2NoOpVerifier { + fallback() external payable {} +} + /// @title CCIPLocalSimulatorFork /// @notice Works with Foundry only contract CCIPLocalSimulatorFork is Test { - /** - * @notice Events emitted when a CCIP send request is made - */ - event CCIPSendRequested(InternalPreV1dot6.EVM2EVMMessage message); - event CCIPMessageSent( - uint64 indexed destChainSelector, uint64 indexed sequenceNumber, Internal.EVM2AnyRampMessage message - ); + enum CCIPEra { + UNKNOWN, + PRE_V1_DOT_6, + V1_DOT_6, + V2 + } + + enum V2VerificationMode { + STRICT, + HYBRID, + SYNTHETIC_ONLY, + /// @notice Derives the CCV selection from the destination OffRamp's + /// `getCCVsForMessage(encodedMessage)` and executes the raw encoded message through + /// the permissionless `execute` entrypoint, so routing does not depend on the local + /// `MessageV1` codec. Fork-only. + OFFRAMP_DERIVED + } + + enum V2ExecutionMode { + AUTO, + RESPECT_NO_EXEC, + MANUAL_ONLY + } + + /// @notice Outcome of a captured CCIP message (see `getMessageStatus`). + /// @dev NOT_FOUND: never captured by this simulator. QUEUED: a CCIP 2.0 `NO_EXECUTION_ADDRESS` message waiting for + /// `executePendingV2Message`, or a 1.6 / 2.0 message whose destination fork was not passed to + /// `switchChainAndRouteMessage` yet (a later call that includes it routes the message; the reason says so). + /// FAILED: not routed, or execution did not succeed (the reason is recorded). + enum MessageStatus { + NOT_FOUND, + QUEUED, + FAILED, + SUCCESS + } - error InvalidExtraArgsTag(); + struct MessageOutcome { + MessageStatus status; + bytes reason; + } - error InvalidEVMAddressEncoding(bytes encodedAddress); + /// @notice Strict routing: a captured CCIP message was not routed to any destination fork. + error CCIPLocalSimulatorFork__MessageNotRouted(bytes32 messageId, string reason); + /// @notice Strict routing: a routed message did not execute successfully. `reason` is the revert data of the + /// execution (for CCIP 2.0, the OffRamp's recorded failure). + error CCIPLocalSimulatorFork__MessageExecutionFailed(bytes32 messageId, bytes reason); - uint32 public constant DEFAULT_GAS_LIMIT = 200_000; + /// @dev A captured 1.6 / 2.0 message whose destination fork was not in `forkIds`, kept for a later routing call. + struct AwaitingDestinationMessage { + uint256 sourceForkId; + uint64 sourceChainSelector; + address emitter; + bytes32[] topics; + bytes data; + } + + struct PendingV2Message { + bool exists; + uint64 sourceChainSelector; + address emitter; + bytes32[] topics; + bytes data; + } /// @notice The immutable register instance Register immutable i_register; + /// @notice Helper to decode MessageV1 from memory bytes. + MessageV1CodecDecoder immutable i_messageV1Decoder; + /// @notice The address of the LINK faucet address constant LINK_FAUCET = 0x4281eCF07378Ee595C564a59048801330f3084eE; /// @notice Mapping to track processed messages mapping(bytes32 messageId => bool isProcessed) internal s_processedMessages; + /// @notice Outcome of every captured message, see `getMessageStatus`. + mapping(bytes32 messageId => MessageOutcome outcome) internal s_messageOutcomes; + + /// @notice When true (the default), routing reverts on a message that is not routed or does not execute successfully. + bool internal s_strictRouting; + + /// @dev `Internal.MessageExecutionState.SUCCESS`. + uint256 private constant V2_EXECUTION_STATE_SUCCESS = 2; + /// @dev OffRamp 2.0 `NoStateProgressMade(bytes32 messageId, bytes err)`: a retry of a FAILURE message reverts with it. + bytes4 private constant NO_STATE_PROGRESS_MADE_SELECTOR = bytes4(keccak256("NoStateProgressMade(bytes32,bytes)")); + bytes4 private constant SYNTHETIC_V2_VERIFIER_VERSION = 0x464f524b; // "FORK" + bytes4 private constant INVALID_VERIFIER_RESULTS_SELECTOR = bytes4(keccak256("InvalidVerifierResults()")); + bytes4 private constant INVALID_VERIFIER_RESULTS_LENGTH_SELECTOR = + bytes4(keccak256("InvalidVerifierResultsLength()")); + bytes4 private constant INBOUND_IMPLEMENTATION_NOT_FOUND_SELECTOR = + bytes4(keccak256("InboundImplementationNotFound(address,bytes)")); + + mapping(uint256 routeScope => address verifier) internal s_syntheticV2VerifierByScope; + mapping(uint256 routeScope => mapping(bytes32 messageId => PendingV2Message pendingMessage)) internal + s_pendingV2MessagesByScope; + mapping(uint256 routeScope => bytes32[] messageIds) internal s_pendingV2MessageIdsByScope; + + /// @notice Captured messages waiting for their destination fork, in send order. + AwaitingDestinationMessage[] internal s_awaitingDestination; + + /// @notice CCIP 2.0 routers deployed next to the Register router (which `getNetworkDetails` returns). + /// @dev Hand-maintained: `Register` is generated from the CCIP docs API and only carries one router per chain. + mapping(uint256 chainId => address router) internal s_ccipV2Routers; + + V2VerificationMode internal s_v2VerificationMode; + V2ExecutionMode internal s_v2ExecutionMode; + /** * @notice Constructor to initialize the contract */ constructor() { vm.recordLogs(); - i_register = new Register(); + // Register keeps its network details in code, and is placed with `vm.etch` rather than deployed: deploying it + // would cost the size of that code in gas on the active fork, and the simulator is usually created right + // after `createSelectFork`, under the forked chain's block gas limit. The address is unique per simulator. + address registerAddress = + address(uint160(uint256(keccak256(abi.encode("chainlink-local.CCIPLocalSimulatorFork.Register", this))))); + vm.etch(registerAddress, type(Register).runtimeCode); + i_register = Register(registerAddress); + i_messageV1Decoder = new MessageV1CodecDecoder(); + vm.makePersistent(address(i_register)); + vm.makePersistent(address(i_messageV1Decoder)); + + s_v2VerificationMode = V2VerificationMode.OFFRAMP_DERIVED; + s_strictRouting = true; + + // CCIP 2.0 routers verified on-chain (Sep 2026). Lanes of the Register router may be CCIP 2.0 as well. + s_ccipV2Routers[11155111] = 0x784d49a71BB4C48eB7dA4cD7e6Ecb424f9b5EAB1; // Ethereum Sepolia + s_ccipV2Routers[43113] = 0x7C9B8B4e8024e5Ee8A630F6FCe9015e470dA5763; // Avalanche Fuji + s_v2ExecutionMode = V2ExecutionMode.RESPECT_NO_EXEC; } /** * @notice To be called after the sending of the cross-chain message (`ccipSend`). - * Goes through the list of past logs and looks for the `CCIPSendRequested` and `CCIPMessageSent` events. + * Goes through the list of past logs and looks for the supported CCIP send events. * Switches to a destination network fork. Routes the sent cross-chain message on the destination network. - * If you sent more than one message, it will try to route all of them to `forkId`. + * If you sent more than one message, it will try to route all of them to `forkId`. A 1.6 or 2.0 message + * to another chain is kept (status QUEUED) and routed by a later call that includes its destination fork. + * `forkId` is the active fork when the call returns. * * @param forkId - The ID of the destination network fork. This is the returned value of `createFork()` or `createSelectFork()` */ function switchChainAndRouteMessage(uint256 forkId) external { - uint256 sourceForkId = vm.activeFork(); - address sourceRouterAddress = i_register.getNetworkDetails(block.chainid).routerAddress; - uint256[] memory forkIds = new uint256[](1); forkIds[0] = forkId; - _routeCapturedMessages(forkIds, sourceForkId, sourceRouterAddress); + _routeCapturedMessages(forkIds, vm.activeFork()); + vm.selectFork(forkId); } /** * @notice To be called after the sending of the cross-chain message (`ccipSend`). * Override variant of the `switchChainAndRouteMessage(uint256 forkId)` function in case of multiple destination forks. - * Goes through the list of past logs and looks for the `CCIPSendRequested` and `CCIPMessageSent` events. - * Loops through provided `forkIds` and tries to route the message to correct destination. - * If you haven't provide correct `forkId`, the message will get lost. - * If you sent more than one message, it will try to route all of them to correct destinations. + * Goes through provided `forkIds` and tries to route messages to the matching destination. A 1.6 or 2.0 + * message to a chain that is not in `forkIds` is kept (status QUEUED) for a later call. * * @param forkIds - The IDs of the destination network forks. These are the returned values of `createFork()` or `createSelectFork()` */ function switchChainAndRouteMessage(uint256[] memory forkIds) external { - uint256 sourceForkId = vm.activeFork(); - address sourceRouterAddress = i_register.getNetworkDetails(block.chainid).routerAddress; - - _routeCapturedMessages(forkIds, sourceForkId, sourceRouterAddress); + _routeCapturedMessages(forkIds, vm.activeFork()); } /** - * @notice Returns the default values for currently CCIP supported networks. If network is not present or some of the values are changed, user can manually add new network details using the `setNetworkDetails` function. - * - * @param chainId - The blockchain network chain ID. For example 11155111 for Ethereum Sepolia. Not CCIP chain selector. - * - * @return networkDetails - The tuple containing: - * chainSelector - The unique CCIP Chain Selector. - * routerAddress - The address of the CCIP Router contract. - * linkAddress - The address of the LINK token. - * wrappedNativeAddress - The address of the wrapped native token that can be used for CCIP fees. - * ccipBnMAddress - The address of the CCIP BnM token. - * ccipLnMAddress - The address of the CCIP LnM token. + * @notice Returns the default values for currently CCIP supported networks. */ function getNetworkDetails(uint256 chainId) external view returns (Register.NetworkDetails memory) { return i_register.getNetworkDetails(chainId); } /** - * @notice If network details are not present or some of the values are changed, user can manually add new network details using the `setNetworkDetails` function. - * - * @param chainId - The blockchain network chain ID. For example 11155111 for Ethereum Sepolia. Not CCIP chain selector. - * @param networkDetails - The tuple containing: - * chainSelector - The unique CCIP Chain Selector. - * routerAddress - The address of the CCIP Router contract. - * linkAddress - The address of the LINK token. - * wrappedNativeAddress - The address of the wrapped native token that can be used for CCIP fees. - * ccipBnMAddress - The address of the CCIP BnM token. - * ccipLnMAddress - The address of the CCIP LnM token. + * @notice Manually sets network details. */ function setNetworkDetails(uint256 chainId, Register.NetworkDetails memory networkDetails) external { i_register.setNetworkDetails(chainId, networkDetails); } /** - * @notice Requests LINK tokens from the faucet. The provided amount of tokens are transferred to provided destination address. + * @notice Returns the CCIP 2.0 router deployed next to the Register router on `chainId`, or address(0) if none is + * known. Send through this router (and point receivers at it) to use its CCIP 2.0 lanes; messages sent + * through either router are routed by `switchChainAndRouteMessage`. + */ + function getCCIPV2RouterAddress(uint256 chainId) external view returns (address) { + return s_ccipV2Routers[chainId]; + } + + /** + * @notice Manually sets the CCIP 2.0 router for `chainId`. Use address(0) to route through the Register router only. + */ + function setCCIPV2RouterAddress(uint256 chainId, address router) external { + s_ccipV2Routers[chainId] = router; + } + + /** + * @notice Returns the destination OffRamp configured for `sourceOnRamp` on the given fork, if + * discoverable. Useful to configure CCIP 2.0 lane CCVs before routing a message. * - * @param to - The address to which LINK tokens are to be sent. - * @param amount - The amount of LINK tokens to send. + * @param forkId - The ID of the destination network fork. + * @param sourceChainSelector - The chain selector of the source chain. + * @param sourceOnRamp - The address of the OnRamp on the source chain. * - * @return success - Returns `true` if the transfer of tokens was successful, otherwise `false`. + * @return offRamp - The matching OffRamp address, or address(0) when not found. + */ + function getOffRampForLane(uint256 forkId, uint64 sourceChainSelector, address sourceOnRamp) + external + returns (address offRamp) + { + uint256 previousForkId = vm.activeFork(); + vm.selectFork(forkId); + offRamp = _findOffRampOnCurrentFork(sourceChainSelector, sourceOnRamp); + vm.selectFork(previousForkId); + } + + /** + * @notice Points a destination lane's default CCVs at `ccv` by impersonating the OffRamp owner. + * Fork-only testing helper for CCIP 2.0 lanes: the mocked CCV must be configured on the + * destination lane before a captured message can be routed through the permissionless + * execution path. Router, enabled flag, OnRamp bindings and lane-mandated CCVs are preserved. + * + * @param forkId - The ID of the destination network fork. + * @param offRamp - The destination OffRamp that holds the lane config. + * @param sourceChainSelector - The chain selector of the source chain. + * @param ccv - The CCV address to set as the lane default. + */ + function setLaneDefaultCCVs(uint256 forkId, address offRamp, uint64 sourceChainSelector, address ccv) external { + uint256 previousForkId = vm.activeFork(); + vm.selectFork(forkId); + _setLaneDefaultCCVs(offRamp, sourceChainSelector, ccv); + vm.selectFork(previousForkId); + } + + function _setLaneDefaultCCVs(address offRamp, uint64 sourceChainSelector, address ccv) internal { + IOffRampSourceConfigV2Fork.SourceChainConfig memory current = + IOffRampSourceConfigV2Fork(offRamp).getSourceChainConfig(sourceChainSelector); + require(current.isEnabled, "CCIPLocalSimulatorFork: lane not enabled"); + + address[] memory defaultCCVs = new address[](1); + defaultCCVs[0] = ccv; + + IOffRampSourceConfigV2Fork.SourceChainConfigArgs[] memory updates = + new IOffRampSourceConfigV2Fork.SourceChainConfigArgs[](1); + updates[0] = IOffRampSourceConfigV2Fork.SourceChainConfigArgs({ + router: current.router, + sourceChainSelector: sourceChainSelector, + isEnabled: true, + onRamps: current.onRamps, + defaultCCVs: defaultCCVs, + // Lane-mandated CCVs are kept, so the fork lane is never less strict than production. + laneMandatedCCVs: current.laneMandatedCCVs + }); + + address owner = IOffRampSourceConfigV2Fork(offRamp).owner(); + vm.startPrank(owner); + IOffRampSourceConfigV2Fork(offRamp).applySourceChainConfigUpdates(updates); + vm.stopPrank(); + } + + /** + * @notice Requests LINK tokens from the faucet. */ function requestLinkFromFaucet(address to, uint256 amount) external returns (bool success) { address linkAddress = i_register.getNetworkDetails(block.chainid).linkAddress; @@ -226,260 +380,1048 @@ contract CCIPLocalSimulatorFork is Test { vm.stopPrank(); } + /** + * @notice Enables or disables strict routing (enabled by default). When enabled, `switchChainAndRouteMessage` and + * `executePendingV2Message` revert with `CCIPLocalSimulatorFork__MessageNotRouted` when a captured CCIP + * message cannot be routed to any of the given forks, and with + * `CCIPLocalSimulatorFork__MessageExecutionFailed` when a routed message does not execute successfully. + * When disabled, failures are logged and recorded (see `getMessageStatus`) and routing continues. + */ + function setStrictRouting(bool strict) external { + s_strictRouting = strict; + } + + function getStrictRouting() external view returns (bool strict) { + return s_strictRouting; + } + + /** + * @notice Returns the outcome of a captured CCIP message. + * + * @param messageId - The CCIP message ID. + * + * @return status - NOT_FOUND, QUEUED, FAILED or SUCCESS. + * @return reason - For FAILED: the revert data of the execution, or an `Error(string)` explaining why the message + * was not routed. Empty otherwise. + */ + function getMessageStatus(bytes32 messageId) external view returns (MessageStatus status, bytes memory reason) { + MessageOutcome storage outcome = s_messageOutcomes[messageId]; + return (outcome.status, outcome.reason); + } + + function setV2VerificationMode(V2VerificationMode mode) external { + s_v2VerificationMode = mode; + } + + function getV2VerificationMode() external view returns (V2VerificationMode mode) { + return s_v2VerificationMode; + } + + function setV2ExecutionMode(V2ExecutionMode mode) external { + s_v2ExecutionMode = mode; + } + + function getV2ExecutionMode() external view returns (V2ExecutionMode mode) { + return s_v2ExecutionMode; + } + + function getPendingV2MessageIds() external view returns (bytes32[] memory messageIds) { + return s_pendingV2MessageIdsByScope[_routeScope()]; + } + + function isPendingV2Message(bytes32 messageId) external view returns (bool isPending) { + return s_pendingV2MessagesByScope[_routeScope()][messageId].exists; + } + + function executePendingV2Message(bytes32 messageId) external returns (bool attempted) { + uint256 routeScope = _routeScope(); + PendingV2Message storage pending = s_pendingV2MessagesByScope[routeScope][messageId]; + if (!pending.exists) { + return false; + } + + Vm.Log memory entry = _pendingV2MessageToLog(pending); + attempted = _routeV2Message(entry, pending.sourceChainSelector, true); + if (!attempted) { + _recordNotRouted(messageId, "no OffRamp on the current fork serves this message's lane"); + } + + if (s_processedMessages[messageId]) { + _dequeuePendingV2Message(routeScope, messageId); + } + } + /** * @notice Internal function to route captured messages to their respective destination forks. * - * @param forkIds - The IDs of the destination network forks. These are the returned values of `createFork()` or `createSelectFork()`, not chainIds. - * @param sourceForkId - The ID of the source network fork. This is the returned value of `createFork()` or `createSelectFork()`, not chainId. - * @param sourceRouterAddress - The address of the Router on the source chain. + * @param forkIds - Destination fork IDs. + * @param sourceForkId - Source fork ID. */ - function _routeCapturedMessages(uint256[] memory forkIds, uint256 sourceForkId, address sourceRouterAddress) - internal - { + function _routeCapturedMessages(uint256[] memory forkIds, uint256 sourceForkId) internal { Vm.Log[] memory entries = vm.getRecordedLogs(); uint256 logsLength = entries.length; + uint64 sourceChainSelector = i_register.getNetworkDetails(block.chainid).chainSelector; + + // Messages from earlier calls go first, in send order. Those whose destination is still missing are kept again. + AwaitingDestinationMessage[] memory awaiting = s_awaitingDestination; + delete s_awaitingDestination; + for (uint256 i; i < awaiting.length; ++i) { + Vm.Log memory entry; + entry.topics = awaiting[i].topics; + entry.data = awaiting[i].data; + entry.emitter = awaiting[i].emitter; + _routeCapturedMessage(entry, forkIds, awaiting[i].sourceForkId, awaiting[i].sourceChainSelector); + } for (uint256 i; i < logsLength; ++i) { - // Try Routing pre v1.6 message - if (entries[i].topics[0] == CCIPSendRequested.selector) { - InternalPreV1dot6.EVM2EVMMessage memory message = - abi.decode(entries[i].data, (InternalPreV1dot6.EVM2EVMMessage)); - - if (!s_processedMessages[message.messageId]) { - for (uint256 j; j < forkIds.length; ++j) { - vm.selectFork(forkIds[j]); - uint64 destinationChainSelector = i_register.getNetworkDetails(block.chainid).chainSelector; - - vm.selectFork(sourceForkId); - address onRampContract = IRouterFork(sourceRouterAddress).getOnRamp(destinationChainSelector); - - // Deliver message - if (entries[i].emitter == onRampContract) { - vm.selectFork(forkIds[j]); - - IRouterFork.OffRamp[] memory offRamps = - IRouterFork(i_register.getNetworkDetails(block.chainid).routerAddress).getOffRamps(); - uint256 offRampsLength = offRamps.length; - - address matchedOffRamp = - _findOffRampForOnRamp(offRamps, message.sourceChainSelector, onRampContract); - bool routed = false; - if (matchedOffRamp != address(0)) { - routed = _executePreV1dot6(matchedOffRamp, message); - } - if (!routed) { - for (uint256 k = offRampsLength; k > 0; --k) { - if (offRamps[k - 1].sourceChainSelector != message.sourceChainSelector) { - continue; - } - if (matchedOffRamp != address(0) && offRamps[k - 1].offRamp == matchedOffRamp) { - continue; - } - if (_executePreV1dot6(offRamps[k - 1].offRamp, message)) { - routed = true; - break; - } - } - } - if (routed) { - s_processedMessages[message.messageId] = true; - } - } - } - } + _routeCapturedMessage(entries[i], forkIds, sourceForkId, sourceChainSelector); + } + } + + function _routeCapturedMessage( + Vm.Log memory entry, + uint256[] memory forkIds, + uint256 sourceForkId, + uint64 sourceChainSelector + ) internal { + CCIPEra logEra = _detectEraFromLog(entry); + if (logEra == CCIPEra.UNKNOWN) { + return; + } + + (bool isCCIPMessage, bytes32 messageId) = _messageIdFromLog(entry, logEra); + if (!isCCIPMessage) { + // Same event signature as a CCIP OnRamp, but not a decodable CCIP message: not ours to route. + console2.log("CCIPLocalSimulatorFork: skipped a log with a CCIP event signature that is not a CCIP message"); + return; + } + + // 1.6 and 2.0 OnRamps serve several destinations, so their logs name the destination (topics[1]). Pre-1.6 + // EVM2EVMOnRamps serve one lane each, so the emitter check below selects the destination. + (bool hasDestination, uint64 logDestinationChainSelector) = _logDestinationChainSelector(entry, logEra); + + // How far routing got, for the failure reason: 0 = no destination fork, 1 = emitter not an OnRamp for it, + // 2 = no OffRamp on the destination serves the lane. + uint256 progress; + for (uint256 j; j < forkIds.length; ++j) { + vm.selectFork(forkIds[j]); + uint64 destinationChainSelector = i_register.getNetworkDetails(block.chainid).chainSelector; + + if (hasDestination && logDestinationChainSelector != destinationChainSelector) { + continue; } + if (progress < 1) progress = 1; - // Try Routing post v1.6 message - if (entries[i].topics[0] == CCIPMessageSent.selector) { - Internal.EVM2AnyRampMessage memory message = abi.decode(entries[i].data, (Internal.EVM2AnyRampMessage)); - - if (!s_processedMessages[message.header.messageId]) { - for (uint256 j; j < forkIds.length; ++j) { - vm.selectFork(forkIds[j]); - uint64 destinationChainSelector = i_register.getNetworkDetails(block.chainid).chainSelector; - - vm.selectFork(sourceForkId); - address onRampContract = IRouterFork(sourceRouterAddress).getOnRamp(destinationChainSelector); - - // Deliver message - if (entries[i].emitter == onRampContract) { - vm.selectFork(forkIds[j]); - - IRouterFork.OffRamp[] memory offRamps = - IRouterFork(i_register.getNetworkDetails(block.chainid).routerAddress).getOffRamps(); - uint256 offRampsLength = offRamps.length; - - address matchedOffRamp = - _findOffRampForOnRamp(offRamps, message.header.sourceChainSelector, onRampContract); - bool routed = false; - if (matchedOffRamp != address(0)) { - routed = _executePostV1dot6(matchedOffRamp, message); - } - if (!routed) { - for (uint256 k = offRampsLength; k > 0; --k) { - if (offRamps[k - 1].sourceChainSelector != message.header.sourceChainSelector) { - continue; - } - if (matchedOffRamp != address(0) && offRamps[k - 1].offRamp == matchedOffRamp) { - continue; - } - if (_executePostV1dot6(offRamps[k - 1].offRamp, message)) { - routed = true; - break; - } - } - } - if (routed) { - s_processedMessages[message.header.messageId] = true; - } - } - } - } + vm.selectFork(sourceForkId); + address onRampContract = _findSourceOnRamp(destinationChainSelector, entry.emitter); + if (onRampContract == address(0)) { + continue; + } + if (progress < 2) progress = 2; + + vm.selectFork(forkIds[j]); + if (_routeMessageForEra(entry, logEra, onRampContract, sourceChainSelector)) { + return; + } + } + + if (progress == 0 && hasDestination) { + _awaitDestination(messageId, entry, sourceForkId, sourceChainSelector); + } else if (progress == 0) { + _recordNotRouted(messageId, "none of the given forks is the message's destination chain"); + } else if (progress == 1) { + _recordNotRouted( + messageId, + "the log emitter is not the OnRamp of the Register router or the CCIP 2.0 router on the source chain" + ); + } else { + _recordNotRouted(messageId, "no OffRamp on the destination routers serves this lane"); + } + } + + /// @return hasDestination Whether the log names its destination chain (1.6 and 2.0 `CCIPMessageSent`). + /// @return destinationChainSelector The destination chain selector (`topics[1]`). + function _logDestinationChainSelector(Vm.Log memory entry, CCIPEra logEra) + internal + pure + returns (bool hasDestination, uint64 destinationChainSelector) + { + if ( + (logEra == CCIPEra.V1_DOT_6 && entry.topics.length >= 3) + || (logEra == CCIPEra.V2 && entry.topics.length >= 4) + ) { + return (true, uint64(uint256(entry.topics[1]))); + } + return (false, 0); + } + + /// @return isCCIPMessage False when the log has a CCIP event signature but does not decode as a CCIP message. + /// @return messageId The CCIP message ID. + function _messageIdFromLog(Vm.Log memory entry, CCIPEra logEra) + internal + view + returns (bool isCCIPMessage, bytes32 messageId) + { + if (logEra == CCIPEra.V2) { + if (entry.topics.length < 4) { + return (false, bytes32(0)); } + return (true, entry.topics[3]); + } + try this.decodeMessageId(uint8(logEra), entry.data) returns (bytes32 decoded) { + return (true, decoded); + } catch { + return (false, bytes32(0)); + } + } + + /// @notice External decode helper for pre-1.6 and 1.6 message IDs. Do not call directly. + /// @dev Decoding runs in an external self-call so a mis-shaped log fails inside `try/catch`. + function decodeMessageId(uint8 logEra, bytes calldata data) external pure returns (bytes32) { + if (CCIPEra(logEra) == CCIPEra.PRE_V1_DOT_6) { + return CCIPForkAdapterPreV1dot6.decodeMessage(data).messageId; + } + return CCIPForkAdapterV1dot6.decodeMessage(data).header.messageId; + } + + /// @dev Not a failure, even in strict mode: routing one destination fork per call is the documented usage. + function _awaitDestination(bytes32 messageId, Vm.Log memory entry, uint256 sourceForkId, uint64 sourceChainSelector) + internal + { + AwaitingDestinationMessage storage awaiting = s_awaitingDestination.push(); + awaiting.sourceForkId = sourceForkId; + awaiting.sourceChainSelector = sourceChainSelector; + awaiting.emitter = entry.emitter; + awaiting.topics = entry.topics; + awaiting.data = entry.data; + s_messageOutcomes[messageId] = MessageOutcome({ + status: MessageStatus.QUEUED, + reason: abi.encodeWithSignature( + "Error(string)", "waiting for a switchChainAndRouteMessage call that includes the destination fork" + ) + }); + } + + function _recordSuccess(bytes32 messageId) internal { + s_processedMessages[messageId] = true; + delete s_messageOutcomes[messageId].reason; + s_messageOutcomes[messageId].status = MessageStatus.SUCCESS; + } + + function _recordQueued(bytes32 messageId) internal { + s_messageOutcomes[messageId].status = MessageStatus.QUEUED; + } + + function _recordExecutionFailure(bytes32 messageId, bytes memory reason) internal { + if (s_strictRouting) { + revert CCIPLocalSimulatorFork__MessageExecutionFailed(messageId, reason); + } + s_messageOutcomes[messageId] = MessageOutcome({status: MessageStatus.FAILED, reason: reason}); + console2.log("CCIPLocalSimulatorFork: message execution failed"); + console2.logBytes32(messageId); + console2.logBytes(reason); + } + + function _recordNotRouted(bytes32 messageId, string memory reason) internal { + if (s_strictRouting) { + revert CCIPLocalSimulatorFork__MessageNotRouted(messageId, reason); } + s_messageOutcomes[messageId] = + MessageOutcome({status: MessageStatus.FAILED, reason: abi.encodeWithSignature("Error(string)", reason)}); + console2.log("CCIPLocalSimulatorFork: message not routed:", reason); + console2.logBytes32(messageId); + } + + function _routeMessageForEra( + Vm.Log memory entry, + CCIPEra routingEra, + address sourceOnRamp, + uint64 sourceChainSelector + ) internal returns (bool attempted) { + if (routingEra == CCIPEra.PRE_V1_DOT_6) { + return _routePreV1dot6Message(entry, sourceOnRamp); + } + + if (routingEra == CCIPEra.V1_DOT_6) { + return _routeV1dot6Message(entry, sourceOnRamp); + } + + if (routingEra == CCIPEra.V2) { + return _routeV2Message(entry, sourceChainSelector, false); + } + + return false; + } + + function _routePreV1dot6Message(Vm.Log memory entry, address sourceOnRamp) internal returns (bool attempted) { + CCIPForkAdapterTypes.PreV1dot6Message memory message = CCIPForkAdapterPreV1dot6.decodeMessage(entry.data); + + if (s_processedMessages[message.messageId]) { + return true; + } + + address offRamp = _findOffRampOnCurrentFork(message.sourceChainSelector, sourceOnRamp); + if (offRamp == address(0)) { + return false; + } + + vm.startPrank(offRamp); + (bool success, bytes memory returnData) = CCIPForkAdapterPreV1dot6.execute(offRamp, message); + vm.stopPrank(); + + if (success) { + _recordSuccess(message.messageId); + } else { + _recordExecutionFailure(message.messageId, returnData); + } + + return true; + } + + function _routeV1dot6Message(Vm.Log memory entry, address sourceOnRamp) internal returns (bool attempted) { + CCIPForkAdapterTypes.V1dot6EVM2AnyRampMessage memory message = CCIPForkAdapterV1dot6.decodeMessage(entry.data); + + if (s_processedMessages[message.header.messageId]) { + return true; + } + + address offRamp = _findOffRampOnCurrentFork(message.header.sourceChainSelector, sourceOnRamp); + if (offRamp == address(0)) { + return false; + } + + vm.startPrank(offRamp); + (bool success, bytes memory returnData) = CCIPForkAdapterV1dot6.execute(message, offRamp); + vm.stopPrank(); + + if (success) { + _recordSuccess(message.header.messageId); + } else { + _recordExecutionFailure(message.header.messageId, returnData); + } + + return true; + } + + /// @notice Routes a CCIP 2.0 message on the current (destination) fork. + /// @param sourceChainSelector Chain selector of the source chain the message was sent from. + /// @param forceExecution Execute even if the V2 execution mode would queue the message. + function _routeV2Message(Vm.Log memory entry, uint64 sourceChainSelector, bool forceExecution) + internal + returns (bool attempted) + { + if (s_v2VerificationMode == V2VerificationMode.OFFRAMP_DERIVED) { + return _routeV2MessageOffRampDerived(entry, sourceChainSelector, forceExecution); + } + return _routeV2MessageWithLocalCodec(entry, forceExecution); + } + + /// @notice Routes a CCIP 2.0 message without decoding it locally: the destination OffRamp's `getCCVsForMessage` + /// selects the CCVs and the permissionless `execute` entrypoint consumes the raw encoded message, so routing + /// keeps working when the on-chain `MessageV1` wire format moves ahead of the pinned codec. + /// @dev `execute` does not revert when the inner execution fails on a first attempt (it records `FAILURE`), so + /// the message is marked processed only when the OffRamp reports `SUCCESS`. + function _routeV2MessageOffRampDerived(Vm.Log memory entry, uint64 sourceChainSelector, bool forceExecution) + internal + returns (bool attempted) + { + if (entry.topics.length < 4) { + return false; + } + + bytes32 messageId = entry.topics[3]; + if (s_processedMessages[messageId]) { + return true; + } + + (,, bytes memory encodedMessage, CCIPForkAdapterTypes.V2Receipt[] memory receipts,) = + abi.decode(entry.data, (address, uint256, bytes, CCIPForkAdapterTypes.V2Receipt[], bytes[])); + // The OffRamp keys execution state on keccak256(encodedMessage). A log whose messageId topic differs is not a + // genuine CCIP 2.0 message. + if (keccak256(encodedMessage) != messageId) { + _recordNotRouted(messageId, "messageId topic does not match keccak256(encodedMessage)"); + return true; + } + + // The OnRamp emits the event, so the log emitter is the source OnRamp (queued messages keep it too). OffRamp 2.0 + // only executes a message stamped with its own address, so the stamped OffRamp wins when it serves the lane + // (the router lookup returns the newest OffRamp of the lane, which differs while an OffRamp is being replaced). + address offRamp = _stampedV2OffRamp(encodedMessage); + if (offRamp == address(0) || !_offRampServesOnRamp(offRamp, sourceChainSelector, entry.emitter)) { + offRamp = _findOffRampOnCurrentFork(sourceChainSelector, entry.emitter); + } + if (offRamp == address(0)) { + return false; + } + + if (!forceExecution && _shouldQueueV2Message(receipts)) { + _enqueuePendingV2Message(messageId, entry, sourceChainSelector); + _recordQueued(messageId); + return true; + } + + (address[] memory ccvs, bytes[] memory verifierResults) = + _buildSyntheticV2VerificationInputs(offRamp, encodedMessage, new bytes[](0)); + + try IOffRampExecuteV2(offRamp).execute(encodedMessage, ccvs, verifierResults, uint32(0)) { + if (_isV2ExecutionSuccess(offRamp, messageId)) { + _recordSuccess(messageId); + _dequeuePendingV2Message(_routeScope(), messageId); + } else { + _recordExecutionFailure(messageId, _v2FailureReason(offRamp, encodedMessage, ccvs, verifierResults)); + } + } catch (bytes memory err) { + _recordExecutionFailure(messageId, err); + } + + return true; + } + + /// @dev Reads `offRampAddress` from a MessageV1 wire encoding: a 69-byte fixed header, then `onRampAddress` and + /// `offRampAddress`, each prefixed with a 1-byte length (see `MessageV1Codec`). address(0) when malformed or + /// not a 20-byte EVM address. + function _stampedV2OffRamp(bytes memory encodedMessage) internal pure returns (address offRamp) { + if (encodedMessage.length < 70) { + return address(0); + } + // Widen before adding: `70 + uint8(...)` is uint8 arithmetic and overflows for onRamps longer than 185 bytes. + uint256 offRampLengthIndex = 70 + uint256(uint8(encodedMessage[69])); + if (encodedMessage.length < offRampLengthIndex + 21 || uint8(encodedMessage[offRampLengthIndex]) != 20) { + return address(0); + } + assembly { + // Word at `encodedMessage + 32 + offRampLengthIndex + 1`: the 20 address bytes, left-aligned. + offRamp := shr(96, mload(add(add(encodedMessage, 33), offRampLengthIndex))) + } + } + + /// @dev OffRamp 2.0 `execute` records FAILURE without reverting, and does not return the reason. A second attempt + /// of a FAILURE message reverts `NoStateProgressMade(messageId, err)` with the original failure, and a reverted + /// call leaves no state behind, so the retry recovers the reason without side effects. + function _v2FailureReason( + address offRamp, + bytes memory encodedMessage, + address[] memory ccvs, + bytes[] memory verifierResults + ) internal returns (bytes memory reason) { + (bool ok, bytes memory err) = offRamp.call( + abi.encodeWithSelector(IOffRampExecuteV2.execute.selector, encodedMessage, ccvs, verifierResults, uint32(0)) + ); + if (ok || err.length < 4 || bytes4(err) != NO_STATE_PROGRESS_MADE_SELECTOR) { + return err; + } + try this.decodeNoStateProgressMade(err) returns (bytes memory innerErr) { + return innerErr; + } catch { + return err; + } + } + + /// @notice External decode helper for `NoStateProgressMade(bytes32,bytes)` revert data. Do not call directly. + function decodeNoStateProgressMade(bytes calldata revertData) external pure returns (bytes memory innerErr) { + (, innerErr) = abi.decode(revertData[4:], (bytes32, bytes)); + } + + /// @dev Reads `getExecutionState(messageId)` from an OffRamp 2.0 without trusting the return shape. + function _isV2ExecutionSuccess(address offRamp, bytes32 messageId) internal view returns (bool) { + (bool ok, bytes memory data) = + offRamp.staticcall(abi.encodeWithSelector(IOffRampExecuteV2.getExecutionState.selector, messageId)); + return ok && data.length == 32 && abi.decode(data, (uint256)) == V2_EXECUTION_STATE_SUCCESS; + } + + function _routeV2MessageWithLocalCodec(Vm.Log memory entry, bool forceExecution) internal returns (bool attempted) { + CCIPForkAdapterV2.DecodedMessage memory decodedMessage = + CCIPForkAdapterV2.decodeMessage(entry.topics, entry.data, IMessageV1Decoder(address(i_messageV1Decoder))); + + if (s_processedMessages[decodedMessage.messageId]) { + return true; + } + + address offRamp = CCIPForkAdapterV2.extractOffRampAddress(decodedMessage); + if (offRamp == address(0)) { + // The OnRamp emits the event and stamps `onRampAddress = abi.encode(address(this))`, so the log emitter + // is the source OnRamp (also for queued messages, which keep the original emitter). + offRamp = _findOffRampOnCurrentFork(decodedMessage.message.sourceChainSelector, entry.emitter); + } + if (offRamp == address(0)) { + return false; + } + + if (!forceExecution && _shouldQueueV2Message(decodedMessage.receipts)) { + _enqueuePendingV2Message(decodedMessage.messageId, entry, decodedMessage.message.sourceChainSelector); + _recordQueued(decodedMessage.messageId); + return true; + } + + (address[] memory ccvs, bytes[] memory verifierResults, bool usedSyntheticInputs) = + _deriveV2VerificationInputs(offRamp, decodedMessage); + + vm.startPrank(offRamp); + (bool success, bytes memory returnData) = + CCIPForkAdapterV2.execute(offRamp, decodedMessage.message, decodedMessage.messageId, ccvs, verifierResults); + vm.stopPrank(); + + if ( + !success && s_v2VerificationMode == V2VerificationMode.HYBRID && !usedSyntheticInputs + && _isRecoverableV2VerificationFailure(returnData) + ) { + (ccvs, verifierResults) = + _buildSyntheticV2VerificationInputs(offRamp, decodedMessage.encodedMessage, verifierResults); + + vm.startPrank(offRamp); + (success, returnData) = CCIPForkAdapterV2.execute( + offRamp, decodedMessage.message, decodedMessage.messageId, ccvs, verifierResults + ); + vm.stopPrank(); + } + + if (success) { + _recordSuccess(decodedMessage.messageId); + _dequeuePendingV2Message(_routeScope(), decodedMessage.messageId); + } else { + _recordExecutionFailure(decodedMessage.messageId, returnData); + } + + return true; + } + + function deriveV2VerificationInputs(address offRamp, CCIPForkAdapterV2.DecodedMessage calldata decodedMessage) + external + view + returns (address[] memory ccvs, bytes[] memory verifierResults) + { + return CCIPForkAdapterV2.deriveVerificationInputs(offRamp, decodedMessage); + } + + function _deriveV2VerificationInputs(address offRamp, CCIPForkAdapterV2.DecodedMessage memory decodedMessage) + internal + returns (address[] memory ccvs, bytes[] memory verifierResults, bool usedSyntheticInputs) + { + if (s_v2VerificationMode == V2VerificationMode.SYNTHETIC_ONLY) { + (ccvs, verifierResults) = + _buildSyntheticV2VerificationInputs(offRamp, decodedMessage.encodedMessage, new bytes[](0)); + return (ccvs, verifierResults, true); + } + + try this.deriveV2VerificationInputs(offRamp, decodedMessage) returns ( + address[] memory derivedCCVs, bytes[] memory derivedVerifierResults + ) { + return (derivedCCVs, derivedVerifierResults, false); + } catch { + if (s_v2VerificationMode == V2VerificationMode.HYBRID) { + (ccvs, verifierResults) = + _buildSyntheticV2VerificationInputs(offRamp, decodedMessage.encodedMessage, new bytes[](0)); + return (ccvs, verifierResults, true); + } + + return (new address[](0), new bytes[](0), false); + } + } + + function _buildSyntheticV2VerificationInputs( + address offRamp, + bytes memory encodedMessage, + bytes[] memory existingVerifierResults + ) internal returns (address[] memory ccvs, bytes[] memory verifierResults) { + ccvs = _deriveV2CCVSelection(offRamp, encodedMessage); + verifierResults = new bytes[](ccvs.length); + + if (existingVerifierResults.length == ccvs.length) { + for (uint256 i; i < ccvs.length; ++i) { + verifierResults[i] = existingVerifierResults[i]; + } + } + + if (ccvs.length == 0) { + return (ccvs, verifierResults); + } + + address syntheticVerifier = _getOrCreateSyntheticV2Verifier(); + bytes memory syntheticResult = abi.encodePacked(SYNTHETIC_V2_VERIFIER_VERSION); + + for (uint256 i; i < ccvs.length; ++i) { + if (_configureResolverForSyntheticV2Verification(ccvs[i], syntheticVerifier)) { + verifierResults[i] = syntheticResult; + } + } + } + + function _deriveV2CCVSelection(address offRamp, bytes memory encodedMessage) + internal + view + returns (address[] memory ccvs) + { + address[] memory requiredCCVs; + address[] memory optionalCCVs; + uint8 threshold; + + (bool ok, bytes memory data) = + offRamp.staticcall(abi.encodeWithSelector(IOffRampExecuteV2.getCCVsForMessage.selector, encodedMessage)); + if (!ok) { + return new address[](0); + } + // Decoded in an external self-call so an unexpected return shape cannot revert the routing flow. + try this.decodeCCVsForMessage(data) returns ( + address[] memory requiredCCVs_, address[] memory optionalCCVs_, uint8 threshold_ + ) { + requiredCCVs = requiredCCVs_; + optionalCCVs = optionalCCVs_; + threshold = threshold_; + } catch { + return new address[](0); + } + + ccvs = CCIPForkAdapterV2.selectCCVs(requiredCCVs, optionalCCVs, threshold); + } + + function _configureResolverForSyntheticV2Verification(address resolver, address syntheticVerifier) + internal + returns (bool configured) + { + // Read from the resolver every time instead of cached: `vm.rollFork` or a snapshot revert on the destination + // fork drops the update, while this (usually persistent) simulator's storage keeps it. + if (_resolvesSyntheticVersionTo(resolver, syntheticVerifier)) { + return true; + } + + // Low-level probe: a high-level `try` does not catch the no-code check or a mis-shaped return value. + (bool ok, bytes memory data) = + resolver.staticcall(abi.encodeWithSelector(IVersionedVerifierResolverAdminFork.owner.selector)); + if (!ok) { + return false; + } + (bool isAddress, address resolverOwner) = _decodeAddressWord(data); + if (!isAddress || resolverOwner == address(0)) { + return false; + } + + IVersionedVerifierResolverAdminFork.InboundImplementationArgs[] memory updates = + new IVersionedVerifierResolverAdminFork.InboundImplementationArgs[](1); + updates[0] = IVersionedVerifierResolverAdminFork.InboundImplementationArgs({ + version: SYNTHETIC_V2_VERIFIER_VERSION, verifier: syntheticVerifier + }); + + vm.startPrank(resolverOwner); + try IVersionedVerifierResolverAdminFork(resolver).applyInboundImplementationUpdates(updates) { + configured = true; + } catch { + configured = false; + } + vm.stopPrank(); + } + + function _resolvesSyntheticVersionTo(address resolver, address syntheticVerifier) internal view returns (bool) { + (bool ok, bytes memory data) = resolver.staticcall( + abi.encodeWithSelector( + IVersionedVerifierResolverAdminFork.getInboundImplementation.selector, + abi.encodePacked(SYNTHETIC_V2_VERIFIER_VERSION) + ) + ); + if (!ok) { + return false; + } + (bool isAddress, address implementation) = _decodeAddressWord(data); + return isAddress && implementation == syntheticVerifier; + } + + function _getOrCreateSyntheticV2Verifier() internal returns (address verifier) { + uint256 routeScope = _routeScope(); + verifier = s_syntheticV2VerifierByScope[routeScope]; + // A verifier without code was dropped by a fork state reset (see `_configureResolverForSyntheticV2Verification`). + if (verifier == address(0) || verifier.code.length == 0) { + verifier = address(new CCIPLocalSimulatorV2NoOpVerifier()); + s_syntheticV2VerifierByScope[routeScope] = verifier; + } + } + + function _routeScope() internal view returns (uint256 routeScope) { + try vm.activeFork() returns (uint256 activeForkId) { + return activeForkId; + } catch { + return block.chainid; + } + } + + function _shouldQueueV2Message(CCIPForkAdapterTypes.V2Receipt[] memory receipts) internal view returns (bool) { + if (s_v2ExecutionMode == V2ExecutionMode.AUTO) { + return false; + } + + if (s_v2ExecutionMode == V2ExecutionMode.MANUAL_ONLY) { + return true; + } + + return _isNoExecV2Message(receipts); + } + + function _isNoExecV2Message(CCIPForkAdapterTypes.V2Receipt[] memory receipts) internal pure returns (bool) { + uint256 receiptsLength = receipts.length; + if (receiptsLength < 2) { + return false; + } + + address executor = receipts[receiptsLength - 2].issuer; + return executor == Client.NO_EXECUTION_ADDRESS; + } + + function _enqueuePendingV2Message(bytes32 messageId, Vm.Log memory entry, uint64 sourceChainSelector) internal { + uint256 routeScope = _routeScope(); + PendingV2Message storage pending = s_pendingV2MessagesByScope[routeScope][messageId]; + if (pending.exists) { + return; + } + + pending.exists = true; + pending.sourceChainSelector = sourceChainSelector; + pending.emitter = entry.emitter; + pending.data = entry.data; + delete pending.topics; + for (uint256 i; i < entry.topics.length; ++i) { + pending.topics.push(entry.topics[i]); + } + + s_pendingV2MessageIdsByScope[routeScope].push(messageId); + } + + function _dequeuePendingV2Message(uint256 routeScope, bytes32 messageId) internal { + PendingV2Message storage pending = s_pendingV2MessagesByScope[routeScope][messageId]; + if (!pending.exists) { + return; + } + + delete s_pendingV2MessagesByScope[routeScope][messageId]; + + bytes32[] storage messageIds = s_pendingV2MessageIdsByScope[routeScope]; + for (uint256 i; i < messageIds.length; ++i) { + if (messageIds[i] == messageId) { + messageIds[i] = messageIds[messageIds.length - 1]; + messageIds.pop(); + break; + } + } + } + + function _pendingV2MessageToLog(PendingV2Message storage pending) internal view returns (Vm.Log memory entry) { + entry.topics = new bytes32[](pending.topics.length); + for (uint256 i; i < pending.topics.length; ++i) { + entry.topics[i] = pending.topics[i]; + } + entry.data = pending.data; + entry.emitter = pending.emitter; + } + + function _isRecoverableV2VerificationFailure(bytes memory returnData) internal pure returns (bool) { + if (returnData.length < 4) { + return false; + } + + bytes4 selector = bytes4(returnData); + return selector == INVALID_VERIFIER_RESULTS_SELECTOR || selector == INVALID_VERIFIER_RESULTS_LENGTH_SELECTOR + || selector == INBOUND_IMPLEMENTATION_NOT_FOUND_SELECTOR; } /// @notice Returns the destination OffRamp whose lane is configured for `sourceOnRamp`, if discoverable. + /// @dev The router lists OffRamps of several protocol versions for the same source chain (e.g. 1.6 and 2.0 + /// side by side during a lane migration). Their getters share selectors but not return shapes, and a + /// mismatched return payload fails to decode in the calling frame, which Solidity `try/catch` cannot catch. + /// So every candidate is probed with low-level calls and decoded through an external self-call, and a + /// candidate of unknown shape is skipped instead of reverting the routing flow. function _findOffRampForOnRamp( - IRouterFork.OffRamp[] memory offRamps, + CCIPForkAdapterTypes.RouterOffRamp[] memory offRamps, uint64 sourceChainSelector, address sourceOnRamp ) internal view returns (address offRampAddress) { - uint256 length = offRamps.length; - for (uint256 i = length; i > 0; --i) { - address candidateAddr = offRamps[i - 1].offRamp; + for (uint256 i = offRamps.length; i > 0; --i) { if (offRamps[i - 1].sourceChainSelector != sourceChainSelector) { continue; } - try IOffRampSourceConfigFork(candidateAddr).getSourceChainConfig(sourceChainSelector) returns ( - IOffRampSourceConfigFork.SourceChainConfig memory cfg - ) { - if (cfg.isEnabled && cfg.onRamp.length == 32) { - address configuredOnRamp = abi.decode(cfg.onRamp, (address)); - if (configuredOnRamp == sourceOnRamp) { - return candidateAddr; - } - } - } catch {} - - try IEVM2EVMOffRampStaticConfigFork(candidateAddr).getStaticConfig() returns ( - IEVM2EVMOffRampStaticConfigFork.StaticConfig memory staticCfg - ) { - if (staticCfg.onRamp == sourceOnRamp && staticCfg.sourceChainSelector == sourceChainSelector) { - return candidateAddr; - } - } catch {} + address candidate = offRamps[i - 1].offRamp; + if (_offRampServesOnRamp(candidate, sourceChainSelector, sourceOnRamp)) { + return candidate; + } } return address(0); } - function _executePreV1dot6(address offRamp, InternalPreV1dot6.EVM2EVMMessage memory message) + function _offRampServesOnRamp(address offRamp, uint64 sourceChainSelector, address sourceOnRamp) internal - returns (bool success) + view + returns (bool) { - uint256 numberOfTokens = message.tokenAmounts.length; - bytes[] memory offchainTokenData = new bytes[](numberOfTokens); - uint32[] memory tokenGasOverrides = new uint32[](numberOfTokens); - for (uint256 l; l < numberOfTokens; ++l) { - tokenGasOverrides[l] = uint32(message.gasLimit); + (bool isReadable, CCIPEra era) = _detectOffRampEra(offRamp); + + if (!isReadable) { + // No readable `typeAndVersion` (older deployments, test doubles): probe every known shape. A payload of + // another version may still decode, but a match needs the lane's OnRamp bytes to equal + // `abi.encode(sourceOnRamp)` exactly, so a wrong-shape decode yields no match and the next shape is tried. + return _v1dot6LaneMatches(offRamp, sourceChainSelector, sourceOnRamp) + || _v2LaneMatches(offRamp, sourceChainSelector, sourceOnRamp) + || _preV1dot6LaneMatches(offRamp, sourceChainSelector, sourceOnRamp); } - vm.startPrank(offRamp); - try IEVM2EVMOffRampPreV1dot6Fork(offRamp).executeSingleMessage(message, offchainTokenData, tokenGasOverrides) { - vm.stopPrank(); - return true; - } catch (bytes memory err) { - vm.stopPrank(); - console2.logBytes(err); + if (era == CCIPEra.V2) { + return _v2LaneMatches(offRamp, sourceChainSelector, sourceOnRamp); + } + if (era == CCIPEra.V1_DOT_6) { + // Pre-1.6 fallback kept as defense in depth for 1.6 deployments; it can no longer revert. + return _v1dot6LaneMatches(offRamp, sourceChainSelector, sourceOnRamp) + || _preV1dot6LaneMatches(offRamp, sourceChainSelector, sourceOnRamp); + } + if (era == CCIPEra.PRE_V1_DOT_6) { + return _preV1dot6LaneMatches(offRamp, sourceChainSelector, sourceOnRamp); + } + + // Readable `typeAndVersion` of an OffRamp version this simulator does not know: unknown shape, skip. + return false; + } + + /// @return isReadable False when `typeAndVersion` is missing or does not decode to a string. + /// @return era The OffRamp era, or UNKNOWN for an unrecognised type or version. + function _detectOffRampEra(address offRamp) internal view returns (bool isReadable, CCIPEra era) { + (bool ok, bytes memory data) = + offRamp.staticcall(abi.encodeWithSelector(ITypeAndVersionProbe.typeAndVersion.selector)); + if (!ok) { + return (false, CCIPEra.UNKNOWN); + } + + bytes memory typeAndVersion; + try this.decodeTypeAndVersion(data) returns (string memory decoded) { + typeAndVersion = bytes(decoded); + } catch { + return (false, CCIPEra.UNKNOWN); + } + + if (_startsWith(typeAndVersion, bytes("OffRamp 2."))) { + return (true, CCIPEra.V2); + } + if (_startsWith(typeAndVersion, bytes("OffRamp 1.6"))) { + return (true, CCIPEra.V1_DOT_6); + } + if (_startsWith(typeAndVersion, bytes("EVM2EVMOffRamp 1."))) { + return (true, CCIPEra.PRE_V1_DOT_6); + } + return (true, CCIPEra.UNKNOWN); + } + + function _v2LaneMatches(address offRamp, uint64 sourceChainSelector, address sourceOnRamp) + internal + view + returns (bool) + { + (bool ok, bytes memory data) = offRamp.staticcall( + abi.encodeWithSelector(IOffRampSourceConfigV2Fork.getSourceChainConfig.selector, sourceChainSelector) + ); + if (!ok) { return false; } + + try this.decodeSourceChainConfigV2(data) returns (IOffRampSourceConfigV2Fork.SourceChainConfig memory cfg) { + if (!cfg.isEnabled) { + return false; + } + for (uint256 i; i < cfg.onRamps.length; ++i) { + (bool isAddress, address onRamp) = _decodeAddressWord(cfg.onRamps[i]); + if (isAddress && onRamp == sourceOnRamp) { + return true; + } + } + } catch {} + + return false; } - function _executePostV1dot6(address offRamp, Internal.EVM2AnyRampMessage memory message) + function _v1dot6LaneMatches(address offRamp, uint64 sourceChainSelector, address sourceOnRamp) internal - returns (bool success) + view + returns (bool) { - uint256 gasLimit = _fromBytes(message.extraArgs).gasLimit; - uint256 numberOfTokens = message.tokenAmounts.length; - Internal.Any2EVMTokenTransfer[] memory tokenAmounts = new Internal.Any2EVMTokenTransfer[](numberOfTokens); - for (uint256 l; l < numberOfTokens; ++l) { - tokenAmounts[l] = Internal.Any2EVMTokenTransfer({ - sourcePoolAddress: abi.encode(message.tokenAmounts[l].sourcePoolAddress), - destTokenAddress: _decodeEVMAddress(message.tokenAmounts[l].destTokenAddress), - destGasAmount: abi.decode(message.tokenAmounts[l].destExecData, (uint32)), - extraData: message.tokenAmounts[l].extraData, - amount: message.tokenAmounts[l].amount - }); - } - Internal.Any2EVMRampMessage memory any2EVMRampMessage = Internal.Any2EVMRampMessage({ - header: message.header, - sender: abi.encode(message.sender), - data: message.data, - receiver: _decodeEVMAddress(message.receiver), - gasLimit: gasLimit, - tokenAmounts: tokenAmounts - }); - bytes[] memory offchainTokenData = new bytes[](numberOfTokens); - uint32[] memory tokenGasOverrides = new uint32[](numberOfTokens); - for (uint256 l; l < numberOfTokens; ++l) { - tokenGasOverrides[l] = uint32(gasLimit); + (bool ok, bytes memory data) = offRamp.staticcall( + abi.encodeWithSelector(IOffRampSourceConfigFork.getSourceChainConfig.selector, sourceChainSelector) + ); + if (!ok) { + return false; } - vm.startPrank(offRamp); - try IEVM2EVMOffRampFork(offRamp).executeSingleMessage(any2EVMRampMessage, offchainTokenData, tokenGasOverrides) - { - vm.stopPrank(); - return true; - } catch (bytes memory err) { - vm.stopPrank(); - console2.logBytes(err); + try this.decodeSourceChainConfigV1dot6(data) returns (IOffRampSourceConfigFork.SourceChainConfig memory cfg) { + (bool isAddress, address onRamp) = _decodeAddressWord(cfg.onRamp); + return cfg.isEnabled && isAddress && onRamp == sourceOnRamp; + } catch { return false; } } - /** - * @notice Decodes ABI-encoded EVM address bytes to an `address`. - * @dev Used for `Client.EVM2AnyMessage.receiver` and `Internal.EVM2AnyTokenTransfer.destTokenAddress`. - * CCIP uses `abi.encode(address)` (32 bytes). A legacy 20-byte packed encoding is also supported. - */ - function _decodeEVMAddress(bytes memory encodedAddress) internal pure returns (address) { - if (encodedAddress.length == 32) { - return abi.decode(encodedAddress, (address)); + function _preV1dot6LaneMatches(address offRamp, uint64 sourceChainSelector, address sourceOnRamp) + internal + view + returns (bool) + { + (bool ok, bytes memory data) = + offRamp.staticcall(abi.encodeWithSelector(IEVM2EVMOffRampStaticConfigFork.getStaticConfig.selector)); + if (!ok) { + return false; } - if (encodedAddress.length == 20) { - return address(uint160(bytes20(encodedAddress))); + + try this.decodeStaticConfigPreV1dot6(data) returns (IEVM2EVMOffRampStaticConfigFork.StaticConfig memory cfg) { + return cfg.onRamp == sourceOnRamp && cfg.sourceChainSelector == sourceChainSelector; + } catch { + return false; } - revert InvalidEVMAddressEncoding(encodedAddress); } - /** - * @notice Internal helper function to decode extraArgs bytes to GenericExtraArgsV2 struct. - * Supports decoding of both GenericExtraArgsV2 and EVMExtraArgsV1 structs. - * - * @param extraArgs - The bytes representing the extra arguments. - * - * @return genericExtraArgs - The decoded GenericExtraArgsV2 struct. - */ - function _fromBytes(bytes memory extraArgs) internal pure returns (Client.GenericExtraArgsV2 memory) { - if (extraArgs.length == 0) { - return Client.GenericExtraArgsV2({gasLimit: DEFAULT_GAS_LIMIT, allowOutOfOrderExecution: false}); + /// @notice External decode helper for `getCCVsForMessage` return data. Do not call directly. + function decodeCCVsForMessage(bytes calldata data) + external + pure + returns (address[] memory requiredCCVs, address[] memory optionalCCVs, uint8 threshold) + { + return abi.decode(data, (address[], address[], uint8)); + } + + /// @notice External decode helper for the OffRamp lookup. Do not call directly. + /// @dev Decoding runs in an external self-call so a mismatched payload fails inside `try/catch`. + function decodeTypeAndVersion(bytes calldata data) external pure returns (string memory) { + return abi.decode(data, (string)); + } + + /// @notice External decode helper for the OffRamp lookup. Do not call directly. + function decodeSourceChainConfigV2(bytes calldata data) + external + pure + returns (IOffRampSourceConfigV2Fork.SourceChainConfig memory) + { + return abi.decode(data, (IOffRampSourceConfigV2Fork.SourceChainConfig)); + } + + /// @notice External decode helper for the OffRamp lookup. Do not call directly. + function decodeSourceChainConfigV1dot6(bytes calldata data) + external + pure + returns (IOffRampSourceConfigFork.SourceChainConfig memory) + { + return abi.decode(data, (IOffRampSourceConfigFork.SourceChainConfig)); + } + + /// @notice External decode helper for the OffRamp lookup. Do not call directly. + function decodeStaticConfigPreV1dot6(bytes calldata data) + external + pure + returns (IEVM2EVMOffRampStaticConfigFork.StaticConfig memory) + { + return abi.decode(data, (IEVM2EVMOffRampStaticConfigFork.StaticConfig)); + } + + /// @notice Returns the OnRamp on the current (source) fork that emitted `emitter`'s log towards + /// `destChainSelector`, checking the Register router and then the CCIP 2.0 router. address(0) if neither. + function _findSourceOnRamp(uint64 destChainSelector, address emitter) internal view returns (address onRamp) { + address[2] memory routers = _routersOnCurrentChain(); + for (uint256 i; i < routers.length; ++i) { + if (routers[i] == address(0)) { + continue; + } + (bool ok, bytes memory data) = + routers[i].staticcall(abi.encodeWithSelector(IRouterFork.getOnRamp.selector, destChainSelector)); + if (!ok) { + continue; + } + (bool isAddress, address configuredOnRamp) = _decodeAddressWord(data); + if (isAddress && configuredOnRamp == emitter && emitter != address(0)) { + return emitter; + } } + return address(0); + } - bytes4 extraArgsTag = bytes4(extraArgs); - bytes memory gasLimit = new bytes(extraArgs.length - 4); - for (uint256 i = 4; i < extraArgs.length; ++i) { - gasLimit[i - 4] = extraArgs[i]; + /// @notice Returns the destination OffRamp for the lane of `sourceOnRamp`, searching the OffRamps of the Register + /// router and then of the CCIP 2.0 router on the current fork. + function _findOffRampOnCurrentFork(uint64 sourceChainSelector, address sourceOnRamp) + internal + view + returns (address offRampAddress) + { + address[2] memory routers = _routersOnCurrentChain(); + for (uint256 i; i < routers.length; ++i) { + if (routers[i] == address(0)) { + continue; + } + (bool ok, bytes memory data) = + routers[i].staticcall(abi.encodeWithSelector(IRouterFork.getOffRamps.selector)); + if (!ok) { + continue; + } + try this.decodeRouterOffRamps(data) returns (CCIPForkAdapterTypes.RouterOffRamp[] memory offRamps) { + offRampAddress = _findOffRampForOnRamp(offRamps, sourceChainSelector, sourceOnRamp); + } catch {} + if (offRampAddress != address(0)) { + return offRampAddress; + } + } + return address(0); + } + + /// @return routers The Register router and the CCIP 2.0 router (address(0) if unset or identical) of this chain. + function _routersOnCurrentChain() internal view returns (address[2] memory routers) { + routers[0] = i_register.getNetworkDetails(block.chainid).routerAddress; + address ccipV2Router = s_ccipV2Routers[block.chainid]; + if (ccipV2Router != routers[0]) { + routers[1] = ccipV2Router; } + } + + /// @notice External decode helper for router `getOffRamps` return data. Do not call directly. + function decodeRouterOffRamps(bytes calldata data) + external + pure + returns (CCIPForkAdapterTypes.RouterOffRamp[] memory) + { + return abi.decode(data, (CCIPForkAdapterTypes.RouterOffRamp[])); + } + + function _detectEraFromLog(Vm.Log memory entry) internal pure returns (CCIPEra era) { + if (entry.topics.length == 0) { + return CCIPEra.UNKNOWN; + } + + bytes32 topic0 = entry.topics[0]; - if (extraArgsTag == Client.GENERIC_EXTRA_ARGS_V2_TAG) { - return abi.decode(gasLimit, (Client.GenericExtraArgsV2)); - } else if (extraArgsTag == Client.EVM_EXTRA_ARGS_V1_TAG) { - return - Client.GenericExtraArgsV2({gasLimit: abi.decode(gasLimit, (uint256)), allowOutOfOrderExecution: false}); + if (topic0 == CCIPForkAdapterPreV1dot6.eventSelector()) { + return CCIPEra.PRE_V1_DOT_6; } - revert InvalidExtraArgsTag(); + if (topic0 == CCIPForkAdapterV1dot6.eventSelector()) { + return CCIPEra.V1_DOT_6; + } + + if (topic0 == CCIPForkAdapterV2.eventSelector()) { + return CCIPEra.V2; + } + + return CCIPEra.UNKNOWN; + } + + /// @dev Decodes an ABI-encoded address word without reverting: `abi.decode(data, (address))` reverts in the calling + /// frame (not catchable) when the word has non-zero high bits, e.g. a non-EVM OnRamp address. + function _decodeAddressWord(bytes memory data) internal pure returns (bool isAddress, address decoded) { + if (data.length != 32) { + return (false, address(0)); + } + uint256 word = abi.decode(data, (uint256)); + if (word >> 160 != 0) { + return (false, address(0)); + } + return (true, address(uint160(word))); + } + + function _startsWith(bytes memory value, bytes memory prefix) internal pure returns (bool) { + if (prefix.length > value.length) { + return false; + } + for (uint256 i; i < prefix.length; ++i) { + if (value[i] != prefix[i]) { + return false; + } + } + return true; } } diff --git a/src/ccip/Register.sol b/src/ccip/Register.sol index 87fbd0e..cdb85ea 100644 --- a/src/ccip/Register.sol +++ b/src/ccip/Register.sol @@ -3,7 +3,9 @@ pragma solidity ^0.8.0; /// @title Register Contract /// @notice This contract allows storing and retrieving network details for various chains. -/// @dev Stores network details in a mapping based on chain IDs. +/// @dev Built-in network details are returned by a generated pure function (see `helper_doc/updateRegisterContract.cjs`) +/// instead of being written to storage in the constructor: storing ~150 chains cost ~24M gas, which made +/// `CCIPLocalSimulatorFork` too expensive to deploy on 30M-gas-limit forks. `setNetworkDetails` overrides are stored. contract Register { struct NetworkDetails { uint64 chainSelector; @@ -17,1914 +19,1917 @@ contract Register { address tokenAdminRegistryAddress; } - /// @notice Mapping to store network details based on chain ID. + /// @notice Network details set with `setNetworkDetails`, overriding the built-in ones. mapping(uint256 chainId => NetworkDetails) internal s_networkDetails; - /// @notice Constructor to initialize the network details for various chains. - constructor() { - // Ethereum - s_networkDetails[1] = NetworkDetails({ - chainSelector: 5009297550715157269, - routerAddress: address(0x80226fc0Ee2b096224EeAc085Bb9a8cba1146f7D), - linkAddress: address(0x514910771AF9Ca656af840dff83E8264EcF986CA), - wrappedNativeAddress: address(0x40D16FC0246aD3160Ccc09B8D0D3A2cD28aE6C2f), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x411dE17f12D1A34ecC7F45f49844626267c75e81), - registryModuleOwnerCustomAddress: address(0x4855174E9479E211337832E109E7721d43A4CA64), - tokenAdminRegistryAddress: address(0xb22764f98dD05c789929716D677382Df22C05Cb6) - }); + /// @notice Whether `setNetworkDetails` was called for a chain ID. + mapping(uint256 chainId => bool isOverridden) internal s_isOverridden; - // OP - s_networkDetails[10] = NetworkDetails({ - chainSelector: 3734403246176062136, - routerAddress: address(0x3206695CaE29952f4b0c22a169725a865bc8Ce0f), - linkAddress: address(0x350a791Bfc2C21F9Ed5d10980Dad2e2638ffa7f6), - wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x55b3FCa23EdDd28b1f5B4a3C7975f63EFd2d06CE), - registryModuleOwnerCustomAddress: address(0xAFEd606Bd2CAb6983fC6F10167c98aaC2173D77f), - tokenAdminRegistryAddress: address(0x657c42abE4CD8aa731Aec322f871B5b90cf6274F) - }); + /** + * @notice Retrieves network details for a given chain ID. + * + * @param chainId - The ID of the chain to get the details for. + * @return networkDetails - The network details for the specified chain ID. + */ + function getNetworkDetails(uint256 chainId) external view returns (NetworkDetails memory networkDetails) { + if (s_isOverridden[chainId]) { + return s_networkDetails[chainId]; + } + return _defaultNetworkDetails(chainId); + } - // Cronos - s_networkDetails[25] = NetworkDetails({ - chainSelector: 1456215246176062136, - routerAddress: address(0xE26B0A098D861d5C7d9434aD471c0572Ca6EAa67), - linkAddress: address(0x8c80A01F461f297Df7F9DA3A4f740D7297C8Ac85), - wrappedNativeAddress: address(0x5C7F8A570d578ED84E63fdFA7b1eE72dEae1AE23), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0xd22A59e9b4eA2af16e66487411204224F5003351), - registryModuleOwnerCustomAddress: address(0x36293c0fbF1872Be5b6cBc65704fB22d41405388), - tokenAdminRegistryAddress: address(0x32c4634338f1386fdD18E0bD6dF51Ca2Fa56f762) - }); + /** + * @notice Sets the network details for a given chain ID. + * + * @param chainId - The ID of the chain to set the details for. + * @param networkDetails - The network details to set for the specified chain ID. + */ + function setNetworkDetails(uint256 chainId, NetworkDetails memory networkDetails) external { + s_networkDetails[chainId] = networkDetails; + s_isOverridden[chainId] = true; + } + // Generated by helper_doc/updateRegisterContract.cjs. Do not edit by hand. + /// @notice Built-in network details for `chainId`, or an all-zero struct for an unknown chain. + function _defaultNetworkDetails(uint256 chainId) internal pure returns (NetworkDetails memory) { + // Ethereum + if (chainId == 1) { + return NetworkDetails({ + chainSelector: 5009297550715157269, + routerAddress: address(0x80226fc0Ee2b096224EeAc085Bb9a8cba1146f7D), + linkAddress: address(0x514910771AF9Ca656af840dff83E8264EcF986CA), + wrappedNativeAddress: address(0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x411dE17f12D1A34ecC7F45f49844626267c75e81), + registryModuleOwnerCustomAddress: address(0x4855174E9479E211337832E109E7721d43A4CA64), + tokenAdminRegistryAddress: address(0xb22764f98dD05c789929716D677382Df22C05Cb6) + }); + } + // OP + if (chainId == 10) { + return NetworkDetails({ + chainSelector: 3734403246176062136, + routerAddress: address(0x3206695CaE29952f4b0c22a169725a865bc8Ce0f), + linkAddress: address(0x350a791Bfc2C21F9Ed5d10980Dad2e2638ffa7f6), + wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x55b3FCa23EdDd28b1f5B4a3C7975f63EFd2d06CE), + registryModuleOwnerCustomAddress: address(0xAFEd606Bd2CAb6983fC6F10167c98aaC2173D77f), + tokenAdminRegistryAddress: address(0x657c42abE4CD8aa731Aec322f871B5b90cf6274F) + }); + } + // Cronos + if (chainId == 25) { + return NetworkDetails({ + chainSelector: 1456215246176062136, + routerAddress: address(0xE26B0A098D861d5C7d9434aD471c0572Ca6EAa67), + linkAddress: address(0x8c80A01F461f297Df7F9DA3A4f740D7297C8Ac85), + wrappedNativeAddress: address(0x5C7F8A570d578ED84E63fdFA7b1eE72dEae1AE23), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0xd22A59e9b4eA2af16e66487411204224F5003351), + registryModuleOwnerCustomAddress: address(0x36293c0fbF1872Be5b6cBc65704fB22d41405388), + tokenAdminRegistryAddress: address(0x32c4634338f1386fdD18E0bD6dF51Ca2Fa56f762) + }); + } // Rootstock - s_networkDetails[30] = NetworkDetails({ - chainSelector: 11964252391146578476, - routerAddress: address(0xCe7aFb0BF5F73BfDB5e9E04976eBac2005746bD0), - linkAddress: address(0x938D84942f5D924070A6bb82F8e56a5E2b3098A4), - wrappedNativeAddress: address(0x542fDA317318eBF1d3DEAf76E0b632741A7e677d), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x54E38BFA3584415C28228Ed4865Ed4FA5cDD013A), - registryModuleOwnerCustomAddress: address(0x51e2A24742Db77604B881d6781Ee16B5b8fcBE29), - tokenAdminRegistryAddress: address(0xad71ac82aCFCbDD27BBd3F3eD2fA24E26E49CBE2) - }); - + if (chainId == 30) { + return NetworkDetails({ + chainSelector: 11964252391146578476, + routerAddress: address(0xCe7aFb0BF5F73BfDB5e9E04976eBac2005746bD0), + linkAddress: address(0x938D84942f5D924070A6bb82F8e56a5E2b3098A4), + wrappedNativeAddress: address(0x542fDA317318eBF1d3DEAf76E0b632741A7e677d), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x54E38BFA3584415C28228Ed4865Ed4FA5cDD013A), + registryModuleOwnerCustomAddress: address(0x51e2A24742Db77604B881d6781Ee16B5b8fcBE29), + tokenAdminRegistryAddress: address(0xad71ac82aCFCbDD27BBd3F3eD2fA24E26E49CBE2) + }); + } // Rootstock Testnet - s_networkDetails[31] = NetworkDetails({ - chainSelector: 8953668971247136127, - routerAddress: address(0xfEE82327fC68cE497283159Eb724Ba7427b097e3), - linkAddress: address(0x39dD98CcCC3a51b2c0007e23517488e363581264), - wrappedNativeAddress: address(0x09B6Ca5E4496238a1F176aEA6bB607db96C2286E), - ccipBnMAddress: address(0xEc9c9E6A862BA7aee87731110a01A2f087EC7ECc), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x2c78A454169241ddCa342BED991B5E4222C0bd0D), - registryModuleOwnerCustomAddress: address(0xaDFb7b14a3eB752b392b69a68bfDD21eAF27466E), - tokenAdminRegistryAddress: address(0x18825F888230922CdAdA6C7c4AaE70bDbfdF01Ab) - }); - + if (chainId == 31) { + return NetworkDetails({ + chainSelector: 8953668971247136127, + routerAddress: address(0xfEE82327fC68cE497283159Eb724Ba7427b097e3), + linkAddress: address(0x39dD98CcCC3a51b2c0007e23517488e363581264), + wrappedNativeAddress: address(0x09B6Ca5E4496238a1F176aEA6bB607db96C2286E), + ccipBnMAddress: address(0xEc9c9E6A862BA7aee87731110a01A2f087EC7ECc), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x2c78A454169241ddCa342BED991B5E4222C0bd0D), + registryModuleOwnerCustomAddress: address(0xaDFb7b14a3eB752b392b69a68bfDD21eAF27466E), + tokenAdminRegistryAddress: address(0x18825F888230922CdAdA6C7c4AaE70bDbfdF01Ab) + }); + } // XDC Network - s_networkDetails[50] = NetworkDetails({ - chainSelector: 17673274061779414707, - routerAddress: address(0x2a9f896660E802c59a3178b2E8CB7FBaCCC04e86), - linkAddress: address(0xE27dd9BF01B55ce6803c0d81386A04212c718b95), - wrappedNativeAddress: address(0x951857744785E80e2De051c32EE7b25f9c458C42), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x4e52dD94e9BCfeFE3C78153bDfB0AB1d30687297), - registryModuleOwnerCustomAddress: address(0x318Ec96df83AccC18B5EAD5D23e0F022F7Eb5503), - tokenAdminRegistryAddress: address(0xEC1276CA704c612A28cb2C873dEdCEba97F65cED) - }); - + if (chainId == 50) { + return NetworkDetails({ + chainSelector: 17673274061779414707, + routerAddress: address(0x2a9f896660E802c59a3178b2E8CB7FBaCCC04e86), + linkAddress: address(0xE27dd9BF01B55ce6803c0d81386A04212c718b95), + wrappedNativeAddress: address(0x951857744785E80e2De051c32EE7b25f9c458C42), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x4e52dD94e9BCfeFE3C78153bDfB0AB1d30687297), + registryModuleOwnerCustomAddress: address(0x318Ec96df83AccC18B5EAD5D23e0F022F7Eb5503), + tokenAdminRegistryAddress: address(0xEC1276CA704c612A28cb2C873dEdCEba97F65cED) + }); + } // XDC Apothem Network - s_networkDetails[51] = NetworkDetails({ - chainSelector: 3017758115101368649, - routerAddress: address(0x1D0b2edF6b66845872b6cC82C036E3601Cb2Be57), - linkAddress: address(0xe5e3a4fF1773d043a387b16Ceb3c91cC49bAFD54), - wrappedNativeAddress: address(0x56408DC41E35d3E8E92A16bc94787438df9387a1), - ccipBnMAddress: address(0x1350D63CAEc50778A132e1Ab85D43a3B50FD61dD), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0xEAB080c724587fFC9F2EFF82e36EE4Fb27774959), - registryModuleOwnerCustomAddress: address(0xd3e461C55676B10634a5F81b747c324B85686Dd1), - tokenAdminRegistryAddress: address(0xD610B8f58689de7755947C05342A2DFaC30ebD57) - }); - + if (chainId == 51) { + return NetworkDetails({ + chainSelector: 3017758115101368649, + routerAddress: address(0x1D0b2edF6b66845872b6cC82C036E3601Cb2Be57), + linkAddress: address(0xe5e3a4fF1773d043a387b16Ceb3c91cC49bAFD54), + wrappedNativeAddress: address(0x56408DC41E35d3E8E92A16bc94787438df9387a1), + ccipBnMAddress: address(0x1350D63CAEc50778A132e1Ab85D43a3B50FD61dD), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0xEAB080c724587fFC9F2EFF82e36EE4Fb27774959), + registryModuleOwnerCustomAddress: address(0xd3e461C55676B10634a5F81b747c324B85686Dd1), + tokenAdminRegistryAddress: address(0xD610B8f58689de7755947C05342A2DFaC30ebD57) + }); + } // BNB Chain - s_networkDetails[56] = NetworkDetails({ - chainSelector: 11344663589394136015, - routerAddress: address(0x34B03Cb9086d7D758AC55af71584F81A598759FE), - linkAddress: address(0x404460C6A5EdE2D891e8297795264fDe62ADBB75), - wrappedNativeAddress: address(0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x9e09697842194f77d315E0907F1Bda77922e8f84), - registryModuleOwnerCustomAddress: address(0x47Db76c9c97F4bcFd54D8872FDb848Cab696092d), - tokenAdminRegistryAddress: address(0x736Fd8660c443547a85e4Eaf70A49C1b7Bb008fc) - }); - + if (chainId == 56) { + return NetworkDetails({ + chainSelector: 11344663589394136015, + routerAddress: address(0x34B03Cb9086d7D758AC55af71584F81A598759FE), + linkAddress: address(0x404460C6A5EdE2D891e8297795264fDe62ADBB75), + wrappedNativeAddress: address(0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x9e09697842194f77d315E0907F1Bda77922e8f84), + registryModuleOwnerCustomAddress: address(0x47Db76c9c97F4bcFd54D8872FDb848Cab696092d), + tokenAdminRegistryAddress: address(0x736Fd8660c443547a85e4Eaf70A49C1b7Bb008fc) + }); + } // Astar Shibuya - s_networkDetails[81] = NetworkDetails({ - chainSelector: 6955638871347136141, - routerAddress: address(0x22aE550d87eBf775E0c1fDc8881121c8A51F5903), - linkAddress: address(0xe74037112db8807B3B4B3895F5790e5bc1866a29), - wrappedNativeAddress: address(0xbd5F3751856E11f3e80dBdA567Ef91Eb7e874791), - ccipBnMAddress: address(0xc49ec0eB4beb48B8Da4cceC51AA9A5bD0D0A4c43), - ccipLnMAddress: address(0xB9d4e1141E67ECFedC8A8139b5229b7FF2BF16F5), - rmnProxyAddress: address(0xc96ac0533F240ad52694391583267ACAbc479C07), - registryModuleOwnerCustomAddress: address(0xB6bD6e3e56a8E28CCbE44b6442cA8b586B964Af8), - tokenAdminRegistryAddress: address(0x54eBB8F7E81305E1bBdDD03860A9a5D41312bB35) - }); - + if (chainId == 81) { + return NetworkDetails({ + chainSelector: 6955638871347136141, + routerAddress: address(0x22aE550d87eBf775E0c1fDc8881121c8A51F5903), + linkAddress: address(0xe74037112db8807B3B4B3895F5790e5bc1866a29), + wrappedNativeAddress: address(0xbd5F3751856E11f3e80dBdA567Ef91Eb7e874791), + ccipBnMAddress: address(0xc49ec0eB4beb48B8Da4cceC51AA9A5bD0D0A4c43), + ccipLnMAddress: address(0xB9d4e1141E67ECFedC8A8139b5229b7FF2BF16F5), + rmnProxyAddress: address(0xc96ac0533F240ad52694391583267ACAbc479C07), + registryModuleOwnerCustomAddress: address(0xB6bD6e3e56a8E28CCbE44b6442cA8b586B964Af8), + tokenAdminRegistryAddress: address(0x54eBB8F7E81305E1bBdDD03860A9a5D41312bB35) + }); + } // BNB Chain Testnet - s_networkDetails[97] = NetworkDetails({ - chainSelector: 13264668187771770619, - routerAddress: address(0xE1053aE1857476f36A3C62580FF9b016E8EE8F6f), - linkAddress: address(0x84b9B910527Ad5C03A9Ca831909E21e236EA7b06), - wrappedNativeAddress: address(0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd), - ccipBnMAddress: address(0xbFA2ACd33ED6EEc0ed3Cc06bF1ac38d22b36B9e9), - ccipLnMAddress: address(0x79a4Fc27f69323660f5Bfc12dEe21c3cC14f5901), - rmnProxyAddress: address(0xA8C0c11bf64AF62CDCA6f93D3769B88BdD7cb93D), - registryModuleOwnerCustomAddress: address(0x8Cd87FeAC14D69D770E67Bedf029e6fd3F33D0C7), - tokenAdminRegistryAddress: address(0xF8f2A4466039Ac8adf9944fD67DBb3bb13888f2B) - }); - + if (chainId == 97) { + return NetworkDetails({ + chainSelector: 13264668187771770619, + routerAddress: address(0xE1053aE1857476f36A3C62580FF9b016E8EE8F6f), + linkAddress: address(0x84b9B910527Ad5C03A9Ca831909E21e236EA7b06), + wrappedNativeAddress: address(0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd), + ccipBnMAddress: address(0xbFA2ACd33ED6EEc0ed3Cc06bF1ac38d22b36B9e9), + ccipLnMAddress: address(0x79a4Fc27f69323660f5Bfc12dEe21c3cC14f5901), + rmnProxyAddress: address(0xA8C0c11bf64AF62CDCA6f93D3769B88BdD7cb93D), + registryModuleOwnerCustomAddress: address(0x8Cd87FeAC14D69D770E67Bedf029e6fd3F33D0C7), + tokenAdminRegistryAddress: address(0xF8f2A4466039Ac8adf9944fD67DBb3bb13888f2B) + }); + } // Gnosis - s_networkDetails[100] = NetworkDetails({ - chainSelector: 465200170687744372, - routerAddress: address(0x4aAD6071085df840abD9Baf1697d5D5992bDadce), - linkAddress: address(0xE2e73A1c69ecF83F464EFCE6A5be353a37cA09b2), - wrappedNativeAddress: address(0xfc421aD3C883Bf9E7C4f42dE845C4e4405799e73), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0xf5e5e1676942520995c1e39aFaC58A75Fe1cd2bB), - registryModuleOwnerCustomAddress: address(0x1f524a11d89D68a4E4b1c8A195E91Fb1d8f0B56a), - tokenAdminRegistryAddress: address(0x73BC11423CBF14914998C23B0aFC9BE0cb5B2229) - }); - + if (chainId == 100) { + return NetworkDetails({ + chainSelector: 465200170687744372, + routerAddress: address(0x4aAD6071085df840abD9Baf1697d5D5992bDadce), + linkAddress: address(0xE2e73A1c69ecF83F464EFCE6A5be353a37cA09b2), + wrappedNativeAddress: address(0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0xf5e5e1676942520995c1e39aFaC58A75Fe1cd2bB), + registryModuleOwnerCustomAddress: address(0x1f524a11d89D68a4E4b1c8A195E91Fb1d8f0B56a), + tokenAdminRegistryAddress: address(0x73BC11423CBF14914998C23B0aFC9BE0cb5B2229) + }); + } // Shibarium - s_networkDetails[109] = NetworkDetails({ - chainSelector: 3993510008929295315, - routerAddress: address(0xc2CA5d5C17911e4B838194b51585DdF8fe5116C1), - linkAddress: address(0x71052BAe71C25C78E37fD12E5ff1101A71d9018F), - wrappedNativeAddress: address(0xC76F4c819D820369Fb2d7C1531aB3Bb18e6fE8d8), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0xD2bdb98dA1Ff575d091CA5b76412C23Cba88CA02), - registryModuleOwnerCustomAddress: address(0x1f524a11d89D68a4E4b1c8A195E91Fb1d8f0B56a), - tokenAdminRegistryAddress: address(0x995d2Aa233aBeaCA2a64Edf898AE9F4e01bE15B9) - }); - + if (chainId == 109) { + return NetworkDetails({ + chainSelector: 3993510008929295315, + routerAddress: address(0xc2CA5d5C17911e4B838194b51585DdF8fe5116C1), + linkAddress: address(0x71052BAe71C25C78E37fD12E5ff1101A71d9018F), + wrappedNativeAddress: address(0xC76F4c819D820369Fb2d7C1531aB3Bb18e6fE8d8), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0xD2bdb98dA1Ff575d091CA5b76412C23Cba88CA02), + registryModuleOwnerCustomAddress: address(0x1f524a11d89D68a4E4b1c8A195E91Fb1d8f0B56a), + tokenAdminRegistryAddress: address(0x995d2Aa233aBeaCA2a64Edf898AE9F4e01bE15B9) + }); + } // Unichain - s_networkDetails[130] = NetworkDetails({ - chainSelector: 1923510103922296319, - routerAddress: address(0x68891f5F96695ECd7dEdBE2289D1b73426ae7864), - linkAddress: address(0xEF66491eab4bbB582c57b14778afd8dFb70D8A1A), - wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x2c8De9677b07Cc256228069109D9842f0cB96291), - registryModuleOwnerCustomAddress: address(0xd8F5e7FAc317c638d2Fe4d07ab3f436ca6b5e5c7), - tokenAdminRegistryAddress: address(0xAB3Ee2e897cf23c10e76d26aB4674fEFA376bc0d) - }); - + if (chainId == 130) { + return NetworkDetails({ + chainSelector: 1923510103922296319, + routerAddress: address(0x68891f5F96695ECd7dEdBE2289D1b73426ae7864), + linkAddress: address(0xEF66491eab4bbB582c57b14778afd8dFb70D8A1A), + wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x2c8De9677b07Cc256228069109D9842f0cB96291), + registryModuleOwnerCustomAddress: address(0xd8F5e7FAc317c638d2Fe4d07ab3f436ca6b5e5c7), + tokenAdminRegistryAddress: address(0xAB3Ee2e897cf23c10e76d26aB4674fEFA376bc0d) + }); + } // HashKey Chain Testnet - s_networkDetails[133] = NetworkDetails({ - chainSelector: 4356164186791070119, - routerAddress: address(0x1360c71dd2458B6d4A5Ad5946d9011BafA0435d7), - linkAddress: address(0x8418c4d7e8e17ab90232DC72150730E6c4b84F57), - wrappedNativeAddress: address(0x2896e619Fa7c831A7E52b87EffF4d671bEc6B262), - ccipBnMAddress: address(0xB0F91Ce2ECAa3555D4b1fD4489bD9a207a7844f0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x9BbBb1Df7D813c9749d99D3CC3D8087b06A83984), - registryModuleOwnerCustomAddress: address(0x99653DD5e0a6b655aD82e7F41a816CA666F51AFF), - tokenAdminRegistryAddress: address(0x732cC8266993dDfc5a91035EBe7afF301Be4e8c3) - }); - + if (chainId == 133) { + return NetworkDetails({ + chainSelector: 4356164186791070119, + routerAddress: address(0x1360c71dd2458B6d4A5Ad5946d9011BafA0435d7), + linkAddress: address(0x8418c4d7e8e17ab90232DC72150730E6c4b84F57), + wrappedNativeAddress: address(0x2896e619Fa7c831A7E52b87EffF4d671bEc6B262), + ccipBnMAddress: address(0xB0F91Ce2ECAa3555D4b1fD4489bD9a207a7844f0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x9BbBb1Df7D813c9749d99D3CC3D8087b06A83984), + registryModuleOwnerCustomAddress: address(0xa9Fd6072c80fC9EbBA6322F4ffEc872408914DF3), + tokenAdminRegistryAddress: address(0x732cC8266993dDfc5a91035EBe7afF301Be4e8c3) + }); + } // Polygon - s_networkDetails[137] = NetworkDetails({ - chainSelector: 4051577828743386545, - routerAddress: address(0x849c5ED5a80F5B408Dd4969b78c2C8fdf0565Bfe), - linkAddress: address(0xb0897686c545045aFc77CF20eC7A532E3120E0F1), - wrappedNativeAddress: address(0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0xf1ceAa46D8d13Cac9fC38aaEF3d3d14754C5A9c2), - registryModuleOwnerCustomAddress: address(0xc751E86208F0F8aF2d5CD0e29716cA7AD98B5eF5), - tokenAdminRegistryAddress: address(0x00F027eA6D0fb03256A15E9182B2B9227A4931d8) - }); - + if (chainId == 137) { + return NetworkDetails({ + chainSelector: 4051577828743386545, + routerAddress: address(0x849c5ED5a80F5B408Dd4969b78c2C8fdf0565Bfe), + linkAddress: address(0xb0897686c545045aFc77CF20eC7A532E3120E0F1), + wrappedNativeAddress: address(0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0xf1ceAa46D8d13Cac9fC38aaEF3d3d14754C5A9c2), + registryModuleOwnerCustomAddress: address(0xc751E86208F0F8aF2d5CD0e29716cA7AD98B5eF5), + tokenAdminRegistryAddress: address(0x00F027eA6D0fb03256A15E9182B2B9227A4931d8) + }); + } // Monad - s_networkDetails[143] = NetworkDetails({ - chainSelector: 8481857512324358265, - routerAddress: address(0x33566fE5976AAa420F3d5C64996641Fc3858CaDB), - linkAddress: address(0x76f257B1DDA5cC71bee4eF637Fbdde4C801310A9), - wrappedNativeAddress: address(0x3bd359C1119dA7Da1D913D1C4D2B7c461115433A), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x99dFCa5d88f4D9C023531F4403966b8d61562AcD), - registryModuleOwnerCustomAddress: address(0xB71513B6c80Adf35B43eACC24DA7A08A806a7f2C), - tokenAdminRegistryAddress: address(0x11ACd984DD680363117B310f6ebdf78fD6c0195f) - }); - + if (chainId == 143) { + return NetworkDetails({ + chainSelector: 8481857512324358265, + routerAddress: address(0x33566fE5976AAa420F3d5C64996641Fc3858CaDB), + linkAddress: address(0x76f257B1DDA5cC71bee4eF637Fbdde4C801310A9), + wrappedNativeAddress: address(0x3A704ad3E4784b935AE029171AdCF57ee7988198), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x99dFCa5d88f4D9C023531F4403966b8d61562AcD), + registryModuleOwnerCustomAddress: address(0xB71513B6c80Adf35B43eACC24DA7A08A806a7f2C), + tokenAdminRegistryAddress: address(0x11ACd984DD680363117B310f6ebdf78fD6c0195f) + }); + } // Sonic - s_networkDetails[146] = NetworkDetails({ - chainSelector: 1673871237479749969, - routerAddress: address(0xB4e1Ff7882474BB93042be9AD5E1fA387949B860), - linkAddress: address(0x71052BAe71C25C78E37fD12E5ff1101A71d9018F), - wrappedNativeAddress: address(0x039e2fB66102314Ce7b64Ce5Ce3E5183bc94aD38), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x60536Ef486DB5E0e1771874E31485c12e3c2844f), - registryModuleOwnerCustomAddress: address(0xb0112a2723D9D6CB5194580701A93B1eb67846D2), - tokenAdminRegistryAddress: address(0x2961Cb47b5111F38d75f415c21ceB4120ddd1b69) - }); - + if (chainId == 146) { + return NetworkDetails({ + chainSelector: 1673871237479749969, + routerAddress: address(0xB4e1Ff7882474BB93042be9AD5E1fA387949B860), + linkAddress: address(0x71052BAe71C25C78E37fD12E5ff1101A71d9018F), + wrappedNativeAddress: address(0x039e2fB66102314Ce7b64Ce5Ce3E5183bc94aD38), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x60536Ef486DB5E0e1771874E31485c12e3c2844f), + registryModuleOwnerCustomAddress: address(0xb0112a2723D9D6CB5194580701A93B1eb67846D2), + tokenAdminRegistryAddress: address(0x2961Cb47b5111F38d75f415c21ceB4120ddd1b69) + }); + } // Shibarium Puppynet - s_networkDetails[157] = NetworkDetails({ - chainSelector: 17833296867764334567, - routerAddress: address(0x449E234FEDF3F907b9E9Dd6BAf1ddc36664097E5), - linkAddress: address(0x44637eEfD71A090990f89faEC7022fc74B2969aD), - wrappedNativeAddress: address(0x41c3F37587EBcD46C0F85eF43E38BcfE1E70Ab56), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x8d677784DA3707e57aC0306464552560E05dBCD7), - registryModuleOwnerCustomAddress: address(0xBB54D6097Ed013eB49509404efA665ee17f247c4), - tokenAdminRegistryAddress: address(0x5B3BA3d2Dbe9565c2905fbB81776E332a59b6F05) - }); - + if (chainId == 157) { + return NetworkDetails({ + chainSelector: 17833296867764334567, + routerAddress: address(0x449E234FEDF3F907b9E9Dd6BAf1ddc36664097E5), + linkAddress: address(0x44637eEfD71A090990f89faEC7022fc74B2969aD), + wrappedNativeAddress: address(0x41c3F37587EBcD46C0F85eF43E38BcfE1E70Ab56), + ccipBnMAddress: address(0x81249b4bD91A8706eE67a2f422DB82258D4947ad), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x8d677784DA3707e57aC0306464552560E05dBCD7), + registryModuleOwnerCustomAddress: address(0xBB54D6097Ed013eB49509404efA665ee17f247c4), + tokenAdminRegistryAddress: address(0x5B3BA3d2Dbe9565c2905fbB81776E332a59b6F05) + }); + } // HashKey Chain - s_networkDetails[177] = NetworkDetails({ - chainSelector: 7613811247471741961, - routerAddress: address(0xf2Fd62c083F3BF324e99ce157D1a42d7EbA77f1d), - linkAddress: address(0x71052BAe71C25C78E37fD12E5ff1101A71d9018F), - wrappedNativeAddress: address(0xB210D2120d57b758EE163cFfb43e73728c471Cf1), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x59F168858472c5ECC217588678F6c378951Bd524), - registryModuleOwnerCustomAddress: address(0x04c5046A1f4E3fFf094c26dFCAA75eF293932f18), - tokenAdminRegistryAddress: address(0x4b238f757f842280FeA88A1c2B4186b71eF8BC5E) - }); - - // Mint - s_networkDetails[185] = NetworkDetails({ - chainSelector: 17164792800244661392, - routerAddress: address(0x1d86012266F214a368766C2B9329FdCC75B1Ce6b), - linkAddress: address(0x71052BAe71C25C78E37fD12E5ff1101A71d9018F), - wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0xA84f7c3E7d1025EF1F991110B1956c024bb6Ac99), - registryModuleOwnerCustomAddress: address(0x3869fE7e385554978Eff78423Fd16B5f0974D260), - tokenAdminRegistryAddress: address(0xfAb243379A10D8090B32BC706288c2187dbe495C) - }); - + if (chainId == 177) { + return NetworkDetails({ + chainSelector: 7613811247471741961, + routerAddress: address(0xf2Fd62c083F3BF324e99ce157D1a42d7EbA77f1d), + linkAddress: address(0x71052BAe71C25C78E37fD12E5ff1101A71d9018F), + wrappedNativeAddress: address(0xB210D2120d57b758EE163cFfb43e73728c471Cf1), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x59F168858472c5ECC217588678F6c378951Bd524), + registryModuleOwnerCustomAddress: address(0x04c5046A1f4E3fFf094c26dFCAA75eF293932f18), + tokenAdminRegistryAddress: address(0x4b238f757f842280FeA88A1c2B4186b71eF8BC5E) + }); + } // X Layer - s_networkDetails[196] = NetworkDetails({ - chainSelector: 3016212468291539606, - routerAddress: address(0xF2b6Cb7867EB5502C3249dD37D7bc1Cc148e5232), - linkAddress: address(0x8aF9711B44695a5A081F25AB9903DDB73aCf8FA9), - wrappedNativeAddress: address(0xe538905cf8410324e03A5A23C1c177a474D59b2b), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x326B01f673681dAd72cd386CCe12FFF717be32cD), - registryModuleOwnerCustomAddress: address(0xb227f007804c16546Bd054dfED2E7A1fD5437678), - tokenAdminRegistryAddress: address(0xeCf1eAEE01E82F3388dECD7f4C3792374f3f72F3) - }); - + if (chainId == 196) { + return NetworkDetails({ + chainSelector: 3016212468291539606, + routerAddress: address(0xF2b6Cb7867EB5502C3249dD37D7bc1Cc148e5232), + linkAddress: address(0x8aF9711B44695a5A081F25AB9903DDB73aCf8FA9), + wrappedNativeAddress: address(0xe538905cf8410324e03A5A23C1c177a474D59b2b), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x326B01f673681dAd72cd386CCe12FFF717be32cD), + registryModuleOwnerCustomAddress: address(0xb227f007804c16546Bd054dfED2E7A1fD5437678), + tokenAdminRegistryAddress: address(0xeCf1eAEE01E82F3388dECD7f4C3792374f3f72F3) + }); + } // opBNB - s_networkDetails[204] = NetworkDetails({ - chainSelector: 465944652040885897, - routerAddress: address(0xa3ca4306B9256aAB177C47A18b43593F03378976), - linkAddress: address(0x99f0d88B81b758AB07E22C7AbA00E0121a882dEA), - wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0xf7adFeB4433E09d4f652EC2c55d39e505F7c8b75), - registryModuleOwnerCustomAddress: address(0xC2eAfBAD518849e9A5Acd33E687EeAc7306C1dea), - tokenAdminRegistryAddress: address(0xEfF5D2147F9cAcdedF80C2ee1F5320B01C664bE5) - }); - + if (chainId == 204) { + return NetworkDetails({ + chainSelector: 465944652040885897, + routerAddress: address(0xa3ca4306B9256aAB177C47A18b43593F03378976), + linkAddress: address(0x99f0d88B81b758AB07E22C7AbA00E0121a882dEA), + wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0xf7adFeB4433E09d4f652EC2c55d39e505F7c8b75), + registryModuleOwnerCustomAddress: address(0xC2eAfBAD518849e9A5Acd33E687EeAc7306C1dea), + tokenAdminRegistryAddress: address(0xEfF5D2147F9cAcdedF80C2ee1F5320B01C664bE5) + }); + } // B² - s_networkDetails[223] = NetworkDetails({ - chainSelector: 5406759801798337480, - routerAddress: address(0x9C34e9A192d7a4c2cf054668C1122C028C43026c), - linkAddress: address(0x709229D9587886a1eDFeE6b5cE636E1D70d1cE39), - wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x1C6Faa5762860261014a355a9efF2bEea2255851), - registryModuleOwnerCustomAddress: address(0x55aeb80Aa6Ab34aA83E1F387903F8Bb2Aa9e2F2d), - tokenAdminRegistryAddress: address(0x2e1543255119CfB9D3501E32d7f5B244E59A06F4) - }); - - // Mind Network - s_networkDetails[228] = NetworkDetails({ - chainSelector: 11690709103138290329, - routerAddress: address(0x3E13485E767D53f938cD4AF502111d3fF8726A2D), - linkAddress: address(0xd8A9246e84903e82CA01e42774b01A7CdD465BFa), - wrappedNativeAddress: address(0x3902228D6A3d2Dc44731fD9d45FeE6a61c722D0b), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x4F26203d04A57A73df795DBed362d3A8d5C34D0c), - registryModuleOwnerCustomAddress: address(0x7bc6fB227983Ad829dF8b210407A589F2EB34f64), - tokenAdminRegistryAddress: address(0x469169915210462F5e01EFBE0822Cf7079F9306b) - }); - + if (chainId == 223) { + return NetworkDetails({ + chainSelector: 5406759801798337480, + routerAddress: address(0x9C34e9A192d7a4c2cf054668C1122C028C43026c), + linkAddress: address(0x709229D9587886a1eDFeE6b5cE636E1D70d1cE39), + wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x1C6Faa5762860261014a355a9efF2bEea2255851), + registryModuleOwnerCustomAddress: address(0x55aeb80Aa6Ab34aA83E1F387903F8Bb2Aa9e2F2d), + tokenAdminRegistryAddress: address(0x2e1543255119CfB9D3501E32d7f5B244E59A06F4) + }); + } // Lens - s_networkDetails[232] = NetworkDetails({ - chainSelector: 5608378062013572713, - routerAddress: address(0x498F3feBAd3ff75e05b7847B37a301fc2DA6fDC0), - linkAddress: address(0x6e970e8d6758164798290c8db1D79a527ca6e1B2), - wrappedNativeAddress: address(0x6bDc36E20D267Ff0dd6097799f82e78907105e2F), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0xE187a792bbf76232A307d8E44615973C849E25A0), - registryModuleOwnerCustomAddress: address(0xfCe3246A7Cc4Ae9E529836F584843fcCB73F736D), - tokenAdminRegistryAddress: address(0xdD98482Ec0cfEFfe14EAb750A9c484F9D5d07380) - }); - - // Tac - s_networkDetails[239] = NetworkDetails({ - chainSelector: 5936861837188149645, - routerAddress: address(0x966519C334D895121B61584CAdeBc15571b62983), - linkAddress: address(0xc2BE2F77562A6676098e8D363B9d8A33Ea009D4e), - wrappedNativeAddress: address(0xB63B9f0eb4A6E6f191529D71d4D88cc8900Df2C9), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0xbDCb06538A5f4F5aCC69bb0B7548d314d3c1A8Fd), - registryModuleOwnerCustomAddress: address(0x313F663E79ef202251a28F0252c254842D5ABC6a), - tokenAdminRegistryAddress: address(0xd31dB306E5D79F0018Ac92e08492284201493EA1) - }); - + if (chainId == 232) { + return NetworkDetails({ + chainSelector: 5608378062013572713, + routerAddress: address(0x498F3feBAd3ff75e05b7847B37a301fc2DA6fDC0), + linkAddress: address(0x6e970e8d6758164798290c8db1D79a527ca6e1B2), + wrappedNativeAddress: address(0x6bDc36E20D267Ff0dd6097799f82e78907105e2F), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0xE187a792bbf76232A307d8E44615973C849E25A0), + registryModuleOwnerCustomAddress: address(0xfCe3246A7Cc4Ae9E529836F584843fcCB73F736D), + tokenAdminRegistryAddress: address(0xdD98482Ec0cfEFfe14EAb750A9c484F9D5d07380) + }); + } // Cronos zkEVM Testnet - s_networkDetails[240] = NetworkDetails({ - chainSelector: 16487132492576884721, - routerAddress: address(0xFeFC5B70DA3297A8470e4D0D2Ea85E0F63bA6b0c), - linkAddress: address(0xB96217A159cB11Bc51E87c8CAe46C7dF8826A827), - wrappedNativeAddress: address(0xeD73b53197189BE3Ff978069cf30eBc28a8B5837), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0xb776AF2E561Dd8720148D56C7316fDA56B56b9C8), - registryModuleOwnerCustomAddress: address(0xbF7Fa3d397a92cE20Cd6Aa5376F0A4e41eD3f1b4), - tokenAdminRegistryAddress: address(0x314B7a51b7472B7F3A998AeA30Cc4Aab731063C8) - }); - + if (chainId == 240) { + return NetworkDetails({ + chainSelector: 16487132492576884721, + routerAddress: address(0xFeFC5B70DA3297A8470e4D0D2Ea85E0F63bA6b0c), + linkAddress: address(0xB96217A159cB11Bc51E87c8CAe46C7dF8826A827), + wrappedNativeAddress: address(0xeD73b53197189BE3Ff978069cf30eBc28a8B5837), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0xb776AF2E561Dd8720148D56C7316fDA56B56b9C8), + registryModuleOwnerCustomAddress: address(0xbF7Fa3d397a92cE20Cd6Aa5376F0A4e41eD3f1b4), + tokenAdminRegistryAddress: address(0x314B7a51b7472B7F3A998AeA30Cc4Aab731063C8) + }); + } // Fraxtal - s_networkDetails[252] = NetworkDetails({ - chainSelector: 1462016016387883143, - routerAddress: address(0x4bdF20477744Ec5F9DE738b5cC9ACd01763905ee), - linkAddress: address(0xd6A6ba37fAaC229B9665E86739ca501401f5a940), - wrappedNativeAddress: address(0xFc00000000000000000000000000000000000002), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x889b5Ada2Ce451ED68C5e1b40B8236C3448ff681), - registryModuleOwnerCustomAddress: address(0xdd8aF6046349EDFD40123E0b616286cEC08010ed), - tokenAdminRegistryAddress: address(0x6724621d8A560A84E4B6012c4bAA0eA6fF47B9DF) - }); - + if (chainId == 252) { + return NetworkDetails({ + chainSelector: 1462016016387883143, + routerAddress: address(0x4bdF20477744Ec5F9DE738b5cC9ACd01763905ee), + linkAddress: address(0xd6A6ba37fAaC229B9665E86739ca501401f5a940), + wrappedNativeAddress: address(0xFC00000000000000000000000000000000000006), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x889b5Ada2Ce451ED68C5e1b40B8236C3448ff681), + registryModuleOwnerCustomAddress: address(0xdd8aF6046349EDFD40123E0b616286cEC08010ed), + tokenAdminRegistryAddress: address(0x6724621d8A560A84E4B6012c4bAA0eA6fF47B9DF) + }); + } // Hedera - s_networkDetails[295] = NetworkDetails({ - chainSelector: 3229138320728879060, - routerAddress: address(0x87b400B4d4F5Fe2Fdb6FBEa66C38003ced565b76), - linkAddress: address(0x7Ce6bb2Cc2D3Fd45a974Da6a0F29236cb9513a98), - wrappedNativeAddress: address(0xb1F616b8134F602c3Bb465fB5b5e6565cCAd37Ed), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x09d9c9a2Ba147654fB40e217B68f2874775271b9), - registryModuleOwnerCustomAddress: address(0x1d952d2f6eE86Ef4940Fa648aA7477c8fF175F09), - tokenAdminRegistryAddress: address(0xC9efBD4f73C37aE1573806030A4146e1E72EADc1) - }); - + if (chainId == 295) { + return NetworkDetails({ + chainSelector: 3229138320728879060, + routerAddress: address(0x87b400B4d4F5Fe2Fdb6FBEa66C38003ced565b76), + linkAddress: address(0x7Ce6bb2Cc2D3Fd45a974Da6a0F29236cb9513a98), + wrappedNativeAddress: address(0xb1F616b8134F602c3Bb465fB5b5e6565cCAd37Ed), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x09d9c9a2Ba147654fB40e217B68f2874775271b9), + registryModuleOwnerCustomAddress: address(0x1d952d2f6eE86Ef4940Fa648aA7477c8fF175F09), + tokenAdminRegistryAddress: address(0xC9efBD4f73C37aE1573806030A4146e1E72EADc1) + }); + } // Hedera Testnet - s_networkDetails[296] = NetworkDetails({ - chainSelector: 222782988166878823, - routerAddress: address(0x802C5F84eAD128Ff36fD6a3f8a418e339f467Ce4), - linkAddress: address(0x90a386d59b9A6a4795a011e8f032Fc21ED6FEFb6), - wrappedNativeAddress: address(0xb1F616b8134F602c3Bb465fB5b5e6565cCAd37Ed), - ccipBnMAddress: address(0x01Ac06943d2B8327a7845235Ef034741eC1Da352), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x0Df355104424BABfb2404600A4258CfE140a78Cf), - registryModuleOwnerCustomAddress: address(0xf76cE612250eeEb8889F49FBCB11f1c2705305F6), - tokenAdminRegistryAddress: address(0xA6643e4f53ceABad16970e8592D4eF7fea49260a) - }); - + if (chainId == 296) { + return NetworkDetails({ + chainSelector: 222782988166878823, + routerAddress: address(0x802C5F84eAD128Ff36fD6a3f8a418e339f467Ce4), + linkAddress: address(0x90a386d59b9A6a4795a011e8f032Fc21ED6FEFb6), + wrappedNativeAddress: address(0xb1F616b8134F602c3Bb465fB5b5e6565cCAd37Ed), + ccipBnMAddress: address(0xF8238FD7Dd2bEbEDaa65c3974175d98e6110bEb1), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x0Df355104424BABfb2404600A4258CfE140a78Cf), + registryModuleOwnerCustomAddress: address(0xf76cE612250eeEb8889F49FBCB11f1c2705305F6), + tokenAdminRegistryAddress: address(0xA6643e4f53ceABad16970e8592D4eF7fea49260a) + }); + } // ZKsync Sepolia - s_networkDetails[300] = NetworkDetails({ - chainSelector: 6898391096552792247, - routerAddress: address(0xA1fdA8aa9A8C4b945C45aD30647b01f07D7A0B16), - linkAddress: address(0x23A1aFD896c8c8876AF46aDc38521f4432658d1e), - wrappedNativeAddress: address(0x4317b2eCD41851173175005783322D29E9bAee9E), - ccipBnMAddress: address(0xFf6d0c1518A8104611f482eb2801CaF4f13c9dEb), - ccipLnMAddress: address(0xBf8eA19505ab7Eb266aeD435B11bd56321BFB5c5), - rmnProxyAddress: address(0x3DA20FD3D8a8f8c1f1A5fD03648147143608C467), - registryModuleOwnerCustomAddress: address(0x57Fe4Ed8DF1c044f7E6860415A8aa61eE7597657), - tokenAdminRegistryAddress: address(0xc7777f12258014866c677Bdb679D0b007405b7DF) - }); - + if (chainId == 300) { + return NetworkDetails({ + chainSelector: 6898391096552792247, + routerAddress: address(0xA1fdA8aa9A8C4b945C45aD30647b01f07D7A0B16), + linkAddress: address(0x23A1aFD896c8c8876AF46aDc38521f4432658d1e), + wrappedNativeAddress: address(0x4317b2eCD41851173175005783322D29E9bAee9E), + ccipBnMAddress: address(0xFf6d0c1518A8104611f482eb2801CaF4f13c9dEb), + ccipLnMAddress: address(0xBf8eA19505ab7Eb266aeD435B11bd56321BFB5c5), + rmnProxyAddress: address(0x3DA20FD3D8a8f8c1f1A5fD03648147143608C467), + registryModuleOwnerCustomAddress: address(0x57Fe4Ed8DF1c044f7E6860415A8aa61eE7597657), + tokenAdminRegistryAddress: address(0xc7777f12258014866c677Bdb679D0b007405b7DF) + }); + } // ZKsync - s_networkDetails[324] = NetworkDetails({ - chainSelector: 1562403441176082196, - routerAddress: address(0x748Fd769d81F5D94752bf8B0875E9301d0ba71bB), - linkAddress: address(0x52869bae3E091e36b0915941577F2D47d8d8B534), - wrappedNativeAddress: address(0x5AEa5775959fBC2557Cc8789bC1bf90A239D9a91), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x2aBB46A2D32220b8801CE96CAbC32dd2dA7b7B20), - registryModuleOwnerCustomAddress: address(0x55231e520F09D53ef836CE9477011C7057a70bd6), - tokenAdminRegistryAddress: address(0x100a47C9DB342884E3314B91cec076BbAC8e619c) - }); - + if (chainId == 324) { + return NetworkDetails({ + chainSelector: 1562403441176082196, + routerAddress: address(0x748Fd769d81F5D94752bf8B0875E9301d0ba71bB), + linkAddress: address(0x52869bae3E091e36b0915941577F2D47d8d8B534), + wrappedNativeAddress: address(0x5AEa5775959fBC2557Cc8789bC1bf90A239D9a91), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x2aBB46A2D32220b8801CE96CAbC32dd2dA7b7B20), + registryModuleOwnerCustomAddress: address(0x55231e520F09D53ef836CE9477011C7057a70bd6), + tokenAdminRegistryAddress: address(0x100a47C9DB342884E3314B91cec076BbAC8e619c) + }); + } // Cronos Testnet - s_networkDetails[338] = NetworkDetails({ - chainSelector: 2995292832068775165, - routerAddress: address(0xa0F5f5867F528CCc0f9bCc5225063b4A38b5dEBd), - linkAddress: address(0x2896e619Fa7c831A7E52b87EffF4d671bEc6B262), - wrappedNativeAddress: address(0x5C50653Ada833D649a718ba4D1Fb9e2EE49c202d), - ccipBnMAddress: address(0x028E1B6f424c5A96E4bD5e1bbaB8b3C9088e5D39), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x967C605BFF8B9f7a4866ac9d1Ecc660F9CAd08Af), - registryModuleOwnerCustomAddress: address(0xAA3450998528E43322698a914D0b756B98292A3b), - tokenAdminRegistryAddress: address(0x58A89590d10BA6553760ca81E66Ce06dfB70429a) - }); - + if (chainId == 338) { + return NetworkDetails({ + chainSelector: 2995292832068775165, + routerAddress: address(0xa0F5f5867F528CCc0f9bCc5225063b4A38b5dEBd), + linkAddress: address(0x2896e619Fa7c831A7E52b87EffF4d671bEc6B262), + wrappedNativeAddress: address(0x5C50653Ada833D649a718ba4D1Fb9e2EE49c202d), + ccipBnMAddress: address(0x028E1B6f424c5A96E4bD5e1bbaB8b3C9088e5D39), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x967C605BFF8B9f7a4866ac9d1Ecc660F9CAd08Af), + registryModuleOwnerCustomAddress: address(0xAA3450998528E43322698a914D0b756B98292A3b), + tokenAdminRegistryAddress: address(0x58A89590d10BA6553760ca81E66Ce06dfB70429a) + }); + } // Cronos zkEVM - s_networkDetails[388] = NetworkDetails({ - chainSelector: 8788096068760390840, - routerAddress: address(0x17b828DF8679D68318f0849C1221AD1760699eCb), - linkAddress: address(0x61170ca9fB9cF98d4c7d684e07be6D969D59667E), - wrappedNativeAddress: address(0xC1bF55EE54E16229d9b369a5502Bfe5fC9F20b6d), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0xA6f2662523693CFA3Ff2e36e3550ea432864c7DA), - registryModuleOwnerCustomAddress: address(0x5Fa0fa2f1dE61BddD68dc8902b59Eaa028BE6F57), - tokenAdminRegistryAddress: address(0x94Fa8b263dEb66fA3e160D408Cd200be8b030609) - }); - + if (chainId == 388) { + return NetworkDetails({ + chainSelector: 8788096068760390840, + routerAddress: address(0x17b828DF8679D68318f0849C1221AD1760699eCb), + linkAddress: address(0x61170ca9fB9cF98d4c7d684e07be6D969D59667E), + wrappedNativeAddress: address(0xC1bF55EE54E16229d9b369a5502Bfe5fC9F20b6d), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0xA6f2662523693CFA3Ff2e36e3550ea432864c7DA), + registryModuleOwnerCustomAddress: address(0x5Fa0fa2f1dE61BddD68dc8902b59Eaa028BE6F57), + tokenAdminRegistryAddress: address(0x94Fa8b263dEb66fA3e160D408Cd200be8b030609) + }); + } // World Chain - s_networkDetails[480] = NetworkDetails({ - chainSelector: 2049429975587534727, - routerAddress: address(0x5fd9E4986187c56826A3064954Cfa2Cf250cfA0f), - linkAddress: address(0x915b648e994d5f31059B38223b9fbe98ae185473), - wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x7DE7Ef73cF001ff15b3aA558855D7eeC439d43ab), - registryModuleOwnerCustomAddress: address(0xb0112a2723D9D6CB5194580701A93B1eb67846D2), - tokenAdminRegistryAddress: address(0x02Fe6ab4fb0943F58D9D925d1d2cbA9474997Ed0) - }); - + if (chainId == 480) { + return NetworkDetails({ + chainSelector: 2049429975587534727, + routerAddress: address(0x5fd9E4986187c56826A3064954Cfa2Cf250cfA0f), + linkAddress: address(0x915b648e994d5f31059B38223b9fbe98ae185473), + wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x7DE7Ef73cF001ff15b3aA558855D7eeC439d43ab), + registryModuleOwnerCustomAddress: address(0xb0112a2723D9D6CB5194580701A93B1eb67846D2), + tokenAdminRegistryAddress: address(0x02Fe6ab4fb0943F58D9D925d1d2cbA9474997Ed0) + }); + } // Astar - s_networkDetails[592] = NetworkDetails({ - chainSelector: 6422105447186081193, - routerAddress: address(0x8D5c5CB8ec58285B424C93436189fB865e437feF), - linkAddress: address(0x31EFB841d5e0b4082F7E1267dab8De1b853f2A9d), - wrappedNativeAddress: address(0x37795FdD8C165CaB4D6c05771D564d80439CD093), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x7317D216F3DCDa40144a54eC9bA09829a423cb35), - registryModuleOwnerCustomAddress: address(0x3f2Be15aEA9F68f63ADE10440C6fE00753300b68), - tokenAdminRegistryAddress: address(0xB98eEd70e3cE8E342B0f770589769E3A6bc20A09) - }); - - // Janction Testnet - s_networkDetails[679] = NetworkDetails({ - chainSelector: 5059197667603797935, - routerAddress: address(0x6ddAFdf8bA76AFED73d6e7B599adDE014fA293bC), - linkAddress: address(0x7311DED199CC28D80E58e81e8589aa160199FCD2), - wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x2b78139A0580592e2dfa55138c1F2eA5376b1ab4), - registryModuleOwnerCustomAddress: address(0x95964Bf01b642Ce6Aa8996cC517B9a140fEb1E9f), - tokenAdminRegistryAddress: address(0x869D08b51D16869899d16a0Ba3eAda58521f8854) - }); - + if (chainId == 592) { + return NetworkDetails({ + chainSelector: 6422105447186081193, + routerAddress: address(0x8D5c5CB8ec58285B424C93436189fB865e437feF), + linkAddress: address(0x31EFB841d5e0b4082F7E1267dab8De1b853f2A9d), + wrappedNativeAddress: address(0x37795FdD8C165CaB4D6c05771D564d80439CD093), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x7317D216F3DCDa40144a54eC9bA09829a423cb35), + registryModuleOwnerCustomAddress: address(0x3f2Be15aEA9F68f63ADE10440C6fE00753300b68), + tokenAdminRegistryAddress: address(0xB98eEd70e3cE8E342B0f770589769E3A6bc20A09) + }); + } // Mode Sepolia - s_networkDetails[919] = NetworkDetails({ - chainSelector: 829525985033418733, - routerAddress: address(0xc49ec0eB4beb48B8Da4cceC51AA9A5bD0D0A4c43), - linkAddress: address(0x925a4bfE64AE2bFAC8a02b35F78e60C29743755d), - wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), - ccipBnMAddress: address(0xB9d4e1141E67ECFedC8A8139b5229b7FF2BF16F5), - ccipLnMAddress: address(0x86f9Eed8EAD1534D87d23FbAB247D764fC725D49), - rmnProxyAddress: address(0xcbFD5e55619B4EE3E6e7fe3CEb0E78fDf7d82dfc), - registryModuleOwnerCustomAddress: address(0xd7b86ed053806177718B9e03c63c4Bc501825C00), - tokenAdminRegistryAddress: address(0xc89d4ff0cb206677a7555e52500879bfab73cC68) - }); - + if (chainId == 919) { + return NetworkDetails({ + chainSelector: 829525985033418733, + routerAddress: address(0xc49ec0eB4beb48B8Da4cceC51AA9A5bD0D0A4c43), + linkAddress: address(0x925a4bfE64AE2bFAC8a02b35F78e60C29743755d), + wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), + ccipBnMAddress: address(0xB9d4e1141E67ECFedC8A8139b5229b7FF2BF16F5), + ccipLnMAddress: address(0x86f9Eed8EAD1534D87d23FbAB247D764fC725D49), + rmnProxyAddress: address(0xcbFD5e55619B4EE3E6e7fe3CEb0E78fDf7d82dfc), + registryModuleOwnerCustomAddress: address(0xd7b86ed053806177718B9e03c63c4Bc501825C00), + tokenAdminRegistryAddress: address(0xc89d4ff0cb206677a7555e52500879bfab73cC68) + }); + } // Bittensor EVM - s_networkDetails[964] = NetworkDetails({ - chainSelector: 2135107236357186872, - routerAddress: address(0xD941fBEcD2b971d0F54b4C34286C95faB52B60B8), - linkAddress: address(0xf09AFe78d3c7d359b334d7cB88995751F7eC5E13), - wrappedNativeAddress: address(0x5F3B70e0c089a1e3020B1990823Bc241a7bF3522), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x02A4D69cFfeC00Fbf7F3B60c93e3529Dfc58894d), - registryModuleOwnerCustomAddress: address(0xcDca5D374e46A6DDDab50bD2D9acB8c796eC35C3), - tokenAdminRegistryAddress: address(0xe72d25aDd538E8ef9CeF85622eA8912a6CB98Be6) - }); - + if (chainId == 964) { + return NetworkDetails({ + chainSelector: 2135107236357186872, + routerAddress: address(0xD941fBEcD2b971d0F54b4C34286C95faB52B60B8), + linkAddress: address(0xf09AFe78d3c7d359b334d7cB88995751F7eC5E13), + wrappedNativeAddress: address(0x5F3B70e0c089a1e3020B1990823Bc241a7bF3522), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x02A4D69cFfeC00Fbf7F3B60c93e3529Dfc58894d), + registryModuleOwnerCustomAddress: address(0xcDca5D374e46A6DDDab50bD2D9acB8c796eC35C3), + tokenAdminRegistryAddress: address(0xe72d25aDd538E8ef9CeF85622eA8912a6CB98Be6) + }); + } // Stable - s_networkDetails[988] = NetworkDetails({ - chainSelector: 16978377838628290997, - routerAddress: address(0xECFF67559c0583027A5fbd85136E33bC4D66eeA0), - linkAddress: address(0x985FB0821Eef0056ec26DD8b33dC61b9415B7F4b), - wrappedNativeAddress: address(0xB23540d08122C634a839F0143267BeA9936Dd466), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x8A76fe7fA6da27f85a626c5C53730B38D13603d7), - registryModuleOwnerCustomAddress: address(0x7CcFb2Fa43637b4858Cb1269CF0d64a99e8C668a), - tokenAdminRegistryAddress: address(0x3c23e6FB09064e9A64829Fa8FEe27Ad19A27Bfa9) - }); - + if (chainId == 988) { + return NetworkDetails({ + chainSelector: 16978377838628290997, + routerAddress: address(0xECFF67559c0583027A5fbd85136E33bC4D66eeA0), + linkAddress: address(0x985FB0821Eef0056ec26DD8b33dC61b9415B7F4b), + wrappedNativeAddress: address(0), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x8A76fe7fA6da27f85a626c5C53730B38D13603d7), + registryModuleOwnerCustomAddress: address(0x7CcFb2Fa43637b4858Cb1269CF0d64a99e8C668a), + tokenAdminRegistryAddress: address(0x3c23e6FB09064e9A64829Fa8FEe27Ad19A27Bfa9) + }); + } + // HyperEVM Testnet + if (chainId == 998) { + return NetworkDetails({ + chainSelector: 4286062357653186312, + routerAddress: address(0xC1bfda59F0D6dD9f7D0A24c5a7AAfED3945A8ed6), + linkAddress: address(0xDD311DBec8A24EdFabf5F985845a75F42e8f9544), + wrappedNativeAddress: address(0x5555555555555555555555555555555555555555), + ccipBnMAddress: address(0x08924F539b72178Ca46dC355c1Cb981EF929F592), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x29BF4b8Ab30b7293bAbd5280999f1F055FF4420A), + registryModuleOwnerCustomAddress: address(0x0684b79ae894a9962a5356D6BFd0d466878c3813), + tokenAdminRegistryAddress: address(0xFeA0ADAd87BD3431521De21467781592cD2Bf209) + }); + } // HyperEVM - s_networkDetails[999] = NetworkDetails({ - chainSelector: 2442541497099098535, - routerAddress: address(0x13b3332b66389B1467CA6eBd6fa79775CCeF65ec), - linkAddress: address(0x1AC2EE68b8d038C982C1E1f73F596927dd70De59), - wrappedNativeAddress: address(0x5555555555555555555555555555555555555555), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x07f15e9813FBd007d38CF534133C0838f449ecFA), - registryModuleOwnerCustomAddress: address(0xe2712A0C09DfB8031857Adb8D73Eb04997D271bA), - tokenAdminRegistryAddress: address(0xcE44363496ABc3a9e53B3F404a740F992D977bDF) - }); - + if (chainId == 999) { + return NetworkDetails({ + chainSelector: 2442541497099098535, + routerAddress: address(0x13b3332b66389B1467CA6eBd6fa79775CCeF65ec), + linkAddress: address(0x1AC2EE68b8d038C982C1E1f73F596927dd70De59), + wrappedNativeAddress: address(0x5555555555555555555555555555555555555555), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x07f15e9813FBd007d38CF534133C0838f449ecFA), + registryModuleOwnerCustomAddress: address(0xe2712A0C09DfB8031857Adb8D73Eb04997D271bA), + tokenAdminRegistryAddress: address(0xcE44363496ABc3a9e53B3F404a740F992D977bDF) + }); + } // Kaia Kairos - s_networkDetails[1001] = NetworkDetails({ - chainSelector: 2624132734533621656, - routerAddress: address(0x41477416677843fCE577748D2e762B6638492755), - linkAddress: address(0xAF3243f975afe2269Da8Ffa835CA3A8F8B6A5A36), - wrappedNativeAddress: address(0xF04fcEC93DEB6191B704a0ec5d0FFF2A8B2c39be), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x0a57d85E0CE3AafB22079A4c18B4Eb6D3B88BA46), - registryModuleOwnerCustomAddress: address(0x68cFC03A4607fFA9C1017e0a3739a9C304097b80), - tokenAdminRegistryAddress: address(0xA6c4CfcDfAaAabeE20C50A6aDa130608cf9D3CC8) - }); - + if (chainId == 1001) { + return NetworkDetails({ + chainSelector: 2624132734533621656, + routerAddress: address(0x41477416677843fCE577748D2e762B6638492755), + linkAddress: address(0xAF3243f975afe2269Da8Ffa835CA3A8F8B6A5A36), + wrappedNativeAddress: address(0xF04fcEC93DEB6191B704a0ec5d0FFF2A8B2c39be), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x0a57d85E0CE3AafB22079A4c18B4Eb6D3B88BA46), + registryModuleOwnerCustomAddress: address(0xf9779C0527307a516b9334CC1F609B888A61C237), + tokenAdminRegistryAddress: address(0xA6c4CfcDfAaAabeE20C50A6aDa130608cf9D3CC8) + }); + } // Metis Andromeda - s_networkDetails[1088] = NetworkDetails({ - chainSelector: 8805746078405598895, - routerAddress: address(0x7b9FB8717D306e2e08ce2e1Efa81F026bf9AD13c), - linkAddress: address(0xd2FE54D1E5F568eB710ba9d898Bf4bD02C7c0353), - wrappedNativeAddress: address(0x75cb093E4D61d2A2e65D8e0BBb01DE8d89b53481), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0xd99cc1d64027E07Cd2AaE871E16bb32b8F401998), - registryModuleOwnerCustomAddress: address(0xE939C02E92e9E66d1F0D8E4F099E7d3d269a8a11), - tokenAdminRegistryAddress: address(0x3af897541eB03927c7431bF68884A6C2C23b683f) - }); - - // Polygon zkEVM - s_networkDetails[1101] = NetworkDetails({ - chainSelector: 4348158687435793198, - routerAddress: address(0xA9999937159B293c72e2367Ce314cb3544e7C1a3), - linkAddress: address(0xdB7A504CF869484dd6aC5FaF925c8386CBF7573D), - wrappedNativeAddress: address(0x4F9A0e7FD2Bf6067db6994CF12E4495Df938E6e9), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x272fB92E5D43ffcCEb56bBE5b2D7B88a86235c48), - registryModuleOwnerCustomAddress: address(0xb227f007804c16546Bd054dfED2E7A1fD5437678), - tokenAdminRegistryAddress: address(0xe87fB6c46DCAADA001681819d2bD3c64f58D8963) - }); - + if (chainId == 1088) { + return NetworkDetails({ + chainSelector: 8805746078405598895, + routerAddress: address(0x7b9FB8717D306e2e08ce2e1Efa81F026bf9AD13c), + linkAddress: address(0xd2FE54D1E5F568eB710ba9d898Bf4bD02C7c0353), + wrappedNativeAddress: address(0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0xd99cc1d64027E07Cd2AaE871E16bb32b8F401998), + registryModuleOwnerCustomAddress: address(0xE939C02E92e9E66d1F0D8E4F099E7d3d269a8a11), + tokenAdminRegistryAddress: address(0x3af897541eB03927c7431bF68884A6C2C23b683f) + }); + } // Wemix - s_networkDetails[1111] = NetworkDetails({ - chainSelector: 5142893604156789321, - routerAddress: address(0x7798b795Fde864f4Cd1b124a38Ba9619B7F8A442), - linkAddress: address(0x80f1FcdC96B55e459BF52b998aBBE2c364935d69), - wrappedNativeAddress: address(0x7D72b22a74A216Af4a002a1095C8C707d6eC1C5f), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x2375959c6571AC7a83c164C6FCcbd09E7782773d), - registryModuleOwnerCustomAddress: address(0xF549af21578Cfe2385FFD3488B3039fd9e52f006), - tokenAdminRegistryAddress: address(0xE993e046AC50659800a91Bab0bd2daBF59CbD171) - }); - + if (chainId == 1111) { + return NetworkDetails({ + chainSelector: 5142893604156789321, + routerAddress: address(0x7798b795Fde864f4Cd1b124a38Ba9619B7F8A442), + linkAddress: address(0x80f1FcdC96B55e459BF52b998aBBE2c364935d69), + wrappedNativeAddress: address(0x7D72b22a74A216Af4a002a1095C8C707d6eC1C5f), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x2375959c6571AC7a83c164C6FCcbd09E7782773d), + registryModuleOwnerCustomAddress: address(0xF549af21578Cfe2385FFD3488B3039fd9e52f006), + tokenAdminRegistryAddress: address(0xE993e046AC50659800a91Bab0bd2daBF59CbD171) + }); + } // Wemix Testnet - s_networkDetails[1112] = NetworkDetails({ - chainSelector: 9284632837123596123, - routerAddress: address(0xA8C0c11bf64AF62CDCA6f93D3769B88BdD7cb93D), - linkAddress: address(0x3580c7A817cCD41f7e02143BFa411D4EeAE78093), - wrappedNativeAddress: address(0xbE3686643c05f00eC46e73da594c78098F7a9Ae7), - ccipBnMAddress: address(0xF4E4057FbBc86915F4b2d63EEFFe641C03294ffc), - ccipLnMAddress: address(0xcb342aE3D65E3fEDF8F912B0432e2B8F88514d5D), - rmnProxyAddress: address(0xA930c1E0fF1E1005E8Ef569Aa81e6EEbf466b1c3), - registryModuleOwnerCustomAddress: address(0x76c00B055414de203B79B4955E28119BF459033e), - tokenAdminRegistryAddress: address(0xecf484BFcC51F24fcB31056c262A021bAf688D9B) - }); - + if (chainId == 1112) { + return NetworkDetails({ + chainSelector: 9284632837123596123, + routerAddress: address(0xA8C0c11bf64AF62CDCA6f93D3769B88BdD7cb93D), + linkAddress: address(0x3580c7A817cCD41f7e02143BFa411D4EeAE78093), + wrappedNativeAddress: address(0xbE3686643c05f00eC46e73da594c78098F7a9Ae7), + ccipBnMAddress: address(0xF4E4057FbBc86915F4b2d63EEFFe641C03294ffc), + ccipLnMAddress: address(0xcb342aE3D65E3fEDF8F912B0432e2B8F88514d5D), + rmnProxyAddress: address(0xA930c1E0fF1E1005E8Ef569Aa81e6EEbf466b1c3), + registryModuleOwnerCustomAddress: address(0x76c00B055414de203B79B4955E28119BF459033e), + tokenAdminRegistryAddress: address(0xecf484BFcC51F24fcB31056c262A021bAf688D9B) + }); + } // Core Testnet - s_networkDetails[1114] = NetworkDetails({ - chainSelector: 4264732132125536123, - routerAddress: address(0xded0EE188Fe8F1706D9049e29C82081A5ebEcb2F), - linkAddress: address(0x6C475841d1D7871940E93579E5DBaE01634e17aA), - wrappedNativeAddress: address(0x7Ce5fCfFd1296d870b3578809B31D8CA8bF5aC3d), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0xF39a1260F4E3345D810e1b8aA569200e1D27A998), - registryModuleOwnerCustomAddress: address(0x13d13E0BBf0387c0e9C6beb73D0593d2FFc1F24d), - tokenAdminRegistryAddress: address(0x2c99403fDB26F654c410D81264033faE289fa7Ea) - }); - + if (chainId == 1114) { + return NetworkDetails({ + chainSelector: 4264732132125536123, + routerAddress: address(0xded0EE188Fe8F1706D9049e29C82081A5ebEcb2F), + linkAddress: address(0x6C475841d1D7871940E93579E5DBaE01634e17aA), + wrappedNativeAddress: address(0x7Ce5fCfFd1296d870b3578809B31D8CA8bF5aC3d), + ccipBnMAddress: address(0xE54E45Af45707CbFe91943D0F962a9BC881758FA), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0xF39a1260F4E3345D810e1b8aA569200e1D27A998), + registryModuleOwnerCustomAddress: address(0x13d13E0BBf0387c0e9C6beb73D0593d2FFc1F24d), + tokenAdminRegistryAddress: address(0x2c99403fDB26F654c410D81264033faE289fa7Ea) + }); + } // Core - s_networkDetails[1116] = NetworkDetails({ - chainSelector: 1224752112135636129, - routerAddress: address(0xF7Cc8b0B5263A74AFBb1a2ac87FfF1CF7E62152f), - linkAddress: address(0x3902228D6A3d2Dc44731fD9d45FeE6a61c722D0b), - wrappedNativeAddress: address(0x40375C92d9FAf44d2f9db9Bd9ba41a3317a2404f), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x1e9B034c67B6eA4cB819aA8BE4E84cff2d5417fb), - registryModuleOwnerCustomAddress: address(0x50056397CF6ccF50D1748e95c32EC361951ee6F9), - tokenAdminRegistryAddress: address(0x4D2B43c60f3e476Ee94637C4e3be844FC9a70012) - }); - - // B² Testnet - s_networkDetails[1123] = NetworkDetails({ - chainSelector: 1948510578179542068, - routerAddress: address(0x34A49Eb641daF64d61be00Aa7F759f8225351101), - linkAddress: address(0x436a1907D9e6a65E6db73015F08f9C66F6B63E45), - wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), - ccipBnMAddress: address(0x0643fD73C261eC4B369C3a8C5c0eC8c57485E32d), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x2ce782d1B03CF45F003685614AFaD6495FAf70D4), - registryModuleOwnerCustomAddress: address(0x9a3F1b6Fb4007413078352c5b25C2814aD5732BC), - tokenAdminRegistryAddress: address(0xfCaaFD5157aae3cAE886318a0D104D0B19fEEaA1) - }); - + if (chainId == 1116) { + return NetworkDetails({ + chainSelector: 1224752112135636129, + routerAddress: address(0xF7Cc8b0B5263A74AFBb1a2ac87FfF1CF7E62152f), + linkAddress: address(0x3902228D6A3d2Dc44731fD9d45FeE6a61c722D0b), + wrappedNativeAddress: address(0x40375C92d9FAf44d2f9db9Bd9ba41a3317a2404f), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x1e9B034c67B6eA4cB819aA8BE4E84cff2d5417fb), + registryModuleOwnerCustomAddress: address(0x50056397CF6ccF50D1748e95c32EC361951ee6F9), + tokenAdminRegistryAddress: address(0x4D2B43c60f3e476Ee94637C4e3be844FC9a70012) + }); + } // Lisk - s_networkDetails[1135] = NetworkDetails({ - chainSelector: 15293031020466096408, - routerAddress: address(0x0145c1fbA8a16128c1061eB9CE7eC3cadb8e30c7), - linkAddress: address(0x71052BAe71C25C78E37fD12E5ff1101A71d9018F), - wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x193e4f6c1A2FD8fa167c8a6e8E05564402DF6890), - registryModuleOwnerCustomAddress: address(0x15C03488B29e27d62BAf10E30b0c474bf60E0264), - tokenAdminRegistryAddress: address(0x98acD723D0E9C13d09Df4619Abec729F3434a10a) - }); - + if (chainId == 1135) { + return NetworkDetails({ + chainSelector: 15293031020466096408, + routerAddress: address(0x0145c1fbA8a16128c1061eB9CE7eC3cadb8e30c7), + linkAddress: address(0x71052BAe71C25C78E37fD12E5ff1101A71d9018F), + wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x193e4f6c1A2FD8fa167c8a6e8E05564402DF6890), + registryModuleOwnerCustomAddress: address(0x15C03488B29e27d62BAf10E30b0c474bf60E0264), + tokenAdminRegistryAddress: address(0x98acD723D0E9C13d09Df4619Abec729F3434a10a) + }); + } // Unichain Sepolia - s_networkDetails[1301] = NetworkDetails({ - chainSelector: 14135854469784514356, - routerAddress: address(0x5b7D7CDf03871dc9Eb00830B027e70A75bd3DC95), - linkAddress: address(0xda40816f278Cd049c137F6612822D181065EBfB4), - wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), - ccipBnMAddress: address(0x6122841A203d34Cd3087c3C19d04d101F6FaF8e8), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x6dFD89Ff6bDa2EA420Dfe6Cc57E7e1F9cf610925), - registryModuleOwnerCustomAddress: address(0x07d59512C970D0Df9D7d82AfC5996e822E000539), - tokenAdminRegistryAddress: address(0xf2d17820416B692c52515A828B8A26d2f22cafce) - }); - + if (chainId == 1301) { + return NetworkDetails({ + chainSelector: 14135854469784514356, + routerAddress: address(0x5b7D7CDf03871dc9Eb00830B027e70A75bd3DC95), + linkAddress: address(0xda40816f278Cd049c137F6612822D181065EBfB4), + wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), + ccipBnMAddress: address(0xfE71882442C3Ab1C0651f2675a5c77285D415405), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x6dFD89Ff6bDa2EA420Dfe6Cc57E7e1F9cf610925), + registryModuleOwnerCustomAddress: address(0x07d59512C970D0Df9D7d82AfC5996e822E000539), + tokenAdminRegistryAddress: address(0xf2d17820416B692c52515A828B8A26d2f22cafce) + }); + } // Sei Testnet - s_networkDetails[1328] = NetworkDetails({ - chainSelector: 1216300075444106652, - routerAddress: address(0x59F5222c5d77f8D3F56e34Ff7E75A05d2cF3a98A), - linkAddress: address(0xA9d21ed8260DE08fF39DC5e7B65806d4e1CB817B), - wrappedNativeAddress: address(0x3921eA6Cf927BE80211Bb57f19830700285b0AdA), - ccipBnMAddress: address(0x271F22d029c6edFc9469faE189C4F43E457F257C), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x754aBd2496Bea05ceDE80Df8bE530f6132208c41), - registryModuleOwnerCustomAddress: address(0x28217C5dd0718e9f8EB301b28E32eFd13D71308A), - tokenAdminRegistryAddress: address(0xDF27EE0050C2D3831089B14aCC465aBF9fD12C64) - }); - + if (chainId == 1328) { + return NetworkDetails({ + chainSelector: 1216300075444106652, + routerAddress: address(0x59F5222c5d77f8D3F56e34Ff7E75A05d2cF3a98A), + linkAddress: address(0xA9d21ed8260DE08fF39DC5e7B65806d4e1CB817B), + wrappedNativeAddress: address(0x3921eA6Cf927BE80211Bb57f19830700285b0AdA), + ccipBnMAddress: address(0x3Dddf2d054DDDB80B6Ad463237a074A147Ea2a37), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x754aBd2496Bea05ceDE80Df8bE530f6132208c41), + registryModuleOwnerCustomAddress: address(0x28217C5dd0718e9f8EB301b28E32eFd13D71308A), + tokenAdminRegistryAddress: address(0xDF27EE0050C2D3831089B14aCC465aBF9fD12C64) + }); + } // Sei Network - s_networkDetails[1329] = NetworkDetails({ - chainSelector: 9027416829622342829, - routerAddress: address(0xAba60dA7E88F7E8f5868C2B6dE06CB759d693af0), - linkAddress: address(0x71052BAe71C25C78E37fD12E5ff1101A71d9018F), - wrappedNativeAddress: address(0xE30feDd158A2e3b13e9badaeABaFc5516e95e8C7), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x32C67585dA17839245c75D80d36c8CBD7d35E1a5), - registryModuleOwnerCustomAddress: address(0x258Fc917b8de98b4aA0d38776E95dcce9e7EC8aC), - tokenAdminRegistryAddress: address(0x910a46cA93E8086BF1d7D65190eE6AEe5256Bd61) - }); - + if (chainId == 1329) { + return NetworkDetails({ + chainSelector: 9027416829622342829, + routerAddress: address(0xAba60dA7E88F7E8f5868C2B6dE06CB759d693af0), + linkAddress: address(0x71052BAe71C25C78E37fD12E5ff1101A71d9018F), + wrappedNativeAddress: address(0xE30feDd158A2e3b13e9badaeABaFc5516e95e8C7), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x32C67585dA17839245c75D80d36c8CBD7d35E1a5), + registryModuleOwnerCustomAddress: address(0x258Fc917b8de98b4aA0d38776E95dcce9e7EC8aC), + tokenAdminRegistryAddress: address(0x910a46cA93E8086BF1d7D65190eE6AEe5256Bd61) + }); + } // Pharos Mainnet - s_networkDetails[1672] = NetworkDetails({ - chainSelector: 7801139999541420232, - routerAddress: address(0x4e52dD94e9BCfeFE3C78153bDfB0AB1d30687297), - linkAddress: address(0x51e2A24742Db77604B881d6781Ee16B5b8fcBE29), - wrappedNativeAddress: address(0x52C48d4213107b20bC583832b0d951FB9CA8F0B0), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0xF4486d70EBED800204898Ec99C812661551471dC), - registryModuleOwnerCustomAddress: address(0xE27dd9BF01B55ce6803c0d81386A04212c718b95), - tokenAdminRegistryAddress: address(0xB79791184973589c38e114D43Eb8E4588C283A18) - }); - - // Mint Sepolia - s_networkDetails[1687] = NetworkDetails({ - chainSelector: 10749384167430721561, - routerAddress: address(0x6Ce68Fb8eA7376d5c84de5486dE46286F6Dd3e36), - linkAddress: address(0x7ECBE3416d92E8d79C8e5d8EB8Aad5DdEdAa0237), - wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), - ccipBnMAddress: address(0x56408DC41E35d3E8E92A16bc94787438df9387a1), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x00b5C67a12F0B7fe9387A94284d94D133Ca85e0c), - registryModuleOwnerCustomAddress: address(0x811652BfD76D678CD798f2D83d437DCcEC336E1c), - tokenAdminRegistryAddress: address(0xD2820Aad3FC3544491A8FD58B433721Ec8a2304a) - }); - + if (chainId == 1672) { + return NetworkDetails({ + chainSelector: 7801139999541420232, + routerAddress: address(0x4e52dD94e9BCfeFE3C78153bDfB0AB1d30687297), + linkAddress: address(0x51e2A24742Db77604B881d6781Ee16B5b8fcBE29), + wrappedNativeAddress: address(0x52C48d4213107b20bC583832b0d951FB9CA8F0B0), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0xF4486d70EBED800204898Ec99C812661551471dC), + registryModuleOwnerCustomAddress: address(0xE27dd9BF01B55ce6803c0d81386A04212c718b95), + tokenAdminRegistryAddress: address(0xB79791184973589c38e114D43Eb8E4588C283A18) + }); + } // Metal L2 Testnet - s_networkDetails[1740] = NetworkDetails({ - chainSelector: 6286293440461807648, - routerAddress: address(0xB6F0d42A356aD4DC890BCD3EdCAFb1df13a30777), - linkAddress: address(0x7ECBE3416d92E8d79C8e5d8EB8Aad5DdEdAa0237), - wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), - ccipBnMAddress: address(0xbD6F12f358D8ee3b35B0AD612450a186bA866B72), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x587e5Db25504ed21Fac9D1aED52e48467d4B71Fe), - registryModuleOwnerCustomAddress: address(0x09ED6dC4d7cF091A1f9579FACA0d3f485A1c367B), - tokenAdminRegistryAddress: address(0x2FEAeE6E125791ef86d8b07DBf3ede1680434ea6) - }); - + if (chainId == 1740) { + return NetworkDetails({ + chainSelector: 6286293440461807648, + routerAddress: address(0xB6F0d42A356aD4DC890BCD3EdCAFb1df13a30777), + linkAddress: address(0x7ECBE3416d92E8d79C8e5d8EB8Aad5DdEdAa0237), + wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), + ccipBnMAddress: address(0xbD6F12f358D8ee3b35B0AD612450a186bA866B72), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x587e5Db25504ed21Fac9D1aED52e48467d4B71Fe), + registryModuleOwnerCustomAddress: address(0x09ED6dC4d7cF091A1f9579FACA0d3f485A1c367B), + tokenAdminRegistryAddress: address(0x2FEAeE6E125791ef86d8b07DBf3ede1680434ea6) + }); + } // Metal L2 - s_networkDetails[1750] = NetworkDetails({ - chainSelector: 13447077090413146373, - routerAddress: address(0x020c61ECEEE0E5DC32F2503AbB6E070fa0EbBfaA), - linkAddress: address(0x587d19DDF735D6B536aAdB1a2A92938eB23B8d5C), - wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x87E84fc7cBD63D7e8653C660De09Fe48AB0276a8), - registryModuleOwnerCustomAddress: address(0x258Fc917b8de98b4aA0d38776E95dcce9e7EC8aC), - tokenAdminRegistryAddress: address(0xc41640B959Ca2A62b9293509202D8615dC293634) - }); - + if (chainId == 1750) { + return NetworkDetails({ + chainSelector: 13447077090413146373, + routerAddress: address(0x020c61ECEEE0E5DC32F2503AbB6E070fa0EbBfaA), + linkAddress: address(0x587d19DDF735D6B536aAdB1a2A92938eB23B8d5C), + wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x87E84fc7cBD63D7e8653C660De09Fe48AB0276a8), + registryModuleOwnerCustomAddress: address(0x258Fc917b8de98b4aA0d38776E95dcce9e7EC8aC), + tokenAdminRegistryAddress: address(0xc41640B959Ca2A62b9293509202D8615dC293634) + }); + } // Soneium - s_networkDetails[1868] = NetworkDetails({ - chainSelector: 12505351618335765396, - routerAddress: address(0x8C8B88d827Fe14Df2bc6392947d513C86afD6977), - linkAddress: address(0x32D8F819C8080ae44375F8d383Ffd39FC642f3Ec), - wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x3117f515D763652A32d3D6D447171ea7c9d57218), - registryModuleOwnerCustomAddress: address(0x2c3D51c7B454cB045C8cEc92d2F9E717C7519106), - tokenAdminRegistryAddress: address(0x5ba21F6824400B91F232952CA6d7c8875C1755a4) - }); - + if (chainId == 1868) { + return NetworkDetails({ + chainSelector: 12505351618335765396, + routerAddress: address(0x8C8B88d827Fe14Df2bc6392947d513C86afD6977), + linkAddress: address(0x32D8F819C8080ae44375F8d383Ffd39FC642f3Ec), + wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x3117f515D763652A32d3D6D447171ea7c9d57218), + registryModuleOwnerCustomAddress: address(0x2c3D51c7B454cB045C8cEc92d2F9E717C7519106), + tokenAdminRegistryAddress: address(0x5ba21F6824400B91F232952CA6d7c8875C1755a4) + }); + } // Soneium Minato - s_networkDetails[1946] = NetworkDetails({ - chainSelector: 686603546605904534, - routerAddress: address(0x443a1bce545d56E2c3f20ED32eA588395FFce0f4), - linkAddress: address(0x7ea13478Ea3961A0e8b538cb05a9DF0477c79Cd2), - wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x6172F4f60eEE3876cF83318DEe4477BfAf15Ffd3), - registryModuleOwnerCustomAddress: address(0xe06fE3AEfef3a27b8BF0edd5ae834B006EdE3aa1), - tokenAdminRegistryAddress: address(0xD2334a6f4f79CE462193EAcB89eB2c29Ae552750) - }); - + if (chainId == 1946) { + return NetworkDetails({ + chainSelector: 686603546605904534, + routerAddress: address(0x443a1bce545d56E2c3f20ED32eA588395FFce0f4), + linkAddress: address(0x7ea13478Ea3961A0e8b538cb05a9DF0477c79Cd2), + wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x6172F4f60eEE3876cF83318DEe4477BfAf15Ffd3), + registryModuleOwnerCustomAddress: address(0xB0dd0aCb94274140eF04fCd907C7e6773a10f09b), + tokenAdminRegistryAddress: address(0xD2334a6f4f79CE462193EAcB89eB2c29Ae552750) + }); + } // Ronin - s_networkDetails[2020] = NetworkDetails({ - chainSelector: 6916147374840168594, - routerAddress: address(0x46527571D5D1B68eE7Eb60B18A32e6C60DcEAf99), - linkAddress: address(0x3902228D6A3d2Dc44731fD9d45FeE6a61c722D0b), - wrappedNativeAddress: address(0xe514d9DEB7966c8BE0ca922de8a064264eA6bcd4), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0xceA253a8c2BB995054524d071498281E89aACD59), - registryModuleOwnerCustomAddress: address(0xC6a4854eeB493224d5f9485E12Dd3A81f22EEE14), - tokenAdminRegistryAddress: address(0x90e83d532A4aD13940139c8ACE0B93b0DdbD323a) - }); - - // Memento Testnet - s_networkDetails[2129] = NetworkDetails({ - chainSelector: 12168171414969487009, - routerAddress: address(0xEAB080c724587fFC9F2EFF82e36EE4Fb27774959), - linkAddress: address(0xe5e3a4fF1773d043a387b16Ceb3c91cC49bAFD54), - wrappedNativeAddress: address(0x85Be6b6ff4e61C3bEB0Fb73a2A9dC3A80e279c86), - ccipBnMAddress: address(0x62325603b3550CbF763cb47F9Fe081dD977e728a), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x6D5035E99D19b436814BFBA65065EfFE2DF34726), - registryModuleOwnerCustomAddress: address(0x23a5084Fa78104F3DF11C63Ae59fcac4f6AD9DeE), - tokenAdminRegistryAddress: address(0x995ab3eC29E1660A93cFddAA19C710A1b5afCCc9) - }); - - // Kroma Sepolia - s_networkDetails[2358] = NetworkDetails({ - chainSelector: 5990477251245693094, - routerAddress: address(0xA8C0c11bf64AF62CDCA6f93D3769B88BdD7cb93D), - linkAddress: address(0xa75cCA5b404ec6F4BB6EC4853D177FE7057085c8), - wrappedNativeAddress: address(0x4200000000000000000000000000000000000001), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0x835fcBB6770E1246CfCf52F83cDcec3177d0bb6b), - rmnProxyAddress: address(0xA930c1E0fF1E1005E8Ef569Aa81e6EEbf466b1c3), - registryModuleOwnerCustomAddress: address(0x683995A22b3654556E9EeA29C0b9df973be6D549), - tokenAdminRegistryAddress: address(0xaE669d8217c00b02Fb7a7d9902c897745F4f4c83) - }); - + if (chainId == 2020) { + return NetworkDetails({ + chainSelector: 6916147374840168594, + routerAddress: address(0x46527571D5D1B68eE7Eb60B18A32e6C60DcEAf99), + linkAddress: address(0x3902228D6A3d2Dc44731fD9d45FeE6a61c722D0b), + wrappedNativeAddress: address(0xe514d9DEB7966c8BE0ca922de8a064264eA6bcd4), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0xceA253a8c2BB995054524d071498281E89aACD59), + registryModuleOwnerCustomAddress: address(0xC6a4854eeB493224d5f9485E12Dd3A81f22EEE14), + tokenAdminRegistryAddress: address(0x90e83d532A4aD13940139c8ACE0B93b0DdbD323a) + }); + } // TAC Saint Petersburg - s_networkDetails[2391] = NetworkDetails({ - chainSelector: 9488606126177218005, - routerAddress: address(0x1D0b2edF6b66845872b6cC82C036E3601Cb2Be57), - linkAddress: address(0xe5e3a4fF1773d043a387b16Ceb3c91cC49bAFD54), - wrappedNativeAddress: address(0xCf61405b7525F09f4E7501fc831fE7cbCc823d4c), - ccipBnMAddress: address(0x4Bc8740F54eC7CD6738f19ff00438bFE3DCbceB3), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0xEAB080c724587fFC9F2EFF82e36EE4Fb27774959), - registryModuleOwnerCustomAddress: address(0xd3e461C55676B10634a5F81b747c324B85686Dd1), - tokenAdminRegistryAddress: address(0xD610B8f58689de7755947C05342A2DFaC30ebD57) - }); - - // Polygon zkEVM Cardona - s_networkDetails[2442] = NetworkDetails({ - chainSelector: 1654667687261492630, - routerAddress: address(0x91A7f913EEF5E3058AD1Bf8842C294f7219C7271), - linkAddress: address(0x5576815a38A3706f37bf815b261cCc7cCA77e975), - wrappedNativeAddress: address(0x1CE28d5C81B229c77C5651feB49c4C489f8c52C4), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0xA4C9e2108ca478DE0B91c7D9Ba034bbc93C22Ecc), - rmnProxyAddress: address(0x174813BA5102bD363924bABBeEcE4865FBC426BF), - registryModuleOwnerCustomAddress: address(0xb7E0D638cE82ba6AdC88D7FeBD5E06e549bAC4b6), - tokenAdminRegistryAddress: address(0x6bdFA65ccd2Aba2913De2c0a588C317Dc651d9C3) - }); - - // Fraxtal Testnet - s_networkDetails[2522] = NetworkDetails({ - chainSelector: 8901520481741771655, - routerAddress: address(0x0a355FC36C10007D3059637f0cd7cFfBE845241a), - linkAddress: address(0xb192c5Fb8e33694F0CFD4357806a63dc59feEBEF), - wrappedNativeAddress: address(0xFC00000000000000000000000000000000000006), - ccipBnMAddress: address(0x6122841A203d34Cd3087c3C19d04d101F6FaF8e8), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x9496599d8C12955028E615B26D014c1387E771cb), - registryModuleOwnerCustomAddress: address(0x9F6a9ac622384d0e11E8e018CB0a77B2B81091Ee), - tokenAdminRegistryAddress: address(0x9f9fd4eD94e95DbaDf34f582CB1b9245A4CF2Cc8) - }); - + if (chainId == 2391) { + return NetworkDetails({ + chainSelector: 9488606126177218005, + routerAddress: address(0x1D0b2edF6b66845872b6cC82C036E3601Cb2Be57), + linkAddress: address(0xe5e3a4fF1773d043a387b16Ceb3c91cC49bAFD54), + wrappedNativeAddress: address(0xCf61405b7525F09f4E7501fc831fE7cbCc823d4c), + ccipBnMAddress: address(0x4Bc8740F54eC7CD6738f19ff00438bFE3DCbceB3), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0xEAB080c724587fFC9F2EFF82e36EE4Fb27774959), + registryModuleOwnerCustomAddress: address(0xd3e461C55676B10634a5F81b747c324B85686Dd1), + tokenAdminRegistryAddress: address(0xD610B8f58689de7755947C05342A2DFaC30ebD57) + }); + } // Abstract - s_networkDetails[2741] = NetworkDetails({ - chainSelector: 3577778157919314504, - routerAddress: address(0x09521B0B5BB2d4406124c0207Cf551829B45f84d), - linkAddress: address(0x2Ea38D6cDb6774992d4A62fe622f4405663729Dd), - wrappedNativeAddress: address(0x3439153EB7AF838Ad19d56E1571FBD09333C2809), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x2edAc8B8928c4e1Ed559e619b6A8a4aaCe9Ef18A), - registryModuleOwnerCustomAddress: address(0xB79791184973589c38e114D43Eb8E4588C283A18), - tokenAdminRegistryAddress: address(0x7EEdf2DBC74924Cb1f23fC8845CD35bF18b697de) - }); - + if (chainId == 2741) { + return NetworkDetails({ + chainSelector: 3577778157919314504, + routerAddress: address(0x09521B0B5BB2d4406124c0207Cf551829B45f84d), + linkAddress: address(0x2Ea38D6cDb6774992d4A62fe622f4405663729Dd), + wrappedNativeAddress: address(0x3439153EB7AF838Ad19d56E1571FBD09333C2809), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x2edAc8B8928c4e1Ed559e619b6A8a4aaCe9Ef18A), + registryModuleOwnerCustomAddress: address(0xB79791184973589c38e114D43Eb8E4588C283A18), + tokenAdminRegistryAddress: address(0x7EEdf2DBC74924Cb1f23fC8845CD35bF18b697de) + }); + } // Morph - s_networkDetails[2818] = NetworkDetails({ - chainSelector: 18164309074156128038, - routerAddress: address(0x3201a20D2a33820C0DaC8Bc93C4819755C2a8c7F), - linkAddress: address(0x76a443768A5e3B8d1AED0105FC250877841Deb40), - wrappedNativeAddress: address(0x5300000000000000000000000000000000000011), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x15C03488B29e27d62BAf10E30b0c474bf60E0264), - registryModuleOwnerCustomAddress: address(0x9A82E768C885DEF7C4b47451Fd4Db53d8B21ed07), - tokenAdminRegistryAddress: address(0xEfd5fEFEdE55B5C41B8fa0d171a79ba5BeadD2Aa) - }); - + if (chainId == 2818) { + return NetworkDetails({ + chainSelector: 18164309074156128038, + routerAddress: address(0x3201a20D2a33820C0DaC8Bc93C4819755C2a8c7F), + linkAddress: address(0x76a443768A5e3B8d1AED0105FC250877841Deb40), + wrappedNativeAddress: address(0x5300000000000000000000000000000000000011), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x15C03488B29e27d62BAf10E30b0c474bf60E0264), + registryModuleOwnerCustomAddress: address(0x9A82E768C885DEF7C4b47451Fd4Db53d8B21ed07), + tokenAdminRegistryAddress: address(0xEfd5fEFEdE55B5C41B8fa0d171a79ba5BeadD2Aa) + }); + } // Morph Hoodi - s_networkDetails[2910] = NetworkDetails({ - chainSelector: 1064004874793747259, - routerAddress: address(0xd1CBe8dF481C7a78AaaAfB0466814d13d93bd9b7), - linkAddress: address(0xe5e3a4fF1773d043a387b16Ceb3c91cC49bAFD54), - wrappedNativeAddress: address(0x5300000000000000000000000000000000000011), - ccipBnMAddress: address(0x69521081Fd90669b59b1Cb3F67a2229D36a7De00), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x9A60462e4CA802E3E945663930Be0d162e662091), - registryModuleOwnerCustomAddress: address(0x5Dc49Ec54B92F7D493bC8126c0730DA74605cc00), - tokenAdminRegistryAddress: address(0x65B023D3D4Ea880B835BF2CDE48B296Ee7157EcE) - }); - - // Botanix Testnet - s_networkDetails[3636] = NetworkDetails({ - chainSelector: 1467223411771711614, - routerAddress: address(0x8a27438666Ef45093802F869bd146fB183dd5A32), - linkAddress: address(0x7311DED199CC28D80E58e81e8589aa160199FCD2), - wrappedNativeAddress: address(0x233631132FD56c8f86D1FC97F0b82420a8d20af3), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x073B0329bEdD96E95462A8d446E8FC3F5A959105), - registryModuleOwnerCustomAddress: address(0x3C6a0de9aF7051344aAE8b78a0ee4E43e050c7Dd), - tokenAdminRegistryAddress: address(0xd86b92de626aD63db80AF78B54e5739b6aC8b099) - }); - + if (chainId == 2910) { + return NetworkDetails({ + chainSelector: 1064004874793747259, + routerAddress: address(0xd1CBe8dF481C7a78AaaAfB0466814d13d93bd9b7), + linkAddress: address(0x28217C5dd0718e9f8EB301b28E32eFd13D71308A), + wrappedNativeAddress: address(0x5300000000000000000000000000000000000011), + ccipBnMAddress: address(0x69521081Fd90669b59b1Cb3F67a2229D36a7De00), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x9A60462e4CA802E3E945663930Be0d162e662091), + registryModuleOwnerCustomAddress: address(0x5Dc49Ec54B92F7D493bC8126c0730DA74605cc00), + tokenAdminRegistryAddress: address(0x65B023D3D4Ea880B835BF2CDE48B296Ee7157EcE) + }); + } + // Edge + if (chainId == 3343) { + return NetworkDetails({ + chainSelector: 6325494908023253251, + routerAddress: address(0x0aA145a62153190B8f0D3cA00c441e451529f755), + linkAddress: address(0x76a443768A5e3B8d1AED0105FC250877841Deb40), + wrappedNativeAddress: address(0xBf10e3Dd6D1303310D3bf4567595091758827bc5), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0xBF38331E34ef7f248020611bB31Be0576D06413D), + registryModuleOwnerCustomAddress: address(0x91339eb99C4c2Be9A071203DD99E014A3189FD29), + tokenAdminRegistryAddress: address(0x051665f2455116e929b9972c36d23070F5054Ce0) + }); + } // Botanix - s_networkDetails[3637] = NetworkDetails({ - chainSelector: 4560701533377838164, - routerAddress: address(0x5EE890c89B5Ae75cBC516Dd53345e38E5B39B664), - linkAddress: address(0x30e85A5c9525AD9a7A0FA5C74df4Baf0b01aD241), - wrappedNativeAddress: address(0x0D2437F93Fed6EA64Ef01cCde385FB1263910C56), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x7f1310420E197B491311Ac75bF44e852f796779a), - registryModuleOwnerCustomAddress: address(0xbDCb06538A5f4F5aCC69bb0B7548d314d3c1A8Fd), - tokenAdminRegistryAddress: address(0x3eD4752266fF42FECe47dB8BA1249fF3978f3E5E) - }); - + if (chainId == 3637) { + return NetworkDetails({ + chainSelector: 4560701533377838164, + routerAddress: address(0x5EE890c89B5Ae75cBC516Dd53345e38E5B39B664), + linkAddress: address(0x30e85A5c9525AD9a7A0FA5C74df4Baf0b01aD241), + wrappedNativeAddress: address(0), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x7f1310420E197B491311Ac75bF44e852f796779a), + registryModuleOwnerCustomAddress: address(0xbDCb06538A5f4F5aCC69bb0B7548d314d3c1A8Fd), + tokenAdminRegistryAddress: address(0x3eD4752266fF42FECe47dB8BA1249fF3978f3E5E) + }); + } // Merlin - s_networkDetails[4200] = NetworkDetails({ - chainSelector: 241851231317828981, - routerAddress: address(0x8Be462D21b05eEeF81a3AA384b7C6CF18597232A), - linkAddress: address(0x71052BAe71C25C78E37fD12E5ff1101A71d9018F), - wrappedNativeAddress: address(0xF6D226f9Dc15d9bB51182815b320D3fBE324e1bA), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x225c0187d88e5E42455c4B46078D15283551930B), - registryModuleOwnerCustomAddress: address(0xE27dd9BF01B55ce6803c0d81386A04212c718b95), - tokenAdminRegistryAddress: address(0xA51Cdb9154bB0c9Bc3CE25dBf7DE3331B3A1C8E7) - }); - + if (chainId == 4200) { + return NetworkDetails({ + chainSelector: 241851231317828981, + routerAddress: address(0x8Be462D21b05eEeF81a3AA384b7C6CF18597232A), + linkAddress: address(0x71052BAe71C25C78E37fD12E5ff1101A71d9018F), + wrappedNativeAddress: address(0xF6D226f9Dc15d9bB51182815b320D3fBE324e1bA), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x225c0187d88e5E42455c4B46078D15283551930B), + registryModuleOwnerCustomAddress: address(0xE27dd9BF01B55ce6803c0d81386A04212c718b95), + tokenAdminRegistryAddress: address(0xA51Cdb9154bB0c9Bc3CE25dBf7DE3331B3A1C8E7) + }); + } // Lisk Sepolia - s_networkDetails[4202] = NetworkDetails({ - chainSelector: 5298399861320400553, - routerAddress: address(0x78805d2881d233a430983Dbc170990AefDe60C93), - linkAddress: address(0x6641415a61bCe80D97a715054d1334360Ab833Eb), - wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), - ccipBnMAddress: address(0x03B2F16FC12010d2e35055092055674645C38378), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x1e4a4432d4d278992BE84695C3cc20E1e4bD99A0), - registryModuleOwnerCustomAddress: address(0xd54205E00835B63Db005ADEF8d99E4984601ACAf), - tokenAdminRegistryAddress: address(0x8e09D700c1246a0e2Eb6169D67fc51c2f618a21A) - }); - + if (chainId == 4202) { + return NetworkDetails({ + chainSelector: 5298399861320400553, + routerAddress: address(0x78805d2881d233a430983Dbc170990AefDe60C93), + linkAddress: address(0x6641415a61bCe80D97a715054d1334360Ab833Eb), + wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), + ccipBnMAddress: address(0x03B2F16FC12010d2e35055092055674645C38378), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x1e4a4432d4d278992BE84695C3cc20E1e4bD99A0), + registryModuleOwnerCustomAddress: address(0xd54205E00835B63Db005ADEF8d99E4984601ACAf), + tokenAdminRegistryAddress: address(0x8e09D700c1246a0e2Eb6169D67fc51c2f618a21A) + }); + } + // Tempo Mainnet + if (chainId == 4217) { + return NetworkDetails({ + chainSelector: 7281642695469137430, + routerAddress: address(0xa132F089492CcE5f1D79483a9e4552f37266ed01), + linkAddress: address(0x15C03488B29e27d62BAf10E30b0c474bf60E0264), + wrappedNativeAddress: address(0xC5D538C96D6FEE7E6DFE7248B32898087b22ba79), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x65615642056b48BCB8120C109f7e7c0c3623A8BF), + registryModuleOwnerCustomAddress: address(0x09AC52380E6Ede653E122773734fDc8b4B716422), + tokenAdminRegistryAddress: address(0x60A97bd9ACf755954Ff0fE85837224f2920a57F3) + }); + } // MegaETH Mainnet - s_networkDetails[4326] = NetworkDetails({ - chainSelector: 6093540873831549674, - routerAddress: address(0xfa546248C54939AA6C48279CdC1EAf9A1125c411), - linkAddress: address(0xee85aEfb15b9489563A6a29891ebe0750AA1A7Ae), - wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0xA27056438FfA1f286AB197488808692F0db93F8B), - registryModuleOwnerCustomAddress: address(0x1E11bAB3f07fa72312182fFDc460AE45400E6e7b), - tokenAdminRegistryAddress: address(0xf4a170A36D4C656F614d44453f73308Bdb275196) - }); - + if (chainId == 4326) { + return NetworkDetails({ + chainSelector: 6093540873831549674, + routerAddress: address(0xfa546248C54939AA6C48279CdC1EAf9A1125c411), + linkAddress: address(0xee85aEfb15b9489563A6a29891ebe0750AA1A7Ae), + wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0xA27056438FfA1f286AB197488808692F0db93F8B), + registryModuleOwnerCustomAddress: address(0x1E11bAB3f07fa72312182fFDc460AE45400E6e7b), + tokenAdminRegistryAddress: address(0xf4a170A36D4C656F614d44453f73308Bdb275196) + }); + } + // Robinhood Chain + if (chainId == 4663) { + return NetworkDetails({ + chainSelector: 6180753054346818345, + routerAddress: address(0x06fC836cf9839B1cd891C440A0a45242DA6Ae1c9), + linkAddress: address(0x492641F648a4986844848E0beFE66D14817bCE34), + wrappedNativeAddress: address(0x0Bd7D308f8E1639FAb988df18A8011f41EAcAD73), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0xe8464c353210Cc398A45dB2454FBc5BCd25fFf20), + registryModuleOwnerCustomAddress: address(0x3237c0D7B58BEc8Dc17F00103B784Bd6678f789E), + tokenAdminRegistryAddress: address(0x1912C3cFafE8A76A32a92861d815aC2837F237Ca) + }); + } // World Chain Sepolia - s_networkDetails[4801] = NetworkDetails({ - chainSelector: 5299555114858065850, - routerAddress: address(0x47693fc188b2c30078F142eadc2C009E8D786E8d), - linkAddress: address(0xC82Ea35634BcE95C394B6BC00626f827bB0F4801), - wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), - ccipBnMAddress: address(0x8fdE0C794fDA5a7A303Ce216f79B9695a7714EcB), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x469f402B75c7679eccac0Afab43aB60A292f1976), - registryModuleOwnerCustomAddress: address(0xBD04B1B560A30cB3DA471574bB38F069F9C97399), - tokenAdminRegistryAddress: address(0x5A02ce533FF13f2A069CfACEe49431c017e17aBC) - }); - + if (chainId == 4801) { + return NetworkDetails({ + chainSelector: 5299555114858065850, + routerAddress: address(0x47693fc188b2c30078F142eadc2C009E8D786E8d), + linkAddress: address(0xC82Ea35634BcE95C394B6BC00626f827bB0F4801), + wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), + ccipBnMAddress: address(0x8fdE0C794fDA5a7A303Ce216f79B9695a7714EcB), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x469f402B75c7679eccac0Afab43aB60A292f1976), + registryModuleOwnerCustomAddress: address(0xBD04B1B560A30cB3DA471574bB38F069F9C97399), + tokenAdminRegistryAddress: address(0x5A02ce533FF13f2A069CfACEe49431c017e17aBC) + }); + } // Mantle - s_networkDetails[5000] = NetworkDetails({ - chainSelector: 1556008542357238666, - routerAddress: address(0x670052635a9850bb45882Cb2eCcF66bCff0F41B7), - linkAddress: address(0xfe36cF0B43aAe49fBc5cFC5c0AF22a623114E043), - wrappedNativeAddress: address(0xfc421aD3C883Bf9E7C4f42dE845C4e4405799e73), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x91E2186E93F0ECeDDCdf9850078F104daB085E79), - registryModuleOwnerCustomAddress: address(0xf49f81b3d2F2a79b706621FA2D5934136352140c), - tokenAdminRegistryAddress: address(0x000A744940eB5D857c0d61d97015DFc83107404F) - }); - + if (chainId == 5000) { + return NetworkDetails({ + chainSelector: 1556008542357238666, + routerAddress: address(0x670052635a9850bb45882Cb2eCcF66bCff0F41B7), + linkAddress: address(0xfe36cF0B43aAe49fBc5cFC5c0AF22a623114E043), + wrappedNativeAddress: address(0x78c1b0C915c4FAA5FffA6CAbf0219DA63d7f4cb8), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x91E2186E93F0ECeDDCdf9850078F104daB085E79), + registryModuleOwnerCustomAddress: address(0xf49f81b3d2F2a79b706621FA2D5934136352140c), + tokenAdminRegistryAddress: address(0x000A744940eB5D857c0d61d97015DFc83107404F) + }); + } // Mantle Sepolia - s_networkDetails[5003] = NetworkDetails({ - chainSelector: 8236463271206331221, - routerAddress: address(0xFd33fd627017fEf041445FC19a2B6521C9778f86), - linkAddress: address(0x22bdEdEa0beBdD7CfFC95bA53826E55afFE9DE04), - wrappedNativeAddress: address(0x19f5557E23e9914A18239990f6C70D68FDF0deD5), - ccipBnMAddress: address(0xEA8cA8AE1c54faB8D185FC1fd7C2d70Bee8a417e), - ccipLnMAddress: address(0xCdeE7708A96479f6D029741144f458B7FA807A6C), - rmnProxyAddress: address(0xcCB84Ec3F6AFdD2052134f74aaAc95Ae41A7B333), - registryModuleOwnerCustomAddress: address(0xf76cE612250eeEb8889F49FBCB11f1c2705305F6), - tokenAdminRegistryAddress: address(0x0F1eE88A582f31d92510E300fc1330AA5a525D51) - }); - + if (chainId == 5003) { + return NetworkDetails({ + chainSelector: 8236463271206331221, + routerAddress: address(0xFd33fd627017fEf041445FC19a2B6521C9778f86), + linkAddress: address(0x22bdEdEa0beBdD7CfFC95bA53826E55afFE9DE04), + wrappedNativeAddress: address(0x19f5557E23e9914A18239990f6C70D68FDF0deD5), + ccipBnMAddress: address(0xEA8cA8AE1c54faB8D185FC1fd7C2d70Bee8a417e), + ccipLnMAddress: address(0xCdeE7708A96479f6D029741144f458B7FA807A6C), + rmnProxyAddress: address(0xcCB84Ec3F6AFdD2052134f74aaAc95Ae41A7B333), + registryModuleOwnerCustomAddress: address(0xf76cE612250eeEb8889F49FBCB11f1c2705305F6), + tokenAdminRegistryAddress: address(0x0F1eE88A582f31d92510E300fc1330AA5a525D51) + }); + } // Superseed - s_networkDetails[5330] = NetworkDetails({ - chainSelector: 470401360549526817, - routerAddress: address(0xAD93FBB3A9a077F896e1F57739e43dEd063f181F), - linkAddress: address(0x41Ccf59e3F30EB624eF8E5Ea34b2da96bee472d9), - wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x1A99FF887e5bb3962dA97F409487663B5F539799), - registryModuleOwnerCustomAddress: address(0x1d952d2f6eE86Ef4940Fa648aA7477c8fF175F09), - tokenAdminRegistryAddress: address(0x7a1874cBc865580c6cbE09af25509dF12A6b4F58) - }); - + if (chainId == 5330) { + return NetworkDetails({ + chainSelector: 470401360549526817, + routerAddress: address(0xAD93FBB3A9a077F896e1F57739e43dEd063f181F), + linkAddress: address(0x41Ccf59e3F30EB624eF8E5Ea34b2da96bee472d9), + wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x1A99FF887e5bb3962dA97F409487663B5F539799), + registryModuleOwnerCustomAddress: address(0x1d952d2f6eE86Ef4940Fa648aA7477c8fF175F09), + tokenAdminRegistryAddress: address(0x7a1874cBc865580c6cbE09af25509dF12A6b4F58) + }); + } // opBNB Testnet - s_networkDetails[5611] = NetworkDetails({ - chainSelector: 13274425992935471758, - routerAddress: address(0xD9182959D9771cc77e228cB3caFe671f45A37630), - linkAddress: address(0x56E16E648c51609A14Eb14B99BAB771Bee797045), - wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0xfd203BE5303939fA8514A3D9CDe38e31877317B7), - registryModuleOwnerCustomAddress: address(0x9F367a290B4Cc64d0F85B3783d332256b26143B9), - tokenAdminRegistryAddress: address(0x1fF7474b42f8e9B7353dd90F8C020f738f7Fc452) - }); - + if (chainId == 5611) { + return NetworkDetails({ + chainSelector: 13274425992935471758, + routerAddress: address(0xD9182959D9771cc77e228cB3caFe671f45A37630), + linkAddress: address(0x56E16E648c51609A14Eb14B99BAB771Bee797045), + wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0xfd203BE5303939fA8514A3D9CDe38e31877317B7), + registryModuleOwnerCustomAddress: address(0x9F367a290B4Cc64d0F85B3783d332256b26143B9), + tokenAdminRegistryAddress: address(0x1fF7474b42f8e9B7353dd90F8C020f738f7Fc452) + }); + } // MegaETH Testnet - s_networkDetails[6342] = NetworkDetails({ - chainSelector: 2443239559770384419, - routerAddress: address(0x35e752bf853009C8E080CdB3De88e3273B1c75E3), - linkAddress: address(0x4d03398C2588D92B220578dAEde29814E41c8033), - wrappedNativeAddress: address(0xa787B3E0471b718bBfEaA59B502fd0C4EBd7b74E), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0xa0d305199271Be1C1479dA683Fc0CfC0757fBEC3), - registryModuleOwnerCustomAddress: address(0x569a9A63a4543a5Cb79AE717dF1E26E7D30Ae08D), - tokenAdminRegistryAddress: address(0x333b07484C0951075e9c5Fe7440ea0A93373b633) - }); - + if (chainId == 6343) { + return NetworkDetails({ + chainSelector: 18241817625092392675, + routerAddress: address(0x150a5686E7CaC9B3Dda25f12c447d46EA590EF6a), + linkAddress: address(0xAB4D1FE68d3dD2F10eF2cF3ea9dd80Fe8901202A), + wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), + ccipBnMAddress: address(0xaDFb7b14a3eB752b392b69a68bfDD21eAF27466E), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x2bF249E1796D5F3a293dFB0B084f52bF5D3f35CB), + registryModuleOwnerCustomAddress: address(0x073b3C71eb4630c4C88F1f72954fdFff30cf3f8D), + tokenAdminRegistryAddress: address(0xEB5D23FD0CFcd7EB3D16ac6F3A58CAdaF44c2324) + }); + } + // Kaia + if (chainId == 8217) { + return NetworkDetails({ + chainSelector: 9813823125703490621, + routerAddress: address(0x4Eb2a60AF37bC6bb05500F581c00E8EA3075f6E9), + linkAddress: address(0x7311DED199CC28D80E58e81e8589aa160199FCD2), + wrappedNativeAddress: address(0x19Aac5f612f524B754CA7e7c41cbFa2E981A4432), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x98E7867DE8D5904bEda540Ee2Ee4E941Ac1caFD9), + registryModuleOwnerCustomAddress: address(0xd1832207E4b37EB51c66bc5bf9001295f5079D3D), + tokenAdminRegistryAddress: address(0x75b48579Fb886C04E54b53038970a2BA19B75e09) + }); + } // Base - s_networkDetails[8453] = NetworkDetails({ - chainSelector: 15971525489660198786, - routerAddress: address(0x881e3A65B4d4a04dD529061dd0071cf975F58bCD), - linkAddress: address(0x88Fb150BDc53A65fe94Dea0c9BA0a6dAf8C6e196), - wrappedNativeAddress: address(0x6Bb7a212910682DCFdbd5BCBb3e28FB4E8da10Ee), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0xC842c69d54F83170C42C4d556B4F6B2ca53Dd3E8), - registryModuleOwnerCustomAddress: address(0xAFEd606Bd2CAb6983fC6F10167c98aaC2173D77f), - tokenAdminRegistryAddress: address(0x6f6C373d09C07425BaAE72317863d7F6bb731e37) - }); - + if (chainId == 8453) { + return NetworkDetails({ + chainSelector: 15971525489660198786, + routerAddress: address(0x881e3A65B4d4a04dD529061dd0071cf975F58bCD), + linkAddress: address(0x88Fb150BDc53A65fe94Dea0c9BA0a6dAf8C6e196), + wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0xC842c69d54F83170C42C4d556B4F6B2ca53Dd3E8), + registryModuleOwnerCustomAddress: address(0xAFEd606Bd2CAb6983fC6F10167c98aaC2173D77f), + tokenAdminRegistryAddress: address(0x6f6C373d09C07425BaAE72317863d7F6bb731e37) + }); + } // Plasma - s_networkDetails[9745] = NetworkDetails({ - chainSelector: 9335212494177455608, - routerAddress: address(0xcDca5D374e46A6DDDab50bD2D9acB8c796eC35C3), - linkAddress: address(0x76a443768A5e3B8d1AED0105FC250877841Deb40), - wrappedNativeAddress: address(0xb77E872A68C62CfC0dFb02C067Ecc3DA23B4bbf3), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0xAEf7A922931848d2e731D5914f428b4E851d1Ad5), - registryModuleOwnerCustomAddress: address(0x02A4D69cFfeC00Fbf7F3B60c93e3529Dfc58894d), - tokenAdminRegistryAddress: address(0xc23071a8AE83671f37bdA1DaDBC745a9780f632A) - }); - + if (chainId == 9745) { + return NetworkDetails({ + chainSelector: 9335212494177455608, + routerAddress: address(0xcDca5D374e46A6DDDab50bD2D9acB8c796eC35C3), + linkAddress: address(0x76a443768A5e3B8d1AED0105FC250877841Deb40), + wrappedNativeAddress: address(0x6100E367285b01F48D07953803A2d8dCA5D19873), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0xAEf7A922931848d2e731D5914f428b4E851d1Ad5), + registryModuleOwnerCustomAddress: address(0x02A4D69cFfeC00Fbf7F3B60c93e3529Dfc58894d), + tokenAdminRegistryAddress: address(0xc23071a8AE83671f37bdA1DaDBC745a9780f632A) + }); + } // Plasma Testnet - s_networkDetails[9746] = NetworkDetails({ - chainSelector: 3967220077692964309, - routerAddress: address(0xEC7088f7952ba58f268E25AC3868DF92bF462AEf), - linkAddress: address(0xe5e3a4fF1773d043a387b16Ceb3c91cC49bAFD54), - wrappedNativeAddress: address(0xc2e1B8e9a765A19315cD9BbbD84a1BB6DC3FC335), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0xd04a5677Bea8A8D33E493924f429B9D788134849), - registryModuleOwnerCustomAddress: address(0x8c3f29f9a492ddc95F32A9a5Bc0742e88763508A), - tokenAdminRegistryAddress: address(0x85d7587F98655F858d4CD234B6d2cf1C747160D2) - }); - + if (chainId == 9746) { + return NetworkDetails({ + chainSelector: 3967220077692964309, + routerAddress: address(0xEC7088f7952ba58f268E25AC3868DF92bF462AEf), + linkAddress: address(0xe5e3a4fF1773d043a387b16Ceb3c91cC49bAFD54), + wrappedNativeAddress: address(0x6100E367285b01F48D07953803A2d8dCA5D19873), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0xd04a5677Bea8A8D33E493924f429B9D788134849), + registryModuleOwnerCustomAddress: address(0x8c3f29f9a492ddc95F32A9a5Bc0742e88763508A), + tokenAdminRegistryAddress: address(0x85d7587F98655F858d4CD234B6d2cf1C747160D2) + }); + } // Monad Testnet - s_networkDetails[10143] = NetworkDetails({ - chainSelector: 2183018362218727504, - routerAddress: address(0x5aD0A67f4Da0E8665a3fbf15E4215A780407Cf33), - linkAddress: address(0xe5e3a4fF1773d043a387b16Ceb3c91cC49bAFD54), - wrappedNativeAddress: address(0xdE4E7FED43FAC37EB21aA0643d9852f75332eab8), - ccipBnMAddress: address(0xb3B832Acd77fd31aCA5Bd7159d34e5063EC4c09f), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0xD610B8f58689de7755947C05342A2DFaC30ebD57), - registryModuleOwnerCustomAddress: address(0x524B83ae8208490151339c626fd0E35b964483e3), - tokenAdminRegistryAddress: address(0xd3e461C55676B10634a5F81b747c324B85686Dd1) - }); - + if (chainId == 10143) { + return NetworkDetails({ + chainSelector: 2183018362218727504, + routerAddress: address(0x5aD0A67f4Da0E8665a3fbf15E4215A780407Cf33), + linkAddress: address(0x3E0F06Efcf17C0922363B71A21691cE192113F5C), + wrappedNativeAddress: address(0xFb8bf4c1CC7a94c73D209a149eA2AbEa852BC541), + ccipBnMAddress: address(0xb3B832Acd77fd31aCA5Bd7159d34e5063EC4c09f), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0xD610B8f58689de7755947C05342A2DFaC30ebD57), + registryModuleOwnerCustomAddress: address(0x524B83ae8208490151339c626fd0E35b964483e3), + tokenAdminRegistryAddress: address(0xd3e461C55676B10634a5F81b747c324B85686Dd1) + }); + } // Gnosis Chiado - s_networkDetails[10200] = NetworkDetails({ - chainSelector: 8871595565390010547, - routerAddress: address(0x19b1bac554111517831ACadc0FD119D23Bb14391), - linkAddress: address(0xDCA67FD8324990792C0bfaE95903B8A64097754F), - wrappedNativeAddress: address(0x18c8a7ec7897177E4529065a7E7B0878358B3BfF), - ccipBnMAddress: address(0xA189971a2c5AcA0DFC5Ee7a2C44a2Ae27b3CF389), - ccipLnMAddress: address(0x30DeCD269277b8094c00B0bacC3aCaF3fF4Da7fB), - rmnProxyAddress: address(0x1be106fd3b104275B1e56BcAca554B8cbc5a2577), - registryModuleOwnerCustomAddress: address(0x6A9670741411dBf0c284E69BB1FF4aB482421d38), - tokenAdminRegistryAddress: address(0x75ada0256Bea7956824B190419b52ba6660f9CF9) - }); - + if (chainId == 10200) { + return NetworkDetails({ + chainSelector: 8871595565390010547, + routerAddress: address(0x19b1bac554111517831ACadc0FD119D23Bb14391), + linkAddress: address(0xDCA67FD8324990792C0bfaE95903B8A64097754F), + wrappedNativeAddress: address(0x18c8a7ec7897177E4529065a7E7B0878358B3BfF), + ccipBnMAddress: address(0xA189971a2c5AcA0DFC5Ee7a2C44a2Ae27b3CF389), + ccipLnMAddress: address(0x30DeCD269277b8094c00B0bacC3aCaF3fF4Da7fB), + rmnProxyAddress: address(0x1be106fd3b104275B1e56BcAca554B8cbc5a2577), + registryModuleOwnerCustomAddress: address(0x6A9670741411dBf0c284E69BB1FF4aB482421d38), + tokenAdminRegistryAddress: address(0x75ada0256Bea7956824B190419b52ba6660f9CF9) + }); + } + // Mova Testnet + if (chainId == 10323) { + return NetworkDetails({ + chainSelector: 9211758560309513668, + routerAddress: address(0xffA67C26885F6e98c010ecaD7C750D5DbdF5648d), + linkAddress: address(0xe5e3a4fF1773d043a387b16Ceb3c91cC49bAFD54), + wrappedNativeAddress: address(0x8D268fa68F8df045e86288ecC86A209837cF645E), + ccipBnMAddress: address(0xca4C185DEDabaA63876b794E77Ca7a68f08DB485), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x5C28d5073A49B732Ef2121d7d27775E32Fe5Cbe1), + registryModuleOwnerCustomAddress: address(0xEC7088f7952ba58f268E25AC3868DF92bF462AEf), + tokenAdminRegistryAddress: address(0xc2e1B8e9a765A19315cD9BbbD84a1BB6DC3FC335) + }); + } // Abstract Sepolia - s_networkDetails[11124] = NetworkDetails({ - chainSelector: 16235373811196386733, - routerAddress: address(0xC308ef8a02e39887CCF55a796a128CBD1F2072a1), - linkAddress: address(0x6641415a61bCe80D97a715054d1334360Ab833Eb), - wrappedNativeAddress: address(0x9EDCde0257F2386Ce177C3a7FCdd97787F0D841d), - ccipBnMAddress: address(0x596b8A0A2A63E5B4b2c0e201c4C27078642c8509), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0xDcF391514C1ede0B8629A45Da710d3D7228B543C), - registryModuleOwnerCustomAddress: address(0x41a11E4955A8bAEC73e2c679db7EA21ffa1807e0), - tokenAdminRegistryAddress: address(0x828bDf5427A79a1A4cC17d8e2aD0fDe72499ae4F) - }); - + if (chainId == 11124) { + return NetworkDetails({ + chainSelector: 16235373811196386733, + routerAddress: address(0xC308ef8a02e39887CCF55a796a128CBD1F2072a1), + linkAddress: address(0x6641415a61bCe80D97a715054d1334360Ab833Eb), + wrappedNativeAddress: address(0x9EDCde0257F2386Ce177C3a7FCdd97787F0D841d), + ccipBnMAddress: address(0x596b8A0A2A63E5B4b2c0e201c4C27078642c8509), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0xDcF391514C1ede0B8629A45Da710d3D7228B543C), + registryModuleOwnerCustomAddress: address(0x41a11E4955A8bAEC73e2c679db7EA21ffa1807e0), + tokenAdminRegistryAddress: address(0x828bDf5427A79a1A4cC17d8e2aD0fDe72499ae4F) + }); + } // Sonic Testnet - s_networkDetails[14601] = NetworkDetails({ - chainSelector: 1763698235108410440, - routerAddress: address(0x5bB5906e88ED789032Cd007D37da60291846E2A3), - linkAddress: address(0x19e696e75ccbB3155EEbB579BFa555Fab22293bA), - wrappedNativeAddress: address(0x4C344A0E257bF949D67A89be8B4516306D90E23E), - ccipBnMAddress: address(0xBc393E3499047B24213338C24B8E8185250dc1Cb), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x4F213c8374c4F223eB85d8770Fc76eAd5163FC23), - registryModuleOwnerCustomAddress: address(0x4D8785d2D1Fa810C0B39A688AEB46146e79a4569), - tokenAdminRegistryAddress: address(0x22af2fDb6Ec9E5AF82585Ee0efb65b5E46086841) - }); - + if (chainId == 14601) { + return NetworkDetails({ + chainSelector: 1763698235108410440, + routerAddress: address(0x5bB5906e88ED789032Cd007D37da60291846E2A3), + linkAddress: address(0xaD417c0611dBD225471D31F056b8B6beC1CBC153), + wrappedNativeAddress: address(0x4C344A0E257bF949D67A89be8B4516306D90E23E), + ccipBnMAddress: address(0xBc393E3499047B24213338C24B8E8185250dc1Cb), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x4F213c8374c4F223eB85d8770Fc76eAd5163FC23), + registryModuleOwnerCustomAddress: address(0x4D8785d2D1Fa810C0B39A688AEB46146e79a4569), + tokenAdminRegistryAddress: address(0x22af2fDb6Ec9E5AF82585Ee0efb65b5E46086841) + }); + } + // 0G Galileo Testnet + if (chainId == 16602) { + return NetworkDetails({ + chainSelector: 6892437333620424805, + routerAddress: address(0xD610B8f58689de7755947C05342A2DFaC30ebD57), + linkAddress: address(0xe5e3a4fF1773d043a387b16Ceb3c91cC49bAFD54), + wrappedNativeAddress: address(0x1Cd0690fF9a693f5EF2dD976660a8dAFc81A109c), + ccipBnMAddress: address(0xDbB255D37BC7c9e2b08e5a1C9f9506c9E85F1644), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x995ab3eC29E1660A93cFddAA19C710A1b5afCCc9), + registryModuleOwnerCustomAddress: address(0x0820f975ce90EE5c508657F0C58b71D1fcc85cE0), + tokenAdminRegistryAddress: address(0x23a5084Fa78104F3DF11C63Ae59fcac4f6AD9DeE) + }); + } // 0G - s_networkDetails[16661] = NetworkDetails({ - chainSelector: 4426351306075016396, - routerAddress: address(0x0aA145a62153190B8f0D3cA00c441e451529f755), - linkAddress: address(0x76159c2b43ff6F630193e37EC68452169914C1Bb), - wrappedNativeAddress: address(0x1Cd0690fF9a693f5EF2dD976660a8dAFc81A109c), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0xBF38331E34ef7f248020611bB31Be0576D06413D), - registryModuleOwnerCustomAddress: address(0x91339eb99C4c2Be9A071203DD99E014A3189FD29), - tokenAdminRegistryAddress: address(0x051665f2455116e929b9972c36d23070F5054Ce0) - }); - - // Everclear - s_networkDetails[25327] = NetworkDetails({ - chainSelector: 9723842205701363942, - routerAddress: address(0x54fC28aa6DBf53277a7E5F4c789F823b86b9f781), - linkAddress: address(0x318Ec96df83AccC18B5EAD5D23e0F022F7Eb5503), - wrappedNativeAddress: address(0x2e31ebD2eB114943630Db6ba8c7f7687bdA5835F), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x2a9f896660E802c59a3178b2E8CB7FBaCCC04e86), - registryModuleOwnerCustomAddress: address(0x051665f2455116e929b9972c36d23070F5054Ce0), - tokenAdminRegistryAddress: address(0xBF38331E34ef7f248020611bB31Be0576D06413D) - }); - + if (chainId == 16661) { + return NetworkDetails({ + chainSelector: 4426351306075016396, + routerAddress: address(0x0aA145a62153190B8f0D3cA00c441e451529f755), + linkAddress: address(0x76159c2b43ff6F630193e37EC68452169914C1Bb), + wrappedNativeAddress: address(0x1Cd0690fF9a693f5EF2dD976660a8dAFc81A109c), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0xBF38331E34ef7f248020611bB31Be0576D06413D), + registryModuleOwnerCustomAddress: address(0x91339eb99C4c2Be9A071203DD99E014A3189FD29), + tokenAdminRegistryAddress: address(0x051665f2455116e929b9972c36d23070F5054Ce0) + }); + } // Apechain Curtis - s_networkDetails[33111] = NetworkDetails({ - chainSelector: 9900119385908781505, - routerAddress: address(0x6139Bd336bebFaaCbca33D183CeD1C90B62500cB), - linkAddress: address(0xa787B3E0471b718bBfEaA59B502fd0C4EBd7b74E), - wrappedNativeAddress: address(0x1762A2B15f63ca4E1165A9385cB40412CF545aC3), - ccipBnMAddress: address(0xF48cae4B1F4EB3a1682600D4F3aFA166db5B162E), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x9D23ae40a0AeE8fF58ac4037D669773b14eEb035), - registryModuleOwnerCustomAddress: address(0xbc9A4b299741CBf2A8eD5D2078A426027C31B2A3), - tokenAdminRegistryAddress: address(0x4054fA847d51bE8bFC8D2E633eb4AD0C7D17C39C) - }); - + if (chainId == 33111) { + return NetworkDetails({ + chainSelector: 9900119385908781505, + routerAddress: address(0x6139Bd336bebFaaCbca33D183CeD1C90B62500cB), + linkAddress: address(0xa787B3E0471b718bBfEaA59B502fd0C4EBd7b74E), + wrappedNativeAddress: address(0x1762A2B15f63ca4E1165A9385cB40412CF545aC3), + ccipBnMAddress: address(0xF48cae4B1F4EB3a1682600D4F3aFA166db5B162E), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x9D23ae40a0AeE8fF58ac4037D669773b14eEb035), + registryModuleOwnerCustomAddress: address(0xbc9A4b299741CBf2A8eD5D2078A426027C31B2A3), + tokenAdminRegistryAddress: address(0x4054fA847d51bE8bFC8D2E633eb4AD0C7D17C39C) + }); + } // Apechain - s_networkDetails[33139] = NetworkDetails({ - chainSelector: 14894068710063348487, - routerAddress: address(0xe9c6945281028cb6530d43F998eE539dFE2a9191), - linkAddress: address(0xf575731b78981B86d34321d875A3D25a48479be6), - wrappedNativeAddress: address(0x48b62137EdfA95a428D35C09E44256a739F6B557), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x768a1a3B321126A8B214d7376D48465C7f6Fa061), - registryModuleOwnerCustomAddress: address(0x1c2F528e3BEeFF81Bc03CC63E64dB131d18be7fA), - tokenAdminRegistryAddress: address(0xD3ED6fC9fd22412764ac2Ef64fB664b9393dF9F2) - }); - + if (chainId == 33139) { + return NetworkDetails({ + chainSelector: 14894068710063348487, + routerAddress: address(0xe9c6945281028cb6530d43F998eE539dFE2a9191), + linkAddress: address(0xf575731b78981B86d34321d875A3D25a48479be6), + wrappedNativeAddress: address(0x48b62137EdfA95a428D35C09E44256a739F6B557), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x768a1a3B321126A8B214d7376D48465C7f6Fa061), + registryModuleOwnerCustomAddress: address(0x1c2F528e3BEeFF81Bc03CC63E64dB131d18be7fA), + tokenAdminRegistryAddress: address(0xD3ED6fC9fd22412764ac2Ef64fB664b9393dF9F2) + }); + } + // Edge Testnet + if (chainId == 33431) { + return NetworkDetails({ + chainSelector: 13222148116102326311, + routerAddress: address(0x64c12A9Bfdb4DEB5F37A0eC4c5fae0405669612A), + linkAddress: address(0xD610B8f58689de7755947C05342A2DFaC30ebD57), + wrappedNativeAddress: address(0x348fc2Dd7648a398DA276751bdd50E08c31f4F72), + ccipBnMAddress: address(0xF2D52EAC5c27c50D78ab8B0E2b65b1363EBD48db), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x0ED0EEb9b71778C2b826f37D35c4Be91D2741F33), + registryModuleOwnerCustomAddress: address(0xD19CFe54f26679a0C9dd7766AA8ac374b9c2Ac6b), + tokenAdminRegistryAddress: address(0x948cfD1C48C52a93D23Ace2CfB4D2abACc0Ada29) + }); + } // Mode - s_networkDetails[34443] = NetworkDetails({ - chainSelector: 7264351850409363825, - routerAddress: address(0x24C40f13E77De2aFf37c280BA06c333531589bf1), - linkAddress: address(0x183E3691EfF3524B2315D3703D94F922CbE51F54), - wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0xA0876B45271615c737781185C2B5ada60ed2D2B9), - registryModuleOwnerCustomAddress: address(0xCe3f7378aE409e1CE0dD6fFA70ab683326b73f04), - tokenAdminRegistryAddress: address(0xB4b40c010A547dff6A22d94bC2C1c1e745b62aB2) - }); - + if (chainId == 34443) { + return NetworkDetails({ + chainSelector: 7264351850409363825, + routerAddress: address(0x24C40f13E77De2aFf37c280BA06c333531589bf1), + linkAddress: address(0x183E3691EfF3524B2315D3703D94F922CbE51F54), + wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0xA0876B45271615c737781185C2B5ada60ed2D2B9), + registryModuleOwnerCustomAddress: address(0xCe3f7378aE409e1CE0dD6fFA70ab683326b73f04), + tokenAdminRegistryAddress: address(0xB4b40c010A547dff6A22d94bC2C1c1e745b62aB2) + }); + } // AB Chain - s_networkDetails[36888] = NetworkDetails({ - chainSelector: 4829375610284793157, - routerAddress: address(0x492641F648a4986844848E0beFE66D14817bCE34), - linkAddress: address(0x76a443768A5e3B8d1AED0105FC250877841Deb40), - wrappedNativeAddress: address(0x51dA03503FBBA94B9d0D88C15690D840F02F15F4), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0xf09AFe78d3c7d359b334d7cB88995751F7eC5E13), - registryModuleOwnerCustomAddress: address(0xf4a170A36D4C656F614d44453f73308Bdb275196), - tokenAdminRegistryAddress: address(0xA27056438FfA1f286AB197488808692F0db93F8B) - }); - + if (chainId == 36888) { + return NetworkDetails({ + chainSelector: 4829375610284793157, + routerAddress: address(0x492641F648a4986844848E0beFE66D14817bCE34), + linkAddress: address(0x76a443768A5e3B8d1AED0105FC250877841Deb40), + wrappedNativeAddress: address(0x51dA03503FBBA94B9d0D88C15690D840F02F15F4), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0xf09AFe78d3c7d359b334d7cB88995751F7eC5E13), + registryModuleOwnerCustomAddress: address(0xf4a170A36D4C656F614d44453f73308Bdb275196), + tokenAdminRegistryAddress: address(0xA27056438FfA1f286AB197488808692F0db93F8B) + }); + } + // ADI Network + if (chainId == 36900) { + return NetworkDetails({ + chainSelector: 4059281736450291836, + routerAddress: address(0x010771998A1F4736BD844939d0bf01ac5cA0f8fa), + linkAddress: address(0x76a443768A5e3B8d1AED0105FC250877841Deb40), + wrappedNativeAddress: address(0xBa7A1DA3d3C9F9bE5A1A56d25014932C9166D09C), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x61b7492A40AE4c403629703a38d24851CAA1e7E4), + registryModuleOwnerCustomAddress: address(0x6525923279256B8a86c1C01cF5955eB00C39B048), + tokenAdminRegistryAddress: address(0x5fA6f142EAC511DF12325776386AB92B0F4D1eba) + }); + } // Lens Sepolia - s_networkDetails[37111] = NetworkDetails({ - chainSelector: 6827576821754315911, - routerAddress: address(0xf5Aa9fe2B78d852490bc4E4Fe9ab19727DD10298), - linkAddress: address(0x7f1b9eE544f9ff9bB521Ab79c205d79C55250a36), - wrappedNativeAddress: address(0xeee5a340Cdc9c179Db25dea45AcfD5FE8d4d3eB8), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x1C6e13153FdFC78793E211f557820ed86B10c36B), - registryModuleOwnerCustomAddress: address(0xBFB9E98c32b80916Bd4350F644a98ba24393a73c), - tokenAdminRegistryAddress: address(0x10Cb4265e13801cAcEd7682Bb8B5d2ed6E97964E) - }); - + if (chainId == 37111) { + return NetworkDetails({ + chainSelector: 6827576821754315911, + routerAddress: address(0xf5Aa9fe2B78d852490bc4E4Fe9ab19727DD10298), + linkAddress: address(0x7f1b9eE544f9ff9bB521Ab79c205d79C55250a36), + wrappedNativeAddress: address(0xeee5a340Cdc9c179Db25dea45AcfD5FE8d4d3eB8), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x1C6e13153FdFC78793E211f557820ed86B10c36B), + registryModuleOwnerCustomAddress: address(0xBFB9E98c32b80916Bd4350F644a98ba24393a73c), + tokenAdminRegistryAddress: address(0x10Cb4265e13801cAcEd7682Bb8B5d2ed6E97964E) + }); + } // Arbitrum One - s_networkDetails[42161] = NetworkDetails({ - chainSelector: 4949039107694359620, - routerAddress: address(0x141fa059441E0ca23ce184B6A78bafD2A517DdE8), - linkAddress: address(0xf97f4df75117a78c1A5a0DBb814Af92458539FB4), - wrappedNativeAddress: address(0x7dfF72693f6A4149b17e7C6314655f6A9F7c8B33), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0xC311a21e6fEf769344EB1515588B9d535662a145), - registryModuleOwnerCustomAddress: address(0x1f1df9f7fc939E71819F766978d8F900B816761b), - tokenAdminRegistryAddress: address(0x39AE1032cF4B334a1Ed41cdD0833bdD7c7E7751E) - }); - + if (chainId == 42161) { + return NetworkDetails({ + chainSelector: 4949039107694359620, + routerAddress: address(0x141fa059441E0ca23ce184B6A78bafD2A517DdE8), + linkAddress: address(0xf97f4df75117a78c1A5a0DBb814Af92458539FB4), + wrappedNativeAddress: address(0x82aF49447D8a07e3bd95BD0d56f35241523fBab1), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0xC311a21e6fEf769344EB1515588B9d535662a145), + registryModuleOwnerCustomAddress: address(0x1f1df9f7fc939E71819F766978d8F900B816761b), + tokenAdminRegistryAddress: address(0x39AE1032cF4B334a1Ed41cdD0833bdD7c7E7751E) + }); + } // Celo - s_networkDetails[42220] = NetworkDetails({ - chainSelector: 1346049177634351622, - routerAddress: address(0xfB48f15480926A4ADf9116Dca468bDd2EE6C5F62), - linkAddress: address(0xd07294e6E917e07dfDcee882dd1e2565085C2ae0), - wrappedNativeAddress: address(0x2021B12D8138e2D63cF0895eccABC0DFc92416c6), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x56e0507d4E69D98bE7Eb4ada01d2315596F9f281), - registryModuleOwnerCustomAddress: address(0xb0112a2723D9D6CB5194580701A93B1eb67846D2), - tokenAdminRegistryAddress: address(0xf19e0555fAA9051e277eeD5A0DcdB13CDaca39a9) - }); - - // Tempo - s_networkDetails[42429] = NetworkDetails({ - chainSelector: 3963528237232804922, - routerAddress: address(0xAE7D1b3D8466718378038de45D4D376E73A04EB6), - linkAddress: address(0x384C8843411f725e800E625d5d1B659256D629dF), - wrappedNativeAddress: address(0x20C0000000000000000000000000000000000001), - ccipBnMAddress: address(0x9Af873f951c444d37B27B440ae53AB63CE58E5e5), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0xc2e1B8e9a765A19315cD9BbbD84a1BB6DC3FC335), - registryModuleOwnerCustomAddress: address(0x7A635FdfDC70469B6e8796Bd7dEeB3f24fd4f949), - tokenAdminRegistryAddress: address(0xEC7088f7952ba58f268E25AC3868DF92bF462AEf) - }); - + if (chainId == 42220) { + return NetworkDetails({ + chainSelector: 1346049177634351622, + routerAddress: address(0xfB48f15480926A4ADf9116Dca468bDd2EE6C5F62), + linkAddress: address(0xd07294e6E917e07dfDcee882dd1e2565085C2ae0), + wrappedNativeAddress: address(0x471EcE3750Da237f93B8E339c536989b8978a438), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x56e0507d4E69D98bE7Eb4ada01d2315596F9f281), + registryModuleOwnerCustomAddress: address(0xb0112a2723D9D6CB5194580701A93B1eb67846D2), + tokenAdminRegistryAddress: address(0xf19e0555fAA9051e277eeD5A0DcdB13CDaca39a9) + }); + } + // Tempo Testnet Moderato + if (chainId == 42431) { + return NetworkDetails({ + chainSelector: 8457817439310187923, + routerAddress: address(0xD3e53cCEE3688aAEE5C9118ef5Fe24EB423aa56F), + linkAddress: address(0xf83Ba845C20f698F14835b6642b2A115f1f208cD), + wrappedNativeAddress: address(0xbb2D3310E4232085d432A2e04b2Ac09c46F634E4), + ccipBnMAddress: address(0x3C6a0de9aF7051344aAE8b78a0ee4E43e050c7Dd), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x4e9e1B5A5fDA2F077B768BCE3bb2264912C5983e), + registryModuleOwnerCustomAddress: address(0xa4eed8a7ebA3EC5f2e6678C1432280EdE120E8d2), + tokenAdminRegistryAddress: address(0x41a11E4955A8bAEC73e2c679db7EA21ffa1807e0) + }); + } // Etherlink - s_networkDetails[42793] = NetworkDetails({ - chainSelector: 13624601974233774587, - routerAddress: address(0x1912C3cFafE8A76A32a92861d815aC2837F237Ca), - linkAddress: address(0x8ce7618E8f8E514d13889283F58FF03B794e6CC3), - wrappedNativeAddress: address(0xc9B53AB2679f573e480d01e0f49e2B5CFB7a3EAb), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x1E11bAB3f07fa72312182fFDc460AE45400E6e7b), - registryModuleOwnerCustomAddress: address(0xfa546248C54939AA6C48279CdC1EAf9A1125c411), - tokenAdminRegistryAddress: address(0x492641F648a4986844848E0beFE66D14817bCE34) - }); - + if (chainId == 42793) { + return NetworkDetails({ + chainSelector: 13624601974233774587, + routerAddress: address(0x1912C3cFafE8A76A32a92861d815aC2837F237Ca), + linkAddress: address(0x8ce7618E8f8E514d13889283F58FF03B794e6CC3), + wrappedNativeAddress: address(0xc9B53AB2679f573e480d01e0f49e2B5CFB7a3EAb), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x1E11bAB3f07fa72312182fFDc460AE45400E6e7b), + registryModuleOwnerCustomAddress: address(0xfa546248C54939AA6C48279CdC1EAf9A1125c411), + tokenAdminRegistryAddress: address(0x492641F648a4986844848E0beFE66D14817bCE34) + }); + } // Hemi - s_networkDetails[43111] = NetworkDetails({ - chainSelector: 1804312132722180201, - routerAddress: address(0x5e48912cFDd14417D6856872341f894AE0EF07DD), - linkAddress: address(0x63dbE12A6381D64adE47bc3D92aBF4393DFF4BC8), - wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0xa1E3b310025c9E1861374D9CAF629E0DAa8Ecd8C), - registryModuleOwnerCustomAddress: address(0xE27dd9BF01B55ce6803c0d81386A04212c718b95), - tokenAdminRegistryAddress: address(0x81e81F9B2C0B79C00F38357068AE049090F2DaDE) - }); - + if (chainId == 43111) { + return NetworkDetails({ + chainSelector: 1804312132722180201, + routerAddress: address(0x5e48912cFDd14417D6856872341f894AE0EF07DD), + linkAddress: address(0x63dbE12A6381D64adE47bc3D92aBF4393DFF4BC8), + wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0xa1E3b310025c9E1861374D9CAF629E0DAa8Ecd8C), + registryModuleOwnerCustomAddress: address(0xE27dd9BF01B55ce6803c0d81386A04212c718b95), + tokenAdminRegistryAddress: address(0x81e81F9B2C0B79C00F38357068AE049090F2DaDE) + }); + } // Avalanche Fuji - s_networkDetails[43113] = NetworkDetails({ - chainSelector: 14767482510784806043, - routerAddress: address(0xF694E193200268f9a4868e4Aa017A0118C9a8177), - linkAddress: address(0x0b9d5D9136855f6FEc3c0993feE6E9CE8a297846), - wrappedNativeAddress: address(0xd00ae08403B9bbb9124bB305C09058E32C39A48c), - ccipBnMAddress: address(0xD21341536c5cF5EB1bcb58f6723cE26e8D8E90e4), - ccipLnMAddress: address(0x70F5c5C40b873EA597776DA2C21929A8282A3b35), - rmnProxyAddress: address(0xAc8CFc3762a979628334a0E4C1026244498E821b), - registryModuleOwnerCustomAddress: address(0xefa93f3312840683893DbdeB3d53359b2d948F50), - tokenAdminRegistryAddress: address(0xA92053a4a3922084d992fD2835bdBa4caC6877e6) - }); - + if (chainId == 43113) { + return NetworkDetails({ + chainSelector: 14767482510784806043, + routerAddress: address(0xF694E193200268f9a4868e4Aa017A0118C9a8177), + linkAddress: address(0x0b9d5D9136855f6FEc3c0993feE6E9CE8a297846), + wrappedNativeAddress: address(0xd00ae08403B9bbb9124bB305C09058E32C39A48c), + ccipBnMAddress: address(0xD21341536c5cF5EB1bcb58f6723cE26e8D8E90e4), + ccipLnMAddress: address(0x70F5c5C40b873EA597776DA2C21929A8282A3b35), + rmnProxyAddress: address(0xAc8CFc3762a979628334a0E4C1026244498E821b), + registryModuleOwnerCustomAddress: address(0xefa93f3312840683893DbdeB3d53359b2d948F50), + tokenAdminRegistryAddress: address(0xA92053a4a3922084d992fD2835bdBa4caC6877e6) + }); + } + // Avalanche + if (chainId == 43114) { + return NetworkDetails({ + chainSelector: 6433500567565415381, + routerAddress: address(0xF4c7E640EdA248ef95972845a62bdC74237805dB), + linkAddress: address(0x5947BB275c521040051D82396192181b413227A3), + wrappedNativeAddress: address(0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0xcBD48A8eB077381c3c4Eb36b402d7283aB2b11Bc), + registryModuleOwnerCustomAddress: address(0x76Aa17dCda9E8529149E76e9ffaE4aD1C4AD701B), + tokenAdminRegistryAddress: address(0xc8df5D618c6a59Cc6A311E96a39450381001464F) + }); + } + // Robinhood Chain Testnet + if (chainId == 46630) { + return NetworkDetails({ + chainSelector: 2032988798112970440, + routerAddress: address(0x30D197C6F5bE050D5525dD94d01760FaCdB67e7C), + linkAddress: address(0x6a11698F9dA09d1aA0Ee060E949086D50A3c2F70), + wrappedNativeAddress: address(0x7943e237c7F95DA44E0301572D358911207852Fa), + ccipBnMAddress: address(0x2ad603bBe7DfffE7A50740F28d4fFf89a0Db7167), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x934c1B8f6913070528CC24081E0b78d57D3A97A3), + registryModuleOwnerCustomAddress: address(0x00094197A82faDE614C214CFE27719dEDa898686), + tokenAdminRegistryAddress: address(0xad4c7a1430D140Fc5121C0697B2f7Efc655c0070) + }); + } + // Neo X + if (chainId == 47763) { + return NetworkDetails({ + chainSelector: 7222032299962346917, + routerAddress: address(0xd18b6b2306920d8Ae13b4A2D06b55AD36A6Fa2C7), + linkAddress: address(0xb25de57d73AB177FC091327Bcb725154dFBb5bFB), + wrappedNativeAddress: address(0xdE41591ED1f8ED1484aC2CD8ca0876428de60EfF), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x024F6a98712F5d9b7464B871ba36e1CF0BdB2C5d), + registryModuleOwnerCustomAddress: address(0x051665f2455116e929b9972c36d23070F5054Ce0), + tokenAdminRegistryAddress: address(0x344FCBb30EC9ECf58c8399EDe0430592E6703BC1) + }); + } // Zircuit - s_networkDetails[48900] = NetworkDetails({ - chainSelector: 17198166215261833993, - routerAddress: address(0x0A6436B56378D305729713ac332ccdCD367f3918), - linkAddress: address(0x5D6d033B4FbD2190D99D930719fAbAcB64d2439a), - wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0xf735667F2F3193d407089bb4c50824941821b156), - registryModuleOwnerCustomAddress: address(0x55aeb80Aa6Ab34aA83E1F387903F8Bb2Aa9e2F2d), - tokenAdminRegistryAddress: address(0x47d2D93EEDb694bf445E7F6458f17669459612c7) - }); - - // Memento - s_networkDetails[51888] = NetworkDetails({ - chainSelector: 6473245816409426016, - routerAddress: address(0x492641F648a4986844848E0beFE66D14817bCE34), - linkAddress: address(0x76a443768A5e3B8d1AED0105FC250877841Deb40), - wrappedNativeAddress: address(0x086917568f9317b68595B7552842de816698D7BD), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0xf09AFe78d3c7d359b334d7cB88995751F7eC5E13), - registryModuleOwnerCustomAddress: address(0xf4a170A36D4C656F614d44453f73308Bdb275196), - tokenAdminRegistryAddress: address(0xA27056438FfA1f286AB197488808692F0db93F8B) - }); - - // Superseed Sepolia - s_networkDetails[53302] = NetworkDetails({ - chainSelector: 13694007683517087973, - routerAddress: address(0xC3388E1147C5F049db9dd254Dbfa06ab7F19e7FE), - linkAddress: address(0xA3063eE34d9B4E407DF0E153c9bE679680e3A956), - wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x9D13Ef88bbfD4B3B4f4d8C61C2d528c398183814), - registryModuleOwnerCustomAddress: address(0x6992d18b0850b01f6c121879284fD23f300ba8AD), - tokenAdminRegistryAddress: address(0x66B6772Cb49374AaA088279d6524143B6E1914fE) - }); - + if (chainId == 48900) { + return NetworkDetails({ + chainSelector: 17198166215261833993, + routerAddress: address(0x0A6436B56378D305729713ac332ccdCD367f3918), + linkAddress: address(0x5D6d033B4FbD2190D99D930719fAbAcB64d2439a), + wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0xf735667F2F3193d407089bb4c50824941821b156), + registryModuleOwnerCustomAddress: address(0x55aeb80Aa6Ab34aA83E1F387903F8Bb2Aa9e2F2d), + tokenAdminRegistryAddress: address(0x47d2D93EEDb694bf445E7F6458f17669459612c7) + }); + } // Ink - s_networkDetails[57073] = NetworkDetails({ - chainSelector: 3461204551265785888, - routerAddress: address(0xca7c90A52B44E301AC01Cb5EB99b2fD99339433A), - linkAddress: address(0x71052BAe71C25C78E37fD12E5ff1101A71d9018F), - wrappedNativeAddress: address(0xfc421aD3C883Bf9E7C4f42dE845C4e4405799e73), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x3A293fa336E118900AD0f2EcfeC0DAa6A4DeDaA1), - registryModuleOwnerCustomAddress: address(0x04c5046A1f4E3fFf094c26dFCAA75eF293932f18), - tokenAdminRegistryAddress: address(0xEb062d21c713A3d940BB0FaECFdC387d6Ea23697) - }); - + if (chainId == 57073) { + return NetworkDetails({ + chainSelector: 3461204551265785888, + routerAddress: address(0xca7c90A52B44E301AC01Cb5EB99b2fD99339433A), + linkAddress: address(0x71052BAe71C25C78E37fD12E5ff1101A71d9018F), + wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x3A293fa336E118900AD0f2EcfeC0DAa6A4DeDaA1), + registryModuleOwnerCustomAddress: address(0x04c5046A1f4E3fFf094c26dFCAA75eF293932f18), + tokenAdminRegistryAddress: address(0xEb062d21c713A3d940BB0FaECFdC387d6Ea23697) + }); + } // Linea Sepolia - s_networkDetails[59141] = NetworkDetails({ - chainSelector: 5719461335882077547, - routerAddress: address(0xB4431A6c63F72916151fEA2864DBB13b8ce80E8a), - linkAddress: address(0xF64E6E064a71B45514691D397ad4204972cD6508), - wrappedNativeAddress: address(0x06565ed324Ee9fb4DB0FF80B7eDbE4Cb007555a3), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0xA7EA79b9E466e8D2a440128867ed399bC78f4aaE), - rmnProxyAddress: address(0xb550D73F428C08441E4d92d762CceE5F39b1c608), - registryModuleOwnerCustomAddress: address(0xeabcDfdc6dA2c66144f150CbD1eDa54c842B67B3), - tokenAdminRegistryAddress: address(0x5B5179082056227721031C2ef1c45049864D0149) - }); - + if (chainId == 59141) { + return NetworkDetails({ + chainSelector: 5719461335882077547, + routerAddress: address(0xB4431A6c63F72916151fEA2864DBB13b8ce80E8a), + linkAddress: address(0xF64E6E064a71B45514691D397ad4204972cD6508), + wrappedNativeAddress: address(0x06565ed324Ee9fb4DB0FF80B7eDbE4Cb007555a3), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0xA7EA79b9E466e8D2a440128867ed399bC78f4aaE), + rmnProxyAddress: address(0xb550D73F428C08441E4d92d762CceE5F39b1c608), + registryModuleOwnerCustomAddress: address(0xeabcDfdc6dA2c66144f150CbD1eDa54c842B67B3), + tokenAdminRegistryAddress: address(0x5B5179082056227721031C2ef1c45049864D0149) + }); + } // Linea - s_networkDetails[59144] = NetworkDetails({ - chainSelector: 4627098889531055414, - routerAddress: address(0x549FEB73F2348F6cD99b9fc8c69252034897f06C), - linkAddress: address(0xa18152629128738a5c081eb226335FEd4B9C95e9), - wrappedNativeAddress: address(0xe5D7C2a44FfDDf6b295A15c148167daaAf5Cf34f), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x1F8fbCf559f08FE7c4076f0d68DB861e1E27f95b), - registryModuleOwnerCustomAddress: address(0x0a12ec21c43ab2b4f69693Da1b0149e7652689c0), - tokenAdminRegistryAddress: address(0xBc933cEE67d2b1c08490ee8C51E2dF653a713534) - }); - + if (chainId == 59144) { + return NetworkDetails({ + chainSelector: 4627098889531055414, + routerAddress: address(0x549FEB73F2348F6cD99b9fc8c69252034897f06C), + linkAddress: address(0xa18152629128738a5c081eb226335FEd4B9C95e9), + wrappedNativeAddress: address(0xe5D7C2a44FfDDf6b295A15c148167daaAf5Cf34f), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x1F8fbCf559f08FE7c4076f0d68DB861e1E27f95b), + registryModuleOwnerCustomAddress: address(0x0a12ec21c43ab2b4f69693Da1b0149e7652689c0), + tokenAdminRegistryAddress: address(0xBc933cEE67d2b1c08490ee8C51E2dF653a713534) + }); + } // Metis Sepolia - s_networkDetails[59902] = NetworkDetails({ - chainSelector: 3777822886988675105, - routerAddress: address(0xaCdaBa07ECad81dc634458b98673931DD9d3Bc14), - linkAddress: address(0x9870D6a0e05F867EAAe696e106741843F7fD116D), - wrappedNativeAddress: address(0x5c48e07062aC4E2Cf4b9A768a711Aef18e8fbdA0), - ccipBnMAddress: address(0x20Aa09AAb761e2E600d65c6929A9fd1E59821D3f), - ccipLnMAddress: address(0x705b364CadE0e515577F2646529e3A417473a155), - rmnProxyAddress: address(0xfd66EBE7335E91ae6f4CCCccdDDF262Ab5e35c71), - registryModuleOwnerCustomAddress: address(0x64f8535919A00D2b09d8E5C7ab70eC4b81128CdB), - tokenAdminRegistryAddress: address(0x31668C3E8f96415286e9e03592ad97E50e565f52) - }); - + if (chainId == 59902) { + return NetworkDetails({ + chainSelector: 3777822886988675105, + routerAddress: address(0xaCdaBa07ECad81dc634458b98673931DD9d3Bc14), + linkAddress: address(0x9870D6a0e05F867EAAe696e106741843F7fD116D), + wrappedNativeAddress: address(0x5c48e07062aC4E2Cf4b9A768a711Aef18e8fbdA0), + ccipBnMAddress: address(0x20Aa09AAb761e2E600d65c6929A9fd1E59821D3f), + ccipLnMAddress: address(0x705b364CadE0e515577F2646529e3A417473a155), + rmnProxyAddress: address(0xfd66EBE7335E91ae6f4CCCccdDDF262Ab5e35c71), + registryModuleOwnerCustomAddress: address(0x64f8535919A00D2b09d8E5C7ab70eC4b81128CdB), + tokenAdminRegistryAddress: address(0x31668C3E8f96415286e9e03592ad97E50e565f52) + }); + } // BOB - s_networkDetails[60808] = NetworkDetails({ - chainSelector: 3849287863852499584, - routerAddress: address(0x827716e74F769AB7b6bb374A29235d9c2156932C), - linkAddress: address(0x5aB885CDa7216b163fb6F813DEC1E1532516c833), - wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0xe4D8E0A02C61f6DDe95255E702fe1237428673D8), - registryModuleOwnerCustomAddress: address(0x55aeb80Aa6Ab34aA83E1F387903F8Bb2Aa9e2F2d), - tokenAdminRegistryAddress: address(0xa57d04119AFf4884F8602213E58d8AaAD18229cb) - }); - + if (chainId == 60808) { + return NetworkDetails({ + chainSelector: 3849287863852499584, + routerAddress: address(0x827716e74F769AB7b6bb374A29235d9c2156932C), + linkAddress: address(0x5aB885CDa7216b163fb6F813DEC1E1532516c833), + wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0xe4D8E0A02C61f6DDe95255E702fe1237428673D8), + registryModuleOwnerCustomAddress: address(0x55aeb80Aa6Ab34aA83E1F387903F8Bb2Aa9e2F2d), + tokenAdminRegistryAddress: address(0xa57d04119AFf4884F8602213E58d8AaAD18229cb) + }); + } + // Mova Mainnet + if (chainId == 61901) { + return NetworkDetails({ + chainSelector: 4215185756725900654, + routerAddress: address(0x492641F648a4986844848E0beFE66D14817bCE34), + linkAddress: address(0x76a443768A5e3B8d1AED0105FC250877841Deb40), + wrappedNativeAddress: address(0x911fcc80F48340864f5F94Ae9a73d6296d5C2115), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0xf09AFe78d3c7d359b334d7cB88995751F7eC5E13), + registryModuleOwnerCustomAddress: address(0xf4a170A36D4C656F614d44453f73308Bdb275196), + tokenAdminRegistryAddress: address(0xA27056438FfA1f286AB197488808692F0db93F8B) + }); + } // Henesys - s_networkDetails[68414] = NetworkDetails({ - chainSelector: 12657445206920369324, - routerAddress: address(0x492641F648a4986844848E0beFE66D14817bCE34), - linkAddress: address(0x76a443768A5e3B8d1AED0105FC250877841Deb40), - wrappedNativeAddress: address(0x150869eac5C58d3655f860C4316107fB626244d0), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0xf09AFe78d3c7d359b334d7cB88995751F7eC5E13), - registryModuleOwnerCustomAddress: address(0xf4a170A36D4C656F614d44453f73308Bdb275196), - tokenAdminRegistryAddress: address(0xA27056438FfA1f286AB197488808692F0db93F8B) - }); - + if (chainId == 68414) { + return NetworkDetails({ + chainSelector: 12657445206920369324, + routerAddress: address(0x492641F648a4986844848E0beFE66D14817bCE34), + linkAddress: address(0x76a443768A5e3B8d1AED0105FC250877841Deb40), + wrappedNativeAddress: address(0x150869eac5C58d3655f860C4316107fB626244d0), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0xf09AFe78d3c7d359b334d7cB88995751F7eC5E13), + registryModuleOwnerCustomAddress: address(0xf4a170A36D4C656F614d44453f73308Bdb275196), + tokenAdminRegistryAddress: address(0xA27056438FfA1f286AB197488808692F0db93F8B) + }); + } // Polygon Amoy - s_networkDetails[80002] = NetworkDetails({ - chainSelector: 16281711391670634445, - routerAddress: address(0x9C32fCB86BF0f4a1A8921a9Fe46de3198bb884B2), - linkAddress: address(0x0Fd9e8d3aF1aaee056EB9e802c3A762a667b1904), - wrappedNativeAddress: address(0x360ad4f9a9A8EFe9A8DCB5f461c4Cc1047E1Dcf9), - ccipBnMAddress: address(0xcab0EF91Bee323d1A617c0a027eE753aFd6997E4), - ccipLnMAddress: address(0x3d357fb52253e86c8Ee0f80F5FfE438fD9503FF2), - rmnProxyAddress: address(0x7c1e545A40750Ee8761282382D51E017BAC68CBB), - registryModuleOwnerCustomAddress: address(0xAF2356327c6BBd644A273271B6cA301B49787970), - tokenAdminRegistryAddress: address(0x1e73f6842d7afDD78957ac143d1f315404Dd9e5B) - }); - - // Berachain Bartio - s_networkDetails[80084] = NetworkDetails({ - chainSelector: 8999465244383784164, - routerAddress: address(0xb1653462481e1bF30B5cca3082e2454E41668c65), - linkAddress: address(0x52CEEed7d3f8c6618e4aaD6c6e555320d0D83271), - wrappedNativeAddress: address(0x7507c1dc16935B82698e4C63f2746A2fCf994dF8), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0xf3E86536f95EC830983A51716C3577887cd2c47B), - registryModuleOwnerCustomAddress: address(0x8E4011605b934c615C82938c9AEf9e23F6442D10), - tokenAdminRegistryAddress: address(0x2df015A976044B2e09aa7c135b2B1e92CF47c50f) - }); - + if (chainId == 80002) { + return NetworkDetails({ + chainSelector: 16281711391670634445, + routerAddress: address(0x9C32fCB86BF0f4a1A8921a9Fe46de3198bb884B2), + linkAddress: address(0x0Fd9e8d3aF1aaee056EB9e802c3A762a667b1904), + wrappedNativeAddress: address(0x360ad4f9a9A8EFe9A8DCB5f461c4Cc1047E1Dcf9), + ccipBnMAddress: address(0xcab0EF91Bee323d1A617c0a027eE753aFd6997E4), + ccipLnMAddress: address(0x3d357fb52253e86c8Ee0f80F5FfE438fD9503FF2), + rmnProxyAddress: address(0x7c1e545A40750Ee8761282382D51E017BAC68CBB), + registryModuleOwnerCustomAddress: address(0xAF2356327c6BBd644A273271B6cA301B49787970), + tokenAdminRegistryAddress: address(0x1e73f6842d7afDD78957ac143d1f315404Dd9e5B) + }); + } // Berachain - s_networkDetails[80094] = NetworkDetails({ - chainSelector: 1294465214383781161, - routerAddress: address(0x71a275704c283486fBa26dad3dd0DB78804426eF), - linkAddress: address(0x71052BAe71C25C78E37fD12E5ff1101A71d9018F), - wrappedNativeAddress: address(0x6969696969696969696969696969696969696969), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x25943b8C30C47F4eF09CcF2BAE315EbaF591881d), - registryModuleOwnerCustomAddress: address(0x160603D7C0Ac00409276bf6707430712Caf5b555), - tokenAdminRegistryAddress: address(0x0944C3Fb1dB7D165336569221995B31cBE6c8A55) - }); - - // Blast - s_networkDetails[81457] = NetworkDetails({ - chainSelector: 4411394078118774322, - routerAddress: address(0x12e0B8E349C6fb7E6E40713E8125C3cF1127ea8C), - linkAddress: address(0x93202eC683288a9EA75BB829c6baCFb2BfeA9013), - wrappedNativeAddress: address(0x4300000000000000000000000000000000000004), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x50dbd1e73ED032f42B5892E5F3689972FefAc880), - registryModuleOwnerCustomAddress: address(0xb227f007804c16546Bd054dfED2E7A1fD5437678), - tokenAdminRegistryAddress: address(0x846Fccd01D4115FD1E81267495773aeB33bF1dC7) - }); - + if (chainId == 80094) { + return NetworkDetails({ + chainSelector: 1294465214383781161, + routerAddress: address(0x71a275704c283486fBa26dad3dd0DB78804426eF), + linkAddress: address(0x71052BAe71C25C78E37fD12E5ff1101A71d9018F), + wrappedNativeAddress: address(0x6969696969696969696969696969696969696969), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x25943b8C30C47F4eF09CcF2BAE315EbaF591881d), + registryModuleOwnerCustomAddress: address(0x160603D7C0Ac00409276bf6707430712Caf5b555), + tokenAdminRegistryAddress: address(0x0944C3Fb1dB7D165336569221995B31cBE6c8A55) + }); + } // Base Sepolia - s_networkDetails[84532] = NetworkDetails({ - chainSelector: 10344971235874465080, - routerAddress: address(0xD3b06cEbF099CE7DA4AcCf578aaebFDBd6e88a93), - linkAddress: address(0xE4aB69C077896252FAFBD49EFD26B5D171A32410), - wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), - ccipBnMAddress: address(0x88A2d74F47a237a62e7A51cdDa67270CE381555e), - ccipLnMAddress: address(0xA98FA8A008371b9408195e52734b1768c0d1Cb5c), - rmnProxyAddress: address(0x99360767a4705f68CcCb9533195B761648d6d807), - registryModuleOwnerCustomAddress: address(0x176ae8C6C11DD2c031B924CE1A0A43188035f3f6), - tokenAdminRegistryAddress: address(0x736D0bBb318c1B27Ff686cd19804094E66250e17) - }); - + if (chainId == 84532) { + return NetworkDetails({ + chainSelector: 10344971235874465080, + routerAddress: address(0xD3b06cEbF099CE7DA4AcCf578aaebFDBd6e88a93), + linkAddress: address(0xE4aB69C077896252FAFBD49EFD26B5D171A32410), + wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), + ccipBnMAddress: address(0x88A2d74F47a237a62e7A51cdDa67270CE381555e), + ccipLnMAddress: address(0xA98FA8A008371b9408195e52734b1768c0d1Cb5c), + rmnProxyAddress: address(0x99360767a4705f68CcCb9533195B761648d6d807), + registryModuleOwnerCustomAddress: address(0x176ae8C6C11DD2c031B924CE1A0A43188035f3f6), + tokenAdminRegistryAddress: address(0x736D0bBb318c1B27Ff686cd19804094E66250e17) + }); + } // Plume - s_networkDetails[98866] = NetworkDetails({ - chainSelector: 17912061998839310979, - routerAddress: address(0x5C4f4622AD0EC4a47e04840db7E9EcA8354109af), - linkAddress: address(0xb549B375dA0c76f8b3877B9aDfDD28378f087A64), - wrappedNativeAddress: address(0xEa237441c92CAe6FC17Caaf9a7acB3f953be4bd1), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x975B590aCc4aAd12f69974339B26cCE24A380031), - registryModuleOwnerCustomAddress: address(0x022D74c2D24e7625368720dcBA5674bd8A951892), - tokenAdminRegistryAddress: address(0x01E5B2fAC7156c54f034E1767f2799fDd41B8285) - }); - + if (chainId == 98866) { + return NetworkDetails({ + chainSelector: 17912061998839310979, + routerAddress: address(0x5C4f4622AD0EC4a47e04840db7E9EcA8354109af), + linkAddress: address(0xb549B375dA0c76f8b3877B9aDfDD28378f087A64), + wrappedNativeAddress: address(0xEa237441c92CAe6FC17Caaf9a7acB3f953be4bd1), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x975B590aCc4aAd12f69974339B26cCE24A380031), + registryModuleOwnerCustomAddress: address(0x022D74c2D24e7625368720dcBA5674bd8A951892), + tokenAdminRegistryAddress: address(0x01E5B2fAC7156c54f034E1767f2799fDd41B8285) + }); + } // Plume Testnet - s_networkDetails[98867] = NetworkDetails({ - chainSelector: 13874588925447303949, - routerAddress: address(0x5e5Fd4720E1CE826138D043aF578D69f48af502F), - linkAddress: address(0xB97e3665AEAF96BDD6b300B2e0C93C662104A068), - wrappedNativeAddress: address(0xC1FD14775c8665B31c7154074f537338774351EB), - ccipBnMAddress: address(0x225fAc4130595d1C7dabbE61A8bA9B051440b76c), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0xAa3ae5481EE445711252131f1516922D0962916A), - registryModuleOwnerCustomAddress: address(0x693926456C8b210f56E29Bc5b4514B32A5224c88), - tokenAdminRegistryAddress: address(0x855cF0d18A0BeBEDA7c1CD2F943686120cCCC6bd) - }); - + if (chainId == 98867) { + return NetworkDetails({ + chainSelector: 13874588925447303949, + routerAddress: address(0x5e5Fd4720E1CE826138D043aF578D69f48af502F), + linkAddress: address(0xB97e3665AEAF96BDD6b300B2e0C93C662104A068), + wrappedNativeAddress: address(0xC1FD14775c8665B31c7154074f537338774351EB), + ccipBnMAddress: address(0x225fAc4130595d1C7dabbE61A8bA9B051440b76c), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0xAa3ae5481EE445711252131f1516922D0962916A), + registryModuleOwnerCustomAddress: address(0x693926456C8b210f56E29Bc5b4514B32A5224c88), + tokenAdminRegistryAddress: address(0x855cF0d18A0BeBEDA7c1CD2F943686120cCCC6bd) + }); + } // ADI Network AB Testnet - s_networkDetails[99999] = NetworkDetails({ - chainSelector: 9418205736192840573, - routerAddress: address(0x5D445DF89674096B6A138565cAE955FF816f352D), - linkAddress: address(0x64c12A9Bfdb4DEB5F37A0eC4c5fae0405669612A), - wrappedNativeAddress: address(0xddeA1446FD21e3d2CB934A78Fe200a266739fad4), - ccipBnMAddress: address(0x23577b74c98325f9e70677EA8B72707F06625343), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x8Fdc413B5Da54cEE04b181b83f99D82587F7e768), - registryModuleOwnerCustomAddress: address(0xb3b3F359f5C7CDE7568606889cB08cDC0a9f91Df), - tokenAdminRegistryAddress: address(0xEf3278a2F481415446060264b1f7903F96771447) - }); - - // Katana Tatara - s_networkDetails[129399] = NetworkDetails({ - chainSelector: 9090863410735740267, - routerAddress: address(0x1dF1fe714A376f248d51AAB826C3feeC379e80fC), - linkAddress: address(0x29261B6Fb93097885bEB714ee253Da63A52dFc46), - wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0xAD8BeA8bC5Fe468Dc1F7BbEce59A86584407255f), - registryModuleOwnerCustomAddress: address(0x32E18611aeb4e42d931dF838fd4e019CC6B2A674), - tokenAdminRegistryAddress: address(0xFE50B8Cd5a07E23550fE6b3B138408936c10EC29) - }); - + if (chainId == 99999) { + return NetworkDetails({ + chainSelector: 9418205736192840573, + routerAddress: address(0x5D445DF89674096B6A138565cAE955FF816f352D), + linkAddress: address(0x37f27b410013b5ec92ec61D2a92fD9e0a946DD48), + wrappedNativeAddress: address(0xddeA1446FD21e3d2CB934A78Fe200a266739fad4), + ccipBnMAddress: address(0x23577b74c98325f9e70677EA8B72707F06625343), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x8Fdc413B5Da54cEE04b181b83f99D82587F7e768), + registryModuleOwnerCustomAddress: address(0xb3b3F359f5C7CDE7568606889cB08cDC0a9f91Df), + tokenAdminRegistryAddress: address(0xEf3278a2F481415446060264b1f7903F96771447) + }); + } + // Creditcoin Mainnet + if (chainId == 102030) { + return NetworkDetails({ + chainSelector: 18240105181246962294, + routerAddress: address(0x1bADBe95bEe68D3a74EC08621256ddDBe6eAd3F9), + linkAddress: address(0x76a443768A5e3B8d1AED0105FC250877841Deb40), + wrappedNativeAddress: address(0x1f40d7292cFBe5Ed4c66aFc60c72f7b1012673df), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0xdCc981e12Fd132d9172eb03E8373BE68032588e8), + registryModuleOwnerCustomAddress: address(0x8FE3B17E6B0863aeEA3D38DF063AEa39D4Ab1602), + tokenAdminRegistryAddress: address(0xD941fBEcD2b971d0F54b4C34286C95faB52B60B8) + }); + } // Taiko Alethia - s_networkDetails[167000] = NetworkDetails({ - chainSelector: 16468599424800719238, - routerAddress: address(0xeb2502AeD3Cfd6E37e292c6B837a8FFF9a042367), - linkAddress: address(0x917a3964C37993e99a47C779bEb5Db1E9d13804d), - wrappedNativeAddress: address(0xA51894664A773981C6C112C43ce576f315d5b1B6), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x01f66BA71474d30De43d3c7B389F4019505B7F59), - registryModuleOwnerCustomAddress: address(0x4e52dD94e9BCfeFE3C78153bDfB0AB1d30687297), - tokenAdminRegistryAddress: address(0x308a2A7d13B12ba26649F381C53F7e7C60d0D9c6) - }); - - // Taiko Hekla - s_networkDetails[167009] = NetworkDetails({ - chainSelector: 7248756420937879088, - routerAddress: address(0x07a2b9BB0456a7e999B61ca8F166ADDF5878F468), - linkAddress: address(0x01fcdEedbA59bc68b0914D92277678dAB6827e2c), - wrappedNativeAddress: address(0xae2C46ddb314B9Ba743C6dEE4878F151881333D9), - ccipBnMAddress: address(0x54B50385e417469dbdb697f40651e8864664D992), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0xF3E5e253164B60109db668ef7Eba6f9813F8A761), - registryModuleOwnerCustomAddress: address(0xBB33E6d7A454843204Fd0ae53fdbf2535A993C10), - tokenAdminRegistryAddress: address(0xa089c6A73e8c2EE98cC96bF99A8b6aE687e715DF) - }); - - // Mind Network Testnet - s_networkDetails[192940] = NetworkDetails({ - chainSelector: 7189150270347329685, - routerAddress: address(0xf877Eb80E5Ab0d58afF1a1431756B74Dd5190021), - linkAddress: address(0xE0352dEd874c3E72d922CE533E136385fBE4a9B4), - wrappedNativeAddress: address(0x12e3b49DF7dD40792EFbB1B3eAB1295951Bad5EE), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0xbef6CEC4a6C3A14404C63Ae84dA2AAf456f8a6C9), - registryModuleOwnerCustomAddress: address(0x23577b74c98325f9e70677EA8B72707F06625343), - tokenAdminRegistryAddress: address(0x8Fb9dD6DaC6e871F09bBE5632a78e1C23249EAe9) - }); - - // Bitlayer Testnet - s_networkDetails[200810] = NetworkDetails({ - chainSelector: 3789623672476206327, - routerAddress: address(0x3dfbe078277609D34c8ef015c61f23A9BeDE61BB), - linkAddress: address(0x2A5bACb2440BC17D53B7b9Be73512dDf92265e48), - wrappedNativeAddress: address(0x3e57d6946f893314324C975AA9CEBBdF3232967E), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0xdB44738b1DD21E05e3c56ecD73701daC2c793c0D), - registryModuleOwnerCustomAddress: address(0x58783b4E644Af8f549C1D79e80E3DC65727cE09A), - tokenAdminRegistryAddress: address(0x44919DB06c5c2f14F8d44b1A67F8032E0B617293) - }); - + if (chainId == 167000) { + return NetworkDetails({ + chainSelector: 16468599424800719238, + routerAddress: address(0xeb2502AeD3Cfd6E37e292c6B837a8FFF9a042367), + linkAddress: address(0x917a3964C37993e99a47C779bEb5Db1E9d13804d), + wrappedNativeAddress: address(0xA51894664A773981C6C112C43ce576f315d5b1B6), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x01f66BA71474d30De43d3c7B389F4019505B7F59), + registryModuleOwnerCustomAddress: address(0x4e52dD94e9BCfeFE3C78153bDfB0AB1d30687297), + tokenAdminRegistryAddress: address(0x308a2A7d13B12ba26649F381C53F7e7C60d0D9c6) + }); + } // Bitlayer - s_networkDetails[200901] = NetworkDetails({ - chainSelector: 7937294810946806131, - routerAddress: address(0x6c0aA29330c58dda07faD577fF5a0280823a910c), - linkAddress: address(0x56B275c0Ec034a229a1deD8DB17089544bc276D9), - wrappedNativeAddress: address(0xfF204e2681A6fA0e2C3FaDe68a1B28fb90E4Fc5F), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0xcaa6131cEe85ba2F140cBa05F6825aC60B6CEA56), - registryModuleOwnerCustomAddress: address(0x1f524a11d89D68a4E4b1c8A195E91Fb1d8f0B56a), - tokenAdminRegistryAddress: address(0xd999758aEB04BDa755Ae78344FFF5534947620CD) - }); - + if (chainId == 200901) { + return NetworkDetails({ + chainSelector: 7937294810946806131, + routerAddress: address(0x6c0aA29330c58dda07faD577fF5a0280823a910c), + linkAddress: address(0x56B275c0Ec034a229a1deD8DB17089544bc276D9), + wrappedNativeAddress: address(0xfF204e2681A6fA0e2C3FaDe68a1B28fb90E4Fc5F), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0xcaa6131cEe85ba2F140cBa05F6825aC60B6CEA56), + registryModuleOwnerCustomAddress: address(0x1f524a11d89D68a4E4b1c8A195E91Fb1d8f0B56a), + tokenAdminRegistryAddress: address(0xd999758aEB04BDa755Ae78344FFF5534947620CD) + }); + } + // Ronin Sepolia + if (chainId == 202601) { + return NetworkDetails({ + chainSelector: 1091131740251125869, + routerAddress: address(0x3C6a0de9aF7051344aAE8b78a0ee4E43e050c7Dd), + linkAddress: address(0x34e2d447b5C5727c49E59e8da69a234c1A059bb3), + wrappedNativeAddress: address(0xA959726154953bAe111746E265E6d754F48570E6), + ccipBnMAddress: address(0xE2bf78628E7De55350Be17F564A6cC8a8B6bF7dB), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0xd7b86ed053806177718B9e03c63c4Bc501825C00), + registryModuleOwnerCustomAddress: address(0xbc9A4b299741CBf2A8eD5D2078A426027C31B2A3), + tokenAdminRegistryAddress: address(0xca4C185DEDabaA63876b794E77Ca7a68f08DB485) + }); + } // Arbitrum Sepolia - s_networkDetails[421614] = NetworkDetails({ - chainSelector: 3478487238524512106, - routerAddress: address(0x2a9C5afB0d0e4BAb2BCdaE109EC4b0c4Be15a165), - linkAddress: address(0xb1D4538B4571d411F07960EF2838Ce337FE1E80E), - wrappedNativeAddress: address(0xb13Cfa6f8B2Eed2C37fB00fF0c1A59807C585810), - ccipBnMAddress: address(0xA8C0c11bf64AF62CDCA6f93D3769B88BdD7cb93D), - ccipLnMAddress: address(0x139E99f0ab4084E14e6bb7DacA289a91a2d92927), - rmnProxyAddress: address(0x9527E2d01A3064ef6b50c1Da1C0cC523803BCFF2), - registryModuleOwnerCustomAddress: address(0xaD417c0611dBD225471D31F056b8B6beC1CBC153), - tokenAdminRegistryAddress: address(0x8126bE56454B628a88C17849B9ED99dd5a11Bd2f) - }); - - // Scroll Sepolia - s_networkDetails[534351] = NetworkDetails({ - chainSelector: 2279865765895943307, - routerAddress: address(0x6aF501292f2A33C81B9156203C9A66Ba0d8E3D21), - linkAddress: address(0x7273ebbB21F8D8AcF2bC12E71a08937712E9E40c), - wrappedNativeAddress: address(0x5300000000000000000000000000000000000004), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0x0298e204F9131d45EEb436D693f32C6eA1190622), - rmnProxyAddress: address(0x8f4413e02265F65eF89FB908dbA2915fF9f7F8cB), - registryModuleOwnerCustomAddress: address(0xeA2912f446Ff28663D2E5A971da751A84E409292), - tokenAdminRegistryAddress: address(0xf49C561cf56149517c67793a3035D1877ffE2f04) - }); - + if (chainId == 421614) { + return NetworkDetails({ + chainSelector: 3478487238524512106, + routerAddress: address(0x2a9C5afB0d0e4BAb2BCdaE109EC4b0c4Be15a165), + linkAddress: address(0xb1D4538B4571d411F07960EF2838Ce337FE1E80E), + wrappedNativeAddress: address(0xE591bf0A0CF924A0674d7792db046B23CEbF5f34), + ccipBnMAddress: address(0xA8C0c11bf64AF62CDCA6f93D3769B88BdD7cb93D), + ccipLnMAddress: address(0x139E99f0ab4084E14e6bb7DacA289a91a2d92927), + rmnProxyAddress: address(0x9527E2d01A3064ef6b50c1Da1C0cC523803BCFF2), + registryModuleOwnerCustomAddress: address(0xaD417c0611dBD225471D31F056b8B6beC1CBC153), + tokenAdminRegistryAddress: address(0x8126bE56454B628a88C17849B9ED99dd5a11Bd2f) + }); + } // Scroll - s_networkDetails[534352] = NetworkDetails({ - chainSelector: 13204309965629103672, - routerAddress: address(0x9a55E8Cab6564eb7bbd7124238932963B8Af71DC), - linkAddress: address(0x548C6944cba02B9D1C0570102c89de64D258d3Ac), - wrappedNativeAddress: address(0x5300000000000000000000000000000000000004), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x68B38980aD70650a6f3229BA156e5c1F88A21320), - registryModuleOwnerCustomAddress: address(0x3539F2E214d8BC7E611056383323aC6D1b01943c), - tokenAdminRegistryAddress: address(0x846dEA1c1706FC35b4aa78B32d31F1599DAA47b4) - }); - + if (chainId == 534352) { + return NetworkDetails({ + chainSelector: 13204309965629103672, + routerAddress: address(0x9a55E8Cab6564eb7bbd7124238932963B8Af71DC), + linkAddress: address(0x548C6944cba02B9D1C0570102c89de64D258d3Ac), + wrappedNativeAddress: address(0x5300000000000000000000000000000000000004), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x68B38980aD70650a6f3229BA156e5c1F88A21320), + registryModuleOwnerCustomAddress: address(0x3539F2E214d8BC7E611056383323aC6D1b01943c), + tokenAdminRegistryAddress: address(0x846dEA1c1706FC35b4aa78B32d31F1599DAA47b4) + }); + } // Ethereum Hoodi - s_networkDetails[560048] = NetworkDetails({ - chainSelector: 10380998176179737091, - routerAddress: address(0xc93Dac3422660A41500a24C94BF14616995e3CA6), - linkAddress: address(0x76c00B055414de203B79B4955E28119BF459033e), - wrappedNativeAddress: address(0xF0b60c40554fE9d385EB5F1Ec03471f0d66EC589), - ccipBnMAddress: address(0xAA3450998528E43322698a914D0b756B98292A3b), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0xEB5D23FD0CFcd7EB3D16ac6F3A58CAdaF44c2324), - registryModuleOwnerCustomAddress: address(0x19e696e75ccbB3155EEbB579BFa555Fab22293bA), - tokenAdminRegistryAddress: address(0x073b3C71eb4630c4C88F1f72954fdFff30cf3f8D) - }); - + if (chainId == 560048) { + return NetworkDetails({ + chainSelector: 10380998176179737091, + routerAddress: address(0xc93Dac3422660A41500a24C94BF14616995e3CA6), + linkAddress: address(0xCb73D90c9dc6f0C303Fa4f434E5e8Bf76eb46009), + wrappedNativeAddress: address(0xF0b60c40554fE9d385EB5F1Ec03471f0d66EC589), + ccipBnMAddress: address(0xAA3450998528E43322698a914D0b756B98292A3b), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0xEB5D23FD0CFcd7EB3D16ac6F3A58CAdaF44c2324), + registryModuleOwnerCustomAddress: address(0x19e696e75ccbB3155EEbB579BFa555Fab22293bA), + tokenAdminRegistryAddress: address(0x073b3C71eb4630c4C88F1f72954fdFff30cf3f8D) + }); + } // Merlin Testnet - s_networkDetails[686868] = NetworkDetails({ - chainSelector: 5269261765892944301, - routerAddress: address(0x500063c3827cd871E7b4Af0384E369bDEb75b2e2), - linkAddress: address(0xB904d5b9a1e74F6576fFF550EeE75Eaa68e2dd50), - wrappedNativeAddress: address(0x1A6357313BA1B6bc92e7325A9BAf241Ca3e493dD), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0xcb89C5D13C18850fA5AEe997b7B4DEdD87ab1B34), - registryModuleOwnerCustomAddress: address(0xd7b86ed053806177718B9e03c63c4Bc501825C00), - tokenAdminRegistryAddress: address(0xcafA13f9Bc0AA3aB37e29cA18343507bf8D43E93) - }); - + if (chainId == 686868) { + return NetworkDetails({ + chainSelector: 5269261765892944301, + routerAddress: address(0x500063c3827cd871E7b4Af0384E369bDEb75b2e2), + linkAddress: address(0xB904d5b9a1e74F6576fFF550EeE75Eaa68e2dd50), + wrappedNativeAddress: address(0x1A6357313BA1B6bc92e7325A9BAf241Ca3e493dD), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0xcb89C5D13C18850fA5AEe997b7B4DEdD87ab1B34), + registryModuleOwnerCustomAddress: address(0xd7b86ed053806177718B9e03c63c4Bc501825C00), + tokenAdminRegistryAddress: address(0xcafA13f9Bc0AA3aB37e29cA18343507bf8D43E93) + }); + } // Pharos Atlantic Testnet - s_networkDetails[688689] = NetworkDetails({ - chainSelector: 16098325658947243212, - routerAddress: address(0x1E202D00714bFBcD7a5b4CF782791C38DA8BdC99), - linkAddress: address(0x2f79e049f552E600D5d8118923278Aa0fCD67179), - wrappedNativeAddress: address(0x838800b758277CC111B2d48Ab01e5E164f8E9471), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0xB45B9eb94F25683B47e5AFb0f74A05a58be86311), - registryModuleOwnerCustomAddress: address(0x5370103629Fe91F28708ec4DC1A7A70DC5396EBf), - tokenAdminRegistryAddress: address(0xAd1652471967E7FBf524245782A7f4430F6a4243) - }); - + if (chainId == 688689) { + return NetworkDetails({ + chainSelector: 16098325658947243212, + routerAddress: address(0x1E202D00714bFBcD7a5b4CF782791C38DA8BdC99), + linkAddress: address(0xBF355c2aa3a65f03f229b57568931e2267fAf981), + wrappedNativeAddress: address(0x838800b758277CC111B2d48Ab01e5E164f8E9471), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0xB45B9eb94F25683B47e5AFb0f74A05a58be86311), + registryModuleOwnerCustomAddress: address(0x5370103629Fe91F28708ec4DC1A7A70DC5396EBf), + tokenAdminRegistryAddress: address(0xAd1652471967E7FBf524245782A7f4430F6a4243) + }); + } // Hemi Sepolia - s_networkDetails[743111] = NetworkDetails({ - chainSelector: 16126893759944359622, - routerAddress: address(0xc1D615EC997F581741d867B08bC7050c90d213B0), - linkAddress: address(0x5246409a2e09134824c4E709602205B176491e57), - wrappedNativeAddress: address(0x0C8aFD1b58aa2A5bAd2414B861D8A7fF898eDC3A), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x0001518b4D94c0E1961D27F3120487f891739d0B), - registryModuleOwnerCustomAddress: address(0xB45B9eb94F25683B47e5AFb0f74A05a58be86311), - tokenAdminRegistryAddress: address(0x5c8a206f4800A61fF4430a2b75381A0033172860) - }); - + if (chainId == 743111) { + return NetworkDetails({ + chainSelector: 16126893759944359622, + routerAddress: address(0xc1D615EC997F581741d867B08bC7050c90d213B0), + linkAddress: address(0x5246409a2e09134824c4E709602205B176491e57), + wrappedNativeAddress: address(0x0C8aFD1b58aa2A5bAd2414B861D8A7fF898eDC3A), + ccipBnMAddress: address(0x8E3cD3cDDABAd9828936FE209F05D7B56B40c94D), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x0001518b4D94c0E1961D27F3120487f891739d0B), + registryModuleOwnerCustomAddress: address(0xB45B9eb94F25683B47e5AFb0f74A05a58be86311), + tokenAdminRegistryAddress: address(0x5c8a206f4800A61fF4430a2b75381A0033172860) + }); + } // Katana - s_networkDetails[747474] = NetworkDetails({ - chainSelector: 2459028469735686113, - routerAddress: address(0x7c19b79D2a054114Ab36ad758A36e92376e267DA), - linkAddress: address(0xc2C447b04e0ED3476DdbDae8E9E39bE7159d27b6), - wrappedNativeAddress: address(0xEE7D8BCFb72bC1880D0Cf19822eB0A2e6577aB62), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x32270E4FA459cA47ae0334488e27ffb9bC9aB4a1), - registryModuleOwnerCustomAddress: address(0x10fD7245f6ca39885D3A398b03dCcCC833fC96A1), - tokenAdminRegistryAddress: address(0x048B911A1AE5dD4f0aEE5241A30d3DEDa3501D54) - }); - + if (chainId == 747474) { + return NetworkDetails({ + chainSelector: 2459028469735686113, + routerAddress: address(0x7c19b79D2a054114Ab36ad758A36e92376e267DA), + linkAddress: address(0xc2C447b04e0ED3476DdbDae8E9E39bE7159d27b6), + wrappedNativeAddress: address(0xEE7D8BCFb72bC1880D0Cf19822eB0A2e6577aB62), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x32270E4FA459cA47ae0334488e27ffb9bC9aB4a1), + registryModuleOwnerCustomAddress: address(0x10fD7245f6ca39885D3A398b03dCcCC833fC96A1), + tokenAdminRegistryAddress: address(0x048B911A1AE5dD4f0aEE5241A30d3DEDa3501D54) + }); + } // Ink Sepolia - s_networkDetails[763373] = NetworkDetails({ - chainSelector: 9763904284804119144, - routerAddress: address(0x17fCda531D8E43B4e2a2A2492FBcd4507a1685A1), - linkAddress: address(0x3423C922911956b1Ccbc2b5d4f38216a6f4299b4), - wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), - ccipBnMAddress: address(0x414dbe1d58dd9BA7C84f7Fc0e4f82bc858675d37), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x84017cfddD12D319E5bBf090e0de6d55B78160Cb), - registryModuleOwnerCustomAddress: address(0xaB018890bBdDf9B80E21d1c335c5f6acdbE0f5D6), - tokenAdminRegistryAddress: address(0x3A849a05a590FeaEf26c2d425241A2BF29307161) - }); - + if (chainId == 763373) { + return NetworkDetails({ + chainSelector: 9763904284804119144, + routerAddress: address(0x17fCda531D8E43B4e2a2A2492FBcd4507a1685A1), + linkAddress: address(0x3423C922911956b1Ccbc2b5d4f38216a6f4299b4), + wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), + ccipBnMAddress: address(0x414dbe1d58dd9BA7C84f7Fc0e4f82bc858675d37), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x84017cfddD12D319E5bBf090e0de6d55B78160Cb), + registryModuleOwnerCustomAddress: address(0xaB018890bBdDf9B80E21d1c335c5f6acdbE0f5D6), + tokenAdminRegistryAddress: address(0x3A849a05a590FeaEf26c2d425241A2BF29307161) + }); + } // BOB Sepolia - s_networkDetails[808813] = NetworkDetails({ - chainSelector: 5535534526963509396, - routerAddress: address(0x7808184405d6Cbc663764003dE21617fa640bc82), - linkAddress: address(0xcd2AfB2933391E35e8682cbaaF75d9CA7339b183), - wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), - ccipBnMAddress: address(0x3B7d0d0CeC08eBF8dad58aCCa4719791378b2329), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0xD642e08eeF81bb55B8282701234659A3233E2145), - registryModuleOwnerCustomAddress: address(0xbc9A4b299741CBf2A8eD5D2078A426027C31B2A3), - tokenAdminRegistryAddress: address(0xAd57E853813d48c0D3687497bbdcF3eBc47dECB1) - }); - - // Treasure Topaz - s_networkDetails[978658] = NetworkDetails({ - chainSelector: 3676916124122457866, - routerAddress: address(0x7425448a70fEb77F0319cC8cD19691FECE7F5C05), - linkAddress: address(0x0FE9fAAF3e26f756443fd8f92F6711989a8e0fF5), - wrappedNativeAddress: address(0x095ded714d42cBD5fb2E84A0FfbFb140E38dC9E1), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x43f7b33Aee99208A38e4384655d35D8F0dCe7C51), - registryModuleOwnerCustomAddress: address(0x4c1812293c06f5eae71B15A7ceA47f637C4C53c6), - tokenAdminRegistryAddress: address(0xDdbC9B776f1e0AC6A462D80e1d2aa3cF9464454E) - }); - + if (chainId == 808813) { + return NetworkDetails({ + chainSelector: 5535534526963509396, + routerAddress: address(0x7808184405d6Cbc663764003dE21617fa640bc82), + linkAddress: address(0xcd2AfB2933391E35e8682cbaaF75d9CA7339b183), + wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), + ccipBnMAddress: address(0x3B7d0d0CeC08eBF8dad58aCCa4719791378b2329), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0xD642e08eeF81bb55B8282701234659A3233E2145), + registryModuleOwnerCustomAddress: address(0xbc9A4b299741CBf2A8eD5D2078A426027C31B2A3), + tokenAdminRegistryAddress: address(0xAd57E853813d48c0D3687497bbdcF3eBc47dECB1) + }); + } // Jovay Sepolia Testnet - s_networkDetails[2019775] = NetworkDetails({ - chainSelector: 945045181441419236, - routerAddress: address(0x2016AA303B331bd739Fd072998e579a3052500A6), - linkAddress: address(0xd3e461C55676B10634a5F81b747c324B85686Dd1), - wrappedNativeAddress: address(0xFe06d41BA962A74209845f938c387b363a931505), - ccipBnMAddress: address(0xB45B9eb94F25683B47e5AFb0f74A05a58be86311), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x5Dc49Ec54B92F7D493bC8126c0730DA74605cc00), - registryModuleOwnerCustomAddress: address(0xd1CBe8dF481C7a78AaaAfB0466814d13d93bd9b7), - tokenAdminRegistryAddress: address(0xaCc1C3b214CA255918C9Da66Db3bcc933d57188B) - }); - + if (chainId == 2019775) { + return NetworkDetails({ + chainSelector: 945045181441419236, + routerAddress: address(0x2016AA303B331bd739Fd072998e579a3052500A6), + linkAddress: address(0xd3e461C55676B10634a5F81b747c324B85686Dd1), + wrappedNativeAddress: address(0xFe06d41BA962A74209845f938c387b363a931505), + ccipBnMAddress: address(0x66Ff6B85daF4df0413d534B476ddCB5BEa5c2E0C), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x5Dc49Ec54B92F7D493bC8126c0730DA74605cc00), + registryModuleOwnerCustomAddress: address(0xd1CBe8dF481C7a78AaaAfB0466814d13d93bd9b7), + tokenAdminRegistryAddress: address(0xaCc1C3b214CA255918C9Da66Db3bcc933d57188B) + }); + } // Arc Network Testnet - s_networkDetails[5042002] = NetworkDetails({ - chainSelector: 3034092155422581607, - routerAddress: address(0xdE4E7FED43FAC37EB21aA0643d9852f75332eab8), - linkAddress: address(0x3F1f176e347235858DD6Db905DDBA09Eaf25478a), - wrappedNativeAddress: address(0xbf4B839A7939a52acbF8fC52D5Bd5BFE69a064EA), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0xD610B8f58689de7755947C05342A2DFaC30ebD57), - registryModuleOwnerCustomAddress: address(0x524B83ae8208490151339c626fd0E35b964483e3), - tokenAdminRegistryAddress: address(0xd3e461C55676B10634a5F81b747c324B85686Dd1) - }); - + if (chainId == 5042002) { + return NetworkDetails({ + chainSelector: 3034092155422581607, + routerAddress: address(0xdE4E7FED43FAC37EB21aA0643d9852f75332eab8), + linkAddress: address(0x745827566D1EFb6B91632df0bFD5a9b5392F54E0), + wrappedNativeAddress: address(0xbf4B839A7939a52acbF8fC52D5Bd5BFE69a064EA), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0xD610B8f58689de7755947C05342A2DFaC30ebD57), + registryModuleOwnerCustomAddress: address(0x524B83ae8208490151339c626fd0E35b964483e3), + tokenAdminRegistryAddress: address(0xd3e461C55676B10634a5F81b747c324B85686Dd1) + }); + } // Jovay - s_networkDetails[5734951] = NetworkDetails({ - chainSelector: 1523760397290643893, - routerAddress: address(0x492641F648a4986844848E0beFE66D14817bCE34), - linkAddress: address(0x76a443768A5e3B8d1AED0105FC250877841Deb40), - wrappedNativeAddress: address(0xeA29Cbb2808CF848C185E4405Bb002F53f92a241), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0xf09AFe78d3c7d359b334d7cB88995751F7eC5E13), - registryModuleOwnerCustomAddress: address(0xf4a170A36D4C656F614d44453f73308Bdb275196), - tokenAdminRegistryAddress: address(0xA27056438FfA1f286AB197488808692F0db93F8B) - }); - + if (chainId == 5734951) { + return NetworkDetails({ + chainSelector: 1523760397290643893, + routerAddress: address(0x492641F648a4986844848E0beFE66D14817bCE34), + linkAddress: address(0x76a443768A5e3B8d1AED0105FC250877841Deb40), + wrappedNativeAddress: address(0xeA29Cbb2808CF848C185E4405Bb002F53f92a241), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0xf09AFe78d3c7d359b334d7cB88995751F7eC5E13), + registryModuleOwnerCustomAddress: address(0xf4a170A36D4C656F614d44453f73308Bdb275196), + tokenAdminRegistryAddress: address(0xA27056438FfA1f286AB197488808692F0db93F8B) + }); + } // DogeOS Chikyu Testnet - s_networkDetails[6281971] = NetworkDetails({ - chainSelector: 7254999290874773717, - routerAddress: address(0x524B83ae8208490151339c626fd0E35b964483e3), - linkAddress: address(0xe5e3a4fF1773d043a387b16Ceb3c91cC49bAFD54), - wrappedNativeAddress: address(0xF6BDB158A5ddF77F1B83bC9074F6a472c58D78aE), - ccipBnMAddress: address(0x4A92387cE022FDae06c2e49020be7B24AAB16070), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x0820f975ce90EE5c508657F0C58b71D1fcc85cE0), - registryModuleOwnerCustomAddress: address(0xD610B8f58689de7755947C05342A2DFaC30ebD57), - tokenAdminRegistryAddress: address(0xEAB080c724587fFC9F2EFF82e36EE4Fb27774959) - }); - + if (chainId == 6281971) { + return NetworkDetails({ + chainSelector: 7254999290874773717, + routerAddress: address(0x524B83ae8208490151339c626fd0E35b964483e3), + linkAddress: address(0x9595fF700f0897798e10379DA95E2653c7C11FfE), + wrappedNativeAddress: address(0xF6BDB158A5ddF77F1B83bC9074F6a472c58D78aE), + ccipBnMAddress: address(0x4A92387cE022FDae06c2e49020be7B24AAB16070), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0x0820f975ce90EE5c508657F0C58b71D1fcc85cE0), + registryModuleOwnerCustomAddress: address(0xD610B8f58689de7755947C05342A2DFaC30ebD57), + tokenAdminRegistryAddress: address(0xEAB080c724587fFC9F2EFF82e36EE4Fb27774959) + }); + } // Zora - s_networkDetails[7777777] = NetworkDetails({ - chainSelector: 3555797439612589184, - routerAddress: address(0x65b40941fa86Fc444043257cd677a7F0bD034F79), - linkAddress: address(0x3662B6f73c5560229D1a98aF6e59E6649D568374), - wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0xFb6e1F0041c273dE4b99B23E2cB4c12CECe06C56), - registryModuleOwnerCustomAddress: address(0x03Df929510A52C97bb1B3E5f33EA5D9735A50280), - tokenAdminRegistryAddress: address(0x791BA3010A5BFeA773d2cfD6Ea4D0Ce9627856eB) - }); - + if (chainId == 7777777) { + return NetworkDetails({ + chainSelector: 3555797439612589184, + routerAddress: address(0x65b40941fa86Fc444043257cd677a7F0bD034F79), + linkAddress: address(0x3662B6f73c5560229D1a98aF6e59E6649D568374), + wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0xFb6e1F0041c273dE4b99B23E2cB4c12CECe06C56), + registryModuleOwnerCustomAddress: address(0x03Df929510A52C97bb1B3E5f33EA5D9735A50280), + tokenAdminRegistryAddress: address(0x791BA3010A5BFeA773d2cfD6Ea4D0Ce9627856eB) + }); + } // Ethereum Sepolia - s_networkDetails[11155111] = NetworkDetails({ - chainSelector: 16015286601757825753, - routerAddress: address(0x0BF3dE8c5D3e8A2B34D2BEeB17ABfCeBaf363A59), - linkAddress: address(0x779877A7B0D9E8603169DdbD7836e478b4624789), - wrappedNativeAddress: address(0xc4bF5CbDaBE595361438F8c6a187bDc330539c60), - ccipBnMAddress: address(0xFd57b4ddBf88a4e07fF4e34C487b99af2Fe82a05), - ccipLnMAddress: address(0x466D489b6d36E7E3b824ef491C225F5830E81cC1), - rmnProxyAddress: address(0xba3f6251de62dED61Ff98590cB2fDf6871FbB991), - registryModuleOwnerCustomAddress: address(0xa3c796d480638d7476792230da1E2ADa86e031b0), - tokenAdminRegistryAddress: address(0x95F29FEE11c5C55d26cCcf1DB6772DE953B37B82) - }); - + if (chainId == 11155111) { + return NetworkDetails({ + chainSelector: 16015286601757825753, + routerAddress: address(0x0BF3dE8c5D3e8A2B34D2BEeB17ABfCeBaf363A59), + linkAddress: address(0x779877A7B0D9E8603169DdbD7836e478b4624789), + wrappedNativeAddress: address(0x097D90c9d3E0B50Ca60e1ae45F6A81010f9FB534), + ccipBnMAddress: address(0xFd57b4ddBf88a4e07fF4e34C487b99af2Fe82a05), + ccipLnMAddress: address(0x466D489b6d36E7E3b824ef491C225F5830E81cC1), + rmnProxyAddress: address(0xba3f6251de62dED61Ff98590cB2fDf6871FbB991), + registryModuleOwnerCustomAddress: address(0xa3c796d480638d7476792230da1E2ADa86e031b0), + tokenAdminRegistryAddress: address(0x95F29FEE11c5C55d26cCcf1DB6772DE953B37B82) + }); + } // OP Sepolia - s_networkDetails[11155420] = NetworkDetails({ - chainSelector: 5224473277236331295, - routerAddress: address(0x114A20A10b43D4115e5aeef7345a1A71d2a60C57), - linkAddress: address(0xE4aB69C077896252FAFBD49EFD26B5D171A32410), - wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), - ccipBnMAddress: address(0x8aF4204e30565DF93352fE8E1De78925F6664dA7), - ccipLnMAddress: address(0x044a6B4b561af69D2319A2f4be5Ec327a6975D0a), - rmnProxyAddress: address(0xb40A3109075965cc09E93719e33E748abf680dAe), - registryModuleOwnerCustomAddress: address(0x6AfeDdaE519bA02985B4DD027b3f22298e1D828D), - tokenAdminRegistryAddress: address(0x1d702b1FA12F347f0921C722f9D9166F00DEB67A) - }); - + if (chainId == 11155420) { + return NetworkDetails({ + chainSelector: 5224473277236331295, + routerAddress: address(0x114A20A10b43D4115e5aeef7345a1A71d2a60C57), + linkAddress: address(0xE4aB69C077896252FAFBD49EFD26B5D171A32410), + wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), + ccipBnMAddress: address(0x8aF4204e30565DF93352fE8E1De78925F6664dA7), + ccipLnMAddress: address(0x044a6B4b561af69D2319A2f4be5Ec327a6975D0a), + rmnProxyAddress: address(0xb40A3109075965cc09E93719e33E748abf680dAe), + registryModuleOwnerCustomAddress: address(0x6AfeDdaE519bA02985B4DD027b3f22298e1D828D), + tokenAdminRegistryAddress: address(0x1d702b1FA12F347f0921C722f9D9166F00DEB67A) + }); + } // Neo X Testnet T4 - s_networkDetails[12227332] = NetworkDetails({ - chainSelector: 2217764097022649312, - routerAddress: address(0x609747816B6C237d5C4960065BC11d2F0DE752A6), - linkAddress: address(0x7F85bAC57B5D4b81F866F495c30AB8C8c453f6FD), - wrappedNativeAddress: address(0x1CE16390FD09040486221e912B87551E4e44Ab17), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0xc707eecF5CD423BbeaAc55fb1D11a7FB74bf4a4b), - registryModuleOwnerCustomAddress: address(0xd54205E00835B63Db005ADEF8d99E4984601ACAf), - tokenAdminRegistryAddress: address(0x9F7F6002b5f6F4d5a53BFDf380435fa18Ae2Dc13) - }); - - // Corn - s_networkDetails[21000000] = NetworkDetails({ - chainSelector: 9043146809313071210, - routerAddress: address(0x183f6069A0D5c2DEC1Dd1eCF3B1581e12dEb4Efe), - linkAddress: address(0x7311DED199CC28D80E58e81e8589aa160199FCD2), - wrappedNativeAddress: address(0xda5dDd7270381A7C2717aD10D1c0ecB19e3CDFb2), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x91ca2Aa7429e5F702f1F750b317AB604d5a6a16e), - registryModuleOwnerCustomAddress: address(0x04c5046A1f4E3fFf094c26dFCAA75eF293932f18), - tokenAdminRegistryAddress: address(0xCd51e57cD26b9B5eecbfe3d96DAabF3d12A663DA) - }); - - // Corn Testnet - s_networkDetails[21000001] = NetworkDetails({ - chainSelector: 1467427327723633929, - routerAddress: address(0x9981250f56d4d0Fa9736343659B4890ebbb94110), - linkAddress: address(0x996EfAb6011896Be832969D91E9bc1b3983cfdA1), - wrappedNativeAddress: address(0xda5dDd7270381A7C2717aD10D1c0ecB19e3CDFb2), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0x3C49708F8F3F7da6D0846d63Fa4E49Ab52ba9539), - registryModuleOwnerCustomAddress: address(0x9377075Bf25BaCB38dbe1c29DeB143aEeE0cb51F), - tokenAdminRegistryAddress: address(0xf0dF3Bb68A4392FF686c92486ce80E2CF4f0f326) - }); - - // Blast Sepolia - s_networkDetails[168587773] = NetworkDetails({ - chainSelector: 2027362563942762617, - routerAddress: address(0xfb2f2A207dC428da81fbAFfDDe121761f8Be1194), - linkAddress: address(0x02c359ebf98fc8BF793F970F9B8302bb373BdF32), - wrappedNativeAddress: address(0x4200000000000000000000000000000000000023), - ccipBnMAddress: address(0x8D122C3e8ce9C8B62b87d3551bDfD8C259Bb0771), - ccipLnMAddress: address(0x35347A2fC1f2a4c5Eae03339040d0b83b09e6FDA), - rmnProxyAddress: address(0x1cb6afB6F411f0469c3C0d5D46f6e8f7fd3eADe0), - registryModuleOwnerCustomAddress: address(0x912F59E92467C54BBab49ED3a5d431504aFBa30c), - tokenAdminRegistryAddress: address(0x98f1703B9C02f9Ab8bA4cc209Ee8D7B188Bb43a8) - }); - + if (chainId == 12227332) { + return NetworkDetails({ + chainSelector: 2217764097022649312, + routerAddress: address(0x609747816B6C237d5C4960065BC11d2F0DE752A6), + linkAddress: address(0x7F85bAC57B5D4b81F866F495c30AB8C8c453f6FD), + wrappedNativeAddress: address(0x1CE16390FD09040486221e912B87551E4e44Ab17), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0xc707eecF5CD423BbeaAc55fb1D11a7FB74bf4a4b), + registryModuleOwnerCustomAddress: address(0xd54205E00835B63Db005ADEF8d99E4984601ACAf), + tokenAdminRegistryAddress: address(0x9F7F6002b5f6F4d5a53BFDf380435fa18Ae2Dc13) + }); + } // Zora Sepolia - s_networkDetails[999999999] = NetworkDetails({ - chainSelector: 16244020411108056671, - routerAddress: address(0xC5c058814cb85bF52c83264e09da90CB4c932cb7), - linkAddress: address(0xBEDDEB2DF8904cdBCFB6Bf29b91d122D5Ae4eb7e), - wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), - ccipBnMAddress: address(0), - ccipLnMAddress: address(0), - rmnProxyAddress: address(0xf3bc6E7D8A43228B49e976C5f9eDFF5fdFDDaC24), - registryModuleOwnerCustomAddress: address(0x09ED6dC4d7cF091A1f9579FACA0d3f485A1c367B), - tokenAdminRegistryAddress: address(0xa024d8e48513D1105E0c50d4494DfD827200364e) - }); - } - - /** - * @notice Retrieves network details for a given chain ID. - * - * @param chainId - The ID of the chain to get the details for. - * @return networkDetails - The network details for the specified chain ID. - */ - function getNetworkDetails(uint256 chainId) external view returns (NetworkDetails memory networkDetails) { - networkDetails = s_networkDetails[chainId]; - } - - /** - * @notice Sets the network details for a given chain ID. - * - * @param chainId - The ID of the chain to set the details for. - * @param networkDetails - The network details to set for the specified chain ID. - */ - function setNetworkDetails(uint256 chainId, NetworkDetails memory networkDetails) external { - s_networkDetails[chainId] = networkDetails; + if (chainId == 999999999) { + return NetworkDetails({ + chainSelector: 16244020411108056671, + routerAddress: address(0xC5c058814cb85bF52c83264e09da90CB4c932cb7), + linkAddress: address(0xBEDDEB2DF8904cdBCFB6Bf29b91d122D5Ae4eb7e), + wrappedNativeAddress: address(0x4200000000000000000000000000000000000006), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0xf3bc6E7D8A43228B49e976C5f9eDFF5fdFDDaC24), + registryModuleOwnerCustomAddress: address(0x09ED6dC4d7cF091A1f9579FACA0d3f485A1c367B), + tokenAdminRegistryAddress: address(0xa024d8e48513D1105E0c50d4494DfD827200364e) + }); + } + NetworkDetails memory unknown; + return unknown; } + // } diff --git a/src/ccip/adapters/CCIPForkAdapterPreV1dot6.sol b/src/ccip/adapters/CCIPForkAdapterPreV1dot6.sol new file mode 100644 index 0000000..e93c987 --- /dev/null +++ b/src/ccip/adapters/CCIPForkAdapterPreV1dot6.sol @@ -0,0 +1,44 @@ +// SPDX-License-Identifier: BUSL-1.1 +pragma solidity ^0.8.19; + +import {CCIPForkAdapterTypes} from "./CCIPForkAdapterTypes.sol"; + +interface IOffRampExecutePreV1dot6 { + function executeSingleMessage( + CCIPForkAdapterTypes.PreV1dot6Message memory message, + bytes[] memory offchainTokenData, + uint32[] memory tokenGasOverrides + ) external; +} + +library CCIPForkAdapterPreV1dot6 { + event CCIPSendRequested(CCIPForkAdapterTypes.PreV1dot6Message message); + + function eventSelector() internal pure returns (bytes32) { + return CCIPSendRequested.selector; + } + + function decodeMessage(bytes memory eventData) + internal + pure + returns (CCIPForkAdapterTypes.PreV1dot6Message memory message) + { + return abi.decode(eventData, (CCIPForkAdapterTypes.PreV1dot6Message)); + } + + function execute(address offRamp, CCIPForkAdapterTypes.PreV1dot6Message memory message) + internal + returns (bool success, bytes memory returnData) + { + uint256 numberOfTokens = message.tokenAmounts.length; + bytes[] memory offchainTokenData = new bytes[](numberOfTokens); + // Zero overrides: EVM2EVMOffRamp 1.5 only replaces a token's `destGasAmount` when its override is non-zero, so + // the release/mint keeps the gas the source OnRamp stamped (the message gas limit is not a token pool budget). + uint32[] memory tokenGasOverrides = new uint32[](numberOfTokens); + + bytes memory callData = abi.encodeWithSelector( + IOffRampExecutePreV1dot6.executeSingleMessage.selector, message, offchainTokenData, tokenGasOverrides + ); + (success, returnData) = offRamp.call(callData); + } +} diff --git a/src/ccip/adapters/CCIPForkAdapterTypes.sol b/src/ccip/adapters/CCIPForkAdapterTypes.sol new file mode 100644 index 0000000..a92466e --- /dev/null +++ b/src/ccip/adapters/CCIPForkAdapterTypes.sol @@ -0,0 +1,80 @@ +// SPDX-License-Identifier: BUSL-1.1 +pragma solidity ^0.8.19; + +import {Client} from "@chainlink/contracts-ccip/contracts/libraries/Client.sol"; + +library CCIPForkAdapterTypes { + struct RouterOffRamp { + uint64 sourceChainSelector; + address offRamp; + } + + struct PreV1dot6Message { + uint64 sourceChainSelector; + address sender; + address receiver; + uint64 sequenceNumber; + uint256 gasLimit; + bool strict; + uint64 nonce; + address feeToken; + uint256 feeTokenAmount; + bytes data; + Client.EVMTokenAmount[] tokenAmounts; + bytes[] sourceTokenData; + bytes32 messageId; + } + + struct V1dot6RampMessageHeader { + bytes32 messageId; + uint64 sourceChainSelector; + uint64 destChainSelector; + uint64 sequenceNumber; + uint64 nonce; + } + + struct V1dot6EVM2AnyTokenTransfer { + address sourcePoolAddress; + bytes destTokenAddress; + bytes extraData; + uint256 amount; + bytes destExecData; + } + + struct V1dot6Any2EVMTokenTransfer { + bytes sourcePoolAddress; + address destTokenAddress; + uint32 destGasAmount; + bytes extraData; + uint256 amount; + } + + struct V1dot6EVM2AnyRampMessage { + V1dot6RampMessageHeader header; + address sender; + bytes data; + bytes receiver; + bytes extraArgs; + address feeToken; + uint256 feeTokenAmount; + uint256 feeValueJuels; + V1dot6EVM2AnyTokenTransfer[] tokenAmounts; + } + + struct V1dot6Any2EVMRampMessage { + V1dot6RampMessageHeader header; + bytes sender; + bytes data; + address receiver; + uint256 gasLimit; + V1dot6Any2EVMTokenTransfer[] tokenAmounts; + } + + struct V2Receipt { + address issuer; + uint32 destGasLimit; + uint32 destBytesOverhead; + uint256 feeTokenAmount; + bytes extraArgs; + } +} diff --git a/src/ccip/adapters/CCIPForkAdapterV1dot6.sol b/src/ccip/adapters/CCIPForkAdapterV1dot6.sol new file mode 100644 index 0000000..9a7599b --- /dev/null +++ b/src/ccip/adapters/CCIPForkAdapterV1dot6.sol @@ -0,0 +1,125 @@ +// SPDX-License-Identifier: BUSL-1.1 +pragma solidity ^0.8.19; + +import {Client} from "@chainlink/contracts-ccip/contracts/libraries/Client.sol"; +import {CCIPForkAdapterTypes} from "./CCIPForkAdapterTypes.sol"; + +interface IOffRampExecuteV1dot6 { + function executeSingleMessage( + CCIPForkAdapterTypes.V1dot6Any2EVMRampMessage memory message, + bytes[] calldata offchainTokenData, + uint32[] calldata tokenGasOverrides + ) external; +} + +library CCIPForkAdapterV1dot6 { + error InvalidExtraArgsTag(bytes4 extraArgsTag); + error InvalidAddressEncoding(bytes encodedAddress); + + uint32 internal constant DEFAULT_GAS_LIMIT = 200_000; + + event CCIPMessageSent( + uint64 indexed destChainSelector, + uint64 indexed sequenceNumber, + CCIPForkAdapterTypes.V1dot6EVM2AnyRampMessage message + ); + + function eventSelector() internal pure returns (bytes32) { + return CCIPMessageSent.selector; + } + + function decodeMessage(bytes memory eventData) + internal + pure + returns (CCIPForkAdapterTypes.V1dot6EVM2AnyRampMessage memory message) + { + return abi.decode(eventData, (CCIPForkAdapterTypes.V1dot6EVM2AnyRampMessage)); + } + + function execute(CCIPForkAdapterTypes.V1dot6EVM2AnyRampMessage memory message, address offRamp) + internal + returns (bool success, bytes memory returnData) + { + uint256 gasLimit = _decodeGasLimit(message.extraArgs); + CCIPForkAdapterTypes.V1dot6Any2EVMRampMessage memory any2EVMMessage = _toAny2EVMMessage(message, gasLimit); + + uint256 numberOfTokens = message.tokenAmounts.length; + bytes[] memory offchainTokenData = new bytes[](numberOfTokens); + // Zero overrides: OffRamp 1.6 only replaces a token's `destGasAmount` when its override is non-zero, so the + // release/mint keeps the gas the source OnRamp stamped (the message gas limit is not a token pool budget). + uint32[] memory tokenGasOverrides = new uint32[](numberOfTokens); + + bytes memory callData = abi.encodeWithSelector( + IOffRampExecuteV1dot6.executeSingleMessage.selector, any2EVMMessage, offchainTokenData, tokenGasOverrides + ); + (success, returnData) = offRamp.call(callData); + } + + function _toAny2EVMMessage(CCIPForkAdapterTypes.V1dot6EVM2AnyRampMessage memory message, uint256 gasLimit) + internal + pure + returns (CCIPForkAdapterTypes.V1dot6Any2EVMRampMessage memory any2EVMMessage) + { + uint256 numberOfTokens = message.tokenAmounts.length; + CCIPForkAdapterTypes.V1dot6Any2EVMTokenTransfer[] memory tokenAmounts = + new CCIPForkAdapterTypes.V1dot6Any2EVMTokenTransfer[](numberOfTokens); + + for (uint256 i = 0; i < numberOfTokens; ++i) { + tokenAmounts[i] = CCIPForkAdapterTypes.V1dot6Any2EVMTokenTransfer({ + sourcePoolAddress: abi.encode(message.tokenAmounts[i].sourcePoolAddress), + destTokenAddress: _decodeEVMAddress(message.tokenAmounts[i].destTokenAddress), + destGasAmount: abi.decode(message.tokenAmounts[i].destExecData, (uint32)), + extraData: message.tokenAmounts[i].extraData, + amount: message.tokenAmounts[i].amount + }); + } + + any2EVMMessage = CCIPForkAdapterTypes.V1dot6Any2EVMRampMessage({ + header: message.header, + sender: abi.encode(message.sender), + data: message.data, + receiver: _decodeEVMAddress(message.receiver), + gasLimit: gasLimit, + tokenAmounts: tokenAmounts + }); + } + + function _decodeGasLimit(bytes memory extraArgs) internal pure returns (uint256 gasLimit) { + if (extraArgs.length == 0) { + return DEFAULT_GAS_LIMIT; + } + + // disable-next-line(unsafe-typecast) + bytes4 extraArgsTag = bytes4(extraArgs); + bytes memory argsData = new bytes(extraArgs.length - 4); + for (uint256 i = 4; i < extraArgs.length; ++i) { + argsData[i - 4] = extraArgs[i]; + } + + if (extraArgsTag == Client.GENERIC_EXTRA_ARGS_V2_TAG) { + Client.GenericExtraArgsV2 memory decodedArgs = abi.decode(argsData, (Client.GenericExtraArgsV2)); + return decodedArgs.gasLimit; + } + + if (extraArgsTag == Client.EVM_EXTRA_ARGS_V1_TAG) { + return abi.decode(argsData, (uint256)); + } + + revert InvalidExtraArgsTag(extraArgsTag); + } + + function _decodeEVMAddress(bytes memory encodedAddress) internal pure returns (address decodedAddress) { + if (encodedAddress.length == 32) { + return abi.decode(encodedAddress, (address)); + } + + if (encodedAddress.length == 20) { + assembly { + decodedAddress := shr(96, mload(add(encodedAddress, 0x20))) + } + return decodedAddress; + } + + revert InvalidAddressEncoding(encodedAddress); + } +} diff --git a/src/ccip/adapters/CCIPForkAdapterV2.sol b/src/ccip/adapters/CCIPForkAdapterV2.sol new file mode 100644 index 0000000..862fa34 --- /dev/null +++ b/src/ccip/adapters/CCIPForkAdapterV2.sol @@ -0,0 +1,216 @@ +// SPDX-License-Identifier: BUSL-1.1 +pragma solidity ^0.8.19; + +import {MessageV1Codec} from "@chainlink/contracts-ccip/contracts/libraries/MessageV1Codec.sol"; +import {CCIPForkAdapterTypes} from "./CCIPForkAdapterTypes.sol"; + +interface IMessageV1Decoder { + function decodeMessageV1(bytes calldata encodedMessage) + external + view + returns (MessageV1Codec.MessageV1 memory message); +} + +interface IOffRampExecuteV2 { + function getCCVsForMessage(bytes calldata encodedMessage) + external + view + returns (address[] memory requiredCCVs, address[] memory optionalCCVs, uint8 threshold); + + function executeSingleMessage( + MessageV1Codec.MessageV1 calldata message, + bytes32 messageId, + address[] calldata ccvs, + bytes[] calldata verifierResults, + uint32 gasLimitOverride + ) external; + + /// @notice Returns the `Internal.MessageExecutionState` of `messageId` (`keccak256(encodedMessage)`). + function getExecutionState(bytes32 messageId) external view returns (uint8); + + /// @notice Permissionless execution entrypoint taking the opaque encoded message emitted by the + /// source OnRamp, so routing does not depend on a locally decoded `MessageV1`. + function execute( + bytes calldata encodedMessage, + address[] calldata ccvs, + bytes[] calldata verifierResults, + uint32 gasLimitOverride + ) external; +} + +library CCIPForkAdapterV2 { + error MissingMessageIdTopic(); + error InvalidAddressEncoding(bytes encodedAddress); + error MissingVerifierBlobForCCV(address ccv); + error InvalidVerifierReceiptCount(uint256 receiptsLength, uint256 verifierBlobLength); + + struct DecodedMessage { + bytes32 messageId; + bytes encodedMessage; + CCIPForkAdapterTypes.V2Receipt[] receipts; + bytes[] verifierBlobs; + MessageV1Codec.MessageV1 message; + } + + event CCIPMessageSent( + uint64 indexed destChainSelector, + address indexed sender, + bytes32 indexed messageId, + address feeToken, + uint256 tokenAmountBeforeTokenPoolFees, + bytes encodedMessage, + CCIPForkAdapterTypes.V2Receipt[] receipts, + bytes[] verifierBlobs + ); + + function eventSelector() internal pure returns (bytes32) { + return CCIPMessageSent.selector; + } + + function decodeMessage(bytes32[] memory topics, bytes memory eventData, IMessageV1Decoder decoder) + internal + view + returns (DecodedMessage memory decodedMessage) + { + if (topics.length < 4) { + revert MissingMessageIdTopic(); + } + + decodedMessage.messageId = topics[3]; + + (,, decodedMessage.encodedMessage, decodedMessage.receipts, decodedMessage.verifierBlobs) = + abi.decode(eventData, (address, uint256, bytes, CCIPForkAdapterTypes.V2Receipt[], bytes[])); + decodedMessage.message = decoder.decodeMessageV1(decodedMessage.encodedMessage); + } + + function extractOffRampAddress(DecodedMessage memory decodedMessage) + internal + pure + returns (address offRampAddress) + { + return _decodeEVMAddress(decodedMessage.message.offRampAddress); + } + + function deriveVerificationInputs(address offRamp, DecodedMessage memory decodedMessage) + internal + view + returns (address[] memory ccvs, bytes[] memory verifierResults) + { + (address[] memory requiredCCVs, address[] memory optionalCCVs, uint8 threshold) = + IOffRampExecuteV2(offRamp).getCCVsForMessage(decodedMessage.encodedMessage); + + ccvs = selectCCVs(requiredCCVs, optionalCCVs, threshold); + verifierResults = _resolveVerifierResults(decodedMessage, ccvs.length); + + for (uint256 i = 0; i < ccvs.length; ++i) { + verifierResults[i] = _findVerifierResultForCCV(decodedMessage, ccvs[i]); + } + } + + /// @notice Selects the CCVs to execute a CCIP 2.0 message with, mirroring OffRamp 2.0 `_ensureCCVQuorumIsReached`: + /// every required CCV, plus `threshold` of the optional CCVs. The OffRamp counts each optional entry that is + /// present in `ccvs`, so optional CCVs that are also required count first, and only the missing ones are added + /// (in order). Duplicates are removed. + function selectCCVs(address[] memory requiredCCVs, address[] memory optionalCCVs, uint8 threshold) + internal + pure + returns (address[] memory ccvs) + { + ccvs = new address[](requiredCCVs.length + optionalCCVs.length); + uint256 count; + for (uint256 i = 0; i < requiredCCVs.length; ++i) { + if (!_contains(ccvs, count, requiredCCVs[i])) { + ccvs[count++] = requiredCCVs[i]; + } + } + + uint256 requiredCount = count; + uint256 needed = threshold; + bool[] memory counted = new bool[](optionalCCVs.length); + for (uint256 i = 0; i < optionalCCVs.length && needed > 0; ++i) { + if (_contains(ccvs, requiredCount, optionalCCVs[i])) { + counted[i] = true; + --needed; + } + } + for (uint256 i = 0; i < optionalCCVs.length && needed > 0; ++i) { + if (counted[i]) { + continue; + } + if (!_contains(ccvs, count, optionalCCVs[i])) { + ccvs[count++] = optionalCCVs[i]; + } + --needed; + } + + // Shrink to the number of selected CCVs. + assembly ("memory-safe") { + mstore(ccvs, count) + } + } + + function execute( + address offRamp, + MessageV1Codec.MessageV1 memory message, + bytes32 messageId, + address[] memory ccvs, + bytes[] memory verifierResults + ) internal returns (bool success, bytes memory returnData) { + bytes memory callData = abi.encodeWithSelector( + IOffRampExecuteV2.executeSingleMessage.selector, message, messageId, ccvs, verifierResults, uint32(0) + ); + (success, returnData) = offRamp.call(callData); + } + + function _decodeEVMAddress(bytes memory encodedAddress) private pure returns (address decodedAddress) { + if (encodedAddress.length == 32) { + return abi.decode(encodedAddress, (address)); + } + + if (encodedAddress.length == 20) { + assembly { + decodedAddress := shr(96, mload(add(encodedAddress, 0x20))) + } + return decodedAddress; + } + + revert InvalidAddressEncoding(encodedAddress); + } + + function _contains(address[] memory list, uint256 length, address value) private pure returns (bool) { + for (uint256 i = 0; i < length; ++i) { + if (list[i] == value) { + return true; + } + } + return false; + } + + function _resolveVerifierResults(DecodedMessage memory decodedMessage, uint256 targetLength) + private + pure + returns (bytes[] memory verifierResults) + { + uint256 verifierBlobLength = decodedMessage.verifierBlobs.length; + if (decodedMessage.receipts.length < verifierBlobLength) { + revert InvalidVerifierReceiptCount(decodedMessage.receipts.length, verifierBlobLength); + } + + verifierResults = new bytes[](targetLength); + } + + function _findVerifierResultForCCV(DecodedMessage memory decodedMessage, address ccv) + private + pure + returns (bytes memory verifierResult) + { + uint256 verifierBlobLength = decodedMessage.verifierBlobs.length; + for (uint256 i = 0; i < verifierBlobLength; ++i) { + if (decodedMessage.receipts[i].issuer == ccv) { + return decodedMessage.verifierBlobs[i]; + } + } + + revert MissingVerifierBlobForCCV(ccv); + } +} diff --git a/src/ccip/adapters/MessageV1CodecDecoder.sol b/src/ccip/adapters/MessageV1CodecDecoder.sol new file mode 100644 index 0000000..30706a2 --- /dev/null +++ b/src/ccip/adapters/MessageV1CodecDecoder.sol @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: BUSL-1.1 +pragma solidity ^0.8.19; + +import {MessageV1Codec} from "@chainlink/contracts-ccip/contracts/libraries/MessageV1Codec.sol"; + +contract MessageV1CodecDecoder { + function decodeMessageV1(bytes calldata encodedMessage) + external + pure + returns (MessageV1Codec.MessageV1 memory message) + { + return MessageV1Codec._decodeMessageV1(encodedMessage); + } +} diff --git a/src/data-streams/DataStreamsLocalSimulator.sol b/src/data-streams/DataStreamsLocalSimulator.sol index 0aa0beb..cbd827b 100644 --- a/src/data-streams/DataStreamsLocalSimulator.sol +++ b/src/data-streams/DataStreamsLocalSimulator.sol @@ -26,7 +26,7 @@ contract DataStreamsLocalSimulator { constructor() { // Default to on-chain billing for backward compatibility feeManagerEnabled = true; - + i_wrappedNative = new WETH9(); i_linkToken = new LinkToken(); @@ -121,9 +121,14 @@ contract DataStreamsLocalSimulator { { // Return the current fee manager from verifier proxy (reflects current billing state) MockFeeManager currentFeeManager = MockFeeManager(address(s_mockVerifierProxy.s_feeManager())); - - return - (i_wrappedNative, i_linkToken, s_mockVerifier, s_mockVerifierProxy, currentFeeManager, - feeManagerEnabled ? s_mockRewardManager : MockRewardManager(address(0))); + + return ( + i_wrappedNative, + i_linkToken, + s_mockVerifier, + s_mockVerifierProxy, + currentFeeManager, + feeManagerEnabled ? s_mockRewardManager : MockRewardManager(address(0)) + ); } } diff --git a/src/data-streams/DataStreamsLocalSimulatorFork.sol b/src/data-streams/DataStreamsLocalSimulatorFork.sol index 24ff2e5..5d5f3b3 100644 --- a/src/data-streams/DataStreamsLocalSimulatorFork.sol +++ b/src/data-streams/DataStreamsLocalSimulatorFork.sol @@ -1,9 +1,9 @@ // SPDX-License-Identifier: MIT pragma solidity ^0.8.19; -import {Test, Vm} from "forge-std/Test.sol"; +import {Test} from "forge-std/Test.sol"; import {Register} from "./Register.sol"; -import {IERC20} from "../vendor/openzeppelin-solidity/v4.8.3/contracts/interfaces/IERC20.sol"; +import {IERC20} from "@openzeppelin/contracts@4.8.3/interfaces/IERC20.sol"; contract DataStreamsLocalSimulatorFork is Test { /// @notice The immutable register instance diff --git a/src/data-streams/MockFeeManager.sol b/src/data-streams/MockFeeManager.sol index b37b339..5839207 100644 --- a/src/data-streams/MockFeeManager.sol +++ b/src/data-streams/MockFeeManager.sol @@ -2,10 +2,10 @@ pragma solidity ^0.8.19; import {OwnerIsCreator} from "@chainlink/contracts/src/v0.8/shared/access/OwnerIsCreator.sol"; -import {IERC20} from "../vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/IERC20.sol"; -import {SafeERC20} from "../vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/utils/SafeERC20.sol"; +import {IERC20} from "@openzeppelin/contracts@4.8.3/token/ERC20/IERC20.sol"; +import {SafeERC20} from "@openzeppelin/contracts@4.8.3/token/ERC20/utils/SafeERC20.sol"; import {IWERC20} from "@chainlink/contracts/src/v0.8/shared/interfaces/IWERC20.sol"; -import {Math} from "../vendor/openzeppelin-solidity/v4.8.3/contracts/utils/math/Math.sol"; +import {Math} from "@openzeppelin/contracts@4.8.3/utils/math/Math.sol"; // import {IRewardManager} from "@chainlink/contracts/src/v0.8/llo-feeds/interfaces/IRewardManager.sol"; // import {IVerifierFeeManager} from "@chainlink/contracts/src/v0.8/llo-feeds/interfaces/IVerifierFeeManager.sol"; @@ -128,8 +128,10 @@ contract MockFeeManager is IVerifierFeeManager, OwnerIsCreator { (, bytes memory report) = abi.decode(payload, (bytes32[3], bytes)); - (Common.Asset memory fee, /*Common.Asset memory reward*/, /*uint256 appliedDiscount*/ ) = - getFeeAndReward(subscriber, report, quote); + ( + Common.Asset memory fee, + /*Common.Asset memory reward*/, /*uint256 appliedDiscount*/ + ) = getFeeAndReward(subscriber, report, quote); if (fee.assetAddress == i_linkAddress) { IRewardManager.FeePayment[] memory payments = new IRewardManager.FeePayment[](1); diff --git a/src/data-streams/MockRewardManager.sol b/src/data-streams/MockRewardManager.sol index 5ec3e84..f76279d 100644 --- a/src/data-streams/MockRewardManager.sol +++ b/src/data-streams/MockRewardManager.sol @@ -1,9 +1,8 @@ // SPDX-License-Identifier: MIT pragma solidity ^0.8.19; -import {OwnerIsCreator} from "@chainlink/contracts/src/v0.8/shared/access/OwnerIsCreator.sol"; -import {IERC20} from "../vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/IERC20.sol"; -import {SafeERC20} from "../vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/utils/SafeERC20.sol"; +import {IERC20} from "@openzeppelin/contracts@4.8.3/token/ERC20/IERC20.sol"; +import {SafeERC20} from "@openzeppelin/contracts@4.8.3/token/ERC20/utils/SafeERC20.sol"; // import {IRewardManager} from "@chainlink/contracts/src/v0.8/llo-feeds/interfaces/IRewardManager.sol"; import {IRewardManager} from "./interfaces/IRewardManager.sol"; @@ -42,7 +41,13 @@ contract MockRewardManager is IRewardManager { emit FeePaid(payments, payer); } - function claimRewards(bytes32[] memory /*poolIds*/ ) external pure override { + function claimRewards( + bytes32[] memory /*poolIds*/ + ) + external + pure + override + { revert("Not implemented"); } diff --git a/src/data-streams/MockVerifier.sol b/src/data-streams/MockVerifier.sol index 25d265b..4d57755 100644 --- a/src/data-streams/MockVerifier.sol +++ b/src/data-streams/MockVerifier.sol @@ -1,7 +1,7 @@ // SPDX-License-Identifier: MIT pragma solidity ^0.8.19; -import {IERC165} from "../vendor/openzeppelin-solidity/v4.8.3/contracts/interfaces/IERC165.sol"; +import {IERC165} from "@openzeppelin/contracts@4.8.3/interfaces/IERC165.sol"; contract MockVerifier is IERC165 { error AccessForbidden(); diff --git a/src/data-streams/MockVerifierProxy.sol b/src/data-streams/MockVerifierProxy.sol index dbaf7aa..0869d31 100644 --- a/src/data-streams/MockVerifierProxy.sol +++ b/src/data-streams/MockVerifierProxy.sol @@ -2,7 +2,7 @@ pragma solidity ^0.8.19; import {OwnerIsCreator} from "@chainlink/contracts/src/v0.8/shared/access/OwnerIsCreator.sol"; -import {IERC165} from "../vendor/openzeppelin-solidity/v4.8.3/contracts/interfaces/IERC165.sol"; +import {IERC165} from "@openzeppelin/contracts@4.8.3/interfaces/IERC165.sol"; // import {IVerifier} from "@chainlink/contracts/src/v0.8/llo-feeds/interfaces/IVerifier.sol"; // import {IVerifierFeeManager} from "@chainlink/contracts/src/v0.8/llo-feeds/interfaces/IVerifierFeeManager.sol"; @@ -74,7 +74,13 @@ contract MockVerifierProxy is OwnerIsCreator { emit VerifierInitialized(verifierAddress); } - function getVerifier(bytes32 /*configDigest*/ ) external view returns (address) { + function getVerifier( + bytes32 /*configDigest*/ + ) + external + view + returns (address) + { return s_verifier; } @@ -94,20 +100,16 @@ contract MockVerifierProxy is OwnerIsCreator { // Case 1: On-chain billing is configured but consumer is using off-chain mechanism if (hasFeeManager && !hasParameterPayload) { - revert FeeManagerRequired( - "On-chain billing is active but your contract is using off-chain billing mechanism. " + revert FeeManagerRequired("On-chain billing is active but your contract is using off-chain billing mechanism. " "Either call simulator.enableOffChainBilling() or provide fee token address in parameterPayload. " - "See: https://docs.chain.link/data-streams/tutorials/evm-onchain-report-verification" - ); + "See: https://docs.chain.link/data-streams/tutorials/evm-onchain-report-verification"); } // Case 2: Off-chain billing is configured but consumer is using on-chain mechanism if (!hasFeeManager && hasParameterPayload) { - revert FeeManagerNotExpected( - "Off-chain billing is active but your contract is providing parameterPayload for on-chain billing. " + revert FeeManagerNotExpected("Off-chain billing is active but your contract is providing parameterPayload for on-chain billing. " "Either call simulator.enableOnChainBilling() or pass empty bytes as parameterPayload. " - "Off-chain billing chains don't require fee handling in smart contracts." - ); + "Off-chain billing chains don't require fee handling in smart contracts."); } // Case 3: Both configurations match - validation passes diff --git a/src/data-streams/interfaces/IRewardManager.sol b/src/data-streams/interfaces/IRewardManager.sol index 5053b8c..41cffc7 100644 --- a/src/data-streams/interfaces/IRewardManager.sol +++ b/src/data-streams/interfaces/IRewardManager.sol @@ -1,7 +1,7 @@ // SPDX-License-Identifier: MIT pragma solidity ^0.8.19; -import {IERC165} from "../../vendor/openzeppelin-solidity/v4.8.3/contracts/interfaces/IERC165.sol"; +import {IERC165} from "@openzeppelin/contracts@4.8.3/interfaces/IERC165.sol"; interface IRewardManager is IERC165 { function onFeePaid(FeePayment[] calldata payments, address payee) external; diff --git a/src/data-streams/interfaces/IVerifierFeeManager.sol b/src/data-streams/interfaces/IVerifierFeeManager.sol index b9c4df5..3306eb5 100644 --- a/src/data-streams/interfaces/IVerifierFeeManager.sol +++ b/src/data-streams/interfaces/IVerifierFeeManager.sol @@ -1,7 +1,7 @@ // SPDX-License-Identifier: MIT pragma solidity ^0.8.19; -import {IERC165} from "../../vendor/openzeppelin-solidity/v4.8.3/contracts/interfaces/IERC165.sol"; +import {IERC165} from "@openzeppelin/contracts@4.8.3/interfaces/IERC165.sol"; interface IVerifierFeeManager is IERC165 { function processFee(bytes calldata payload, bytes calldata parameterPayload, address subscriber) external payable; diff --git a/src/shared/LinkToken.sol b/src/shared/LinkToken.sol index 14f0481..c0cef0a 100644 --- a/src/shared/LinkToken.sol +++ b/src/shared/LinkToken.sol @@ -1,7 +1,7 @@ // SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.19; -import {ERC677} from "../vendor/chainlink/shared/token/ERC677/ERC677.sol"; +import {ERC677} from "@chainlink/contracts/src/v0.8/shared/token/ERC677/ERC677.sol"; /// @title LinkToken /// @notice This contract implements the ChainLink Token (LINK) using the ERC677 standard. diff --git a/src/test/ccip/BasicMessageReceiver.sol b/src/test/ccip/BasicMessageReceiver.sol new file mode 100644 index 0000000..3c77c03 --- /dev/null +++ b/src/test/ccip/BasicMessageReceiver.sol @@ -0,0 +1,32 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.24; + +import {CCIPReceiver} from "@chainlink/contracts-ccip/contracts/applications/CCIPReceiver.sol"; +import {Client} from "@chainlink/contracts-ccip/contracts/libraries/Client.sol"; + +/** + * THIS IS AN EXAMPLE CONTRACT THAT USES HARDCODED VALUES FOR CLARITY. + * THIS IS AN EXAMPLE CONTRACT THAT USES UN-AUDITED CODE. + * DO NOT USE THIS CODE IN PRODUCTION. + */ +contract BasicMessageReceiver is CCIPReceiver { + bytes32 public latestMessageId; + uint64 public latestSourceChainSelector; + address public latestSender; + bytes public latestMessage; + + event MessageReceived( + bytes32 latestMessageId, uint64 latestSourceChainSelector, address latestSender, bytes latestMessage + ); + + constructor(address router) CCIPReceiver(router) {} + + function _ccipReceive(Client.Any2EVMMessage memory message) internal override { + latestMessageId = message.messageId; + latestSourceChainSelector = message.sourceChainSelector; + latestSender = abi.decode(message.sender, (address)); + latestMessage = message.data; + + emit MessageReceived(latestMessageId, latestSourceChainSelector, latestSender, latestMessage); + } +} diff --git a/src/test/ccip/BasicMessageReceiverWithCCVs.sol b/src/test/ccip/BasicMessageReceiverWithCCVs.sol new file mode 100644 index 0000000..41289ba --- /dev/null +++ b/src/test/ccip/BasicMessageReceiverWithCCVs.sol @@ -0,0 +1,124 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.24; + +import {BasicMessageReceiver} from "./BasicMessageReceiver.sol"; + +import {Ownable, Ownable2Step} from "@openzeppelin/contracts@5.3.0/access/Ownable2Step.sol"; + +/** + * THIS IS AN EXAMPLE CONTRACT THAT USES HARDCODED VALUES FOR CLARITY. + * THIS IS AN EXAMPLE CONTRACT THAT USES UN-AUDITED CODE. + * DO NOT USE THIS CODE IN PRODUCTION. + */ +contract BasicMessageReceiverWithCCVs is BasicMessageReceiver, Ownable2Step { + /// @notice CCV configuration for a source chain. + /// @dev For incoming messages, this receiver will require this CCV criteria to be met. + /// Required CCVs must all pass verification. >= optionalThreshold of the optional CCVs must pass verification. + struct CCVConfig { + address[] requiredCCVs; + address[] optionalCCVs; + uint8 optionalThreshold; + } + + /// @notice Arguments required to add a CCV configuration for a source chain. + struct CCVConfigArgs { + address[] requiredCCVs; + address[] optionalCCVs; + uint64 sourceChainSelector; + uint8 optionalThreshold; + } + + error DuplicateCCV(uint64 sourceChainSelector, address ccv); + error InvalidOptionalThreshold(uint64 sourceChainSelector, uint8 optionalThreshold); + error ZeroAddressNotAllowedAsOptional(); + + event CCVConfigSet( + uint64 indexed sourceChainSelector, address[] requiredCCVs, address[] optionalCCVs, uint8 optionalThreshold + ); + event AllowedFinalityConfigSet(uint64 indexed sourceChainSelector, bytes4 allowedFinalityConfig); + + mapping(uint64 sourceChainSelector => CCVConfig ccvConfig) internal s_ccvConfigs; + mapping(uint64 sourceChainSelector => bytes4 allowedFinalityConfig) internal s_allowedFinalityConfigs; + + constructor(address router) BasicMessageReceiver(router) Ownable(msg.sender) {} + + /// @notice Set the accepted finality for a source chain, encoded with `FinalityCodec`. + /// @dev `FinalityCodec.WAIT_FOR_FINALITY_FLAG` (`bytes4(0)`, the default) requires finality for that source chain. + /// A block depth (`FinalityCodec._encodeBlockDepth(n)`) accepts Faster Than Finality messages requesting at least + /// `n` blocks; `WAIT_FOR_SAFE_FLAG` accepts messages waiting for the `safe` tag - WARNING only use Faster Than + /// Finality when you use a trusted sender on the source chain that manages the finality risk when sending messages. + function setAllowedFinalityConfig(uint64 sourceChainSelector, bytes4 allowedFinalityConfig) external onlyOwner { + s_allowedFinalityConfigs[sourceChainSelector] = allowedFinalityConfig; + emit AllowedFinalityConfigSet(sourceChainSelector, allowedFinalityConfig); + } + + /// @dev Override getCCVsAndFinalityConfig + function getCCVsAndFinalityConfig( + uint64 sourceChainSelector, + bytes calldata /*sender*/ + ) + external + view + override + returns ( + address[] memory requiredCCVs, + address[] memory optionalCCVs, + uint8 optionalThreshold, + bytes4 allowedFinalityConfig + ) + { + CCVConfig memory config = s_ccvConfigs[sourceChainSelector]; + return ( + config.requiredCCVs, + config.optionalCCVs, + config.optionalThreshold, + s_allowedFinalityConfigs[sourceChainSelector] + ); + } + + /// @notice Set CCV configurations for source chains. + /// @param ccvConfigsToSet List of CCV configs to set. + function applyCCVConfigUpdates(CCVConfigArgs[] calldata ccvConfigsToSet) external virtual onlyOwner { + for (uint256 i = 0; i < ccvConfigsToSet.length; ++i) { + CCVConfigArgs memory args = ccvConfigsToSet[i]; + // If optionalThreshold > optionalCCVs.length, then it's impossible to satisfy the optional CCV requirement. + // If optionalThreshold == optionalCCVs.length, then optional CCVs are essentially required, they should instead + // be defined as required CCVs. + if (args.optionalCCVs.length > 0) { + if (args.optionalThreshold >= args.optionalCCVs.length) { + revert InvalidOptionalThreshold(args.sourceChainSelector, args.optionalThreshold); + } + } else { + if (args.optionalThreshold > 0) { + revert InvalidOptionalThreshold(args.sourceChainSelector, args.optionalThreshold); + } + } + uint256 requiredCCVLength = args.requiredCCVs.length; + uint256 optionalCCVLength = args.optionalCCVs.length; + uint256 totalCCVLength = requiredCCVLength + optionalCCVLength; + for (uint256 j = 0; j < totalCCVLength; ++j) { + address ccvAddressJ = + j < requiredCCVLength ? args.requiredCCVs[j] : args.optionalCCVs[j - requiredCCVLength]; + // address(0) is a valid required CCV address, but not a valid optional CCV address. + // This is because address(0) signals to always enforce the default CCVs for the lane. + if (j >= requiredCCVLength && ccvAddressJ == address(0)) { + revert ZeroAddressNotAllowedAsOptional(); + } + + for (uint256 k = j + 1; k < totalCCVLength; ++k) { + address ccvAddressK = + k < requiredCCVLength ? args.requiredCCVs[k] : args.optionalCCVs[k - requiredCCVLength]; + if (ccvAddressK == ccvAddressJ) { + revert DuplicateCCV(args.sourceChainSelector, ccvAddressK); + } + } + } + s_ccvConfigs[args.sourceChainSelector] = CCVConfig({ + requiredCCVs: args.requiredCCVs, + optionalCCVs: args.optionalCCVs, + optionalThreshold: args.optionalThreshold + }); + emit CCVConfigSet(args.sourceChainSelector, args.requiredCCVs, args.optionalCCVs, args.optionalThreshold); + } + } +} diff --git a/src/test/ccip/BasicMessageSender.sol b/src/test/ccip/BasicMessageSender.sol new file mode 100644 index 0000000..7cf3c92 --- /dev/null +++ b/src/test/ccip/BasicMessageSender.sol @@ -0,0 +1,74 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.24; + +import {Withdraw, IERC20, SafeERC20} from "./utils/Withdraw.sol"; + +import {IRouterClient} from "@chainlink/contracts-ccip/contracts/interfaces/IRouterClient.sol"; +import {Client} from "@chainlink/contracts-ccip/contracts/libraries/Client.sol"; + +/** + * THIS IS AN EXAMPLE CONTRACT THAT USES HARDCODED VALUES FOR CLARITY. + * THIS IS AN EXAMPLE CONTRACT THAT USES UN-AUDITED CODE. + * DO NOT USE THIS CODE IN PRODUCTION. + */ +contract BasicMessageSender is Withdraw { + using SafeERC20 for IERC20; + + address immutable i_router; + address immutable i_link; + + event MessageSent(bytes32 messageId); + + constructor(address router, address link) { + i_router = router; + i_link = link; + } + + receive() external payable {} + + /** + * @notice Sends a CCIP message. + * + * @param destinationChainSelector CCIP Chain selector of the destination chain - find it at https://docs.chain.link/ccip/directory/ + * @param receiver Receiver's address on the destination chain. + * @param dataToSend ABI-encoded payload to include in the CCIP message. If you don't want to send any payload, pass 0x => `bytes memory dataToSend = "";` + * @param tokensToSend Token amounts to send with the message. If you don't want to send any tokens, pass empty array => `Client.EVMTokenAmount[] memory tokensToSend = new Client.EVMTokenAmount[](0);` + * @param extraArgs Encoded CCIP extra args (use EncodeExtraArgsOffchain helper if needed). + * @param feeTokenAddress Token address used to pay CCIP fees. If you want to pay in native gas token pass `address(0)`, otherwise pass LINK token address. + * + * @return messageId Unique CCIP message ID returned by the router. Use it to monitor your message in real time at https://ccip.chain.link/ + */ + function send( + uint64 destinationChainSelector, + address receiver, + bytes memory dataToSend, + Client.EVMTokenAmount[] memory tokensToSend, + bytes memory extraArgs, + address feeTokenAddress + ) external returns (bytes32 messageId) { + if (tokensToSend.length > 0) { + // Only one token can be send per message + IERC20(tokensToSend[0].token).safeTransferFrom(msg.sender, address(this), tokensToSend[0].amount); + IERC20(tokensToSend[0].token).approve(i_router, tokensToSend[0].amount); + } + + Client.EVM2AnyMessage memory message = Client.EVM2AnyMessage({ + receiver: abi.encode(receiver), + data: dataToSend, + tokenAmounts: tokensToSend, + extraArgs: extraArgs, + feeToken: feeTokenAddress + }); + + uint256 fee = IRouterClient(i_router).getFee(destinationChainSelector, message); + + if (feeTokenAddress == address(0)) { + messageId = IRouterClient(i_router).ccipSend{value: fee}(destinationChainSelector, message); + } else { + IERC20(i_link).approve(i_router, fee); + messageId = IRouterClient(i_router).ccipSend(destinationChainSelector, message); + } + + emit MessageSent(messageId); + } +} diff --git a/src/test/ccip/BasicTokenSender.sol b/src/test/ccip/BasicTokenSender.sol index 4367d83..95a4e3b 100644 --- a/src/test/ccip/BasicTokenSender.sol +++ b/src/test/ccip/BasicTokenSender.sol @@ -1,8 +1,8 @@ // SPDX-License-Identifier: MIT pragma solidity 0.8.24; -import {IERC20} from "../../vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/IERC20.sol"; -import {SafeERC20} from "../../vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/utils/SafeERC20.sol"; +import {IERC20} from "@openzeppelin/contracts@4.8.3/token/ERC20/IERC20.sol"; +import {SafeERC20} from "@openzeppelin/contracts@4.8.3/token/ERC20/utils/SafeERC20.sol"; import {IRouterClient} from "@chainlink/contracts-ccip/contracts/interfaces/IRouterClient.sol"; import {Client} from "@chainlink/contracts-ccip/contracts/libraries/Client.sol"; @@ -31,9 +31,8 @@ contract BasicTokenSender { uint256 length = tokensToSendDetails.length; for (uint256 i = 0; i < length;) { - IERC20(tokensToSendDetails[i].token).safeTransferFrom( - msg.sender, address(this), tokensToSendDetails[i].amount - ); + IERC20(tokensToSendDetails[i].token) + .safeTransferFrom(msg.sender, address(this), tokensToSendDetails[i].amount); IERC20(tokensToSendDetails[i].token).approve(i_router, tokensToSendDetails[i].amount); unchecked { diff --git a/src/test/ccip/CCIPSender_Unsafe.sol b/src/test/ccip/CCIPSender_Unsafe.sol index 808b516..28f1ed7 100644 --- a/src/test/ccip/CCIPSender_Unsafe.sol +++ b/src/test/ccip/CCIPSender_Unsafe.sol @@ -3,7 +3,7 @@ pragma solidity ^0.8.19; import {Client} from "@chainlink/contracts-ccip/contracts/libraries/Client.sol"; import {IRouterClient} from "@chainlink/contracts-ccip/contracts/interfaces/IRouterClient.sol"; -import {IERC20} from "../../vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/IERC20.sol"; +import {IERC20} from "@openzeppelin/contracts@4.8.3/token/ERC20/IERC20.sol"; contract CCIPSender_Unsafe { address link; diff --git a/src/test/ccip/CCVNoOpVerifier.sol b/src/test/ccip/CCVNoOpVerifier.sol new file mode 100644 index 0000000..ecbc55f --- /dev/null +++ b/src/test/ccip/CCVNoOpVerifier.sol @@ -0,0 +1,127 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.19; + +/// @title ICCVNoOpVerifierFork +/// @notice Minimal mirror of the CCIP 2.0 verifier interfaces (`ICrossChainVerifierV1` and +/// `ICrossChainVerifierResolver`, OnRamp/OffRamp 2.0.0). Types are declared locally, in the +/// same way `CCIPLocalSimulatorFork` declares the pre-1.6 and 1.6 fork surfaces, so the test +/// double stays bound to the on-chain wire format rather than to a pinned dependency version. +interface ICCVNoOpVerifierFork { + /// @notice CCIP 2.0 message token transfer entry (`MessageV1Codec.TokenTransferV1`). + struct TokenTransferV1 { + uint256 amount; + bytes sourcePoolAddress; + bytes sourceTokenAddress; + bytes destTokenAddress; + bytes tokenReceiver; + bytes extraData; + } + + /// @notice CCIP 2.0 chain-agnostic message (`MessageV1Codec.MessageV1`), static fields first. + struct MessageV1 { + uint64 sourceChainSelector; + uint64 destChainSelector; + uint64 messageNumber; + uint32 executionGasLimit; + uint32 ccipReceiveGasLimit; + bytes4 finality; + bytes32 ccvAndExecutorHash; + bytes onRampAddress; + bytes offRampAddress; + bytes sender; + bytes receiver; + bytes destBlob; + TokenTransferV1[] tokenTransfer; + bytes data; + } + + struct EVMTokenAmount { + address token; + uint256 amount; + } + + /// @notice Router client message (`Client.EVM2AnyMessage`). + struct EVM2AnyMessage { + bytes receiver; + bytes data; + EVMTokenAmount[] tokenAmounts; + address feeToken; + bytes extraArgs; + } + + function supportsInterface(bytes4 interfaceId) external view returns (bool); + + function verifyMessage(MessageV1 memory message, bytes32 messageId, bytes memory verifierResults) external; + + function getFee( + uint64 destChainSelector, + EVM2AnyMessage memory message, + bytes memory extraArgs, + bytes4 requestedFinalityConfig + ) external view returns (uint16 feeUSDCents, uint32 gasForVerification, uint32 payloadSizeBytes); + + function forwardToVerifier( + MessageV1 calldata message, + bytes32 messageId, + address feeToken, + uint256 feeTokenAmount, + bytes calldata verifierArgs + ) external returns (bytes memory verifierData); + + function getStorageLocations() external view returns (string[] memory storageLocations); + + function getInboundImplementation(bytes calldata verifierResults) external view returns (address verifierAddress); + + function getOutboundImplementation(uint64 destChainSelector, bytes memory extraArgs) + external + view + returns (address verifierAddress); +} + +/// @title CCVNoOpVerifier +/// @notice No-op CCV used by fork tests of CCIP 2.0 lanes. It accepts any message without performing +/// verification and resolves to itself for both inbound and outbound traffic, so a mocked +/// lane default CCV lets the permissionless execution path run end to end with all other +/// validation (quorum walk, token release/mint, receiver call) untouched. +/// @dev THIS CONTRACT PROVIDES NO VERIFICATION AND MUST ONLY BE USED ON LOCAL FORKS. +contract CCVNoOpVerifier is ICCVNoOpVerifierFork { + bytes4 internal constant IERC165_INTERFACE_ID = 0x01ffc9a7; + + function supportsInterface(bytes4 interfaceId) external pure override returns (bool) { + return interfaceId == type(ICCVNoOpVerifierFork).interfaceId || interfaceId == IERC165_INTERFACE_ID; + } + + function verifyMessage(MessageV1 memory, bytes32, bytes memory) external override {} + + function getFee(uint64, EVM2AnyMessage memory, bytes memory, bytes4) + external + pure + override + returns (uint16 feeUSDCents, uint32 gasForVerification, uint32 payloadSizeBytes) + { + return (0, 0, 0); + } + + function forwardToVerifier(MessageV1 calldata, bytes32, address, uint256, bytes calldata) + external + pure + override + returns (bytes memory verifierData) + { + return ""; + } + + function getStorageLocations() external pure override returns (string[] memory storageLocations) { + storageLocations = new string[](1); + storageLocations[0] = "mock://ccv"; + return storageLocations; + } + + function getInboundImplementation(bytes calldata) external view override returns (address verifierAddress) { + return address(this); + } + + function getOutboundImplementation(uint64, bytes memory) external view override returns (address verifierAddress) { + return address(this); + } +} diff --git a/src/test/ccip/ConfigurableCCVMessageReceiver.sol b/src/test/ccip/ConfigurableCCVMessageReceiver.sol new file mode 100644 index 0000000..3a94407a --- /dev/null +++ b/src/test/ccip/ConfigurableCCVMessageReceiver.sol @@ -0,0 +1,74 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.24; + +import {CCIPReceiver} from "@chainlink/contracts-ccip/contracts/applications/CCIPReceiver.sol"; +import {Client} from "@chainlink/contracts-ccip/contracts/libraries/Client.sol"; + +/** + * THIS IS AN EXAMPLE CONTRACT THAT USES HARDCODED VALUES FOR CLARITY. + * THIS IS AN EXAMPLE CONTRACT THAT USES UN-AUDITED CODE. + * DO NOT USE THIS CODE IN PRODUCTION. + */ +/// @notice Test-only receiver whose `getCCVsAndFinalityConfig` response is fully controllable, including invalid +/// configurations (duplicate CCVs, out-of-range optional thresholds) and arbitrary reverts. This is needed to +/// exercise `CCIPLocalRouter`'s mirroring of `OffRamp._getCCVsFromReceiver`: the validated setters on +/// `BasicMessageReceiverWithCCVs` cannot reach these invalid states, but a hostile or buggy production receiver can +/// return them, and the OffRamp (and therefore the local router) must reject them. +contract ConfigurableCCVMessageReceiver is CCIPReceiver { + bytes32 public latestMessageId; + bytes public latestMessage; + + address[] internal s_requiredCCVs; + address[] internal s_optionalCCVs; + uint8 internal s_optionalThreshold; + bytes4 internal s_allowedFinalityConfig; + + bool internal s_shouldRevert; + bytes internal s_revertData; + + constructor(address router) CCIPReceiver(router) {} + + /// @dev No validation on purpose: used to construct configs a real receiver's own setters would reject. + function setCCVConfig( + address[] memory requiredCCVs, + address[] memory optionalCCVs, + uint8 optionalThreshold, + bytes4 allowedFinalityConfig + ) external { + s_requiredCCVs = requiredCCVs; + s_optionalCCVs = optionalCCVs; + s_optionalThreshold = optionalThreshold; + s_allowedFinalityConfig = allowedFinalityConfig; + } + + function setRevert(bool shouldRevert, bytes memory revertData) external { + s_shouldRevert = shouldRevert; + s_revertData = revertData; + } + + function getCCVsAndFinalityConfig(uint64, bytes calldata) + external + view + override + returns ( + address[] memory requiredCCVs, + address[] memory optionalCCVs, + uint8 optionalThreshold, + bytes4 allowedFinalityConfig + ) + { + if (s_shouldRevert) { + bytes memory data = s_revertData; + // solhint-disable-next-line no-inline-assembly + assembly { + revert(add(data, 32), mload(data)) + } + } + return (s_requiredCCVs, s_optionalCCVs, s_optionalThreshold, s_allowedFinalityConfig); + } + + function _ccipReceive(Client.Any2EVMMessage memory message) internal override { + latestMessageId = message.messageId; + latestMessage = message.data; + } +} diff --git a/src/test/ccip/JsHelperOffRampMocks.sol b/src/test/ccip/JsHelperOffRampMocks.sol new file mode 100644 index 0000000..0b80d6c --- /dev/null +++ b/src/test/ccip/JsHelperOffRampMocks.sol @@ -0,0 +1,367 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.24; + +/** + * THIS IS AN EXAMPLE CONTRACT THAT USES HARDCODED VALUES FOR CLARITY. + * THIS IS AN EXAMPLE CONTRACT THAT USES UN-AUDITED CODE. + * DO NOT USE THIS CODE IN PRODUCTION. + */ +/// @notice Test-only mocks for the JavaScript helper `scripts/CCIPLocalSimulatorFork.js`'s OffRamp lookup and +/// execution paths (log decoding fixtures live in `test/unit/ccip/fixtures/*.abi.json` instead, since they need no +/// on-chain state). These mirror the Solidity-side mocks in `test/unit/ccip/CCIPLocalSimulatorForkRouting.t.sol` / +/// `CCIPLocalSimulatorForkV2Routing.t.sol`, adapted to the exact call shapes the JS helper makes (its ABI fragments +/// are the source of truth for shapes here, since this file exists to test that JS code, not the Solidity mirror). +/// Deployed on a local (non-forked) Hardhat EDR network — never on a real chain. + +/// @notice Minimal CCIP Router mock: a configurable list of (sourceChainSelector, offRamp) pairs. +contract JsMockRouter { + struct Entry { + uint64 sourceChainSelector; + address offRamp; + } + + Entry[] internal s_offRamps; + + function addOffRamp(uint64 sourceChainSelector, address offRamp) external { + s_offRamps.push(Entry({sourceChainSelector: sourceChainSelector, offRamp: offRamp})); + } + + function getOffRamps() external view returns (Entry[] memory) { + return s_offRamps; + } +} + +/// @notice Pre-1.6 `EVM2EVMOffRamp`-shaped mock (1.2.x has no per-token gas override overload; 1.5.x does). +contract JsMockPreV1dot6OffRamp { + struct StaticConfig { + address commitStore; + uint64 chainSelector; + uint64 sourceChainSelector; + address onRamp; + address prevOffRamp; + address rmnProxy; + address tokenAdminRegistry; + } + + struct EVMTokenAmount { + address token; + uint256 amount; + } + + struct EVM2EVMMessage { + uint64 sourceChainSelector; + address sender; + address receiver; + uint64 sequenceNumber; + uint256 gasLimit; + bool strict; + uint64 nonce; + address feeToken; + uint256 feeTokenAmount; + bytes data; + EVMTokenAmount[] tokenAmounts; + bytes[] sourceTokenData; + bytes32 messageId; + } + + string public typeAndVersion; + StaticConfig internal s_staticConfig; + bytes internal s_revertData; + + uint256 public callsWithoutOverridesCount; + uint256 public callsWithOverridesCount; + uint32[] internal s_lastTokenGasOverrides; + + constructor(string memory typeAndVersion_, uint64 chainSelector_, uint64 sourceChainSelector_, address onRamp_) { + typeAndVersion = typeAndVersion_; + s_staticConfig = StaticConfig({ + commitStore: address(0x1), + chainSelector: chainSelector_, + sourceChainSelector: sourceChainSelector_, + onRamp: onRamp_, + prevOffRamp: address(0), + rmnProxy: address(0x2), + tokenAdminRegistry: address(0x3) + }); + } + + function getStaticConfig() external view returns (StaticConfig memory) { + return s_staticConfig; + } + + /// @dev When set, both overloads below revert with this raw data instead of succeeding. + function setRevertData(bytes calldata data) external { + s_revertData = data; + } + + function executeSingleMessage(EVM2EVMMessage memory, bytes[] calldata) external { + if (s_revertData.length > 0) _revertRaw(); + callsWithoutOverridesCount++; + } + + function executeSingleMessage(EVM2EVMMessage memory, bytes[] calldata, uint32[] calldata tokenGasOverrides) + external + { + if (s_revertData.length > 0) _revertRaw(); + callsWithOverridesCount++; + s_lastTokenGasOverrides = tokenGasOverrides; + } + + function lastTokenGasOverrides() external view returns (uint32[] memory) { + return s_lastTokenGasOverrides; + } + + function _revertRaw() internal view { + bytes memory data = s_revertData; + assembly { + revert(add(data, 32), mload(data)) + } + } +} + +/// @notice 1.6-shaped OffRamp mock. +contract JsMockV1dot6OffRamp { + struct SourceChainConfig { + address router; + bool isEnabled; + uint64 minSeqNr; + bool isRMNVerificationDisabled; + bytes onRamp; + } + + struct StaticConfig { + uint64 chainSelector; + uint16 gasForCallExactCheck; + address rmnRemote; + address tokenAdminRegistry; + address nonceManager; + } + + struct RampMessageHeader { + bytes32 messageId; + uint64 sourceChainSelector; + uint64 destChainSelector; + uint64 sequenceNumber; + uint64 nonce; + } + + struct Any2EVMTokenTransfer { + bytes sourcePoolAddress; + address destTokenAddress; + uint32 destGasAmount; + bytes extraData; + uint256 amount; + } + + struct Any2EVMRampMessage { + RampMessageHeader header; + bytes sender; + bytes data; + address receiver; + uint256 gasLimit; + Any2EVMTokenTransfer[] tokenAmounts; + } + + uint64 internal immutable i_sourceChainSelector; + address internal immutable i_onRamp; + bytes internal s_revertData; + + string public typeAndVersion = "OffRamp 1.6.0"; + uint256 public callCount; + uint32[] internal s_lastTokenGasOverrides; + bytes public lastSender; + + constructor(uint64 sourceChainSelector_, address onRamp_, uint64 localChainSelector_) { + i_sourceChainSelector = sourceChainSelector_; + i_onRamp = onRamp_; + s_staticConfig.chainSelector = localChainSelector_; + } + + StaticConfig internal s_staticConfig; + + function getStaticConfig() external view returns (StaticConfig memory) { + return s_staticConfig; + } + + function getSourceChainConfig(uint64 sourceChainSelector) external view returns (SourceChainConfig memory cfg) { + if (sourceChainSelector != i_sourceChainSelector) return cfg; + cfg.router = address(0xBEEF); + cfg.isEnabled = true; + cfg.minSeqNr = 1; + cfg.onRamp = abi.encode(i_onRamp); + } + + function setRevertData(bytes calldata data) external { + s_revertData = data; + } + + function executeSingleMessage( + Any2EVMRampMessage memory message, + bytes[] calldata, + uint32[] calldata tokenGasOverrides + ) external { + if (s_revertData.length > 0) _revertRaw(); + callCount++; + s_lastTokenGasOverrides = tokenGasOverrides; + lastSender = message.sender; + } + + function lastTokenGasOverrides() external view returns (uint32[] memory) { + return s_lastTokenGasOverrides; + } + + function _revertRaw() internal view { + bytes memory data = s_revertData; + assembly { + revert(add(data, 32), mload(data)) + } + } +} + +/// @notice CCIP 2.0-shaped OffRamp mock: configurable CCVs-for-message answer and execution outcome. +contract JsMockV2OffRamp { + struct SourceChainConfig { + address router; + bool isEnabled; + bytes[] onRamps; + address[] defaultCCVs; + address[] laneMandatedCCVs; + } + + event ExecutionStateChanged( + uint64 indexed sourceChainSelector, + uint64 indexed messageNumber, + bytes32 indexed messageId, + uint8 state, + bytes returnData + ); + + string public typeAndVersion = "OffRamp 2.0.0"; + + uint64 internal immutable i_sourceChainSelector; + bytes[] internal s_onRamps; + + address[] internal s_requiredCCVs; + address[] internal s_optionalCCVs; + uint8 internal s_threshold; + bool internal s_getCCVsReverts; + bytes internal s_getCCVsRevertData; + + // 2 = SUCCESS, 1 = FAILURE (mirrors `Internal.MessageExecutionState`). + uint8 internal s_resultState = 2; + bytes internal s_resultReturnData; + bool internal s_executeReverts; + bytes internal s_executeRevertData; + + address[] internal s_lastCcvs; + bytes[] internal s_lastVerifierResults; + bool public executeCalled; + + constructor(uint64 sourceChainSelector_, address[] memory onRamps_) { + i_sourceChainSelector = sourceChainSelector_; + for (uint256 i; i < onRamps_.length; ++i) { + s_onRamps.push(abi.encode(onRamps_[i])); + } + } + + function getSourceChainConfig(uint64 sourceChainSelector) external view returns (SourceChainConfig memory cfg) { + if (sourceChainSelector != i_sourceChainSelector) return cfg; + cfg.router = address(0xBEEF); + cfg.isEnabled = true; + cfg.onRamps = s_onRamps; + cfg.defaultCCVs = new address[](0); + cfg.laneMandatedCCVs = new address[](0); + } + + function setCCVsForMessage(address[] memory required_, address[] memory optional_, uint8 threshold_) external { + s_requiredCCVs = required_; + s_optionalCCVs = optional_; + s_threshold = threshold_; + } + + function setGetCCVsReverts(bytes calldata data) external { + s_getCCVsReverts = true; + s_getCCVsRevertData = data; + } + + function getCCVsForMessage(bytes calldata) + external + view + returns (address[] memory requiredCCVs, address[] memory optionalCCVs, uint8 threshold) + { + if (s_getCCVsReverts) _revertRaw(s_getCCVsRevertData); + return (s_requiredCCVs, s_optionalCCVs, s_threshold); + } + + /// @param resultState 2 = SUCCESS, 1 = FAILURE. + function setExecutionResult(uint8 resultState, bytes calldata returnData) external { + s_resultState = resultState; + s_resultReturnData = returnData; + } + + function setExecuteReverts(bytes calldata data) external { + s_executeReverts = true; + s_executeRevertData = data; + } + + function lastCcvs() external view returns (address[] memory) { + return s_lastCcvs; + } + + function lastVerifierResults() external view returns (bytes[] memory) { + return s_lastVerifierResults; + } + + function execute(bytes calldata encodedMessage, address[] calldata ccvs, bytes[] calldata verifierResults, uint32) + external + { + if (s_executeReverts) _revertRaw(s_executeRevertData); + executeCalled = true; + s_lastCcvs = ccvs; + delete s_lastVerifierResults; + for (uint256 i; i < verifierResults.length; ++i) { + s_lastVerifierResults.push(verifierResults[i]); + } + bytes32 messageId = keccak256(encodedMessage); + emit ExecutionStateChanged(i_sourceChainSelector, 1, messageId, s_resultState, s_resultReturnData); + } + + function getExecutionState(bytes32) external view returns (uint8) { + return s_resultState; + } + + function _revertRaw(bytes memory data) internal pure { + assembly { + revert(add(data, 32), mload(data)) + } + } +} + +/// @notice Owner-configurable versioned verifier resolver (the production CCV shape on 2.0 lanes). +contract JsMockVersionedResolver { + struct InboundImplementationArgs { + bytes4 version; + address verifier; + } + + address public immutable owner; + mapping(bytes4 version => address verifier) public inboundImplementation; + + constructor(address owner_) { + owner = owner_; + } + + function applyInboundImplementationUpdates(InboundImplementationArgs[] calldata implementations) external { + require(msg.sender == owner, "only owner"); + for (uint256 i; i < implementations.length; ++i) { + inboundImplementation[implementations[i].version] = implementations[i].verifier; + } + } +} + +/// @notice Future/unknown OffRamp version: must be skipped by the lookup, never guessed at. +contract JsMockUnknownOffRamp { + function typeAndVersion() external pure returns (string memory) { + return "OffRamp 9.0.0"; + } +} diff --git a/src/test/ccip/MessageV1CodecTestHelper.sol b/src/test/ccip/MessageV1CodecTestHelper.sol new file mode 100644 index 0000000..9b7afd4 --- /dev/null +++ b/src/test/ccip/MessageV1CodecTestHelper.sol @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.24; + +import {MessageV1Codec} from "@chainlink/contracts-ccip/contracts/libraries/MessageV1Codec.sol"; + +/** + * THIS IS AN EXAMPLE CONTRACT THAT USES HARDCODED VALUES FOR CLARITY. + * THIS IS AN EXAMPLE CONTRACT THAT USES UN-AUDITED CODE. + * DO NOT USE THIS CODE IN PRODUCTION. + */ +/// @notice Test-only wrapper that exposes the pinned `MessageV1Codec._encodeMessageV1` (an internal library function) +/// as an external call, so the JavaScript helper's offline tests can build a real MessageV1 wire-format +/// `encodedMessage` (matching exactly what a real CCIP 2.0 OnRamp emits) without re-implementing the codec by hand. +contract MessageV1CodecTestHelper { + function encodeMessageV1(MessageV1Codec.MessageV1 memory message) external pure returns (bytes memory) { + return MessageV1Codec._encodeMessageV1(message); + } +} diff --git a/src/test/ccip/Ping.sol b/src/test/ccip/Ping.sol index acf5dba..9eb1745 100644 --- a/src/test/ccip/Ping.sol +++ b/src/test/ccip/Ping.sol @@ -3,7 +3,7 @@ pragma solidity ^0.8.19; import {Client} from "@chainlink/contracts-ccip/contracts/libraries/Client.sol"; import {IRouterClient} from "@chainlink/contracts-ccip/contracts/interfaces/IRouterClient.sol"; -import {IERC20} from "../../vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/IERC20.sol"; +import {IERC20} from "@openzeppelin/contracts@4.8.3/token/ERC20/IERC20.sol"; import {CCIPReceiver} from "@chainlink/contracts-ccip/contracts/applications/CCIPReceiver.sol"; contract Ping is CCIPReceiver { diff --git a/src/test/ccip/Pong.sol b/src/test/ccip/Pong.sol index af69482..f040d6a 100644 --- a/src/test/ccip/Pong.sol +++ b/src/test/ccip/Pong.sol @@ -3,7 +3,7 @@ pragma solidity ^0.8.19; import {Client} from "@chainlink/contracts-ccip/contracts/libraries/Client.sol"; import {IRouterClient} from "@chainlink/contracts-ccip/contracts/interfaces/IRouterClient.sol"; -import {IERC20} from "../../vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/IERC20.sol"; +import {IERC20} from "@openzeppelin/contracts@4.8.3/token/ERC20/IERC20.sol"; import {CCIPReceiver} from "@chainlink/contracts-ccip/contracts/applications/CCIPReceiver.sol"; contract Pong is CCIPReceiver { diff --git a/src/test/ccip/ProgrammableDefensiveTokenTransfers.sol b/src/test/ccip/ProgrammableDefensiveTokenTransfers.sol index 0ff576a..b581faa 100644 --- a/src/test/ccip/ProgrammableDefensiveTokenTransfers.sol +++ b/src/test/ccip/ProgrammableDefensiveTokenTransfers.sol @@ -5,9 +5,9 @@ import {IRouterClient} from "@chainlink/contracts-ccip/contracts/interfaces/IRou import {OwnerIsCreator} from "@chainlink/contracts/src/v0.8/shared/access/OwnerIsCreator.sol"; import {Client} from "@chainlink/contracts-ccip/contracts/libraries/Client.sol"; import {CCIPReceiver} from "@chainlink/contracts-ccip/contracts/applications/CCIPReceiver.sol"; -import {IERC20} from "../../vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/IERC20.sol"; -import {SafeERC20} from "../../vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/utils/SafeERC20.sol"; -import {EnumerableMap} from "../../vendor/openzeppelin-solidity/v4.8.3/contracts/utils/structs/EnumerableMap.sol"; +import {IERC20} from "@openzeppelin/contracts@4.8.3/token/ERC20/IERC20.sol"; +import {SafeERC20} from "@openzeppelin/contracts@4.8.3/token/ERC20/utils/SafeERC20.sol"; +import {EnumerableMap} from "@openzeppelin/contracts@4.8.3/utils/structs/EnumerableMap.sol"; /** * THIS IS AN EXAMPLE CONTRACT THAT USES HARDCODED VALUES FOR CLARITY. @@ -326,11 +326,13 @@ contract ProgrammableDefensiveTokenTransfers is CCIPReceiver, OwnerIsCreator { override onlyRouter onlyAllowlisted(any2EvmMessage.sourceChainSelector, abi.decode(any2EvmMessage.sender, (address))) // Make sure the source chain and sender are allowlisted + { /* solhint-disable no-empty-blocks */ try this.processMessage(any2EvmMessage) { - // Intentionally empty in this example; no action needed if processMessage succeeds - } catch (bytes memory err) { + // Intentionally empty in this example; no action needed if processMessage succeeds + } + catch (bytes memory err) { // Could set different error codes based on the caught error. Each could be // handled differently. s_failedMessages.set(any2EvmMessage.messageId, uint256(ErrorCode.FAILED)); @@ -351,6 +353,7 @@ contract ProgrammableDefensiveTokenTransfers is CCIPReceiver, OwnerIsCreator { external onlySelf onlyAllowlisted(any2EvmMessage.sourceChainSelector, abi.decode(any2EvmMessage.sender, (address))) // Make sure the source chain and sender are allowlisted + { // Simulate a revert for testing purposes if (s_simRevert) revert ErrorCase(); diff --git a/src/test/ccip/ProgrammableTokenTransfers.sol b/src/test/ccip/ProgrammableTokenTransfers.sol index a26dda1..3a5d66e 100644 --- a/src/test/ccip/ProgrammableTokenTransfers.sol +++ b/src/test/ccip/ProgrammableTokenTransfers.sol @@ -5,7 +5,8 @@ import {IRouterClient} from "@chainlink/contracts-ccip/contracts/interfaces/IRou import {OwnerIsCreator} from "@chainlink/contracts/src/v0.8/shared/access/OwnerIsCreator.sol"; import {Client} from "@chainlink/contracts-ccip/contracts/libraries/Client.sol"; import {CCIPReceiver} from "@chainlink/contracts-ccip/contracts/applications/CCIPReceiver.sol"; -import {IERC20} from "../../vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/IERC20.sol"; +import {IERC20} from "@openzeppelin/contracts@4.8.3/token/ERC20/IERC20.sol"; +import {SafeERC20} from "@openzeppelin/contracts@4.8.3/token/ERC20/utils/SafeERC20.sol"; /** * THIS IS AN EXAMPLE CONTRACT THAT USES HARDCODED VALUES FOR CLARITY. @@ -15,6 +16,8 @@ import {IERC20} from "../../vendor/openzeppelin-solidity/v4.8.3/contracts/token/ /// @title - A simple messenger contract for transferring/receiving tokens and data across chains. contract ProgrammableTokenTransfers is CCIPReceiver, OwnerIsCreator { + using SafeERC20 for IERC20; + // Custom errors to provide more descriptive revert messages. error NotEnoughBalance(uint256 currentBalance, uint256 calculatedFees); // Used to make sure contract has enough balance to cover the fees. error NothingToWithdraw(); // Used when trying to withdraw Ether but there's nothing to withdraw. @@ -257,6 +260,7 @@ contract ProgrammableTokenTransfers is CCIPReceiver, OwnerIsCreator { internal override onlyAllowlisted(any2EvmMessage.sourceChainSelector, abi.decode(any2EvmMessage.sender, (address))) // Make sure source chain and sender are allowlisted + { s_lastReceivedMessageId = any2EvmMessage.messageId; // fetch the messageId s_lastReceivedText = abi.decode(any2EvmMessage.data, (string)); // abi-decoding of the sent text @@ -340,6 +344,6 @@ contract ProgrammableTokenTransfers is CCIPReceiver, OwnerIsCreator { // Revert if there is nothing to withdraw if (amount == 0) revert NothingToWithdraw(); - IERC20(_token).transfer(_beneficiary, amount); + IERC20(_token).safeTransfer(_beneficiary, amount); } } diff --git a/src/test/ccip/TokenTransferor.sol b/src/test/ccip/TokenTransferor.sol index 17360c5..7356960 100644 --- a/src/test/ccip/TokenTransferor.sol +++ b/src/test/ccip/TokenTransferor.sol @@ -4,7 +4,8 @@ pragma solidity 0.8.24; import {IRouterClient} from "@chainlink/contracts-ccip/contracts/interfaces/IRouterClient.sol"; import {OwnerIsCreator} from "@chainlink/contracts/src/v0.8/shared/access/OwnerIsCreator.sol"; import {Client} from "@chainlink/contracts-ccip/contracts/libraries/Client.sol"; -import {IERC20} from "../../vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/IERC20.sol"; +import {IERC20} from "@openzeppelin/contracts@4.8.3/token/ERC20/IERC20.sol"; +import {SafeERC20} from "@openzeppelin/contracts@4.8.3/token/ERC20/utils/SafeERC20.sol"; /** * THIS IS AN EXAMPLE CONTRACT THAT USES HARDCODED VALUES FOR CLARITY. @@ -14,6 +15,8 @@ import {IERC20} from "../../vendor/openzeppelin-solidity/v4.8.3/contracts/token/ /// @title - A simple contract for transferring tokens across chains. contract TokenTransferor is OwnerIsCreator { + using SafeERC20 for IERC20; + // Custom errors to provide more descriptive revert messages. error NotEnoughBalance(uint256 currentBalance, uint256 calculatedFees); // Used to make sure contract has enough balance to cover the fees. error NothingToWithdraw(); // Used when trying to withdraw Ether but there's nothing to withdraw. @@ -234,6 +237,6 @@ contract TokenTransferor is OwnerIsCreator { // Revert if there is nothing to withdraw if (amount == 0) revert NothingToWithdraw(); - IERC20(_token).transfer(_beneficiary, amount); + IERC20(_token).safeTransfer(_beneficiary, amount); } } diff --git a/src/test/ccip/utils/EncodeExtraArgsOffchain.sol b/src/test/ccip/utils/EncodeExtraArgsOffchain.sol new file mode 100644 index 0000000..6f70713 --- /dev/null +++ b/src/test/ccip/utils/EncodeExtraArgsOffchain.sol @@ -0,0 +1,118 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.0; + +import {Client} from "@chainlink/contracts-ccip/contracts/libraries/Client.sol"; +import {ExtraArgsCodec} from "@chainlink/contracts-ccip/contracts/libraries/ExtraArgsCodec.sol"; + +/** + * THIS IS AN EXAMPLE CONTRACT THAT USES HARDCODED VALUES FOR CLARITY. + * THIS IS AN EXAMPLE CONTRACT THAT USES UN-AUDITED CODE. + * DO NOT USE THIS CODE IN PRODUCTION. + */ + +/// @title EncodeExtraArgsOffchain +/// @notice This contract is not intended to be deployed on-chain, it is simply a helper contract to encode the extraArgs. +/// +/// The purpose of extraArgs is to allow compatibility with future CCIP upgrades. +/// To get this benefit, make sure that extraArgs is mutable in production deployments. +/// This allows you to build it offchain and pass it in a call to a function or store it in a variable that you can update on-demand. +/// Read more here: https://docs.chain.link/ccip/best-practices#using-extraargs +contract EncodeExtraArgsOffchain { + // Below is a simplistic example (same params for all messages) of using storage to allow for new options without + // upgrading the dapp. Note that extra args are chain family specific (e.g. gasLimit is EVM specific etc.). + // and will always be backwards compatible i.e. upgrades are opt-in. + // Offchain we can compute the V1 extraArgs: + // Client.EVMExtraArgsV1 memory extraArgs = Client.EVMExtraArgsV1({gasLimit: 300_000}); + // bytes memory encodedV1ExtraArgs = Client._argsToBytes(extraArgs); + // Then later compute V2 extraArgs, for example when allowOutOfOrderExecution was added: + // Client.GenericExtraArgsV2 memory extraArgs = Client.GenericExtraArgsV2({gasLimit: 300_000, allowOutOfOrderExecution: true}); + // bytes memory encodedV2ExtraArgs = Client._argsToBytes(extraArgs); + // and update storage with the new args. + // If different options are required for different messages, for example different gas limits, + // one can simply key based on (chainSelector, messageType) instead of only chainSelector. + + function encodeV1(uint256 gasLimit) public pure returns (bytes memory extraArgsBytes) { + Client.EVMExtraArgsV1 memory extraArgs = Client.EVMExtraArgsV1({gasLimit: gasLimit}); + extraArgsBytes = Client._argsToBytes(extraArgs); + } + + function encodeV2(uint256 gasLimit, bool allowOutOfOrderExecution) + public + pure + returns (bytes memory extraArgsBytes) + { + Client.GenericExtraArgsV2 memory extraArgs = Client.GenericExtraArgsV2({ + gasLimit: gasLimit, allowOutOfOrderExecution: allowOutOfOrderExecution + }); + extraArgsBytes = Client._argsToBytes(extraArgs); + } + + /** + * @param gasLimit Gas limit allocated for the callback on the destination chain. If `0` **and** the message data length + * is `0`, no callback is executed (useful for token-only transfers or EOA receivers). + * **Note:** The sender is billed for the *specified* gas limit, not actual usage. Unused gas is **not** refunded. + * Estimate gas requirements carefully, as they vary by chain family (refer to chain-specific documentation). + * @param requestedFinalityConfig Finality requested for the message, encoded with `FinalityCodec`. + * `FinalityCodec.WAIT_FOR_FINALITY_FLAG` (`bytes4(0)`) waits for finality; a block depth + * (`FinalityCodec._encodeBlockDepth(n)`) or `WAIT_FOR_SAFE_FLAG` requests Faster-Than-Finality, + * which CCVs/Pools/executor/receiver may reject if considered too risky. + * @param ccvs Array of cross-chain verifier (CCV) addresses. If empty, default verifiers are used. + * @param ccvArgs Optional, uninterpreted arguments for each CCV in `ccvs`. Must match the length of `ccvs`. + * **Format:** Chain/CCV-specific (e.g., encoded structs or raw bytes). + * @param executor Address of the executor contract on the **source chain**. If `address(0)`, the default executor is used. + * The executor handles message execution on the destination chain after CCV verification. + * @param executorArgs Chain-family-specific arguments for the executor (e.g., Solana accounts, Sui object IDs). + * **Security:** Incorrect values may cause fund loss. Format is executor/chain-dependent. + * @param tokenReceiver Destination token receiver address in bytes. If empty, the message receiver address is used. + * **Behavior:** + * - If token transfer exists: Falls back to message receiver. + * - If no token transfer: Must be empty. + * @param tokenArgs Additional token transfer arguments (e.g., pool-specific metadata). Format depends on the token pool. + * @return extraArgsBytes Encoded ExtraArgsV3 + */ + function encodeV3( + uint32 gasLimit, + bytes4 requestedFinalityConfig, + address[] memory ccvs, + bytes[] memory ccvArgs, + address executor, + bytes memory executorArgs, + bytes memory tokenReceiver, + bytes memory tokenArgs + ) public pure returns (bytes memory extraArgsBytes) { + ExtraArgsCodec.GenericExtraArgsV3 memory extraArgs = ExtraArgsCodec.GenericExtraArgsV3({ + gasLimit: gasLimit, + requestedFinalityConfig: requestedFinalityConfig, + ccvs: ccvs, + ccvArgs: ccvArgs, + executor: executor, + executorArgs: executorArgs, + tokenReceiver: tokenReceiver, + tokenArgs: tokenArgs + }); + + extraArgsBytes = ExtraArgsCodec._encodeGenericExtraArgsV3(extraArgs); + } + + /// @notice Creates a basic encoded GenericExtraArgsV3 with only gasLimit and finality config set. + /// @param finalityConfig Finality config encoded with `FinalityCodec`. + function encodeV3Basic(uint32 gasLimit, bytes4 finalityConfig) public pure returns (bytes memory extraArgsBytes) { + extraArgsBytes = ExtraArgsCodec._getBasicEncodedExtraArgsV3(gasLimit, finalityConfig); + } + + /// @notice Creates a basic encoded GenericExtraArgsV3 with only gasLimit and a block-depth finality set. + /// @param blockDepth Block depth to wait for. `0` waits for finality; non-zero requests Faster-Than-Finality. + function encodeV3BasicBlockDepth(uint32 gasLimit, uint16 blockDepth) + public + pure + returns (bytes memory extraArgsBytes) + { + extraArgsBytes = ExtraArgsCodec._getBasicEncodedExtraArgsV3BlockDepth(gasLimit, blockDepth); + } + + /// @notice Get the NO_EXECUTION_ADDRESS for manual execution. + /// @return The address that signals no automatic execution. + function getNoExecutionAddress() public pure returns (address) { + return Client.NO_EXECUTION_ADDRESS; + } +} diff --git a/src/test/ccip/utils/Withdraw.sol b/src/test/ccip/utils/Withdraw.sol new file mode 100644 index 0000000..7c1aa92 --- /dev/null +++ b/src/test/ccip/utils/Withdraw.sol @@ -0,0 +1,30 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.24; + +import {Ownable, Ownable2Step} from "@openzeppelin/contracts@5.3.0/access/Ownable2Step.sol"; +import {IERC20} from "@openzeppelin/contracts@5.3.0/token/ERC20/IERC20.sol"; +import {SafeERC20} from "@openzeppelin/contracts@5.3.0/token/ERC20/utils/SafeERC20.sol"; + +/** + * THIS IS AN EXAMPLE CONTRACT THAT USES HARDCODED VALUES FOR CLARITY. + * THIS IS AN EXAMPLE CONTRACT THAT USES UN-AUDITED CODE. + * DO NOT USE THIS CODE IN PRODUCTION. + */ +contract Withdraw is Ownable2Step { + using SafeERC20 for IERC20; + + error FailedToWithdrawEth(address owner, address target, uint256 value); + + constructor() Ownable(msg.sender) {} + + function withdraw(address beneficiary) public onlyOwner { + uint256 amount = address(this).balance; + (bool sent,) = beneficiary.call{value: amount}(""); + if (!sent) revert FailedToWithdrawEth(msg.sender, beneficiary, amount); + } + + function withdrawToken(address beneficiary, address token) public onlyOwner { + uint256 amount = IERC20(token).balanceOf(address(this)); + IERC20(token).safeTransfer(beneficiary, amount); + } +} diff --git a/src/test/data-feeds/BasicDataConsumerV3.sol b/src/test/data-feeds/BasicDataConsumerV3.sol index 0134588..99e5f93 100644 --- a/src/test/data-feeds/BasicDataConsumerV3.sol +++ b/src/test/data-feeds/BasicDataConsumerV3.sol @@ -26,12 +26,10 @@ contract BasicDataConsumerV3 { } function getChainlinkDataFeedLatestAnswer() public view returns (int256) { - ( - , + (, /* uint80 roundID */ - int256 answer, /*uint startedAt*/ /*uint timeStamp*/ /*uint80 answeredInRound*/ - , - , + int256 answer,/*uint startedAt*/ /*uint timeStamp*/ /*uint80 answeredInRound*/ + ,, ) = dataFeed.latestRoundData(); return answer; } diff --git a/src/test/data-streams/ClientReportsVerifier.sol b/src/test/data-streams/ClientReportsVerifier.sol index 9d8a540..4342988 100644 --- a/src/test/data-streams/ClientReportsVerifier.sol +++ b/src/test/data-streams/ClientReportsVerifier.sol @@ -1,8 +1,8 @@ // SPDX-License-Identifier: MIT pragma solidity ^0.8.19; -import {IERC20} from "../../vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/IERC20.sol"; -import {SafeERC20} from "../../vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/utils/SafeERC20.sol"; +import {IERC20} from "@openzeppelin/contracts@4.8.3/token/ERC20/IERC20.sol"; +import {SafeERC20} from "@openzeppelin/contracts@4.8.3/token/ERC20/utils/SafeERC20.sol"; library Common { struct Asset { diff --git a/src/test/data-streams/ERC7412Compatible.sol b/src/test/data-streams/ERC7412Compatible.sol index e12d7f0..d305a4d 100644 --- a/src/test/data-streams/ERC7412Compatible.sol +++ b/src/test/data-streams/ERC7412Compatible.sol @@ -1,9 +1,10 @@ // SPDX-License-Identifier: MIT pragma solidity ^0.8.16; -import {IERC165} from "../../vendor/openzeppelin-solidity/v4.8.3/contracts/interfaces/IERC165.sol"; +import {IERC165} from "@openzeppelin/contracts@4.8.3/interfaces/IERC165.sol"; import {OwnerIsCreator} from "@chainlink/contracts/src/v0.8/shared/access/OwnerIsCreator.sol"; -import {IERC20} from "../../vendor/openzeppelin-solidity/v4.8.3/contracts/interfaces/IERC20.sol"; +import {IERC20} from "@openzeppelin/contracts@4.8.3/interfaces/IERC20.sol"; +import {SafeERC20} from "@openzeppelin/contracts@4.8.3/token/ERC20/utils/SafeERC20.sol"; interface IRewardManager is IERC165 { /** @@ -24,8 +25,7 @@ interface IRewardManager is IERC165 { * @param poolId poolId to set RewardRecipients and weights for * @param rewardRecipientAndWeights array of each RewardRecipient and associated weight */ - function setRewardRecipients(bytes32 poolId, Common.AddressAndWeight[] calldata rewardRecipientAndWeights) - external; + function setRewardRecipients(bytes32 poolId, Common.AddressAndWeight[] calldata rewardRecipientAndWeights) external; /** * @notice Updates a subset the reward recipients for a specific poolId. The collective weight of the recipients should add up to the recipients existing weights. Any recipients with a weight of 0 will be removed. @@ -198,6 +198,8 @@ interface IERC7412 { * DO NOT USE THIS CODE IN PRODUCTION. */ contract DataStreamsERC7412Compatible is IERC7412, OwnerIsCreator { + using SafeERC20 for IERC20; + struct BasicReport { bytes32 feedId; // The feed ID the report has data for uint32 validFromTimestamp; // Earliest timestamp for which price is applicable @@ -287,9 +289,7 @@ contract DataStreamsERC7412Compatible is IERC7412, OwnerIsCreator { BasicReport memory verifiedReport = abi.decode(verifiedReportData, (BasicReport)); s_latestPrice[verifiedReport.feedId] = LatestPriceData({ - price: verifiedReport.price, - expiresAt: verifiedReport.expiresAt, - cacheTimestamp: toUint32(block.timestamp) + price: verifiedReport.price, expiresAt: verifiedReport.expiresAt, cacheTimestamp: toUint32(block.timestamp) }); // Log price from report @@ -323,6 +323,6 @@ contract DataStreamsERC7412Compatible is IERC7412, OwnerIsCreator { function withdrawToken(address beneficiary, address token) public onlyOwner { uint256 amount = IERC20(token).balanceOf(address(this)); - IERC20(token).transfer(beneficiary, amount); + IERC20(token).safeTransfer(beneficiary, amount); } } diff --git a/src/vendor/chainlink-ccip/test/mocks/MockRouter.sol b/src/vendor/chainlink-ccip/test/mocks/MockRouter.sol deleted file mode 100644 index 798cde9..0000000 --- a/src/vendor/chainlink-ccip/test/mocks/MockRouter.sol +++ /dev/null @@ -1,177 +0,0 @@ -// SPDX-License-Identifier: MIT -pragma solidity ^0.8.4; - -import {IAny2EVMMessageReceiver} from "@chainlink/contracts-ccip/contracts/interfaces/IAny2EVMMessageReceiver.sol"; -import {IRouter} from "@chainlink/contracts-ccip/contracts/interfaces/IRouter.sol"; -import {IRouterClient} from "@chainlink/contracts-ccip/contracts/interfaces/IRouterClient.sol"; - -import {Client} from "@chainlink/contracts-ccip/contracts/libraries/Client.sol"; -import {Internal} from "@chainlink/contracts-ccip/contracts/libraries/Internal.sol"; -import {CallWithExactGas} from "@chainlink/contracts/src/v0.8/shared/call/CallWithExactGas.sol"; - -import {IERC20} from "../../../openzeppelin-solidity/v4.8.3/contracts/token/ERC20/IERC20.sol"; -import {SafeERC20} from "../../../openzeppelin-solidity/v4.8.3/contracts/token/ERC20/utils/SafeERC20.sol"; -import {ERC165Checker} from "../../../openzeppelin-solidity/v5.0.2/contracts/utils/introspection/ERC165Checker.sol"; - -contract MockCCIPRouter is IRouter, IRouterClient { - using SafeERC20 for IERC20; - using ERC165Checker for address; - - error InvalidAddress(bytes encodedAddress); - error InvalidExtraArgsTag(); - error ReceiverError(bytes err); - - event MessageExecuted(bytes32 messageId, uint64 sourceChainSelector, address offRamp, bytes32 calldataHash); - event MsgExecuted(bool success, bytes retData, uint256 gasUsed); - - uint16 public constant GAS_FOR_CALL_EXACT_CHECK = 5_000; - uint32 public constant DEFAULT_GAS_LIMIT = 200_000; - - uint256 internal s_mockFeeTokenAmount; //use setFee() to change to non-zero to test fees - - function routeMessage( - Client.Any2EVMMessage calldata message, - uint16 gasForCallExactCheck, - uint256 gasLimit, - address receiver - ) external returns (bool success, bytes memory retData, uint256 gasUsed) { - return _routeMessage(message, gasForCallExactCheck, gasLimit, receiver); - } - - function _routeMessage( - Client.Any2EVMMessage memory message, - uint16 gasForCallExactCheck, - uint256 gasLimit, - address receiver - ) internal returns (bool success, bytes memory retData, uint256 gasUsed) { - // There are three cases in which we skip calling the receiver: - // 1. If the message data is empty AND the gas limit is 0. - // This indicates a message that only transfers tokens. It is valid to only send tokens to a contract - // that supports the IAny2EVMMessageReceiver interface, but without this first check we would call the - // receiver without any gas, which would revert the transaction. - // 2. If the receiver is not a contract. - // 3. If the receiver is a contract but it does not support the IAny2EVMMessageReceiver interface. - // - // The ordering of these checks is important, as the first check is the cheapest to execute. - if ( - (message.data.length == 0 && gasLimit == 0) || receiver.code.length == 0 - || !receiver.supportsInterface(type(IAny2EVMMessageReceiver).interfaceId) - ) { - return (true, "", 0); - } - - bytes memory data = abi.encodeWithSelector(IAny2EVMMessageReceiver.ccipReceive.selector, message); - - (success, retData, gasUsed) = CallWithExactGas._callWithExactGasSafeReturnData( - data, receiver, gasLimit, gasForCallExactCheck, Internal.MAX_RET_BYTES - ); - - // Event to assist testing, does not exist on real deployments - emit MsgExecuted(success, retData, gasUsed); - - // Real router event - emit MessageExecuted(message.messageId, message.sourceChainSelector, msg.sender, keccak256(data)); - return (success, retData, gasUsed); - } - - /// @notice Sends the tx locally to the receiver instead of on the destination chain. - /// @dev Ignores destinationChainSelector - /// @dev Returns a mock message ID, which is not calculated from the message contents in the - /// same way as the real message ID. - function ccipSend( - uint64 destinationChainSelector, - Client.EVM2AnyMessage calldata message - ) external payable returns (bytes32) { - if (message.receiver.length != 32) revert InvalidAddress(message.receiver); - uint256 decodedReceiver = abi.decode(message.receiver, (uint256)); - // We want to disallow sending to address(0) and to precompiles, which exist on address(1) through address(9). - if (decodedReceiver > type(uint160).max || decodedReceiver < 10) revert InvalidAddress(message.receiver); - - uint256 feeTokenAmount = getFee(destinationChainSelector, message); - if (message.feeToken == address(0)) { - if (msg.value < feeTokenAmount) revert InsufficientFeeTokenAmount(); - } else { - if (msg.value > 0) revert InvalidMsgValue(); - IERC20(message.feeToken).safeTransferFrom(msg.sender, address(this), feeTokenAmount); - } - - address receiver = address(uint160(decodedReceiver)); - uint256 gasLimit = _fromBytes(message.extraArgs).gasLimit; - bytes32 mockMsgId = keccak256(abi.encode(message)); - - Client.Any2EVMMessage memory executableMsg = Client.Any2EVMMessage({ - messageId: mockMsgId, - sourceChainSelector: 16015286601757825753, // Sepolia - sender: abi.encode(msg.sender), - data: message.data, - destTokenAmounts: message.tokenAmounts - }); - - for (uint256 i = 0; i < message.tokenAmounts.length; ++i) { - IERC20(message.tokenAmounts[i].token).safeTransferFrom(msg.sender, receiver, message.tokenAmounts[i].amount); - } - - (bool success, bytes memory retData,) = _routeMessage(executableMsg, GAS_FOR_CALL_EXACT_CHECK, gasLimit, receiver); - - if (!success) revert ReceiverError(retData); - - return mockMsgId; - } - - function _fromBytes( - bytes calldata extraArgs - ) internal pure returns (Client.GenericExtraArgsV2 memory) { - if (extraArgs.length == 0) { - return Client.GenericExtraArgsV2({gasLimit: DEFAULT_GAS_LIMIT, allowOutOfOrderExecution: false}); - } - - bytes4 extraArgsTag = bytes4(extraArgs); - if (extraArgsTag == Client.GENERIC_EXTRA_ARGS_V2_TAG) { - return abi.decode(extraArgs[4:], (Client.GenericExtraArgsV2)); - } else if (extraArgsTag == Client.EVM_EXTRA_ARGS_V1_TAG) { - return - Client.GenericExtraArgsV2({gasLimit: abi.decode(extraArgs[4:], (uint256)), allowOutOfOrderExecution: false}); - } - - revert InvalidExtraArgsTag(); - } - - /// @notice Always returns true to make sure this check can be performed on any chain. - function isChainSupported( - uint64 - ) external pure returns (bool supported) { - return true; - } - - /// @notice Returns an empty array. - function getSupportedTokens( - uint64 - ) external pure returns (address[] memory tokens) { - return new address[](0); - } - - /// @notice Returns 0 as the fee is not supported in this mock contract. - function getFee(uint64, Client.EVM2AnyMessage memory) public view returns (uint256) { - return s_mockFeeTokenAmount; - } - - /// @notice Sets the fees returned by getFee but is only checked when using native fee tokens - function setFee( - uint256 feeAmount - ) external { - s_mockFeeTokenAmount = feeAmount; - } - - /// @notice Always returns address(1234567890) - function getOnRamp( - uint64 /* destChainSelector */ - ) external pure returns (address onRampAddress) { - return address(1234567890); - } - - /// @notice Always returns true - function isOffRamp(uint64, /* sourceChainSelector */ address /* offRamp */ ) external pure returns (bool) { - return true; - } -} - diff --git a/src/vendor/chainlink/shared/token/ERC20/IBurnMintERC20.sol b/src/vendor/chainlink/shared/token/ERC20/IBurnMintERC20.sol deleted file mode 100644 index 9d40c03..0000000 --- a/src/vendor/chainlink/shared/token/ERC20/IBurnMintERC20.sol +++ /dev/null @@ -1,31 +0,0 @@ -// SPDX-License-Identifier: MIT -pragma solidity ^0.8.0; - -import {IERC20} from "../../../../openzeppelin-solidity/v4.8.3/contracts/token/ERC20/IERC20.sol"; - -interface IBurnMintERC20 is IERC20 { - /// @notice Mints new tokens for a given address. - /// @param account The address to mint the new tokens to. - /// @param amount The number of tokens to be minted. - /// @dev this function increases the total supply. - function mint(address account, uint256 amount) external; - - /// @notice Burns tokens from the sender. - /// @param amount The number of tokens to be burned. - /// @dev this function decreases the total supply. - function burn( - uint256 amount - ) external; - - /// @notice Burns tokens from a given address.. - /// @param account The address to burn tokens from. - /// @param amount The number of tokens to be burned. - /// @dev this function decreases the total supply. - function burn(address account, uint256 amount) external; - - /// @notice Burns tokens from a given address.. - /// @param account The address to burn tokens from. - /// @param amount The number of tokens to be burned. - /// @dev this function decreases the total supply. - function burnFrom(address account, uint256 amount) external; -} diff --git a/src/vendor/chainlink/shared/token/ERC677/BurnMintERC677.sol b/src/vendor/chainlink/shared/token/ERC677/BurnMintERC677.sol deleted file mode 100644 index c107410..0000000 --- a/src/vendor/chainlink/shared/token/ERC677/BurnMintERC677.sol +++ /dev/null @@ -1,235 +0,0 @@ -// SPDX-License-Identifier: MIT -pragma solidity ^0.8.4; - -import {IBurnMintERC20} from "../ERC20/IBurnMintERC20.sol"; -import {IERC677} from "./IERC677.sol"; - -import {OwnerIsCreator} from "@chainlink/contracts/src/v0.8/shared/access/OwnerIsCreator.sol"; -import {ERC677} from "./ERC677.sol"; - -import {IERC20} from "../../../../openzeppelin-solidity/v4.8.3/contracts/token/ERC20/IERC20.sol"; -import {ERC20Burnable} from "../../../../openzeppelin-solidity/v4.8.3/contracts/token/ERC20/extensions/ERC20Burnable.sol"; -import {IERC165} from "../../../../openzeppelin-solidity/v4.8.3/contracts/utils/introspection/IERC165.sol"; -import {EnumerableSet} from "../../../../openzeppelin-solidity/v4.8.3/contracts/utils/structs/EnumerableSet.sol"; - -/// @notice A basic ERC677 compatible token contract with burn and minting roles. -/// @dev The total supply can be limited during deployment. -contract BurnMintERC677 is IBurnMintERC20, ERC677, IERC165, ERC20Burnable, OwnerIsCreator { - using EnumerableSet for EnumerableSet.AddressSet; - - error SenderNotMinter(address sender); - error SenderNotBurner(address sender); - error MaxSupplyExceeded(uint256 supplyAfterMint); - - event MintAccessGranted(address indexed minter); - event BurnAccessGranted(address indexed burner); - event MintAccessRevoked(address indexed minter); - event BurnAccessRevoked(address indexed burner); - - // @dev the allowed minter addresses - EnumerableSet.AddressSet internal s_minters; - // @dev the allowed burner addresses - EnumerableSet.AddressSet internal s_burners; - - /// @dev The number of decimals for the token - uint8 internal immutable i_decimals; - - /// @dev The maximum supply of the token, 0 if unlimited - uint256 internal immutable i_maxSupply; - - constructor(string memory name, string memory symbol, uint8 decimals_, uint256 maxSupply_) ERC677(name, symbol) { - i_decimals = decimals_; - i_maxSupply = maxSupply_; - } - - function supportsInterface( - bytes4 interfaceId - ) public pure virtual override returns (bool) { - return interfaceId == type(IERC20).interfaceId || interfaceId == type(IERC677).interfaceId - || interfaceId == type(IBurnMintERC20).interfaceId || interfaceId == type(IERC165).interfaceId; - } - - // ================================================================ - // | ERC20 | - // ================================================================ - - /// @dev Returns the number of decimals used in its user representation. - function decimals() public view virtual override returns (uint8) { - return i_decimals; - } - - /// @dev Returns the max supply of the token, 0 if unlimited. - function maxSupply() public view virtual returns (uint256) { - return i_maxSupply; - } - - /// @dev Uses OZ ERC20 _transfer to disallow sending to address(0). - /// @dev Disallows sending to address(this) - function _transfer(address from, address to, uint256 amount) internal virtual override validAddress(to) { - super._transfer(from, to, amount); - } - - /// @dev Uses OZ ERC20 _approve to disallow approving for address(0). - /// @dev Disallows approving for address(this) - function _approve(address owner, address spender, uint256 amount) internal virtual override validAddress(spender) { - super._approve(owner, spender, amount); - } - - /// @dev Exists to be backwards compatible with the older naming convention. - function decreaseApproval(address spender, uint256 subtractedValue) external virtual returns (bool success) { - return decreaseAllowance(spender, subtractedValue); - } - - /// @dev Exists to be backwards compatible with the older naming convention. - function increaseApproval(address spender, uint256 addedValue) external virtual { - increaseAllowance(spender, addedValue); - } - - /// @notice Check if recipient is valid (not this contract address). - /// @param recipient the account we transfer/approve to. - /// @dev Reverts with an empty revert to be compatible with the existing link token when - /// the recipient is this contract address. - modifier validAddress( - address recipient - ) virtual { - // solhint-disable-next-line reason-string, gas-custom-errors - if (recipient == address(this)) revert(); - _; - } - - // ================================================================ - // | Burning & minting | - // ================================================================ - - /// @inheritdoc ERC20Burnable - /// @dev Uses OZ ERC20 _burn to disallow burning from address(0). - /// @dev Decreases the total supply. - function burn( - uint256 amount - ) public virtual override(IBurnMintERC20, ERC20Burnable) onlyBurner { - super.burn(amount); - } - - /// @inheritdoc IBurnMintERC20 - /// @dev Alias for BurnFrom for compatibility with the older naming convention. - /// @dev Uses burnFrom for all validation & logic. - function burn(address account, uint256 amount) public virtual override { - burnFrom(account, amount); - } - - /// @inheritdoc ERC20Burnable - /// @dev Uses OZ ERC20 _burn to disallow burning from address(0). - /// @dev Decreases the total supply. - function burnFrom(address account, uint256 amount) public virtual override(IBurnMintERC20, ERC20Burnable) onlyBurner { - super.burnFrom(account, amount); - } - - /// @inheritdoc IBurnMintERC20 - /// @dev Uses OZ ERC20 _mint to disallow minting to address(0). - /// @dev Disallows minting to address(this) - /// @dev Increases the total supply. - function mint(address account, uint256 amount) external virtual override onlyMinter validAddress(account) { - if (i_maxSupply != 0 && totalSupply() + amount > i_maxSupply) revert MaxSupplyExceeded(totalSupply() + amount); - - _mint(account, amount); - } - - // ================================================================ - // | Roles | - // ================================================================ - - /// @notice grants both mint and burn roles to `burnAndMinter`. - /// @dev calls public functions so this function does not require - /// access controls. This is handled in the inner functions. - function grantMintAndBurnRoles( - address burnAndMinter - ) external virtual { - grantMintRole(burnAndMinter); - grantBurnRole(burnAndMinter); - } - - /// @notice Grants mint role to the given address. - /// @dev only the owner can call this function. - function grantMintRole( - address minter - ) public virtual onlyOwner { - if (s_minters.add(minter)) { - emit MintAccessGranted(minter); - } - } - - /// @notice Grants burn role to the given address. - /// @dev only the owner can call this function. - function grantBurnRole( - address burner - ) public virtual onlyOwner { - if (s_burners.add(burner)) { - emit BurnAccessGranted(burner); - } - } - - /// @notice Revokes mint role for the given address. - /// @dev only the owner can call this function. - function revokeMintRole( - address minter - ) public virtual onlyOwner { - if (s_minters.remove(minter)) { - emit MintAccessRevoked(minter); - } - } - - /// @notice Revokes burn role from the given address. - /// @dev only the owner can call this function - function revokeBurnRole( - address burner - ) public virtual onlyOwner { - if (s_burners.remove(burner)) { - emit BurnAccessRevoked(burner); - } - } - - /// @notice Returns all permissioned minters - function getMinters() public view virtual returns (address[] memory) { - return s_minters.values(); - } - - /// @notice Returns all permissioned burners - function getBurners() public view virtual returns (address[] memory) { - return s_burners.values(); - } - - // ================================================================ - // | Access | - // ================================================================ - - /// @notice Checks whether a given address is a minter for this token. - /// @return true if the address is allowed to mint. - function isMinter( - address minter - ) public view virtual returns (bool) { - return s_minters.contains(minter); - } - - /// @notice Checks whether a given address is a burner for this token. - /// @return true if the address is allowed to burn. - function isBurner( - address burner - ) public view virtual returns (bool) { - return s_burners.contains(burner); - } - - /// @notice Checks whether the msg.sender is a permissioned minter for this token - /// @dev Reverts with a SenderNotMinter if the check fails - modifier onlyMinter() { - if (!isMinter(msg.sender)) revert SenderNotMinter(msg.sender); - _; - } - - /// @notice Checks whether the msg.sender is a permissioned burner for this token - /// @dev Reverts with a SenderNotBurner if the check fails - modifier onlyBurner() { - if (!isBurner(msg.sender)) revert SenderNotBurner(msg.sender); - _; - } -} - diff --git a/src/vendor/chainlink/shared/token/ERC677/ERC677.sol b/src/vendor/chainlink/shared/token/ERC677/ERC677.sol deleted file mode 100644 index bcca3a3..0000000 --- a/src/vendor/chainlink/shared/token/ERC677/ERC677.sol +++ /dev/null @@ -1,22 +0,0 @@ -// SPDX-License-Identifier: UNLICENSED -pragma solidity ^0.8.0; - -import {IERC677Receiver} from "@chainlink/contracts/src/v0.8/shared/interfaces/IERC677Receiver.sol"; -import {IERC677} from "./IERC677.sol"; - -import {ERC20} from "../../../../openzeppelin-solidity/v4.8.3/contracts/token/ERC20/ERC20.sol"; - -contract ERC677 is IERC677, ERC20 { - constructor(string memory name, string memory symbol) ERC20(name, symbol) {} - - /// @inheritdoc IERC677 - function transferAndCall(address to, uint256 amount, bytes memory data) public returns (bool success) { - super.transfer(to, amount); - emit Transfer(msg.sender, to, amount, data); - if (to.code.length > 0) { - IERC677Receiver(to).onTokenTransfer(msg.sender, amount, data); - } - return true; - } -} - diff --git a/src/vendor/chainlink/shared/token/ERC677/IERC677.sol b/src/vendor/chainlink/shared/token/ERC677/IERC677.sol deleted file mode 100644 index 7e303a4..0000000 --- a/src/vendor/chainlink/shared/token/ERC677/IERC677.sol +++ /dev/null @@ -1,13 +0,0 @@ -// SPDX-License-Identifier: MIT -pragma solidity ^0.8.0; - -interface IERC677 { - event Transfer(address indexed from, address indexed to, uint256 value, bytes data); - - /// @notice Transfer tokens from `msg.sender` to another address and then call `onTransferReceived` on receiver - /// @param to The address which you want to transfer to - /// @param amount The amount of tokens to be transferred - /// @param data bytes Additional data with no specified format, sent in call to `to` - /// @return true unless throwing - function transferAndCall(address to, uint256 amount, bytes memory data) external returns (bool); -} diff --git a/src/vendor/openzeppelin-solidity/v4.7.3/contracts/proxy/Proxy.sol b/src/vendor/openzeppelin-solidity/v4.7.3/contracts/proxy/Proxy.sol deleted file mode 100644 index 1ee2405..0000000 --- a/src/vendor/openzeppelin-solidity/v4.7.3/contracts/proxy/Proxy.sol +++ /dev/null @@ -1,82 +0,0 @@ -// SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v4.6.0) (proxy/Proxy.sol) - -pragma solidity ^0.8.0; - -/** - * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM - * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to - * be specified by overriding the virtual {_implementation} function. - * - * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a - * different contract through the {_delegate} function. - * - * The success and return data of the delegated call will be returned back to the caller of the proxy. - */ -abstract contract Proxy { - /** - * @dev Delegates the current call to `implementation`. - * - * This function does not return to its internal call site, it will return directly to the external caller. - */ - function _delegate(address implementation) internal virtual { - assembly { - // Copy msg.data. We take full control of memory in this inline assembly - // block because it will not return to Solidity code. We overwrite the - // Solidity scratch pad at memory position 0. - calldatacopy(0, 0, calldatasize()) - - // Call the implementation. - // out and outsize are 0 because we don't know the size yet. - let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0) - - // Copy the returned data. - returndatacopy(0, 0, returndatasize()) - - switch result - // delegatecall returns 0 on error. - case 0 { revert(0, returndatasize()) } - default { return(0, returndatasize()) } - } - } - - /** - * @dev This is a virtual function that should be overridden so it returns the address to which the fallback function - * and {_fallback} should delegate. - */ - function _implementation() internal view virtual returns (address); - - /** - * @dev Delegates the current call to the address returned by `_implementation()`. - * - * This function does not return to its internal call site, it will return directly to the external caller. - */ - function _fallback() internal virtual { - _beforeFallback(); - _delegate(_implementation()); - } - - /** - * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other - * function in the contract matches the call data. - */ - fallback() external payable virtual { - _fallback(); - } - - /** - * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data - * is empty. - */ - receive() external payable virtual { - _fallback(); - } - - /** - * @dev Hook that is called before falling back to the implementation. Can happen as part of a manual `_fallback` - * call, or as part of the Solidity `fallback` or `receive` functions. - * - * If overridden should call `super._beforeFallback()`. - */ - function _beforeFallback() internal virtual {} -} diff --git a/src/vendor/openzeppelin-solidity/v4.7.3/contracts/utils/Address.sol b/src/vendor/openzeppelin-solidity/v4.7.3/contracts/utils/Address.sol deleted file mode 100644 index 47e9cf3..0000000 --- a/src/vendor/openzeppelin-solidity/v4.7.3/contracts/utils/Address.sol +++ /dev/null @@ -1,236 +0,0 @@ -// SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol) - -pragma solidity ^0.8.1; - -/** - * @dev Collection of functions related to the address type - */ -library Address { - /** - * @dev Returns true if `account` is a contract. - * - * [IMPORTANT] - * ==== - * It is unsafe to assume that an address for which this function returns - * false is an externally-owned account (EOA) and not a contract. - * - * Among others, `isContract` will return false for the following - * types of addresses: - * - * - an externally-owned account - * - a contract in construction - * - an address where a contract will be created - * - an address where a contract lived, but was destroyed - * ==== - * - * [IMPORTANT] - * ==== - * You shouldn't rely on `isContract` to protect against flash loan attacks! - * - * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets - * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract - * constructor. - * ==== - */ - function isContract(address account) internal view returns (bool) { - // This method relies on extcodesize/address.code.length, which returns 0 - // for contracts in construction, since the code is only stored at the end - // of the constructor execution. - - return account.code.length > 0; - } - - /** - * @dev Replacement for Solidity's `transfer`: sends `amount` wei to - * `recipient`, forwarding all available gas and reverting on errors. - * - * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost - * of certain opcodes, possibly making contracts go over the 2300 gas limit - * imposed by `transfer`, making them unable to receive funds via - * `transfer`. {sendValue} removes this limitation. - * - * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. - * - * IMPORTANT: because control is transferred to `recipient`, care must be - * taken to not create reentrancy vulnerabilities. Consider using - * {ReentrancyGuard} or the - * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. - */ - function sendValue(address payable recipient, uint256 amount) internal { - require(address(this).balance >= amount, "Address: insufficient balance"); - - (bool success,) = recipient.call{value: amount}(""); - require(success, "Address: unable to send value, recipient may have reverted"); - } - - /** - * @dev Performs a Solidity function call using a low level `call`. A - * plain `call` is an unsafe replacement for a function call: use this - * function instead. - * - * If `target` reverts with a revert reason, it is bubbled up by this - * function (like regular Solidity function calls). - * - * Returns the raw returned data. To convert to the expected return value, - * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. - * - * Requirements: - * - * - `target` must be a contract. - * - calling `target` with `data` must not revert. - * - * _Available since v3.1._ - */ - function functionCall(address target, bytes memory data) internal returns (bytes memory) { - return functionCallWithValue(target, data, 0, "Address: low-level call failed"); - } - - /** - * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with - * `errorMessage` as a fallback revert reason when `target` reverts. - * - * _Available since v3.1._ - */ - function functionCall(address target, bytes memory data, string memory errorMessage) - internal - returns (bytes memory) - { - return functionCallWithValue(target, data, 0, errorMessage); - } - - /** - * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], - * but also transferring `value` wei to `target`. - * - * Requirements: - * - * - the calling contract must have an ETH balance of at least `value`. - * - the called Solidity function must be `payable`. - * - * _Available since v3.1._ - */ - function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { - return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); - } - - /** - * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but - * with `errorMessage` as a fallback revert reason when `target` reverts. - * - * _Available since v3.1._ - */ - function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) - internal - returns (bytes memory) - { - require(address(this).balance >= value, "Address: insufficient balance for call"); - (bool success, bytes memory returndata) = target.call{value: value}(data); - return verifyCallResultFromTarget(target, success, returndata, errorMessage); - } - - /** - * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], - * but performing a static call. - * - * _Available since v3.3._ - */ - function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { - return functionStaticCall(target, data, "Address: low-level static call failed"); - } - - /** - * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], - * but performing a static call. - * - * _Available since v3.3._ - */ - function functionStaticCall(address target, bytes memory data, string memory errorMessage) - internal - view - returns (bytes memory) - { - (bool success, bytes memory returndata) = target.staticcall(data); - return verifyCallResultFromTarget(target, success, returndata, errorMessage); - } - - /** - * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], - * but performing a delegate call. - * - * _Available since v3.4._ - */ - function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { - return functionDelegateCall(target, data, "Address: low-level delegate call failed"); - } - - /** - * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], - * but performing a delegate call. - * - * _Available since v3.4._ - */ - function functionDelegateCall(address target, bytes memory data, string memory errorMessage) - internal - returns (bytes memory) - { - (bool success, bytes memory returndata) = target.delegatecall(data); - return verifyCallResultFromTarget(target, success, returndata, errorMessage); - } - - /** - * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling - * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. - * - * _Available since v4.8._ - */ - function verifyCallResultFromTarget( - address target, - bool success, - bytes memory returndata, - string memory errorMessage - ) internal view returns (bytes memory) { - if (success) { - if (returndata.length == 0) { - // only check isContract if the call was successful and the return data is empty - // otherwise we already know that it was a contract - require(isContract(target), "Address: call to non-contract"); - } - return returndata; - } else { - _revert(returndata, errorMessage); - } - } - - /** - * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the - * revert reason or using the provided one. - * - * _Available since v4.3._ - */ - function verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) - internal - pure - returns (bytes memory) - { - if (success) { - return returndata; - } else { - _revert(returndata, errorMessage); - } - } - - function _revert(bytes memory returndata, string memory errorMessage) private pure { - // Look for revert reason and bubble it up if present - if (returndata.length > 0) { - // The easiest way to bubble the revert reason is using memory via assembly - /// @solidity memory-safe-assembly - assembly { - let returndata_size := mload(returndata) - revert(add(32, returndata), returndata_size) - } - } else { - revert(errorMessage); - } - } -} diff --git a/src/vendor/openzeppelin-solidity/v4.7.3/contracts/utils/Context.sol b/src/vendor/openzeppelin-solidity/v4.7.3/contracts/utils/Context.sol deleted file mode 100644 index f304065..0000000 --- a/src/vendor/openzeppelin-solidity/v4.7.3/contracts/utils/Context.sol +++ /dev/null @@ -1,24 +0,0 @@ -// SPDX-License-Identifier: MIT -// OpenZeppelin Contracts v4.4.1 (utils/Context.sol) - -pragma solidity ^0.8.0; - -/** - * @dev Provides information about the current execution context, including the - * sender of the transaction and its data. While these are generally available - * via msg.sender and msg.data, they should not be accessed in such a direct - * manner, since when dealing with meta-transactions the account sending and - * paying for execution may not be the actual sender (as far as an application - * is concerned). - * - * This contract is only required for intermediate, library-like contracts. - */ -abstract contract Context { - function _msgSender() internal view virtual returns (address) { - return msg.sender; - } - - function _msgData() internal view virtual returns (bytes calldata) { - return msg.data; - } -} diff --git a/src/vendor/openzeppelin-solidity/v4.7.3/contracts/utils/structs/EnumerableMap.sol b/src/vendor/openzeppelin-solidity/v4.7.3/contracts/utils/structs/EnumerableMap.sol deleted file mode 100644 index 350c161..0000000 --- a/src/vendor/openzeppelin-solidity/v4.7.3/contracts/utils/structs/EnumerableMap.sol +++ /dev/null @@ -1,505 +0,0 @@ -// SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v4.7.0) (utils/structs/EnumerableMap.sol) - -pragma solidity ^0.8.0; - -import "./EnumerableSet.sol"; - -/** - * @dev Library for managing an enumerable variant of Solidity's - * https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`] - * type. - * - * Maps have the following properties: - * - * - Entries are added, removed, and checked for existence in constant time - * (O(1)). - * - Entries are enumerated in O(n). No guarantees are made on the ordering. - * - * ``` - * contract Example { - * // Add the library methods - * using EnumerableMap for EnumerableMap.UintToAddressMap; - * - * // Declare a set state variable - * EnumerableMap.UintToAddressMap private myMap; - * } - * ``` - * - * The following map types are supported: - * - * - `uint256 -> address` (`UintToAddressMap`) since v3.0.0 - * - `address -> uint256` (`AddressToUintMap`) since v4.6.0 - * - `bytes32 -> bytes32` (`Bytes32ToBytes32`) since v4.6.0 - * - `uint256 -> uint256` (`UintToUintMap`) since v4.7.0 - * - `bytes32 -> uint256` (`Bytes32ToUintMap`) since v4.7.0 - * - * [WARNING] - * ==== - * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure unusable. - * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info. - * - * In order to clean an EnumerableMap, you can either remove all elements one by one or create a fresh instance using an array of EnumerableMap. - * ==== - */ -library EnumerableMap { - using EnumerableSet for EnumerableSet.Bytes32Set; - - // To implement this library for multiple types with as little code - // repetition as possible, we write it in terms of a generic Map type with - // bytes32 keys and values. - // The Map implementation uses private functions, and user-facing - // implementations (such as Uint256ToAddressMap) are just wrappers around - // the underlying Map. - // This means that we can only create new EnumerableMaps for types that fit - // in bytes32. - - struct Bytes32ToBytes32Map { - // Storage of keys - EnumerableSet.Bytes32Set _keys; - mapping(bytes32 => bytes32) _values; - } - - /** - * @dev Adds a key-value pair to a map, or updates the value for an existing - * key. O(1). - * - * Returns true if the key was added to the map, that is if it was not - * already present. - */ - function set(Bytes32ToBytes32Map storage map, bytes32 key, bytes32 value) internal returns (bool) { - map._values[key] = value; - return map._keys.add(key); - } - - /** - * @dev Removes a key-value pair from a map. O(1). - * - * Returns true if the key was removed from the map, that is if it was present. - */ - function remove(Bytes32ToBytes32Map storage map, bytes32 key) internal returns (bool) { - delete map._values[key]; - return map._keys.remove(key); - } - - /** - * @dev Returns true if the key is in the map. O(1). - */ - function contains(Bytes32ToBytes32Map storage map, bytes32 key) internal view returns (bool) { - return map._keys.contains(key); - } - - /** - * @dev Returns the number of key-value pairs in the map. O(1). - */ - function length(Bytes32ToBytes32Map storage map) internal view returns (uint256) { - return map._keys.length(); - } - - /** - * @dev Returns the key-value pair stored at position `index` in the map. O(1). - * - * Note that there are no guarantees on the ordering of entries inside the - * array, and it may change when more entries are added or removed. - * - * Requirements: - * - * - `index` must be strictly less than {length}. - */ - function at(Bytes32ToBytes32Map storage map, uint256 index) internal view returns (bytes32, bytes32) { - bytes32 key = map._keys.at(index); - return (key, map._values[key]); - } - - /** - * @dev Tries to returns the value associated with `key`. O(1). - * Does not revert if `key` is not in the map. - */ - function tryGet(Bytes32ToBytes32Map storage map, bytes32 key) internal view returns (bool, bytes32) { - bytes32 value = map._values[key]; - if (value == bytes32(0)) { - return (contains(map, key), bytes32(0)); - } else { - return (true, value); - } - } - - /** - * @dev Returns the value associated with `key`. O(1). - * - * Requirements: - * - * - `key` must be in the map. - */ - function get(Bytes32ToBytes32Map storage map, bytes32 key) internal view returns (bytes32) { - bytes32 value = map._values[key]; - require(value != 0 || contains(map, key), "EnumerableMap: nonexistent key"); - return value; - } - - /** - * @dev Same as {_get}, with a custom error message when `key` is not in the map. - * - * CAUTION: This function is deprecated because it requires allocating memory for the error - * message unnecessarily. For custom revert reasons use {_tryGet}. - */ - function get(Bytes32ToBytes32Map storage map, bytes32 key, string memory errorMessage) - internal - view - returns (bytes32) - { - bytes32 value = map._values[key]; - require(value != 0 || contains(map, key), errorMessage); - return value; - } - - // UintToUintMap - - struct UintToUintMap { - Bytes32ToBytes32Map _inner; - } - - /** - * @dev Adds a key-value pair to a map, or updates the value for an existing - * key. O(1). - * - * Returns true if the key was added to the map, that is if it was not - * already present. - */ - function set(UintToUintMap storage map, uint256 key, uint256 value) internal returns (bool) { - return set(map._inner, bytes32(key), bytes32(value)); - } - - /** - * @dev Removes a value from a set. O(1). - * - * Returns true if the key was removed from the map, that is if it was present. - */ - function remove(UintToUintMap storage map, uint256 key) internal returns (bool) { - return remove(map._inner, bytes32(key)); - } - - /** - * @dev Returns true if the key is in the map. O(1). - */ - function contains(UintToUintMap storage map, uint256 key) internal view returns (bool) { - return contains(map._inner, bytes32(key)); - } - - /** - * @dev Returns the number of elements in the map. O(1). - */ - function length(UintToUintMap storage map) internal view returns (uint256) { - return length(map._inner); - } - - /** - * @dev Returns the element stored at position `index` in the set. O(1). - * Note that there are no guarantees on the ordering of values inside the - * array, and it may change when more values are added or removed. - * - * Requirements: - * - * - `index` must be strictly less than {length}. - */ - function at(UintToUintMap storage map, uint256 index) internal view returns (uint256, uint256) { - (bytes32 key, bytes32 value) = at(map._inner, index); - return (uint256(key), uint256(value)); - } - - /** - * @dev Tries to returns the value associated with `key`. O(1). - * Does not revert if `key` is not in the map. - */ - function tryGet(UintToUintMap storage map, uint256 key) internal view returns (bool, uint256) { - (bool success, bytes32 value) = tryGet(map._inner, bytes32(key)); - return (success, uint256(value)); - } - - /** - * @dev Returns the value associated with `key`. O(1). - * - * Requirements: - * - * - `key` must be in the map. - */ - function get(UintToUintMap storage map, uint256 key) internal view returns (uint256) { - return uint256(get(map._inner, bytes32(key))); - } - - /** - * @dev Same as {get}, with a custom error message when `key` is not in the map. - * - * CAUTION: This function is deprecated because it requires allocating memory for the error - * message unnecessarily. For custom revert reasons use {tryGet}. - */ - function get(UintToUintMap storage map, uint256 key, string memory errorMessage) internal view returns (uint256) { - return uint256(get(map._inner, bytes32(key), errorMessage)); - } - - // UintToAddressMap - - struct UintToAddressMap { - Bytes32ToBytes32Map _inner; - } - - /** - * @dev Adds a key-value pair to a map, or updates the value for an existing - * key. O(1). - * - * Returns true if the key was added to the map, that is if it was not - * already present. - */ - function set(UintToAddressMap storage map, uint256 key, address value) internal returns (bool) { - return set(map._inner, bytes32(key), bytes32(uint256(uint160(value)))); - } - - /** - * @dev Removes a value from a set. O(1). - * - * Returns true if the key was removed from the map, that is if it was present. - */ - function remove(UintToAddressMap storage map, uint256 key) internal returns (bool) { - return remove(map._inner, bytes32(key)); - } - - /** - * @dev Returns true if the key is in the map. O(1). - */ - function contains(UintToAddressMap storage map, uint256 key) internal view returns (bool) { - return contains(map._inner, bytes32(key)); - } - - /** - * @dev Returns the number of elements in the map. O(1). - */ - function length(UintToAddressMap storage map) internal view returns (uint256) { - return length(map._inner); - } - - /** - * @dev Returns the element stored at position `index` in the set. O(1). - * Note that there are no guarantees on the ordering of values inside the - * array, and it may change when more values are added or removed. - * - * Requirements: - * - * - `index` must be strictly less than {length}. - */ - function at(UintToAddressMap storage map, uint256 index) internal view returns (uint256, address) { - (bytes32 key, bytes32 value) = at(map._inner, index); - return (uint256(key), address(uint160(uint256(value)))); - } - - /** - * @dev Tries to returns the value associated with `key`. O(1). - * Does not revert if `key` is not in the map. - * - * _Available since v3.4._ - */ - function tryGet(UintToAddressMap storage map, uint256 key) internal view returns (bool, address) { - (bool success, bytes32 value) = tryGet(map._inner, bytes32(key)); - return (success, address(uint160(uint256(value)))); - } - - /** - * @dev Returns the value associated with `key`. O(1). - * - * Requirements: - * - * - `key` must be in the map. - */ - function get(UintToAddressMap storage map, uint256 key) internal view returns (address) { - return address(uint160(uint256(get(map._inner, bytes32(key))))); - } - - /** - * @dev Same as {get}, with a custom error message when `key` is not in the map. - * - * CAUTION: This function is deprecated because it requires allocating memory for the error - * message unnecessarily. For custom revert reasons use {tryGet}. - */ - function get(UintToAddressMap storage map, uint256 key, string memory errorMessage) - internal - view - returns (address) - { - return address(uint160(uint256(get(map._inner, bytes32(key), errorMessage)))); - } - - // AddressToUintMap - - struct AddressToUintMap { - Bytes32ToBytes32Map _inner; - } - - /** - * @dev Adds a key-value pair to a map, or updates the value for an existing - * key. O(1). - * - * Returns true if the key was added to the map, that is if it was not - * already present. - */ - function set(AddressToUintMap storage map, address key, uint256 value) internal returns (bool) { - return set(map._inner, bytes32(uint256(uint160(key))), bytes32(value)); - } - - /** - * @dev Removes a value from a set. O(1). - * - * Returns true if the key was removed from the map, that is if it was present. - */ - function remove(AddressToUintMap storage map, address key) internal returns (bool) { - return remove(map._inner, bytes32(uint256(uint160(key)))); - } - - /** - * @dev Returns true if the key is in the map. O(1). - */ - function contains(AddressToUintMap storage map, address key) internal view returns (bool) { - return contains(map._inner, bytes32(uint256(uint160(key)))); - } - - /** - * @dev Returns the number of elements in the map. O(1). - */ - function length(AddressToUintMap storage map) internal view returns (uint256) { - return length(map._inner); - } - - /** - * @dev Returns the element stored at position `index` in the set. O(1). - * Note that there are no guarantees on the ordering of values inside the - * array, and it may change when more values are added or removed. - * - * Requirements: - * - * - `index` must be strictly less than {length}. - */ - function at(AddressToUintMap storage map, uint256 index) internal view returns (address, uint256) { - (bytes32 key, bytes32 value) = at(map._inner, index); - return (address(uint160(uint256(key))), uint256(value)); - } - - /** - * @dev Tries to returns the value associated with `key`. O(1). - * Does not revert if `key` is not in the map. - */ - function tryGet(AddressToUintMap storage map, address key) internal view returns (bool, uint256) { - (bool success, bytes32 value) = tryGet(map._inner, bytes32(uint256(uint160(key)))); - return (success, uint256(value)); - } - - /** - * @dev Returns the value associated with `key`. O(1). - * - * Requirements: - * - * - `key` must be in the map. - */ - function get(AddressToUintMap storage map, address key) internal view returns (uint256) { - return uint256(get(map._inner, bytes32(uint256(uint160(key))))); - } - - /** - * @dev Same as {get}, with a custom error message when `key` is not in the map. - * - * CAUTION: This function is deprecated because it requires allocating memory for the error - * message unnecessarily. For custom revert reasons use {tryGet}. - */ - function get(AddressToUintMap storage map, address key, string memory errorMessage) - internal - view - returns (uint256) - { - return uint256(get(map._inner, bytes32(uint256(uint160(key))), errorMessage)); - } - - // Bytes32ToUintMap - - struct Bytes32ToUintMap { - Bytes32ToBytes32Map _inner; - } - - /** - * @dev Adds a key-value pair to a map, or updates the value for an existing - * key. O(1). - * - * Returns true if the key was added to the map, that is if it was not - * already present. - */ - function set(Bytes32ToUintMap storage map, bytes32 key, uint256 value) internal returns (bool) { - return set(map._inner, key, bytes32(value)); - } - - /** - * @dev Removes a value from a set. O(1). - * - * Returns true if the key was removed from the map, that is if it was present. - */ - function remove(Bytes32ToUintMap storage map, bytes32 key) internal returns (bool) { - return remove(map._inner, key); - } - - /** - * @dev Returns true if the key is in the map. O(1). - */ - function contains(Bytes32ToUintMap storage map, bytes32 key) internal view returns (bool) { - return contains(map._inner, key); - } - - /** - * @dev Returns the number of elements in the map. O(1). - */ - function length(Bytes32ToUintMap storage map) internal view returns (uint256) { - return length(map._inner); - } - - /** - * @dev Returns the element stored at position `index` in the set. O(1). - * Note that there are no guarantees on the ordering of values inside the - * array, and it may change when more values are added or removed. - * - * Requirements: - * - * - `index` must be strictly less than {length}. - */ - function at(Bytes32ToUintMap storage map, uint256 index) internal view returns (bytes32, uint256) { - (bytes32 key, bytes32 value) = at(map._inner, index); - return (key, uint256(value)); - } - - /** - * @dev Tries to returns the value associated with `key`. O(1). - * Does not revert if `key` is not in the map. - */ - function tryGet(Bytes32ToUintMap storage map, bytes32 key) internal view returns (bool, uint256) { - (bool success, bytes32 value) = tryGet(map._inner, key); - return (success, uint256(value)); - } - - /** - * @dev Returns the value associated with `key`. O(1). - * - * Requirements: - * - * - `key` must be in the map. - */ - function get(Bytes32ToUintMap storage map, bytes32 key) internal view returns (uint256) { - return uint256(get(map._inner, key)); - } - - /** - * @dev Same as {get}, with a custom error message when `key` is not in the map. - * - * CAUTION: This function is deprecated because it requires allocating memory for the error - * message unnecessarily. For custom revert reasons use {tryGet}. - */ - function get(Bytes32ToUintMap storage map, bytes32 key, string memory errorMessage) - internal - view - returns (uint256) - { - return uint256(get(map._inner, key, errorMessage)); - } -} diff --git a/src/vendor/openzeppelin-solidity/v4.7.3/contracts/utils/structs/EnumerableSet.sol b/src/vendor/openzeppelin-solidity/v4.7.3/contracts/utils/structs/EnumerableSet.sol deleted file mode 100644 index 1d8029e..0000000 --- a/src/vendor/openzeppelin-solidity/v4.7.3/contracts/utils/structs/EnumerableSet.sol +++ /dev/null @@ -1,376 +0,0 @@ -// SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v4.7.0) (utils/structs/EnumerableSet.sol) -// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js. - -pragma solidity ^0.8.0; - -/** - * @dev Library for managing - * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive - * types. - * - * Sets have the following properties: - * - * - Elements are added, removed, and checked for existence in constant time - * (O(1)). - * - Elements are enumerated in O(n). No guarantees are made on the ordering. - * - * ``` - * contract Example { - * // Add the library methods - * using EnumerableSet for EnumerableSet.AddressSet; - * - * // Declare a set state variable - * EnumerableSet.AddressSet private mySet; - * } - * ``` - * - * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) - * and `uint256` (`UintSet`) are supported. - * - * [WARNING] - * ==== - * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure unusable. - * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info. - * - * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an array of EnumerableSet. - * ==== - */ -library EnumerableSet { - // To implement this library for multiple types with as little code - // repetition as possible, we write it in terms of a generic Set type with - // bytes32 values. - // The Set implementation uses private functions, and user-facing - // implementations (such as AddressSet) are just wrappers around the - // underlying Set. - // This means that we can only create new EnumerableSets for types that fit - // in bytes32. - - struct Set { - // Storage of set values - bytes32[] _values; - // Position of the value in the `values` array, plus 1 because index 0 - // means a value is not in the set. - mapping(bytes32 => uint256) _indexes; - } - - /** - * @dev Add a value to a set. O(1). - * - * Returns true if the value was added to the set, that is if it was not - * already present. - */ - function _add(Set storage set, bytes32 value) private returns (bool) { - if (!_contains(set, value)) { - set._values.push(value); - // The value is stored at length-1, but we add 1 to all indexes - // and use 0 as a sentinel value - set._indexes[value] = set._values.length; - return true; - } else { - return false; - } - } - - /** - * @dev Removes a value from a set. O(1). - * - * Returns true if the value was removed from the set, that is if it was - * present. - */ - function _remove(Set storage set, bytes32 value) private returns (bool) { - // We read and store the value's index to prevent multiple reads from the same storage slot - uint256 valueIndex = set._indexes[value]; - - if (valueIndex != 0) { - // Equivalent to contains(set, value) - // To delete an element from the _values array in O(1), we swap the element to delete with the last one in - // the array, and then remove the last element (sometimes called as 'swap and pop'). - // This modifies the order of the array, as noted in {at}. - - uint256 toDeleteIndex = valueIndex - 1; - uint256 lastIndex = set._values.length - 1; - - if (lastIndex != toDeleteIndex) { - bytes32 lastValue = set._values[lastIndex]; - - // Move the last value to the index where the value to delete is - set._values[toDeleteIndex] = lastValue; - // Update the index for the moved value - set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex - } - - // Delete the slot where the moved value was stored - set._values.pop(); - - // Delete the index for the deleted slot - delete set._indexes[value]; - - return true; - } else { - return false; - } - } - - /** - * @dev Returns true if the value is in the set. O(1). - */ - function _contains(Set storage set, bytes32 value) private view returns (bool) { - return set._indexes[value] != 0; - } - - /** - * @dev Returns the number of values on the set. O(1). - */ - function _length(Set storage set) private view returns (uint256) { - return set._values.length; - } - - /** - * @dev Returns the value stored at position `index` in the set. O(1). - * - * Note that there are no guarantees on the ordering of values inside the - * array, and it may change when more values are added or removed. - * - * Requirements: - * - * - `index` must be strictly less than {length}. - */ - function _at(Set storage set, uint256 index) private view returns (bytes32) { - return set._values[index]; - } - - /** - * @dev Return the entire set in an array - * - * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed - * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that - * this function has an unbounded cost, and using it as part of a state-changing function may render the function - * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. - */ - function _values(Set storage set) private view returns (bytes32[] memory) { - return set._values; - } - - // Bytes32Set - - struct Bytes32Set { - Set _inner; - } - - /** - * @dev Add a value to a set. O(1). - * - * Returns true if the value was added to the set, that is if it was not - * already present. - */ - function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { - return _add(set._inner, value); - } - - /** - * @dev Removes a value from a set. O(1). - * - * Returns true if the value was removed from the set, that is if it was - * present. - */ - function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { - return _remove(set._inner, value); - } - - /** - * @dev Returns true if the value is in the set. O(1). - */ - function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { - return _contains(set._inner, value); - } - - /** - * @dev Returns the number of values in the set. O(1). - */ - function length(Bytes32Set storage set) internal view returns (uint256) { - return _length(set._inner); - } - - /** - * @dev Returns the value stored at position `index` in the set. O(1). - * - * Note that there are no guarantees on the ordering of values inside the - * array, and it may change when more values are added or removed. - * - * Requirements: - * - * - `index` must be strictly less than {length}. - */ - function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { - return _at(set._inner, index); - } - - /** - * @dev Return the entire set in an array - * - * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed - * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that - * this function has an unbounded cost, and using it as part of a state-changing function may render the function - * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. - */ - function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { - bytes32[] memory store = _values(set._inner); - bytes32[] memory result; - - /// @solidity memory-safe-assembly - assembly { - result := store - } - - return result; - } - - // AddressSet - - struct AddressSet { - Set _inner; - } - - /** - * @dev Add a value to a set. O(1). - * - * Returns true if the value was added to the set, that is if it was not - * already present. - */ - function add(AddressSet storage set, address value) internal returns (bool) { - return _add(set._inner, bytes32(uint256(uint160(value)))); - } - - /** - * @dev Removes a value from a set. O(1). - * - * Returns true if the value was removed from the set, that is if it was - * present. - */ - function remove(AddressSet storage set, address value) internal returns (bool) { - return _remove(set._inner, bytes32(uint256(uint160(value)))); - } - - /** - * @dev Returns true if the value is in the set. O(1). - */ - function contains(AddressSet storage set, address value) internal view returns (bool) { - return _contains(set._inner, bytes32(uint256(uint160(value)))); - } - - /** - * @dev Returns the number of values in the set. O(1). - */ - function length(AddressSet storage set) internal view returns (uint256) { - return _length(set._inner); - } - - /** - * @dev Returns the value stored at position `index` in the set. O(1). - * - * Note that there are no guarantees on the ordering of values inside the - * array, and it may change when more values are added or removed. - * - * Requirements: - * - * - `index` must be strictly less than {length}. - */ - function at(AddressSet storage set, uint256 index) internal view returns (address) { - return address(uint160(uint256(_at(set._inner, index)))); - } - - /** - * @dev Return the entire set in an array - * - * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed - * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that - * this function has an unbounded cost, and using it as part of a state-changing function may render the function - * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. - */ - function values(AddressSet storage set) internal view returns (address[] memory) { - bytes32[] memory store = _values(set._inner); - address[] memory result; - - /// @solidity memory-safe-assembly - assembly { - result := store - } - - return result; - } - - // UintSet - - struct UintSet { - Set _inner; - } - - /** - * @dev Add a value to a set. O(1). - * - * Returns true if the value was added to the set, that is if it was not - * already present. - */ - function add(UintSet storage set, uint256 value) internal returns (bool) { - return _add(set._inner, bytes32(value)); - } - - /** - * @dev Removes a value from a set. O(1). - * - * Returns true if the value was removed from the set, that is if it was - * present. - */ - function remove(UintSet storage set, uint256 value) internal returns (bool) { - return _remove(set._inner, bytes32(value)); - } - - /** - * @dev Returns true if the value is in the set. O(1). - */ - function contains(UintSet storage set, uint256 value) internal view returns (bool) { - return _contains(set._inner, bytes32(value)); - } - - /** - * @dev Returns the number of values in the set. O(1). - */ - function length(UintSet storage set) internal view returns (uint256) { - return _length(set._inner); - } - - /** - * @dev Returns the value stored at position `index` in the set. O(1). - * - * Note that there are no guarantees on the ordering of values inside the - * array, and it may change when more values are added or removed. - * - * Requirements: - * - * - `index` must be strictly less than {length}. - */ - function at(UintSet storage set, uint256 index) internal view returns (uint256) { - return uint256(_at(set._inner, index)); - } - - /** - * @dev Return the entire set in an array - * - * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed - * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that - * this function has an unbounded cost, and using it as part of a state-changing function may render the function - * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. - */ - function values(UintSet storage set) internal view returns (uint256[] memory) { - bytes32[] memory store = _values(set._inner); - uint256[] memory result; - - /// @solidity memory-safe-assembly - assembly { - result := store - } - - return result; - } -} diff --git a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/access/AccessControl.sol b/src/vendor/openzeppelin-solidity/v4.8.3/contracts/access/AccessControl.sol deleted file mode 100644 index 386b85c..0000000 --- a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/access/AccessControl.sol +++ /dev/null @@ -1,247 +0,0 @@ -// SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v4.8.0) (access/AccessControl.sol) - -pragma solidity ^0.8.0; - -import "./IAccessControl.sol"; -import "../utils/Context.sol"; -import "../utils/Strings.sol"; -import "../utils/introspection/ERC165.sol"; - -/** - * @dev Contract module that allows children to implement role-based access - * control mechanisms. This is a lightweight version that doesn't allow enumerating role - * members except through off-chain means by accessing the contract event logs. Some - * applications may benefit from on-chain enumerability, for those cases see - * {AccessControlEnumerable}. - * - * Roles are referred to by their `bytes32` identifier. These should be exposed - * in the external API and be unique. The best way to achieve this is by - * using `public constant` hash digests: - * - * ``` - * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); - * ``` - * - * Roles can be used to represent a set of permissions. To restrict access to a - * function call, use {hasRole}: - * - * ``` - * function foo() public { - * require(hasRole(MY_ROLE, msg.sender)); - * ... - * } - * ``` - * - * Roles can be granted and revoked dynamically via the {grantRole} and - * {revokeRole} functions. Each role has an associated admin role, and only - * accounts that have a role's admin role can call {grantRole} and {revokeRole}. - * - * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means - * that only accounts with this role will be able to grant or revoke other - * roles. More complex role relationships can be created by using - * {_setRoleAdmin}. - * - * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to - * grant and revoke this role. Extra precautions should be taken to secure - * accounts that have been granted it. - */ -abstract contract AccessControl is Context, IAccessControl, ERC165 { - struct RoleData { - mapping(address => bool) members; - bytes32 adminRole; - } - - mapping(bytes32 => RoleData) private _roles; - - bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; - - /** - * @dev Modifier that checks that an account has a specific role. Reverts - * with a standardized message including the required role. - * - * The format of the revert reason is given by the following regular expression: - * - * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ - * - * _Available since v4.1._ - */ - modifier onlyRole(bytes32 role) { - _checkRole(role); - _; - } - - /** - * @dev See {IERC165-supportsInterface}. - */ - function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { - return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); - } - - /** - * @dev Returns `true` if `account` has been granted `role`. - */ - function hasRole(bytes32 role, address account) public view virtual override returns (bool) { - return _roles[role].members[account]; - } - - /** - * @dev Revert with a standard message if `_msgSender()` is missing `role`. - * Overriding this function changes the behavior of the {onlyRole} modifier. - * - * Format of the revert message is described in {_checkRole}. - * - * _Available since v4.6._ - */ - function _checkRole(bytes32 role) internal view virtual { - _checkRole(role, _msgSender()); - } - - /** - * @dev Revert with a standard message if `account` is missing `role`. - * - * The format of the revert reason is given by the following regular expression: - * - * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/ - */ - function _checkRole(bytes32 role, address account) internal view virtual { - if (!hasRole(role, account)) { - revert( - string( - abi.encodePacked( - "AccessControl: account ", - Strings.toHexString(account), - " is missing role ", - Strings.toHexString(uint256(role), 32) - ) - ) - ); - } - } - - /** - * @dev Returns the admin role that controls `role`. See {grantRole} and - * {revokeRole}. - * - * To change a role's admin, use {_setRoleAdmin}. - */ - function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) { - return _roles[role].adminRole; - } - - /** - * @dev Grants `role` to `account`. - * - * If `account` had not been already granted `role`, emits a {RoleGranted} - * event. - * - * Requirements: - * - * - the caller must have ``role``'s admin role. - * - * May emit a {RoleGranted} event. - */ - function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { - _grantRole(role, account); - } - - /** - * @dev Revokes `role` from `account`. - * - * If `account` had been granted `role`, emits a {RoleRevoked} event. - * - * Requirements: - * - * - the caller must have ``role``'s admin role. - * - * May emit a {RoleRevoked} event. - */ - function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) { - _revokeRole(role, account); - } - - /** - * @dev Revokes `role` from the calling account. - * - * Roles are often managed via {grantRole} and {revokeRole}: this function's - * purpose is to provide a mechanism for accounts to lose their privileges - * if they are compromised (such as when a trusted device is misplaced). - * - * If the calling account had been revoked `role`, emits a {RoleRevoked} - * event. - * - * Requirements: - * - * - the caller must be `account`. - * - * May emit a {RoleRevoked} event. - */ - function renounceRole(bytes32 role, address account) public virtual override { - require(account == _msgSender(), "AccessControl: can only renounce roles for self"); - - _revokeRole(role, account); - } - - /** - * @dev Grants `role` to `account`. - * - * If `account` had not been already granted `role`, emits a {RoleGranted} - * event. Note that unlike {grantRole}, this function doesn't perform any - * checks on the calling account. - * - * May emit a {RoleGranted} event. - * - * [WARNING] - * ==== - * This function should only be called from the constructor when setting - * up the initial roles for the system. - * - * Using this function in any other way is effectively circumventing the admin - * system imposed by {AccessControl}. - * ==== - * - * NOTE: This function is deprecated in favor of {_grantRole}. - */ - function _setupRole(bytes32 role, address account) internal virtual { - _grantRole(role, account); - } - - /** - * @dev Sets `adminRole` as ``role``'s admin role. - * - * Emits a {RoleAdminChanged} event. - */ - function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { - bytes32 previousAdminRole = getRoleAdmin(role); - _roles[role].adminRole = adminRole; - emit RoleAdminChanged(role, previousAdminRole, adminRole); - } - - /** - * @dev Grants `role` to `account`. - * - * Internal function without access restriction. - * - * May emit a {RoleGranted} event. - */ - function _grantRole(bytes32 role, address account) internal virtual { - if (!hasRole(role, account)) { - _roles[role].members[account] = true; - emit RoleGranted(role, account, _msgSender()); - } - } - - /** - * @dev Revokes `role` from `account`. - * - * Internal function without access restriction. - * - * May emit a {RoleRevoked} event. - */ - function _revokeRole(bytes32 role, address account) internal virtual { - if (hasRole(role, account)) { - _roles[role].members[account] = false; - emit RoleRevoked(role, account, _msgSender()); - } - } -} diff --git a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/access/IAccessControl.sol b/src/vendor/openzeppelin-solidity/v4.8.3/contracts/access/IAccessControl.sol deleted file mode 100644 index f773ecc..0000000 --- a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/access/IAccessControl.sol +++ /dev/null @@ -1,88 +0,0 @@ -// SPDX-License-Identifier: MIT -// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol) - -pragma solidity ^0.8.0; - -/** - * @dev External interface of AccessControl declared to support ERC165 detection. - */ -interface IAccessControl { - /** - * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` - * - * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite - * {RoleAdminChanged} not being emitted signaling this. - * - * _Available since v3.1._ - */ - event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); - - /** - * @dev Emitted when `account` is granted `role`. - * - * `sender` is the account that originated the contract call, an admin role - * bearer except when using {AccessControl-_setupRole}. - */ - event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); - - /** - * @dev Emitted when `account` is revoked `role`. - * - * `sender` is the account that originated the contract call: - * - if using `revokeRole`, it is the admin role bearer - * - if using `renounceRole`, it is the role bearer (i.e. `account`) - */ - event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); - - /** - * @dev Returns `true` if `account` has been granted `role`. - */ - function hasRole(bytes32 role, address account) external view returns (bool); - - /** - * @dev Returns the admin role that controls `role`. See {grantRole} and - * {revokeRole}. - * - * To change a role's admin, use {AccessControl-_setRoleAdmin}. - */ - function getRoleAdmin(bytes32 role) external view returns (bytes32); - - /** - * @dev Grants `role` to `account`. - * - * If `account` had not been already granted `role`, emits a {RoleGranted} - * event. - * - * Requirements: - * - * - the caller must have ``role``'s admin role. - */ - function grantRole(bytes32 role, address account) external; - - /** - * @dev Revokes `role` from `account`. - * - * If `account` had been granted `role`, emits a {RoleRevoked} event. - * - * Requirements: - * - * - the caller must have ``role``'s admin role. - */ - function revokeRole(bytes32 role, address account) external; - - /** - * @dev Revokes `role` from the calling account. - * - * Roles are often managed via {grantRole} and {revokeRole}: this function's - * purpose is to provide a mechanism for accounts to lose their privileges - * if they are compromised (such as when a trusted device is misplaced). - * - * If the calling account had been granted `role`, emits a {RoleRevoked} - * event. - * - * Requirements: - * - * - the caller must be `account`. - */ - function renounceRole(bytes32 role, address account) external; -} diff --git a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/interfaces/IERC165.sol b/src/vendor/openzeppelin-solidity/v4.8.3/contracts/interfaces/IERC165.sol deleted file mode 100644 index b97c4da..0000000 --- a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/interfaces/IERC165.sol +++ /dev/null @@ -1,6 +0,0 @@ -// SPDX-License-Identifier: MIT -// OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol) - -pragma solidity ^0.8.0; - -import "../utils/introspection/IERC165.sol"; diff --git a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/interfaces/IERC20.sol b/src/vendor/openzeppelin-solidity/v4.8.3/contracts/interfaces/IERC20.sol deleted file mode 100644 index a819316..0000000 --- a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/interfaces/IERC20.sol +++ /dev/null @@ -1,6 +0,0 @@ -// SPDX-License-Identifier: MIT -// OpenZeppelin Contracts v4.4.1 (interfaces/IERC20.sol) - -pragma solidity ^0.8.0; - -import "../token/ERC20/IERC20.sol"; diff --git a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/interfaces/draft-IERC20Permit.sol b/src/vendor/openzeppelin-solidity/v4.8.3/contracts/interfaces/draft-IERC20Permit.sol deleted file mode 100644 index 9048c3a..0000000 --- a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/interfaces/draft-IERC20Permit.sol +++ /dev/null @@ -1,160 +0,0 @@ -// SPDX-License-Identifier: MIT -pragma solidity ^0.8.0; - -/** - * @dev Standard ERC20 Errors - * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens. - */ -interface IERC20Errors { - /** - * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. - * @param sender Address whose tokens are being transferred. - * @param balance Current balance for the interacting account. - * @param needed Minimum amount required to perform a transfer. - */ - error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed); - - /** - * @dev Indicates a failure with the token `sender`. Used in transfers. - * @param sender Address whose tokens are being transferred. - */ - error ERC20InvalidSender(address sender); - - /** - * @dev Indicates a failure with the token `receiver`. Used in transfers. - * @param receiver Address to which tokens are being transferred. - */ - error ERC20InvalidReceiver(address receiver); - - /** - * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers. - * @param spender Address that may be allowed to operate on tokens without being their owner. - * @param allowance Amount of tokens a `spender` is allowed to operate with. - * @param needed Minimum amount required to perform a transfer. - */ - error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed); - - /** - * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. - * @param approver Address initiating an approval operation. - */ - error ERC20InvalidApprover(address approver); - - /** - * @dev Indicates a failure with the `spender` to be approved. Used in approvals. - * @param spender Address that may be allowed to operate on tokens without being their owner. - */ - error ERC20InvalidSpender(address spender); -} - -/** - * @dev Standard ERC721 Errors - * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens. - */ -interface IERC721Errors { - /** - * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20. - * Used in balance queries. - * @param owner Address of the current owner of a token. - */ - error ERC721InvalidOwner(address owner); - - /** - * @dev Indicates a `tokenId` whose `owner` is the zero address. - * @param tokenId Identifier number of a token. - */ - error ERC721NonexistentToken(uint256 tokenId); - - /** - * @dev Indicates an error related to the ownership over a particular token. Used in transfers. - * @param sender Address whose tokens are being transferred. - * @param tokenId Identifier number of a token. - * @param owner Address of the current owner of a token. - */ - error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner); - - /** - * @dev Indicates a failure with the token `sender`. Used in transfers. - * @param sender Address whose tokens are being transferred. - */ - error ERC721InvalidSender(address sender); - - /** - * @dev Indicates a failure with the token `receiver`. Used in transfers. - * @param receiver Address to which tokens are being transferred. - */ - error ERC721InvalidReceiver(address receiver); - - /** - * @dev Indicates a failure with the `operator`’s approval. Used in transfers. - * @param operator Address that may be allowed to operate on tokens without being their owner. - * @param tokenId Identifier number of a token. - */ - error ERC721InsufficientApproval(address operator, uint256 tokenId); - - /** - * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. - * @param approver Address initiating an approval operation. - */ - error ERC721InvalidApprover(address approver); - - /** - * @dev Indicates a failure with the `operator` to be approved. Used in approvals. - * @param operator Address that may be allowed to operate on tokens without being their owner. - */ - error ERC721InvalidOperator(address operator); -} - -/** - * @dev Standard ERC1155 Errors - * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens. - */ -interface IERC1155Errors { - /** - * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. - * @param sender Address whose tokens are being transferred. - * @param balance Current balance for the interacting account. - * @param needed Minimum amount required to perform a transfer. - * @param tokenId Identifier number of a token. - */ - error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId); - - /** - * @dev Indicates a failure with the token `sender`. Used in transfers. - * @param sender Address whose tokens are being transferred. - */ - error ERC1155InvalidSender(address sender); - - /** - * @dev Indicates a failure with the token `receiver`. Used in transfers. - * @param receiver Address to which tokens are being transferred. - */ - error ERC1155InvalidReceiver(address receiver); - - /** - * @dev Indicates a failure with the `operator`’s approval. Used in transfers. - * @param operator Address that may be allowed to operate on tokens without being their owner. - * @param owner Address of the current owner of a token. - */ - error ERC1155MissingApprovalForAll(address operator, address owner); - - /** - * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. - * @param approver Address initiating an approval operation. - */ - error ERC1155InvalidApprover(address approver); - - /** - * @dev Indicates a failure with the `operator` to be approved. Used in approvals. - * @param operator Address that may be allowed to operate on tokens without being their owner. - */ - error ERC1155InvalidOperator(address operator); - - /** - * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. - * Used in batch transfers. - * @param idsLength Length of the array of token identifiers - * @param valuesLength Length of the array of token amounts - */ - error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength); -} diff --git a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/mocks/ERC20Mock.sol b/src/vendor/openzeppelin-solidity/v4.8.3/contracts/mocks/ERC20Mock.sol deleted file mode 100644 index e250343..0000000 --- a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/mocks/ERC20Mock.sol +++ /dev/null @@ -1,31 +0,0 @@ -// SPDX-License-Identifier: MIT - -pragma solidity ^0.8.0; - -import "../token/ERC20/ERC20.sol"; - -// mock class using ERC20 -contract ERC20Mock is ERC20 { - constructor(string memory name, string memory symbol, address initialAccount, uint256 initialBalance) - payable - ERC20(name, symbol) - { - _mint(initialAccount, initialBalance); - } - - function mint(address account, uint256 amount) public { - _mint(account, amount); - } - - function burn(address account, uint256 amount) public { - _burn(account, amount); - } - - function transferInternal(address from, address to, uint256 value) public { - _transfer(from, to, value); - } - - function approveInternal(address owner, address spender, uint256 value) public { - _approve(owner, spender, value); - } -} diff --git a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/security/Pausable.sol b/src/vendor/openzeppelin-solidity/v4.8.3/contracts/security/Pausable.sol deleted file mode 100644 index bdd1184..0000000 --- a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/security/Pausable.sol +++ /dev/null @@ -1,105 +0,0 @@ -// SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol) - -pragma solidity ^0.8.0; - -import "../utils/Context.sol"; - -/** - * @dev Contract module which allows children to implement an emergency stop - * mechanism that can be triggered by an authorized account. - * - * This module is used through inheritance. It will make available the - * modifiers `whenNotPaused` and `whenPaused`, which can be applied to - * the functions of your contract. Note that they will not be pausable by - * simply including this module, only once the modifiers are put in place. - */ -abstract contract Pausable is Context { - /** - * @dev Emitted when the pause is triggered by `account`. - */ - event Paused(address account); - - /** - * @dev Emitted when the pause is lifted by `account`. - */ - event Unpaused(address account); - - bool private _paused; - - /** - * @dev Initializes the contract in unpaused state. - */ - constructor() { - _paused = false; - } - - /** - * @dev Modifier to make a function callable only when the contract is not paused. - * - * Requirements: - * - * - The contract must not be paused. - */ - modifier whenNotPaused() { - _requireNotPaused(); - _; - } - - /** - * @dev Modifier to make a function callable only when the contract is paused. - * - * Requirements: - * - * - The contract must be paused. - */ - modifier whenPaused() { - _requirePaused(); - _; - } - - /** - * @dev Returns true if the contract is paused, and false otherwise. - */ - function paused() public view virtual returns (bool) { - return _paused; - } - - /** - * @dev Throws if the contract is paused. - */ - function _requireNotPaused() internal view virtual { - require(!paused(), "Pausable: paused"); - } - - /** - * @dev Throws if the contract is not paused. - */ - function _requirePaused() internal view virtual { - require(paused(), "Pausable: not paused"); - } - - /** - * @dev Triggers stopped state. - * - * Requirements: - * - * - The contract must not be paused. - */ - function _pause() internal virtual whenNotPaused { - _paused = true; - emit Paused(_msgSender()); - } - - /** - * @dev Returns to normal state. - * - * Requirements: - * - * - The contract must be paused. - */ - function _unpause() internal virtual whenPaused { - _paused = false; - emit Unpaused(_msgSender()); - } -} diff --git a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/ERC20.sol b/src/vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/ERC20.sol deleted file mode 100644 index 5a2d942..0000000 --- a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/ERC20.sol +++ /dev/null @@ -1,366 +0,0 @@ -// SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol) - -pragma solidity ^0.8.0; - -import "./IERC20.sol"; -import "./extensions/IERC20Metadata.sol"; -import "../../utils/Context.sol"; - -/** - * @dev Implementation of the {IERC20} interface. - * - * This implementation is agnostic to the way tokens are created. This means - * that a supply mechanism has to be added in a derived contract using {_mint}. - * For a generic mechanism see {ERC20PresetMinterPauser}. - * - * TIP: For a detailed writeup see our guide - * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How - * to implement supply mechanisms]. - * - * We have followed general OpenZeppelin Contracts guidelines: functions revert - * instead returning `false` on failure. This behavior is nonetheless - * conventional and does not conflict with the expectations of ERC20 - * applications. - * - * Additionally, an {Approval} event is emitted on calls to {transferFrom}. - * This allows applications to reconstruct the allowance for all accounts just - * by listening to said events. Other implementations of the EIP may not emit - * these events, as it isn't required by the specification. - * - * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} - * functions have been added to mitigate the well-known issues around setting - * allowances. See {IERC20-approve}. - */ -contract ERC20 is Context, IERC20, IERC20Metadata { - mapping(address => uint256) private _balances; - - mapping(address => mapping(address => uint256)) private _allowances; - - uint256 private _totalSupply; - - string private _name; - string private _symbol; - - /** - * @dev Sets the values for {name} and {symbol}. - * - * The default value of {decimals} is 18. To select a different value for - * {decimals} you should overload it. - * - * All two of these values are immutable: they can only be set once during - * construction. - */ - constructor(string memory name_, string memory symbol_) { - _name = name_; - _symbol = symbol_; - } - - /** - * @dev Returns the name of the token. - */ - function name() public view virtual override returns (string memory) { - return _name; - } - - /** - * @dev Returns the symbol of the token, usually a shorter version of the - * name. - */ - function symbol() public view virtual override returns (string memory) { - return _symbol; - } - - /** - * @dev Returns the number of decimals used to get its user representation. - * For example, if `decimals` equals `2`, a balance of `505` tokens should - * be displayed to a user as `5.05` (`505 / 10 ** 2`). - * - * Tokens usually opt for a value of 18, imitating the relationship between - * Ether and Wei. This is the value {ERC20} uses, unless this function is - * overridden; - * - * NOTE: This information is only used for _display_ purposes: it in - * no way affects any of the arithmetic of the contract, including - * {IERC20-balanceOf} and {IERC20-transfer}. - */ - function decimals() public view virtual override returns (uint8) { - return 18; - } - - /** - * @dev See {IERC20-totalSupply}. - */ - function totalSupply() public view virtual override returns (uint256) { - return _totalSupply; - } - - /** - * @dev See {IERC20-balanceOf}. - */ - function balanceOf(address account) public view virtual override returns (uint256) { - return _balances[account]; - } - - /** - * @dev See {IERC20-transfer}. - * - * Requirements: - * - * - `to` cannot be the zero address. - * - the caller must have a balance of at least `amount`. - */ - function transfer(address to, uint256 amount) public virtual override returns (bool) { - address owner = _msgSender(); - _transfer(owner, to, amount); - return true; - } - - /** - * @dev See {IERC20-allowance}. - */ - function allowance(address owner, address spender) public view virtual override returns (uint256) { - return _allowances[owner][spender]; - } - - /** - * @dev See {IERC20-approve}. - * - * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on - * `transferFrom`. This is semantically equivalent to an infinite approval. - * - * Requirements: - * - * - `spender` cannot be the zero address. - */ - function approve(address spender, uint256 amount) public virtual override returns (bool) { - address owner = _msgSender(); - _approve(owner, spender, amount); - return true; - } - - /** - * @dev See {IERC20-transferFrom}. - * - * Emits an {Approval} event indicating the updated allowance. This is not - * required by the EIP. See the note at the beginning of {ERC20}. - * - * NOTE: Does not update the allowance if the current allowance - * is the maximum `uint256`. - * - * Requirements: - * - * - `from` and `to` cannot be the zero address. - * - `from` must have a balance of at least `amount`. - * - the caller must have allowance for ``from``'s tokens of at least - * `amount`. - */ - function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) { - address spender = _msgSender(); - _spendAllowance(from, spender, amount); - _transfer(from, to, amount); - return true; - } - - /** - * @dev Atomically increases the allowance granted to `spender` by the caller. - * - * This is an alternative to {approve} that can be used as a mitigation for - * problems described in {IERC20-approve}. - * - * Emits an {Approval} event indicating the updated allowance. - * - * Requirements: - * - * - `spender` cannot be the zero address. - */ - function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { - address owner = _msgSender(); - _approve(owner, spender, allowance(owner, spender) + addedValue); - return true; - } - - /** - * @dev Atomically decreases the allowance granted to `spender` by the caller. - * - * This is an alternative to {approve} that can be used as a mitigation for - * problems described in {IERC20-approve}. - * - * Emits an {Approval} event indicating the updated allowance. - * - * Requirements: - * - * - `spender` cannot be the zero address. - * - `spender` must have allowance for the caller of at least - * `subtractedValue`. - */ - function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { - address owner = _msgSender(); - uint256 currentAllowance = allowance(owner, spender); - require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); - unchecked { - _approve(owner, spender, currentAllowance - subtractedValue); - } - - return true; - } - - /** - * @dev Moves `amount` of tokens from `from` to `to`. - * - * This internal function is equivalent to {transfer}, and can be used to - * e.g. implement automatic token fees, slashing mechanisms, etc. - * - * Emits a {Transfer} event. - * - * Requirements: - * - * - `from` cannot be the zero address. - * - `to` cannot be the zero address. - * - `from` must have a balance of at least `amount`. - */ - function _transfer(address from, address to, uint256 amount) internal virtual { - require(from != address(0), "ERC20: transfer from the zero address"); - require(to != address(0), "ERC20: transfer to the zero address"); - - _beforeTokenTransfer(from, to, amount); - - uint256 fromBalance = _balances[from]; - require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); - unchecked { - _balances[from] = fromBalance - amount; - // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by - // decrementing then incrementing. - _balances[to] += amount; - } - - emit Transfer(from, to, amount); - - _afterTokenTransfer(from, to, amount); - } - - /** - * @dev Creates `amount` tokens and assigns them to `account`, increasing - * the total supply. - * - * Emits a {Transfer} event with `from` set to the zero address. - * - * Requirements: - * - * - `account` cannot be the zero address. - */ - function _mint(address account, uint256 amount) internal virtual { - require(account != address(0), "ERC20: mint to the zero address"); - - _beforeTokenTransfer(address(0), account, amount); - - _totalSupply += amount; - unchecked { - // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. - _balances[account] += amount; - } - emit Transfer(address(0), account, amount); - - _afterTokenTransfer(address(0), account, amount); - } - - /** - * @dev Destroys `amount` tokens from `account`, reducing the - * total supply. - * - * Emits a {Transfer} event with `to` set to the zero address. - * - * Requirements: - * - * - `account` cannot be the zero address. - * - `account` must have at least `amount` tokens. - */ - function _burn(address account, uint256 amount) internal virtual { - require(account != address(0), "ERC20: burn from the zero address"); - - _beforeTokenTransfer(account, address(0), amount); - - uint256 accountBalance = _balances[account]; - require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); - unchecked { - _balances[account] = accountBalance - amount; - // Overflow not possible: amount <= accountBalance <= totalSupply. - _totalSupply -= amount; - } - - emit Transfer(account, address(0), amount); - - _afterTokenTransfer(account, address(0), amount); - } - - /** - * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. - * - * This internal function is equivalent to `approve`, and can be used to - * e.g. set automatic allowances for certain subsystems, etc. - * - * Emits an {Approval} event. - * - * Requirements: - * - * - `owner` cannot be the zero address. - * - `spender` cannot be the zero address. - */ - function _approve(address owner, address spender, uint256 amount) internal virtual { - require(owner != address(0), "ERC20: approve from the zero address"); - require(spender != address(0), "ERC20: approve to the zero address"); - - _allowances[owner][spender] = amount; - emit Approval(owner, spender, amount); - } - - /** - * @dev Updates `owner` s allowance for `spender` based on spent `amount`. - * - * Does not update the allowance amount in case of infinite allowance. - * Revert if not enough allowance is available. - * - * Might emit an {Approval} event. - */ - function _spendAllowance(address owner, address spender, uint256 amount) internal virtual { - uint256 currentAllowance = allowance(owner, spender); - if (currentAllowance != type(uint256).max) { - require(currentAllowance >= amount, "ERC20: insufficient allowance"); - unchecked { - _approve(owner, spender, currentAllowance - amount); - } - } - } - - /** - * @dev Hook that is called before any transfer of tokens. This includes - * minting and burning. - * - * Calling conditions: - * - * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens - * will be transferred to `to`. - * - when `from` is zero, `amount` tokens will be minted for `to`. - * - when `to` is zero, `amount` of ``from``'s tokens will be burned. - * - `from` and `to` are never both zero. - * - * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. - */ - function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {} - - /** - * @dev Hook that is called after any transfer of tokens. This includes - * minting and burning. - * - * Calling conditions: - * - * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens - * has been transferred to `to`. - * - when `from` is zero, `amount` tokens have been minted for `to`. - * - when `to` is zero, `amount` of ``from``'s tokens have been burned. - * - `from` and `to` are never both zero. - * - * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. - */ - function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {} -} diff --git a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/IERC20.sol b/src/vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/IERC20.sol deleted file mode 100644 index 66c4e4d..0000000 --- a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/IERC20.sol +++ /dev/null @@ -1,78 +0,0 @@ -// SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) - -pragma solidity ^0.8.0; - -/** - * @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 amount of tokens in existence. - */ - function totalSupply() external view returns (uint256); - - /** - * @dev Returns the amount of tokens owned by `account`. - */ - function balanceOf(address account) external view returns (uint256); - - /** - * @dev Moves `amount` 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 amount) 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 `amount` 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 amount) external returns (bool); - - /** - * @dev Moves `amount` tokens from `from` to `to` using the - * allowance mechanism. `amount` 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 amount) external returns (bool); -} diff --git a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/extensions/ERC20Burnable.sol b/src/vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/extensions/ERC20Burnable.sol deleted file mode 100644 index 1cd08ee..0000000 --- a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/extensions/ERC20Burnable.sol +++ /dev/null @@ -1,39 +0,0 @@ -// SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol) - -pragma solidity ^0.8.0; - -import "../ERC20.sol"; -import "../../../utils/Context.sol"; - -/** - * @dev Extension of {ERC20} that allows token holders to destroy both their own - * tokens and those that they have an allowance for, in a way that can be - * recognized off-chain (via event analysis). - */ -abstract contract ERC20Burnable is Context, ERC20 { - /** - * @dev Destroys `amount` tokens from the caller. - * - * See {ERC20-_burn}. - */ - function burn(uint256 amount) public virtual { - _burn(_msgSender(), amount); - } - - /** - * @dev Destroys `amount` tokens from `account`, deducting from the caller's - * allowance. - * - * See {ERC20-_burn} and {ERC20-allowance}. - * - * Requirements: - * - * - the caller must have allowance for ``accounts``'s tokens of at least - * `amount`. - */ - function burnFrom(address account, uint256 amount) public virtual { - _spendAllowance(account, _msgSender(), amount); - _burn(account, amount); - } -} diff --git a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/extensions/IERC20Metadata.sol b/src/vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/extensions/IERC20Metadata.sol deleted file mode 100644 index 83ba6ac..0000000 --- a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/extensions/IERC20Metadata.sol +++ /dev/null @@ -1,28 +0,0 @@ -// SPDX-License-Identifier: MIT -// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) - -pragma solidity ^0.8.0; - -import "../IERC20.sol"; - -/** - * @dev Interface for the optional metadata functions from the ERC20 standard. - * - * _Available since v4.1._ - */ -interface IERC20Metadata is IERC20 { - /** - * @dev Returns the name of the token. - */ - function name() external view returns (string memory); - - /** - * @dev Returns the symbol of the token. - */ - function symbol() external view returns (string memory); - - /** - * @dev Returns the decimals places of the token. - */ - function decimals() external view returns (uint8); -} diff --git a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/extensions/draft-ERC20Permit.sol b/src/vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/extensions/draft-ERC20Permit.sol deleted file mode 100644 index 7db4469..0000000 --- a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/extensions/draft-ERC20Permit.sol +++ /dev/null @@ -1,91 +0,0 @@ -// SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/extensions/draft-ERC20Permit.sol) - -pragma solidity ^0.8.0; - -import "./draft-IERC20Permit.sol"; -import "../ERC20.sol"; -import "../../../utils/cryptography/ECDSA.sol"; -import "../../../utils/cryptography/EIP712.sol"; -import "../../../utils/Counters.sol"; - -/** - * @dev Implementation of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in - * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. - * - * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by - * presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't - * need to send a transaction, and thus is not required to hold Ether at all. - * - * _Available since v3.4._ - */ -abstract contract ERC20Permit is ERC20, IERC20Permit, EIP712 { - using Counters for Counters.Counter; - - mapping(address => Counters.Counter) private _nonces; - - // solhint-disable-next-line var-name-mixedcase - bytes32 private constant _PERMIT_TYPEHASH = - keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); - /** - * @dev In previous versions `_PERMIT_TYPEHASH` was declared as `immutable`. - * However, to ensure consistency with the upgradeable transpiler, we will continue - * to reserve a slot. - * @custom:oz-renamed-from _PERMIT_TYPEHASH - */ - // solhint-disable-next-line var-name-mixedcase - bytes32 private _PERMIT_TYPEHASH_DEPRECATED_SLOT; - - /** - * @dev Initializes the {EIP712} domain separator using the `name` parameter, and setting `version` to `"1"`. - * - * It's a good idea to use the same `name` that is defined as the ERC20 token name. - */ - constructor(string memory name) EIP712(name, "1") {} - - /** - * @dev See {IERC20Permit-permit}. - */ - function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) - public - virtual - override - { - require(block.timestamp <= deadline, "ERC20Permit: expired deadline"); - - bytes32 structHash = keccak256(abi.encode(_PERMIT_TYPEHASH, owner, spender, value, _useNonce(owner), deadline)); - - bytes32 hash = _hashTypedDataV4(structHash); - - address signer = ECDSA.recover(hash, v, r, s); - require(signer == owner, "ERC20Permit: invalid signature"); - - _approve(owner, spender, value); - } - - /** - * @dev See {IERC20Permit-nonces}. - */ - function nonces(address owner) public view virtual override returns (uint256) { - return _nonces[owner].current(); - } - - /** - * @dev See {IERC20Permit-DOMAIN_SEPARATOR}. - */ - // solhint-disable-next-line func-name-mixedcase - function DOMAIN_SEPARATOR() external view override returns (bytes32) { - return _domainSeparatorV4(); - } - - /** - * @dev "Consume a nonce": return the current value and increment. - * - * _Available since v4.1._ - */ - function _useNonce(address owner) internal virtual returns (uint256 current) { - Counters.Counter storage nonce = _nonces[owner]; - current = nonce.current(); - nonce.increment(); - } -} diff --git a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/extensions/draft-IERC20Permit.sol b/src/vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/extensions/draft-IERC20Permit.sol deleted file mode 100644 index ed3fbee..0000000 --- a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/extensions/draft-IERC20Permit.sol +++ /dev/null @@ -1,53 +0,0 @@ -// SPDX-License-Identifier: MIT -// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol) - -pragma solidity ^0.8.0; - -/** - * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in - * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. - * - * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by - * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't - * need to send a transaction, and thus is not required to hold Ether at all. - */ -interface IERC20Permit { - /** - * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, - * given ``owner``'s signed approval. - * - * IMPORTANT: The same issues {IERC20-approve} has related to transaction - * ordering also apply here. - * - * Emits an {Approval} event. - * - * Requirements: - * - * - `spender` cannot be the zero address. - * - `deadline` must be a timestamp in the future. - * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` - * over the EIP712-formatted function arguments. - * - the signature must use ``owner``'s current nonce (see {nonces}). - * - * For more information on the signature format, see the - * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP - * section]. - */ - function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) - external; - - /** - * @dev Returns the current nonce for `owner`. This value must be - * included whenever a signature is generated for {permit}. - * - * Every successful call to {permit} increases ``owner``'s nonce by one. This - * prevents a signature from being used multiple times. - */ - function nonces(address owner) external view returns (uint256); - - /** - * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. - */ - // solhint-disable-next-line func-name-mixedcase - function DOMAIN_SEPARATOR() external view returns (bytes32); -} diff --git a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/utils/SafeERC20.sol b/src/vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/utils/SafeERC20.sol deleted file mode 100644 index 447894e..0000000 --- a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/utils/SafeERC20.sol +++ /dev/null @@ -1,95 +0,0 @@ -// SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol) - -pragma solidity ^0.8.0; - -import "../IERC20.sol"; -import "../extensions/draft-IERC20Permit.sol"; -import "../../../utils/Address.sol"; - -/** - * @title SafeERC20 - * @dev Wrappers around ERC20 operations that throw on failure (when the token - * contract returns false). Tokens that return no value (and instead revert or - * throw on failure) are also supported, non-reverting calls are assumed to be - * successful. - * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, - * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. - */ -library SafeERC20 { - using Address for address; - - function safeTransfer(IERC20 token, address to, uint256 value) internal { - _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); - } - - function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { - _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); - } - - /** - * @dev Deprecated. This function has issues similar to the ones found in - * {IERC20-approve}, and its usage is discouraged. - * - * Whenever possible, use {safeIncreaseAllowance} and - * {safeDecreaseAllowance} instead. - */ - function safeApprove(IERC20 token, address spender, uint256 value) internal { - // safeApprove should only be called when setting an initial allowance, - // or when resetting it to zero. To increase and decrease it, use - // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' - require( - (value == 0) || (token.allowance(address(this), spender) == 0), - "SafeERC20: approve from non-zero to non-zero allowance" - ); - _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); - } - - function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { - uint256 newAllowance = token.allowance(address(this), spender) + value; - _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); - } - - function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { - unchecked { - uint256 oldAllowance = token.allowance(address(this), spender); - require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); - uint256 newAllowance = oldAllowance - value; - _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); - } - } - - function safePermit( - IERC20Permit token, - address owner, - address spender, - uint256 value, - uint256 deadline, - uint8 v, - bytes32 r, - bytes32 s - ) internal { - uint256 nonceBefore = token.nonces(owner); - token.permit(owner, spender, value, deadline, v, r, s); - uint256 nonceAfter = token.nonces(owner); - require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); - } - - /** - * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement - * on the return value: the return value is optional (but if data is returned, it must not be false). - * @param token The token targeted by the call. - * @param data The call data (encoded using abi.encode or one of its variants). - */ - function _callOptionalReturn(IERC20 token, bytes memory data) private { - // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since - // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that - // the target address contains contract code and also asserts for success in the low-level call. - - bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); - if (returndata.length > 0) { - // Return data is optional - require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); - } - } -} diff --git a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/utils/Address.sol b/src/vendor/openzeppelin-solidity/v4.8.3/contracts/utils/Address.sol deleted file mode 100644 index 468d771..0000000 --- a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/utils/Address.sol +++ /dev/null @@ -1,236 +0,0 @@ -// SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol) - -pragma solidity ^0.8.1; - -/** - * @dev Collection of functions related to the address type - */ -library Address { - /** - * @dev Returns true if `account` is a contract. - * - * [IMPORTANT] - * ==== - * It is unsafe to assume that an address for which this function returns - * false is an externally-owned account (EOA) and not a contract. - * - * Among others, `isContract` will return false for the following - * types of addresses: - * - * - an externally-owned account - * - a contract in construction - * - an address where a contract will be created - * - an address where a contract lived, but was destroyed - * ==== - * - * [IMPORTANT] - * ==== - * You shouldn't rely on `isContract` to protect against flash loan attacks! - * - * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets - * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract - * constructor. - * ==== - */ - function isContract(address account) internal view returns (bool) { - // This method relies on extcodesize/address.code.length, which returns 0 - // for contracts in construction, since the code is only stored at the end - // of the constructor execution. - - return account.code.length > 0; - } - - /** - * @dev Replacement for Solidity's `transfer`: sends `amount` wei to - * `recipient`, forwarding all available gas and reverting on errors. - * - * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost - * of certain opcodes, possibly making contracts go over the 2300 gas limit - * imposed by `transfer`, making them unable to receive funds via - * `transfer`. {sendValue} removes this limitation. - * - * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. - * - * IMPORTANT: because control is transferred to `recipient`, care must be - * taken to not create reentrancy vulnerabilities. Consider using - * {ReentrancyGuard} or the - * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. - */ - function sendValue(address payable recipient, uint256 amount) internal { - require(address(this).balance >= amount, "Address: insufficient balance"); - - (bool success,) = recipient.call{value: amount}(""); - require(success, "Address: unable to send value, recipient may have reverted"); - } - - /** - * @dev Performs a Solidity function call using a low level `call`. A - * plain `call` is an unsafe replacement for a function call: use this - * function instead. - * - * If `target` reverts with a revert reason, it is bubbled up by this - * function (like regular Solidity function calls). - * - * Returns the raw returned data. To convert to the expected return value, - * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. - * - * Requirements: - * - * - `target` must be a contract. - * - calling `target` with `data` must not revert. - * - * _Available since v3.1._ - */ - function functionCall(address target, bytes memory data) internal returns (bytes memory) { - return functionCallWithValue(target, data, 0, "Address: low-level call failed"); - } - - /** - * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with - * `errorMessage` as a fallback revert reason when `target` reverts. - * - * _Available since v3.1._ - */ - function functionCall(address target, bytes memory data, string memory errorMessage) - internal - returns (bytes memory) - { - return functionCallWithValue(target, data, 0, errorMessage); - } - - /** - * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], - * but also transferring `value` wei to `target`. - * - * Requirements: - * - * - the calling contract must have an ETH balance of at least `value`. - * - the called Solidity function must be `payable`. - * - * _Available since v3.1._ - */ - function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { - return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); - } - - /** - * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but - * with `errorMessage` as a fallback revert reason when `target` reverts. - * - * _Available since v3.1._ - */ - function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) - internal - returns (bytes memory) - { - require(address(this).balance >= value, "Address: insufficient balance for call"); - (bool success, bytes memory returndata) = target.call{value: value}(data); - return verifyCallResultFromTarget(target, success, returndata, errorMessage); - } - - /** - * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], - * but performing a static call. - * - * _Available since v3.3._ - */ - function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { - return functionStaticCall(target, data, "Address: low-level static call failed"); - } - - /** - * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], - * but performing a static call. - * - * _Available since v3.3._ - */ - function functionStaticCall(address target, bytes memory data, string memory errorMessage) - internal - view - returns (bytes memory) - { - (bool success, bytes memory returndata) = target.staticcall(data); - return verifyCallResultFromTarget(target, success, returndata, errorMessage); - } - - /** - * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], - * but performing a delegate call. - * - * _Available since v3.4._ - */ - function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { - return functionDelegateCall(target, data, "Address: low-level delegate call failed"); - } - - /** - * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], - * but performing a delegate call. - * - * _Available since v3.4._ - */ - function functionDelegateCall(address target, bytes memory data, string memory errorMessage) - internal - returns (bytes memory) - { - (bool success, bytes memory returndata) = target.delegatecall(data); - return verifyCallResultFromTarget(target, success, returndata, errorMessage); - } - - /** - * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling - * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. - * - * _Available since v4.8._ - */ - function verifyCallResultFromTarget( - address target, - bool success, - bytes memory returndata, - string memory errorMessage - ) internal view returns (bytes memory) { - if (success) { - if (returndata.length == 0) { - // only check isContract if the call was successful and the return data is empty - // otherwise we already know that it was a contract - require(isContract(target), "Address: call to non-contract"); - } - return returndata; - } else { - _revert(returndata, errorMessage); - } - } - - /** - * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the - * revert reason or using the provided one. - * - * _Available since v4.3._ - */ - function verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) - internal - pure - returns (bytes memory) - { - if (success) { - return returndata; - } else { - _revert(returndata, errorMessage); - } - } - - function _revert(bytes memory returndata, string memory errorMessage) private pure { - // Look for revert reason and bubble it up if present - if (returndata.length > 0) { - // The easiest way to bubble the revert reason is using memory via assembly - /// @solidity memory-safe-assembly - assembly { - let returndata_size := mload(returndata) - revert(add(32, returndata), returndata_size) - } - } else { - revert(errorMessage); - } - } -} diff --git a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/utils/Context.sol b/src/vendor/openzeppelin-solidity/v4.8.3/contracts/utils/Context.sol deleted file mode 100644 index f304065..0000000 --- a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/utils/Context.sol +++ /dev/null @@ -1,24 +0,0 @@ -// SPDX-License-Identifier: MIT -// OpenZeppelin Contracts v4.4.1 (utils/Context.sol) - -pragma solidity ^0.8.0; - -/** - * @dev Provides information about the current execution context, including the - * sender of the transaction and its data. While these are generally available - * via msg.sender and msg.data, they should not be accessed in such a direct - * manner, since when dealing with meta-transactions the account sending and - * paying for execution may not be the actual sender (as far as an application - * is concerned). - * - * This contract is only required for intermediate, library-like contracts. - */ -abstract contract Context { - function _msgSender() internal view virtual returns (address) { - return msg.sender; - } - - function _msgData() internal view virtual returns (bytes calldata) { - return msg.data; - } -} diff --git a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/utils/Counters.sol b/src/vendor/openzeppelin-solidity/v4.8.3/contracts/utils/Counters.sol deleted file mode 100644 index 8a4f2a2..0000000 --- a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/utils/Counters.sol +++ /dev/null @@ -1,43 +0,0 @@ -// SPDX-License-Identifier: MIT -// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol) - -pragma solidity ^0.8.0; - -/** - * @title Counters - * @author Matt Condon (@shrugs) - * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number - * of elements in a mapping, issuing ERC721 ids, or counting request ids. - * - * Include with `using Counters for Counters.Counter;` - */ -library Counters { - struct Counter { - // This variable should never be directly accessed by users of the library: interactions must be restricted to - // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add - // this feature: see https://github.com/ethereum/solidity/issues/4637 - uint256 _value; // default: 0 - } - - function current(Counter storage counter) internal view returns (uint256) { - return counter._value; - } - - function increment(Counter storage counter) internal { - unchecked { - counter._value += 1; - } - } - - function decrement(Counter storage counter) internal { - uint256 value = counter._value; - require(value > 0, "Counter: decrement overflow"); - unchecked { - counter._value = value - 1; - } - } - - function reset(Counter storage counter) internal { - counter._value = 0; - } -} diff --git a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/utils/StorageSlot.sol b/src/vendor/openzeppelin-solidity/v4.8.3/contracts/utils/StorageSlot.sol deleted file mode 100644 index 6ab8f5d..0000000 --- a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/utils/StorageSlot.sol +++ /dev/null @@ -1,88 +0,0 @@ -// SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v4.7.0) (utils/StorageSlot.sol) - -pragma solidity ^0.8.0; - -/** - * @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: - * ``` - * 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(Address.isContract(newImplementation), "ERC1967: new implementation is not a contract"); - * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; - * } - * } - * ``` - * - * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._ - */ -library StorageSlot { - struct AddressSlot { - address value; - } - - struct BooleanSlot { - bool value; - } - - struct Bytes32Slot { - bytes32 value; - } - - struct Uint256Slot { - uint256 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 - } - } -} diff --git a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/utils/Strings.sol b/src/vendor/openzeppelin-solidity/v4.8.3/contracts/utils/Strings.sol deleted file mode 100644 index 76aa364..0000000 --- a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/utils/Strings.sol +++ /dev/null @@ -1,70 +0,0 @@ -// SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol) - -pragma solidity ^0.8.0; - -import "./math/Math.sol"; - -/** - * @dev String operations. - */ -library Strings { - bytes16 private constant _SYMBOLS = "0123456789abcdef"; - uint8 private constant _ADDRESS_LENGTH = 20; - - /** - * @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), _SYMBOLS)) - } - value /= 10; - if (value == 0) break; - } - return buffer; - } - } - - /** - * @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) { - 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] = _SYMBOLS[value & 0xf]; - value >>= 4; - } - require(value == 0, "Strings: hex length insufficient"); - 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); - } -} diff --git a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/utils/cryptography/ECDSA.sol b/src/vendor/openzeppelin-solidity/v4.8.3/contracts/utils/cryptography/ECDSA.sol deleted file mode 100644 index 32b895d..0000000 --- a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/utils/cryptography/ECDSA.sol +++ /dev/null @@ -1,196 +0,0 @@ -// SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol) - -pragma solidity ^0.8.0; - -import "../Strings.sol"; - -/** - * @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, - InvalidSignatureV // Deprecated in v4.8 - - } - - function _throwError(RecoverError error) private pure { - if (error == RecoverError.NoError) { - return; // no error: do nothing - } else if (error == RecoverError.InvalidSignature) { - revert("ECDSA: invalid signature"); - } else if (error == RecoverError.InvalidSignatureLength) { - revert("ECDSA: invalid signature length"); - } else if (error == RecoverError.InvalidSignatureS) { - revert("ECDSA: invalid signature 's' value"); - } - } - - /** - * @dev Returns the address that signed a hashed message (`hash`) with - * `signature` or error string. This address can then be used for verification purposes. - * - * The `ecrecover` EVM opcode 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 {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] - * - * _Available since v4.3._ - */ - function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { - 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); - } - } - - /** - * @dev Returns the address that signed a hashed message (`hash`) with - * `signature`. This address can then be used for verification purposes. - * - * The `ecrecover` EVM opcode 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 {toEthSignedMessageHash} on it. - */ - function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { - (address recovered, RecoverError error) = tryRecover(hash, signature); - _throwError(error); - 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] - * - * _Available since v4.3._ - */ - function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError) { - bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff); - 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. - * - * _Available since v4.2._ - */ - function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) { - (address recovered, RecoverError error) = tryRecover(hash, r, vs); - _throwError(error); - return recovered; - } - - /** - * @dev Overload of {ECDSA-tryRecover} that receives the `v`, - * `r` and `s` signature fields separately. - * - * _Available since v4.3._ - */ - function tryRecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address, RecoverError) { - // 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); - } - - // 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); - } - - return (signer, RecoverError.NoError); - } - - /** - * @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) = tryRecover(hash, v, r, s); - _throwError(error); - return recovered; - } - - /** - * @dev Returns an Ethereum Signed Message, created from a `hash`. This - * produces hash corresponding to the one signed with the - * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] - * JSON-RPC method as part of EIP-191. - * - * See {recover}. - */ - function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { - // 32 is the length in bytes of hash, - // enforced by the type signature above - return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); - } - - /** - * @dev Returns an Ethereum Signed Message, created from `s`. This - * produces hash corresponding to the one signed with the - * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] - * JSON-RPC method as part of EIP-191. - * - * See {recover}. - */ - function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) { - return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s)); - } - - /** - * @dev Returns an Ethereum Signed Typed Data, created from a - * `domainSeparator` and a `structHash`. This produces hash corresponding - * to the one signed with the - * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] - * JSON-RPC method as part of EIP-712. - * - * See {recover}. - */ - function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { - return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); - } -} diff --git a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/utils/cryptography/EIP712.sol b/src/vendor/openzeppelin-solidity/v4.8.3/contracts/utils/cryptography/EIP712.sol deleted file mode 100644 index d45d3e7..0000000 --- a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/utils/cryptography/EIP712.sol +++ /dev/null @@ -1,103 +0,0 @@ -// SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/EIP712.sol) - -pragma solidity ^0.8.0; - -import "./ECDSA.sol"; - -/** - * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data. - * - * The encoding specified in the EIP is very generic, and such a generic 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 their contracts 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]. - * - * _Available since v3.4._ - */ -abstract contract EIP712 { - /* solhint-disable var-name-mixedcase */ - // 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 _CACHED_DOMAIN_SEPARATOR; - uint256 private immutable _CACHED_CHAIN_ID; - address private immutable _CACHED_THIS; - - bytes32 private immutable _HASHED_NAME; - bytes32 private immutable _HASHED_VERSION; - bytes32 private immutable _TYPE_HASH; - - /* solhint-enable var-name-mixedcase */ - - /** - * @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) { - bytes32 hashedName = keccak256(bytes(name)); - bytes32 hashedVersion = keccak256(bytes(version)); - bytes32 typeHash = - keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"); - _HASHED_NAME = hashedName; - _HASHED_VERSION = hashedVersion; - _CACHED_CHAIN_ID = block.chainid; - _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion); - _CACHED_THIS = address(this); - _TYPE_HASH = typeHash; - } - - /** - * @dev Returns the domain separator for the current chain. - */ - function _domainSeparatorV4() internal view returns (bytes32) { - if (address(this) == _CACHED_THIS && block.chainid == _CACHED_CHAIN_ID) { - return _CACHED_DOMAIN_SEPARATOR; - } else { - return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION); - } - } - - function _buildDomainSeparator(bytes32 typeHash, bytes32 nameHash, bytes32 versionHash) - private - view - returns (bytes32) - { - return keccak256(abi.encode(typeHash, nameHash, versionHash, 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 ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash); - } -} diff --git a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/utils/introspection/ERC165.sol b/src/vendor/openzeppelin-solidity/v4.8.3/contracts/utils/introspection/ERC165.sol deleted file mode 100644 index 3bf5613..0000000 --- a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/utils/introspection/ERC165.sol +++ /dev/null @@ -1,29 +0,0 @@ -// SPDX-License-Identifier: MIT -// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol) - -pragma solidity ^0.8.0; - -import "./IERC165.sol"; - -/** - * @dev Implementation of the {IERC165} interface. - * - * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check - * for the additional interface id that will be supported. For example: - * - * ```solidity - * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { - * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); - * } - * ``` - * - * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation. - */ -abstract contract ERC165 is IERC165 { - /** - * @dev See {IERC165-supportsInterface}. - */ - function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { - return interfaceId == type(IERC165).interfaceId; - } -} diff --git a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/utils/introspection/ERC165Checker.sol b/src/vendor/openzeppelin-solidity/v4.8.3/contracts/utils/introspection/ERC165Checker.sol deleted file mode 100644 index 0d2c457..0000000 --- a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/utils/introspection/ERC165Checker.sol +++ /dev/null @@ -1,126 +0,0 @@ -// SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v4.8.2) (utils/introspection/ERC165Checker.sol) - -pragma solidity ^0.8.0; - -import "./IERC165.sol"; - -/** - * @dev Library used to query support of an interface declared via {IERC165}. - * - * Note that these functions return the actual result of the query: they do not - * `revert` if an interface is not supported. It is up to the caller to decide - * what to do in these cases. - */ -library ERC165Checker { - // As per the EIP-165 spec, no interface should ever match 0xffffffff - bytes4 private constant _INTERFACE_ID_INVALID = 0xffffffff; - - /** - * @dev Returns true if `account` supports the {IERC165} interface. - */ - function supportsERC165(address account) internal view returns (bool) { - // Any contract that implements ERC165 must explicitly indicate support of - // InterfaceId_ERC165 and explicitly indicate non-support of InterfaceId_Invalid - return supportsERC165InterfaceUnchecked(account, type(IERC165).interfaceId) - && !supportsERC165InterfaceUnchecked(account, _INTERFACE_ID_INVALID); - } - - /** - * @dev Returns true if `account` supports the interface defined by - * `interfaceId`. Support for {IERC165} itself is queried automatically. - * - * See {IERC165-supportsInterface}. - */ - function supportsInterface(address account, bytes4 interfaceId) internal view returns (bool) { - // query support of both ERC165 as per the spec and support of _interfaceId - return supportsERC165(account) && supportsERC165InterfaceUnchecked(account, interfaceId); - } - - /** - * @dev Returns a boolean array where each value corresponds to the - * interfaces passed in and whether they're supported or not. This allows - * you to batch check interfaces for a contract where your expectation - * is that some interfaces may not be supported. - * - * See {IERC165-supportsInterface}. - * - * _Available since v3.4._ - */ - function getSupportedInterfaces(address account, bytes4[] memory interfaceIds) - internal - view - returns (bool[] memory) - { - // an array of booleans corresponding to interfaceIds and whether they're supported or not - bool[] memory interfaceIdsSupported = new bool[](interfaceIds.length); - - // query support of ERC165 itself - if (supportsERC165(account)) { - // query support of each interface in interfaceIds - for (uint256 i = 0; i < interfaceIds.length; i++) { - interfaceIdsSupported[i] = supportsERC165InterfaceUnchecked(account, interfaceIds[i]); - } - } - - return interfaceIdsSupported; - } - - /** - * @dev Returns true if `account` supports all the interfaces defined in - * `interfaceIds`. Support for {IERC165} itself is queried automatically. - * - * Batch-querying can lead to gas savings by skipping repeated checks for - * {IERC165} support. - * - * See {IERC165-supportsInterface}. - */ - function supportsAllInterfaces(address account, bytes4[] memory interfaceIds) internal view returns (bool) { - // query support of ERC165 itself - if (!supportsERC165(account)) { - return false; - } - - // query support of each interface in interfaceIds - for (uint256 i = 0; i < interfaceIds.length; i++) { - if (!supportsERC165InterfaceUnchecked(account, interfaceIds[i])) { - return false; - } - } - - // all interfaces supported - return true; - } - - /** - * @notice Query if a contract implements an interface, does not check ERC165 support - * @param account The address of the contract to query for support of an interface - * @param interfaceId The interface identifier, as specified in ERC-165 - * @return true if the contract at account indicates support of the interface with - * identifier interfaceId, false otherwise - * @dev Assumes that account contains a contract that supports ERC165, otherwise - * the behavior of this method is undefined. This precondition can be checked - * with {supportsERC165}. - * - * Some precompiled contracts will falsely indicate support for a given interface, so caution - * should be exercised when using this function. - * - * Interface identification is specified in ERC-165. - */ - function supportsERC165InterfaceUnchecked(address account, bytes4 interfaceId) internal view returns (bool) { - // prepare call - bytes memory encodedParams = abi.encodeWithSelector(IERC165.supportsInterface.selector, interfaceId); - - // perform static call - bool success; - uint256 returnSize; - uint256 returnValue; - assembly { - success := staticcall(30000, account, add(encodedParams, 0x20), mload(encodedParams), 0x00, 0x20) - returnSize := returndatasize() - returnValue := mload(0x00) - } - - return success && returnSize >= 0x20 && returnValue > 0; - } -} diff --git a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/utils/introspection/IERC165.sol b/src/vendor/openzeppelin-solidity/v4.8.3/contracts/utils/introspection/IERC165.sol deleted file mode 100644 index e8cdbdb..0000000 --- a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/utils/introspection/IERC165.sol +++ /dev/null @@ -1,25 +0,0 @@ -// SPDX-License-Identifier: MIT -// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) - -pragma solidity ^0.8.0; - -/** - * @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); -} diff --git a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/utils/math/Math.sol b/src/vendor/openzeppelin-solidity/v4.8.3/contracts/utils/math/Math.sol deleted file mode 100644 index 978d64a..0000000 --- a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/utils/math/Math.sol +++ /dev/null @@ -1,337 +0,0 @@ -// SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol) - -pragma solidity ^0.8.0; - -/** - * @dev Standard math utilities missing in the Solidity language. - */ -library Math { - enum Rounding { - Down, // Toward negative infinity - Up, // Toward infinity - Zero // Toward zero - - } - - /** - * @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 up instead - * of rounding down. - */ - function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) { - // (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; // Least significant 256 bits of the product - uint256 prod1; // Most significant 256 bits of the product - assembly { - let mm := mulmod(x, y, not(0)) - prod0 := mul(x, y) - prod1 := sub(sub(mm, prod0), lt(mm, prod0)) - } - - // Handle non-overflow cases, 256 by 256 division. - if (prod1 == 0) { - return prod0 / denominator; - } - - // Make sure the result is less than 2^256. Also prevents denominator == 0. - require(denominator > prod1); - - /////////////////////////////////////////////// - // 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. - - // Does not overflow because the denominator cannot be zero at this stage in the function. - uint256 twos = denominator & (~denominator + 1); - 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 (rounding == Rounding.Up && 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 down. - * - * 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 + (rounding == Rounding.Up && result * result < a ? 1 : 0); - } - } - - /** - * @dev Return the log in base 2, rounded down, of a positive value. - * 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 + (rounding == Rounding.Up && 1 << result < value ? 1 : 0); - } - } - - /** - * @dev Return the log in base 10, rounded down, of a positive value. - * 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 + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0); - } - } - - /** - * @dev Return the log in base 256, rounded down, of a positive value. - * 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 10, 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 + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0); - } - } -} diff --git a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/utils/math/SafeCast.sol b/src/vendor/openzeppelin-solidity/v4.8.3/contracts/utils/math/SafeCast.sol deleted file mode 100644 index 435a5f9..0000000 --- a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/utils/math/SafeCast.sol +++ /dev/null @@ -1,1136 +0,0 @@ -// SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SafeCast.sol) -// This file was procedurally generated from scripts/generate/templates/SafeCast.js. - -pragma solidity ^0.8.0; - -/** - * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow - * checks. - * - * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can - * easily result in undesired exploitation or bugs, since developers usually - * assume that overflows raise errors. `SafeCast` restores this intuition by - * reverting the transaction when such an operation overflows. - * - * Using this library instead of the unchecked operations eliminates an entire - * class of bugs, so it's recommended to use it always. - * - * Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing - * all math on `uint256` and `int256` and then downcasting. - */ -library SafeCast { - /** - * @dev Returns the downcasted uint248 from uint256, reverting on - * overflow (when the input is greater than largest uint248). - * - * Counterpart to Solidity's `uint248` operator. - * - * Requirements: - * - * - input must fit into 248 bits - * - * _Available since v4.7._ - */ - function toUint248(uint256 value) internal pure returns (uint248) { - require(value <= type(uint248).max, "SafeCast: value doesn't fit in 248 bits"); - return uint248(value); - } - - /** - * @dev Returns the downcasted uint240 from uint256, reverting on - * overflow (when the input is greater than largest uint240). - * - * Counterpart to Solidity's `uint240` operator. - * - * Requirements: - * - * - input must fit into 240 bits - * - * _Available since v4.7._ - */ - function toUint240(uint256 value) internal pure returns (uint240) { - require(value <= type(uint240).max, "SafeCast: value doesn't fit in 240 bits"); - return uint240(value); - } - - /** - * @dev Returns the downcasted uint232 from uint256, reverting on - * overflow (when the input is greater than largest uint232). - * - * Counterpart to Solidity's `uint232` operator. - * - * Requirements: - * - * - input must fit into 232 bits - * - * _Available since v4.7._ - */ - function toUint232(uint256 value) internal pure returns (uint232) { - require(value <= type(uint232).max, "SafeCast: value doesn't fit in 232 bits"); - return uint232(value); - } - - /** - * @dev Returns the downcasted uint224 from uint256, reverting on - * overflow (when the input is greater than largest uint224). - * - * Counterpart to Solidity's `uint224` operator. - * - * Requirements: - * - * - input must fit into 224 bits - * - * _Available since v4.2._ - */ - function toUint224(uint256 value) internal pure returns (uint224) { - require(value <= type(uint224).max, "SafeCast: value doesn't fit in 224 bits"); - return uint224(value); - } - - /** - * @dev Returns the downcasted uint216 from uint256, reverting on - * overflow (when the input is greater than largest uint216). - * - * Counterpart to Solidity's `uint216` operator. - * - * Requirements: - * - * - input must fit into 216 bits - * - * _Available since v4.7._ - */ - function toUint216(uint256 value) internal pure returns (uint216) { - require(value <= type(uint216).max, "SafeCast: value doesn't fit in 216 bits"); - return uint216(value); - } - - /** - * @dev Returns the downcasted uint208 from uint256, reverting on - * overflow (when the input is greater than largest uint208). - * - * Counterpart to Solidity's `uint208` operator. - * - * Requirements: - * - * - input must fit into 208 bits - * - * _Available since v4.7._ - */ - function toUint208(uint256 value) internal pure returns (uint208) { - require(value <= type(uint208).max, "SafeCast: value doesn't fit in 208 bits"); - return uint208(value); - } - - /** - * @dev Returns the downcasted uint200 from uint256, reverting on - * overflow (when the input is greater than largest uint200). - * - * Counterpart to Solidity's `uint200` operator. - * - * Requirements: - * - * - input must fit into 200 bits - * - * _Available since v4.7._ - */ - function toUint200(uint256 value) internal pure returns (uint200) { - require(value <= type(uint200).max, "SafeCast: value doesn't fit in 200 bits"); - return uint200(value); - } - - /** - * @dev Returns the downcasted uint192 from uint256, reverting on - * overflow (when the input is greater than largest uint192). - * - * Counterpart to Solidity's `uint192` operator. - * - * Requirements: - * - * - input must fit into 192 bits - * - * _Available since v4.7._ - */ - function toUint192(uint256 value) internal pure returns (uint192) { - require(value <= type(uint192).max, "SafeCast: value doesn't fit in 192 bits"); - return uint192(value); - } - - /** - * @dev Returns the downcasted uint184 from uint256, reverting on - * overflow (when the input is greater than largest uint184). - * - * Counterpart to Solidity's `uint184` operator. - * - * Requirements: - * - * - input must fit into 184 bits - * - * _Available since v4.7._ - */ - function toUint184(uint256 value) internal pure returns (uint184) { - require(value <= type(uint184).max, "SafeCast: value doesn't fit in 184 bits"); - return uint184(value); - } - - /** - * @dev Returns the downcasted uint176 from uint256, reverting on - * overflow (when the input is greater than largest uint176). - * - * Counterpart to Solidity's `uint176` operator. - * - * Requirements: - * - * - input must fit into 176 bits - * - * _Available since v4.7._ - */ - function toUint176(uint256 value) internal pure returns (uint176) { - require(value <= type(uint176).max, "SafeCast: value doesn't fit in 176 bits"); - return uint176(value); - } - - /** - * @dev Returns the downcasted uint168 from uint256, reverting on - * overflow (when the input is greater than largest uint168). - * - * Counterpart to Solidity's `uint168` operator. - * - * Requirements: - * - * - input must fit into 168 bits - * - * _Available since v4.7._ - */ - function toUint168(uint256 value) internal pure returns (uint168) { - require(value <= type(uint168).max, "SafeCast: value doesn't fit in 168 bits"); - return uint168(value); - } - - /** - * @dev Returns the downcasted uint160 from uint256, reverting on - * overflow (when the input is greater than largest uint160). - * - * Counterpart to Solidity's `uint160` operator. - * - * Requirements: - * - * - input must fit into 160 bits - * - * _Available since v4.7._ - */ - function toUint160(uint256 value) internal pure returns (uint160) { - require(value <= type(uint160).max, "SafeCast: value doesn't fit in 160 bits"); - return uint160(value); - } - - /** - * @dev Returns the downcasted uint152 from uint256, reverting on - * overflow (when the input is greater than largest uint152). - * - * Counterpart to Solidity's `uint152` operator. - * - * Requirements: - * - * - input must fit into 152 bits - * - * _Available since v4.7._ - */ - function toUint152(uint256 value) internal pure returns (uint152) { - require(value <= type(uint152).max, "SafeCast: value doesn't fit in 152 bits"); - return uint152(value); - } - - /** - * @dev Returns the downcasted uint144 from uint256, reverting on - * overflow (when the input is greater than largest uint144). - * - * Counterpart to Solidity's `uint144` operator. - * - * Requirements: - * - * - input must fit into 144 bits - * - * _Available since v4.7._ - */ - function toUint144(uint256 value) internal pure returns (uint144) { - require(value <= type(uint144).max, "SafeCast: value doesn't fit in 144 bits"); - return uint144(value); - } - - /** - * @dev Returns the downcasted uint136 from uint256, reverting on - * overflow (when the input is greater than largest uint136). - * - * Counterpart to Solidity's `uint136` operator. - * - * Requirements: - * - * - input must fit into 136 bits - * - * _Available since v4.7._ - */ - function toUint136(uint256 value) internal pure returns (uint136) { - require(value <= type(uint136).max, "SafeCast: value doesn't fit in 136 bits"); - return uint136(value); - } - - /** - * @dev Returns the downcasted uint128 from uint256, reverting on - * overflow (when the input is greater than largest uint128). - * - * Counterpart to Solidity's `uint128` operator. - * - * Requirements: - * - * - input must fit into 128 bits - * - * _Available since v2.5._ - */ - function toUint128(uint256 value) internal pure returns (uint128) { - require(value <= type(uint128).max, "SafeCast: value doesn't fit in 128 bits"); - return uint128(value); - } - - /** - * @dev Returns the downcasted uint120 from uint256, reverting on - * overflow (when the input is greater than largest uint120). - * - * Counterpart to Solidity's `uint120` operator. - * - * Requirements: - * - * - input must fit into 120 bits - * - * _Available since v4.7._ - */ - function toUint120(uint256 value) internal pure returns (uint120) { - require(value <= type(uint120).max, "SafeCast: value doesn't fit in 120 bits"); - return uint120(value); - } - - /** - * @dev Returns the downcasted uint112 from uint256, reverting on - * overflow (when the input is greater than largest uint112). - * - * Counterpart to Solidity's `uint112` operator. - * - * Requirements: - * - * - input must fit into 112 bits - * - * _Available since v4.7._ - */ - function toUint112(uint256 value) internal pure returns (uint112) { - require(value <= type(uint112).max, "SafeCast: value doesn't fit in 112 bits"); - return uint112(value); - } - - /** - * @dev Returns the downcasted uint104 from uint256, reverting on - * overflow (when the input is greater than largest uint104). - * - * Counterpart to Solidity's `uint104` operator. - * - * Requirements: - * - * - input must fit into 104 bits - * - * _Available since v4.7._ - */ - function toUint104(uint256 value) internal pure returns (uint104) { - require(value <= type(uint104).max, "SafeCast: value doesn't fit in 104 bits"); - return uint104(value); - } - - /** - * @dev Returns the downcasted uint96 from uint256, reverting on - * overflow (when the input is greater than largest uint96). - * - * Counterpart to Solidity's `uint96` operator. - * - * Requirements: - * - * - input must fit into 96 bits - * - * _Available since v4.2._ - */ - function toUint96(uint256 value) internal pure returns (uint96) { - require(value <= type(uint96).max, "SafeCast: value doesn't fit in 96 bits"); - return uint96(value); - } - - /** - * @dev Returns the downcasted uint88 from uint256, reverting on - * overflow (when the input is greater than largest uint88). - * - * Counterpart to Solidity's `uint88` operator. - * - * Requirements: - * - * - input must fit into 88 bits - * - * _Available since v4.7._ - */ - function toUint88(uint256 value) internal pure returns (uint88) { - require(value <= type(uint88).max, "SafeCast: value doesn't fit in 88 bits"); - return uint88(value); - } - - /** - * @dev Returns the downcasted uint80 from uint256, reverting on - * overflow (when the input is greater than largest uint80). - * - * Counterpart to Solidity's `uint80` operator. - * - * Requirements: - * - * - input must fit into 80 bits - * - * _Available since v4.7._ - */ - function toUint80(uint256 value) internal pure returns (uint80) { - require(value <= type(uint80).max, "SafeCast: value doesn't fit in 80 bits"); - return uint80(value); - } - - /** - * @dev Returns the downcasted uint72 from uint256, reverting on - * overflow (when the input is greater than largest uint72). - * - * Counterpart to Solidity's `uint72` operator. - * - * Requirements: - * - * - input must fit into 72 bits - * - * _Available since v4.7._ - */ - function toUint72(uint256 value) internal pure returns (uint72) { - require(value <= type(uint72).max, "SafeCast: value doesn't fit in 72 bits"); - return uint72(value); - } - - /** - * @dev Returns the downcasted uint64 from uint256, reverting on - * overflow (when the input is greater than largest uint64). - * - * Counterpart to Solidity's `uint64` operator. - * - * Requirements: - * - * - input must fit into 64 bits - * - * _Available since v2.5._ - */ - function toUint64(uint256 value) internal pure returns (uint64) { - require(value <= type(uint64).max, "SafeCast: value doesn't fit in 64 bits"); - return uint64(value); - } - - /** - * @dev Returns the downcasted uint56 from uint256, reverting on - * overflow (when the input is greater than largest uint56). - * - * Counterpart to Solidity's `uint56` operator. - * - * Requirements: - * - * - input must fit into 56 bits - * - * _Available since v4.7._ - */ - function toUint56(uint256 value) internal pure returns (uint56) { - require(value <= type(uint56).max, "SafeCast: value doesn't fit in 56 bits"); - return uint56(value); - } - - /** - * @dev Returns the downcasted uint48 from uint256, reverting on - * overflow (when the input is greater than largest uint48). - * - * Counterpart to Solidity's `uint48` operator. - * - * Requirements: - * - * - input must fit into 48 bits - * - * _Available since v4.7._ - */ - function toUint48(uint256 value) internal pure returns (uint48) { - require(value <= type(uint48).max, "SafeCast: value doesn't fit in 48 bits"); - return uint48(value); - } - - /** - * @dev Returns the downcasted uint40 from uint256, reverting on - * overflow (when the input is greater than largest uint40). - * - * Counterpart to Solidity's `uint40` operator. - * - * Requirements: - * - * - input must fit into 40 bits - * - * _Available since v4.7._ - */ - function toUint40(uint256 value) internal pure returns (uint40) { - require(value <= type(uint40).max, "SafeCast: value doesn't fit in 40 bits"); - return uint40(value); - } - - /** - * @dev Returns the downcasted uint32 from uint256, reverting on - * overflow (when the input is greater than largest uint32). - * - * Counterpart to Solidity's `uint32` operator. - * - * Requirements: - * - * - input must fit into 32 bits - * - * _Available since v2.5._ - */ - function toUint32(uint256 value) internal pure returns (uint32) { - require(value <= type(uint32).max, "SafeCast: value doesn't fit in 32 bits"); - return uint32(value); - } - - /** - * @dev Returns the downcasted uint24 from uint256, reverting on - * overflow (when the input is greater than largest uint24). - * - * Counterpart to Solidity's `uint24` operator. - * - * Requirements: - * - * - input must fit into 24 bits - * - * _Available since v4.7._ - */ - function toUint24(uint256 value) internal pure returns (uint24) { - require(value <= type(uint24).max, "SafeCast: value doesn't fit in 24 bits"); - return uint24(value); - } - - /** - * @dev Returns the downcasted uint16 from uint256, reverting on - * overflow (when the input is greater than largest uint16). - * - * Counterpart to Solidity's `uint16` operator. - * - * Requirements: - * - * - input must fit into 16 bits - * - * _Available since v2.5._ - */ - function toUint16(uint256 value) internal pure returns (uint16) { - require(value <= type(uint16).max, "SafeCast: value doesn't fit in 16 bits"); - return uint16(value); - } - - /** - * @dev Returns the downcasted uint8 from uint256, reverting on - * overflow (when the input is greater than largest uint8). - * - * Counterpart to Solidity's `uint8` operator. - * - * Requirements: - * - * - input must fit into 8 bits - * - * _Available since v2.5._ - */ - function toUint8(uint256 value) internal pure returns (uint8) { - require(value <= type(uint8).max, "SafeCast: value doesn't fit in 8 bits"); - return uint8(value); - } - - /** - * @dev Converts a signed int256 into an unsigned uint256. - * - * Requirements: - * - * - input must be greater than or equal to 0. - * - * _Available since v3.0._ - */ - function toUint256(int256 value) internal pure returns (uint256) { - require(value >= 0, "SafeCast: value must be positive"); - return uint256(value); - } - - /** - * @dev Returns the downcasted int248 from int256, reverting on - * overflow (when the input is less than smallest int248 or - * greater than largest int248). - * - * Counterpart to Solidity's `int248` operator. - * - * Requirements: - * - * - input must fit into 248 bits - * - * _Available since v4.7._ - */ - function toInt248(int256 value) internal pure returns (int248 downcasted) { - downcasted = int248(value); - require(downcasted == value, "SafeCast: value doesn't fit in 248 bits"); - } - - /** - * @dev Returns the downcasted int240 from int256, reverting on - * overflow (when the input is less than smallest int240 or - * greater than largest int240). - * - * Counterpart to Solidity's `int240` operator. - * - * Requirements: - * - * - input must fit into 240 bits - * - * _Available since v4.7._ - */ - function toInt240(int256 value) internal pure returns (int240 downcasted) { - downcasted = int240(value); - require(downcasted == value, "SafeCast: value doesn't fit in 240 bits"); - } - - /** - * @dev Returns the downcasted int232 from int256, reverting on - * overflow (when the input is less than smallest int232 or - * greater than largest int232). - * - * Counterpart to Solidity's `int232` operator. - * - * Requirements: - * - * - input must fit into 232 bits - * - * _Available since v4.7._ - */ - function toInt232(int256 value) internal pure returns (int232 downcasted) { - downcasted = int232(value); - require(downcasted == value, "SafeCast: value doesn't fit in 232 bits"); - } - - /** - * @dev Returns the downcasted int224 from int256, reverting on - * overflow (when the input is less than smallest int224 or - * greater than largest int224). - * - * Counterpart to Solidity's `int224` operator. - * - * Requirements: - * - * - input must fit into 224 bits - * - * _Available since v4.7._ - */ - function toInt224(int256 value) internal pure returns (int224 downcasted) { - downcasted = int224(value); - require(downcasted == value, "SafeCast: value doesn't fit in 224 bits"); - } - - /** - * @dev Returns the downcasted int216 from int256, reverting on - * overflow (when the input is less than smallest int216 or - * greater than largest int216). - * - * Counterpart to Solidity's `int216` operator. - * - * Requirements: - * - * - input must fit into 216 bits - * - * _Available since v4.7._ - */ - function toInt216(int256 value) internal pure returns (int216 downcasted) { - downcasted = int216(value); - require(downcasted == value, "SafeCast: value doesn't fit in 216 bits"); - } - - /** - * @dev Returns the downcasted int208 from int256, reverting on - * overflow (when the input is less than smallest int208 or - * greater than largest int208). - * - * Counterpart to Solidity's `int208` operator. - * - * Requirements: - * - * - input must fit into 208 bits - * - * _Available since v4.7._ - */ - function toInt208(int256 value) internal pure returns (int208 downcasted) { - downcasted = int208(value); - require(downcasted == value, "SafeCast: value doesn't fit in 208 bits"); - } - - /** - * @dev Returns the downcasted int200 from int256, reverting on - * overflow (when the input is less than smallest int200 or - * greater than largest int200). - * - * Counterpart to Solidity's `int200` operator. - * - * Requirements: - * - * - input must fit into 200 bits - * - * _Available since v4.7._ - */ - function toInt200(int256 value) internal pure returns (int200 downcasted) { - downcasted = int200(value); - require(downcasted == value, "SafeCast: value doesn't fit in 200 bits"); - } - - /** - * @dev Returns the downcasted int192 from int256, reverting on - * overflow (when the input is less than smallest int192 or - * greater than largest int192). - * - * Counterpart to Solidity's `int192` operator. - * - * Requirements: - * - * - input must fit into 192 bits - * - * _Available since v4.7._ - */ - function toInt192(int256 value) internal pure returns (int192 downcasted) { - downcasted = int192(value); - require(downcasted == value, "SafeCast: value doesn't fit in 192 bits"); - } - - /** - * @dev Returns the downcasted int184 from int256, reverting on - * overflow (when the input is less than smallest int184 or - * greater than largest int184). - * - * Counterpart to Solidity's `int184` operator. - * - * Requirements: - * - * - input must fit into 184 bits - * - * _Available since v4.7._ - */ - function toInt184(int256 value) internal pure returns (int184 downcasted) { - downcasted = int184(value); - require(downcasted == value, "SafeCast: value doesn't fit in 184 bits"); - } - - /** - * @dev Returns the downcasted int176 from int256, reverting on - * overflow (when the input is less than smallest int176 or - * greater than largest int176). - * - * Counterpart to Solidity's `int176` operator. - * - * Requirements: - * - * - input must fit into 176 bits - * - * _Available since v4.7._ - */ - function toInt176(int256 value) internal pure returns (int176 downcasted) { - downcasted = int176(value); - require(downcasted == value, "SafeCast: value doesn't fit in 176 bits"); - } - - /** - * @dev Returns the downcasted int168 from int256, reverting on - * overflow (when the input is less than smallest int168 or - * greater than largest int168). - * - * Counterpart to Solidity's `int168` operator. - * - * Requirements: - * - * - input must fit into 168 bits - * - * _Available since v4.7._ - */ - function toInt168(int256 value) internal pure returns (int168 downcasted) { - downcasted = int168(value); - require(downcasted == value, "SafeCast: value doesn't fit in 168 bits"); - } - - /** - * @dev Returns the downcasted int160 from int256, reverting on - * overflow (when the input is less than smallest int160 or - * greater than largest int160). - * - * Counterpart to Solidity's `int160` operator. - * - * Requirements: - * - * - input must fit into 160 bits - * - * _Available since v4.7._ - */ - function toInt160(int256 value) internal pure returns (int160 downcasted) { - downcasted = int160(value); - require(downcasted == value, "SafeCast: value doesn't fit in 160 bits"); - } - - /** - * @dev Returns the downcasted int152 from int256, reverting on - * overflow (when the input is less than smallest int152 or - * greater than largest int152). - * - * Counterpart to Solidity's `int152` operator. - * - * Requirements: - * - * - input must fit into 152 bits - * - * _Available since v4.7._ - */ - function toInt152(int256 value) internal pure returns (int152 downcasted) { - downcasted = int152(value); - require(downcasted == value, "SafeCast: value doesn't fit in 152 bits"); - } - - /** - * @dev Returns the downcasted int144 from int256, reverting on - * overflow (when the input is less than smallest int144 or - * greater than largest int144). - * - * Counterpart to Solidity's `int144` operator. - * - * Requirements: - * - * - input must fit into 144 bits - * - * _Available since v4.7._ - */ - function toInt144(int256 value) internal pure returns (int144 downcasted) { - downcasted = int144(value); - require(downcasted == value, "SafeCast: value doesn't fit in 144 bits"); - } - - /** - * @dev Returns the downcasted int136 from int256, reverting on - * overflow (when the input is less than smallest int136 or - * greater than largest int136). - * - * Counterpart to Solidity's `int136` operator. - * - * Requirements: - * - * - input must fit into 136 bits - * - * _Available since v4.7._ - */ - function toInt136(int256 value) internal pure returns (int136 downcasted) { - downcasted = int136(value); - require(downcasted == value, "SafeCast: value doesn't fit in 136 bits"); - } - - /** - * @dev Returns the downcasted int128 from int256, reverting on - * overflow (when the input is less than smallest int128 or - * greater than largest int128). - * - * Counterpart to Solidity's `int128` operator. - * - * Requirements: - * - * - input must fit into 128 bits - * - * _Available since v3.1._ - */ - function toInt128(int256 value) internal pure returns (int128 downcasted) { - downcasted = int128(value); - require(downcasted == value, "SafeCast: value doesn't fit in 128 bits"); - } - - /** - * @dev Returns the downcasted int120 from int256, reverting on - * overflow (when the input is less than smallest int120 or - * greater than largest int120). - * - * Counterpart to Solidity's `int120` operator. - * - * Requirements: - * - * - input must fit into 120 bits - * - * _Available since v4.7._ - */ - function toInt120(int256 value) internal pure returns (int120 downcasted) { - downcasted = int120(value); - require(downcasted == value, "SafeCast: value doesn't fit in 120 bits"); - } - - /** - * @dev Returns the downcasted int112 from int256, reverting on - * overflow (when the input is less than smallest int112 or - * greater than largest int112). - * - * Counterpart to Solidity's `int112` operator. - * - * Requirements: - * - * - input must fit into 112 bits - * - * _Available since v4.7._ - */ - function toInt112(int256 value) internal pure returns (int112 downcasted) { - downcasted = int112(value); - require(downcasted == value, "SafeCast: value doesn't fit in 112 bits"); - } - - /** - * @dev Returns the downcasted int104 from int256, reverting on - * overflow (when the input is less than smallest int104 or - * greater than largest int104). - * - * Counterpart to Solidity's `int104` operator. - * - * Requirements: - * - * - input must fit into 104 bits - * - * _Available since v4.7._ - */ - function toInt104(int256 value) internal pure returns (int104 downcasted) { - downcasted = int104(value); - require(downcasted == value, "SafeCast: value doesn't fit in 104 bits"); - } - - /** - * @dev Returns the downcasted int96 from int256, reverting on - * overflow (when the input is less than smallest int96 or - * greater than largest int96). - * - * Counterpart to Solidity's `int96` operator. - * - * Requirements: - * - * - input must fit into 96 bits - * - * _Available since v4.7._ - */ - function toInt96(int256 value) internal pure returns (int96 downcasted) { - downcasted = int96(value); - require(downcasted == value, "SafeCast: value doesn't fit in 96 bits"); - } - - /** - * @dev Returns the downcasted int88 from int256, reverting on - * overflow (when the input is less than smallest int88 or - * greater than largest int88). - * - * Counterpart to Solidity's `int88` operator. - * - * Requirements: - * - * - input must fit into 88 bits - * - * _Available since v4.7._ - */ - function toInt88(int256 value) internal pure returns (int88 downcasted) { - downcasted = int88(value); - require(downcasted == value, "SafeCast: value doesn't fit in 88 bits"); - } - - /** - * @dev Returns the downcasted int80 from int256, reverting on - * overflow (when the input is less than smallest int80 or - * greater than largest int80). - * - * Counterpart to Solidity's `int80` operator. - * - * Requirements: - * - * - input must fit into 80 bits - * - * _Available since v4.7._ - */ - function toInt80(int256 value) internal pure returns (int80 downcasted) { - downcasted = int80(value); - require(downcasted == value, "SafeCast: value doesn't fit in 80 bits"); - } - - /** - * @dev Returns the downcasted int72 from int256, reverting on - * overflow (when the input is less than smallest int72 or - * greater than largest int72). - * - * Counterpart to Solidity's `int72` operator. - * - * Requirements: - * - * - input must fit into 72 bits - * - * _Available since v4.7._ - */ - function toInt72(int256 value) internal pure returns (int72 downcasted) { - downcasted = int72(value); - require(downcasted == value, "SafeCast: value doesn't fit in 72 bits"); - } - - /** - * @dev Returns the downcasted int64 from int256, reverting on - * overflow (when the input is less than smallest int64 or - * greater than largest int64). - * - * Counterpart to Solidity's `int64` operator. - * - * Requirements: - * - * - input must fit into 64 bits - * - * _Available since v3.1._ - */ - function toInt64(int256 value) internal pure returns (int64 downcasted) { - downcasted = int64(value); - require(downcasted == value, "SafeCast: value doesn't fit in 64 bits"); - } - - /** - * @dev Returns the downcasted int56 from int256, reverting on - * overflow (when the input is less than smallest int56 or - * greater than largest int56). - * - * Counterpart to Solidity's `int56` operator. - * - * Requirements: - * - * - input must fit into 56 bits - * - * _Available since v4.7._ - */ - function toInt56(int256 value) internal pure returns (int56 downcasted) { - downcasted = int56(value); - require(downcasted == value, "SafeCast: value doesn't fit in 56 bits"); - } - - /** - * @dev Returns the downcasted int48 from int256, reverting on - * overflow (when the input is less than smallest int48 or - * greater than largest int48). - * - * Counterpart to Solidity's `int48` operator. - * - * Requirements: - * - * - input must fit into 48 bits - * - * _Available since v4.7._ - */ - function toInt48(int256 value) internal pure returns (int48 downcasted) { - downcasted = int48(value); - require(downcasted == value, "SafeCast: value doesn't fit in 48 bits"); - } - - /** - * @dev Returns the downcasted int40 from int256, reverting on - * overflow (when the input is less than smallest int40 or - * greater than largest int40). - * - * Counterpart to Solidity's `int40` operator. - * - * Requirements: - * - * - input must fit into 40 bits - * - * _Available since v4.7._ - */ - function toInt40(int256 value) internal pure returns (int40 downcasted) { - downcasted = int40(value); - require(downcasted == value, "SafeCast: value doesn't fit in 40 bits"); - } - - /** - * @dev Returns the downcasted int32 from int256, reverting on - * overflow (when the input is less than smallest int32 or - * greater than largest int32). - * - * Counterpart to Solidity's `int32` operator. - * - * Requirements: - * - * - input must fit into 32 bits - * - * _Available since v3.1._ - */ - function toInt32(int256 value) internal pure returns (int32 downcasted) { - downcasted = int32(value); - require(downcasted == value, "SafeCast: value doesn't fit in 32 bits"); - } - - /** - * @dev Returns the downcasted int24 from int256, reverting on - * overflow (when the input is less than smallest int24 or - * greater than largest int24). - * - * Counterpart to Solidity's `int24` operator. - * - * Requirements: - * - * - input must fit into 24 bits - * - * _Available since v4.7._ - */ - function toInt24(int256 value) internal pure returns (int24 downcasted) { - downcasted = int24(value); - require(downcasted == value, "SafeCast: value doesn't fit in 24 bits"); - } - - /** - * @dev Returns the downcasted int16 from int256, reverting on - * overflow (when the input is less than smallest int16 or - * greater than largest int16). - * - * Counterpart to Solidity's `int16` operator. - * - * Requirements: - * - * - input must fit into 16 bits - * - * _Available since v3.1._ - */ - function toInt16(int256 value) internal pure returns (int16 downcasted) { - downcasted = int16(value); - require(downcasted == value, "SafeCast: value doesn't fit in 16 bits"); - } - - /** - * @dev Returns the downcasted int8 from int256, reverting on - * overflow (when the input is less than smallest int8 or - * greater than largest int8). - * - * Counterpart to Solidity's `int8` operator. - * - * Requirements: - * - * - input must fit into 8 bits - * - * _Available since v3.1._ - */ - function toInt8(int256 value) internal pure returns (int8 downcasted) { - downcasted = int8(value); - require(downcasted == value, "SafeCast: value doesn't fit in 8 bits"); - } - - /** - * @dev Converts an unsigned uint256 into a signed int256. - * - * Requirements: - * - * - input must be less than or equal to maxInt256. - * - * _Available since v3.0._ - */ - function toInt256(uint256 value) internal pure returns (int256) { - // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive - require(value <= uint256(type(int256).max), "SafeCast: value doesn't fit in an int256"); - return int256(value); - } -} diff --git a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/utils/math/SignedMath.sol b/src/vendor/openzeppelin-solidity/v4.8.3/contracts/utils/math/SignedMath.sol deleted file mode 100644 index 3ea9f8b..0000000 --- a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/utils/math/SignedMath.sol +++ /dev/null @@ -1,43 +0,0 @@ -// SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol) - -pragma solidity ^0.8.0; - -/** - * @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); - } - } -} diff --git a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/utils/structs/EnumerableMap.sol b/src/vendor/openzeppelin-solidity/v4.8.3/contracts/utils/structs/EnumerableMap.sol deleted file mode 100644 index d5ea377..0000000 --- a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/utils/structs/EnumerableMap.sol +++ /dev/null @@ -1,506 +0,0 @@ -// SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v4.8.0) (utils/structs/EnumerableMap.sol) -// This file was procedurally generated from scripts/generate/templates/EnumerableMap.js. - -pragma solidity ^0.8.0; - -import "./EnumerableSet.sol"; - -/** - * @dev Library for managing an enumerable variant of Solidity's - * https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`] - * type. - * - * Maps have the following properties: - * - * - Entries are added, removed, and checked for existence in constant time - * (O(1)). - * - Entries are enumerated in O(n). No guarantees are made on the ordering. - * - * ``` - * contract Example { - * // Add the library methods - * using EnumerableMap for EnumerableMap.UintToAddressMap; - * - * // Declare a set state variable - * EnumerableMap.UintToAddressMap private myMap; - * } - * ``` - * - * The following map types are supported: - * - * - `uint256 -> address` (`UintToAddressMap`) since v3.0.0 - * - `address -> uint256` (`AddressToUintMap`) since v4.6.0 - * - `bytes32 -> bytes32` (`Bytes32ToBytes32Map`) since v4.6.0 - * - `uint256 -> uint256` (`UintToUintMap`) since v4.7.0 - * - `bytes32 -> uint256` (`Bytes32ToUintMap`) since v4.7.0 - * - * [WARNING] - * ==== - * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure - * unusable. - * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info. - * - * In order to clean an EnumerableMap, you can either remove all elements one by one or create a fresh instance using an - * array of EnumerableMap. - * ==== - */ -library EnumerableMap { - using EnumerableSet for EnumerableSet.Bytes32Set; - - // To implement this library for multiple types with as little code - // repetition as possible, we write it in terms of a generic Map type with - // bytes32 keys and values. - // The Map implementation uses private functions, and user-facing - // implementations (such as Uint256ToAddressMap) are just wrappers around - // the underlying Map. - // This means that we can only create new EnumerableMaps for types that fit - // in bytes32. - - struct Bytes32ToBytes32Map { - // Storage of keys - EnumerableSet.Bytes32Set _keys; - mapping(bytes32 => bytes32) _values; - } - - /** - * @dev Adds a key-value pair to a map, or updates the value for an existing - * key. O(1). - * - * Returns true if the key was added to the map, that is if it was not - * already present. - */ - function set(Bytes32ToBytes32Map storage map, bytes32 key, bytes32 value) internal returns (bool) { - map._values[key] = value; - return map._keys.add(key); - } - - /** - * @dev Removes a key-value pair from a map. O(1). - * - * Returns true if the key was removed from the map, that is if it was present. - */ - function remove(Bytes32ToBytes32Map storage map, bytes32 key) internal returns (bool) { - delete map._values[key]; - return map._keys.remove(key); - } - - /** - * @dev Returns true if the key is in the map. O(1). - */ - function contains(Bytes32ToBytes32Map storage map, bytes32 key) internal view returns (bool) { - return map._keys.contains(key); - } - - /** - * @dev Returns the number of key-value pairs in the map. O(1). - */ - function length(Bytes32ToBytes32Map storage map) internal view returns (uint256) { - return map._keys.length(); - } - - /** - * @dev Returns the key-value pair stored at position `index` in the map. O(1). - * - * Note that there are no guarantees on the ordering of entries inside the - * array, and it may change when more entries are added or removed. - * - * Requirements: - * - * - `index` must be strictly less than {length}. - */ - function at(Bytes32ToBytes32Map storage map, uint256 index) internal view returns (bytes32, bytes32) { - bytes32 key = map._keys.at(index); - return (key, map._values[key]); - } - - /** - * @dev Tries to returns the value associated with `key`. O(1). - * Does not revert if `key` is not in the map. - */ - function tryGet(Bytes32ToBytes32Map storage map, bytes32 key) internal view returns (bool, bytes32) { - bytes32 value = map._values[key]; - if (value == bytes32(0)) { - return (contains(map, key), bytes32(0)); - } else { - return (true, value); - } - } - - /** - * @dev Returns the value associated with `key`. O(1). - * - * Requirements: - * - * - `key` must be in the map. - */ - function get(Bytes32ToBytes32Map storage map, bytes32 key) internal view returns (bytes32) { - bytes32 value = map._values[key]; - require(value != 0 || contains(map, key), "EnumerableMap: nonexistent key"); - return value; - } - - /** - * @dev Same as {get}, with a custom error message when `key` is not in the map. - * - * CAUTION: This function is deprecated because it requires allocating memory for the error - * message unnecessarily. For custom revert reasons use {tryGet}. - */ - function get(Bytes32ToBytes32Map storage map, bytes32 key, string memory errorMessage) - internal - view - returns (bytes32) - { - bytes32 value = map._values[key]; - require(value != 0 || contains(map, key), errorMessage); - return value; - } - - // UintToUintMap - - struct UintToUintMap { - Bytes32ToBytes32Map _inner; - } - - /** - * @dev Adds a key-value pair to a map, or updates the value for an existing - * key. O(1). - * - * Returns true if the key was added to the map, that is if it was not - * already present. - */ - function set(UintToUintMap storage map, uint256 key, uint256 value) internal returns (bool) { - return set(map._inner, bytes32(key), bytes32(value)); - } - - /** - * @dev Removes a value from a set. O(1). - * - * Returns true if the key was removed from the map, that is if it was present. - */ - function remove(UintToUintMap storage map, uint256 key) internal returns (bool) { - return remove(map._inner, bytes32(key)); - } - - /** - * @dev Returns true if the key is in the map. O(1). - */ - function contains(UintToUintMap storage map, uint256 key) internal view returns (bool) { - return contains(map._inner, bytes32(key)); - } - - /** - * @dev Returns the number of elements in the map. O(1). - */ - function length(UintToUintMap storage map) internal view returns (uint256) { - return length(map._inner); - } - - /** - * @dev Returns the element stored at position `index` in the set. O(1). - * Note that there are no guarantees on the ordering of values inside the - * array, and it may change when more values are added or removed. - * - * Requirements: - * - * - `index` must be strictly less than {length}. - */ - function at(UintToUintMap storage map, uint256 index) internal view returns (uint256, uint256) { - (bytes32 key, bytes32 value) = at(map._inner, index); - return (uint256(key), uint256(value)); - } - - /** - * @dev Tries to returns the value associated with `key`. O(1). - * Does not revert if `key` is not in the map. - */ - function tryGet(UintToUintMap storage map, uint256 key) internal view returns (bool, uint256) { - (bool success, bytes32 value) = tryGet(map._inner, bytes32(key)); - return (success, uint256(value)); - } - - /** - * @dev Returns the value associated with `key`. O(1). - * - * Requirements: - * - * - `key` must be in the map. - */ - function get(UintToUintMap storage map, uint256 key) internal view returns (uint256) { - return uint256(get(map._inner, bytes32(key))); - } - - /** - * @dev Same as {get}, with a custom error message when `key` is not in the map. - * - * CAUTION: This function is deprecated because it requires allocating memory for the error - * message unnecessarily. For custom revert reasons use {tryGet}. - */ - function get(UintToUintMap storage map, uint256 key, string memory errorMessage) internal view returns (uint256) { - return uint256(get(map._inner, bytes32(key), errorMessage)); - } - - // UintToAddressMap - - struct UintToAddressMap { - Bytes32ToBytes32Map _inner; - } - - /** - * @dev Adds a key-value pair to a map, or updates the value for an existing - * key. O(1). - * - * Returns true if the key was added to the map, that is if it was not - * already present. - */ - function set(UintToAddressMap storage map, uint256 key, address value) internal returns (bool) { - return set(map._inner, bytes32(key), bytes32(uint256(uint160(value)))); - } - - /** - * @dev Removes a value from a set. O(1). - * - * Returns true if the key was removed from the map, that is if it was present. - */ - function remove(UintToAddressMap storage map, uint256 key) internal returns (bool) { - return remove(map._inner, bytes32(key)); - } - - /** - * @dev Returns true if the key is in the map. O(1). - */ - function contains(UintToAddressMap storage map, uint256 key) internal view returns (bool) { - return contains(map._inner, bytes32(key)); - } - - /** - * @dev Returns the number of elements in the map. O(1). - */ - function length(UintToAddressMap storage map) internal view returns (uint256) { - return length(map._inner); - } - - /** - * @dev Returns the element stored at position `index` in the set. O(1). - * Note that there are no guarantees on the ordering of values inside the - * array, and it may change when more values are added or removed. - * - * Requirements: - * - * - `index` must be strictly less than {length}. - */ - function at(UintToAddressMap storage map, uint256 index) internal view returns (uint256, address) { - (bytes32 key, bytes32 value) = at(map._inner, index); - return (uint256(key), address(uint160(uint256(value)))); - } - - /** - * @dev Tries to returns the value associated with `key`. O(1). - * Does not revert if `key` is not in the map. - */ - function tryGet(UintToAddressMap storage map, uint256 key) internal view returns (bool, address) { - (bool success, bytes32 value) = tryGet(map._inner, bytes32(key)); - return (success, address(uint160(uint256(value)))); - } - - /** - * @dev Returns the value associated with `key`. O(1). - * - * Requirements: - * - * - `key` must be in the map. - */ - function get(UintToAddressMap storage map, uint256 key) internal view returns (address) { - return address(uint160(uint256(get(map._inner, bytes32(key))))); - } - - /** - * @dev Same as {get}, with a custom error message when `key` is not in the map. - * - * CAUTION: This function is deprecated because it requires allocating memory for the error - * message unnecessarily. For custom revert reasons use {tryGet}. - */ - function get(UintToAddressMap storage map, uint256 key, string memory errorMessage) - internal - view - returns (address) - { - return address(uint160(uint256(get(map._inner, bytes32(key), errorMessage)))); - } - - // AddressToUintMap - - struct AddressToUintMap { - Bytes32ToBytes32Map _inner; - } - - /** - * @dev Adds a key-value pair to a map, or updates the value for an existing - * key. O(1). - * - * Returns true if the key was added to the map, that is if it was not - * already present. - */ - function set(AddressToUintMap storage map, address key, uint256 value) internal returns (bool) { - return set(map._inner, bytes32(uint256(uint160(key))), bytes32(value)); - } - - /** - * @dev Removes a value from a set. O(1). - * - * Returns true if the key was removed from the map, that is if it was present. - */ - function remove(AddressToUintMap storage map, address key) internal returns (bool) { - return remove(map._inner, bytes32(uint256(uint160(key)))); - } - - /** - * @dev Returns true if the key is in the map. O(1). - */ - function contains(AddressToUintMap storage map, address key) internal view returns (bool) { - return contains(map._inner, bytes32(uint256(uint160(key)))); - } - - /** - * @dev Returns the number of elements in the map. O(1). - */ - function length(AddressToUintMap storage map) internal view returns (uint256) { - return length(map._inner); - } - - /** - * @dev Returns the element stored at position `index` in the set. O(1). - * Note that there are no guarantees on the ordering of values inside the - * array, and it may change when more values are added or removed. - * - * Requirements: - * - * - `index` must be strictly less than {length}. - */ - function at(AddressToUintMap storage map, uint256 index) internal view returns (address, uint256) { - (bytes32 key, bytes32 value) = at(map._inner, index); - return (address(uint160(uint256(key))), uint256(value)); - } - - /** - * @dev Tries to returns the value associated with `key`. O(1). - * Does not revert if `key` is not in the map. - */ - function tryGet(AddressToUintMap storage map, address key) internal view returns (bool, uint256) { - (bool success, bytes32 value) = tryGet(map._inner, bytes32(uint256(uint160(key)))); - return (success, uint256(value)); - } - - /** - * @dev Returns the value associated with `key`. O(1). - * - * Requirements: - * - * - `key` must be in the map. - */ - function get(AddressToUintMap storage map, address key) internal view returns (uint256) { - return uint256(get(map._inner, bytes32(uint256(uint160(key))))); - } - - /** - * @dev Same as {get}, with a custom error message when `key` is not in the map. - * - * CAUTION: This function is deprecated because it requires allocating memory for the error - * message unnecessarily. For custom revert reasons use {tryGet}. - */ - function get(AddressToUintMap storage map, address key, string memory errorMessage) - internal - view - returns (uint256) - { - return uint256(get(map._inner, bytes32(uint256(uint160(key))), errorMessage)); - } - - // Bytes32ToUintMap - - struct Bytes32ToUintMap { - Bytes32ToBytes32Map _inner; - } - - /** - * @dev Adds a key-value pair to a map, or updates the value for an existing - * key. O(1). - * - * Returns true if the key was added to the map, that is if it was not - * already present. - */ - function set(Bytes32ToUintMap storage map, bytes32 key, uint256 value) internal returns (bool) { - return set(map._inner, key, bytes32(value)); - } - - /** - * @dev Removes a value from a set. O(1). - * - * Returns true if the key was removed from the map, that is if it was present. - */ - function remove(Bytes32ToUintMap storage map, bytes32 key) internal returns (bool) { - return remove(map._inner, key); - } - - /** - * @dev Returns true if the key is in the map. O(1). - */ - function contains(Bytes32ToUintMap storage map, bytes32 key) internal view returns (bool) { - return contains(map._inner, key); - } - - /** - * @dev Returns the number of elements in the map. O(1). - */ - function length(Bytes32ToUintMap storage map) internal view returns (uint256) { - return length(map._inner); - } - - /** - * @dev Returns the element stored at position `index` in the set. O(1). - * Note that there are no guarantees on the ordering of values inside the - * array, and it may change when more values are added or removed. - * - * Requirements: - * - * - `index` must be strictly less than {length}. - */ - function at(Bytes32ToUintMap storage map, uint256 index) internal view returns (bytes32, uint256) { - (bytes32 key, bytes32 value) = at(map._inner, index); - return (key, uint256(value)); - } - - /** - * @dev Tries to returns the value associated with `key`. O(1). - * Does not revert if `key` is not in the map. - */ - function tryGet(Bytes32ToUintMap storage map, bytes32 key) internal view returns (bool, uint256) { - (bool success, bytes32 value) = tryGet(map._inner, key); - return (success, uint256(value)); - } - - /** - * @dev Returns the value associated with `key`. O(1). - * - * Requirements: - * - * - `key` must be in the map. - */ - function get(Bytes32ToUintMap storage map, bytes32 key) internal view returns (uint256) { - return uint256(get(map._inner, key)); - } - - /** - * @dev Same as {get}, with a custom error message when `key` is not in the map. - * - * CAUTION: This function is deprecated because it requires allocating memory for the error - * message unnecessarily. For custom revert reasons use {tryGet}. - */ - function get(Bytes32ToUintMap storage map, bytes32 key, string memory errorMessage) - internal - view - returns (uint256) - { - return uint256(get(map._inner, key, errorMessage)); - } -} diff --git a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/utils/structs/EnumerableSet.sol b/src/vendor/openzeppelin-solidity/v4.8.3/contracts/utils/structs/EnumerableSet.sol deleted file mode 100644 index 4c701c2..0000000 --- a/src/vendor/openzeppelin-solidity/v4.8.3/contracts/utils/structs/EnumerableSet.sol +++ /dev/null @@ -1,378 +0,0 @@ -// SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v4.8.0) (utils/structs/EnumerableSet.sol) -// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js. - -pragma solidity ^0.8.0; - -/** - * @dev Library for managing - * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive - * types. - * - * Sets have the following properties: - * - * - Elements are added, removed, and checked for existence in constant time - * (O(1)). - * - Elements are enumerated in O(n). No guarantees are made on the ordering. - * - * ``` - * contract Example { - * // Add the library methods - * using EnumerableSet for EnumerableSet.AddressSet; - * - * // Declare a set state variable - * EnumerableSet.AddressSet private mySet; - * } - * ``` - * - * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) - * and `uint256` (`UintSet`) are supported. - * - * [WARNING] - * ==== - * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure - * unusable. - * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info. - * - * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an - * array of EnumerableSet. - * ==== - */ -library EnumerableSet { - // To implement this library for multiple types with as little code - // repetition as possible, we write it in terms of a generic Set type with - // bytes32 values. - // The Set implementation uses private functions, and user-facing - // implementations (such as AddressSet) are just wrappers around the - // underlying Set. - // This means that we can only create new EnumerableSets for types that fit - // in bytes32. - - struct Set { - // Storage of set values - bytes32[] _values; - // Position of the value in the `values` array, plus 1 because index 0 - // means a value is not in the set. - mapping(bytes32 => uint256) _indexes; - } - - /** - * @dev Add a value to a set. O(1). - * - * Returns true if the value was added to the set, that is if it was not - * already present. - */ - function _add(Set storage set, bytes32 value) private returns (bool) { - if (!_contains(set, value)) { - set._values.push(value); - // The value is stored at length-1, but we add 1 to all indexes - // and use 0 as a sentinel value - set._indexes[value] = set._values.length; - return true; - } else { - return false; - } - } - - /** - * @dev Removes a value from a set. O(1). - * - * Returns true if the value was removed from the set, that is if it was - * present. - */ - function _remove(Set storage set, bytes32 value) private returns (bool) { - // We read and store the value's index to prevent multiple reads from the same storage slot - uint256 valueIndex = set._indexes[value]; - - if (valueIndex != 0) { - // Equivalent to contains(set, value) - // To delete an element from the _values array in O(1), we swap the element to delete with the last one in - // the array, and then remove the last element (sometimes called as 'swap and pop'). - // This modifies the order of the array, as noted in {at}. - - uint256 toDeleteIndex = valueIndex - 1; - uint256 lastIndex = set._values.length - 1; - - if (lastIndex != toDeleteIndex) { - bytes32 lastValue = set._values[lastIndex]; - - // Move the last value to the index where the value to delete is - set._values[toDeleteIndex] = lastValue; - // Update the index for the moved value - set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex - } - - // Delete the slot where the moved value was stored - set._values.pop(); - - // Delete the index for the deleted slot - delete set._indexes[value]; - - return true; - } else { - return false; - } - } - - /** - * @dev Returns true if the value is in the set. O(1). - */ - function _contains(Set storage set, bytes32 value) private view returns (bool) { - return set._indexes[value] != 0; - } - - /** - * @dev Returns the number of values on the set. O(1). - */ - function _length(Set storage set) private view returns (uint256) { - return set._values.length; - } - - /** - * @dev Returns the value stored at position `index` in the set. O(1). - * - * Note that there are no guarantees on the ordering of values inside the - * array, and it may change when more values are added or removed. - * - * Requirements: - * - * - `index` must be strictly less than {length}. - */ - function _at(Set storage set, uint256 index) private view returns (bytes32) { - return set._values[index]; - } - - /** - * @dev Return the entire set in an array - * - * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed - * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that - * this function has an unbounded cost, and using it as part of a state-changing function may render the function - * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. - */ - function _values(Set storage set) private view returns (bytes32[] memory) { - return set._values; - } - - // Bytes32Set - - struct Bytes32Set { - Set _inner; - } - - /** - * @dev Add a value to a set. O(1). - * - * Returns true if the value was added to the set, that is if it was not - * already present. - */ - function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { - return _add(set._inner, value); - } - - /** - * @dev Removes a value from a set. O(1). - * - * Returns true if the value was removed from the set, that is if it was - * present. - */ - function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { - return _remove(set._inner, value); - } - - /** - * @dev Returns true if the value is in the set. O(1). - */ - function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { - return _contains(set._inner, value); - } - - /** - * @dev Returns the number of values in the set. O(1). - */ - function length(Bytes32Set storage set) internal view returns (uint256) { - return _length(set._inner); - } - - /** - * @dev Returns the value stored at position `index` in the set. O(1). - * - * Note that there are no guarantees on the ordering of values inside the - * array, and it may change when more values are added or removed. - * - * Requirements: - * - * - `index` must be strictly less than {length}. - */ - function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { - return _at(set._inner, index); - } - - /** - * @dev Return the entire set in an array - * - * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed - * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that - * this function has an unbounded cost, and using it as part of a state-changing function may render the function - * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. - */ - function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { - bytes32[] memory store = _values(set._inner); - bytes32[] memory result; - - /// @solidity memory-safe-assembly - assembly { - result := store - } - - return result; - } - - // AddressSet - - struct AddressSet { - Set _inner; - } - - /** - * @dev Add a value to a set. O(1). - * - * Returns true if the value was added to the set, that is if it was not - * already present. - */ - function add(AddressSet storage set, address value) internal returns (bool) { - return _add(set._inner, bytes32(uint256(uint160(value)))); - } - - /** - * @dev Removes a value from a set. O(1). - * - * Returns true if the value was removed from the set, that is if it was - * present. - */ - function remove(AddressSet storage set, address value) internal returns (bool) { - return _remove(set._inner, bytes32(uint256(uint160(value)))); - } - - /** - * @dev Returns true if the value is in the set. O(1). - */ - function contains(AddressSet storage set, address value) internal view returns (bool) { - return _contains(set._inner, bytes32(uint256(uint160(value)))); - } - - /** - * @dev Returns the number of values in the set. O(1). - */ - function length(AddressSet storage set) internal view returns (uint256) { - return _length(set._inner); - } - - /** - * @dev Returns the value stored at position `index` in the set. O(1). - * - * Note that there are no guarantees on the ordering of values inside the - * array, and it may change when more values are added or removed. - * - * Requirements: - * - * - `index` must be strictly less than {length}. - */ - function at(AddressSet storage set, uint256 index) internal view returns (address) { - return address(uint160(uint256(_at(set._inner, index)))); - } - - /** - * @dev Return the entire set in an array - * - * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed - * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that - * this function has an unbounded cost, and using it as part of a state-changing function may render the function - * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. - */ - function values(AddressSet storage set) internal view returns (address[] memory) { - bytes32[] memory store = _values(set._inner); - address[] memory result; - - /// @solidity memory-safe-assembly - assembly { - result := store - } - - return result; - } - - // UintSet - - struct UintSet { - Set _inner; - } - - /** - * @dev Add a value to a set. O(1). - * - * Returns true if the value was added to the set, that is if it was not - * already present. - */ - function add(UintSet storage set, uint256 value) internal returns (bool) { - return _add(set._inner, bytes32(value)); - } - - /** - * @dev Removes a value from a set. O(1). - * - * Returns true if the value was removed from the set, that is if it was - * present. - */ - function remove(UintSet storage set, uint256 value) internal returns (bool) { - return _remove(set._inner, bytes32(value)); - } - - /** - * @dev Returns true if the value is in the set. O(1). - */ - function contains(UintSet storage set, uint256 value) internal view returns (bool) { - return _contains(set._inner, bytes32(value)); - } - - /** - * @dev Returns the number of values in the set. O(1). - */ - function length(UintSet storage set) internal view returns (uint256) { - return _length(set._inner); - } - - /** - * @dev Returns the value stored at position `index` in the set. O(1). - * - * Note that there are no guarantees on the ordering of values inside the - * array, and it may change when more values are added or removed. - * - * Requirements: - * - * - `index` must be strictly less than {length}. - */ - function at(UintSet storage set, uint256 index) internal view returns (uint256) { - return uint256(_at(set._inner, index)); - } - - /** - * @dev Return the entire set in an array - * - * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed - * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that - * this function has an unbounded cost, and using it as part of a state-changing function may render the function - * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. - */ - function values(UintSet storage set) internal view returns (uint256[] memory) { - bytes32[] memory store = _values(set._inner); - uint256[] memory result; - - /// @solidity memory-safe-assembly - assembly { - result := store - } - - return result; - } -} diff --git a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/access/AccessControl.sol b/src/vendor/openzeppelin-solidity/v5.0.2/contracts/access/AccessControl.sol deleted file mode 100644 index 3e3341e..0000000 --- a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/access/AccessControl.sol +++ /dev/null @@ -1,209 +0,0 @@ -// SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.0.0) (access/AccessControl.sol) - -pragma solidity ^0.8.20; - -import {IAccessControl} from "./IAccessControl.sol"; -import {Context} from "../utils/Context.sol"; -import {ERC165} from "../utils/introspection/ERC165.sol"; - -/** - * @dev Contract module that allows children to implement role-based access - * control mechanisms. This is a lightweight version that doesn't allow enumerating role - * members except through off-chain means by accessing the contract event logs. Some - * applications may benefit from on-chain enumerability, for those cases see - * {AccessControlEnumerable}. - * - * Roles are referred to by their `bytes32` identifier. These should be exposed - * in the external API and be unique. The best way to achieve this is by - * using `public constant` hash digests: - * - * ```solidity - * bytes32 public constant MY_ROLE = keccak256("MY_ROLE"); - * ``` - * - * Roles can be used to represent a set of permissions. To restrict access to a - * function call, use {hasRole}: - * - * ```solidity - * function foo() public { - * require(hasRole(MY_ROLE, msg.sender)); - * ... - * } - * ``` - * - * Roles can be granted and revoked dynamically via the {grantRole} and - * {revokeRole} functions. Each role has an associated admin role, and only - * accounts that have a role's admin role can call {grantRole} and {revokeRole}. - * - * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means - * that only accounts with this role will be able to grant or revoke other - * roles. More complex role relationships can be created by using - * {_setRoleAdmin}. - * - * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to - * grant and revoke this role. Extra precautions should be taken to secure - * accounts that have been granted it. We recommend using {AccessControlDefaultAdminRules} - * to enforce additional security measures for this role. - */ -abstract contract AccessControl is Context, IAccessControl, ERC165 { - struct RoleData { - mapping(address account => bool) hasRole; - bytes32 adminRole; - } - - mapping(bytes32 role => RoleData) private _roles; - - bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00; - - /** - * @dev Modifier that checks that an account has a specific role. Reverts - * with an {AccessControlUnauthorizedAccount} error including the required role. - */ - modifier onlyRole(bytes32 role) { - _checkRole(role); - _; - } - - /** - * @dev See {IERC165-supportsInterface}. - */ - function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { - return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId); - } - - /** - * @dev Returns `true` if `account` has been granted `role`. - */ - function hasRole(bytes32 role, address account) public view virtual returns (bool) { - return _roles[role].hasRole[account]; - } - - /** - * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `_msgSender()` - * is missing `role`. Overriding this function changes the behavior of the {onlyRole} modifier. - */ - function _checkRole(bytes32 role) internal view virtual { - _checkRole(role, _msgSender()); - } - - /** - * @dev Reverts with an {AccessControlUnauthorizedAccount} error if `account` - * is missing `role`. - */ - function _checkRole(bytes32 role, address account) internal view virtual { - if (!hasRole(role, account)) { - revert AccessControlUnauthorizedAccount(account, role); - } - } - - /** - * @dev Returns the admin role that controls `role`. See {grantRole} and - * {revokeRole}. - * - * To change a role's admin, use {_setRoleAdmin}. - */ - function getRoleAdmin(bytes32 role) public view virtual returns (bytes32) { - return _roles[role].adminRole; - } - - /** - * @dev Grants `role` to `account`. - * - * If `account` had not been already granted `role`, emits a {RoleGranted} - * event. - * - * Requirements: - * - * - the caller must have ``role``'s admin role. - * - * May emit a {RoleGranted} event. - */ - function grantRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) { - _grantRole(role, account); - } - - /** - * @dev Revokes `role` from `account`. - * - * If `account` had been granted `role`, emits a {RoleRevoked} event. - * - * Requirements: - * - * - the caller must have ``role``'s admin role. - * - * May emit a {RoleRevoked} event. - */ - function revokeRole(bytes32 role, address account) public virtual onlyRole(getRoleAdmin(role)) { - _revokeRole(role, account); - } - - /** - * @dev Revokes `role` from the calling account. - * - * Roles are often managed via {grantRole} and {revokeRole}: this function's - * purpose is to provide a mechanism for accounts to lose their privileges - * if they are compromised (such as when a trusted device is misplaced). - * - * If the calling account had been revoked `role`, emits a {RoleRevoked} - * event. - * - * Requirements: - * - * - the caller must be `callerConfirmation`. - * - * May emit a {RoleRevoked} event. - */ - function renounceRole(bytes32 role, address callerConfirmation) public virtual { - if (callerConfirmation != _msgSender()) { - revert AccessControlBadConfirmation(); - } - - _revokeRole(role, callerConfirmation); - } - - /** - * @dev Sets `adminRole` as ``role``'s admin role. - * - * Emits a {RoleAdminChanged} event. - */ - function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual { - bytes32 previousAdminRole = getRoleAdmin(role); - _roles[role].adminRole = adminRole; - emit RoleAdminChanged(role, previousAdminRole, adminRole); - } - - /** - * @dev Attempts to grant `role` to `account` and returns a boolean indicating if `role` was granted. - * - * Internal function without access restriction. - * - * May emit a {RoleGranted} event. - */ - function _grantRole(bytes32 role, address account) internal virtual returns (bool) { - if (!hasRole(role, account)) { - _roles[role].hasRole[account] = true; - emit RoleGranted(role, account, _msgSender()); - return true; - } else { - return false; - } - } - - /** - * @dev Attempts to revoke `role` to `account` and returns a boolean indicating if `role` was revoked. - * - * Internal function without access restriction. - * - * May emit a {RoleRevoked} event. - */ - function _revokeRole(bytes32 role, address account) internal virtual returns (bool) { - if (hasRole(role, account)) { - _roles[role].hasRole[account] = false; - emit RoleRevoked(role, account, _msgSender()); - return true; - } else { - return false; - } - } -} diff --git a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/access/IAccessControl.sol b/src/vendor/openzeppelin-solidity/v5.0.2/contracts/access/IAccessControl.sol deleted file mode 100644 index 2ac89ca..0000000 --- a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/access/IAccessControl.sol +++ /dev/null @@ -1,98 +0,0 @@ -// SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.0.0) (access/IAccessControl.sol) - -pragma solidity ^0.8.20; - -/** - * @dev External interface of AccessControl declared to support ERC165 detection. - */ -interface IAccessControl { - /** - * @dev The `account` is missing a role. - */ - error AccessControlUnauthorizedAccount(address account, bytes32 neededRole); - - /** - * @dev The caller of a function is not the expected one. - * - * NOTE: Don't confuse with {AccessControlUnauthorizedAccount}. - */ - error AccessControlBadConfirmation(); - - /** - * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` - * - * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite - * {RoleAdminChanged} not being emitted signaling this. - */ - event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); - - /** - * @dev Emitted when `account` is granted `role`. - * - * `sender` is the account that originated the contract call, an admin role - * bearer except when using {AccessControl-_setupRole}. - */ - event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); - - /** - * @dev Emitted when `account` is revoked `role`. - * - * `sender` is the account that originated the contract call: - * - if using `revokeRole`, it is the admin role bearer - * - if using `renounceRole`, it is the role bearer (i.e. `account`) - */ - event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); - - /** - * @dev Returns `true` if `account` has been granted `role`. - */ - function hasRole(bytes32 role, address account) external view returns (bool); - - /** - * @dev Returns the admin role that controls `role`. See {grantRole} and - * {revokeRole}. - * - * To change a role's admin, use {AccessControl-_setRoleAdmin}. - */ - function getRoleAdmin(bytes32 role) external view returns (bytes32); - - /** - * @dev Grants `role` to `account`. - * - * If `account` had not been already granted `role`, emits a {RoleGranted} - * event. - * - * Requirements: - * - * - the caller must have ``role``'s admin role. - */ - function grantRole(bytes32 role, address account) external; - - /** - * @dev Revokes `role` from `account`. - * - * If `account` had been granted `role`, emits a {RoleRevoked} event. - * - * Requirements: - * - * - the caller must have ``role``'s admin role. - */ - function revokeRole(bytes32 role, address account) external; - - /** - * @dev Revokes `role` from the calling account. - * - * Roles are often managed via {grantRole} and {revokeRole}: this function's - * purpose is to provide a mechanism for accounts to lose their privileges - * if they are compromised (such as when a trusted device is misplaced). - * - * If the calling account had been granted `role`, emits a {RoleRevoked} - * event. - * - * Requirements: - * - * - the caller must be `callerConfirmation`. - */ - function renounceRole(bytes32 role, address callerConfirmation) external; -} diff --git a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/interfaces/IERC165.sol b/src/vendor/openzeppelin-solidity/v5.0.2/contracts/interfaces/IERC165.sol deleted file mode 100644 index 944dd0d..0000000 --- a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/interfaces/IERC165.sol +++ /dev/null @@ -1,6 +0,0 @@ -// SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC165.sol) - -pragma solidity ^0.8.20; - -import {IERC165} from "../utils/introspection/IERC165.sol"; diff --git a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/interfaces/IERC20.sol b/src/vendor/openzeppelin-solidity/v5.0.2/contracts/interfaces/IERC20.sol deleted file mode 100644 index 21d5a41..0000000 --- a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/interfaces/IERC20.sol +++ /dev/null @@ -1,6 +0,0 @@ -// SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC20.sol) - -pragma solidity ^0.8.20; - -import {IERC20} from "../token/ERC20/IERC20.sol"; diff --git a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/interfaces/IERC5267.sol b/src/vendor/openzeppelin-solidity/v5.0.2/contracts/interfaces/IERC5267.sol deleted file mode 100644 index 47a9fd5..0000000 --- a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/interfaces/IERC5267.sol +++ /dev/null @@ -1,28 +0,0 @@ -// 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 - ); -} diff --git a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/interfaces/draft-IERC6093.sol b/src/vendor/openzeppelin-solidity/v5.0.2/contracts/interfaces/draft-IERC6093.sol deleted file mode 100644 index f6990e6..0000000 --- a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/interfaces/draft-IERC6093.sol +++ /dev/null @@ -1,161 +0,0 @@ -// SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol) -pragma solidity ^0.8.20; - -/** - * @dev Standard ERC20 Errors - * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens. - */ -interface IERC20Errors { - /** - * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. - * @param sender Address whose tokens are being transferred. - * @param balance Current balance for the interacting account. - * @param needed Minimum amount required to perform a transfer. - */ - error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed); - - /** - * @dev Indicates a failure with the token `sender`. Used in transfers. - * @param sender Address whose tokens are being transferred. - */ - error ERC20InvalidSender(address sender); - - /** - * @dev Indicates a failure with the token `receiver`. Used in transfers. - * @param receiver Address to which tokens are being transferred. - */ - error ERC20InvalidReceiver(address receiver); - - /** - * @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers. - * @param spender Address that may be allowed to operate on tokens without being their owner. - * @param allowance Amount of tokens a `spender` is allowed to operate with. - * @param needed Minimum amount required to perform a transfer. - */ - error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed); - - /** - * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. - * @param approver Address initiating an approval operation. - */ - error ERC20InvalidApprover(address approver); - - /** - * @dev Indicates a failure with the `spender` to be approved. Used in approvals. - * @param spender Address that may be allowed to operate on tokens without being their owner. - */ - error ERC20InvalidSpender(address spender); -} - -/** - * @dev Standard ERC721 Errors - * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens. - */ -interface IERC721Errors { - /** - * @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20. - * Used in balance queries. - * @param owner Address of the current owner of a token. - */ - error ERC721InvalidOwner(address owner); - - /** - * @dev Indicates a `tokenId` whose `owner` is the zero address. - * @param tokenId Identifier number of a token. - */ - error ERC721NonexistentToken(uint256 tokenId); - - /** - * @dev Indicates an error related to the ownership over a particular token. Used in transfers. - * @param sender Address whose tokens are being transferred. - * @param tokenId Identifier number of a token. - * @param owner Address of the current owner of a token. - */ - error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner); - - /** - * @dev Indicates a failure with the token `sender`. Used in transfers. - * @param sender Address whose tokens are being transferred. - */ - error ERC721InvalidSender(address sender); - - /** - * @dev Indicates a failure with the token `receiver`. Used in transfers. - * @param receiver Address to which tokens are being transferred. - */ - error ERC721InvalidReceiver(address receiver); - - /** - * @dev Indicates a failure with the `operator`’s approval. Used in transfers. - * @param operator Address that may be allowed to operate on tokens without being their owner. - * @param tokenId Identifier number of a token. - */ - error ERC721InsufficientApproval(address operator, uint256 tokenId); - - /** - * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. - * @param approver Address initiating an approval operation. - */ - error ERC721InvalidApprover(address approver); - - /** - * @dev Indicates a failure with the `operator` to be approved. Used in approvals. - * @param operator Address that may be allowed to operate on tokens without being their owner. - */ - error ERC721InvalidOperator(address operator); -} - -/** - * @dev Standard ERC1155 Errors - * Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens. - */ -interface IERC1155Errors { - /** - * @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers. - * @param sender Address whose tokens are being transferred. - * @param balance Current balance for the interacting account. - * @param needed Minimum amount required to perform a transfer. - * @param tokenId Identifier number of a token. - */ - error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId); - - /** - * @dev Indicates a failure with the token `sender`. Used in transfers. - * @param sender Address whose tokens are being transferred. - */ - error ERC1155InvalidSender(address sender); - - /** - * @dev Indicates a failure with the token `receiver`. Used in transfers. - * @param receiver Address to which tokens are being transferred. - */ - error ERC1155InvalidReceiver(address receiver); - - /** - * @dev Indicates a failure with the `operator`’s approval. Used in transfers. - * @param operator Address that may be allowed to operate on tokens without being their owner. - * @param owner Address of the current owner of a token. - */ - error ERC1155MissingApprovalForAll(address operator, address owner); - - /** - * @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals. - * @param approver Address initiating an approval operation. - */ - error ERC1155InvalidApprover(address approver); - - /** - * @dev Indicates a failure with the `operator` to be approved. Used in approvals. - * @param operator Address that may be allowed to operate on tokens without being their owner. - */ - error ERC1155InvalidOperator(address operator); - - /** - * @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. - * Used in batch transfers. - * @param idsLength Length of the array of token identifiers - * @param valuesLength Length of the array of token amounts - */ - error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength); -} diff --git a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/token/ERC20/ERC20.sol b/src/vendor/openzeppelin-solidity/v5.0.2/contracts/token/ERC20/ERC20.sol deleted file mode 100644 index 1fde527..0000000 --- a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/token/ERC20/ERC20.sol +++ /dev/null @@ -1,316 +0,0 @@ -// SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/ERC20.sol) - -pragma solidity ^0.8.20; - -import {IERC20} from "./IERC20.sol"; -import {IERC20Metadata} from "./extensions/IERC20Metadata.sol"; -import {Context} from "../../utils/Context.sol"; -import {IERC20Errors} from "../../interfaces/draft-IERC6093.sol"; - -/** - * @dev Implementation of the {IERC20} interface. - * - * This implementation is agnostic to the way tokens are created. This means - * that a supply mechanism has to be added in a derived contract using {_mint}. - * - * TIP: For a detailed writeup see our guide - * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How - * to implement supply mechanisms]. - * - * The default value of {decimals} is 18. To change this, you should override - * this function so it returns a different value. - * - * We have followed general OpenZeppelin Contracts guidelines: functions revert - * instead returning `false` on failure. This behavior is nonetheless - * conventional and does not conflict with the expectations of ERC20 - * applications. - * - * Additionally, an {Approval} event is emitted on calls to {transferFrom}. - * This allows applications to reconstruct the allowance for all accounts just - * by listening to said events. Other implementations of the EIP may not emit - * these events, as it isn't required by the specification. - */ -abstract contract ERC20 is Context, IERC20, IERC20Metadata, IERC20Errors { - mapping(address account => uint256) private _balances; - - mapping(address account => mapping(address spender => uint256)) private _allowances; - - uint256 private _totalSupply; - - string private _name; - string private _symbol; - - /** - * @dev Sets the values for {name} and {symbol}. - * - * All two of these values are immutable: they can only be set once during - * construction. - */ - constructor(string memory name_, string memory symbol_) { - _name = name_; - _symbol = symbol_; - } - - /** - * @dev Returns the name of the token. - */ - function name() public view virtual returns (string memory) { - return _name; - } - - /** - * @dev Returns the symbol of the token, usually a shorter version of the - * name. - */ - function symbol() public view virtual returns (string memory) { - return _symbol; - } - - /** - * @dev Returns the number of decimals used to get its user representation. - * For example, if `decimals` equals `2`, a balance of `505` tokens should - * be displayed to a user as `5.05` (`505 / 10 ** 2`). - * - * Tokens usually opt for a value of 18, imitating the relationship between - * Ether and Wei. This is the default value returned by this function, unless - * it's overridden. - * - * NOTE: This information is only used for _display_ purposes: it in - * no way affects any of the arithmetic of the contract, including - * {IERC20-balanceOf} and {IERC20-transfer}. - */ - function decimals() public view virtual returns (uint8) { - return 18; - } - - /** - * @dev See {IERC20-totalSupply}. - */ - function totalSupply() public view virtual returns (uint256) { - return _totalSupply; - } - - /** - * @dev See {IERC20-balanceOf}. - */ - function balanceOf(address account) public view virtual returns (uint256) { - return _balances[account]; - } - - /** - * @dev See {IERC20-transfer}. - * - * Requirements: - * - * - `to` cannot be the zero address. - * - the caller must have a balance of at least `value`. - */ - function transfer(address to, uint256 value) public virtual returns (bool) { - address owner = _msgSender(); - _transfer(owner, to, value); - return true; - } - - /** - * @dev See {IERC20-allowance}. - */ - function allowance(address owner, address spender) public view virtual returns (uint256) { - return _allowances[owner][spender]; - } - - /** - * @dev See {IERC20-approve}. - * - * NOTE: If `value` is the maximum `uint256`, the allowance is not updated on - * `transferFrom`. This is semantically equivalent to an infinite approval. - * - * Requirements: - * - * - `spender` cannot be the zero address. - */ - function approve(address spender, uint256 value) public virtual returns (bool) { - address owner = _msgSender(); - _approve(owner, spender, value); - return true; - } - - /** - * @dev See {IERC20-transferFrom}. - * - * Emits an {Approval} event indicating the updated allowance. This is not - * required by the EIP. See the note at the beginning of {ERC20}. - * - * NOTE: Does not update the allowance if the current allowance - * is the maximum `uint256`. - * - * Requirements: - * - * - `from` and `to` cannot be the zero address. - * - `from` must have a balance of at least `value`. - * - the caller must have allowance for ``from``'s tokens of at least - * `value`. - */ - function transferFrom(address from, address to, uint256 value) public virtual returns (bool) { - address spender = _msgSender(); - _spendAllowance(from, spender, value); - _transfer(from, to, value); - return true; - } - - /** - * @dev Moves a `value` amount of tokens from `from` to `to`. - * - * This internal function is equivalent to {transfer}, and can be used to - * e.g. implement automatic token fees, slashing mechanisms, etc. - * - * Emits a {Transfer} event. - * - * NOTE: This function is not virtual, {_update} should be overridden instead. - */ - function _transfer(address from, address to, uint256 value) internal { - if (from == address(0)) { - revert ERC20InvalidSender(address(0)); - } - if (to == address(0)) { - revert ERC20InvalidReceiver(address(0)); - } - _update(from, to, value); - } - - /** - * @dev Transfers a `value` amount of tokens from `from` to `to`, or alternatively mints (or burns) if `from` - * (or `to`) is the zero address. All customizations to transfers, mints, and burns should be done by overriding - * this function. - * - * Emits a {Transfer} event. - */ - function _update(address from, address to, uint256 value) internal virtual { - if (from == address(0)) { - // Overflow check required: The rest of the code assumes that totalSupply never overflows - _totalSupply += value; - } else { - uint256 fromBalance = _balances[from]; - if (fromBalance < value) { - revert ERC20InsufficientBalance(from, fromBalance, value); - } - unchecked { - // Overflow not possible: value <= fromBalance <= totalSupply. - _balances[from] = fromBalance - value; - } - } - - if (to == address(0)) { - unchecked { - // Overflow not possible: value <= totalSupply or value <= fromBalance <= totalSupply. - _totalSupply -= value; - } - } else { - unchecked { - // Overflow not possible: balance + value is at most totalSupply, which we know fits into a uint256. - _balances[to] += value; - } - } - - emit Transfer(from, to, value); - } - - /** - * @dev Creates a `value` amount of tokens and assigns them to `account`, by transferring it from address(0). - * Relies on the `_update` mechanism - * - * Emits a {Transfer} event with `from` set to the zero address. - * - * NOTE: This function is not virtual, {_update} should be overridden instead. - */ - function _mint(address account, uint256 value) internal { - if (account == address(0)) { - revert ERC20InvalidReceiver(address(0)); - } - _update(address(0), account, value); - } - - /** - * @dev Destroys a `value` amount of tokens from `account`, lowering the total supply. - * Relies on the `_update` mechanism. - * - * Emits a {Transfer} event with `to` set to the zero address. - * - * NOTE: This function is not virtual, {_update} should be overridden instead - */ - function _burn(address account, uint256 value) internal { - if (account == address(0)) { - revert ERC20InvalidSender(address(0)); - } - _update(account, address(0), value); - } - - /** - * @dev Sets `value` as the allowance of `spender` over the `owner` s tokens. - * - * This internal function is equivalent to `approve`, and can be used to - * e.g. set automatic allowances for certain subsystems, etc. - * - * Emits an {Approval} event. - * - * Requirements: - * - * - `owner` cannot be the zero address. - * - `spender` cannot be the zero address. - * - * Overrides to this logic should be done to the variant with an additional `bool emitEvent` argument. - */ - function _approve(address owner, address spender, uint256 value) internal { - _approve(owner, spender, value, true); - } - - /** - * @dev Variant of {_approve} with an optional flag to enable or disable the {Approval} event. - * - * By default (when calling {_approve}) the flag is set to true. On the other hand, approval changes made by - * `_spendAllowance` during the `transferFrom` operation set the flag to false. This saves gas by not emitting any - * `Approval` event during `transferFrom` operations. - * - * Anyone who wishes to continue emitting `Approval` events on the`transferFrom` operation can force the flag to - * true using the following override: - * ``` - * function _approve(address owner, address spender, uint256 value, bool) internal virtual override { - * super._approve(owner, spender, value, true); - * } - * ``` - * - * Requirements are the same as {_approve}. - */ - function _approve(address owner, address spender, uint256 value, bool emitEvent) internal virtual { - if (owner == address(0)) { - revert ERC20InvalidApprover(address(0)); - } - if (spender == address(0)) { - revert ERC20InvalidSpender(address(0)); - } - _allowances[owner][spender] = value; - if (emitEvent) { - emit Approval(owner, spender, value); - } - } - - /** - * @dev Updates `owner` s allowance for `spender` based on spent `value`. - * - * Does not update the allowance value in case of infinite allowance. - * Revert if not enough allowance is available. - * - * Does not emit an {Approval} event. - */ - function _spendAllowance(address owner, address spender, uint256 value) internal virtual { - uint256 currentAllowance = allowance(owner, spender); - if (currentAllowance != type(uint256).max) { - if (currentAllowance < value) { - revert ERC20InsufficientAllowance(spender, currentAllowance, value); - } - unchecked { - _approve(owner, spender, currentAllowance - value, false); - } - } - } -} diff --git a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/token/ERC20/IERC20.sol b/src/vendor/openzeppelin-solidity/v5.0.2/contracts/token/ERC20/IERC20.sol deleted file mode 100644 index db01cf4..0000000 --- a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/token/ERC20/IERC20.sol +++ /dev/null @@ -1,79 +0,0 @@ -// 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); -} diff --git a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/token/ERC20/extensions/ERC20Burnable.sol b/src/vendor/openzeppelin-solidity/v5.0.2/contracts/token/ERC20/extensions/ERC20Burnable.sol deleted file mode 100644 index 4d482d8..0000000 --- a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/token/ERC20/extensions/ERC20Burnable.sol +++ /dev/null @@ -1,39 +0,0 @@ -// SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/ERC20Burnable.sol) - -pragma solidity ^0.8.20; - -import {ERC20} from "../ERC20.sol"; -import {Context} from "../../../utils/Context.sol"; - -/** - * @dev Extension of {ERC20} that allows token holders to destroy both their own - * tokens and those that they have an allowance for, in a way that can be - * recognized off-chain (via event analysis). - */ -abstract contract ERC20Burnable is Context, ERC20 { - /** - * @dev Destroys a `value` amount of tokens from the caller. - * - * See {ERC20-_burn}. - */ - function burn(uint256 value) public virtual { - _burn(_msgSender(), value); - } - - /** - * @dev Destroys a `value` amount of tokens from `account`, deducting from - * the caller's allowance. - * - * See {ERC20-_burn} and {ERC20-allowance}. - * - * Requirements: - * - * - the caller must have allowance for ``accounts``'s tokens of at least - * `value`. - */ - function burnFrom(address account, uint256 value) public virtual { - _spendAllowance(account, _msgSender(), value); - _burn(account, value); - } -} diff --git a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/token/ERC20/extensions/IERC20Metadata.sol b/src/vendor/openzeppelin-solidity/v5.0.2/contracts/token/ERC20/extensions/IERC20Metadata.sol deleted file mode 100644 index 1a38cba..0000000 --- a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/token/ERC20/extensions/IERC20Metadata.sol +++ /dev/null @@ -1,26 +0,0 @@ -// SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol) - -pragma solidity ^0.8.20; - -import {IERC20} from "../IERC20.sol"; - -/** - * @dev Interface for the optional metadata functions from the ERC20 standard. - */ -interface IERC20Metadata is IERC20 { - /** - * @dev Returns the name of the token. - */ - function name() external view returns (string memory); - - /** - * @dev Returns the symbol of the token. - */ - function symbol() external view returns (string memory); - - /** - * @dev Returns the decimals places of the token. - */ - function decimals() external view returns (uint8); -} diff --git a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/token/ERC20/extensions/IERC20Permit.sol b/src/vendor/openzeppelin-solidity/v5.0.2/contracts/token/ERC20/extensions/IERC20Permit.sol deleted file mode 100644 index 8d8471d..0000000 --- a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/token/ERC20/extensions/IERC20Permit.sol +++ /dev/null @@ -1,83 +0,0 @@ -// SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol) - -pragma solidity ^0.8.20; - -/** - * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in - * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. - * - * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by - * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't - * need to send a transaction, and thus is not required to hold Ether at all. - * - * ==== Security Considerations - * - * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature - * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be - * considered as an intention to spend the allowance in any specific way. The second is that because permits have - * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should - * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be - * generally recommended is: - * - * ```solidity - * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public { - * try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {} - * doThing(..., value); - * } - * - * function doThing(..., uint256 value) public { - * token.safeTransferFrom(msg.sender, address(this), value); - * ... - * } - * ``` - * - * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of - * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also - * {SafeERC20-safeTransferFrom}). - * - * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so - * contracts should have entry points that don't rely on permit. - */ -interface IERC20Permit { - /** - * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens, - * given ``owner``'s signed approval. - * - * IMPORTANT: The same issues {IERC20-approve} has related to transaction - * ordering also apply here. - * - * Emits an {Approval} event. - * - * Requirements: - * - * - `spender` cannot be the zero address. - * - `deadline` must be a timestamp in the future. - * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` - * over the EIP712-formatted function arguments. - * - the signature must use ``owner``'s current nonce (see {nonces}). - * - * For more information on the signature format, see the - * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP - * section]. - * - * CAUTION: See Security Considerations above. - */ - function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) - external; - - /** - * @dev Returns the current nonce for `owner`. This value must be - * included whenever a signature is generated for {permit}. - * - * Every successful call to {permit} increases ``owner``'s nonce by one. This - * prevents a signature from being used multiple times. - */ - function nonces(address owner) external view returns (uint256); - - /** - * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. - */ - // solhint-disable-next-line func-name-mixedcase - function DOMAIN_SEPARATOR() external view returns (bytes32); -} diff --git a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/token/ERC20/utils/SafeERC20.sol b/src/vendor/openzeppelin-solidity/v5.0.2/contracts/token/ERC20/utils/SafeERC20.sol deleted file mode 100644 index bb65709..0000000 --- a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/token/ERC20/utils/SafeERC20.sol +++ /dev/null @@ -1,118 +0,0 @@ -// SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/utils/SafeERC20.sol) - -pragma solidity ^0.8.20; - -import {IERC20} from "../IERC20.sol"; -import {IERC20Permit} from "../extensions/IERC20Permit.sol"; -import {Address} from "../../../utils/Address.sol"; - -/** - * @title SafeERC20 - * @dev Wrappers around ERC20 operations that throw on failure (when the token - * contract returns false). Tokens that return no value (and instead revert or - * throw on failure) are also supported, non-reverting calls are assumed to be - * successful. - * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, - * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. - */ -library SafeERC20 { - using Address for address; - - /** - * @dev An operation with an ERC20 token failed. - */ - error SafeERC20FailedOperation(address token); - - /** - * @dev Indicates a failed `decreaseAllowance` request. - */ - error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease); - - /** - * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, - * non-reverting calls are assumed to be successful. - */ - function safeTransfer(IERC20 token, address to, uint256 value) internal { - _callOptionalReturn(token, abi.encodeCall(token.transfer, (to, value))); - } - - /** - * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the - * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. - */ - function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { - _callOptionalReturn(token, abi.encodeCall(token.transferFrom, (from, to, value))); - } - - /** - * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, - * non-reverting calls are assumed to be successful. - */ - function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { - uint256 oldAllowance = token.allowance(address(this), spender); - forceApprove(token, spender, oldAllowance + value); - } - - /** - * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no - * value, non-reverting calls are assumed to be successful. - */ - function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal { - unchecked { - uint256 currentAllowance = token.allowance(address(this), spender); - if (currentAllowance < requestedDecrease) { - revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease); - } - forceApprove(token, spender, currentAllowance - requestedDecrease); - } - } - - /** - * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, - * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval - * to be set to zero before setting it to a non-zero value, such as USDT. - */ - function forceApprove(IERC20 token, address spender, uint256 value) internal { - bytes memory approvalCall = abi.encodeCall(token.approve, (spender, value)); - - if (!_callOptionalReturnBool(token, approvalCall)) { - _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0))); - _callOptionalReturn(token, approvalCall); - } - } - - /** - * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement - * on the return value: the return value is optional (but if data is returned, it must not be false). - * @param token The token targeted by the call. - * @param data The call data (encoded using abi.encode or one of its variants). - */ - function _callOptionalReturn(IERC20 token, bytes memory data) private { - // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since - // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that - // the target address contains contract code and also asserts for success in the low-level call. - - bytes memory returndata = address(token).functionCall(data); - if (returndata.length != 0 && !abi.decode(returndata, (bool))) { - revert SafeERC20FailedOperation(address(token)); - } - } - - /** - * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement - * on the return value: the return value is optional (but if data is returned, it must not be false). - * @param token The token targeted by the call. - * @param data The call data (encoded using abi.encode or one of its variants). - * - * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead. - */ - function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { - // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since - // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false - // and not revert is the subcall reverts. - - (bool success, bytes memory returndata) = address(token).call(data); - return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && address(token).code.length > 0; - } -} diff --git a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/Address.sol b/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/Address.sol deleted file mode 100644 index 122872d..0000000 --- a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/Address.sol +++ /dev/null @@ -1,159 +0,0 @@ -// SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol) - -pragma solidity ^0.8.20; - -/** - * @dev Collection of functions related to the address type - */ -library Address { - /** - * @dev The ETH balance of the account is not enough to perform the operation. - */ - error AddressInsufficientBalance(address account); - - /** - * @dev There's no code at `target` (it is not a contract). - */ - error AddressEmptyCode(address target); - - /** - * @dev A call to an address target failed. The target may have reverted. - */ - error FailedInnerCall(); - - /** - * @dev Replacement for Solidity's `transfer`: sends `amount` wei to - * `recipient`, forwarding all available gas and reverting on errors. - * - * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost - * of certain opcodes, possibly making contracts go over the 2300 gas limit - * imposed by `transfer`, making them unable to receive funds via - * `transfer`. {sendValue} removes this limitation. - * - * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more]. - * - * IMPORTANT: because control is transferred to `recipient`, care must be - * taken to not create reentrancy vulnerabilities. Consider using - * {ReentrancyGuard} or the - * https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. - */ - function sendValue(address payable recipient, uint256 amount) internal { - if (address(this).balance < amount) { - revert AddressInsufficientBalance(address(this)); - } - - (bool success,) = recipient.call{value: amount}(""); - if (!success) { - revert FailedInnerCall(); - } - } - - /** - * @dev Performs a Solidity function call using a low level `call`. A - * plain `call` is an unsafe replacement for a function call: use this - * function instead. - * - * If `target` reverts with a revert reason or custom error, it is bubbled - * up by this function (like regular Solidity function calls). However, if - * the call reverted with no returned reason, this function reverts with a - * {FailedInnerCall} error. - * - * Returns the raw returned data. To convert to the expected return value, - * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. - * - * Requirements: - * - * - `target` must be a contract. - * - calling `target` with `data` must not revert. - */ - function functionCall(address target, bytes memory data) internal returns (bytes memory) { - return functionCallWithValue(target, data, 0); - } - - /** - * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], - * but also transferring `value` wei to `target`. - * - * Requirements: - * - * - the calling contract must have an ETH balance of at least `value`. - * - the called Solidity function must be `payable`. - */ - function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { - if (address(this).balance < value) { - revert AddressInsufficientBalance(address(this)); - } - (bool success, bytes memory returndata) = target.call{value: value}(data); - return verifyCallResultFromTarget(target, success, returndata); - } - - /** - * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], - * but performing a static call. - */ - function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { - (bool success, bytes memory returndata) = target.staticcall(data); - return verifyCallResultFromTarget(target, success, returndata); - } - - /** - * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], - * but performing a delegate call. - */ - function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { - (bool success, bytes memory returndata) = target.delegatecall(data); - return verifyCallResultFromTarget(target, success, returndata); - } - - /** - * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target - * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an - * unsuccessful call. - */ - function verifyCallResultFromTarget(address target, bool success, bytes memory returndata) - internal - view - returns (bytes memory) - { - if (!success) { - _revert(returndata); - } else { - // only check if target is a contract if the call was successful and the return data is empty - // otherwise we already know that it was a contract - if (returndata.length == 0 && target.code.length == 0) { - revert AddressEmptyCode(target); - } - return returndata; - } - } - - /** - * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the - * revert reason or with a default {FailedInnerCall} error. - */ - function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) { - if (!success) { - _revert(returndata); - } else { - return returndata; - } - } - - /** - * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}. - */ - function _revert(bytes memory returndata) private pure { - // Look for revert reason and bubble it up if present - if (returndata.length > 0) { - // The easiest way to bubble the revert reason is using memory via assembly - /// @solidity memory-safe-assembly - assembly { - let returndata_size := mload(returndata) - revert(add(32, returndata), returndata_size) - } - } else { - revert FailedInnerCall(); - } - } -} diff --git a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/Context.sol b/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/Context.sol deleted file mode 100644 index 4e535fe..0000000 --- a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/Context.sol +++ /dev/null @@ -1,28 +0,0 @@ -// SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) - -pragma solidity ^0.8.20; - -/** - * @dev Provides information about the current execution context, including the - * sender of the transaction and its data. While these are generally available - * via msg.sender and msg.data, they should not be accessed in such a direct - * manner, since when dealing with meta-transactions the account sending and - * paying for execution may not be the actual sender (as far as an application - * is concerned). - * - * This contract is only required for intermediate, library-like contracts. - */ -abstract contract Context { - function _msgSender() internal view virtual returns (address) { - return msg.sender; - } - - function _msgData() internal view virtual returns (bytes calldata) { - return msg.data; - } - - function _contextSuffixLength() internal view virtual returns (uint256) { - return 0; - } -} diff --git a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/Create2.sol b/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/Create2.sol deleted file mode 100644 index fe6e9a3..0000000 --- a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/Create2.sol +++ /dev/null @@ -1,96 +0,0 @@ -// SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.0.0) (utils/Create2.sol) - -pragma solidity ^0.8.20; - -import {Errors} from "./Errors.sol"; - -/** - * @dev Helper to make usage of the `CREATE2` EVM opcode easier and safer. - * `CREATE2` can be used to compute in advance the address where a smart - * contract will be deployed, which allows for interesting new mechanisms known - * as 'counterfactual interactions'. - * - * See the https://eips.ethereum.org/EIPS/eip-1014#motivation[EIP] for more - * information. - */ -library Create2 { - /** - * @dev There's no code to deploy. - */ - error Create2EmptyBytecode(); - - /** - * @dev Deploys a contract using `CREATE2`. The address where the contract - * will be deployed can be known in advance via {computeAddress}. - * - * The bytecode for a contract can be obtained from Solidity with - * `type(contractName).creationCode`. - * - * Requirements: - * - * - `bytecode` must not be empty. - * - `salt` must have not been used for `bytecode` already. - * - the factory must have a balance of at least `amount`. - * - if `amount` is non-zero, `bytecode` must have a `payable` constructor. - */ - function deploy(uint256 amount, bytes32 salt, bytes memory bytecode) internal returns (address addr) { - if (address(this).balance < amount) { - revert Errors.InsufficientBalance(address(this).balance, amount); - } - if (bytecode.length == 0) { - revert Create2EmptyBytecode(); - } - assembly ("memory-safe") { - addr := create2(amount, add(bytecode, 0x20), mload(bytecode), salt) - // if no address was created, and returndata is not empty, bubble revert - if and(iszero(addr), not(iszero(returndatasize()))) { - let p := mload(0x40) - returndatacopy(p, 0, returndatasize()) - revert(p, returndatasize()) - } - } - if (addr == address(0)) { - revert Errors.FailedDeployment(); - } - } - - /** - * @dev Returns the address where a contract will be stored if deployed via {deploy}. Any change in the - * `bytecodeHash` or `salt` will result in a new destination address. - */ - function computeAddress(bytes32 salt, bytes32 bytecodeHash) internal view returns (address) { - return computeAddress(salt, bytecodeHash, address(this)); - } - - /** - * @dev Returns the address where a contract will be stored if deployed via {deploy} from a contract located at - * `deployer`. If `deployer` is this contract's address, returns the same value as {computeAddress}. - */ - function computeAddress(bytes32 salt, bytes32 bytecodeHash, address deployer) - internal - pure - returns (address addr) - { - assembly ("memory-safe") { - let ptr := mload(0x40) // Get free memory pointer - - // | | ↓ ptr ... ↓ ptr + 0x0B (start) ... ↓ ptr + 0x20 ... ↓ ptr + 0x40 ... | - // |-------------------|---------------------------------------------------------------------------| - // | bytecodeHash | CCCCCCCCCCCCC...CC | - // | salt | BBBBBBBBBBBBB...BB | - // | deployer | 000000...0000AAAAAAAAAAAAAAAAAAA...AA | - // | 0xFF | FF | - // |-------------------|---------------------------------------------------------------------------| - // | memory | 000000...00FFAAAAAAAAAAAAAAAAAAA...AABBBBBBBBBBBBB...BBCCCCCCCCCCCCC...CC | - // | keccak(start, 85) | ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑ | - - mstore(add(ptr, 0x40), bytecodeHash) - mstore(add(ptr, 0x20), salt) - mstore(ptr, deployer) // Right-aligned with 12 preceding garbage bytes - let start := add(ptr, 0x0b) // The hashed data starts at the final garbage byte which we will set to 0xff - mstore8(start, 0xff) - addr := and(keccak256(start, 85), 0xffffffffffffffffffffffffffffffffffffffff) - } - } -} diff --git a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/Errors.sol b/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/Errors.sol deleted file mode 100644 index 633d8c2..0000000 --- a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/Errors.sol +++ /dev/null @@ -1,31 +0,0 @@ -// SPDX-License-Identifier: MIT - -pragma solidity ^0.8.20; - -/** - * @dev Collection of common custom errors used in multiple contracts - * - * IMPORTANT: Backwards compatibility is not guaranteed in future versions of the library. - * It is recommended to avoid relying on the error API for critical functionality. - */ -library Errors { - /** - * @dev The ETH balance of the account is not enough to perform the operation. - */ - error InsufficientBalance(uint256 balance, uint256 needed); - - /** - * @dev A call to an address target failed. The target may have reverted. - */ - error FailedCall(); - - /** - * @dev The deployment failed. - */ - error FailedDeployment(); - - /** - * @dev A necessary precompile is missing. - */ - error MissingPrecompile(address); -} diff --git a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/Pausable.sol b/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/Pausable.sol deleted file mode 100644 index 312f1cb..0000000 --- a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/Pausable.sol +++ /dev/null @@ -1,119 +0,0 @@ -// SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.0.0) (utils/Pausable.sol) - -pragma solidity ^0.8.20; - -import {Context} from "../utils/Context.sol"; - -/** - * @dev Contract module which allows children to implement an emergency stop - * mechanism that can be triggered by an authorized account. - * - * This module is used through inheritance. It will make available the - * modifiers `whenNotPaused` and `whenPaused`, which can be applied to - * the functions of your contract. Note that they will not be pausable by - * simply including this module, only once the modifiers are put in place. - */ -abstract contract Pausable is Context { - bool private _paused; - - /** - * @dev Emitted when the pause is triggered by `account`. - */ - event Paused(address account); - - /** - * @dev Emitted when the pause is lifted by `account`. - */ - event Unpaused(address account); - - /** - * @dev The operation failed because the contract is paused. - */ - error EnforcedPause(); - - /** - * @dev The operation failed because the contract is not paused. - */ - error ExpectedPause(); - - /** - * @dev Initializes the contract in unpaused state. - */ - constructor() { - _paused = false; - } - - /** - * @dev Modifier to make a function callable only when the contract is not paused. - * - * Requirements: - * - * - The contract must not be paused. - */ - modifier whenNotPaused() { - _requireNotPaused(); - _; - } - - /** - * @dev Modifier to make a function callable only when the contract is paused. - * - * Requirements: - * - * - The contract must be paused. - */ - modifier whenPaused() { - _requirePaused(); - _; - } - - /** - * @dev Returns true if the contract is paused, and false otherwise. - */ - function paused() public view virtual returns (bool) { - return _paused; - } - - /** - * @dev Throws if the contract is paused. - */ - function _requireNotPaused() internal view virtual { - if (paused()) { - revert EnforcedPause(); - } - } - - /** - * @dev Throws if the contract is not paused. - */ - function _requirePaused() internal view virtual { - if (!paused()) { - revert ExpectedPause(); - } - } - - /** - * @dev Triggers stopped state. - * - * Requirements: - * - * - The contract must not be paused. - */ - function _pause() internal virtual whenNotPaused { - _paused = true; - emit Paused(_msgSender()); - } - - /** - * @dev Returns to normal state. - * - * Requirements: - * - * - The contract must be paused. - */ - function _unpause() internal virtual whenPaused { - _paused = false; - emit Unpaused(_msgSender()); - } -} diff --git a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/ShortStrings.sol b/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/ShortStrings.sol deleted file mode 100644 index fdfe774..0000000 --- a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/ShortStrings.sol +++ /dev/null @@ -1,123 +0,0 @@ -// 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; - } - } -} diff --git a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/StorageSlot.sol b/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/StorageSlot.sol deleted file mode 100644 index 0841832..0000000 --- a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/StorageSlot.sol +++ /dev/null @@ -1,135 +0,0 @@ -// 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 - } - } -} diff --git a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/Strings.sol b/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/Strings.sol deleted file mode 100644 index b2c0a40..0000000 --- a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/Strings.sol +++ /dev/null @@ -1,94 +0,0 @@ -// 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)); - } -} diff --git a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/cryptography/ECDSA.sol b/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/cryptography/ECDSA.sol deleted file mode 100644 index 75515bf..0000000 --- a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/cryptography/ECDSA.sol +++ /dev/null @@ -1,173 +0,0 @@ -// 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); - } - } -} diff --git a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/cryptography/EIP712.sol b/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/cryptography/EIP712.sol deleted file mode 100644 index 8e548cd..0000000 --- a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/cryptography/EIP712.sol +++ /dev/null @@ -1,160 +0,0 @@ -// 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); - } -} diff --git a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/cryptography/MessageHashUtils.sol b/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/cryptography/MessageHashUtils.sol deleted file mode 100644 index ae3626a..0000000 --- a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/cryptography/MessageHashUtils.sol +++ /dev/null @@ -1,86 +0,0 @@ -// 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"1900", 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"1901") - mstore(add(ptr, 0x02), domainSeparator) - mstore(add(ptr, 0x22), structHash) - digest := keccak256(ptr, 0x42) - } - } -} diff --git a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/introspection/ERC165.sol b/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/introspection/ERC165.sol deleted file mode 100644 index 1e77b60..0000000 --- a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/introspection/ERC165.sol +++ /dev/null @@ -1,27 +0,0 @@ -// SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165.sol) - -pragma solidity ^0.8.20; - -import {IERC165} from "./IERC165.sol"; - -/** - * @dev Implementation of the {IERC165} interface. - * - * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check - * for the additional interface id that will be supported. For example: - * - * ```solidity - * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { - * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); - * } - * ``` - */ -abstract contract ERC165 is IERC165 { - /** - * @dev See {IERC165-supportsInterface}. - */ - function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) { - return interfaceId == type(IERC165).interfaceId; - } -} diff --git a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/introspection/ERC165Checker.sol b/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/introspection/ERC165Checker.sol deleted file mode 100644 index 02674af..0000000 --- a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/introspection/ERC165Checker.sol +++ /dev/null @@ -1,124 +0,0 @@ -// SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.0.0) (utils/introspection/ERC165Checker.sol) - -pragma solidity ^0.8.20; - -import {IERC165} from "./IERC165.sol"; - -/** - * @dev Library used to query support of an interface declared via {IERC165}. - * - * Note that these functions return the actual result of the query: they do not - * `revert` if an interface is not supported. It is up to the caller to decide - * what to do in these cases. - */ -library ERC165Checker { - // As per the EIP-165 spec, no interface should ever match 0xffffffff - bytes4 private constant INTERFACE_ID_INVALID = 0xffffffff; - - /** - * @dev Returns true if `account` supports the {IERC165} interface. - */ - function supportsERC165(address account) internal view returns (bool) { - // Any contract that implements ERC165 must explicitly indicate support of - // InterfaceId_ERC165 and explicitly indicate non-support of InterfaceId_Invalid - return supportsERC165InterfaceUnchecked(account, type(IERC165).interfaceId) - && !supportsERC165InterfaceUnchecked(account, INTERFACE_ID_INVALID); - } - - /** - * @dev Returns true if `account` supports the interface defined by - * `interfaceId`. Support for {IERC165} itself is queried automatically. - * - * See {IERC165-supportsInterface}. - */ - function supportsInterface(address account, bytes4 interfaceId) internal view returns (bool) { - // query support of both ERC165 as per the spec and support of _interfaceId - return supportsERC165(account) && supportsERC165InterfaceUnchecked(account, interfaceId); - } - - /** - * @dev Returns a boolean array where each value corresponds to the - * interfaces passed in and whether they're supported or not. This allows - * you to batch check interfaces for a contract where your expectation - * is that some interfaces may not be supported. - * - * See {IERC165-supportsInterface}. - */ - function getSupportedInterfaces(address account, bytes4[] memory interfaceIds) - internal - view - returns (bool[] memory) - { - // an array of booleans corresponding to interfaceIds and whether they're supported or not - bool[] memory interfaceIdsSupported = new bool[](interfaceIds.length); - - // query support of ERC165 itself - if (supportsERC165(account)) { - // query support of each interface in interfaceIds - for (uint256 i = 0; i < interfaceIds.length; i++) { - interfaceIdsSupported[i] = supportsERC165InterfaceUnchecked(account, interfaceIds[i]); - } - } - - return interfaceIdsSupported; - } - - /** - * @dev Returns true if `account` supports all the interfaces defined in - * `interfaceIds`. Support for {IERC165} itself is queried automatically. - * - * Batch-querying can lead to gas savings by skipping repeated checks for - * {IERC165} support. - * - * See {IERC165-supportsInterface}. - */ - function supportsAllInterfaces(address account, bytes4[] memory interfaceIds) internal view returns (bool) { - // query support of ERC165 itself - if (!supportsERC165(account)) { - return false; - } - - // query support of each interface in interfaceIds - for (uint256 i = 0; i < interfaceIds.length; i++) { - if (!supportsERC165InterfaceUnchecked(account, interfaceIds[i])) { - return false; - } - } - - // all interfaces supported - return true; - } - - /** - * @notice Query if a contract implements an interface, does not check ERC165 support - * @param account The address of the contract to query for support of an interface - * @param interfaceId The interface identifier, as specified in ERC-165 - * @return true if the contract at account indicates support of the interface with - * identifier interfaceId, false otherwise - * @dev Assumes that account contains a contract that supports ERC165, otherwise - * the behavior of this method is undefined. This precondition can be checked - * with {supportsERC165}. - * - * Some precompiled contracts will falsely indicate support for a given interface, so caution - * should be exercised when using this function. - * - * Interface identification is specified in ERC-165. - */ - function supportsERC165InterfaceUnchecked(address account, bytes4 interfaceId) internal view returns (bool) { - // prepare call - bytes memory encodedParams = abi.encodeCall(IERC165.supportsInterface, (interfaceId)); - - // perform static call - bool success; - uint256 returnSize; - uint256 returnValue; - assembly { - success := staticcall(30000, account, add(encodedParams, 0x20), mload(encodedParams), 0x00, 0x20) - returnSize := returndatasize() - returnValue := mload(0x00) - } - - return success && returnSize >= 0x20 && returnValue > 0; - } -} diff --git a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/introspection/IERC165.sol b/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/introspection/IERC165.sol deleted file mode 100644 index c09f31f..0000000 --- a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/introspection/IERC165.sol +++ /dev/null @@ -1,25 +0,0 @@ -// 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); -} diff --git a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/math/Math.sol b/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/math/Math.sol deleted file mode 100644 index 6ea4f9d..0000000 --- a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/math/Math.sol +++ /dev/null @@ -1,416 +0,0 @@ -// 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; - } -} diff --git a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/math/SafeCast.sol b/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/math/SafeCast.sol deleted file mode 100644 index 0ed458b..0000000 --- a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/math/SafeCast.sol +++ /dev/null @@ -1,1153 +0,0 @@ -// SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SafeCast.sol) -// This file was procedurally generated from scripts/generate/templates/SafeCast.js. - -pragma solidity ^0.8.20; - -/** - * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow - * checks. - * - * Downcasting from uint256/int256 in Solidity does not revert on overflow. This can - * easily result in undesired exploitation or bugs, since developers usually - * assume that overflows raise errors. `SafeCast` restores this intuition by - * reverting the transaction when such an operation overflows. - * - * Using this library instead of the unchecked operations eliminates an entire - * class of bugs, so it's recommended to use it always. - */ -library SafeCast { - /** - * @dev Value doesn't fit in an uint of `bits` size. - */ - error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value); - - /** - * @dev An int value doesn't fit in an uint of `bits` size. - */ - error SafeCastOverflowedIntToUint(int256 value); - - /** - * @dev Value doesn't fit in an int of `bits` size. - */ - error SafeCastOverflowedIntDowncast(uint8 bits, int256 value); - - /** - * @dev An uint value doesn't fit in an int of `bits` size. - */ - error SafeCastOverflowedUintToInt(uint256 value); - - /** - * @dev Returns the downcasted uint248 from uint256, reverting on - * overflow (when the input is greater than largest uint248). - * - * Counterpart to Solidity's `uint248` operator. - * - * Requirements: - * - * - input must fit into 248 bits - */ - function toUint248(uint256 value) internal pure returns (uint248) { - if (value > type(uint248).max) { - revert SafeCastOverflowedUintDowncast(248, value); - } - return uint248(value); - } - - /** - * @dev Returns the downcasted uint240 from uint256, reverting on - * overflow (when the input is greater than largest uint240). - * - * Counterpart to Solidity's `uint240` operator. - * - * Requirements: - * - * - input must fit into 240 bits - */ - function toUint240(uint256 value) internal pure returns (uint240) { - if (value > type(uint240).max) { - revert SafeCastOverflowedUintDowncast(240, value); - } - return uint240(value); - } - - /** - * @dev Returns the downcasted uint232 from uint256, reverting on - * overflow (when the input is greater than largest uint232). - * - * Counterpart to Solidity's `uint232` operator. - * - * Requirements: - * - * - input must fit into 232 bits - */ - function toUint232(uint256 value) internal pure returns (uint232) { - if (value > type(uint232).max) { - revert SafeCastOverflowedUintDowncast(232, value); - } - return uint232(value); - } - - /** - * @dev Returns the downcasted uint224 from uint256, reverting on - * overflow (when the input is greater than largest uint224). - * - * Counterpart to Solidity's `uint224` operator. - * - * Requirements: - * - * - input must fit into 224 bits - */ - function toUint224(uint256 value) internal pure returns (uint224) { - if (value > type(uint224).max) { - revert SafeCastOverflowedUintDowncast(224, value); - } - return uint224(value); - } - - /** - * @dev Returns the downcasted uint216 from uint256, reverting on - * overflow (when the input is greater than largest uint216). - * - * Counterpart to Solidity's `uint216` operator. - * - * Requirements: - * - * - input must fit into 216 bits - */ - function toUint216(uint256 value) internal pure returns (uint216) { - if (value > type(uint216).max) { - revert SafeCastOverflowedUintDowncast(216, value); - } - return uint216(value); - } - - /** - * @dev Returns the downcasted uint208 from uint256, reverting on - * overflow (when the input is greater than largest uint208). - * - * Counterpart to Solidity's `uint208` operator. - * - * Requirements: - * - * - input must fit into 208 bits - */ - function toUint208(uint256 value) internal pure returns (uint208) { - if (value > type(uint208).max) { - revert SafeCastOverflowedUintDowncast(208, value); - } - return uint208(value); - } - - /** - * @dev Returns the downcasted uint200 from uint256, reverting on - * overflow (when the input is greater than largest uint200). - * - * Counterpart to Solidity's `uint200` operator. - * - * Requirements: - * - * - input must fit into 200 bits - */ - function toUint200(uint256 value) internal pure returns (uint200) { - if (value > type(uint200).max) { - revert SafeCastOverflowedUintDowncast(200, value); - } - return uint200(value); - } - - /** - * @dev Returns the downcasted uint192 from uint256, reverting on - * overflow (when the input is greater than largest uint192). - * - * Counterpart to Solidity's `uint192` operator. - * - * Requirements: - * - * - input must fit into 192 bits - */ - function toUint192(uint256 value) internal pure returns (uint192) { - if (value > type(uint192).max) { - revert SafeCastOverflowedUintDowncast(192, value); - } - return uint192(value); - } - - /** - * @dev Returns the downcasted uint184 from uint256, reverting on - * overflow (when the input is greater than largest uint184). - * - * Counterpart to Solidity's `uint184` operator. - * - * Requirements: - * - * - input must fit into 184 bits - */ - function toUint184(uint256 value) internal pure returns (uint184) { - if (value > type(uint184).max) { - revert SafeCastOverflowedUintDowncast(184, value); - } - return uint184(value); - } - - /** - * @dev Returns the downcasted uint176 from uint256, reverting on - * overflow (when the input is greater than largest uint176). - * - * Counterpart to Solidity's `uint176` operator. - * - * Requirements: - * - * - input must fit into 176 bits - */ - function toUint176(uint256 value) internal pure returns (uint176) { - if (value > type(uint176).max) { - revert SafeCastOverflowedUintDowncast(176, value); - } - return uint176(value); - } - - /** - * @dev Returns the downcasted uint168 from uint256, reverting on - * overflow (when the input is greater than largest uint168). - * - * Counterpart to Solidity's `uint168` operator. - * - * Requirements: - * - * - input must fit into 168 bits - */ - function toUint168(uint256 value) internal pure returns (uint168) { - if (value > type(uint168).max) { - revert SafeCastOverflowedUintDowncast(168, value); - } - return uint168(value); - } - - /** - * @dev Returns the downcasted uint160 from uint256, reverting on - * overflow (when the input is greater than largest uint160). - * - * Counterpart to Solidity's `uint160` operator. - * - * Requirements: - * - * - input must fit into 160 bits - */ - function toUint160(uint256 value) internal pure returns (uint160) { - if (value > type(uint160).max) { - revert SafeCastOverflowedUintDowncast(160, value); - } - return uint160(value); - } - - /** - * @dev Returns the downcasted uint152 from uint256, reverting on - * overflow (when the input is greater than largest uint152). - * - * Counterpart to Solidity's `uint152` operator. - * - * Requirements: - * - * - input must fit into 152 bits - */ - function toUint152(uint256 value) internal pure returns (uint152) { - if (value > type(uint152).max) { - revert SafeCastOverflowedUintDowncast(152, value); - } - return uint152(value); - } - - /** - * @dev Returns the downcasted uint144 from uint256, reverting on - * overflow (when the input is greater than largest uint144). - * - * Counterpart to Solidity's `uint144` operator. - * - * Requirements: - * - * - input must fit into 144 bits - */ - function toUint144(uint256 value) internal pure returns (uint144) { - if (value > type(uint144).max) { - revert SafeCastOverflowedUintDowncast(144, value); - } - return uint144(value); - } - - /** - * @dev Returns the downcasted uint136 from uint256, reverting on - * overflow (when the input is greater than largest uint136). - * - * Counterpart to Solidity's `uint136` operator. - * - * Requirements: - * - * - input must fit into 136 bits - */ - function toUint136(uint256 value) internal pure returns (uint136) { - if (value > type(uint136).max) { - revert SafeCastOverflowedUintDowncast(136, value); - } - return uint136(value); - } - - /** - * @dev Returns the downcasted uint128 from uint256, reverting on - * overflow (when the input is greater than largest uint128). - * - * Counterpart to Solidity's `uint128` operator. - * - * Requirements: - * - * - input must fit into 128 bits - */ - function toUint128(uint256 value) internal pure returns (uint128) { - if (value > type(uint128).max) { - revert SafeCastOverflowedUintDowncast(128, value); - } - return uint128(value); - } - - /** - * @dev Returns the downcasted uint120 from uint256, reverting on - * overflow (when the input is greater than largest uint120). - * - * Counterpart to Solidity's `uint120` operator. - * - * Requirements: - * - * - input must fit into 120 bits - */ - function toUint120(uint256 value) internal pure returns (uint120) { - if (value > type(uint120).max) { - revert SafeCastOverflowedUintDowncast(120, value); - } - return uint120(value); - } - - /** - * @dev Returns the downcasted uint112 from uint256, reverting on - * overflow (when the input is greater than largest uint112). - * - * Counterpart to Solidity's `uint112` operator. - * - * Requirements: - * - * - input must fit into 112 bits - */ - function toUint112(uint256 value) internal pure returns (uint112) { - if (value > type(uint112).max) { - revert SafeCastOverflowedUintDowncast(112, value); - } - return uint112(value); - } - - /** - * @dev Returns the downcasted uint104 from uint256, reverting on - * overflow (when the input is greater than largest uint104). - * - * Counterpart to Solidity's `uint104` operator. - * - * Requirements: - * - * - input must fit into 104 bits - */ - function toUint104(uint256 value) internal pure returns (uint104) { - if (value > type(uint104).max) { - revert SafeCastOverflowedUintDowncast(104, value); - } - return uint104(value); - } - - /** - * @dev Returns the downcasted uint96 from uint256, reverting on - * overflow (when the input is greater than largest uint96). - * - * Counterpart to Solidity's `uint96` operator. - * - * Requirements: - * - * - input must fit into 96 bits - */ - function toUint96(uint256 value) internal pure returns (uint96) { - if (value > type(uint96).max) { - revert SafeCastOverflowedUintDowncast(96, value); - } - return uint96(value); - } - - /** - * @dev Returns the downcasted uint88 from uint256, reverting on - * overflow (when the input is greater than largest uint88). - * - * Counterpart to Solidity's `uint88` operator. - * - * Requirements: - * - * - input must fit into 88 bits - */ - function toUint88(uint256 value) internal pure returns (uint88) { - if (value > type(uint88).max) { - revert SafeCastOverflowedUintDowncast(88, value); - } - return uint88(value); - } - - /** - * @dev Returns the downcasted uint80 from uint256, reverting on - * overflow (when the input is greater than largest uint80). - * - * Counterpart to Solidity's `uint80` operator. - * - * Requirements: - * - * - input must fit into 80 bits - */ - function toUint80(uint256 value) internal pure returns (uint80) { - if (value > type(uint80).max) { - revert SafeCastOverflowedUintDowncast(80, value); - } - return uint80(value); - } - - /** - * @dev Returns the downcasted uint72 from uint256, reverting on - * overflow (when the input is greater than largest uint72). - * - * Counterpart to Solidity's `uint72` operator. - * - * Requirements: - * - * - input must fit into 72 bits - */ - function toUint72(uint256 value) internal pure returns (uint72) { - if (value > type(uint72).max) { - revert SafeCastOverflowedUintDowncast(72, value); - } - return uint72(value); - } - - /** - * @dev Returns the downcasted uint64 from uint256, reverting on - * overflow (when the input is greater than largest uint64). - * - * Counterpart to Solidity's `uint64` operator. - * - * Requirements: - * - * - input must fit into 64 bits - */ - function toUint64(uint256 value) internal pure returns (uint64) { - if (value > type(uint64).max) { - revert SafeCastOverflowedUintDowncast(64, value); - } - return uint64(value); - } - - /** - * @dev Returns the downcasted uint56 from uint256, reverting on - * overflow (when the input is greater than largest uint56). - * - * Counterpart to Solidity's `uint56` operator. - * - * Requirements: - * - * - input must fit into 56 bits - */ - function toUint56(uint256 value) internal pure returns (uint56) { - if (value > type(uint56).max) { - revert SafeCastOverflowedUintDowncast(56, value); - } - return uint56(value); - } - - /** - * @dev Returns the downcasted uint48 from uint256, reverting on - * overflow (when the input is greater than largest uint48). - * - * Counterpart to Solidity's `uint48` operator. - * - * Requirements: - * - * - input must fit into 48 bits - */ - function toUint48(uint256 value) internal pure returns (uint48) { - if (value > type(uint48).max) { - revert SafeCastOverflowedUintDowncast(48, value); - } - return uint48(value); - } - - /** - * @dev Returns the downcasted uint40 from uint256, reverting on - * overflow (when the input is greater than largest uint40). - * - * Counterpart to Solidity's `uint40` operator. - * - * Requirements: - * - * - input must fit into 40 bits - */ - function toUint40(uint256 value) internal pure returns (uint40) { - if (value > type(uint40).max) { - revert SafeCastOverflowedUintDowncast(40, value); - } - return uint40(value); - } - - /** - * @dev Returns the downcasted uint32 from uint256, reverting on - * overflow (when the input is greater than largest uint32). - * - * Counterpart to Solidity's `uint32` operator. - * - * Requirements: - * - * - input must fit into 32 bits - */ - function toUint32(uint256 value) internal pure returns (uint32) { - if (value > type(uint32).max) { - revert SafeCastOverflowedUintDowncast(32, value); - } - return uint32(value); - } - - /** - * @dev Returns the downcasted uint24 from uint256, reverting on - * overflow (when the input is greater than largest uint24). - * - * Counterpart to Solidity's `uint24` operator. - * - * Requirements: - * - * - input must fit into 24 bits - */ - function toUint24(uint256 value) internal pure returns (uint24) { - if (value > type(uint24).max) { - revert SafeCastOverflowedUintDowncast(24, value); - } - return uint24(value); - } - - /** - * @dev Returns the downcasted uint16 from uint256, reverting on - * overflow (when the input is greater than largest uint16). - * - * Counterpart to Solidity's `uint16` operator. - * - * Requirements: - * - * - input must fit into 16 bits - */ - function toUint16(uint256 value) internal pure returns (uint16) { - if (value > type(uint16).max) { - revert SafeCastOverflowedUintDowncast(16, value); - } - return uint16(value); - } - - /** - * @dev Returns the downcasted uint8 from uint256, reverting on - * overflow (when the input is greater than largest uint8). - * - * Counterpart to Solidity's `uint8` operator. - * - * Requirements: - * - * - input must fit into 8 bits - */ - function toUint8(uint256 value) internal pure returns (uint8) { - if (value > type(uint8).max) { - revert SafeCastOverflowedUintDowncast(8, value); - } - return uint8(value); - } - - /** - * @dev Converts a signed int256 into an unsigned uint256. - * - * Requirements: - * - * - input must be greater than or equal to 0. - */ - function toUint256(int256 value) internal pure returns (uint256) { - if (value < 0) { - revert SafeCastOverflowedIntToUint(value); - } - return uint256(value); - } - - /** - * @dev Returns the downcasted int248 from int256, reverting on - * overflow (when the input is less than smallest int248 or - * greater than largest int248). - * - * Counterpart to Solidity's `int248` operator. - * - * Requirements: - * - * - input must fit into 248 bits - */ - function toInt248(int256 value) internal pure returns (int248 downcasted) { - downcasted = int248(value); - if (downcasted != value) { - revert SafeCastOverflowedIntDowncast(248, value); - } - } - - /** - * @dev Returns the downcasted int240 from int256, reverting on - * overflow (when the input is less than smallest int240 or - * greater than largest int240). - * - * Counterpart to Solidity's `int240` operator. - * - * Requirements: - * - * - input must fit into 240 bits - */ - function toInt240(int256 value) internal pure returns (int240 downcasted) { - downcasted = int240(value); - if (downcasted != value) { - revert SafeCastOverflowedIntDowncast(240, value); - } - } - - /** - * @dev Returns the downcasted int232 from int256, reverting on - * overflow (when the input is less than smallest int232 or - * greater than largest int232). - * - * Counterpart to Solidity's `int232` operator. - * - * Requirements: - * - * - input must fit into 232 bits - */ - function toInt232(int256 value) internal pure returns (int232 downcasted) { - downcasted = int232(value); - if (downcasted != value) { - revert SafeCastOverflowedIntDowncast(232, value); - } - } - - /** - * @dev Returns the downcasted int224 from int256, reverting on - * overflow (when the input is less than smallest int224 or - * greater than largest int224). - * - * Counterpart to Solidity's `int224` operator. - * - * Requirements: - * - * - input must fit into 224 bits - */ - function toInt224(int256 value) internal pure returns (int224 downcasted) { - downcasted = int224(value); - if (downcasted != value) { - revert SafeCastOverflowedIntDowncast(224, value); - } - } - - /** - * @dev Returns the downcasted int216 from int256, reverting on - * overflow (when the input is less than smallest int216 or - * greater than largest int216). - * - * Counterpart to Solidity's `int216` operator. - * - * Requirements: - * - * - input must fit into 216 bits - */ - function toInt216(int256 value) internal pure returns (int216 downcasted) { - downcasted = int216(value); - if (downcasted != value) { - revert SafeCastOverflowedIntDowncast(216, value); - } - } - - /** - * @dev Returns the downcasted int208 from int256, reverting on - * overflow (when the input is less than smallest int208 or - * greater than largest int208). - * - * Counterpart to Solidity's `int208` operator. - * - * Requirements: - * - * - input must fit into 208 bits - */ - function toInt208(int256 value) internal pure returns (int208 downcasted) { - downcasted = int208(value); - if (downcasted != value) { - revert SafeCastOverflowedIntDowncast(208, value); - } - } - - /** - * @dev Returns the downcasted int200 from int256, reverting on - * overflow (when the input is less than smallest int200 or - * greater than largest int200). - * - * Counterpart to Solidity's `int200` operator. - * - * Requirements: - * - * - input must fit into 200 bits - */ - function toInt200(int256 value) internal pure returns (int200 downcasted) { - downcasted = int200(value); - if (downcasted != value) { - revert SafeCastOverflowedIntDowncast(200, value); - } - } - - /** - * @dev Returns the downcasted int192 from int256, reverting on - * overflow (when the input is less than smallest int192 or - * greater than largest int192). - * - * Counterpart to Solidity's `int192` operator. - * - * Requirements: - * - * - input must fit into 192 bits - */ - function toInt192(int256 value) internal pure returns (int192 downcasted) { - downcasted = int192(value); - if (downcasted != value) { - revert SafeCastOverflowedIntDowncast(192, value); - } - } - - /** - * @dev Returns the downcasted int184 from int256, reverting on - * overflow (when the input is less than smallest int184 or - * greater than largest int184). - * - * Counterpart to Solidity's `int184` operator. - * - * Requirements: - * - * - input must fit into 184 bits - */ - function toInt184(int256 value) internal pure returns (int184 downcasted) { - downcasted = int184(value); - if (downcasted != value) { - revert SafeCastOverflowedIntDowncast(184, value); - } - } - - /** - * @dev Returns the downcasted int176 from int256, reverting on - * overflow (when the input is less than smallest int176 or - * greater than largest int176). - * - * Counterpart to Solidity's `int176` operator. - * - * Requirements: - * - * - input must fit into 176 bits - */ - function toInt176(int256 value) internal pure returns (int176 downcasted) { - downcasted = int176(value); - if (downcasted != value) { - revert SafeCastOverflowedIntDowncast(176, value); - } - } - - /** - * @dev Returns the downcasted int168 from int256, reverting on - * overflow (when the input is less than smallest int168 or - * greater than largest int168). - * - * Counterpart to Solidity's `int168` operator. - * - * Requirements: - * - * - input must fit into 168 bits - */ - function toInt168(int256 value) internal pure returns (int168 downcasted) { - downcasted = int168(value); - if (downcasted != value) { - revert SafeCastOverflowedIntDowncast(168, value); - } - } - - /** - * @dev Returns the downcasted int160 from int256, reverting on - * overflow (when the input is less than smallest int160 or - * greater than largest int160). - * - * Counterpart to Solidity's `int160` operator. - * - * Requirements: - * - * - input must fit into 160 bits - */ - function toInt160(int256 value) internal pure returns (int160 downcasted) { - downcasted = int160(value); - if (downcasted != value) { - revert SafeCastOverflowedIntDowncast(160, value); - } - } - - /** - * @dev Returns the downcasted int152 from int256, reverting on - * overflow (when the input is less than smallest int152 or - * greater than largest int152). - * - * Counterpart to Solidity's `int152` operator. - * - * Requirements: - * - * - input must fit into 152 bits - */ - function toInt152(int256 value) internal pure returns (int152 downcasted) { - downcasted = int152(value); - if (downcasted != value) { - revert SafeCastOverflowedIntDowncast(152, value); - } - } - - /** - * @dev Returns the downcasted int144 from int256, reverting on - * overflow (when the input is less than smallest int144 or - * greater than largest int144). - * - * Counterpart to Solidity's `int144` operator. - * - * Requirements: - * - * - input must fit into 144 bits - */ - function toInt144(int256 value) internal pure returns (int144 downcasted) { - downcasted = int144(value); - if (downcasted != value) { - revert SafeCastOverflowedIntDowncast(144, value); - } - } - - /** - * @dev Returns the downcasted int136 from int256, reverting on - * overflow (when the input is less than smallest int136 or - * greater than largest int136). - * - * Counterpart to Solidity's `int136` operator. - * - * Requirements: - * - * - input must fit into 136 bits - */ - function toInt136(int256 value) internal pure returns (int136 downcasted) { - downcasted = int136(value); - if (downcasted != value) { - revert SafeCastOverflowedIntDowncast(136, value); - } - } - - /** - * @dev Returns the downcasted int128 from int256, reverting on - * overflow (when the input is less than smallest int128 or - * greater than largest int128). - * - * Counterpart to Solidity's `int128` operator. - * - * Requirements: - * - * - input must fit into 128 bits - */ - function toInt128(int256 value) internal pure returns (int128 downcasted) { - downcasted = int128(value); - if (downcasted != value) { - revert SafeCastOverflowedIntDowncast(128, value); - } - } - - /** - * @dev Returns the downcasted int120 from int256, reverting on - * overflow (when the input is less than smallest int120 or - * greater than largest int120). - * - * Counterpart to Solidity's `int120` operator. - * - * Requirements: - * - * - input must fit into 120 bits - */ - function toInt120(int256 value) internal pure returns (int120 downcasted) { - downcasted = int120(value); - if (downcasted != value) { - revert SafeCastOverflowedIntDowncast(120, value); - } - } - - /** - * @dev Returns the downcasted int112 from int256, reverting on - * overflow (when the input is less than smallest int112 or - * greater than largest int112). - * - * Counterpart to Solidity's `int112` operator. - * - * Requirements: - * - * - input must fit into 112 bits - */ - function toInt112(int256 value) internal pure returns (int112 downcasted) { - downcasted = int112(value); - if (downcasted != value) { - revert SafeCastOverflowedIntDowncast(112, value); - } - } - - /** - * @dev Returns the downcasted int104 from int256, reverting on - * overflow (when the input is less than smallest int104 or - * greater than largest int104). - * - * Counterpart to Solidity's `int104` operator. - * - * Requirements: - * - * - input must fit into 104 bits - */ - function toInt104(int256 value) internal pure returns (int104 downcasted) { - downcasted = int104(value); - if (downcasted != value) { - revert SafeCastOverflowedIntDowncast(104, value); - } - } - - /** - * @dev Returns the downcasted int96 from int256, reverting on - * overflow (when the input is less than smallest int96 or - * greater than largest int96). - * - * Counterpart to Solidity's `int96` operator. - * - * Requirements: - * - * - input must fit into 96 bits - */ - function toInt96(int256 value) internal pure returns (int96 downcasted) { - downcasted = int96(value); - if (downcasted != value) { - revert SafeCastOverflowedIntDowncast(96, value); - } - } - - /** - * @dev Returns the downcasted int88 from int256, reverting on - * overflow (when the input is less than smallest int88 or - * greater than largest int88). - * - * Counterpart to Solidity's `int88` operator. - * - * Requirements: - * - * - input must fit into 88 bits - */ - function toInt88(int256 value) internal pure returns (int88 downcasted) { - downcasted = int88(value); - if (downcasted != value) { - revert SafeCastOverflowedIntDowncast(88, value); - } - } - - /** - * @dev Returns the downcasted int80 from int256, reverting on - * overflow (when the input is less than smallest int80 or - * greater than largest int80). - * - * Counterpart to Solidity's `int80` operator. - * - * Requirements: - * - * - input must fit into 80 bits - */ - function toInt80(int256 value) internal pure returns (int80 downcasted) { - downcasted = int80(value); - if (downcasted != value) { - revert SafeCastOverflowedIntDowncast(80, value); - } - } - - /** - * @dev Returns the downcasted int72 from int256, reverting on - * overflow (when the input is less than smallest int72 or - * greater than largest int72). - * - * Counterpart to Solidity's `int72` operator. - * - * Requirements: - * - * - input must fit into 72 bits - */ - function toInt72(int256 value) internal pure returns (int72 downcasted) { - downcasted = int72(value); - if (downcasted != value) { - revert SafeCastOverflowedIntDowncast(72, value); - } - } - - /** - * @dev Returns the downcasted int64 from int256, reverting on - * overflow (when the input is less than smallest int64 or - * greater than largest int64). - * - * Counterpart to Solidity's `int64` operator. - * - * Requirements: - * - * - input must fit into 64 bits - */ - function toInt64(int256 value) internal pure returns (int64 downcasted) { - downcasted = int64(value); - if (downcasted != value) { - revert SafeCastOverflowedIntDowncast(64, value); - } - } - - /** - * @dev Returns the downcasted int56 from int256, reverting on - * overflow (when the input is less than smallest int56 or - * greater than largest int56). - * - * Counterpart to Solidity's `int56` operator. - * - * Requirements: - * - * - input must fit into 56 bits - */ - function toInt56(int256 value) internal pure returns (int56 downcasted) { - downcasted = int56(value); - if (downcasted != value) { - revert SafeCastOverflowedIntDowncast(56, value); - } - } - - /** - * @dev Returns the downcasted int48 from int256, reverting on - * overflow (when the input is less than smallest int48 or - * greater than largest int48). - * - * Counterpart to Solidity's `int48` operator. - * - * Requirements: - * - * - input must fit into 48 bits - */ - function toInt48(int256 value) internal pure returns (int48 downcasted) { - downcasted = int48(value); - if (downcasted != value) { - revert SafeCastOverflowedIntDowncast(48, value); - } - } - - /** - * @dev Returns the downcasted int40 from int256, reverting on - * overflow (when the input is less than smallest int40 or - * greater than largest int40). - * - * Counterpart to Solidity's `int40` operator. - * - * Requirements: - * - * - input must fit into 40 bits - */ - function toInt40(int256 value) internal pure returns (int40 downcasted) { - downcasted = int40(value); - if (downcasted != value) { - revert SafeCastOverflowedIntDowncast(40, value); - } - } - - /** - * @dev Returns the downcasted int32 from int256, reverting on - * overflow (when the input is less than smallest int32 or - * greater than largest int32). - * - * Counterpart to Solidity's `int32` operator. - * - * Requirements: - * - * - input must fit into 32 bits - */ - function toInt32(int256 value) internal pure returns (int32 downcasted) { - downcasted = int32(value); - if (downcasted != value) { - revert SafeCastOverflowedIntDowncast(32, value); - } - } - - /** - * @dev Returns the downcasted int24 from int256, reverting on - * overflow (when the input is less than smallest int24 or - * greater than largest int24). - * - * Counterpart to Solidity's `int24` operator. - * - * Requirements: - * - * - input must fit into 24 bits - */ - function toInt24(int256 value) internal pure returns (int24 downcasted) { - downcasted = int24(value); - if (downcasted != value) { - revert SafeCastOverflowedIntDowncast(24, value); - } - } - - /** - * @dev Returns the downcasted int16 from int256, reverting on - * overflow (when the input is less than smallest int16 or - * greater than largest int16). - * - * Counterpart to Solidity's `int16` operator. - * - * Requirements: - * - * - input must fit into 16 bits - */ - function toInt16(int256 value) internal pure returns (int16 downcasted) { - downcasted = int16(value); - if (downcasted != value) { - revert SafeCastOverflowedIntDowncast(16, value); - } - } - - /** - * @dev Returns the downcasted int8 from int256, reverting on - * overflow (when the input is less than smallest int8 or - * greater than largest int8). - * - * Counterpart to Solidity's `int8` operator. - * - * Requirements: - * - * - input must fit into 8 bits - */ - function toInt8(int256 value) internal pure returns (int8 downcasted) { - downcasted = int8(value); - if (downcasted != value) { - revert SafeCastOverflowedIntDowncast(8, value); - } - } - - /** - * @dev Converts an unsigned uint256 into a signed int256. - * - * Requirements: - * - * - input must be less than or equal to maxInt256. - */ - function toInt256(uint256 value) internal pure returns (int256) { - // Note: Unsafe cast below is okay because `type(int256).max` is guaranteed to be positive - if (value > uint256(type(int256).max)) { - revert SafeCastOverflowedUintToInt(value); - } - return int256(value); - } -} diff --git a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/math/SignedMath.sol b/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/math/SignedMath.sol deleted file mode 100644 index 66a6151..0000000 --- a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/math/SignedMath.sol +++ /dev/null @@ -1,43 +0,0 @@ -// 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); - } - } -} diff --git a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/structs/EnumerableMap.sol b/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/structs/EnumerableMap.sol deleted file mode 100644 index 929ae7c..0000000 --- a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/structs/EnumerableMap.sol +++ /dev/null @@ -1,533 +0,0 @@ -// SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.0.0) (utils/structs/EnumerableMap.sol) -// This file was procedurally generated from scripts/generate/templates/EnumerableMap.js. - -pragma solidity ^0.8.20; - -import {EnumerableSet} from "./EnumerableSet.sol"; - -/** - * @dev Library for managing an enumerable variant of Solidity's - * https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`] - * type. - * - * Maps have the following properties: - * - * - Entries are added, removed, and checked for existence in constant time - * (O(1)). - * - Entries are enumerated in O(n). No guarantees are made on the ordering. - * - * ```solidity - * contract Example { - * // Add the library methods - * using EnumerableMap for EnumerableMap.UintToAddressMap; - * - * // Declare a set state variable - * EnumerableMap.UintToAddressMap private myMap; - * } - * ``` - * - * The following map types are supported: - * - * - `uint256 -> address` (`UintToAddressMap`) since v3.0.0 - * - `address -> uint256` (`AddressToUintMap`) since v4.6.0 - * - `bytes32 -> bytes32` (`Bytes32ToBytes32Map`) since v4.6.0 - * - `uint256 -> uint256` (`UintToUintMap`) since v4.7.0 - * - `bytes32 -> uint256` (`Bytes32ToUintMap`) since v4.7.0 - * - * [WARNING] - * ==== - * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure - * unusable. - * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info. - * - * In order to clean an EnumerableMap, you can either remove all elements one by one or create a fresh instance using an - * array of EnumerableMap. - * ==== - */ -library EnumerableMap { - using EnumerableSet for EnumerableSet.Bytes32Set; - - // To implement this library for multiple types with as little code repetition as possible, we write it in - // terms of a generic Map type with bytes32 keys and values. The Map implementation uses private functions, - // and user-facing implementations such as `UintToAddressMap` are just wrappers around the underlying Map. - // This means that we can only create new EnumerableMaps for types that fit in bytes32. - - /** - * @dev Query for a nonexistent map key. - */ - error EnumerableMapNonexistentKey(bytes32 key); - - struct Bytes32ToBytes32Map { - // Storage of keys - EnumerableSet.Bytes32Set _keys; - mapping(bytes32 key => bytes32) _values; - } - - /** - * @dev Adds a key-value pair to a map, or updates the value for an existing - * key. O(1). - * - * Returns true if the key was added to the map, that is if it was not - * already present. - */ - function set(Bytes32ToBytes32Map storage map, bytes32 key, bytes32 value) internal returns (bool) { - map._values[key] = value; - return map._keys.add(key); - } - - /** - * @dev Removes a key-value pair from a map. O(1). - * - * Returns true if the key was removed from the map, that is if it was present. - */ - function remove(Bytes32ToBytes32Map storage map, bytes32 key) internal returns (bool) { - delete map._values[key]; - return map._keys.remove(key); - } - - /** - * @dev Returns true if the key is in the map. O(1). - */ - function contains(Bytes32ToBytes32Map storage map, bytes32 key) internal view returns (bool) { - return map._keys.contains(key); - } - - /** - * @dev Returns the number of key-value pairs in the map. O(1). - */ - function length(Bytes32ToBytes32Map storage map) internal view returns (uint256) { - return map._keys.length(); - } - - /** - * @dev Returns the key-value pair stored at position `index` in the map. O(1). - * - * Note that there are no guarantees on the ordering of entries inside the - * array, and it may change when more entries are added or removed. - * - * Requirements: - * - * - `index` must be strictly less than {length}. - */ - function at(Bytes32ToBytes32Map storage map, uint256 index) internal view returns (bytes32, bytes32) { - bytes32 key = map._keys.at(index); - return (key, map._values[key]); - } - - /** - * @dev Tries to returns the value associated with `key`. O(1). - * Does not revert if `key` is not in the map. - */ - function tryGet(Bytes32ToBytes32Map storage map, bytes32 key) internal view returns (bool, bytes32) { - bytes32 value = map._values[key]; - if (value == bytes32(0)) { - return (contains(map, key), bytes32(0)); - } else { - return (true, value); - } - } - - /** - * @dev Returns the value associated with `key`. O(1). - * - * Requirements: - * - * - `key` must be in the map. - */ - function get(Bytes32ToBytes32Map storage map, bytes32 key) internal view returns (bytes32) { - bytes32 value = map._values[key]; - if (value == 0 && !contains(map, key)) { - revert EnumerableMapNonexistentKey(key); - } - return value; - } - - /** - * @dev Return the an array containing all the keys - * - * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed - * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that - * this function has an unbounded cost, and using it as part of a state-changing function may render the function - * uncallable if the map grows to a point where copying to memory consumes too much gas to fit in a block. - */ - function keys(Bytes32ToBytes32Map storage map) internal view returns (bytes32[] memory) { - return map._keys.values(); - } - - // UintToUintMap - - struct UintToUintMap { - Bytes32ToBytes32Map _inner; - } - - /** - * @dev Adds a key-value pair to a map, or updates the value for an existing - * key. O(1). - * - * Returns true if the key was added to the map, that is if it was not - * already present. - */ - function set(UintToUintMap storage map, uint256 key, uint256 value) internal returns (bool) { - return set(map._inner, bytes32(key), bytes32(value)); - } - - /** - * @dev Removes a value from a map. O(1). - * - * Returns true if the key was removed from the map, that is if it was present. - */ - function remove(UintToUintMap storage map, uint256 key) internal returns (bool) { - return remove(map._inner, bytes32(key)); - } - - /** - * @dev Returns true if the key is in the map. O(1). - */ - function contains(UintToUintMap storage map, uint256 key) internal view returns (bool) { - return contains(map._inner, bytes32(key)); - } - - /** - * @dev Returns the number of elements in the map. O(1). - */ - function length(UintToUintMap storage map) internal view returns (uint256) { - return length(map._inner); - } - - /** - * @dev Returns the element stored at position `index` in the map. O(1). - * Note that there are no guarantees on the ordering of values inside the - * array, and it may change when more values are added or removed. - * - * Requirements: - * - * - `index` must be strictly less than {length}. - */ - function at(UintToUintMap storage map, uint256 index) internal view returns (uint256, uint256) { - (bytes32 key, bytes32 value) = at(map._inner, index); - return (uint256(key), uint256(value)); - } - - /** - * @dev Tries to returns the value associated with `key`. O(1). - * Does not revert if `key` is not in the map. - */ - function tryGet(UintToUintMap storage map, uint256 key) internal view returns (bool, uint256) { - (bool success, bytes32 value) = tryGet(map._inner, bytes32(key)); - return (success, uint256(value)); - } - - /** - * @dev Returns the value associated with `key`. O(1). - * - * Requirements: - * - * - `key` must be in the map. - */ - function get(UintToUintMap storage map, uint256 key) internal view returns (uint256) { - return uint256(get(map._inner, bytes32(key))); - } - - /** - * @dev Return the an array containing all the keys - * - * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed - * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that - * this function has an unbounded cost, and using it as part of a state-changing function may render the function - * uncallable if the map grows to a point where copying to memory consumes too much gas to fit in a block. - */ - function keys(UintToUintMap storage map) internal view returns (uint256[] memory) { - bytes32[] memory store = keys(map._inner); - uint256[] memory result; - - /// @solidity memory-safe-assembly - assembly { - result := store - } - - return result; - } - - // UintToAddressMap - - struct UintToAddressMap { - Bytes32ToBytes32Map _inner; - } - - /** - * @dev Adds a key-value pair to a map, or updates the value for an existing - * key. O(1). - * - * Returns true if the key was added to the map, that is if it was not - * already present. - */ - function set(UintToAddressMap storage map, uint256 key, address value) internal returns (bool) { - return set(map._inner, bytes32(key), bytes32(uint256(uint160(value)))); - } - - /** - * @dev Removes a value from a map. O(1). - * - * Returns true if the key was removed from the map, that is if it was present. - */ - function remove(UintToAddressMap storage map, uint256 key) internal returns (bool) { - return remove(map._inner, bytes32(key)); - } - - /** - * @dev Returns true if the key is in the map. O(1). - */ - function contains(UintToAddressMap storage map, uint256 key) internal view returns (bool) { - return contains(map._inner, bytes32(key)); - } - - /** - * @dev Returns the number of elements in the map. O(1). - */ - function length(UintToAddressMap storage map) internal view returns (uint256) { - return length(map._inner); - } - - /** - * @dev Returns the element stored at position `index` in the map. O(1). - * Note that there are no guarantees on the ordering of values inside the - * array, and it may change when more values are added or removed. - * - * Requirements: - * - * - `index` must be strictly less than {length}. - */ - function at(UintToAddressMap storage map, uint256 index) internal view returns (uint256, address) { - (bytes32 key, bytes32 value) = at(map._inner, index); - return (uint256(key), address(uint160(uint256(value)))); - } - - /** - * @dev Tries to returns the value associated with `key`. O(1). - * Does not revert if `key` is not in the map. - */ - function tryGet(UintToAddressMap storage map, uint256 key) internal view returns (bool, address) { - (bool success, bytes32 value) = tryGet(map._inner, bytes32(key)); - return (success, address(uint160(uint256(value)))); - } - - /** - * @dev Returns the value associated with `key`. O(1). - * - * Requirements: - * - * - `key` must be in the map. - */ - function get(UintToAddressMap storage map, uint256 key) internal view returns (address) { - return address(uint160(uint256(get(map._inner, bytes32(key))))); - } - - /** - * @dev Return the an array containing all the keys - * - * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed - * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that - * this function has an unbounded cost, and using it as part of a state-changing function may render the function - * uncallable if the map grows to a point where copying to memory consumes too much gas to fit in a block. - */ - function keys(UintToAddressMap storage map) internal view returns (uint256[] memory) { - bytes32[] memory store = keys(map._inner); - uint256[] memory result; - - /// @solidity memory-safe-assembly - assembly { - result := store - } - - return result; - } - - // AddressToUintMap - - struct AddressToUintMap { - Bytes32ToBytes32Map _inner; - } - - /** - * @dev Adds a key-value pair to a map, or updates the value for an existing - * key. O(1). - * - * Returns true if the key was added to the map, that is if it was not - * already present. - */ - function set(AddressToUintMap storage map, address key, uint256 value) internal returns (bool) { - return set(map._inner, bytes32(uint256(uint160(key))), bytes32(value)); - } - - /** - * @dev Removes a value from a map. O(1). - * - * Returns true if the key was removed from the map, that is if it was present. - */ - function remove(AddressToUintMap storage map, address key) internal returns (bool) { - return remove(map._inner, bytes32(uint256(uint160(key)))); - } - - /** - * @dev Returns true if the key is in the map. O(1). - */ - function contains(AddressToUintMap storage map, address key) internal view returns (bool) { - return contains(map._inner, bytes32(uint256(uint160(key)))); - } - - /** - * @dev Returns the number of elements in the map. O(1). - */ - function length(AddressToUintMap storage map) internal view returns (uint256) { - return length(map._inner); - } - - /** - * @dev Returns the element stored at position `index` in the map. O(1). - * Note that there are no guarantees on the ordering of values inside the - * array, and it may change when more values are added or removed. - * - * Requirements: - * - * - `index` must be strictly less than {length}. - */ - function at(AddressToUintMap storage map, uint256 index) internal view returns (address, uint256) { - (bytes32 key, bytes32 value) = at(map._inner, index); - return (address(uint160(uint256(key))), uint256(value)); - } - - /** - * @dev Tries to returns the value associated with `key`. O(1). - * Does not revert if `key` is not in the map. - */ - function tryGet(AddressToUintMap storage map, address key) internal view returns (bool, uint256) { - (bool success, bytes32 value) = tryGet(map._inner, bytes32(uint256(uint160(key)))); - return (success, uint256(value)); - } - - /** - * @dev Returns the value associated with `key`. O(1). - * - * Requirements: - * - * - `key` must be in the map. - */ - function get(AddressToUintMap storage map, address key) internal view returns (uint256) { - return uint256(get(map._inner, bytes32(uint256(uint160(key))))); - } - - /** - * @dev Return the an array containing all the keys - * - * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed - * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that - * this function has an unbounded cost, and using it as part of a state-changing function may render the function - * uncallable if the map grows to a point where copying to memory consumes too much gas to fit in a block. - */ - function keys(AddressToUintMap storage map) internal view returns (address[] memory) { - bytes32[] memory store = keys(map._inner); - address[] memory result; - - /// @solidity memory-safe-assembly - assembly { - result := store - } - - return result; - } - - // Bytes32ToUintMap - - struct Bytes32ToUintMap { - Bytes32ToBytes32Map _inner; - } - - /** - * @dev Adds a key-value pair to a map, or updates the value for an existing - * key. O(1). - * - * Returns true if the key was added to the map, that is if it was not - * already present. - */ - function set(Bytes32ToUintMap storage map, bytes32 key, uint256 value) internal returns (bool) { - return set(map._inner, key, bytes32(value)); - } - - /** - * @dev Removes a value from a map. O(1). - * - * Returns true if the key was removed from the map, that is if it was present. - */ - function remove(Bytes32ToUintMap storage map, bytes32 key) internal returns (bool) { - return remove(map._inner, key); - } - - /** - * @dev Returns true if the key is in the map. O(1). - */ - function contains(Bytes32ToUintMap storage map, bytes32 key) internal view returns (bool) { - return contains(map._inner, key); - } - - /** - * @dev Returns the number of elements in the map. O(1). - */ - function length(Bytes32ToUintMap storage map) internal view returns (uint256) { - return length(map._inner); - } - - /** - * @dev Returns the element stored at position `index` in the map. O(1). - * Note that there are no guarantees on the ordering of values inside the - * array, and it may change when more values are added or removed. - * - * Requirements: - * - * - `index` must be strictly less than {length}. - */ - function at(Bytes32ToUintMap storage map, uint256 index) internal view returns (bytes32, uint256) { - (bytes32 key, bytes32 value) = at(map._inner, index); - return (key, uint256(value)); - } - - /** - * @dev Tries to returns the value associated with `key`. O(1). - * Does not revert if `key` is not in the map. - */ - function tryGet(Bytes32ToUintMap storage map, bytes32 key) internal view returns (bool, uint256) { - (bool success, bytes32 value) = tryGet(map._inner, key); - return (success, uint256(value)); - } - - /** - * @dev Returns the value associated with `key`. O(1). - * - * Requirements: - * - * - `key` must be in the map. - */ - function get(Bytes32ToUintMap storage map, bytes32 key) internal view returns (uint256) { - return uint256(get(map._inner, key)); - } - - /** - * @dev Return the an array containing all the keys - * - * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed - * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that - * this function has an unbounded cost, and using it as part of a state-changing function may render the function - * uncallable if the map grows to a point where copying to memory consumes too much gas to fit in a block. - */ - function keys(Bytes32ToUintMap storage map) internal view returns (bytes32[] memory) { - bytes32[] memory store = keys(map._inner); - bytes32[] memory result; - - /// @solidity memory-safe-assembly - assembly { - result := store - } - - return result; - } -} diff --git a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/structs/EnumerableSet.sol b/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/structs/EnumerableSet.sol deleted file mode 100644 index 4c7fc5e..0000000 --- a/src/vendor/openzeppelin-solidity/v5.0.2/contracts/utils/structs/EnumerableSet.sol +++ /dev/null @@ -1,378 +0,0 @@ -// SPDX-License-Identifier: MIT -// OpenZeppelin Contracts (last updated v5.0.0) (utils/structs/EnumerableSet.sol) -// This file was procedurally generated from scripts/generate/templates/EnumerableSet.js. - -pragma solidity ^0.8.20; - -/** - * @dev Library for managing - * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive - * types. - * - * Sets have the following properties: - * - * - Elements are added, removed, and checked for existence in constant time - * (O(1)). - * - Elements are enumerated in O(n). No guarantees are made on the ordering. - * - * ```solidity - * contract Example { - * // Add the library methods - * using EnumerableSet for EnumerableSet.AddressSet; - * - * // Declare a set state variable - * EnumerableSet.AddressSet private mySet; - * } - * ``` - * - * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`) - * and `uint256` (`UintSet`) are supported. - * - * [WARNING] - * ==== - * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure - * unusable. - * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info. - * - * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an - * array of EnumerableSet. - * ==== - */ -library EnumerableSet { - // To implement this library for multiple types with as little code - // repetition as possible, we write it in terms of a generic Set type with - // bytes32 values. - // The Set implementation uses private functions, and user-facing - // implementations (such as AddressSet) are just wrappers around the - // underlying Set. - // This means that we can only create new EnumerableSets for types that fit - // in bytes32. - - struct Set { - // Storage of set values - bytes32[] _values; - // Position is the index of the value in the `values` array plus 1. - // Position 0 is used to mean a value is not in the set. - mapping(bytes32 value => uint256) _positions; - } - - /** - * @dev Add a value to a set. O(1). - * - * Returns true if the value was added to the set, that is if it was not - * already present. - */ - function _add(Set storage set, bytes32 value) private returns (bool) { - if (!_contains(set, value)) { - set._values.push(value); - // The value is stored at length-1, but we add 1 to all indexes - // and use 0 as a sentinel value - set._positions[value] = set._values.length; - return true; - } else { - return false; - } - } - - /** - * @dev Removes a value from a set. O(1). - * - * Returns true if the value was removed from the set, that is if it was - * present. - */ - function _remove(Set storage set, bytes32 value) private returns (bool) { - // We cache the value's position to prevent multiple reads from the same storage slot - uint256 position = set._positions[value]; - - if (position != 0) { - // Equivalent to contains(set, value) - // To delete an element from the _values array in O(1), we swap the element to delete with the last one in - // the array, and then remove the last element (sometimes called as 'swap and pop'). - // This modifies the order of the array, as noted in {at}. - - uint256 valueIndex = position - 1; - uint256 lastIndex = set._values.length - 1; - - if (valueIndex != lastIndex) { - bytes32 lastValue = set._values[lastIndex]; - - // Move the lastValue to the index where the value to delete is - set._values[valueIndex] = lastValue; - // Update the tracked position of the lastValue (that was just moved) - set._positions[lastValue] = position; - } - - // Delete the slot where the moved value was stored - set._values.pop(); - - // Delete the tracked position for the deleted slot - delete set._positions[value]; - - return true; - } else { - return false; - } - } - - /** - * @dev Returns true if the value is in the set. O(1). - */ - function _contains(Set storage set, bytes32 value) private view returns (bool) { - return set._positions[value] != 0; - } - - /** - * @dev Returns the number of values on the set. O(1). - */ - function _length(Set storage set) private view returns (uint256) { - return set._values.length; - } - - /** - * @dev Returns the value stored at position `index` in the set. O(1). - * - * Note that there are no guarantees on the ordering of values inside the - * array, and it may change when more values are added or removed. - * - * Requirements: - * - * - `index` must be strictly less than {length}. - */ - function _at(Set storage set, uint256 index) private view returns (bytes32) { - return set._values[index]; - } - - /** - * @dev Return the entire set in an array - * - * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed - * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that - * this function has an unbounded cost, and using it as part of a state-changing function may render the function - * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. - */ - function _values(Set storage set) private view returns (bytes32[] memory) { - return set._values; - } - - // Bytes32Set - - struct Bytes32Set { - Set _inner; - } - - /** - * @dev Add a value to a set. O(1). - * - * Returns true if the value was added to the set, that is if it was not - * already present. - */ - function add(Bytes32Set storage set, bytes32 value) internal returns (bool) { - return _add(set._inner, value); - } - - /** - * @dev Removes a value from a set. O(1). - * - * Returns true if the value was removed from the set, that is if it was - * present. - */ - function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) { - return _remove(set._inner, value); - } - - /** - * @dev Returns true if the value is in the set. O(1). - */ - function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) { - return _contains(set._inner, value); - } - - /** - * @dev Returns the number of values in the set. O(1). - */ - function length(Bytes32Set storage set) internal view returns (uint256) { - return _length(set._inner); - } - - /** - * @dev Returns the value stored at position `index` in the set. O(1). - * - * Note that there are no guarantees on the ordering of values inside the - * array, and it may change when more values are added or removed. - * - * Requirements: - * - * - `index` must be strictly less than {length}. - */ - function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) { - return _at(set._inner, index); - } - - /** - * @dev Return the entire set in an array - * - * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed - * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that - * this function has an unbounded cost, and using it as part of a state-changing function may render the function - * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. - */ - function values(Bytes32Set storage set) internal view returns (bytes32[] memory) { - bytes32[] memory store = _values(set._inner); - bytes32[] memory result; - - /// @solidity memory-safe-assembly - assembly { - result := store - } - - return result; - } - - // AddressSet - - struct AddressSet { - Set _inner; - } - - /** - * @dev Add a value to a set. O(1). - * - * Returns true if the value was added to the set, that is if it was not - * already present. - */ - function add(AddressSet storage set, address value) internal returns (bool) { - return _add(set._inner, bytes32(uint256(uint160(value)))); - } - - /** - * @dev Removes a value from a set. O(1). - * - * Returns true if the value was removed from the set, that is if it was - * present. - */ - function remove(AddressSet storage set, address value) internal returns (bool) { - return _remove(set._inner, bytes32(uint256(uint160(value)))); - } - - /** - * @dev Returns true if the value is in the set. O(1). - */ - function contains(AddressSet storage set, address value) internal view returns (bool) { - return _contains(set._inner, bytes32(uint256(uint160(value)))); - } - - /** - * @dev Returns the number of values in the set. O(1). - */ - function length(AddressSet storage set) internal view returns (uint256) { - return _length(set._inner); - } - - /** - * @dev Returns the value stored at position `index` in the set. O(1). - * - * Note that there are no guarantees on the ordering of values inside the - * array, and it may change when more values are added or removed. - * - * Requirements: - * - * - `index` must be strictly less than {length}. - */ - function at(AddressSet storage set, uint256 index) internal view returns (address) { - return address(uint160(uint256(_at(set._inner, index)))); - } - - /** - * @dev Return the entire set in an array - * - * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed - * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that - * this function has an unbounded cost, and using it as part of a state-changing function may render the function - * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. - */ - function values(AddressSet storage set) internal view returns (address[] memory) { - bytes32[] memory store = _values(set._inner); - address[] memory result; - - /// @solidity memory-safe-assembly - assembly { - result := store - } - - return result; - } - - // UintSet - - struct UintSet { - Set _inner; - } - - /** - * @dev Add a value to a set. O(1). - * - * Returns true if the value was added to the set, that is if it was not - * already present. - */ - function add(UintSet storage set, uint256 value) internal returns (bool) { - return _add(set._inner, bytes32(value)); - } - - /** - * @dev Removes a value from a set. O(1). - * - * Returns true if the value was removed from the set, that is if it was - * present. - */ - function remove(UintSet storage set, uint256 value) internal returns (bool) { - return _remove(set._inner, bytes32(value)); - } - - /** - * @dev Returns true if the value is in the set. O(1). - */ - function contains(UintSet storage set, uint256 value) internal view returns (bool) { - return _contains(set._inner, bytes32(value)); - } - - /** - * @dev Returns the number of values in the set. O(1). - */ - function length(UintSet storage set) internal view returns (uint256) { - return _length(set._inner); - } - - /** - * @dev Returns the value stored at position `index` in the set. O(1). - * - * Note that there are no guarantees on the ordering of values inside the - * array, and it may change when more values are added or removed. - * - * Requirements: - * - * - `index` must be strictly less than {length}. - */ - function at(UintSet storage set, uint256 index) internal view returns (uint256) { - return uint256(_at(set._inner, index)); - } - - /** - * @dev Return the entire set in an array - * - * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed - * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that - * this function has an unbounded cost, and using it as part of a state-changing function may render the function - * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block. - */ - function values(UintSet storage set) internal view returns (uint256[] memory) { - bytes32[] memory store = _values(set._inner); - uint256[] memory result; - - /// @solidity memory-safe-assembly - assembly { - result := store - } - - return result; - } -} diff --git a/test/e2e/ccip/CCIPv1_5ForkBurnMintPoolFork.t.sol b/test-legacy/e2e/ccip/CCIPv1_5ForkBurnMintPoolFork.t.sol similarity index 95% rename from test/e2e/ccip/CCIPv1_5ForkBurnMintPoolFork.t.sol rename to test-legacy/e2e/ccip/CCIPv1_5ForkBurnMintPoolFork.t.sol index 2c01e63..32e167e 100644 --- a/test/e2e/ccip/CCIPv1_5ForkBurnMintPoolFork.t.sol +++ b/test-legacy/e2e/ccip/CCIPv1_5ForkBurnMintPoolFork.t.sol @@ -1,25 +1,22 @@ // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; -import {Test, Vm} from "forge-std/Test.sol"; +import {Test} from "forge-std/Test.sol"; import {CCIPLocalSimulatorFork, Register} from "../../../src/ccip/CCIPLocalSimulatorFork.sol"; import {BurnMintTokenPool, TokenPool} from "@chainlink/contracts-ccip/contracts/pools/BurnMintTokenPool.sol"; -import {LockReleaseTokenPool} from "@chainlink/contracts-ccip/contracts/pools/LockReleaseTokenPool.sol"; // not used in this test -import {IBurnMintERC20} from "@chainlink/contracts/src/v0.8/shared/token/ERC20/IBurnMintERC20.sol"; +import {IBurnMintERC20} from "@chainlink/contracts-ccip/contracts/interfaces/IBurnMintERC20.sol"; import {RegistryModuleOwnerCustom} from "@chainlink/contracts-ccip/contracts/tokenAdminRegistry/RegistryModuleOwnerCustom.sol"; import {TokenAdminRegistry} from "@chainlink/contracts-ccip/contracts/tokenAdminRegistry/TokenAdminRegistry.sol"; import {RateLimiter} from "@chainlink/contracts-ccip/contracts/libraries/RateLimiter.sol"; import {IRouterClient} from "@chainlink/contracts-ccip/contracts/interfaces/IRouterClient.sol"; import {Client} from "@chainlink/contracts-ccip/contracts/libraries/Client.sol"; +import {ERC20} from "@openzeppelin/contracts@4.8.3/token/ERC20/ERC20.sol"; +import {ERC20Burnable} from "@openzeppelin/contracts@4.8.3/token/ERC20/extensions/ERC20Burnable.sol"; +import {IERC20} from "@openzeppelin/contracts@4.8.3/token/ERC20/IERC20.sol"; +import {AccessControl} from "@openzeppelin/contracts@4.8.3/access/AccessControl.sol"; -import { - ERC20, - ERC20Burnable, - IERC20 -} from "../../../src/vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/extensions/ERC20Burnable.sol"; -import {AccessControl} from "../../../src/vendor/openzeppelin-solidity/v4.8.3/contracts/access/AccessControl.sol"; - +// NOTE: Legacy-only suite. Intended for older CCIP dependency refs (v1.5/v1.6-era API). contract MockERC20BurnAndMintToken is IBurnMintERC20, ERC20Burnable, AccessControl { address internal immutable i_CCIPAdmin; bytes32 public constant MINTER_ROLE = keccak256("MINTER_ROLE"); diff --git a/test/e2e/ccip/CCIPv1_5LockReleasePoolFork.t.sol b/test-legacy/e2e/ccip/CCIPv1_5LockReleasePoolFork.t.sol similarity index 97% rename from test/e2e/ccip/CCIPv1_5LockReleasePoolFork.t.sol rename to test-legacy/e2e/ccip/CCIPv1_5LockReleasePoolFork.t.sol index 11f5734..d144dce 100644 --- a/test/e2e/ccip/CCIPv1_5LockReleasePoolFork.t.sol +++ b/test-legacy/e2e/ccip/CCIPv1_5LockReleasePoolFork.t.sol @@ -1,7 +1,7 @@ // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; -import {Test, Vm} from "forge-std/Test.sol"; +import {Test} from "forge-std/Test.sol"; import {CCIPLocalSimulatorFork, Register} from "../../../src/ccip/CCIPLocalSimulatorFork.sol"; import {LockReleaseTokenPool, TokenPool} from "@chainlink/contracts-ccip/contracts/pools/LockReleaseTokenPool.sol"; import {RegistryModuleOwnerCustom} from @@ -10,10 +10,11 @@ import {TokenAdminRegistry} from "@chainlink/contracts-ccip/contracts/tokenAdmin import {RateLimiter} from "@chainlink/contracts-ccip/contracts/libraries/RateLimiter.sol"; import {IRouterClient} from "@chainlink/contracts-ccip/contracts/interfaces/IRouterClient.sol"; import {Client} from "@chainlink/contracts-ccip/contracts/libraries/Client.sol"; - -import {ERC20, IERC20} from "../../../src/vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/ERC20.sol"; +import {ERC20} from "@openzeppelin/contracts@4.8.3/token/ERC20/ERC20.sol"; +import {IERC20} from "@openzeppelin/contracts@4.8.3/token/ERC20/IERC20.sol"; import {OwnerIsCreator} from "@chainlink/contracts/src/v0.8/shared/access/OwnerIsCreator.sol"; +// NOTE: Legacy-only suite. Intended for older CCIP dependency refs (v1.5/v1.6-era API). contract MockERC20TokenOwner is ERC20, OwnerIsCreator { constructor() ERC20("MockERC20Token", "MTK") {} diff --git a/test/e2e/ccip/CCIPLocalSimulatorForkHelper.test.js b/test/e2e/ccip/CCIPLocalSimulatorForkHelper.test.js new file mode 100644 index 0000000..204144f --- /dev/null +++ b/test/e2e/ccip/CCIPLocalSimulatorForkHelper.test.js @@ -0,0 +1,233 @@ +// Fork tests for the Hardhat 3 JavaScript helper `scripts/CCIPLocalSimulatorFork.js`. +// Run with `npm run hardhat-test-js` (needs ETHEREUM_SEPOLIA_RPC_URL, ARBITRUM_SEPOLIA_RPC_URL, AVALANCHE_FUJI_RPC_URL; +// the 1.6 regression needs archive RPCs). +import { describe, it } from "node:test"; +import assert from "node:assert/strict"; +import { network } from "hardhat"; + +import { + CCIP_V2_ROUTERS, + getCCIPMessages, + requestLinkFromTheFaucet, + routeMessage, +} from "../../../scripts/CCIPLocalSimulatorFork.js"; + +const ROUTER_CLIENT_ABI = [ + "function getFee(uint64 destinationChainSelector, tuple(bytes receiver, bytes data, tuple(address token, uint256 amount)[] tokenAmounts, address feeToken, bytes extraArgs) message) view returns (uint256)", + "function ccipSend(uint64 destinationChainSelector, tuple(bytes receiver, bytes data, tuple(address token, uint256 amount)[] tokenAmounts, address feeToken, bytes extraArgs) message) payable returns (bytes32)", +]; +const ERC20_ABI = [ + "function approve(address spender, uint256 amount) returns (bool)", + "function balanceOf(address account) view returns (uint256)", + "function drip(address to)", +]; +// Network details from `src/ccip/Register.sol` (deploying `Register` itself exceeds the per-transaction gas cap). +const NETWORK_DETAILS = { + 11155111: { + chainSelector: 16015286601757825753n, + routerAddress: "0x0BF3dE8c5D3e8A2B34D2BEeB17ABfCeBaf363A59", + linkAddress: "0x779877A7B0D9E8603169DdbD7836e478b4624789", + ccipBnMAddress: "0xFd57b4ddBf88a4e07fF4e34C487b99af2Fe82a05", + }, + 421614: { + chainSelector: 3478487238524512106n, + routerAddress: "0x2a9C5afB0d0e4BAb2BCdaE109EC4b0c4Be15a165", + linkAddress: "0xb1D4538B4571d411F07960EF2838Ce337FE1E80E", + ccipBnMAddress: "0xA8C0c11bf64AF62CDCA6f93D3769B88BdD7cb93D", + }, + 43113: { + chainSelector: 14767482510784806043n, + routerAddress: "0xF694E193200268f9a4868e4Aa017A0118C9a8177", + linkAddress: "0x0b9d5D9136855f6FEc3c0993feE6E9CE8a297846", + ccipBnMAddress: "0xD21341536c5cF5EB1bcb58f6723cE26e8D8E90e4", + }, +}; +const WAIT_FOR_FINALITY = "0x00000000"; +const EXTRA_ARGS_V2_TAG = "0x181dcf10"; + +async function connectFork(networkName, blockNumber) { + const connection = await network.connect( + blockNumber === undefined ? networkName : { network: networkName, override: { forking: { blockNumber } } } + ); + const { chainId } = await connection.ethers.provider.getNetwork(); + const details = NETWORK_DETAILS[Number(chainId)]; + const [signer] = await connection.ethers.getSigners(); + const encoder = await (await connection.ethers.getContractFactory("src/test/ccip/utils/EncodeExtraArgsOffchain.sol:EncodeExtraArgsOffchain")).deploy(); + return { connection, details, chainId: Number(chainId), signer, encoder }; +} + +async function send(source, router, destChainSelector, { receiver, data = "0x", tokenAmounts = [], extraArgs }) { + const { ethers } = source.connection; + const routerClient = new ethers.Contract(router, ROUTER_CLIENT_ABI, source.signer); + for (const { token, amount } of tokenAmounts) { + await (await new ethers.Contract(token, ERC20_ABI, source.signer).approve(router, amount)).wait(); + } + const message = { + receiver: ethers.AbiCoder.defaultAbiCoder().encode(["address"], [receiver]), + data, + tokenAmounts, + feeToken: ethers.ZeroAddress, + extraArgs, + }; + const fee = await routerClient.getFee(destChainSelector, message); + const receipt = await (await routerClient.ccipSend(destChainSelector, message, { value: fee })).wait(); + const sent = getCCIPMessages(source.connection, receipt); + assert.equal(sent.length, 1, "expected exactly one CCIP message in the receipt"); + return sent[0]; +} + +async function deployReceiver(destination, contractName, router) { + return (await destination.connection.ethers.getContractFactory(contractName)).deploy(router); +} + +describe("CCIPLocalSimulatorFork.js - CCIP 2.0 (Sepolia -> Arbitrum Sepolia, Register routers)", () => { + it("routes a message and a token transfer", async () => { + const source = await connectFork("sepoliaFork"); + const destination = await connectFork("arbitrumSepoliaFork"); + const { ethers } = source.connection; + + // Message + const receiver = await deployReceiver(destination, "src/test/ccip/BasicMessageReceiver.sol:BasicMessageReceiver", destination.details.routerAddress); + const payload = ethers.hexlify(ethers.toUtf8Bytes("Hello from Hardhat 3")); + const sent = await send(source, source.details.routerAddress, destination.details.chainSelector, { + receiver: await receiver.getAddress(), + data: payload, + extraArgs: await source.encoder.encodeV3Basic(200_000, WAIT_FOR_FINALITY), + }); + assert.equal(sent.era, "V2"); + assert.equal(sent.sourceChainSelector, source.details.chainSelector); + assert.equal(sent.destChainSelector, destination.details.chainSelector); + + const result = await routeMessage(destination.connection, destination.details.routerAddress, sent); + assert.equal(result.executed, true); + assert.equal(await receiver.latestMessageId(), sent.messageId); + assert.equal(await receiver.latestMessage(), payload); + assert.equal(await receiver.latestSender(), source.signer.address); + + // Token transfer (CCIP-BnM) + const bob = ethers.Wallet.createRandom().address; + const amount = ethers.parseEther("1"); + await (await new ethers.Contract(source.details.ccipBnMAddress, ERC20_ABI, source.signer).drip(source.signer.address)).wait(); + const tokenSent = await send(source, source.details.routerAddress, destination.details.chainSelector, { + receiver: bob, + tokenAmounts: [{ token: source.details.ccipBnMAddress, amount }], + extraArgs: await source.encoder.encodeV3Basic(0, WAIT_FOR_FINALITY), + }); + await routeMessage(destination.connection, destination.details.routerAddress, tokenSent); + const destinationBnM = new destination.connection.ethers.Contract(destination.details.ccipBnMAddress, ERC20_ABI, destination.connection.ethers.provider); + assert.equal(await destinationBnM.balanceOf(bob), amount); + }); + + it("rejects a Faster-Than-Finality message to a receiver that requires finality", async () => { + const source = await connectFork("sepoliaFork"); + const destination = await connectFork("arbitrumSepoliaFork"); + const receiver = await deployReceiver(destination, "src/test/ccip/BasicMessageReceiver.sol:BasicMessageReceiver", destination.details.routerAddress); + + const sent = await send(source, source.details.routerAddress, destination.details.chainSelector, { + receiver: await receiver.getAddress(), + data: "0x1234", + extraArgs: await source.encoder.encodeV3BasicBlockDepth(200_000, 1), + }); + + await assert.rejects( + routeMessage(destination.connection, destination.details.routerAddress, sent), + /cannot be executed: .*InvalidRequestedFinality\(0x00000001, 0x00000000\)/ + ); + assert.equal(await receiver.latestMessageId(), destination.connection.ethers.ZeroHash); + }); + + it("leaves NO_EXECUTION messages for manual execution", async () => { + const source = await connectFork("sepoliaFork"); + const destination = await connectFork("arbitrumSepoliaFork"); + const receiver = await deployReceiver(destination, "src/test/ccip/BasicMessageReceiver.sol:BasicMessageReceiver", destination.details.routerAddress); + + const extraArgs = await source.encoder.encodeV3( + 200_000, + WAIT_FOR_FINALITY, + [], + [], + await source.encoder.getNoExecutionAddress(), + "0x", + "0x", + "0x" + ); + const sent = await send(source, source.details.routerAddress, destination.details.chainSelector, { + receiver: await receiver.getAddress(), + data: "0xabcd", + extraArgs, + }); + + const queued = await routeMessage(destination.connection, destination.details.routerAddress, sent); + assert.deepEqual([queued.executed, queued.reason], [false, "NO_EXECUTION_ADDRESS"]); + assert.equal(await receiver.latestMessageId(), destination.connection.ethers.ZeroHash); + + const forced = await routeMessage(destination.connection, destination.details.routerAddress, sent, { forceExecution: true }); + assert.equal(forced.executed, true); + assert.equal(await receiver.latestMessageId(), sent.messageId); + }); + + it("requests LINK from the faucet", async () => { + const source = await connectFork("sepoliaFork"); + const { ethers } = source.connection; + const to = ethers.Wallet.createRandom().address; + await requestLinkFromTheFaucet(source.connection, source.details.linkAddress, to, ethers.parseEther("1")); + const link = new ethers.Contract(source.details.linkAddress, ERC20_ABI, ethers.provider); + assert.equal(await link.balanceOf(to), ethers.parseEther("1")); + }); +}); + +describe("CCIPLocalSimulatorFork.js - CCIP 2.0 (Sepolia -> Fuji, dedicated CCIP 2.0 routers)", () => { + it("routes a message sent through the CCIP 2.0 router", async () => { + const source = await connectFork("sepoliaFork"); + const destination = await connectFork("fujiFork"); + const receiver = await deployReceiver(destination, "src/test/ccip/BasicMessageReceiver.sol:BasicMessageReceiver", CCIP_V2_ROUTERS[destination.chainId]); + + const sent = await send(source, CCIP_V2_ROUTERS[source.chainId], destination.details.chainSelector, { + receiver: await receiver.getAddress(), + data: "0xc0ffee", + extraArgs: await source.encoder.encodeV3Basic(200_000, WAIT_FOR_FINALITY), + }); + + // Search both routers, as a test that does not know which router the message was sent through would. + await routeMessage(destination.connection, [destination.details.routerAddress, CCIP_V2_ROUTERS[destination.chainId]], sent); + assert.equal(await receiver.latestMessageId(), sent.messageId); + assert.equal(await receiver.latestMessage(), "0xc0ffee"); + }); +}); + +describe("CCIPLocalSimulatorFork.js - CCIP 1.6 (pinned blocks, archive RPCs)", () => { + // Sepolia -> Arbitrum Sepolia was a 1.6 lane at these blocks (OnRamp 1.6.0 0x23a5084F...); the destination router + // lists EVM2EVMOffRamp 1.2.0 / 1.5.0 and OffRamp 1.6.0, so the mixed-era lookup is exercised too. + it("routes a message (sender as 32-byte ABI word) and a token transfer", async () => { + const source = await connectFork("sepoliaFork", 11_500_000); + const destination = await connectFork("arbitrumSepoliaFork", 298_680_335); + const { ethers } = source.connection; + const coder = ethers.AbiCoder.defaultAbiCoder(); + const extraArgsV2 = (gasLimit) => + ethers.concat([EXTRA_ARGS_V2_TAG, coder.encode(["tuple(uint256 gasLimit, bool allowOutOfOrderExecution)"], [[gasLimit, true]])]); + + const receiver = await deployReceiver(destination, "src/test/ccip/BasicMessageReceiver.sol:BasicMessageReceiver", destination.details.routerAddress); + const sent = await send(source, source.details.routerAddress, destination.details.chainSelector, { + receiver: await receiver.getAddress(), + data: "0x16", + extraArgs: extraArgsV2(200_000), + }); + assert.equal(sent.era, "V1_6"); + await routeMessage(destination.connection, destination.details.routerAddress, sent); + assert.equal(await receiver.latestMessageId(), sent.messageId); + // BasicMessageReceiver does `abi.decode(message.sender, (address))`, which only succeeds for the 32-byte encoding. + assert.equal(await receiver.latestSender(), source.signer.address); + + const bob = ethers.Wallet.createRandom().address; + const amount = ethers.parseEther("1"); + await (await new ethers.Contract(source.details.ccipBnMAddress, ERC20_ABI, source.signer).drip(source.signer.address)).wait(); + const tokenSent = await send(source, source.details.routerAddress, destination.details.chainSelector, { + receiver: bob, + tokenAmounts: [{ token: source.details.ccipBnMAddress, amount }], + extraArgs: extraArgsV2(0), + }); + await routeMessage(destination.connection, destination.details.routerAddress, tokenSent); + const destinationBnM = new destination.connection.ethers.Contract(destination.details.ccipBnMAddress, ERC20_ABI, destination.connection.ethers.provider); + assert.equal(await destinationBnM.balanceOf(bob), amount); + }); +}); diff --git a/test/e2e/ccip/CCIPv1dot6PinnedBlockFork.t.sol b/test/e2e/ccip/CCIPv1dot6PinnedBlockFork.t.sol new file mode 100644 index 0000000..6701e25 --- /dev/null +++ b/test/e2e/ccip/CCIPv1dot6PinnedBlockFork.t.sol @@ -0,0 +1,215 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.24; + +import {Test} from "forge-std/Test.sol"; +import {CCIPLocalSimulatorFork, Register} from "@chainlink/local/src/ccip/CCIPLocalSimulatorFork.sol"; +import {IRouterClient} from "@chainlink/contracts-ccip/contracts/interfaces/IRouterClient.sol"; +import {Client} from "@chainlink/contracts-ccip/contracts/libraries/Client.sol"; +import {IERC20} from "@openzeppelin/contracts@4.8.3/token/ERC20/IERC20.sol"; + +import {BasicMessageReceiver} from "../../../src/test/ccip/BasicMessageReceiver.sol"; + +interface ITypeAndVersion { + function typeAndVersion() external view returns (string memory); +} + +/// @dev CCIP 1.6 regression. The live Sepolia -> Arbitrum Sepolia lane has been migrated to CCIP 2.0, so both forks +/// are pinned to blocks where it was still a 1.6 lane (needs archive RPCs): +/// - Sepolia 11_500_000: Register router `getOnRamp(arbSepolia)` is OnRamp 1.6.0 0x23a5084F... +/// - Arbitrum Sepolia 298_680_335 (L2 block, same timestamp): the router lists EVM2EVMOffRamp 1.2.0 and 1.5.0 plus +/// OffRamp 1.6.0 0xF4EbCC2c... for Sepolia, so routing also exercises the mixed-era OffRamp lookup. +contract CCIPv1dot6PinnedBlockForkTest is Test { + uint256 internal constant SEPOLIA_V1_6_BLOCK = 11_500_000; + uint256 internal constant ARB_SEPOLIA_V1_6_BLOCK = 298_680_335; + + CCIPLocalSimulatorFork internal s_forkSimulator; + uint256 internal s_sourceFork; + uint256 internal s_destinationFork; + + Register.NetworkDetails internal s_sourceNetwork; + Register.NetworkDetails internal s_destinationNetwork; + + address internal s_alice; + + function setUp() public { + s_sourceFork = vm.createSelectFork(vm.envString("ETHEREUM_SEPOLIA_RPC_URL"), SEPOLIA_V1_6_BLOCK); + s_destinationFork = vm.createFork(vm.envString("ARBITRUM_SEPOLIA_RPC_URL"), ARB_SEPOLIA_V1_6_BLOCK); + + s_forkSimulator = new CCIPLocalSimulatorFork(); + vm.makePersistent(address(s_forkSimulator)); + + vm.selectFork(s_destinationFork); + s_destinationNetwork = s_forkSimulator.getNetworkDetails(block.chainid); + + vm.selectFork(s_sourceFork); + s_sourceNetwork = s_forkSimulator.getNetworkDetails(block.chainid); + + address onRamp = IRouterClient(s_sourceNetwork.routerAddress) + .isChainSupported(s_destinationNetwork.chainSelector) + ? _onRamp() + : address(0); + assertEq(ITypeAndVersion(onRamp).typeAndVersion(), "OnRamp 1.6.0", "pinned block is not a 1.6 lane"); + + s_alice = makeAddr("alice"); + vm.deal(s_alice, 10 ether); + } + + function test_v1dot6_message_deliversAbiEncodedSender_fork() external { + vm.selectFork(s_destinationFork); + BasicMessageReceiver receiver = new BasicMessageReceiver(s_destinationNetwork.routerAddress); + + bytes memory payload = bytes("Hello 1.6"); + bytes32 messageId = _send(address(receiver), payload, new Client.EVMTokenAmount[](0), 200_000); + + s_forkSimulator.switchChainAndRouteMessage(s_destinationFork); + + vm.selectFork(s_destinationFork); + assertEq(receiver.latestMessageId(), messageId); + assertEq(receiver.latestSourceChainSelector(), s_sourceNetwork.chainSelector); + // `abi.decode(message.sender, (address))` in the receiver only succeeds for the 32-byte encoding (#62 / #65). + assertEq(receiver.latestSender(), s_alice); + assertEq(receiver.latestMessage(), payload); + } + + function test_v1dot6_tokenTransfer_fork() external { + address bob = makeAddr("bob"); + uint256 amount = 1 ether; + (bool dripped,) = s_sourceNetwork.ccipBnMAddress.call(abi.encodeWithSignature("drip(address)", s_alice)); + require(dripped, "drip(address) failed"); + + vm.selectFork(s_destinationFork); + uint256 balanceBefore = IERC20(s_destinationNetwork.ccipBnMAddress).balanceOf(bob); + + Client.EVMTokenAmount[] memory tokenAmounts = new Client.EVMTokenAmount[](1); + tokenAmounts[0] = Client.EVMTokenAmount({token: s_sourceNetwork.ccipBnMAddress, amount: amount}); + _send(bob, "", tokenAmounts, 0); + + s_forkSimulator.switchChainAndRouteMessage(s_destinationFork); + + vm.selectFork(s_destinationFork); + assertEq(IERC20(s_destinationNetwork.ccipBnMAddress).balanceOf(bob), balanceBefore + amount); + } + + /// @dev 1.6 OnRamps serve every destination from one address, so a 1.6 message must only execute on the fork of + /// its destination chain. Base Sepolia is listed first: without the destination filter, its 1.6 OffRamp for + /// Sepolia (bound to the same OnRamp) executed the Arbitrum-bound message there and marked it processed, and + /// Arbitrum Sepolia never received it. Needs BASE_SEPOLIA_RPC_URL (archive). + function test_v1dot6_multiDestination_executesOnlyOnDestinationFork() external { + uint256 sourceTimestamp = block.timestamp; + uint256 baseFork = _forkAtTimestamp(vm.envString("BASE_SEPOLIA_RPC_URL"), sourceTimestamp + 60); + + vm.selectFork(s_destinationFork); + BasicMessageReceiver receiver = new BasicMessageReceiver(s_destinationNetwork.routerAddress); + + bytes32 messageId = _send(address(receiver), bytes("only Arbitrum"), new Client.EVMTokenAmount[](0), 200_000); + + uint256[] memory forks = new uint256[](2); + forks[0] = baseFork; + forks[1] = s_destinationFork; + vm.selectFork(s_sourceFork); + s_forkSimulator.switchChainAndRouteMessage(forks); + + vm.selectFork(s_destinationFork); + assertEq(receiver.latestMessageId(), messageId); + (CCIPLocalSimulatorFork.MessageStatus status,) = s_forkSimulator.getMessageStatus(messageId); + assertEq(uint8(status), uint8(CCIPLocalSimulatorFork.MessageStatus.SUCCESS)); + } + + /// @dev The single-fork overload leaves the destination fork selected, even when nothing was captured. + function test_switchChainAndRouteMessage_selectsDestinationForkWithoutMessages_fork() external { + vm.selectFork(s_sourceFork); + s_forkSimulator.switchChainAndRouteMessage(s_destinationFork); + assertEq(vm.activeFork(), s_destinationFork); + } + + /// @dev Routing one destination fork per call: a message to a chain that is not in `forkIds` is kept (QUEUED, not a + /// strict-mode failure) and routed by the later call for its destination. Before, the first call reverted with + /// MessageNotRouted in strict mode (or dropped the message in non-strict mode, as the logs were consumed). + /// Needs BASE_SEPOLIA_RPC_URL (archive). + function test_v1dot6_routesEachDestinationInItsOwnCall_fork() external { + uint256 sourceTimestamp = block.timestamp; + uint256 baseFork = _forkAtTimestamp(vm.envString("BASE_SEPOLIA_RPC_URL"), sourceTimestamp + 60); + Register.NetworkDetails memory baseNetwork = s_forkSimulator.getNetworkDetails(block.chainid); + BasicMessageReceiver baseReceiver = new BasicMessageReceiver(baseNetwork.routerAddress); + + vm.selectFork(s_destinationFork); + BasicMessageReceiver arbReceiver = new BasicMessageReceiver(s_destinationNetwork.routerAddress); + + bytes32 arbMessageId = + _send(address(arbReceiver), bytes("to Arbitrum"), new Client.EVMTokenAmount[](0), 200_000); + bytes32 baseMessageId = _sendTo( + baseNetwork.chainSelector, address(baseReceiver), bytes("to Base"), new Client.EVMTokenAmount[](0), 200_000 + ); + + vm.selectFork(s_sourceFork); + s_forkSimulator.switchChainAndRouteMessage(s_destinationFork); + + assertEq(vm.activeFork(), s_destinationFork); + assertEq(arbReceiver.latestMessageId(), arbMessageId); + (CCIPLocalSimulatorFork.MessageStatus status,) = s_forkSimulator.getMessageStatus(baseMessageId); + assertEq(uint8(status), uint8(CCIPLocalSimulatorFork.MessageStatus.QUEUED)); + + s_forkSimulator.switchChainAndRouteMessage(baseFork); + + assertEq(vm.activeFork(), baseFork); + assertEq(baseReceiver.latestMessageId(), baseMessageId); + assertEq(baseReceiver.latestSourceChainSelector(), s_sourceNetwork.chainSelector); + (status,) = s_forkSimulator.getMessageStatus(baseMessageId); + assertEq(uint8(status), uint8(CCIPLocalSimulatorFork.MessageStatus.SUCCESS)); + } + + /// @dev Forks `rpcUrl` at the last block whose timestamp is <= `timestamp` (binary search, archive RPC). + function _forkAtTimestamp(string memory rpcUrl, uint256 timestamp) internal returns (uint256 forkId) { + forkId = vm.createSelectFork(rpcUrl); + uint256 high = block.number; + uint256 low = 1; + while (high - low > 1) { + uint256 mid = (low + high) / 2; + vm.rollFork(mid); + if (block.timestamp <= timestamp) low = mid; + else high = mid; + } + vm.rollFork(low); + } + + function _onRamp() internal view returns (address) { + (bool ok, bytes memory data) = s_sourceNetwork.routerAddress + .staticcall(abi.encodeWithSignature("getOnRamp(uint64)", s_destinationNetwork.chainSelector)); + require(ok, "getOnRamp failed"); + return abi.decode(data, (address)); + } + + function _send(address receiver, bytes memory data, Client.EVMTokenAmount[] memory tokenAmounts, uint256 gasLimit) + internal + returns (bytes32 messageId) + { + return _sendTo(s_destinationNetwork.chainSelector, receiver, data, tokenAmounts, gasLimit); + } + + function _sendTo( + uint64 destinationChainSelector, + address receiver, + bytes memory data, + Client.EVMTokenAmount[] memory tokenAmounts, + uint256 gasLimit + ) internal returns (bytes32 messageId) { + vm.selectFork(s_sourceFork); + Client.EVM2AnyMessage memory message = Client.EVM2AnyMessage({ + receiver: abi.encode(receiver), + data: data, + tokenAmounts: tokenAmounts, + extraArgs: Client._argsToBytes( + Client.GenericExtraArgsV2({gasLimit: gasLimit, allowOutOfOrderExecution: true}) + ), + feeToken: address(0) + }); + + vm.startPrank(s_alice); + for (uint256 i; i < tokenAmounts.length; ++i) { + IERC20(tokenAmounts[i].token).approve(s_sourceNetwork.routerAddress, tokenAmounts[i].amount); + } + uint256 fee = IRouterClient(s_sourceNetwork.routerAddress).getFee(destinationChainSelector, message); + messageId = IRouterClient(s_sourceNetwork.routerAddress).ccipSend{value: fee}(destinationChainSelector, message); + vm.stopPrank(); + } +} diff --git a/test/e2e/ccip/CCIPv2Fork.t.sol b/test/e2e/ccip/CCIPv2Fork.t.sol new file mode 100644 index 0000000..f09e5c0 --- /dev/null +++ b/test/e2e/ccip/CCIPv2Fork.t.sol @@ -0,0 +1,103 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.19; + +import {Test} from "forge-std/Test.sol"; +import {Ping} from "../../../src/test/ccip/Ping.sol"; +import {Pong} from "../../../src/test/ccip/Pong.sol"; +import {TokenTransferor} from "../../../src/test/ccip/TokenTransferor.sol"; +import {CCVNoOpVerifier} from "../../../src/test/ccip/CCVNoOpVerifier.sol"; +import {BurnMintERC677Helper} from "@chainlink/local/src/ccip/CCIPLocalSimulator.sol"; +import {CCIPLocalSimulatorFork, Register, IRouterFork} from "../../../src/ccip/CCIPLocalSimulatorFork.sol"; + +/// @dev CCIP 2.0 (CCV) fork routing: a Sepolia -> Arbitrum Sepolia lane runs with a no-op default CCV +/// while every other component (validation, quorum walk, token release/mint, receiver call) +/// stays production code. The no-op CCV is the single counterfactual, because the real CCV +/// requires live attestations that cannot exist on a fork. +/// Routing uses `V2VerificationMode.OFFRAMP_DERIVED`, so the required CCV list comes from the +/// destination OffRamp itself and the raw encoded message is executed permissionlessly — no +/// local `MessageV1` codec involvement. +contract CCIPv2Fork is Test { + CCIPLocalSimulatorFork public ccipLocalSimulatorFork; + + Ping public ping; + Pong public pong; + TokenTransferor public sender; + BurnMintERC677Helper public ccipBnM; + + Register.NetworkDetails sepoliaNetworkDetails; + Register.NetworkDetails arbSepoliaNetworkDetails; + + uint256 sepoliaFork; + uint256 arbSepoliaFork; + + address alice; + + function setUp() public { + string memory ETHEREUM_SEPOLIA_RPC_URL = vm.envString("ETHEREUM_SEPOLIA_RPC_URL"); + string memory ARBITRUM_SEPOLIA_RPC_URL = vm.envString("ARBITRUM_SEPOLIA_RPC_URL"); + sepoliaFork = vm.createSelectFork(ETHEREUM_SEPOLIA_RPC_URL); + arbSepoliaFork = vm.createFork(ARBITRUM_SEPOLIA_RPC_URL); + + ccipLocalSimulatorFork = new CCIPLocalSimulatorFork(); + vm.makePersistent(address(ccipLocalSimulatorFork)); + ccipLocalSimulatorFork.setV2VerificationMode(CCIPLocalSimulatorFork.V2VerificationMode.OFFRAMP_DERIVED); + + sepoliaNetworkDetails = ccipLocalSimulatorFork.getNetworkDetails(block.chainid); + + vm.selectFork(arbSepoliaFork); + arbSepoliaNetworkDetails = ccipLocalSimulatorFork.getNetworkDetails(block.chainid); + + // Mock the 2.0 lane's default CCV with a no-op verifier (fork-only). + CCVNoOpVerifier noOpCCV = new CCVNoOpVerifier(); + vm.selectFork(sepoliaFork); + address sepoliaOnRamp = + IRouterFork(sepoliaNetworkDetails.routerAddress).getOnRamp(arbSepoliaNetworkDetails.chainSelector); + address offRamp = ccipLocalSimulatorFork.getOffRampForLane( + arbSepoliaFork, sepoliaNetworkDetails.chainSelector, sepoliaOnRamp + ); + require(offRamp != address(0), "destination off-ramp not found"); + ccipLocalSimulatorFork.setLaneDefaultCCVs( + arbSepoliaFork, offRamp, sepoliaNetworkDetails.chainSelector, address(noOpCCV) + ); + + ping = new Ping(sepoliaNetworkDetails.linkAddress, sepoliaNetworkDetails.routerAddress); + ccipLocalSimulatorFork.requestLinkFromFaucet(address(ping), 1 ether); + + sender = new TokenTransferor(sepoliaNetworkDetails.routerAddress, sepoliaNetworkDetails.linkAddress); + ccipLocalSimulatorFork.requestLinkFromFaucet(address(sender), 25 ether); + ccipBnM = BurnMintERC677Helper(sepoliaNetworkDetails.ccipBnMAddress); + + vm.selectFork(arbSepoliaFork); + pong = new Pong(arbSepoliaNetworkDetails.linkAddress, arbSepoliaNetworkDetails.routerAddress); + // Pong replies on receive, so it needs LINK for the reply fee. + ccipLocalSimulatorFork.requestLinkFromFaucet(address(pong), 1 ether); + + vm.selectFork(sepoliaFork); + alice = makeAddr("alice"); + } + + function test_forkMessageOverCCIPv2Lane() public { + ping.send(address(pong), arbSepoliaNetworkDetails.chainSelector); + + ccipLocalSimulatorFork.switchChainAndRouteMessage(arbSepoliaFork); + + vm.selectFork(arbSepoliaFork); + assertEq(pong.PING(), "Ping"); + } + + function test_forkTokenTransferOverCCIPv2Lane() public { + uint256 amountToSend = 100; + ccipBnM.drip(address(sender)); + sender.allowlistDestinationChain(arbSepoliaNetworkDetails.chainSelector, true); + + uint256 balanceBefore = ccipBnM.balanceOf(address(sender)); + sender.transferTokensPayLINK(arbSepoliaNetworkDetails.chainSelector, alice, address(ccipBnM), amountToSend); + assertEq(ccipBnM.balanceOf(address(sender)), balanceBefore - amountToSend); + + ccipLocalSimulatorFork.switchChainAndRouteMessage(arbSepoliaFork); + + vm.selectFork(arbSepoliaFork); + BurnMintERC677Helper ccipBnMArbSepolia = BurnMintERC677Helper(arbSepoliaNetworkDetails.ccipBnMAddress); + assertEq(ccipBnMArbSepolia.balanceOf(alice), amountToSend); + } +} diff --git a/test/e2e/ccip/CCIPv2MainnetEthereumArbitrumFork.t.sol b/test/e2e/ccip/CCIPv2MainnetEthereumArbitrumFork.t.sol new file mode 100644 index 0000000..b5f87e9 --- /dev/null +++ b/test/e2e/ccip/CCIPv2MainnetEthereumArbitrumFork.t.sol @@ -0,0 +1,99 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.24; + +import {Test} from "forge-std/Test.sol"; +import {CCIPLocalSimulatorFork, Register} from "@chainlink/local/src/ccip/CCIPLocalSimulatorFork.sol"; +import {IRouterClient} from "@chainlink/contracts-ccip/contracts/interfaces/IRouterClient.sol"; +import {Client} from "@chainlink/contracts-ccip/contracts/libraries/Client.sol"; +import {FinalityCodec} from "@chainlink/contracts-ccip/contracts/libraries/FinalityCodec.sol"; + +import {BasicMessageReceiver} from "../../../src/test/ccip/BasicMessageReceiver.sol"; +import {EncodeExtraArgsOffchain} from "../../../src/test/ccip/utils/EncodeExtraArgsOffchain.sol"; + +interface ITypeAndVersion { + function typeAndVersion() external view returns (string memory); +} + +interface IRouterOnRamp { + function getOnRamp(uint64 destChainSelector) external view returns (address); +} + +/// @dev Mainnet CCIP 2.0 lane Ethereum -> Arbitrum One (default `OFFRAMP_DERIVED` mode, no lane CCV mocking). The +/// Arbitrum router lists EVM2EVMOffRamp 1.2.0 / 1.5.0 and OffRamp 1.6.0 / 2.0.0 for Ethereum, so routing also +/// exercises the mixed-era OffRamp lookup on production contracts. +/// Token transfers are not covered here: as of Sep 2026 the Ethereum LINK pool rejects Arbitrum on this lane +/// (`ChainNotAllowed`), which is live pool configuration rather than simulator behaviour. +contract CCIPv2MainnetEthereumArbitrumForkTest is Test { + CCIPLocalSimulatorFork internal s_forkSimulator; + EncodeExtraArgsOffchain internal s_encoder; + uint256 internal s_ethereumFork; + uint256 internal s_arbitrumFork; + + Register.NetworkDetails internal s_ethereum; + Register.NetworkDetails internal s_arbitrum; + + address internal s_alice; + + function setUp() public { + s_ethereumFork = vm.createSelectFork(vm.envString("ETHEREUM_MAINNET_RPC_URL")); + s_arbitrumFork = vm.createFork(vm.envString("ARBITRUM_MAINNET_RPC_URL")); + + s_forkSimulator = new CCIPLocalSimulatorFork(); + vm.makePersistent(address(s_forkSimulator)); + s_encoder = new EncodeExtraArgsOffchain(); + vm.makePersistent(address(s_encoder)); + + vm.selectFork(s_arbitrumFork); + s_arbitrum = s_forkSimulator.getNetworkDetails(block.chainid); + + vm.selectFork(s_ethereumFork); + s_ethereum = s_forkSimulator.getNetworkDetails(block.chainid); + address onRamp = IRouterOnRamp(s_ethereum.routerAddress).getOnRamp(s_arbitrum.chainSelector); + assertEq(ITypeAndVersion(onRamp).typeAndVersion(), "OnRamp 2.0.0", "Ethereum -> Arbitrum is not CCIP 2.0"); + + s_alice = makeAddr("alice"); + vm.deal(s_alice, 10 ether); + } + + function test_mainnet_message_ethereumToArbitrum_fork() external { + vm.selectFork(s_arbitrumFork); + BasicMessageReceiver receiver = new BasicMessageReceiver(s_arbitrum.routerAddress); + + bytes memory payload = bytes("Hello mainnet CCIP 2.0"); + bytes32 messageId = _send( + address(receiver), + payload, + new Client.EVMTokenAmount[](0), + s_encoder.encodeV3Basic(200_000, FinalityCodec.WAIT_FOR_FINALITY_FLAG) + ); + + s_forkSimulator.switchChainAndRouteMessage(s_arbitrumFork); + + vm.selectFork(s_arbitrumFork); + assertEq(receiver.latestMessageId(), messageId); + assertEq(receiver.latestSourceChainSelector(), s_ethereum.chainSelector); + assertEq(receiver.latestSender(), s_alice); + assertEq(receiver.latestMessage(), payload); + } + + function _send( + address receiver, + bytes memory data, + Client.EVMTokenAmount[] memory tokenAmounts, + bytes memory extraArgs + ) internal returns (bytes32 messageId) { + vm.selectFork(s_ethereumFork); + Client.EVM2AnyMessage memory message = Client.EVM2AnyMessage({ + receiver: abi.encode(receiver), + data: data, + tokenAmounts: tokenAmounts, + extraArgs: extraArgs, + feeToken: address(0) + }); + + vm.startPrank(s_alice); + uint256 fee = IRouterClient(s_ethereum.routerAddress).getFee(s_arbitrum.chainSelector, message); + messageId = IRouterClient(s_ethereum.routerAddress).ccipSend{value: fee}(s_arbitrum.chainSelector, message); + vm.stopPrank(); + } +} diff --git a/test/e2e/ccip/CCIPv2RouterSepoliaFujiFork.t.sol b/test/e2e/ccip/CCIPv2RouterSepoliaFujiFork.t.sol new file mode 100644 index 0000000..b2f34dc --- /dev/null +++ b/test/e2e/ccip/CCIPv2RouterSepoliaFujiFork.t.sol @@ -0,0 +1,244 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.24; + +import {Test} from "forge-std/Test.sol"; +import {CCIPLocalSimulatorFork, Register} from "@chainlink/local/src/ccip/CCIPLocalSimulatorFork.sol"; +import {IRouterClient} from "@chainlink/contracts-ccip/contracts/interfaces/IRouterClient.sol"; +import {ITokenAdminRegistry} from "@chainlink/contracts-ccip/contracts/interfaces/ITokenAdminRegistry.sol"; +import {TokenPool} from "@chainlink/contracts-ccip/contracts/pools/TokenPool.sol"; +import {Client} from "@chainlink/contracts-ccip/contracts/libraries/Client.sol"; +import {FinalityCodec} from "@chainlink/contracts-ccip/contracts/libraries/FinalityCodec.sol"; +import {IERC20} from "@openzeppelin/contracts@4.8.3/token/ERC20/IERC20.sol"; + +import {BasicMessageReceiver} from "../../../src/test/ccip/BasicMessageReceiver.sol"; +import {BasicMessageReceiverWithCCVs} from "../../../src/test/ccip/BasicMessageReceiverWithCCVs.sol"; +import {EncodeExtraArgsOffchain} from "../../../src/test/ccip/utils/EncodeExtraArgsOffchain.sol"; + +interface ITypeAndVersion { + function typeAndVersion() external view returns (string memory); +} + +interface IRouterOnRamp { + function getOnRamp(uint64 destChainSelector) external view returns (address); +} + +/// @dev Sepolia <-> Fuji over CCIP 2.0, in the default `OFFRAMP_DERIVED` mode with no lane CCV mocking (the +/// production resolver CCVs are pointed at the synthetic fork verifier by the simulator). +/// - Messages use the dedicated CCIP 2.0 routers (Sepolia 0x784d49a7... <-> Fuji 0x7C9B8B4e...), exposed through +/// `getCCIPV2RouterAddress`. +/// - Token transfers use the Register routers, whose Sepolia <-> Fuji lane is also CCIP 2.0 (asserted below): as of +/// Sep 2026 the dedicated CCIP 2.0 routers reject CCIP-BnM with `UnsupportedToken`. +contract CCIPv2RouterSepoliaFujiForkTest is Test { + CCIPLocalSimulatorFork internal s_forkSimulator; + EncodeExtraArgsOffchain internal s_encoder; + uint256 internal s_sepoliaFork; + uint256 internal s_fujiFork; + + Register.NetworkDetails internal s_sepolia; + Register.NetworkDetails internal s_fuji; + address internal s_sepoliaV2Router; + address internal s_fujiV2Router; + + address internal s_alice; + + function setUp() public { + s_sepoliaFork = vm.createSelectFork(vm.envString("ETHEREUM_SEPOLIA_RPC_URL")); + s_fujiFork = vm.createFork(vm.envString("AVALANCHE_FUJI_RPC_URL")); + + s_forkSimulator = new CCIPLocalSimulatorFork(); + vm.makePersistent(address(s_forkSimulator)); + s_encoder = new EncodeExtraArgsOffchain(); + vm.makePersistent(address(s_encoder)); + + vm.selectFork(s_fujiFork); + s_fuji = s_forkSimulator.getNetworkDetails(block.chainid); + s_fujiV2Router = s_forkSimulator.getCCIPV2RouterAddress(block.chainid); + + vm.selectFork(s_sepoliaFork); + s_sepolia = s_forkSimulator.getNetworkDetails(block.chainid); + s_sepoliaV2Router = s_forkSimulator.getCCIPV2RouterAddress(block.chainid); + + s_alice = makeAddr("alice"); + vm.deal(s_alice, 10 ether); + vm.selectFork(s_fujiFork); + vm.deal(s_alice, 10 ether); + } + + function test_v2Router_message_sepoliaToFuji_fork() external { + vm.selectFork(s_fujiFork); + BasicMessageReceiver receiver = new BasicMessageReceiver(s_fujiV2Router); + + bytes memory payload = bytes("Hello CCIP 2.0"); + bytes32 messageId = _send( + s_sepoliaFork, + s_sepoliaV2Router, + s_fuji.chainSelector, + address(receiver), + payload, + new Client.EVMTokenAmount[](0), + s_encoder.encodeV3Basic(200_000, FinalityCodec.WAIT_FOR_FINALITY_FLAG) + ); + + s_forkSimulator.switchChainAndRouteMessage(s_fujiFork); + + vm.selectFork(s_fujiFork); + assertEq(receiver.latestMessageId(), messageId); + assertEq(receiver.latestSourceChainSelector(), s_sepolia.chainSelector); + assertEq(receiver.latestSender(), s_alice); + assertEq(receiver.latestMessage(), payload); + } + + function test_v2Router_message_fujiToSepolia_fork() external { + vm.selectFork(s_sepoliaFork); + BasicMessageReceiver receiver = new BasicMessageReceiver(s_sepoliaV2Router); + + bytes memory payload = bytes("Hello back"); + bytes32 messageId = _send( + s_fujiFork, + s_fujiV2Router, + s_sepolia.chainSelector, + address(receiver), + payload, + new Client.EVMTokenAmount[](0), + s_encoder.encodeV3Basic(200_000, FinalityCodec.WAIT_FOR_FINALITY_FLAG) + ); + + s_forkSimulator.switchChainAndRouteMessage(s_sepoliaFork); + + vm.selectFork(s_sepoliaFork); + assertEq(receiver.latestMessageId(), messageId); + assertEq(receiver.latestSourceChainSelector(), s_fuji.chainSelector); + assertEq(receiver.latestSender(), s_alice); + } + + function test_v2Lane_tokenTransfer_sepoliaToFuji_fork() external { + address bob = makeAddr("bob"); + uint256 amount = 1 ether; + Client.EVMTokenAmount[] memory tokenAmounts = _dripCcipBnM(amount); + + vm.selectFork(s_fujiFork); + uint256 balanceBefore = IERC20(s_fuji.ccipBnMAddress).balanceOf(bob); + + _send( + s_sepoliaFork, + _v2LaneRouter(), + s_fuji.chainSelector, + bob, + "", + tokenAmounts, + s_encoder.encodeV3Basic(0, FinalityCodec.WAIT_FOR_FINALITY_FLAG) + ); + + s_forkSimulator.switchChainAndRouteMessage(s_fujiFork); + + vm.selectFork(s_fujiFork); + assertEq(IERC20(s_fuji.ccipBnMAddress).balanceOf(bob), balanceBefore + amount); + } + + /// @dev Faster-Than-Finality token transfer: requests the smallest finality the live source pool accepts. + function test_v2Lane_tokenTransferFasterThanFinality_sepoliaToFuji_fork() external { + address bob = makeAddr("bob"); + uint256 amount = 1 ether; + Client.EVMTokenAmount[] memory tokenAmounts = _dripCcipBnM(amount); + bytes4 finality = _poolAllowedFtfFinality(s_sepolia.ccipBnMAddress); + assertTrue(finality != FinalityCodec.WAIT_FOR_FINALITY_FLAG); + + vm.selectFork(s_fujiFork); + uint256 balanceBefore = IERC20(s_fuji.ccipBnMAddress).balanceOf(bob); + + _send( + s_sepoliaFork, + _v2LaneRouter(), + s_fuji.chainSelector, + bob, + "", + tokenAmounts, + s_encoder.encodeV3Basic(0, finality) + ); + + s_forkSimulator.switchChainAndRouteMessage(s_fujiFork); + + vm.selectFork(s_fujiFork); + assertEq(IERC20(s_fuji.ccipBnMAddress).balanceOf(bob), balanceBefore + amount); + } + + /// @dev Faster-Than-Finality message to a receiver that opts in via `getCCVsAndFinalityConfig`. + function test_v2Router_messageFasterThanFinality_sepoliaToFuji_fork() external { + uint16 blockDepth = 1; + vm.selectFork(s_fujiFork); + BasicMessageReceiverWithCCVs receiver = new BasicMessageReceiverWithCCVs(s_fujiV2Router); + receiver.setAllowedFinalityConfig(s_sepolia.chainSelector, FinalityCodec._encodeBlockDepth(blockDepth)); + + bytes memory payload = bytes("Fast hello"); + bytes32 messageId = _send( + s_sepoliaFork, + s_sepoliaV2Router, + s_fuji.chainSelector, + address(receiver), + payload, + new Client.EVMTokenAmount[](0), + s_encoder.encodeV3BasicBlockDepth(200_000, blockDepth) + ); + + s_forkSimulator.switchChainAndRouteMessage(s_fujiFork); + + vm.selectFork(s_fujiFork); + assertEq(receiver.latestMessageId(), messageId); + assertEq(receiver.latestMessage(), payload); + } + + /// @dev Register router of Sepolia, after asserting its lane to Fuji is served by a CCIP 2.0 OnRamp. + function _v2LaneRouter() internal returns (address router) { + vm.selectFork(s_sepoliaFork); + router = s_sepolia.routerAddress; + address onRamp = IRouterOnRamp(router).getOnRamp(s_fuji.chainSelector); + assertEq(ITypeAndVersion(onRamp).typeAndVersion(), "OnRamp 2.0.0", "Sepolia -> Fuji is not a CCIP 2.0 lane"); + } + + function _dripCcipBnM(uint256 amount) internal returns (Client.EVMTokenAmount[] memory tokenAmounts) { + vm.selectFork(s_sepoliaFork); + (bool dripped,) = s_sepolia.ccipBnMAddress.call(abi.encodeWithSignature("drip(address)", s_alice)); + require(dripped, "drip(address) failed"); + tokenAmounts = new Client.EVMTokenAmount[](1); + tokenAmounts[0] = Client.EVMTokenAmount({token: s_sepolia.ccipBnMAddress, amount: amount}); + } + + function _poolAllowedFtfFinality(address token) internal returns (bytes4 finality) { + vm.selectFork(s_sepoliaFork); + address pool = ITokenAdminRegistry(s_sepolia.tokenAdminRegistryAddress).getPool(token); + bytes4 allowed = TokenPool(pool).getAllowedFinalityConfig(); + uint16 blockDepth = uint16(uint32(allowed & FinalityCodec.BLOCK_DEPTH_MASK)); + if (blockDepth != 0) { + return FinalityCodec._encodeBlockDepth(blockDepth); + } + require(allowed & FinalityCodec.WAIT_FOR_SAFE_FLAG != 0, "source pool does not allow Faster-Than-Finality"); + return FinalityCodec.WAIT_FOR_SAFE_FLAG; + } + + function _send( + uint256 sourceFork, + address router, + uint64 destChainSelector, + address receiver, + bytes memory data, + Client.EVMTokenAmount[] memory tokenAmounts, + bytes memory extraArgs + ) internal returns (bytes32 messageId) { + vm.selectFork(sourceFork); + Client.EVM2AnyMessage memory message = Client.EVM2AnyMessage({ + receiver: abi.encode(receiver), + data: data, + tokenAmounts: tokenAmounts, + extraArgs: extraArgs, + feeToken: address(0) + }); + + vm.startPrank(s_alice); + for (uint256 i; i < tokenAmounts.length; ++i) { + IERC20(tokenAmounts[i].token).approve(router, tokenAmounts[i].amount); + } + uint256 fee = IRouterClient(router).getFee(destChainSelector, message); + messageId = IRouterClient(router).ccipSend{value: fee}(destChainSelector, message); + vm.stopPrank(); + } +} diff --git a/test/e2e/ccip/CCTBurnMintAdvancedPoolHooksFasterThanFinalityFork.t.sol b/test/e2e/ccip/CCTBurnMintAdvancedPoolHooksFasterThanFinalityFork.t.sol new file mode 100644 index 0000000..747f16a --- /dev/null +++ b/test/e2e/ccip/CCTBurnMintAdvancedPoolHooksFasterThanFinalityFork.t.sol @@ -0,0 +1,187 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.24; + +import {Test} from "forge-std/Test.sol"; +import {CCIPLocalSimulatorFork, Register} from "@chainlink/local/src/ccip/CCIPLocalSimulatorFork.sol"; +import {IRouterClient} from "@chainlink/contracts-ccip/contracts/interfaces/IRouterClient.sol"; +import {ITokenAdminRegistry} from "@chainlink/contracts-ccip/contracts/interfaces/ITokenAdminRegistry.sol"; +import {IBurnMintERC20} from "@chainlink/contracts-ccip/contracts/interfaces/IBurnMintERC20.sol"; +import { + RegistryModuleOwnerCustom +} from "@chainlink/contracts-ccip/contracts/tokenAdminRegistry/RegistryModuleOwnerCustom.sol"; +import {BurnMintTokenPool} from "@chainlink/contracts-ccip/contracts/pools/BurnMintTokenPool.sol"; +import {AdvancedPoolHooks} from "@chainlink/contracts-ccip/contracts/pools/AdvancedPoolHooks.sol"; +import {TokenPool} from "@chainlink/contracts-ccip/contracts/pools/TokenPool.sol"; +import {Client} from "@chainlink/contracts-ccip/contracts/libraries/Client.sol"; +import {FinalityCodec} from "@chainlink/contracts-ccip/contracts/libraries/FinalityCodec.sol"; +import {RateLimiter} from "@chainlink/contracts-ccip/contracts/libraries/RateLimiter.sol"; +import {BurnMintERC20} from "@chainlink/contracts/src/v0.8/shared/token/ERC20/BurnMintERC20.sol"; +import {AuthorizedCallers} from "@chainlink/contracts/src/v0.8/shared/access/AuthorizedCallers.sol"; + +import {EncodeExtraArgsOffchain} from "../../../src/test/ccip/utils/EncodeExtraArgsOffchain.sol"; + +contract CCTBurnMintAdvancedPoolHooksFasterThanFinalityForkTest is Test { + uint32 internal constant GAS_LIMIT = 0; + uint16 internal constant BLOCK_CONFIRMATIONS = 1; + + CCIPLocalSimulatorFork internal s_forkSimulator; + EncodeExtraArgsOffchain internal s_encoder; + uint256 internal s_sourceFork; + uint256 internal s_destinationFork; + + Register.NetworkDetails internal s_sourceNetwork; + Register.NetworkDetails internal s_destinationNetwork; + + address internal s_alice; + address internal s_bob; + + function setUp() public { + s_sourceFork = vm.createSelectFork(vm.envString("ETHEREUM_SEPOLIA_RPC_URL")); + s_destinationFork = vm.createFork(vm.envString("ARBITRUM_SEPOLIA_RPC_URL")); + + s_forkSimulator = new CCIPLocalSimulatorFork(); + vm.makePersistent(address(s_forkSimulator)); + + s_encoder = new EncodeExtraArgsOffchain(); + vm.makePersistent(address(s_encoder)); + + vm.selectFork(s_sourceFork); + s_sourceNetwork = s_forkSimulator.getNetworkDetails(block.chainid); + + vm.selectFork(s_destinationFork); + s_destinationNetwork = s_forkSimulator.getNetworkDetails(block.chainid); + + s_alice = makeAddr("alice"); + s_bob = makeAddr("bob"); + + vm.selectFork(s_sourceFork); + vm.deal(s_alice, 10 ether); + } + + function test_cctBurnMintAdvancedPoolHooksFasterThanFinality_fork() external { + uint256 amountToSend = 1 ether; + + vm.selectFork(s_sourceFork); + address[] memory sourceAllowList = new address[](1); + sourceAllowList[0] = s_alice; + AdvancedPoolHooks sourceHook = new AdvancedPoolHooks(sourceAllowList, 0, address(0), new address[](0)); + + BurnMintERC20 sourceToken = new BurnMintERC20("CCT Hook Source", "CCTH-S", 18, 0, amountToSend); + BurnMintTokenPool sourcePool = new BurnMintTokenPool( + IBurnMintERC20(address(sourceToken)), + 18, + address(sourceHook), + s_sourceNetwork.rmnProxyAddress, + s_sourceNetwork.routerAddress + ); + sourceToken.grantMintAndBurnRoles(address(sourcePool)); + _authorizeHookCaller(sourceHook, address(sourcePool)); + sourceToken.transfer(s_alice, amountToSend); + + _registerAndSetPool(s_sourceNetwork, address(sourceToken), address(sourcePool)); + + vm.selectFork(s_destinationFork); + address[] memory destinationAllowList = new address[](1); + destinationAllowList[0] = s_bob; + AdvancedPoolHooks destinationHook = new AdvancedPoolHooks(destinationAllowList, 0, address(0), new address[](0)); + + BurnMintERC20 destinationToken = new BurnMintERC20("CCT Hook Dest", "CCTH-D", 18, 0, 0); + BurnMintTokenPool destinationPool = new BurnMintTokenPool( + IBurnMintERC20(address(destinationToken)), + 18, + address(destinationHook), + s_destinationNetwork.rmnProxyAddress, + s_destinationNetwork.routerAddress + ); + destinationToken.grantMintAndBurnRoles(address(destinationPool)); + _authorizeHookCaller(destinationHook, address(destinationPool)); + + _registerAndSetPool(s_destinationNetwork, address(destinationToken), address(destinationPool)); + + vm.selectFork(s_sourceFork); + _configureTrustedPool( + address(sourcePool), s_destinationNetwork.chainSelector, address(destinationPool), address(destinationToken) + ); + TokenPool(address(sourcePool)).setAllowedFinalityConfig(FinalityCodec._encodeBlockDepth(BLOCK_CONFIRMATIONS)); + + vm.selectFork(s_destinationFork); + _configureTrustedPool( + address(destinationPool), s_sourceNetwork.chainSelector, address(sourcePool), address(sourceToken) + ); + + vm.selectFork(s_sourceFork); + assertEq(address(TokenPool(address(sourcePool)).getAdvancedPoolHooks()), address(sourceHook)); + assertTrue(sourceHook.getAllowListEnabled()); + address[] memory sourceAllowListRead = sourceHook.getAllowList(); + assertEq(sourceAllowListRead.length, 1); + assertEq(sourceAllowListRead[0], s_alice); + + vm.selectFork(s_destinationFork); + assertEq(address(TokenPool(address(destinationPool)).getAdvancedPoolHooks()), address(destinationHook)); + + vm.selectFork(s_sourceFork); + Client.EVMTokenAmount[] memory tokenAmounts = new Client.EVMTokenAmount[](1); + tokenAmounts[0] = Client.EVMTokenAmount({token: address(sourceToken), amount: amountToSend}); + + Client.EVM2AnyMessage memory message = Client.EVM2AnyMessage({ + receiver: abi.encode(s_bob), + data: "", + tokenAmounts: tokenAmounts, + extraArgs: s_encoder.encodeV3BasicBlockDepth(GAS_LIMIT, BLOCK_CONFIRMATIONS), + feeToken: address(0) + }); + + vm.startPrank(s_alice); + sourceToken.approve(s_sourceNetwork.routerAddress, amountToSend); + uint256 fee = IRouterClient(s_sourceNetwork.routerAddress).getFee(s_destinationNetwork.chainSelector, message); + IRouterClient(s_sourceNetwork.routerAddress).ccipSend{value: fee}(s_destinationNetwork.chainSelector, message); + vm.stopPrank(); + + s_forkSimulator.switchChainAndRouteMessage(s_destinationFork); + + vm.selectFork(s_sourceFork); + assertEq(sourceToken.balanceOf(s_alice), 0); + + vm.selectFork(s_destinationFork); + assertEq(destinationToken.balanceOf(s_bob), amountToSend); + } + + function _registerAndSetPool(Register.NetworkDetails memory network, address token, address pool) internal { + RegistryModuleOwnerCustom(network.registryModuleOwnerCustomAddress).registerAccessControlDefaultAdmin(token); + ITokenAdminRegistry(network.tokenAdminRegistryAddress).acceptAdminRole(token); + ITokenAdminRegistry(network.tokenAdminRegistryAddress).setPool(token, pool); + } + + function _authorizeHookCaller(AdvancedPoolHooks hook, address caller) internal { + address[] memory addCallers = new address[](1); + addCallers[0] = caller; + hook.applyAuthorizedCallerUpdates( + AuthorizedCallers.AuthorizedCallerArgs({addedCallers: addCallers, removedCallers: new address[](0)}) + ); + } + + function _configureTrustedPool( + address localPool, + uint64 remoteChainSelector, + address remotePool, + address remoteToken + ) internal { + bytes[] memory remotePoolAddresses = new bytes[](1); + remotePoolAddresses[0] = abi.encode(remotePool); + + TokenPool.ChainUpdate[] memory chainUpdates = new TokenPool.ChainUpdate[](1); + chainUpdates[0] = TokenPool.ChainUpdate({ + remoteChainSelector: remoteChainSelector, + remotePoolAddresses: remotePoolAddresses, + remoteTokenAddress: abi.encode(remoteToken), + outboundRateLimiterConfig: _disabledRateLimiter(), + inboundRateLimiterConfig: _disabledRateLimiter() + }); + + TokenPool(localPool).applyChainUpdates(new uint64[](0), chainUpdates); + } + + function _disabledRateLimiter() internal pure returns (RateLimiter.Config memory config) { + config = RateLimiter.Config({isEnabled: false, capacity: 0, rate: 0}); + } +} diff --git a/test/e2e/ccip/CCTBurnMintFasterThanFinalityFork.t.sol b/test/e2e/ccip/CCTBurnMintFasterThanFinalityFork.t.sol new file mode 100644 index 0000000..4078d0b --- /dev/null +++ b/test/e2e/ccip/CCTBurnMintFasterThanFinalityFork.t.sol @@ -0,0 +1,167 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.24; + +import {Test} from "forge-std/Test.sol"; +import {CCIPLocalSimulatorFork, Register} from "@chainlink/local/src/ccip/CCIPLocalSimulatorFork.sol"; +import {IRouterClient} from "@chainlink/contracts-ccip/contracts/interfaces/IRouterClient.sol"; +import {ITokenAdminRegistry} from "@chainlink/contracts-ccip/contracts/interfaces/ITokenAdminRegistry.sol"; +import {IBurnMintERC20} from "@chainlink/contracts-ccip/contracts/interfaces/IBurnMintERC20.sol"; +import {BurnMintTokenPool} from "@chainlink/contracts-ccip/contracts/pools/BurnMintTokenPool.sol"; +import {TokenPool} from "@chainlink/contracts-ccip/contracts/pools/TokenPool.sol"; +import { + RegistryModuleOwnerCustom +} from "@chainlink/contracts-ccip/contracts/tokenAdminRegistry/RegistryModuleOwnerCustom.sol"; +import {Client} from "@chainlink/contracts-ccip/contracts/libraries/Client.sol"; +import {FinalityCodec} from "@chainlink/contracts-ccip/contracts/libraries/FinalityCodec.sol"; +import {RateLimiter} from "@chainlink/contracts-ccip/contracts/libraries/RateLimiter.sol"; +import {BurnMintERC20} from "@chainlink/contracts/src/v0.8/shared/token/ERC20/BurnMintERC20.sol"; + +import {EncodeExtraArgsOffchain} from "../../../src/test/ccip/utils/EncodeExtraArgsOffchain.sol"; + +contract CCTBurnMintFasterThanFinalityForkTest is Test { + uint32 internal constant GAS_LIMIT = 0; + uint16 internal constant BLOCK_CONFIRMATIONS = 1; + + CCIPLocalSimulatorFork internal s_forkSimulator; + EncodeExtraArgsOffchain internal s_encoder; + uint256 internal s_sourceFork; + uint256 internal s_destinationFork; + + Register.NetworkDetails internal s_sourceNetwork; + Register.NetworkDetails internal s_destinationNetwork; + + address internal s_alice; + address internal s_bob; + + function setUp() public { + s_sourceFork = vm.createSelectFork(vm.envString("ETHEREUM_SEPOLIA_RPC_URL")); + s_destinationFork = vm.createFork(vm.envString("ARBITRUM_SEPOLIA_RPC_URL")); + + s_forkSimulator = new CCIPLocalSimulatorFork(); + vm.makePersistent(address(s_forkSimulator)); + + s_encoder = new EncodeExtraArgsOffchain(); + vm.makePersistent(address(s_encoder)); + + vm.selectFork(s_sourceFork); + s_sourceNetwork = s_forkSimulator.getNetworkDetails(block.chainid); + + vm.selectFork(s_destinationFork); + s_destinationNetwork = s_forkSimulator.getNetworkDetails(block.chainid); + + s_alice = makeAddr("alice"); + s_bob = makeAddr("bob"); + + vm.selectFork(s_sourceFork); + vm.deal(s_alice, 10 ether); + } + + function test_cctBurnMintFasterThanFinality_fork() external { + uint256 amountToSend = 1 ether; + + vm.selectFork(s_sourceFork); + BurnMintERC20 sourceToken = new BurnMintERC20("CCT BurnMint Source", "CCTBM-S", 18, 0, amountToSend); + BurnMintTokenPool sourcePool = new BurnMintTokenPool( + IBurnMintERC20(address(sourceToken)), + 18, + address(0), + s_sourceNetwork.rmnProxyAddress, + s_sourceNetwork.routerAddress + ); + sourceToken.grantMintAndBurnRoles(address(sourcePool)); + sourceToken.transfer(s_alice, amountToSend); + + _registerAndSetPool(s_sourceNetwork, address(sourceToken), address(sourcePool)); + + vm.selectFork(s_destinationFork); + BurnMintERC20 destinationToken = new BurnMintERC20("CCT BurnMint Dest", "CCTBM-D", 18, 0, 0); + BurnMintTokenPool destinationPool = new BurnMintTokenPool( + IBurnMintERC20(address(destinationToken)), + 18, + address(0), + s_destinationNetwork.rmnProxyAddress, + s_destinationNetwork.routerAddress + ); + destinationToken.grantMintAndBurnRoles(address(destinationPool)); + + _registerAndSetPool(s_destinationNetwork, address(destinationToken), address(destinationPool)); + + vm.selectFork(s_sourceFork); + _configureTrustedPool( + address(sourcePool), s_destinationNetwork.chainSelector, address(destinationPool), address(destinationToken) + ); + TokenPool(address(sourcePool)).setAllowedFinalityConfig(FinalityCodec._encodeBlockDepth(BLOCK_CONFIRMATIONS)); + + vm.selectFork(s_destinationFork); + _configureTrustedPool( + address(destinationPool), s_sourceNetwork.chainSelector, address(sourcePool), address(sourceToken) + ); + + vm.selectFork(s_sourceFork); + uint256 sourceSupplyBefore = sourceToken.totalSupply(); + uint256 sourceBalanceBefore = sourceToken.balanceOf(s_alice); + + vm.selectFork(s_destinationFork); + uint256 destinationSupplyBefore = destinationToken.totalSupply(); + uint256 destinationBalanceBefore = destinationToken.balanceOf(s_bob); + + vm.selectFork(s_sourceFork); + Client.EVMTokenAmount[] memory tokenAmounts = new Client.EVMTokenAmount[](1); + tokenAmounts[0] = Client.EVMTokenAmount({token: address(sourceToken), amount: amountToSend}); + + Client.EVM2AnyMessage memory message = Client.EVM2AnyMessage({ + receiver: abi.encode(s_bob), + data: "", + tokenAmounts: tokenAmounts, + extraArgs: s_encoder.encodeV3BasicBlockDepth(GAS_LIMIT, BLOCK_CONFIRMATIONS), + feeToken: address(0) + }); + + vm.startPrank(s_alice); + sourceToken.approve(s_sourceNetwork.routerAddress, amountToSend); + uint256 fee = IRouterClient(s_sourceNetwork.routerAddress).getFee(s_destinationNetwork.chainSelector, message); + IRouterClient(s_sourceNetwork.routerAddress).ccipSend{value: fee}(s_destinationNetwork.chainSelector, message); + vm.stopPrank(); + + s_forkSimulator.switchChainAndRouteMessage(s_destinationFork); + + vm.selectFork(s_sourceFork); + assertEq(sourceToken.balanceOf(s_alice), sourceBalanceBefore - amountToSend); + assertEq(sourceToken.totalSupply(), sourceSupplyBefore - amountToSend); + + vm.selectFork(s_destinationFork); + assertEq(destinationToken.balanceOf(s_bob), destinationBalanceBefore + amountToSend); + assertEq(destinationToken.totalSupply(), destinationSupplyBefore + amountToSend); + } + + function _registerAndSetPool(Register.NetworkDetails memory network, address token, address pool) internal { + RegistryModuleOwnerCustom(network.registryModuleOwnerCustomAddress).registerAccessControlDefaultAdmin(token); + ITokenAdminRegistry(network.tokenAdminRegistryAddress).acceptAdminRole(token); + ITokenAdminRegistry(network.tokenAdminRegistryAddress).setPool(token, pool); + } + + function _configureTrustedPool( + address localPool, + uint64 remoteChainSelector, + address remotePool, + address remoteToken + ) internal { + bytes[] memory remotePoolAddresses = new bytes[](1); + remotePoolAddresses[0] = abi.encode(remotePool); + + TokenPool.ChainUpdate[] memory chainUpdates = new TokenPool.ChainUpdate[](1); + chainUpdates[0] = TokenPool.ChainUpdate({ + remoteChainSelector: remoteChainSelector, + remotePoolAddresses: remotePoolAddresses, + remoteTokenAddress: abi.encode(remoteToken), + outboundRateLimiterConfig: _disabledRateLimiter(), + inboundRateLimiterConfig: _disabledRateLimiter() + }); + + TokenPool(localPool).applyChainUpdates(new uint64[](0), chainUpdates); + } + + function _disabledRateLimiter() internal pure returns (RateLimiter.Config memory config) { + config = RateLimiter.Config({isEnabled: false, capacity: 0, rate: 0}); + } +} diff --git a/test/e2e/ccip/CCTLockReleaseFasterThanFinalityFork.t.sol b/test/e2e/ccip/CCTLockReleaseFasterThanFinalityFork.t.sol new file mode 100644 index 0000000..7c8c15d --- /dev/null +++ b/test/e2e/ccip/CCTLockReleaseFasterThanFinalityFork.t.sol @@ -0,0 +1,176 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.24; + +import {Test} from "forge-std/Test.sol"; +import {CCIPLocalSimulatorFork, Register} from "@chainlink/local/src/ccip/CCIPLocalSimulatorFork.sol"; +import {IRouterClient} from "@chainlink/contracts-ccip/contracts/interfaces/IRouterClient.sol"; +import {ITokenAdminRegistry} from "@chainlink/contracts-ccip/contracts/interfaces/ITokenAdminRegistry.sol"; +import { + RegistryModuleOwnerCustom +} from "@chainlink/contracts-ccip/contracts/tokenAdminRegistry/RegistryModuleOwnerCustom.sol"; +import {LockReleaseTokenPool, IERC20} from "@chainlink/contracts-ccip/contracts/pools/LockReleaseTokenPool.sol"; +import {ERC20LockBox} from "@chainlink/contracts-ccip/contracts/pools/ERC20LockBox.sol"; +import {TokenPool} from "@chainlink/contracts-ccip/contracts/pools/TokenPool.sol"; +import {Client} from "@chainlink/contracts-ccip/contracts/libraries/Client.sol"; +import {FinalityCodec} from "@chainlink/contracts-ccip/contracts/libraries/FinalityCodec.sol"; +import {RateLimiter} from "@chainlink/contracts-ccip/contracts/libraries/RateLimiter.sol"; +import {BurnMintERC20} from "@chainlink/contracts/src/v0.8/shared/token/ERC20/BurnMintERC20.sol"; +import {AuthorizedCallers} from "@chainlink/contracts/src/v0.8/shared/access/AuthorizedCallers.sol"; + +import {EncodeExtraArgsOffchain} from "../../../src/test/ccip/utils/EncodeExtraArgsOffchain.sol"; + +contract CCTLockReleaseFasterThanFinalityForkTest is Test { + uint32 internal constant GAS_LIMIT = 0; + uint16 internal constant BLOCK_CONFIRMATIONS = 1; + uint256 internal constant AMOUNT_TO_SEND = 1 ether; + uint256 internal constant DESTINATION_LIQUIDITY = 10 ether; + + CCIPLocalSimulatorFork internal s_forkSimulator; + EncodeExtraArgsOffchain internal s_encoder; + uint256 internal s_sourceFork; + uint256 internal s_destinationFork; + + Register.NetworkDetails internal s_sourceNetwork; + Register.NetworkDetails internal s_destinationNetwork; + + address internal s_alice; + address internal s_bob; + + function setUp() public { + s_sourceFork = vm.createSelectFork(vm.envString("ETHEREUM_SEPOLIA_RPC_URL")); + s_destinationFork = vm.createFork(vm.envString("ARBITRUM_SEPOLIA_RPC_URL")); + + s_forkSimulator = new CCIPLocalSimulatorFork(); + vm.makePersistent(address(s_forkSimulator)); + + s_encoder = new EncodeExtraArgsOffchain(); + vm.makePersistent(address(s_encoder)); + + vm.selectFork(s_sourceFork); + s_sourceNetwork = s_forkSimulator.getNetworkDetails(block.chainid); + + vm.selectFork(s_destinationFork); + s_destinationNetwork = s_forkSimulator.getNetworkDetails(block.chainid); + + s_alice = makeAddr("alice"); + s_bob = makeAddr("bob"); + + vm.selectFork(s_sourceFork); + vm.deal(s_alice, 10 ether); + } + + function test_cctLockReleaseFasterThanFinality_fork() external { + vm.selectFork(s_sourceFork); + BurnMintERC20 sourceToken = new BurnMintERC20("CCT LockRelease Source", "CCTLR-S", 18, 0, AMOUNT_TO_SEND); + ERC20LockBox sourceLockBox = new ERC20LockBox(address(sourceToken)); + LockReleaseTokenPool sourcePool = new LockReleaseTokenPool( + IERC20(address(sourceToken)), + 18, + address(0), + s_sourceNetwork.rmnProxyAddress, + s_sourceNetwork.routerAddress, + address(sourceLockBox) + ); + _authorizeCaller(sourceLockBox, address(sourcePool)); + sourceToken.transfer(s_alice, AMOUNT_TO_SEND); + + _registerAndSetPool(s_sourceNetwork, address(sourceToken), address(sourcePool)); + + vm.selectFork(s_destinationFork); + BurnMintERC20 destinationToken = + new BurnMintERC20("CCT LockRelease Dest", "CCTLR-D", 18, 0, DESTINATION_LIQUIDITY); + ERC20LockBox destinationLockBox = new ERC20LockBox(address(destinationToken)); + LockReleaseTokenPool destinationPool = new LockReleaseTokenPool( + IERC20(address(destinationToken)), + 18, + address(0), + s_destinationNetwork.rmnProxyAddress, + s_destinationNetwork.routerAddress, + address(destinationLockBox) + ); + _authorizeCaller(destinationLockBox, address(destinationPool)); + + _registerAndSetPool(s_destinationNetwork, address(destinationToken), address(destinationPool)); + destinationToken.transfer(address(destinationLockBox), DESTINATION_LIQUIDITY); + + vm.selectFork(s_sourceFork); + _configureTrustedPool( + address(sourcePool), s_destinationNetwork.chainSelector, address(destinationPool), address(destinationToken) + ); + TokenPool(address(sourcePool)).setAllowedFinalityConfig(FinalityCodec._encodeBlockDepth(BLOCK_CONFIRMATIONS)); + + vm.selectFork(s_destinationFork); + _configureTrustedPool( + address(destinationPool), s_sourceNetwork.chainSelector, address(sourcePool), address(sourceToken) + ); + + vm.selectFork(s_sourceFork); + Client.EVMTokenAmount[] memory tokenAmounts = new Client.EVMTokenAmount[](1); + tokenAmounts[0] = Client.EVMTokenAmount({token: address(sourceToken), amount: AMOUNT_TO_SEND}); + + Client.EVM2AnyMessage memory message = Client.EVM2AnyMessage({ + receiver: abi.encode(s_bob), + data: "", + tokenAmounts: tokenAmounts, + extraArgs: s_encoder.encodeV3BasicBlockDepth(GAS_LIMIT, BLOCK_CONFIRMATIONS), + feeToken: address(0) + }); + + vm.startPrank(s_alice); + sourceToken.approve(s_sourceNetwork.routerAddress, AMOUNT_TO_SEND); + uint256 fee = IRouterClient(s_sourceNetwork.routerAddress).getFee(s_destinationNetwork.chainSelector, message); + IRouterClient(s_sourceNetwork.routerAddress).ccipSend{value: fee}(s_destinationNetwork.chainSelector, message); + vm.stopPrank(); + + s_forkSimulator.switchChainAndRouteMessage(s_destinationFork); + + vm.selectFork(s_sourceFork); + assertEq(sourceToken.balanceOf(s_alice), 0); + assertEq(sourceToken.totalSupply(), AMOUNT_TO_SEND); + assertEq(sourceToken.balanceOf(address(sourceLockBox)), AMOUNT_TO_SEND); + + vm.selectFork(s_destinationFork); + assertEq(destinationToken.balanceOf(s_bob), AMOUNT_TO_SEND); + assertEq(destinationToken.totalSupply(), DESTINATION_LIQUIDITY); + assertEq(destinationToken.balanceOf(address(destinationLockBox)), DESTINATION_LIQUIDITY - AMOUNT_TO_SEND); + } + + function _registerAndSetPool(Register.NetworkDetails memory network, address token, address pool) internal { + RegistryModuleOwnerCustom(network.registryModuleOwnerCustomAddress).registerAccessControlDefaultAdmin(token); + ITokenAdminRegistry(network.tokenAdminRegistryAddress).acceptAdminRole(token); + ITokenAdminRegistry(network.tokenAdminRegistryAddress).setPool(token, pool); + } + + function _authorizeCaller(ERC20LockBox lockBox, address caller) internal { + address[] memory addCallers = new address[](1); + addCallers[0] = caller; + lockBox.applyAuthorizedCallerUpdates( + AuthorizedCallers.AuthorizedCallerArgs({addedCallers: addCallers, removedCallers: new address[](0)}) + ); + } + + function _configureTrustedPool( + address localPool, + uint64 remoteChainSelector, + address remotePool, + address remoteToken + ) internal { + bytes[] memory remotePoolAddresses = new bytes[](1); + remotePoolAddresses[0] = abi.encode(remotePool); + + TokenPool.ChainUpdate[] memory chainUpdates = new TokenPool.ChainUpdate[](1); + chainUpdates[0] = TokenPool.ChainUpdate({ + remoteChainSelector: remoteChainSelector, + remotePoolAddresses: remotePoolAddresses, + remoteTokenAddress: abi.encode(remoteToken), + outboundRateLimiterConfig: _disabledRateLimiter(), + inboundRateLimiterConfig: _disabledRateLimiter() + }); + + TokenPool(localPool).applyChainUpdates(new uint64[](0), chainUpdates); + } + + function _disabledRateLimiter() internal pure returns (RateLimiter.Config memory config) { + config = RateLimiter.Config({isEnabled: false, capacity: 0, rate: 0}); + } +} diff --git a/test/e2e/ccip/EthSepoliaToArbSepoliaMultiOffRampFork.t.sol b/test/e2e/ccip/EthSepoliaToArbSepoliaMultiOffRampFork.t.sol index f38960b..e388782 100644 --- a/test/e2e/ccip/EthSepoliaToArbSepoliaMultiOffRampFork.t.sol +++ b/test/e2e/ccip/EthSepoliaToArbSepoliaMultiOffRampFork.t.sol @@ -5,10 +5,11 @@ import {Test} from "forge-std/Test.sol"; import {Client} from "@chainlink/contracts-ccip/contracts/libraries/Client.sol"; import {IRouterClient} from "@chainlink/contracts-ccip/contracts/interfaces/IRouterClient.sol"; import {CCIPReceiver} from "@chainlink/contracts-ccip/contracts/applications/CCIPReceiver.sol"; -import {IERC20} from "../../../src/vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/IERC20.sol"; +import {IERC20} from "@openzeppelin/contracts@4.8.3/token/ERC20/IERC20.sol"; import {BurnMintERC677Helper} from "@chainlink/local/src/ccip/CCIPLocalSimulator.sol"; import {CCIPLocalSimulatorFork, IRouterFork} from "../../../src/ccip/CCIPLocalSimulatorFork.sol"; import {Register} from "../../../src/ccip/Register.sol"; +import {CCIPForkAdapterTypes} from "../../../src/ccip/adapters/CCIPForkAdapterTypes.sol"; /// @dev Minimal receiver so the only “application” code is CCIP wiring; the test sends via the Router directly. contract MinimalStringReceiver is CCIPReceiver { @@ -56,7 +57,7 @@ contract EthSepoliaToArbSepoliaMultiOffRampForkTest is Test { vm.selectFork(arbSepoliaFork); arbDetails = ccipFork.getNetworkDetails(block.chainid); - IRouterFork.OffRamp[] memory offRamps = IRouterFork(arbDetails.routerAddress).getOffRamps(); + CCIPForkAdapterTypes.RouterOffRamp[] memory offRamps = IRouterFork(arbDetails.routerAddress).getOffRamps(); uint256 matching; for (uint256 i; i < offRamps.length; ++i) { if (offRamps[i].sourceChainSelector == ETH_SEPOLIA_CHAIN_SELECTOR) { @@ -99,7 +100,7 @@ contract EthSepoliaToArbSepoliaMultiOffRampForkTest is Test { assertEq(receiver.lastPayload(), payload); } - /// @notice Regression: v1.6 token transfers must decode `destTokenAddress` as ABI-encoded address (32 bytes), not via `bytes20` truncation + /// @notice Regression: v1.6 token transfers must decode `destTokenAddress` as ABI-encoded address (32 bytes), not via `bytes20` truncation function test_transferBnMFromRouter_payFeesInNative_multiOffRampLane() public { address recipientAddr = makeAddr("recipient"); @@ -111,8 +112,7 @@ contract EthSepoliaToArbSepoliaMultiOffRampForkTest is Test { IERC20(sepoliaDetails.ccipBnMAddress).approve(address(sepoliaRouter), amountToSend); Client.EVMTokenAmount[] memory tokensToSendDetails = new Client.EVMTokenAmount[](1); - tokensToSendDetails[0] = - Client.EVMTokenAmount({token: sepoliaDetails.ccipBnMAddress, amount: amountToSend}); + tokensToSendDetails[0] = Client.EVMTokenAmount({token: sepoliaDetails.ccipBnMAddress, amount: amountToSend}); Client.EVM2AnyMessage memory message = Client.EVM2AnyMessage({ receiver: abi.encode(recipientAddr), diff --git a/test/e2e/ccip/ExtraArgsV3NoExecutionTagFork.t.sol b/test/e2e/ccip/ExtraArgsV3NoExecutionTagFork.t.sol new file mode 100644 index 0000000..85eadd5 --- /dev/null +++ b/test/e2e/ccip/ExtraArgsV3NoExecutionTagFork.t.sol @@ -0,0 +1,87 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.24; + +import {Test} from "forge-std/Test.sol"; +import {CCIPLocalSimulatorFork, Register} from "@chainlink/local/src/ccip/CCIPLocalSimulatorFork.sol"; +import {IRouterClient} from "@chainlink/contracts-ccip/contracts/interfaces/IRouterClient.sol"; +import {Client} from "@chainlink/contracts-ccip/contracts/libraries/Client.sol"; + +import {BasicMessageReceiver} from "../../../src/test/ccip/BasicMessageReceiver.sol"; +import {EncodeExtraArgsOffchain} from "../../../src/test/ccip/utils/EncodeExtraArgsOffchain.sol"; + +contract ExtraArgsV3NoExecutionTagForkTest is Test { + CCIPLocalSimulatorFork internal s_forkSimulator; + EncodeExtraArgsOffchain internal s_encoder; + uint256 internal s_sourceFork; + uint256 internal s_destinationFork; + + Register.NetworkDetails internal s_sourceNetwork; + Register.NetworkDetails internal s_destinationNetwork; + + address internal s_alice; + + function setUp() public { + s_sourceFork = vm.createSelectFork(vm.envString("ETHEREUM_SEPOLIA_RPC_URL")); + s_destinationFork = vm.createFork(vm.envString("ARBITRUM_SEPOLIA_RPC_URL")); + + s_forkSimulator = new CCIPLocalSimulatorFork(); + vm.makePersistent(address(s_forkSimulator)); + + s_encoder = new EncodeExtraArgsOffchain(); + vm.makePersistent(address(s_encoder)); + + vm.selectFork(s_sourceFork); + s_sourceNetwork = s_forkSimulator.getNetworkDetails(block.chainid); + + vm.selectFork(s_destinationFork); + s_destinationNetwork = s_forkSimulator.getNetworkDetails(block.chainid); + + s_alice = makeAddr("alice"); + vm.selectFork(s_sourceFork); + vm.deal(s_alice, 10 ether); + } + + function test_noExecutionTag_forkManualExecutionPath() external { + vm.selectFork(s_destinationFork); + BasicMessageReceiver receiver = new BasicMessageReceiver(s_destinationNetwork.routerAddress); + + vm.selectFork(s_sourceFork); + bytes memory payload = bytes("Hello World"); + address[] memory ccvs = new address[](0); + bytes[] memory ccvArgs = new bytes[](0); + bytes memory extraArgs = + s_encoder.encodeV3(200_000, 0, ccvs, ccvArgs, s_encoder.getNoExecutionAddress(), "", "", ""); + + Client.EVM2AnyMessage memory message = Client.EVM2AnyMessage({ + receiver: abi.encode(address(receiver)), + data: payload, + tokenAmounts: new Client.EVMTokenAmount[](0), + extraArgs: extraArgs, + feeToken: address(0) + }); + + vm.startPrank(s_alice); + uint256 fee = IRouterClient(s_sourceNetwork.routerAddress).getFee(s_destinationNetwork.chainSelector, message); + bytes32 messageId = IRouterClient(s_sourceNetwork.routerAddress).ccipSend{value: fee}( + s_destinationNetwork.chainSelector, message + ); + vm.stopPrank(); + + s_forkSimulator.switchChainAndRouteMessage(s_destinationFork); + + vm.selectFork(s_destinationFork); + assertEq(receiver.latestMessageId(), bytes32(0)); + + bytes32[] memory pendingMessageIds = s_forkSimulator.getPendingV2MessageIds(); + assertEq(pendingMessageIds.length, 1); + assertEq(pendingMessageIds[0], messageId); + + bool attempted = s_forkSimulator.executePendingV2Message(messageId); + assertTrue(attempted); + + assertEq(receiver.latestMessageId(), messageId); + assertEq(receiver.latestSourceChainSelector(), s_sourceNetwork.chainSelector); + assertEq(receiver.latestSender(), s_alice); + assertEq(receiver.latestMessage(), payload); + } +} diff --git a/test/e2e/ccip/HelloWorldBasicMessageReceiverFasterThanFinalityFork.t.sol b/test/e2e/ccip/HelloWorldBasicMessageReceiverFasterThanFinalityFork.t.sol new file mode 100644 index 0000000..c8c10a9 --- /dev/null +++ b/test/e2e/ccip/HelloWorldBasicMessageReceiverFasterThanFinalityFork.t.sol @@ -0,0 +1,134 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.24; + +import {Test} from "forge-std/Test.sol"; +import {CCIPLocalSimulatorFork, Register} from "@chainlink/local/src/ccip/CCIPLocalSimulatorFork.sol"; +import {IRouterClient} from "@chainlink/contracts-ccip/contracts/interfaces/IRouterClient.sol"; +import {Client} from "@chainlink/contracts-ccip/contracts/libraries/Client.sol"; + +import {FinalityCodec} from "@chainlink/contracts-ccip/contracts/libraries/FinalityCodec.sol"; + +import {BasicMessageReceiver} from "../../../src/test/ccip/BasicMessageReceiver.sol"; +import {BasicMessageReceiverWithCCVs} from "../../../src/test/ccip/BasicMessageReceiverWithCCVs.sol"; +import {EncodeExtraArgsOffchain} from "../../../src/test/ccip/utils/EncodeExtraArgsOffchain.sol"; + +contract HelloWorldBasicMessageReceiverFasterThanFinalityForkTest is Test { + CCIPLocalSimulatorFork internal s_forkSimulator; + EncodeExtraArgsOffchain internal s_encoder; + uint256 internal s_sourceFork; + uint256 internal s_destinationFork; + + Register.NetworkDetails internal s_sourceNetwork; + Register.NetworkDetails internal s_destinationNetwork; + + address internal s_alice; + + function setUp() public { + s_sourceFork = vm.createSelectFork(vm.envString("ETHEREUM_SEPOLIA_RPC_URL")); + s_destinationFork = vm.createFork(vm.envString("ARBITRUM_SEPOLIA_RPC_URL")); + + s_forkSimulator = new CCIPLocalSimulatorFork(); + vm.makePersistent(address(s_forkSimulator)); + + s_encoder = new EncodeExtraArgsOffchain(); + vm.makePersistent(address(s_encoder)); + + vm.selectFork(s_sourceFork); + s_sourceNetwork = s_forkSimulator.getNetworkDetails(block.chainid); + + vm.selectFork(s_destinationFork); + s_destinationNetwork = s_forkSimulator.getNetworkDetails(block.chainid); + + s_alice = makeAddr("alice"); + vm.selectFork(s_sourceFork); + vm.deal(s_alice, 10 ether); + } + + /// @dev CCIP 2.0: the destination OffRamp only delivers a Faster-Than-Finality message with data to a receiver + /// that opts in through `getCCVsAndFinalityConfig`. + function test_helloWorldBasicMessageReceiverFasterThanFinality_fork() external { + uint16 blockDepth = 1; + + vm.selectFork(s_destinationFork); + BasicMessageReceiverWithCCVs receiver = new BasicMessageReceiverWithCCVs(s_destinationNetwork.routerAddress); + receiver.setAllowedFinalityConfig(s_sourceNetwork.chainSelector, FinalityCodec._encodeBlockDepth(blockDepth)); + + bytes memory payload = bytes("Hello World"); + bytes32 messageId = _sendFasterThanFinality(address(receiver), payload, blockDepth); + + s_forkSimulator.switchChainAndRouteMessage(s_destinationFork); + + vm.selectFork(s_destinationFork); + assertEq(receiver.latestMessageId(), messageId); + assertEq(receiver.latestSourceChainSelector(), s_sourceNetwork.chainSelector); + assertEq(receiver.latestSender(), s_alice); + assertEq(receiver.latestMessage(), payload); + } + + /// @dev Production parity: a receiver that does not opt into Faster-Than-Finality only accepts finalized messages, + /// so the OffRamp records FAILURE with `InvalidRequestedFinality`. Strict routing (the default) surfaces exactly + /// that reason; without strict routing it is recorded in `getMessageStatus`. + function test_helloWorldFasterThanFinality_notDeliveredToReceiverRequiringFinality_fork() external { + vm.selectFork(s_destinationFork); + BasicMessageReceiver receiver = new BasicMessageReceiver(s_destinationNetwork.routerAddress); + + bytes32 messageId = _sendFasterThanFinality(address(receiver), bytes("Hello World"), 1); + bytes memory finalityRejection = abi.encodeWithSelector( + FinalityCodec.InvalidRequestedFinality.selector, + FinalityCodec._encodeBlockDepth(1), + FinalityCodec.WAIT_FOR_FINALITY_FLAG + ); + + vm.expectRevert( + abi.encodeWithSelector( + CCIPLocalSimulatorFork.CCIPLocalSimulatorFork__MessageExecutionFailed.selector, + messageId, + finalityRejection + ) + ); + s_forkSimulator.switchChainAndRouteMessage(s_destinationFork); + } + + function test_helloWorldFasterThanFinality_nonStrict_recordsFinalityRejection_fork() external { + vm.selectFork(s_destinationFork); + BasicMessageReceiver receiver = new BasicMessageReceiver(s_destinationNetwork.routerAddress); + + bytes32 messageId = _sendFasterThanFinality(address(receiver), bytes("Hello World"), 1); + s_forkSimulator.setStrictRouting(false); + s_forkSimulator.switchChainAndRouteMessage(s_destinationFork); + + vm.selectFork(s_destinationFork); + assertEq(receiver.latestMessageId(), bytes32(0)); + (CCIPLocalSimulatorFork.MessageStatus status, bytes memory reason) = s_forkSimulator.getMessageStatus(messageId); + assertEq(uint8(status), uint8(CCIPLocalSimulatorFork.MessageStatus.FAILED)); + assertEq( + reason, + abi.encodeWithSelector( + FinalityCodec.InvalidRequestedFinality.selector, + FinalityCodec._encodeBlockDepth(1), + FinalityCodec.WAIT_FOR_FINALITY_FLAG + ) + ); + } + + function _sendFasterThanFinality(address receiver, bytes memory payload, uint16 blockDepth) + internal + returns (bytes32 messageId) + { + vm.selectFork(s_sourceFork); + Client.EVM2AnyMessage memory message = Client.EVM2AnyMessage({ + receiver: abi.encode(receiver), + data: payload, + tokenAmounts: new Client.EVMTokenAmount[](0), + extraArgs: s_encoder.encodeV3BasicBlockDepth(200_000, blockDepth), + feeToken: address(0) + }); + + vm.startPrank(s_alice); + uint256 fee = IRouterClient(s_sourceNetwork.routerAddress).getFee(s_destinationNetwork.chainSelector, message); + messageId = IRouterClient(s_sourceNetwork.routerAddress).ccipSend{value: fee}( + s_destinationNetwork.chainSelector, message + ); + vm.stopPrank(); + } +} diff --git a/test/e2e/ccip/HelloWorldBasicMessageReceiverWithCCVsFork.t.sol b/test/e2e/ccip/HelloWorldBasicMessageReceiverWithCCVsFork.t.sol new file mode 100644 index 0000000..72e70c7 --- /dev/null +++ b/test/e2e/ccip/HelloWorldBasicMessageReceiverWithCCVsFork.t.sol @@ -0,0 +1,111 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.24; + +import {Test} from "forge-std/Test.sol"; +import {CCIPLocalSimulatorFork, Register} from "@chainlink/local/src/ccip/CCIPLocalSimulatorFork.sol"; +import {IRouterClient} from "@chainlink/contracts-ccip/contracts/interfaces/IRouterClient.sol"; +import {Client} from "@chainlink/contracts-ccip/contracts/libraries/Client.sol"; +import {FinalityCodec} from "@chainlink/contracts-ccip/contracts/libraries/FinalityCodec.sol"; +import {MockVerifier} from "@chainlink/contracts-ccip/contracts/test/mocks/MockVerifier.sol"; + +import {BasicMessageReceiverWithCCVs} from "../../../src/test/ccip/BasicMessageReceiverWithCCVs.sol"; +import {EncodeExtraArgsOffchain} from "../../../src/test/ccip/utils/EncodeExtraArgsOffchain.sol"; + +contract HelloWorldBasicMessageReceiverWithCCVsForkTest is Test { + CCIPLocalSimulatorFork internal s_forkSimulator; + EncodeExtraArgsOffchain internal s_encoder; + uint256 internal s_sourceFork; + uint256 internal s_destinationFork; + + Register.NetworkDetails internal s_sourceNetwork; + Register.NetworkDetails internal s_destinationNetwork; + MockVerifier internal s_mockVerifierA; + MockVerifier internal s_mockVerifierB; + + address internal s_alice; + + function setUp() public { + s_sourceFork = vm.createSelectFork(vm.envString("ETHEREUM_SEPOLIA_RPC_URL")); + s_destinationFork = vm.createFork(vm.envString("ARBITRUM_SEPOLIA_RPC_URL")); + + s_forkSimulator = new CCIPLocalSimulatorFork(); + vm.makePersistent(address(s_forkSimulator)); + + s_encoder = new EncodeExtraArgsOffchain(); + vm.makePersistent(address(s_encoder)); + + vm.selectFork(s_sourceFork); + s_sourceNetwork = s_forkSimulator.getNetworkDetails(block.chainid); + bytes memory verifierResult = abi.encodePacked(bytes4(0x464f524b)); // "FORK" + s_mockVerifierA = new MockVerifier(verifierResult); + s_mockVerifierB = new MockVerifier(verifierResult); + vm.makePersistent(address(s_mockVerifierA)); + vm.makePersistent(address(s_mockVerifierB)); + + vm.selectFork(s_destinationFork); + s_destinationNetwork = s_forkSimulator.getNetworkDetails(block.chainid); + + s_alice = makeAddr("alice"); + vm.selectFork(s_sourceFork); + vm.deal(s_alice, 10 ether); + } + + function test_helloWorldBasicMessageReceiverWithCCVs_fork() external { + vm.selectFork(s_destinationFork); + BasicMessageReceiverWithCCVs receiver = new BasicMessageReceiverWithCCVs(s_destinationNetwork.routerAddress); + + // Multiple CCV config with a deployable mock verifier. + address[] memory requiredCCVs = new address[](0); + address[] memory optionalCCVs = new address[](2); + optionalCCVs[0] = address(s_mockVerifierA); + optionalCCVs[1] = address(s_mockVerifierB); + + BasicMessageReceiverWithCCVs.CCVConfigArgs[] memory updates = + new BasicMessageReceiverWithCCVs.CCVConfigArgs[](1); + updates[0] = BasicMessageReceiverWithCCVs.CCVConfigArgs({ + requiredCCVs: requiredCCVs, + optionalCCVs: optionalCCVs, + sourceChainSelector: s_sourceNetwork.chainSelector, + optionalThreshold: 1 + }); + receiver.applyCCVConfigUpdates(updates); + uint16 minBlockDepth = 1; + receiver.setAllowedFinalityConfig(s_sourceNetwork.chainSelector, FinalityCodec._encodeBlockDepth(minBlockDepth)); + + vm.selectFork(s_sourceFork); + bytes memory payload = bytes("Hello World"); + + address[] memory ccvs = new address[](1); + ccvs[0] = address(s_mockVerifierA); + bytes[] memory ccvArgs = new bytes[](1); + ccvArgs[0] = ""; + uint32 gasLimit = 200_000; + uint16 blockConfirmations = 1; + bytes memory extraArgs = s_encoder.encodeV3( + gasLimit, FinalityCodec._encodeBlockDepth(blockConfirmations), ccvs, ccvArgs, address(0), "", "", "" + ); + + Client.EVM2AnyMessage memory message = Client.EVM2AnyMessage({ + receiver: abi.encode(address(receiver)), + data: payload, + tokenAmounts: new Client.EVMTokenAmount[](0), + extraArgs: extraArgs, + feeToken: address(0) + }); + + vm.startPrank(s_alice); + uint256 fee = IRouterClient(s_sourceNetwork.routerAddress).getFee(s_destinationNetwork.chainSelector, message); + bytes32 messageId = IRouterClient(s_sourceNetwork.routerAddress).ccipSend{value: fee}( + s_destinationNetwork.chainSelector, message + ); + vm.stopPrank(); + + s_forkSimulator.switchChainAndRouteMessage(s_destinationFork); + + vm.selectFork(s_destinationFork); + assertEq(receiver.latestMessageId(), messageId); + assertEq(receiver.latestSourceChainSelector(), s_sourceNetwork.chainSelector); + assertEq(receiver.latestSender(), s_alice); + assertEq(receiver.latestMessage(), payload); + } +} diff --git a/test/e2e/ccip/LooperFork.t.sol b/test/e2e/ccip/LooperFork.t.sol index 88c4db5..f54afb9 100644 --- a/test/e2e/ccip/LooperFork.t.sol +++ b/test/e2e/ccip/LooperFork.t.sol @@ -1,13 +1,13 @@ // SPDX-License-Identifier: MIT pragma solidity ^0.8.19; -import {Test, Vm} from "forge-std/Test.sol"; +import {Test} from "forge-std/Test.sol"; import {CCIPLocalSimulatorFork, Register} from "../../../src/ccip/CCIPLocalSimulatorFork.sol"; import {IRouterClient} from "@chainlink/contracts-ccip/contracts/interfaces/IRouterClient.sol"; import {Client} from "@chainlink/contracts-ccip/contracts/libraries/Client.sol"; import {CCIPReceiver} from "@chainlink/contracts-ccip/contracts/applications/CCIPReceiver.sol"; -import {IERC20} from "../../../src/vendor/openzeppelin-solidity/v4.8.3/contracts/token/ERC20/IERC20.sol"; +import {IERC20} from "@openzeppelin/contracts@4.8.3/token/ERC20/IERC20.sol"; contract Looper is CCIPReceiver { address internal immutable i_router; @@ -75,7 +75,12 @@ contract Looper is CCIPReceiver { IRouterClient(i_router).ccipSend(chainSelectorArb, messageC); } - function _ccipReceive(Client.Any2EVMMessage memory /*message*/ ) internal override { + function _ccipReceive( + Client.Any2EVMMessage memory /*message*/ + ) + internal + override + { s_messagesReceived++; } } @@ -84,23 +89,23 @@ contract LooperFork is Test { CCIPLocalSimulatorFork public ccipLocalSimulatorFork; Looper source; Looper destinationArb; - Looper destinationOp; + Looper destinationBase; Register.NetworkDetails sepoliaNetworkDetails; Register.NetworkDetails arbSepoliaNetworkDetails; - Register.NetworkDetails optimismSepoliaNetworkDetails; + Register.NetworkDetails baseSepoliaNetworkDetails; uint256 sepoliaFork; uint256 arbSepoliaFork; - uint256 optimismSepoliaFork; + uint256 baseSepoliaFork; function setUp() public { string memory ETHEREUM_SEPOLIA_RPC_URL = vm.envString("ETHEREUM_SEPOLIA_RPC_URL"); string memory ARBITRUM_SEPOLIA_RPC_URL = vm.envString("ARBITRUM_SEPOLIA_RPC_URL"); - string memory OPTIMISM_SEPOLIA_RPC_URL = vm.envString("OPTIMISM_SEPOLIA_RPC_URL"); + string memory BASE_SEPOLIA_RPC_URL = vm.envString("BASE_SEPOLIA_RPC_URL"); sepoliaFork = vm.createSelectFork(ETHEREUM_SEPOLIA_RPC_URL); arbSepoliaFork = vm.createFork(ARBITRUM_SEPOLIA_RPC_URL); - optimismSepoliaFork = vm.createFork(OPTIMISM_SEPOLIA_RPC_URL); + baseSepoliaFork = vm.createFork(BASE_SEPOLIA_RPC_URL); ccipLocalSimulatorFork = new CCIPLocalSimulatorFork(); vm.makePersistent(address(ccipLocalSimulatorFork)); @@ -113,10 +118,9 @@ contract LooperFork is Test { arbSepoliaNetworkDetails = ccipLocalSimulatorFork.getNetworkDetails(block.chainid); destinationArb = new Looper(arbSepoliaNetworkDetails.routerAddress, arbSepoliaNetworkDetails.linkAddress); - vm.selectFork(optimismSepoliaFork); - optimismSepoliaNetworkDetails = ccipLocalSimulatorFork.getNetworkDetails(block.chainid); - destinationOp = - new Looper(optimismSepoliaNetworkDetails.routerAddress, optimismSepoliaNetworkDetails.linkAddress); + vm.selectFork(baseSepoliaFork); + baseSepoliaNetworkDetails = ccipLocalSimulatorFork.getNetworkDetails(block.chainid); + destinationBase = new Looper(baseSepoliaNetworkDetails.routerAddress, baseSepoliaNetworkDetails.linkAddress); } function test_sendNMessagesToSingleChain() public { @@ -136,22 +140,22 @@ contract LooperFork is Test { source.send( address(destinationArb), - address(destinationOp), + address(destinationBase), arbSepoliaNetworkDetails.chainSelector, - optimismSepoliaNetworkDetails.chainSelector + baseSepoliaNetworkDetails.chainSelector ); uint256[] memory forks = new uint256[](2); forks[0] = arbSepoliaFork; - forks[1] = optimismSepoliaFork; + forks[1] = baseSepoliaFork; ccipLocalSimulatorFork.switchChainAndRouteMessage(forks); vm.selectFork(arbSepoliaFork); uint256 numberOfMessagesReceived = destinationArb.s_messagesReceived(); assertEq(numberOfMessagesReceived, 2); - vm.selectFork(optimismSepoliaFork); - numberOfMessagesReceived = destinationOp.s_messagesReceived(); + vm.selectFork(baseSepoliaFork); + numberOfMessagesReceived = destinationBase.s_messagesReceived(); assertEq(numberOfMessagesReceived, 1); } } diff --git a/test/e2e/ccip/PingPongFork.t.sol b/test/e2e/ccip/PingPongFork.t.sol index fa0146f..17a5399 100644 --- a/test/e2e/ccip/PingPongFork.t.sol +++ b/test/e2e/ccip/PingPongFork.t.sol @@ -1,7 +1,7 @@ // SPDX-License-Identifier: MIT pragma solidity ^0.8.19; -import {Test, Vm} from "forge-std/Test.sol"; +import {Test} from "forge-std/Test.sol"; import {Ping} from "../../../src/test/ccip/Ping.sol"; import {Pong} from "../../../src/test/ccip/Pong.sol"; import {CCIPLocalSimulatorFork, Register} from "../../../src/ccip/CCIPLocalSimulatorFork.sol"; diff --git a/test/e2e/ccip/ProgrammableTokenTransferEOAFork.t.sol b/test/e2e/ccip/ProgrammableTokenTransferEOAFork.t.sol new file mode 100644 index 0000000..d18688d --- /dev/null +++ b/test/e2e/ccip/ProgrammableTokenTransferEOAFork.t.sol @@ -0,0 +1,106 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.24; + +import {Test} from "forge-std/Test.sol"; +import {CCIPLocalSimulatorFork, Register} from "@chainlink/local/src/ccip/CCIPLocalSimulatorFork.sol"; +import {IRouterClient} from "@chainlink/contracts-ccip/contracts/interfaces/IRouterClient.sol"; +import {Client} from "@chainlink/contracts-ccip/contracts/libraries/Client.sol"; +import {ITokenAdminRegistry} from "@chainlink/contracts-ccip/contracts/interfaces/ITokenAdminRegistry.sol"; +import {TokenPool} from "@chainlink/contracts-ccip/contracts/pools/TokenPool.sol"; +import {FinalityCodec} from "@chainlink/contracts-ccip/contracts/libraries/FinalityCodec.sol"; +import {IERC20} from "@openzeppelin/contracts@4.8.3/token/ERC20/IERC20.sol"; + +import {BasicMessageReceiverWithCCVs} from "../../../src/test/ccip/BasicMessageReceiverWithCCVs.sol"; +import {EncodeExtraArgsOffchain} from "../../../src/test/ccip/utils/EncodeExtraArgsOffchain.sol"; + +contract ProgrammableTokenTransferEOAForkTest is Test { + CCIPLocalSimulatorFork internal s_forkSimulator; + EncodeExtraArgsOffchain internal s_encoder; + uint256 internal s_sourceFork; + uint256 internal s_destinationFork; + + Register.NetworkDetails internal s_sourceNetwork; + Register.NetworkDetails internal s_destinationNetwork; + + address internal s_alice; + + function setUp() public { + s_sourceFork = vm.createSelectFork(vm.envString("ETHEREUM_SEPOLIA_RPC_URL")); + s_destinationFork = vm.createFork(vm.envString("ARBITRUM_SEPOLIA_RPC_URL")); + + s_forkSimulator = new CCIPLocalSimulatorFork(); + vm.makePersistent(address(s_forkSimulator)); + + s_encoder = new EncodeExtraArgsOffchain(); + vm.makePersistent(address(s_encoder)); + + vm.selectFork(s_sourceFork); + s_sourceNetwork = s_forkSimulator.getNetworkDetails(block.chainid); + + vm.selectFork(s_destinationFork); + s_destinationNetwork = s_forkSimulator.getNetworkDetails(block.chainid); + + s_alice = makeAddr("alice"); + vm.selectFork(s_sourceFork); + vm.deal(s_alice, 10 ether); + } + + function test_programmableTokenTransferEOA_fork() external { + vm.selectFork(s_destinationFork); + // CCIP 2.0: a data + token message sent Faster-Than-Finality needs a receiver that opts in; the requested + // (pool-derived) depth must also meet the receiver's minimum. + BasicMessageReceiverWithCCVs receiver = new BasicMessageReceiverWithCCVs(s_destinationNetwork.routerAddress); + receiver.setAllowedFinalityConfig(s_sourceNetwork.chainSelector, FinalityCodec._encodeBlockDepth(1)); + + vm.selectFork(s_sourceFork); + _fundSourceTokenViaDrip(s_alice); // drip function mints 1e18 of the token + uint256 amountToSend = 1 ether; + + bytes memory payload = bytes("Hello World"); + uint32 gasLimit = 200_000; + bytes memory extraArgs = + s_encoder.encodeV3Basic(gasLimit, _poolAllowedFtfFinality(s_sourceNetwork.ccipBnMAddress)); + + Client.EVMTokenAmount[] memory tokenAmounts = new Client.EVMTokenAmount[](1); + tokenAmounts[0] = Client.EVMTokenAmount({token: s_sourceNetwork.ccipBnMAddress, amount: amountToSend}); + + Client.EVM2AnyMessage memory message = Client.EVM2AnyMessage({ + receiver: abi.encode(address(receiver)), + data: payload, + tokenAmounts: tokenAmounts, + extraArgs: extraArgs, + feeToken: address(0) + }); + + vm.startPrank(s_alice); + IERC20(s_sourceNetwork.ccipBnMAddress).approve(s_sourceNetwork.routerAddress, amountToSend); + uint256 fee = IRouterClient(s_sourceNetwork.routerAddress).getFee(s_destinationNetwork.chainSelector, message); + IRouterClient(s_sourceNetwork.routerAddress).ccipSend{value: fee}(s_destinationNetwork.chainSelector, message); + vm.stopPrank(); + + s_forkSimulator.switchChainAndRouteMessage(s_destinationFork); + + vm.selectFork(s_destinationFork); + assertEq(receiver.latestSender(), s_alice); + assertEq(receiver.latestMessage(), payload); + assertEq(IERC20(s_destinationNetwork.ccipBnMAddress).balanceOf(address(receiver)), amountToSend); + } + + function _fundSourceTokenViaDrip(address to) internal { + (bool dripSuccess,) = s_sourceNetwork.ccipBnMAddress.call(abi.encodeWithSignature("drip(address)", to)); + require(dripSuccess, "drip(address) failed"); + } + + /// @dev Requests the smallest Faster-Than-Finality config the live source pool accepts, so the test keeps exercising + /// FTF when testnet pool policy changes (e.g. the CCIP-BnM pool raised its minimum block depth to 32). + function _poolAllowedFtfFinality(address token) internal view returns (bytes4 finality) { + address pool = ITokenAdminRegistry(s_sourceNetwork.tokenAdminRegistryAddress).getPool(token); + bytes4 allowed = TokenPool(pool).getAllowedFinalityConfig(); + uint16 blockDepth = uint16(uint32(allowed & FinalityCodec.BLOCK_DEPTH_MASK)); + if (blockDepth != 0) { + return FinalityCodec._encodeBlockDepth(blockDepth); + } + require(allowed & FinalityCodec.WAIT_FOR_SAFE_FLAG != 0, "source pool does not allow Faster-Than-Finality"); + return FinalityCodec.WAIT_FOR_SAFE_FLAG; + } +} diff --git a/test/e2e/ccip/ProgrammableTokenTransferSenderDefaultFinalityFork.t.sol b/test/e2e/ccip/ProgrammableTokenTransferSenderDefaultFinalityFork.t.sol new file mode 100644 index 0000000..b60361f --- /dev/null +++ b/test/e2e/ccip/ProgrammableTokenTransferSenderDefaultFinalityFork.t.sol @@ -0,0 +1,81 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.24; + +import {Test} from "forge-std/Test.sol"; +import {CCIPLocalSimulatorFork, Register} from "@chainlink/local/src/ccip/CCIPLocalSimulatorFork.sol"; +import {Client} from "@chainlink/contracts-ccip/contracts/libraries/Client.sol"; +import {IERC20} from "@openzeppelin/contracts@4.8.3/token/ERC20/IERC20.sol"; + +import {BasicMessageReceiver} from "../../../src/test/ccip/BasicMessageReceiver.sol"; +import {BasicMessageSender} from "../../../src/test/ccip/BasicMessageSender.sol"; +import {EncodeExtraArgsOffchain} from "../../../src/test/ccip/utils/EncodeExtraArgsOffchain.sol"; + +contract ProgrammableTokenTransferSenderDefaultFinalityForkTest is Test { + CCIPLocalSimulatorFork internal s_forkSimulator; + EncodeExtraArgsOffchain internal s_encoder; + uint256 internal s_sourceFork; + uint256 internal s_destinationFork; + + Register.NetworkDetails internal s_sourceNetwork; + Register.NetworkDetails internal s_destinationNetwork; + + address internal s_alice; + + function setUp() public { + s_sourceFork = vm.createSelectFork(vm.envString("ETHEREUM_SEPOLIA_RPC_URL")); + s_destinationFork = vm.createFork(vm.envString("ARBITRUM_SEPOLIA_RPC_URL")); + + s_forkSimulator = new CCIPLocalSimulatorFork(); + vm.makePersistent(address(s_forkSimulator)); + + s_encoder = new EncodeExtraArgsOffchain(); + vm.makePersistent(address(s_encoder)); + + vm.selectFork(s_sourceFork); + s_sourceNetwork = s_forkSimulator.getNetworkDetails(block.chainid); + + vm.selectFork(s_destinationFork); + s_destinationNetwork = s_forkSimulator.getNetworkDetails(block.chainid); + + s_alice = makeAddr("alice"); + vm.selectFork(s_sourceFork); + vm.deal(s_alice, 10 ether); + } + + function test_programmableTokenTransferSenderDefaultFinality_fork() external { + vm.selectFork(s_destinationFork); + BasicMessageReceiver receiver = new BasicMessageReceiver(s_destinationNetwork.routerAddress); + + vm.selectFork(s_sourceFork); + BasicMessageSender sender = new BasicMessageSender(s_sourceNetwork.routerAddress, s_sourceNetwork.linkAddress); + vm.deal(address(sender), 1 ether); + + _fundSourceTokenViaDrip(s_alice); // drip function mints 1e18 of the token + uint256 amountToSend = 1 ether; + + bytes memory payload = bytes("Hello World"); + uint32 gasLimit = 200_000; + uint16 blockConfirmations = 0; + bytes memory extraArgs = s_encoder.encodeV3BasicBlockDepth(gasLimit, blockConfirmations); + + Client.EVMTokenAmount[] memory tokenAmounts = new Client.EVMTokenAmount[](1); + tokenAmounts[0] = Client.EVMTokenAmount({token: s_sourceNetwork.ccipBnMAddress, amount: amountToSend}); + + vm.startPrank(s_alice); + IERC20(s_sourceNetwork.ccipBnMAddress).approve(address(sender), amountToSend); + sender.send(s_destinationNetwork.chainSelector, address(receiver), payload, tokenAmounts, extraArgs, address(0)); + vm.stopPrank(); + + s_forkSimulator.switchChainAndRouteMessage(s_destinationFork); + + vm.selectFork(s_destinationFork); + assertEq(receiver.latestSender(), address(sender)); + assertEq(receiver.latestMessage(), payload); + assertEq(IERC20(s_destinationNetwork.ccipBnMAddress).balanceOf(address(receiver)), amountToSend); + } + + function _fundSourceTokenViaDrip(address to) internal { + (bool dripSuccess,) = s_sourceNetwork.ccipBnMAddress.call(abi.encodeWithSignature("drip(address)", to)); + require(dripSuccess, "drip(address) failed"); + } +} diff --git a/test/e2e/ccip/TokenTransferFasterThanFinalityFork.t.sol b/test/e2e/ccip/TokenTransferFasterThanFinalityFork.t.sol new file mode 100644 index 0000000..f2aa8a4 --- /dev/null +++ b/test/e2e/ccip/TokenTransferFasterThanFinalityFork.t.sol @@ -0,0 +1,108 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.24; + +import {Test} from "forge-std/Test.sol"; +import {CCIPLocalSimulatorFork, Register} from "@chainlink/local/src/ccip/CCIPLocalSimulatorFork.sol"; +import {IRouterClient} from "@chainlink/contracts-ccip/contracts/interfaces/IRouterClient.sol"; +import {Client} from "@chainlink/contracts-ccip/contracts/libraries/Client.sol"; +import {ITokenAdminRegistry} from "@chainlink/contracts-ccip/contracts/interfaces/ITokenAdminRegistry.sol"; +import {TokenPool} from "@chainlink/contracts-ccip/contracts/pools/TokenPool.sol"; +import {FinalityCodec} from "@chainlink/contracts-ccip/contracts/libraries/FinalityCodec.sol"; +import {IERC20} from "@openzeppelin/contracts@4.8.3/token/ERC20/IERC20.sol"; + +import {EncodeExtraArgsOffchain} from "../../../src/test/ccip/utils/EncodeExtraArgsOffchain.sol"; + +contract TokenTransferFasterThanFinalityForkTest is Test { + CCIPLocalSimulatorFork internal s_forkSimulator; + EncodeExtraArgsOffchain internal s_encoder; + uint256 internal s_sourceFork; + uint256 internal s_destinationFork; + + Register.NetworkDetails internal s_sourceNetwork; + Register.NetworkDetails internal s_destinationNetwork; + + address internal s_alice; + address internal s_bob; + + function setUp() public { + s_sourceFork = vm.createSelectFork(vm.envString("ETHEREUM_SEPOLIA_RPC_URL")); + s_destinationFork = vm.createFork(vm.envString("ARBITRUM_SEPOLIA_RPC_URL")); + + s_forkSimulator = new CCIPLocalSimulatorFork(); + vm.makePersistent(address(s_forkSimulator)); + + s_encoder = new EncodeExtraArgsOffchain(); + vm.makePersistent(address(s_encoder)); + + vm.selectFork(s_sourceFork); + s_sourceNetwork = s_forkSimulator.getNetworkDetails(block.chainid); + + vm.selectFork(s_destinationFork); + s_destinationNetwork = s_forkSimulator.getNetworkDetails(block.chainid); + + s_alice = makeAddr("alice"); + s_bob = makeAddr("bob"); + + vm.selectFork(s_sourceFork); + vm.deal(s_alice, 10 ether); + } + + function test_tokenTransferFasterThanFinality_fork() external { + vm.selectFork(s_sourceFork); + _fundSourceTokenViaDrip(s_alice); // drip function mints 1e18 of the token + uint256 amountToSend = 1 ether; + + uint256 sourceBalanceBefore = IERC20(s_sourceNetwork.ccipBnMAddress).balanceOf(s_alice); + + vm.selectFork(s_destinationFork); + uint256 destinationBalanceBefore = IERC20(s_destinationNetwork.ccipBnMAddress).balanceOf(s_bob); + + vm.selectFork(s_sourceFork); + uint32 gasLimit = 0; + bytes memory extraArgs = + s_encoder.encodeV3Basic(gasLimit, _poolAllowedFtfFinality(s_sourceNetwork.ccipBnMAddress)); + + Client.EVMTokenAmount[] memory tokenAmounts = new Client.EVMTokenAmount[](1); + tokenAmounts[0] = Client.EVMTokenAmount({token: s_sourceNetwork.ccipBnMAddress, amount: amountToSend}); + + Client.EVM2AnyMessage memory message = Client.EVM2AnyMessage({ + receiver: abi.encode(s_bob), + data: "", + tokenAmounts: tokenAmounts, + extraArgs: extraArgs, + feeToken: address(0) + }); + + vm.startPrank(s_alice); + IERC20(s_sourceNetwork.ccipBnMAddress).approve(s_sourceNetwork.routerAddress, amountToSend); + uint256 fee = IRouterClient(s_sourceNetwork.routerAddress).getFee(s_destinationNetwork.chainSelector, message); + IRouterClient(s_sourceNetwork.routerAddress).ccipSend{value: fee}(s_destinationNetwork.chainSelector, message); + vm.stopPrank(); + + s_forkSimulator.switchChainAndRouteMessage(s_destinationFork); + + vm.selectFork(s_destinationFork); + assertEq(IERC20(s_destinationNetwork.ccipBnMAddress).balanceOf(s_bob), destinationBalanceBefore + amountToSend); + + vm.selectFork(s_sourceFork); + assertEq(IERC20(s_sourceNetwork.ccipBnMAddress).balanceOf(s_alice), sourceBalanceBefore - amountToSend); + } + + function _fundSourceTokenViaDrip(address to) internal { + (bool dripSuccess,) = s_sourceNetwork.ccipBnMAddress.call(abi.encodeWithSignature("drip(address)", to)); + require(dripSuccess, "drip(address) failed"); + } + + /// @dev Requests the smallest Faster-Than-Finality config the live source pool accepts, so the test keeps exercising + /// FTF when testnet pool policy changes (e.g. the CCIP-BnM pool raised its minimum block depth to 32). + function _poolAllowedFtfFinality(address token) internal view returns (bytes4 finality) { + address pool = ITokenAdminRegistry(s_sourceNetwork.tokenAdminRegistryAddress).getPool(token); + bytes4 allowed = TokenPool(pool).getAllowedFinalityConfig(); + uint16 blockDepth = uint16(uint32(allowed & FinalityCodec.BLOCK_DEPTH_MASK)); + if (blockDepth != 0) { + return FinalityCodec._encodeBlockDepth(blockDepth); + } + require(allowed & FinalityCodec.WAIT_FOR_SAFE_FLAG != 0, "source pool does not allow Faster-Than-Finality"); + return FinalityCodec.WAIT_FOR_SAFE_FLAG; + } +} diff --git a/test/e2e/ccip/TokenTransferorFork.t.sol b/test/e2e/ccip/TokenTransferorFork.t.sol index afa04db..76c24a3 100644 --- a/test/e2e/ccip/TokenTransferorFork.t.sol +++ b/test/e2e/ccip/TokenTransferorFork.t.sol @@ -1,7 +1,7 @@ // SPDX-License-Identifier: MIT pragma solidity ^0.8.19; -import {Test, Vm} from "forge-std/Test.sol"; +import {Test} from "forge-std/Test.sol"; import {TokenTransferor} from "../../../src/test/ccip/TokenTransferor.sol"; import {BurnMintERC677Helper, IERC20} from "@chainlink/local/src/ccip/CCIPLocalSimulator.sol"; import {CCIPLocalSimulatorFork, Register} from "../../../src/ccip/CCIPLocalSimulatorFork.sol"; @@ -12,6 +12,7 @@ contract TokenTransferorFork is Test { BurnMintERC677Helper public ccipBnM; IERC20 public linkToken; address alice; + uint64 arbSepoliaChainSelector; uint256 sepoliaFork; uint256 arbSepoliaFork; @@ -26,6 +27,11 @@ contract TokenTransferorFork is Test { vm.makePersistent(address(ccipLocalSimulatorFork)); Register.NetworkDetails memory sepoliaNetworkDetails = ccipLocalSimulatorFork.getNetworkDetails(block.chainid); + vm.selectFork(arbSepoliaFork); + Register.NetworkDetails memory arbSepoliaNetworkDetails = + ccipLocalSimulatorFork.getNetworkDetails(block.chainid); + arbSepoliaChainSelector = arbSepoliaNetworkDetails.chainSelector; + vm.selectFork(sepoliaFork); sender = new TokenTransferor(sepoliaNetworkDetails.routerAddress, sepoliaNetworkDetails.linkAddress); @@ -42,7 +48,6 @@ contract TokenTransferorFork is Test { uint256 amountToSend = 100; ccipBnM.drip(address(sender)); - uint64 arbSepoliaChainSelector = 3478487238524512106; sender.allowlistDestinationChain(arbSepoliaChainSelector, true); uint256 balanceBefore = ccipBnM.balanceOf(address(sender)); diff --git a/test/e2e/data-feeds/BasicDataConsumerV3.t.sol b/test/e2e/data-feeds/BasicDataConsumerV3.t.sol index 1f2885b..1fbad7c 100644 --- a/test/e2e/data-feeds/BasicDataConsumerV3.t.sol +++ b/test/e2e/data-feeds/BasicDataConsumerV3.t.sol @@ -1,7 +1,7 @@ // SPDX-License-Identifier: MIT pragma solidity ^0.8.19; -import {Test, console2} from "forge-std/Test.sol"; +import {Test} from "forge-std/Test.sol"; import {BasicDataConsumerV3} from "../../../src/test/data-feeds/BasicDataConsumerV3.sol"; @@ -20,7 +20,7 @@ contract BasicDataConsumerV3Test is Test { consumer = new BasicDataConsumerV3(ETH_USD_AGGREGATOR_ADDRESS); } - function test_forkSmoke() public { + function test_forkSmoke() public view { assertEq(vm.activeFork(), ethereumMainnetForkId); int256 answer = consumer.getChainlinkDataFeedLatestAnswer(); diff --git a/test/e2e/data-streams/DataStreamsConsumerFork.t.sol b/test/e2e/data-streams/DataStreamsConsumerFork.t.sol index 0a157fb..b3f5b39 100644 --- a/test/e2e/data-streams/DataStreamsConsumerFork.t.sol +++ b/test/e2e/data-streams/DataStreamsConsumerFork.t.sol @@ -4,7 +4,7 @@ pragma solidity ^0.8.19; import {Test} from "forge-std/Test.sol"; import {DataStreamsLocalSimulatorFork, Register} from "../../../src/data-streams/DataStreamsLocalSimulatorFork.sol"; import {ReportVersions} from "../../../src/data-streams/ReportVersions.sol"; -import {IERC20} from "../../../src/vendor/openzeppelin-solidity/v4.8.3/contracts/interfaces/IERC20.sol"; +import {IERC20} from "@openzeppelin/contracts@4.8.3/interfaces/IERC20.sol"; interface IVerifierProxy { function verify(bytes calldata payload, bytes calldata parameterPayload) @@ -65,7 +65,7 @@ contract DataStreamsConsumerForkTest is Test { dataStreamsLocalSimulatorFork = new DataStreamsLocalSimulatorFork(); } - function preTestHook() public returns (IVerifierProxy, IFeeManager, address, bytes memory) { + function preTestHook() public view returns (IVerifierProxy, IFeeManager, address, bytes memory) { assertEq(vm.activeFork(), arbitrumSepoliaForkId); Register.NetworkDetails memory networkDetails = dataStreamsLocalSimulatorFork.getNetworkDetails(block.chainid); @@ -79,7 +79,7 @@ contract DataStreamsConsumerForkTest is Test { return (verifierProxy, feeManager, rewardManager, reportData); } - function postTestHook(ReportVersions.ReportV3 memory verifiedReport) public { + function postTestHook(ReportVersions.ReportV3 memory verifiedReport) public view { assertEq(verifiedReport.feedId, EXPECTED_REPORT.feedId); assertEq(verifiedReport.validFromTimestamp, EXPECTED_REPORT.validFromTimestamp); assertEq(verifiedReport.observationsTimestamp, EXPECTED_REPORT.observationsTimestamp); diff --git a/test/smoke/ccip/FasterThanFinality.t.sol b/test/smoke/ccip/FasterThanFinality.t.sol new file mode 100644 index 0000000..d460c42 --- /dev/null +++ b/test/smoke/ccip/FasterThanFinality.t.sol @@ -0,0 +1,63 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.19; + +import {Test} from "forge-std/Test.sol"; +import {ExtraArgsCodec} from "@chainlink/contracts-ccip/contracts/libraries/ExtraArgsCodec.sol"; +import {IRouterClient} from "@chainlink/contracts-ccip/contracts/interfaces/IRouterClient.sol"; +import {Client} from "@chainlink/contracts-ccip/contracts/libraries/Client.sol"; + +import {CCIPLocalSimulator, BurnMintERC677Helper} from "@chainlink/local/src/ccip/CCIPLocalSimulator.sol"; + +contract FasterThanFinalityTest is Test { + uint64 chainSelector; + BurnMintERC677Helper ccipBnM; + IRouterClient sourceRouter; + + address alice; + address bob; + + function setUp() public { + CCIPLocalSimulator ccipLocalSimulator = new CCIPLocalSimulator(); + + (uint64 chainSelector_, IRouterClient sourceRouter_,,,, BurnMintERC677Helper ccipBnM_,) = + ccipLocalSimulator.configuration(); + + chainSelector = chainSelector_; + sourceRouter = sourceRouter_; + ccipBnM = ccipBnM_; + + alice = makeAddr("alice"); + bob = makeAddr("bob"); + } + + function test_tokenTransfer() public { + ccipBnM.drip(alice); + + assertEq(ccipBnM.balanceOf(alice), 1 ether); + assertEq(ccipBnM.balanceOf(bob), 0); + + uint256 amountToSend = 0.5 ether; + uint32 gasLimit = 0; + uint16 blockConfirmations = 1; + + bytes memory extraArgs = ExtraArgsCodec._getBasicEncodedExtraArgsV3BlockDepth(gasLimit, blockConfirmations); + + Client.EVMTokenAmount[] memory tokenAmounts = new Client.EVMTokenAmount[](1); + tokenAmounts[0] = Client.EVMTokenAmount({token: address(ccipBnM), amount: amountToSend}); + + Client.EVM2AnyMessage memory ccipMessage = Client.EVM2AnyMessage({ + receiver: abi.encode(bob), data: "", tokenAmounts: tokenAmounts, extraArgs: extraArgs, feeToken: address(0) + }); + + vm.startPrank(alice); + ccipBnM.approve(address(sourceRouter), amountToSend); + + uint256 fee = sourceRouter.getFee(chainSelector, ccipMessage); + + sourceRouter.ccipSend{value: fee}(chainSelector, ccipMessage); + vm.stopPrank(); + + assertEq(ccipBnM.balanceOf(alice), 1 ether - amountToSend); + assertEq(ccipBnM.balanceOf(bob), amountToSend); + } +} diff --git a/test/smoke/ccip/HelloWorldBasicMessageReceiverFasterThanFinalityLocal.t.sol b/test/smoke/ccip/HelloWorldBasicMessageReceiverFasterThanFinalityLocal.t.sol new file mode 100644 index 0000000..f7723e5 --- /dev/null +++ b/test/smoke/ccip/HelloWorldBasicMessageReceiverFasterThanFinalityLocal.t.sol @@ -0,0 +1,89 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.24; + +import {Test} from "forge-std/Test.sol"; +import {CCIPLocalSimulator, IRouterClient} from "@chainlink/local/src/ccip/CCIPLocalSimulator.sol"; +import {Client} from "@chainlink/contracts-ccip/contracts/libraries/Client.sol"; +import {FinalityCodec} from "@chainlink/contracts-ccip/contracts/libraries/FinalityCodec.sol"; + +import {BasicMessageReceiver} from "../../../src/test/ccip/BasicMessageReceiver.sol"; +import {BasicMessageReceiverWithCCVs} from "../../../src/test/ccip/BasicMessageReceiverWithCCVs.sol"; +import {EncodeExtraArgsOffchain} from "../../../src/test/ccip/utils/EncodeExtraArgsOffchain.sol"; + +contract HelloWorldBasicMessageReceiverFasterThanFinalityLocalTest is Test { + uint64 internal s_chainSelector; + IRouterClient internal s_sourceRouter; + IRouterClient internal s_destinationRouter; + EncodeExtraArgsOffchain internal s_encoder; + + address internal s_alice; + + function setUp() public { + CCIPLocalSimulator simulator = new CCIPLocalSimulator(); + (uint64 chainSelector_, IRouterClient sourceRouter_, IRouterClient destinationRouter_,,,,) = + simulator.configuration(); + + s_chainSelector = chainSelector_; + s_sourceRouter = sourceRouter_; + s_destinationRouter = destinationRouter_; + s_encoder = new EncodeExtraArgsOffchain(); + + s_alice = makeAddr("alice"); + vm.deal(s_alice, 100 ether); + } + + /// @dev As on CCIP 2.0 lanes, a Faster-Than-Finality message with data is only delivered to a receiver that opts in + /// through `getCCVsAndFinalityConfig`. + function test_helloWorldBasicMessageReceiverFasterThanFinality_local() external { + BasicMessageReceiverWithCCVs receiver = new BasicMessageReceiverWithCCVs(address(s_destinationRouter)); + receiver.setAllowedFinalityConfig(s_chainSelector, FinalityCodec._encodeBlockDepth(1)); + + bytes memory payload = bytes("Hello World"); + uint32 gasLimit = 200_000; + uint16 blockConfirmations = 1; + bytes memory extraArgs = s_encoder.encodeV3BasicBlockDepth(gasLimit, blockConfirmations); + + Client.EVM2AnyMessage memory message = Client.EVM2AnyMessage({ + receiver: abi.encode(address(receiver)), + data: payload, + tokenAmounts: new Client.EVMTokenAmount[](0), + extraArgs: extraArgs, + feeToken: address(0) + }); + + vm.startPrank(s_alice); + uint256 fee = s_sourceRouter.getFee(s_chainSelector, message); + bytes32 messageId = s_sourceRouter.ccipSend{value: fee}(s_chainSelector, message); + vm.stopPrank(); + + assertEq(receiver.latestMessageId(), messageId); + assertEq(receiver.latestSourceChainSelector(), s_chainSelector); + assertEq(receiver.latestSender(), s_alice); + assertEq(receiver.latestMessage(), payload); + } + + /// @dev Production parity: a receiver that does not opt into Faster-Than-Finality only accepts finalized messages. + function test_helloWorldFasterThanFinality_revertsForReceiverRequiringFinality_local() external { + BasicMessageReceiver receiver = new BasicMessageReceiver(address(s_destinationRouter)); + + Client.EVM2AnyMessage memory message = Client.EVM2AnyMessage({ + receiver: abi.encode(address(receiver)), + data: bytes("Hello World"), + tokenAmounts: new Client.EVMTokenAmount[](0), + extraArgs: s_encoder.encodeV3BasicBlockDepth(200_000, 1), + feeToken: address(0) + }); + + vm.startPrank(s_alice); + uint256 fee = s_sourceRouter.getFee(s_chainSelector, message); + vm.expectRevert( + abi.encodeWithSelector( + FinalityCodec.InvalidRequestedFinality.selector, + FinalityCodec._encodeBlockDepth(1), + FinalityCodec.WAIT_FOR_FINALITY_FLAG + ) + ); + s_sourceRouter.ccipSend{value: fee}(s_chainSelector, message); + vm.stopPrank(); + } +} diff --git a/test/smoke/ccip/HelloWorldBasicMessageReceiverWithCCVsLocal.t.sol b/test/smoke/ccip/HelloWorldBasicMessageReceiverWithCCVsLocal.t.sol new file mode 100644 index 0000000..818dfeb --- /dev/null +++ b/test/smoke/ccip/HelloWorldBasicMessageReceiverWithCCVsLocal.t.sol @@ -0,0 +1,143 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.24; + +import {Test} from "forge-std/Test.sol"; +import {CCIPLocalSimulator, IRouterClient} from "@chainlink/local/src/ccip/CCIPLocalSimulator.sol"; +import {Client} from "@chainlink/contracts-ccip/contracts/libraries/Client.sol"; +import {FinalityCodec} from "@chainlink/contracts-ccip/contracts/libraries/FinalityCodec.sol"; +import {MockVerifier} from "@chainlink/contracts-ccip/contracts/test/mocks/MockVerifier.sol"; + +import {BasicMessageReceiverWithCCVs} from "../../../src/test/ccip/BasicMessageReceiverWithCCVs.sol"; +import {EncodeExtraArgsOffchain} from "../../../src/test/ccip/utils/EncodeExtraArgsOffchain.sol"; + +contract HelloWorldBasicMessageReceiverWithCCVsLocalTest is Test { + uint64 internal s_chainSelector; + IRouterClient internal s_sourceRouter; + IRouterClient internal s_destinationRouter; + EncodeExtraArgsOffchain internal s_encoder; + MockVerifier internal s_mockVerifierA; + MockVerifier internal s_mockVerifierB; + MockVerifier internal s_mockVerifierC; + + address internal s_alice; + + function setUp() public { + CCIPLocalSimulator simulator = new CCIPLocalSimulator(); + (uint64 chainSelector_, IRouterClient sourceRouter_, IRouterClient destinationRouter_,,,,) = + simulator.configuration(); + + s_chainSelector = chainSelector_; + s_sourceRouter = sourceRouter_; + s_destinationRouter = destinationRouter_; + s_encoder = new EncodeExtraArgsOffchain(); + bytes memory verifierResult = abi.encodePacked(bytes4(0x464f524b)); // "FORK" + s_mockVerifierA = new MockVerifier(verifierResult); + s_mockVerifierB = new MockVerifier(verifierResult); + s_mockVerifierC = new MockVerifier(verifierResult); + + s_alice = makeAddr("alice"); + vm.deal(s_alice, 100 ether); + } + + function test_helloWorldBasicMessageReceiverWithCCVs_local() external { + BasicMessageReceiverWithCCVs receiver = new BasicMessageReceiverWithCCVs(address(s_destinationRouter)); + + address[] memory requiredCCVs = new address[](1); + requiredCCVs[0] = address(s_mockVerifierA); + address[] memory optionalCCVs = new address[](2); + optionalCCVs[0] = address(s_mockVerifierB); + optionalCCVs[1] = address(s_mockVerifierC); + + BasicMessageReceiverWithCCVs.CCVConfigArgs[] memory updates = + new BasicMessageReceiverWithCCVs.CCVConfigArgs[](1); + updates[0] = BasicMessageReceiverWithCCVs.CCVConfigArgs({ + requiredCCVs: requiredCCVs, + optionalCCVs: optionalCCVs, + sourceChainSelector: s_chainSelector, + optionalThreshold: 1 + }); + receiver.applyCCVConfigUpdates(updates); + uint16 minBlockDepth = 1; + receiver.setAllowedFinalityConfig(s_chainSelector, FinalityCodec._encodeBlockDepth(minBlockDepth)); + + address[] memory ccvs = new address[](3); + ccvs[0] = address(s_mockVerifierA); + ccvs[1] = address(s_mockVerifierB); + ccvs[2] = address(s_mockVerifierC); + bytes[] memory ccvArgs = new bytes[](3); + + bytes memory payload = bytes("Hello World"); + uint32 gasLimit = 200_000; + uint16 blockConfirmations = 1; + bytes memory extraArgs = s_encoder.encodeV3( + gasLimit, FinalityCodec._encodeBlockDepth(blockConfirmations), ccvs, ccvArgs, address(0), "", "", "" + ); + + Client.EVM2AnyMessage memory message = Client.EVM2AnyMessage({ + receiver: abi.encode(address(receiver)), + data: payload, + tokenAmounts: new Client.EVMTokenAmount[](0), + extraArgs: extraArgs, + feeToken: address(0) + }); + + vm.startPrank(s_alice); + uint256 fee = s_sourceRouter.getFee(s_chainSelector, message); + bytes32 messageId = s_sourceRouter.ccipSend{value: fee}(s_chainSelector, message); + vm.stopPrank(); + + assertEq(receiver.latestMessageId(), messageId); + assertEq(receiver.latestSourceChainSelector(), s_chainSelector); + assertEq(receiver.latestSender(), s_alice); + assertEq(receiver.latestMessage(), payload); + } + + function test_getCCVsAndFinalityConfigReflectsUpdates_local() external { + BasicMessageReceiverWithCCVs receiver = new BasicMessageReceiverWithCCVs(address(s_destinationRouter)); + + address[] memory requiredCCVs = new address[](1); + requiredCCVs[0] = address(s_mockVerifierA); + address[] memory optionalCCVs = new address[](2); + optionalCCVs[0] = address(s_mockVerifierB); + optionalCCVs[1] = address(s_mockVerifierC); + + BasicMessageReceiverWithCCVs.CCVConfigArgs[] memory updates = + new BasicMessageReceiverWithCCVs.CCVConfigArgs[](1); + updates[0] = BasicMessageReceiverWithCCVs.CCVConfigArgs({ + requiredCCVs: requiredCCVs, + optionalCCVs: optionalCCVs, + sourceChainSelector: s_chainSelector, + optionalThreshold: 1 + }); + receiver.applyCCVConfigUpdates(updates); + + ( + address[] memory initialRequired, + address[] memory initialOptional, + uint8 initialThreshold, + bytes4 initialFinalityConfig + ) = receiver.getCCVsAndFinalityConfig(s_chainSelector, ""); + + assertEq(initialRequired.length, 1); + assertEq(initialRequired[0], address(s_mockVerifierA)); + assertEq(initialOptional.length, 2); + assertEq(initialOptional[0], address(s_mockVerifierB)); + assertEq(initialOptional[1], address(s_mockVerifierC)); + assertEq(initialThreshold, 1); + assertEq(initialFinalityConfig, FinalityCodec.WAIT_FOR_FINALITY_FLAG); + + uint16 minBlockDepth = 1; + receiver.setAllowedFinalityConfig(s_chainSelector, FinalityCodec._encodeBlockDepth(minBlockDepth)); + (,,, bytes4 updatedFinalityConfig) = receiver.getCCVsAndFinalityConfig(s_chainSelector, ""); + assertEq(updatedFinalityConfig, FinalityCodec._encodeBlockDepth(minBlockDepth)); + } + + function test_setAllowedFinalityConfig_RevertIfNotOwner_local() external { + BasicMessageReceiverWithCCVs receiver = new BasicMessageReceiverWithCCVs(address(s_destinationRouter)); + uint16 minBlockDepth = 1; + + vm.prank(s_alice); + vm.expectRevert(); + receiver.setAllowedFinalityConfig(s_chainSelector, FinalityCodec._encodeBlockDepth(minBlockDepth)); + } +} diff --git a/test/smoke/ccip/PayWithNative.t.sol b/test/smoke/ccip/PayWithNative.t.sol index 7b6d889..1e2ef54 100644 --- a/test/smoke/ccip/PayWithNative.t.sol +++ b/test/smoke/ccip/PayWithNative.t.sol @@ -1,10 +1,12 @@ // SPDX-License-Identifier: MIT pragma solidity ^0.8.24; -import {Test, console2} from "forge-std/Test.sol"; +import {Test} from "forge-std/Test.sol"; import {BasicTokenSender} from "../../../src/test/ccip/BasicTokenSender.sol"; import { - CCIPLocalSimulator, IRouterClient, BurnMintERC677Helper + CCIPLocalSimulator, + IRouterClient, + BurnMintERC677Helper } from "@chainlink/local/src/ccip/CCIPLocalSimulator.sol"; import {Client} from "@chainlink/contracts-ccip/contracts/libraries/Client.sol"; diff --git a/test/smoke/ccip/ProgrammableDefensiveTokenTransfers.t.sol b/test/smoke/ccip/ProgrammableDefensiveTokenTransfers.t.sol index 9998102..f22fab0 100644 --- a/test/smoke/ccip/ProgrammableDefensiveTokenTransfers.t.sol +++ b/test/smoke/ccip/ProgrammableDefensiveTokenTransfers.t.sol @@ -1,7 +1,7 @@ // SPDX-License-Identifier: MIT pragma solidity ^0.8.19; -import {Test, console2} from "forge-std/Test.sol"; +import {Test} from "forge-std/Test.sol"; import {ProgrammableDefensiveTokenTransfers} from "../../../src/test/ccip/ProgrammableDefensiveTokenTransfers.sol"; import { CCIPLocalSimulator, @@ -23,8 +23,7 @@ contract ProgrammableDefensiveTokenTransfersTest is Test { ( uint64 chainSelector_, IRouterClient sourceRouter, - IRouterClient destinationRouter, - , + IRouterClient destinationRouter,, LinkToken linkToken, BurnMintERC677Helper ccipBnM_, ) = ccipLocalSimulator.configuration(); diff --git a/test/smoke/ccip/ProgrammableTokenTransferEOALocal.t.sol b/test/smoke/ccip/ProgrammableTokenTransferEOALocal.t.sol new file mode 100644 index 0000000..e4b96bb --- /dev/null +++ b/test/smoke/ccip/ProgrammableTokenTransferEOALocal.t.sol @@ -0,0 +1,79 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.24; + +import {Test} from "forge-std/Test.sol"; +import { + CCIPLocalSimulator, + IRouterClient, + BurnMintERC677Helper +} from "@chainlink/local/src/ccip/CCIPLocalSimulator.sol"; +import {Client} from "@chainlink/contracts-ccip/contracts/libraries/Client.sol"; +import {FinalityCodec} from "@chainlink/contracts-ccip/contracts/libraries/FinalityCodec.sol"; +import {IERC20} from "@openzeppelin/contracts@4.8.3/token/ERC20/IERC20.sol"; + +import {BasicMessageReceiverWithCCVs} from "../../../src/test/ccip/BasicMessageReceiverWithCCVs.sol"; +import {EncodeExtraArgsOffchain} from "../../../src/test/ccip/utils/EncodeExtraArgsOffchain.sol"; + +contract ProgrammableTokenTransferEOALocalTest is Test { + uint64 internal s_chainSelector; + IRouterClient internal s_sourceRouter; + IRouterClient internal s_destinationRouter; + BurnMintERC677Helper internal s_ccipBnM; + EncodeExtraArgsOffchain internal s_encoder; + + address internal s_alice; + + function setUp() public { + CCIPLocalSimulator simulator = new CCIPLocalSimulator(); + ( + uint64 chainSelector_, + IRouterClient sourceRouter_, + IRouterClient destinationRouter_,,, + BurnMintERC677Helper ccipBnM_, + ) = simulator.configuration(); + + s_chainSelector = chainSelector_; + s_sourceRouter = sourceRouter_; + s_destinationRouter = destinationRouter_; + s_ccipBnM = ccipBnM_; + s_encoder = new EncodeExtraArgsOffchain(); + + s_alice = makeAddr("alice"); + vm.deal(s_alice, 100 ether); + } + + function test_programmableTokenTransferEOA_local() external { + // As on CCIP 2.0 lanes, a data + token message sent Faster-Than-Finality needs a receiver that opts in. + BasicMessageReceiverWithCCVs receiver = new BasicMessageReceiverWithCCVs(address(s_destinationRouter)); + receiver.setAllowedFinalityConfig(s_chainSelector, FinalityCodec._encodeBlockDepth(1)); + + uint256 amountToSend = 0.25 ether; + s_ccipBnM.drip(s_alice); + + bytes memory payload = bytes("Hello World"); + uint32 gasLimit = 200_000; + uint16 blockConfirmations = 1; + bytes memory extraArgs = s_encoder.encodeV3BasicBlockDepth(gasLimit, blockConfirmations); + + Client.EVMTokenAmount[] memory tokenAmounts = new Client.EVMTokenAmount[](1); + tokenAmounts[0] = Client.EVMTokenAmount({token: address(s_ccipBnM), amount: amountToSend}); + + Client.EVM2AnyMessage memory message = Client.EVM2AnyMessage({ + receiver: abi.encode(address(receiver)), + data: payload, + tokenAmounts: tokenAmounts, + extraArgs: extraArgs, + feeToken: address(0) + }); + + vm.startPrank(s_alice); + IERC20(address(s_ccipBnM)).approve(address(s_sourceRouter), amountToSend); + uint256 fee = s_sourceRouter.getFee(s_chainSelector, message); + s_sourceRouter.ccipSend{value: fee}(s_chainSelector, message); + vm.stopPrank(); + + assertEq(receiver.latestSender(), s_alice); + assertEq(receiver.latestMessage(), payload); + assertEq(s_ccipBnM.balanceOf(address(receiver)), amountToSend); + } +} diff --git a/test/smoke/ccip/ProgrammableTokenTransferSenderDefaultFinalityLocal.t.sol b/test/smoke/ccip/ProgrammableTokenTransferSenderDefaultFinalityLocal.t.sol new file mode 100644 index 0000000..89b85c8 --- /dev/null +++ b/test/smoke/ccip/ProgrammableTokenTransferSenderDefaultFinalityLocal.t.sol @@ -0,0 +1,74 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.24; + +import {Test} from "forge-std/Test.sol"; +import { + CCIPLocalSimulator, + IRouterClient, + LinkToken, + BurnMintERC677Helper +} from "@chainlink/local/src/ccip/CCIPLocalSimulator.sol"; +import {Client} from "@chainlink/contracts-ccip/contracts/libraries/Client.sol"; + +import {BasicMessageReceiver} from "../../../src/test/ccip/BasicMessageReceiver.sol"; +import {BasicMessageSender} from "../../../src/test/ccip/BasicMessageSender.sol"; +import {EncodeExtraArgsOffchain} from "../../../src/test/ccip/utils/EncodeExtraArgsOffchain.sol"; + +contract ProgrammableTokenTransferSenderDefaultFinalityLocalTest is Test { + uint64 internal s_chainSelector; + IRouterClient internal s_sourceRouter; + IRouterClient internal s_destinationRouter; + LinkToken internal s_link; + BurnMintERC677Helper internal s_ccipBnM; + EncodeExtraArgsOffchain internal s_encoder; + + address internal s_alice; + + function setUp() public { + CCIPLocalSimulator simulator = new CCIPLocalSimulator(); + ( + uint64 chainSelector_, + IRouterClient sourceRouter_, + IRouterClient destinationRouter_,, + LinkToken link_, + BurnMintERC677Helper ccipBnM_, + ) = simulator.configuration(); + + s_chainSelector = chainSelector_; + s_sourceRouter = sourceRouter_; + s_destinationRouter = destinationRouter_; + s_link = link_; + s_ccipBnM = ccipBnM_; + s_encoder = new EncodeExtraArgsOffchain(); + + s_alice = makeAddr("alice"); + vm.deal(s_alice, 100 ether); + } + + function test_programmableTokenTransferSenderDefaultFinality_local() external { + BasicMessageReceiver receiver = new BasicMessageReceiver(address(s_destinationRouter)); + BasicMessageSender sender = new BasicMessageSender(address(s_sourceRouter), address(s_link)); + + vm.deal(address(sender), 1 ether); + + uint256 amountToSend = 0.2 ether; + s_ccipBnM.drip(s_alice); + + bytes memory payload = bytes("Hello World"); + uint32 gasLimit = 200_000; + uint16 blockConfirmations = 0; + bytes memory extraArgs = s_encoder.encodeV3BasicBlockDepth(gasLimit, blockConfirmations); + + Client.EVMTokenAmount[] memory tokenAmounts = new Client.EVMTokenAmount[](1); + tokenAmounts[0] = Client.EVMTokenAmount({token: address(s_ccipBnM), amount: amountToSend}); + + vm.startPrank(s_alice); + s_ccipBnM.approve(address(sender), amountToSend); + sender.send(s_chainSelector, address(receiver), payload, tokenAmounts, extraArgs, address(0)); + vm.stopPrank(); + + assertEq(receiver.latestSender(), address(sender)); + assertEq(receiver.latestMessage(), payload); + assertEq(s_ccipBnM.balanceOf(address(receiver)), amountToSend); + } +} diff --git a/test/smoke/ccip/ProgrammableTokenTransfers.t.sol b/test/smoke/ccip/ProgrammableTokenTransfers.t.sol index 075fb53..178cea1 100644 --- a/test/smoke/ccip/ProgrammableTokenTransfers.t.sol +++ b/test/smoke/ccip/ProgrammableTokenTransfers.t.sol @@ -1,7 +1,7 @@ // SPDX-License-Identifier: MIT pragma solidity ^0.8.19; -import {Test, console2} from "forge-std/Test.sol"; +import {Test} from "forge-std/Test.sol"; import {ProgrammableTokenTransfers} from "../../../src/test/ccip/ProgrammableTokenTransfers.sol"; import { CCIPLocalSimulator, @@ -23,8 +23,7 @@ contract ProgrammableTokenTransfersTest is Test { ( uint64 chainSelector_, IRouterClient sourceRouter, - IRouterClient destinationRouter, - , + IRouterClient destinationRouter,, LinkToken linkToken, BurnMintERC677Helper ccipBnM_, ) = ccipLocalSimulator.configuration(); diff --git a/test/smoke/ccip/ReadmeUsageExample.t.sol b/test/smoke/ccip/ReadmeUsageExample.t.sol new file mode 100644 index 0000000..bf8bb4e --- /dev/null +++ b/test/smoke/ccip/ReadmeUsageExample.t.sol @@ -0,0 +1,56 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.24; + +import {Test} from "forge-std/Test.sol"; +import { + CCIPLocalSimulator, + IRouterClient, + WETH9, + LinkToken, + BurnMintERC677Helper +} from "@chainlink/local/src/ccip/CCIPLocalSimulator.sol"; +import {Client} from "@chainlink/contracts-ccip/contracts/libraries/Client.sol"; + +contract ReadmeUsageExampleTest is Test { + CCIPLocalSimulator public ccipLocalSimulator; + uint64 public chainSelector; + IRouterClient public sourceRouter; + LinkToken public linkToken; + BurnMintERC677Helper public ccipBnM; + + function setUp() public { + ccipLocalSimulator = new CCIPLocalSimulator(); + + WETH9 wrappedNative; + IRouterClient destinationRouter; + BurnMintERC677Helper ccipLnM; + (chainSelector, sourceRouter, destinationRouter, wrappedNative, linkToken, ccipBnM, ccipLnM) = + ccipLocalSimulator.configuration(); + } + + function test_sendTokens() public { + address alice = makeAddr("alice"); + address bob = makeAddr("bob"); + ccipLocalSimulator.requestLinkFromFaucet(alice, 5 ether); + ccipBnM.drip(alice); + + Client.EVMTokenAmount[] memory tokenAmounts = new Client.EVMTokenAmount[](1); + tokenAmounts[0] = Client.EVMTokenAmount({token: address(ccipBnM), amount: 1 ether}); + Client.EVM2AnyMessage memory message = Client.EVM2AnyMessage({ + receiver: abi.encode(bob), + data: "", + tokenAmounts: tokenAmounts, + extraArgs: Client._argsToBytes(Client.GenericExtraArgsV2({gasLimit: 0, allowOutOfOrderExecution: true})), + feeToken: address(linkToken) + }); + + vm.startPrank(alice); + uint256 fee = sourceRouter.getFee(chainSelector, message); + linkToken.approve(address(sourceRouter), fee); + ccipBnM.approve(address(sourceRouter), 1 ether); + sourceRouter.ccipSend(chainSelector, message); + vm.stopPrank(); + + assertEq(ccipBnM.balanceOf(bob), 1 ether); + } +} diff --git a/test/smoke/ccip/TokenTransferFasterThanFinalityLocal.t.sol b/test/smoke/ccip/TokenTransferFasterThanFinalityLocal.t.sol new file mode 100644 index 0000000..8bc8017 --- /dev/null +++ b/test/smoke/ccip/TokenTransferFasterThanFinalityLocal.t.sol @@ -0,0 +1,75 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.24; + +import {Test} from "forge-std/Test.sol"; +import { + CCIPLocalSimulator, + IRouterClient, + BurnMintERC677Helper +} from "@chainlink/local/src/ccip/CCIPLocalSimulator.sol"; +import {Client} from "@chainlink/contracts-ccip/contracts/libraries/Client.sol"; +import {IERC20} from "@openzeppelin/contracts@4.8.3/token/ERC20/IERC20.sol"; + +import {EncodeExtraArgsOffchain} from "../../../src/test/ccip/utils/EncodeExtraArgsOffchain.sol"; + +contract TokenTransferFasterThanFinalityLocalTest is Test { + CCIPLocalSimulator internal s_localSimulator; + uint64 internal s_chainSelector; + IRouterClient internal s_sourceRouter; + BurnMintERC677Helper internal s_ccipBnM; + EncodeExtraArgsOffchain internal s_encoder; + + address internal s_alice; + address internal s_bob; + + function setUp() public { + s_localSimulator = new CCIPLocalSimulator(); + (uint64 chainSelector_, IRouterClient sourceRouter_,,,, BurnMintERC677Helper ccipBnM_,) = + s_localSimulator.configuration(); + + s_chainSelector = chainSelector_; + s_sourceRouter = sourceRouter_; + s_ccipBnM = ccipBnM_; + s_encoder = new EncodeExtraArgsOffchain(); + + s_alice = makeAddr("alice"); + s_bob = makeAddr("bob"); + vm.deal(s_alice, 100 ether); + } + + function test_tokenTransferFasterThanFinality_local() external { + uint256 amountToSend = 0.5 ether; + s_ccipBnM.drip(s_alice); + + uint32 gasLimit = 0; + uint16 blockConfirmations = 1; + bytes memory extraArgs = s_encoder.encodeV3BasicBlockDepth(gasLimit, blockConfirmations); + Client.EVM2AnyMessage memory message = Client.EVM2AnyMessage({ + receiver: abi.encode(s_bob), + data: "", + tokenAmounts: _singleTokenAmount(amountToSend), + extraArgs: extraArgs, + feeToken: address(0) + }); + + _sendFromAlice(message); + + assertEq(s_ccipBnM.balanceOf(s_alice), 1 ether - amountToSend); + assertEq(s_ccipBnM.balanceOf(s_bob), amountToSend); + } + + function _singleTokenAmount(uint256 amount) internal view returns (Client.EVMTokenAmount[] memory tokenAmounts) { + tokenAmounts = new Client.EVMTokenAmount[](1); + tokenAmounts[0] = Client.EVMTokenAmount({token: address(s_ccipBnM), amount: amount}); + } + + function _sendFromAlice(Client.EVM2AnyMessage memory message) internal returns (bytes32 messageId) { + vm.startPrank(s_alice); + for (uint256 i = 0; i < message.tokenAmounts.length; ++i) { + IERC20(message.tokenAmounts[i].token).approve(address(s_sourceRouter), message.tokenAmounts[i].amount); + } + uint256 fee = s_sourceRouter.getFee(s_chainSelector, message); + messageId = s_sourceRouter.ccipSend{value: fee}(s_chainSelector, message); + vm.stopPrank(); + } +} diff --git a/test/smoke/ccip/TokenTransferor.t.sol b/test/smoke/ccip/TokenTransferor.t.sol index a07bf87..302b3ce 100644 --- a/test/smoke/ccip/TokenTransferor.t.sol +++ b/test/smoke/ccip/TokenTransferor.t.sol @@ -1,7 +1,7 @@ // SPDX-License-Identifier: MIT pragma solidity ^0.8.24; -import {Test, console2} from "forge-std/Test.sol"; +import {Test} from "forge-std/Test.sol"; import {TokenTransferor} from "../../../src/test/ccip/TokenTransferor.sol"; import { CCIPLocalSimulator, diff --git a/test/smoke/ccip/UnsafeTokenAndDataTransfer.spec.ts b/test/smoke/ccip/UnsafeTokenAndDataTransfer.spec.ts deleted file mode 100644 index 08afb19..0000000 --- a/test/smoke/ccip/UnsafeTokenAndDataTransfer.spec.ts +++ /dev/null @@ -1,58 +0,0 @@ -import { loadFixture } from "@nomicfoundation/hardhat-toolbox/network-helpers"; -import { ethers } from "hardhat"; -import { expect } from "chai"; - -describe("CCIPSender_Unsafe", function () { - - async function deploy() { - const localSimulatorFactory = await ethers.getContractFactory("CCIPLocalSimulator"); - const localSimulator = await localSimulatorFactory.deploy(); - - const config: { - chainSelector_: bigint; - sourceRouter_: string; - destinationRouter_: string; - wrappedNative_: string; - linkToken_: string; - ccipBnM_: string; - ccipLnM_: string; - } = await localSimulator.configuration(); - - const CCIPSender_UnsafeFactory = await ethers.getContractFactory("CCIPSender_Unsafe"); - const CCIPSender_Unsafe = await CCIPSender_UnsafeFactory.deploy(config.linkToken_, config.sourceRouter_); - - const CCIPReceiver_UnsafeFactory = await ethers.getContractFactory("CCIPReceiver_Unsafe"); - const CCIPReceiver_Unsafe = await CCIPReceiver_UnsafeFactory.deploy(config.destinationRouter_); - - const ccipBnMFactory = await ethers.getContractFactory("BurnMintERC677Helper"); - const ccipBnM = ccipBnMFactory.attach(config.ccipBnM_); - - return { localSimulator, CCIPSender_Unsafe, CCIPReceiver_Unsafe, config, ccipBnM }; - } - - it("should transfer Hello World and 100 CCIP_BnM tokens", async function () { - const { CCIPSender_Unsafe, CCIPReceiver_Unsafe, config, ccipBnM } = await loadFixture(deploy); - - const ONE_ETHER = 1_000_000_000_000_000_000n; - - await ccipBnM.drip(CCIPSender_Unsafe.target); - expect(await ccipBnM.totalSupply()).to.deep.equal(ONE_ETHER); - - const ccipSenderUnsafeBalanceBefore = await ccipBnM.balanceOf(CCIPSender_Unsafe.target); - const ccipReceiverUnsafeBalanceBefore = await ccipBnM.balanceOf(CCIPReceiver_Unsafe.target); - - const textToSend = `Hello World`; - const amountToSend = 100n; - - await CCIPSender_Unsafe.send(CCIPReceiver_Unsafe.target, textToSend, config.chainSelector_, config.ccipBnM_, amountToSend); - - const ccipSenderUnsafeBalanceAfter = await ccipBnM.balanceOf(CCIPSender_Unsafe.target); - const ccipReceiverUnsafeBalanceAfter = await ccipBnM.balanceOf(CCIPReceiver_Unsafe.target); - expect(ccipSenderUnsafeBalanceAfter).to.deep.equal(ccipSenderUnsafeBalanceBefore - amountToSend); - expect(ccipReceiverUnsafeBalanceAfter).to.deep.equal(ccipReceiverUnsafeBalanceBefore + amountToSend); - - const received = await CCIPReceiver_Unsafe.text(); - expect(received).to.equal(textToSend); - }); -}); - diff --git a/test/smoke/ccip/UnsafeTokenAndDataTransfer.t.sol b/test/smoke/ccip/UnsafeTokenAndDataTransfer.t.sol index 2743e3f..a3df495 100644 --- a/test/smoke/ccip/UnsafeTokenAndDataTransfer.t.sol +++ b/test/smoke/ccip/UnsafeTokenAndDataTransfer.t.sol @@ -24,8 +24,7 @@ contract UnsafeTokenAndDataTransferTest is Test { ( uint64 chainSelector_, IRouterClient sourceRouter_, - IRouterClient destinationRouter_, - , + IRouterClient destinationRouter_,, LinkToken linkToken_, BurnMintERC677Helper ccipBnM_, ) = ccipLocalSimulator.configuration(); diff --git a/test/smoke/data-feeds/BasicDataConsumerV3.spec.ts b/test/smoke/data-feeds/BasicDataConsumerV3.spec.ts deleted file mode 100644 index 72d5cd7..0000000 --- a/test/smoke/data-feeds/BasicDataConsumerV3.spec.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { loadFixture } from "@nomicfoundation/hardhat-toolbox/network-helpers"; -import { ethers } from "hardhat"; -import { expect } from "chai"; - -describe("BasicDataConsumerV3", function () { - - async function deploy() { - const decimals = 8; - const initialAnswer = 100000000000; - - const mockV3AggregatorFactory = await ethers.getContractFactory("MockV3Aggregator"); - const mockV3Aggregator = await mockV3AggregatorFactory.deploy(decimals, initialAnswer); - - const basicDataConsumerV3Factory = await ethers.getContractFactory("BasicDataConsumerV3"); - const basicDataConsumerV3 = await basicDataConsumerV3Factory.deploy(mockV3Aggregator.target); - - return { initialAnswer, basicDataConsumerV3 }; - } - - it("should return answer from mock aggregator", async function () { - const { initialAnswer, basicDataConsumerV3 } = await loadFixture(deploy); - - const answer = await basicDataConsumerV3.getChainlinkDataFeedLatestAnswer(); - - expect(answer).to.deep.equal(initialAnswer); - }); -}); - diff --git a/test/smoke/data-feeds/BasicDataConsumerV3.t.sol b/test/smoke/data-feeds/BasicDataConsumerV3.t.sol index 3c50ab8..16c0303 100644 --- a/test/smoke/data-feeds/BasicDataConsumerV3.t.sol +++ b/test/smoke/data-feeds/BasicDataConsumerV3.t.sol @@ -1,7 +1,7 @@ // SPDX-License-Identifier: MIT pragma solidity ^0.8.19; -import {Test, console2} from "forge-std/Test.sol"; +import {Test} from "forge-std/Test.sol"; import {MockV3Aggregator} from "@chainlink/local/src/data-feeds/MockV3Aggregator.sol"; import {BasicDataConsumerV3} from "../../../src/test/data-feeds/BasicDataConsumerV3.sol"; @@ -20,7 +20,7 @@ contract BasicDataConsumerV3Test is Test { consumer = new BasicDataConsumerV3(address(mockEthUsdAggregator)); } - function test_smoke() public { + function test_smoke() public view { int256 answer = consumer.getChainlinkDataFeedLatestAnswer(); assertEq(answer, initialAnswer, "answer should be equal to initialAnswer"); } diff --git a/test/smoke/data-streams/BillingMechanisms.t.sol b/test/smoke/data-streams/BillingMechanisms.t.sol index ab7db46..cf022be 100644 --- a/test/smoke/data-streams/BillingMechanisms.t.sol +++ b/test/smoke/data-streams/BillingMechanisms.t.sol @@ -1,12 +1,11 @@ // SPDX-License-Identifier: MIT pragma solidity ^0.8.19; -import {Test, console2} from "forge-std/Test.sol"; +import {Test} from "forge-std/Test.sol"; import { DataStreamsLocalSimulator, MockVerifierProxy, - MockFeeManager, - LinkToken + MockFeeManager } from "@chainlink/local/src/data-streams/DataStreamsLocalSimulator.sol"; import {MockReportGenerator} from "@chainlink/local/src/data-streams/MockReportGenerator.sol"; @@ -30,7 +29,11 @@ contract BillingMechanismsTest is Test { // Verify fee manager is deployed by default assertFalse(address(mockFeeManager_) == address(0), "Fee manager should be deployed by default"); - assertEq(address(mockVerifierProxy_.s_feeManager()), address(mockFeeManager_), "Fee manager should be set on verifier proxy"); + assertEq( + address(mockVerifierProxy_.s_feeManager()), + address(mockFeeManager_), + "Fee manager should be set on verifier proxy" + ); assertTrue(dataStreamsLocalSimulator.feeManagerEnabled(), "Fee manager should be enabled by default"); // Deploy consumer contract @@ -51,16 +54,18 @@ contract BillingMechanismsTest is Test { function test_offChainBillingMechanism() public { // Deploy simulator and toggle to off-chain billing DataStreamsLocalSimulator dataStreamsLocalSimulator = new DataStreamsLocalSimulator(); - + // Switch to off-chain billing mechanism dataStreamsLocalSimulator.enableOffChainBilling(); - + (,,, MockVerifierProxy mockVerifierProxy_, MockFeeManager mockFeeManager_,) = dataStreamsLocalSimulator.configuration(); // Verify fee manager is NOT set on verifier proxy assertTrue(address(mockFeeManager_) == address(0), "Fee manager should not be set on verifier proxy"); - assertEq(address(mockVerifierProxy_.s_feeManager()), address(0), "Fee manager should not be set on verifier proxy"); + assertEq( + address(mockVerifierProxy_.s_feeManager()), address(0), "Fee manager should not be set on verifier proxy" + ); assertFalse(dataStreamsLocalSimulator.feeManagerEnabled(), "Fee manager should be disabled"); // Deploy a simplified consumer that handles off-chain billing @@ -79,26 +84,29 @@ contract BillingMechanismsTest is Test { // Test that default constructor enables fee manager (maintaining existing behavior) DataStreamsLocalSimulator dataStreamsLocalSimulator = new DataStreamsLocalSimulator(); (,,,, MockFeeManager mockFeeManager_,) = dataStreamsLocalSimulator.configuration(); - - assertFalse(address(mockFeeManager_) == address(0), "Default constructor should enable fee manager for backward compatibility"); + + assertFalse( + address(mockFeeManager_) == address(0), + "Default constructor should enable fee manager for backward compatibility" + ); assertTrue(dataStreamsLocalSimulator.feeManagerEnabled(), "Fee manager should be enabled by default"); } function test_billingMechanismToggle() public { // Test toggling between billing mechanisms DataStreamsLocalSimulator dataStreamsLocalSimulator = new DataStreamsLocalSimulator(); - + // Initially should be on-chain billing assertTrue(dataStreamsLocalSimulator.feeManagerEnabled(), "Should start with on-chain billing"); (,,,, MockFeeManager mockFeeManager1,) = dataStreamsLocalSimulator.configuration(); assertFalse(address(mockFeeManager1) == address(0), "Fee manager should be set initially"); - + // Switch to off-chain billing dataStreamsLocalSimulator.enableOffChainBilling(); assertFalse(dataStreamsLocalSimulator.feeManagerEnabled(), "Should be off-chain billing after toggle"); (,,,, MockFeeManager mockFeeManager2,) = dataStreamsLocalSimulator.configuration(); assertTrue(address(mockFeeManager2) == address(0), "Fee manager should not be set after disabling"); - + // Switch back to on-chain billing dataStreamsLocalSimulator.enableOnChainBilling(); assertTrue(dataStreamsLocalSimulator.feeManagerEnabled(), "Should be on-chain billing after re-enabling"); @@ -110,22 +118,22 @@ contract BillingMechanismsTest is Test { // Test helpful error when using wrong billing mechanism DataStreamsLocalSimulator dataStreamsLocalSimulator = new DataStreamsLocalSimulator(); (,,, MockVerifierProxy mockVerifierProxy_,,) = dataStreamsLocalSimulator.configuration(); - + // Generate report (bytes memory signedReportV3,) = mockReportGenerator.generateReportV3(); - + // Try to verify with empty parameterPayload (off-chain mechanism) while on-chain billing is active bytes memory emptyPayload = bytes(""); - + vm.expectRevert( abi.encodeWithSignature( - "FeeManagerRequired(string)", + "FeeManagerRequired(string)", "On-chain billing is active but your contract is using off-chain billing mechanism. " "Either call simulator.enableOffChainBilling() or provide fee token address in parameterPayload. " "See: https://docs.chain.link/data-streams/tutorials/evm-onchain-report-verification" ) ); - + mockVerifierProxy_.verify(signedReportV3, emptyPayload); } @@ -133,26 +141,26 @@ contract BillingMechanismsTest is Test { // Test helpful error when using wrong billing mechanism DataStreamsLocalSimulator dataStreamsLocalSimulator = new DataStreamsLocalSimulator(); (,,, MockVerifierProxy mockVerifierProxy_,,) = dataStreamsLocalSimulator.configuration(); - + // Switch to off-chain billing dataStreamsLocalSimulator.enableOffChainBilling(); - + // Generate report (bytes memory signedReportV3,) = mockReportGenerator.generateReportV3(); - + // Try to verify with parameterPayload (on-chain mechanism) while off-chain billing is active address fakeTokenAddress = address(0x123); bytes memory parameterPayload = abi.encode(fakeTokenAddress); - + vm.expectRevert( abi.encodeWithSignature( - "FeeManagerNotExpected(string)", + "FeeManagerNotExpected(string)", "Off-chain billing is active but your contract is providing parameterPayload for on-chain billing. " "Either call simulator.enableOnChainBilling() or pass empty bytes as parameterPayload. " "Off-chain billing chains don't require fee handling in smart contracts." ) ); - + mockVerifierProxy_.verify(signedReportV3, parameterPayload); } @@ -160,28 +168,28 @@ contract BillingMechanismsTest is Test { // Test bulk verification error handling DataStreamsLocalSimulator dataStreamsLocalSimulator = new DataStreamsLocalSimulator(); (,,, MockVerifierProxy mockVerifierProxy_,,) = dataStreamsLocalSimulator.configuration(); - + // Switch to off-chain billing dataStreamsLocalSimulator.enableOffChainBilling(); - + // Generate reports (bytes memory signedReportV3,) = mockReportGenerator.generateReportV3(); bytes[] memory reports = new bytes[](1); reports[0] = signedReportV3; - + // Try to verify bulk with parameterPayload (on-chain mechanism) while off-chain billing is active address fakeTokenAddress = address(0x123); bytes memory parameterPayload = abi.encode(fakeTokenAddress); - + vm.expectRevert( abi.encodeWithSignature( - "FeeManagerNotExpected(string)", + "FeeManagerNotExpected(string)", "Off-chain billing is active but your contract is providing parameterPayload for on-chain billing. " "Either call simulator.enableOnChainBilling() or pass empty bytes as parameterPayload. " "Off-chain billing chains don't require fee handling in smart contracts." ) ); - + mockVerifierProxy_.verifyBulk(reports, parameterPayload); } @@ -189,18 +197,18 @@ contract BillingMechanismsTest is Test { // Test that correct mechanisms don't trigger errors DataStreamsLocalSimulator dataStreamsLocalSimulator = new DataStreamsLocalSimulator(); (,,, MockVerifierProxy mockVerifierProxy_,,) = dataStreamsLocalSimulator.configuration(); - + // Generate report (bytes memory signedReportV3,) = mockReportGenerator.generateReportV3(); - + // Test 1: Off-chain billing with empty parameterPayload (correct) dataStreamsLocalSimulator.enableOffChainBilling(); bytes memory emptyPayload = bytes(""); - + // Should not revert bytes memory result1 = mockVerifierProxy_.verify(signedReportV3, emptyPayload); assertTrue(result1.length > 0, "Off-chain billing with empty payload should succeed"); - + // Test 2: On-chain billing with parameterPayload (correct) // Note: We'll use a simple test that doesn't trigger fee manager validation errors // The error handling validation passes, but fee manager might still have its own validation @@ -209,14 +217,14 @@ contract BillingMechanismsTest is Test { function test_getBillingMechanism_helper() public { // Test the helper function for checking billing mechanism DataStreamsLocalSimulator dataStreamsLocalSimulator = new DataStreamsLocalSimulator(); - + // Should start with on-chain billing assertEq(dataStreamsLocalSimulator.getBillingMechanism(), "on-chain", "Should start with on-chain billing"); - + // Switch to off-chain billing dataStreamsLocalSimulator.enableOffChainBilling(); assertEq(dataStreamsLocalSimulator.getBillingMechanism(), "off-chain", "Should be off-chain after toggle"); - + // Switch back to on-chain billing dataStreamsLocalSimulator.enableOnChainBilling(); assertEq(dataStreamsLocalSimulator.getBillingMechanism(), "on-chain", "Should be on-chain after re-enabling"); @@ -251,7 +259,7 @@ contract OffChainBillingConsumer { function verifyReport(bytes memory unverifiedReport) external { // Check if fee manager exists (this is the key check for billing mechanism) address feeManager = address(s_verifierProxy.s_feeManager()); - + bytes memory parameterPayload; if (feeManager != address(0)) { // On-chain billing: would need to handle fees (not implemented in this simple example) diff --git a/test/smoke/data-streams/ChainlinkDataStreamProvider.t.sol b/test/smoke/data-streams/ChainlinkDataStreamProvider.t.sol index c799187..8a403d6 100644 --- a/test/smoke/data-streams/ChainlinkDataStreamProvider.t.sol +++ b/test/smoke/data-streams/ChainlinkDataStreamProvider.t.sol @@ -1,7 +1,7 @@ // SPDX-License-Identifier: MIT pragma solidity ^0.8.19; -import {Test, console2} from "forge-std/Test.sol"; +import {Test} from "forge-std/Test.sol"; import { DataStreamsLocalSimulator, MockVerifierProxy, @@ -47,8 +47,11 @@ contract ChainlinkDataStreamProviderTest is Test { (bytes memory signedReportV3,) = mockReportGenerator.generateReportV3(); - (address gotToken, int192 gotBid, int192 gotAsk, /*uint32 gotObservationsTimestamp*/ ) = - consumer.getOraclePrice(token, signedReportV3); + ( + address gotToken, + int192 gotBid, + int192 gotAsk, /*uint32 gotObservationsTimestamp*/ + ) = consumer.getOraclePrice(token, signedReportV3); assertEq(gotToken, token); assertEq(gotBid, wantBid); diff --git a/test/smoke/data-streams/ClientReportsVerifier.spec.ts b/test/smoke/data-streams/ClientReportsVerifier.spec.ts deleted file mode 100644 index 0b40488..0000000 --- a/test/smoke/data-streams/ClientReportsVerifier.spec.ts +++ /dev/null @@ -1,48 +0,0 @@ -import { loadFixture } from "@nomicfoundation/hardhat-toolbox/network-helpers"; -import { ethers } from "hardhat"; -import { assert } from "chai"; -import { MockReportGenerator } from "../../../scripts/data-streams/MockReportGenerator"; - -describe("ClientReportsVerifier", function () { - - async function deploy() { - const localSimulatorFactory = await ethers.getContractFactory("DataStreamsLocalSimulator"); - const localSimulator = await localSimulatorFactory.deploy(); - - const config: { - wrappedNative_: string; - linkToken_: string; - mockVerifier_: string; - mockVerifierProxy_: string; - mockFeeManager_: string; - mockRewardManager_: string; - } = await localSimulator.configuration(); - - const initialPrice = ethers.parseEther("1"); - const mockReportGenerator = new MockReportGenerator(initialPrice); - - const consumerFactory = await ethers.getContractFactory("ClientReportsVerifier"); - const consumer = await consumerFactory.deploy(config.mockVerifierProxy_); - - await mockReportGenerator.updateFees(ethers.parseEther("1"), ethers.parseEther("0.5")); - - await localSimulator.requestLinkFromFaucet(consumer.target, ethers.parseEther("1")); - - // const mockFeeManager = await ethers.getContractAt("MockFeeManager", config.mockFeeManager_); - // await mockFeeManager.setMockDiscount(consumer.target, ethers.parseEther("1")); // 1e18 => 100% discount on fees - - return { consumer, initialPrice, mockReportGenerator }; - } - - it("should verify Data Streams report", async function () { - const { consumer, initialPrice, mockReportGenerator } = await loadFixture(deploy); - - const { signedReport, report } = await mockReportGenerator.generateReportV3(); - - await consumer.verifyReport(signedReport); - - const lastDecodedPrice = await consumer.lastDecodedPrice(); - assert(lastDecodedPrice === initialPrice); - }); -}); - diff --git a/test/smoke/data-streams/ClientReportsVerifier.t.sol b/test/smoke/data-streams/ClientReportsVerifier.t.sol index 4cf5fae..e7935ee 100644 --- a/test/smoke/data-streams/ClientReportsVerifier.t.sol +++ b/test/smoke/data-streams/ClientReportsVerifier.t.sol @@ -1,7 +1,7 @@ // SPDX-License-Identifier: MIT pragma solidity ^0.8.19; -import {Test, console2} from "forge-std/Test.sol"; +import {Test} from "forge-std/Test.sol"; import { DataStreamsLocalSimulator, MockVerifierProxy diff --git a/test/smoke/data-streams/DataStreamsHelpers.test.js b/test/smoke/data-streams/DataStreamsHelpers.test.js new file mode 100644 index 0000000..d0933fc --- /dev/null +++ b/test/smoke/data-streams/DataStreamsHelpers.test.js @@ -0,0 +1,41 @@ +// Local (no RPC) tests for the Hardhat 3 Data Streams JavaScript helpers. Run with `npm run hardhat-test-js`. +import { describe, it } from "node:test"; +import assert from "node:assert/strict"; +import { network } from "hardhat"; + +import { MockReportGenerator } from "../../../scripts/data-streams/MockReportGenerator.js"; +import { requestNativeFromFaucet } from "../../../scripts/data-streams/DataStreamsLocalSimulatorFork.js"; + +describe("Data Streams JS helpers (Hardhat 3)", () => { + it("MockReportGenerator produces a V3 report that verifies on-chain", async () => { + // This repo compiles without the optimizer, so the simulator exceeds the default initcode size limit. + const connection = await network.connect({ override: { allowUnlimitedContractSize: true } }); + const { ethers } = connection; + + const localSimulator = await ( + await ethers.getContractFactory("src/data-streams/DataStreamsLocalSimulator.sol:DataStreamsLocalSimulator") + ).deploy(); + const config = await localSimulator.configuration(); + + const initialPrice = ethers.parseEther("1"); + const mockReportGenerator = new MockReportGenerator(connection, initialPrice); + await mockReportGenerator.updateFees(ethers.parseEther("1"), ethers.parseEther("0.5")); + + const consumer = await ( + await ethers.getContractFactory("src/test/data-streams/ClientReportsVerifier.sol:ClientReportsVerifier") + ).deploy(config.mockVerifierProxy_); + await (await localSimulator.requestLinkFromFaucet(await consumer.getAddress(), ethers.parseEther("1"))).wait(); + + const { signedReport } = await mockReportGenerator.generateReportV3(); + await (await consumer.verifyReport(signedReport)).wait(); + + assert.equal(await consumer.lastDecodedPrice(), initialPrice); + }); + + it("requestNativeFromFaucet sets the native balance", async () => { + const connection = await network.connect(); + const to = connection.ethers.Wallet.createRandom().address; + await requestNativeFromFaucet(connection, to, 12345n); + assert.equal(await connection.ethers.provider.getBalance(to), 12345n); + }); +}); diff --git a/test/smoke/data-streams/ERC7412Compatible.t.sol b/test/smoke/data-streams/ERC7412Compatible.t.sol index 4697a6b..86d7a76 100644 --- a/test/smoke/data-streams/ERC7412Compatible.t.sol +++ b/test/smoke/data-streams/ERC7412Compatible.t.sol @@ -1,7 +1,7 @@ // SPDX-License-Identifier: MIT pragma solidity ^0.8.24; -import {Test, console2} from "forge-std/Test.sol"; +import {Test} from "forge-std/Test.sol"; import { DataStreamsLocalSimulator, MockVerifierProxy @@ -38,6 +38,7 @@ contract ERC7412CompatibleTest is Test { try consumer.generate7412CompatibleCall(feedId, stalenessTolerance) {} catch (bytes memory lowLevelData) { + // disable-next-line(unsafe-typecast) if (bytes4(abi.encodeWithSignature("OracleDataRequired(address,bytes)")) == bytes4(lowLevelData)) { uint256 length = lowLevelData.length; bytes memory revertData = new bytes(length - 4); diff --git a/test/unit/ccip/CCIPForkAdapterV2CCVSelection.t.sol b/test/unit/ccip/CCIPForkAdapterV2CCVSelection.t.sol new file mode 100644 index 0000000..2ffee4e --- /dev/null +++ b/test/unit/ccip/CCIPForkAdapterV2CCVSelection.t.sol @@ -0,0 +1,150 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.19; + +import {Test} from "forge-std/Test.sol"; +import {CCIPForkAdapterV2} from "../../../src/ccip/adapters/CCIPForkAdapterV2.sol"; + +/// @dev CCV selection must satisfy OffRamp 2.0 `_ensureCCVQuorumIsReached`: every required CCV, plus `optionalThreshold` +/// of the optional CCVs (an optional CCV that is also required counts, because it is present in `ccvs`). +contract CCIPForkAdapterV2CCVSelectionTest is Test { + address internal constant A = address(0xA); + address internal constant B = address(0xB); + address internal constant C = address(0xC); + address internal constant D = address(0xD); + + error RequiredCCVMissing(address requiredCCV); + error OptionalCCVQuorumNotReached(uint256 wanted, uint256 got); + + /// @dev Line-for-line port of production `OffRamp._ensureCCVQuorumIsReached` (contracts-ccip-v2.0.0), minus the + /// data-index bookkeeping. Reverts exactly where the OffRamp reverts. + function productionQuorumCheck( + address[] memory requiredCCV, + address[] memory optionalCCVs, + uint8 optionalThreshold, + address[] memory ccvs + ) public pure { + for (uint256 i = 0; i < requiredCCV.length; ++i) { + bool found = false; + for (uint256 j = 0; j < ccvs.length; ++j) { + if (ccvs[j] == requiredCCV[i]) { + found = true; + break; + } + } + if (!found) revert RequiredCCVMissing(requiredCCV[i]); + } + uint256 optionalCCVsToFind = optionalThreshold; + for (uint256 i = 0; i < optionalCCVs.length; ++i) { + for (uint256 j = 0; j < ccvs.length && optionalCCVsToFind > 0; ++j) { + if (ccvs[j] == optionalCCVs[i]) { + optionalCCVsToFind--; + break; + } + } + } + if (optionalCCVsToFind > 0) { + revert OptionalCCVQuorumNotReached(optionalThreshold, optionalThreshold - optionalCCVsToFind); + } + } + + function _list(address a) internal pure returns (address[] memory l) { + l = new address[](1); + l[0] = a; + } + + function _list(address a, address b) internal pure returns (address[] memory l) { + l = new address[](2); + l[0] = a; + l[1] = b; + } + + function _list(address a, address b, address c) internal pure returns (address[] memory l) { + l = new address[](3); + l[0] = a; + l[1] = b; + l[2] = c; + } + + function _assertSelection( + address[] memory required, + address[] memory optional, + uint8 threshold, + address[] memory expected + ) internal view { + address[] memory ccvs = CCIPForkAdapterV2.selectCCVs(required, optional, threshold); + assertEq(ccvs, expected); + this.productionQuorumCheck(required, optional, threshold, ccvs); + } + + function test_requiredOnly() public view { + _assertSelection(_list(A, B), new address[](0), 0, _list(A, B)); + } + + function test_optionalOnly_thresholds() public view { + _assertSelection(new address[](0), _list(B, C), 0, new address[](0)); + _assertSelection(new address[](0), _list(B, C), 1, _list(B)); + _assertSelection(new address[](0), _list(B, C), 2, _list(B, C)); + } + + /// @dev The review repro: required=[A], optional=[B,C], threshold=1 needs A plus one of B or C. + function test_requiredPlusOptional_thresholds() public view { + _assertSelection(_list(A), _list(B, C), 0, _list(A)); + _assertSelection(_list(A), _list(B, C), 1, _list(A, B)); + _assertSelection(_list(A), _list(B, C), 2, _list(A, B, C)); + } + + /// @dev An optional CCV that is also required already counts toward the threshold. + function test_overlap_optionalAlsoRequired() public view { + _assertSelection(_list(A, B), _list(B, C), 1, _list(A, B)); + _assertSelection(_list(A, B), _list(B, C), 2, _list(A, B, C)); + } + + function test_duplicateRequired_deduplicated() public view { + _assertSelection(_list(A, A, B), _list(C), 1, _list(A, B, C)); + } + + /// @dev Property: for any lists drawn from 4 CCVs (overlap and duplicate required CCVs included) and any valid threshold, the + /// selection passes the production quorum check, contains no duplicates, and adds no unneeded optional CCV. + function testFuzz_selectionSatisfiesProductionQuorum(uint256 seed) public view { + address[4] memory pool = [A, B, C, D]; + uint256 requiredLength = seed % 4; + uint256 optionalLength = (seed >> 8) % 5; // 0..4 unique optional CCVs + address[] memory required = new address[](requiredLength); + address[] memory optional = new address[](optionalLength); + for (uint256 i; i < requiredLength; ++i) { + required[i] = pool[(seed >> (16 + 2 * i)) % 4]; + } + // Optional CCVs are unique, as in production: `OffRamp._getCCVsFromReceiver` rejects duplicate optional CCVs + // (`CCVConfigValidation._assertNoDuplicates`) before the quorum check. Required CCVs may repeat. + uint256 start = (seed >> 32) % 4; + for (uint256 i; i < optionalLength; ++i) { + optional[i] = pool[(start + i) % 4]; + } + uint8 threshold = uint8((seed >> 64) % (optionalLength + 1)); + + address[] memory ccvs = CCIPForkAdapterV2.selectCCVs(required, optional, threshold); + this.productionQuorumCheck(required, optional, threshold, ccvs); + + for (uint256 i; i < ccvs.length; ++i) { + for (uint256 j = i + 1; j < ccvs.length; ++j) { + assertTrue(ccvs[i] != ccvs[j], "duplicate CCV selected"); + } + } + // Minimality: removing any optional-only CCV must break the quorum (no extra verifier is ever required). + for (uint256 k; k < ccvs.length; ++k) { + bool isRequired; + for (uint256 r; r < required.length; ++r) { + if (required[r] == ccvs[k]) isRequired = true; + } + if (isRequired) continue; + address[] memory reduced = new address[](ccvs.length - 1); + uint256 n; + for (uint256 i; i < ccvs.length; ++i) { + if (i != k) reduced[n++] = ccvs[i]; + } + try this.productionQuorumCheck(required, optional, threshold, reduced) { + revert("selection contains an unneeded optional CCV"); + } catch {} + } + } +} diff --git a/test/unit/ccip/CCIPForkAdaptersUnit.t.sol b/test/unit/ccip/CCIPForkAdaptersUnit.t.sol new file mode 100644 index 0000000..e6eee37 --- /dev/null +++ b/test/unit/ccip/CCIPForkAdaptersUnit.t.sol @@ -0,0 +1,576 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.19; + +import {Test, Vm} from "forge-std/Test.sol"; +import {Client} from "@chainlink/contracts-ccip/contracts/libraries/Client.sol"; +import {MessageV1Codec} from "@chainlink/contracts-ccip/contracts/libraries/MessageV1Codec.sol"; +import {FinalityCodec} from "@chainlink/contracts-ccip/contracts/libraries/FinalityCodec.sol"; +import {CCIPLocalSimulatorFork} from "../../../src/ccip/CCIPLocalSimulatorFork.sol"; +import {CCIPForkAdapterTypes} from "../../../src/ccip/adapters/CCIPForkAdapterTypes.sol"; +import {CCIPForkAdapterV1dot6} from "../../../src/ccip/adapters/CCIPForkAdapterV1dot6.sol"; +import {CCIPForkAdapterPreV1dot6} from "../../../src/ccip/adapters/CCIPForkAdapterPreV1dot6.sol"; +import {CCIPForkAdapterV2, IMessageV1Decoder} from "../../../src/ccip/adapters/CCIPForkAdapterV2.sol"; +import {MessageV1CodecDecoder} from "../../../src/ccip/adapters/MessageV1CodecDecoder.sol"; + +contract MockV1dot6OffRamp { + address internal s_receiver; + address internal s_destToken; + bytes internal s_sourcePoolAddress; + uint32 internal s_gasOverride; + + function executeSingleMessage( + CCIPForkAdapterTypes.V1dot6Any2EVMRampMessage calldata message, + bytes[] calldata, + uint32[] calldata tokenGasOverrides + ) external { + s_receiver = message.receiver; + s_destToken = message.tokenAmounts[0].destTokenAddress; + s_sourcePoolAddress = message.tokenAmounts[0].sourcePoolAddress; + s_gasOverride = tokenGasOverrides[0]; + } + + function receiver() external view returns (address) { + return s_receiver; + } + + function destToken() external view returns (address) { + return s_destToken; + } + + function sourcePoolAddress() external view returns (bytes memory) { + return s_sourcePoolAddress; + } + + function gasOverride() external view returns (uint32) { + return s_gasOverride; + } +} + +contract MockPreV1dot6OffRamp { + uint256 internal s_numOverrides; + uint32 internal s_gasOverride = type(uint32).max; + + function executeSingleMessage( + CCIPForkAdapterTypes.PreV1dot6Message calldata, + bytes[] calldata, + uint32[] calldata tokenGasOverrides + ) external { + s_numOverrides = tokenGasOverrides.length; + s_gasOverride = tokenGasOverrides[0]; + } + + function numOverrides() external view returns (uint256) { + return s_numOverrides; + } + + function gasOverride() external view returns (uint32) { + return s_gasOverride; + } +} + +contract MockV2OffRamp { + address[] internal s_requiredCCVs; + address[] internal s_optionalCCVs; + uint8 internal s_threshold; + + bytes32 internal s_messageId; + uint256 internal s_numCCVs; + uint256 internal s_numVerifierResults; + uint256 internal s_executionCount; + address internal s_offRampAddressFromMessage; + + constructor(address[] memory requiredCCVs, address[] memory optionalCCVs, uint8 threshold) { + s_requiredCCVs = requiredCCVs; + s_optionalCCVs = optionalCCVs; + s_threshold = threshold; + } + + function getCCVsForMessage(bytes calldata) + external + view + returns (address[] memory requiredCCVs, address[] memory optionalCCVs, uint8 threshold) + { + return (s_requiredCCVs, s_optionalCCVs, s_threshold); + } + + function executeSingleMessage( + MessageV1Codec.MessageV1 calldata message, + bytes32 messageId_, + address[] calldata ccvs, + bytes[] calldata verifierResults, + uint32 + ) external { + s_messageId = messageId_; + s_numCCVs = ccvs.length; + s_numVerifierResults = verifierResults.length; + s_executionCount += 1; + s_offRampAddressFromMessage = _decodeAddress(message.offRampAddress); + } + + function messageId() external view returns (bytes32) { + return s_messageId; + } + + function numCCVs() external view returns (uint256) { + return s_numCCVs; + } + + function numVerifierResults() external view returns (uint256) { + return s_numVerifierResults; + } + + function offRampAddressFromMessage() external view returns (address) { + return s_offRampAddressFromMessage; + } + + function executionCount() external view returns (uint256) { + return s_executionCount; + } + + function _decodeAddress(bytes calldata encodedAddress) internal pure returns (address decodedAddress) { + if (encodedAddress.length == 32) { + return abi.decode(encodedAddress, (address)); + } + if (encodedAddress.length == 20) { + assembly { + decodedAddress := shr(96, calldataload(encodedAddress.offset)) + } + return decodedAddress; + } + + revert("invalid address encoding"); + } +} + +contract CCIPLocalSimulatorForkHarness is CCIPLocalSimulatorFork { + /// @dev These tests cover the opt-in local-codec V2 path, which was the default before OFFRAMP_DERIVED. + constructor() { + s_v2VerificationMode = V2VerificationMode.HYBRID; + } + + function routeV2Message(Vm.Log memory entry) external returns (bool attempted) { + // The local-codec path reads the source chain selector from the decoded message. + return _routeV2Message(entry, 0, false); + } +} + +contract MockFailingVerifier { + error InvalidVerifierResults(); + + function verifyMessage(MessageV1Codec.MessageV1 memory, bytes32, bytes memory) external pure { + revert InvalidVerifierResults(); + } +} + +contract MockVersionedResolver { + struct InboundImplementationArgs { + bytes4 version; + address verifier; + } + + address private immutable i_owner; + mapping(bytes4 version => address verifier) private s_inboundImplementations; + + constructor(bytes4 initialVersion, address initialVerifier) { + i_owner = msg.sender; + s_inboundImplementations[initialVersion] = initialVerifier; + } + + function owner() external view returns (address) { + return i_owner; + } + + function applyInboundImplementationUpdates(InboundImplementationArgs[] calldata implementations) external { + require(msg.sender == i_owner, "only owner"); + for (uint256 i; i < implementations.length; ++i) { + s_inboundImplementations[implementations[i].version] = implementations[i].verifier; + } + } + + function getInboundImplementation(bytes calldata verifierResults) external view returns (address) { + require(verifierResults.length >= 4, "invalid verifierResults"); + return s_inboundImplementations[bytes4(verifierResults[:4])]; + } +} + +interface ITestResolver { + function getInboundImplementation(bytes calldata verifierResults) external view returns (address); +} + +interface ITestVerifier { + function verifyMessage(MessageV1Codec.MessageV1 memory message, bytes32 messageId, bytes memory verifierResults) + external; +} + +contract MockV2OffRampWithVerifier { + address[] internal s_requiredCCVs; + uint256 internal s_successfulExecutions; + + constructor(address resolver) { + s_requiredCCVs = new address[](1); + s_requiredCCVs[0] = resolver; + } + + function getCCVsForMessage(bytes calldata) + external + view + returns (address[] memory requiredCCVs, address[] memory optionalCCVs, uint8 threshold) + { + return (s_requiredCCVs, new address[](0), 0); + } + + function executeSingleMessage( + MessageV1Codec.MessageV1 calldata message, + bytes32 messageId, + address[] calldata ccvs, + bytes[] calldata verifierResults, + uint32 + ) external { + require(msg.sender == address(this), "can only self-call"); + require(ccvs.length == 1 && verifierResults.length == 1, "unexpected ccv input"); + + address verifierImpl = ITestResolver(ccvs[0]).getInboundImplementation(verifierResults[0]); + require(verifierImpl != address(0), "missing verifier impl"); + + ITestVerifier(verifierImpl).verifyMessage(message, messageId, verifierResults[0]); + s_successfulExecutions += 1; + } + + function successfulExecutions() external view returns (uint256) { + return s_successfulExecutions; + } +} + +contract CCIPForkAdaptersUnitTest is Test { + function test_v1dot6AdapterDecodesAbiEncodedReceiverAndDestTokenAddress() public { + MockV1dot6OffRamp offRamp = new MockV1dot6OffRamp(); + + address expectedReceiver = makeAddr("receiver"); + address expectedDestToken = makeAddr("destToken"); + address expectedSourcePool = makeAddr("sourcePool"); + uint32 expectedGasLimit = 555_555; + + CCIPForkAdapterTypes.V1dot6EVM2AnyTokenTransfer[] memory tokenTransfers = + new CCIPForkAdapterTypes.V1dot6EVM2AnyTokenTransfer[](1); + tokenTransfers[0] = CCIPForkAdapterTypes.V1dot6EVM2AnyTokenTransfer({ + sourcePoolAddress: expectedSourcePool, + destTokenAddress: abi.encode(expectedDestToken), + extraData: "", + amount: 1, + destExecData: abi.encode(expectedGasLimit) + }); + + CCIPForkAdapterTypes.V1dot6EVM2AnyRampMessage memory message = CCIPForkAdapterTypes.V1dot6EVM2AnyRampMessage({ + header: CCIPForkAdapterTypes.V1dot6RampMessageHeader({ + messageId: keccak256("m"), sourceChainSelector: 1, destChainSelector: 2, sequenceNumber: 3, nonce: 4 + }), + sender: makeAddr("sender"), + data: "hello", + receiver: abi.encode(expectedReceiver), + extraArgs: Client._argsToBytes( + Client.GenericExtraArgsV2({gasLimit: expectedGasLimit, allowOutOfOrderExecution: false}) + ), + feeToken: address(0), + feeTokenAmount: 0, + feeValueJuels: 0, + tokenAmounts: tokenTransfers + }); + + (bool success,) = CCIPForkAdapterV1dot6.execute(message, address(offRamp)); + assertTrue(success); + + assertEq(offRamp.receiver(), expectedReceiver); + assertEq(offRamp.destToken(), expectedDestToken); + assertEq(abi.decode(offRamp.sourcePoolAddress(), (address)), expectedSourcePool); + // A zero token gas override keeps the source-stamped `destGasAmount` (OffRamp only overrides when non-zero). + assertEq(offRamp.gasOverride(), 0); + } + + /// @dev EVM2EVMOffRamp 1.5 only overrides `destGasAmount` with a non-zero value, so the adapter must pass zeros. + function test_preV1dot6AdapterPassesZeroTokenGasOverrides() public { + MockPreV1dot6OffRamp offRamp = new MockPreV1dot6OffRamp(); + + Client.EVMTokenAmount[] memory tokenAmounts = new Client.EVMTokenAmount[](1); + tokenAmounts[0] = Client.EVMTokenAmount({token: makeAddr("token"), amount: 1}); + CCIPForkAdapterTypes.PreV1dot6Message memory message; + message.receiver = makeAddr("receiver"); + message.gasLimit = 555_555; + message.tokenAmounts = tokenAmounts; + message.sourceTokenData = new bytes[](1); + + (bool success,) = CCIPForkAdapterPreV1dot6.execute(address(offRamp), message); + assertTrue(success); + assertEq(offRamp.numOverrides(), 1); + assertEq(offRamp.gasOverride(), 0); + } + + function test_v2AdapterDecodesEventAndRoutesUsingVerifierBlobs() public { + address ccv1 = makeAddr("ccv1"); + address ccv2 = makeAddr("ccv2"); + + address[] memory requiredCCVs = new address[](1); + requiredCCVs[0] = ccv1; + address[] memory optionalCCVs = new address[](1); + optionalCCVs[0] = ccv2; + + // required=[ccv1], optional=[ccv2], threshold=1: the OffRamp needs ccv1 plus ccv2. (A threshold above the number + // of optional CCVs is rejected by the OffRamp with `InvalidOptionalThreshold`.) + MockV2OffRamp offRamp = new MockV2OffRamp(requiredCCVs, optionalCCVs, 1); + MessageV1CodecDecoder decoder = new MessageV1CodecDecoder(); + + MessageV1Codec.MessageV1 memory message = MessageV1Codec.MessageV1({ + sourceChainSelector: 111, + destChainSelector: 222, + messageNumber: 1, + executionGasLimit: 400_000, + ccipReceiveGasLimit: 300_000, + finality: FinalityCodec._encodeBlockDepth(2), + ccvAndExecutorHash: bytes32(0), + onRampAddress: abi.encode(makeAddr("onRamp")), + offRampAddress: abi.encodePacked(address(offRamp)), + sender: abi.encode(makeAddr("sender")), + receiver: abi.encodePacked(makeAddr("receiver")), + destBlob: "", + tokenTransfer: new MessageV1Codec.TokenTransferV1[](0), + data: "payload" + }); + + bytes memory encodedMessage = MessageV1Codec._encodeMessageV1(message); + bytes32 messageId = keccak256(encodedMessage); + + bytes[] memory verifierBlobs = new bytes[](2); + verifierBlobs[0] = hex"1234"; + verifierBlobs[1] = hex"5678"; + + CCIPForkAdapterTypes.V2Receipt[] memory receipts = new CCIPForkAdapterTypes.V2Receipt[](2); + receipts[0] = CCIPForkAdapterTypes.V2Receipt({ + issuer: ccv1, destGasLimit: 10_000, destBytesOverhead: 32, feeTokenAmount: 1, extraArgs: hex"" + }); + receipts[1] = CCIPForkAdapterTypes.V2Receipt({ + issuer: ccv2, destGasLimit: 10_000, destBytesOverhead: 32, feeTokenAmount: 1, extraArgs: hex"" + }); + bytes memory eventData = abi.encode(address(0x1), uint256(0), encodedMessage, receipts, verifierBlobs); + + bytes32[] memory topics = new bytes32[](4); + topics[0] = CCIPForkAdapterV2.eventSelector(); + topics[1] = bytes32(uint256(222)); + topics[2] = bytes32(uint256(uint160(makeAddr("sender")))); + topics[3] = messageId; + + CCIPForkAdapterV2.DecodedMessage memory decodedMessage = + CCIPForkAdapterV2.decodeMessage(topics, eventData, IMessageV1Decoder(address(decoder))); + + assertEq(decodedMessage.messageId, messageId); + assertEq(decodedMessage.message.sourceChainSelector, 111); + assertEq(CCIPForkAdapterV2.extractOffRampAddress(decodedMessage), address(offRamp)); + + (address[] memory ccvs, bytes[] memory verifierResults) = + CCIPForkAdapterV2.deriveVerificationInputs(address(offRamp), decodedMessage); + assertEq(ccvs.length, 2); + assertEq(verifierResults.length, 2); + assertEq(verifierResults[0], verifierBlobs[0]); + assertEq(verifierResults[1], verifierBlobs[1]); + + (bool success,) = CCIPForkAdapterV2.execute( + address(offRamp), decodedMessage.message, decodedMessage.messageId, ccvs, verifierResults + ); + assertTrue(success); + + assertEq(offRamp.messageId(), messageId); + assertEq(offRamp.numCCVs(), 2); + assertEq(offRamp.numVerifierResults(), 2); + assertEq(offRamp.offRampAddressFromMessage(), address(offRamp)); + } + + function test_routeV2MessageRetriesWithSyntheticVerifierInputsWhenProofsFail() public { + bytes4 failingVersion = 0x11111111; + MockFailingVerifier failingVerifier = new MockFailingVerifier(); + MockVersionedResolver resolver = new MockVersionedResolver(failingVersion, address(failingVerifier)); + MockV2OffRampWithVerifier offRamp = new MockV2OffRampWithVerifier(address(resolver)); + + MessageV1CodecDecoder decoder = new MessageV1CodecDecoder(); + CCIPLocalSimulatorForkHarness simulator = new CCIPLocalSimulatorForkHarness(); + + MessageV1Codec.MessageV1 memory message = MessageV1Codec.MessageV1({ + sourceChainSelector: 111, + destChainSelector: 222, + messageNumber: 1, + executionGasLimit: 400_000, + ccipReceiveGasLimit: 300_000, + finality: FinalityCodec._encodeBlockDepth(2), + ccvAndExecutorHash: bytes32(0), + onRampAddress: abi.encode(makeAddr("onRamp")), + offRampAddress: abi.encodePacked(address(offRamp)), + sender: abi.encode(makeAddr("sender")), + receiver: abi.encodePacked(makeAddr("receiver")), + destBlob: "", + tokenTransfer: new MessageV1Codec.TokenTransferV1[](0), + data: "payload" + }); + + bytes memory encodedMessage = MessageV1Codec._encodeMessageV1(message); + bytes32 messageId = keccak256(encodedMessage); + + bytes[] memory verifierBlobs = new bytes[](1); + verifierBlobs[0] = abi.encodePacked(failingVersion); + + CCIPForkAdapterTypes.V2Receipt[] memory receipts = new CCIPForkAdapterTypes.V2Receipt[](1); + receipts[0] = CCIPForkAdapterTypes.V2Receipt({ + issuer: address(resolver), destGasLimit: 10_000, destBytesOverhead: 32, feeTokenAmount: 1, extraArgs: hex"" + }); + bytes memory eventData = abi.encode(address(0x1), uint256(0), encodedMessage, receipts, verifierBlobs); + + bytes32[] memory topics = new bytes32[](4); + topics[0] = CCIPForkAdapterV2.eventSelector(); + topics[1] = bytes32(uint256(222)); + topics[2] = bytes32(uint256(uint160(makeAddr("sender")))); + topics[3] = messageId; + + Vm.Log memory entry; + entry.topics = topics; + entry.data = eventData; + entry.emitter = makeAddr("onRampEmitter"); + bool attempted = simulator.routeV2Message(entry); + + assertTrue(attempted); + assertEq(offRamp.successfulExecutions(), 1); + + address syntheticImpl = resolver.getInboundImplementation(hex"464f524b"); + assertTrue(syntheticImpl != address(0)); + + CCIPForkAdapterV2.DecodedMessage memory decodedMessage = + CCIPForkAdapterV2.decodeMessage(topics, eventData, IMessageV1Decoder(address(decoder))); + assertEq(decodedMessage.messageId, messageId); + } + + function test_routeV2MessageQueuesNoExecAndAllowsManualExecution() public { + address[] memory requiredCCVs = new address[](0); + address[] memory optionalCCVs = new address[](0); + MockV2OffRamp offRamp = new MockV2OffRamp(requiredCCVs, optionalCCVs, 0); + CCIPLocalSimulatorForkHarness simulator = new CCIPLocalSimulatorForkHarness(); + + MessageV1Codec.MessageV1 memory message = MessageV1Codec.MessageV1({ + sourceChainSelector: 111, + destChainSelector: 222, + messageNumber: 1, + executionGasLimit: 400_000, + ccipReceiveGasLimit: 300_000, + finality: FinalityCodec._encodeBlockDepth(2), + ccvAndExecutorHash: bytes32(0), + onRampAddress: abi.encode(makeAddr("onRamp")), + offRampAddress: abi.encodePacked(address(offRamp)), + sender: abi.encode(makeAddr("sender")), + receiver: abi.encodePacked(makeAddr("receiver")), + destBlob: "", + tokenTransfer: new MessageV1Codec.TokenTransferV1[](0), + data: "payload" + }); + + bytes memory encodedMessage = MessageV1Codec._encodeMessageV1(message); + bytes32 messageId = keccak256(encodedMessage); + + CCIPForkAdapterTypes.V2Receipt[] memory receipts = new CCIPForkAdapterTypes.V2Receipt[](2); + receipts[0] = CCIPForkAdapterTypes.V2Receipt({ + issuer: Client.NO_EXECUTION_ADDRESS, + destGasLimit: 10_000, + destBytesOverhead: 32, + feeTokenAmount: 0, + extraArgs: hex"" + }); + receipts[1] = CCIPForkAdapterTypes.V2Receipt({ + issuer: makeAddr("router"), destGasLimit: 0, destBytesOverhead: 0, feeTokenAmount: 1, extraArgs: hex"" + }); + bytes memory eventData = abi.encode(address(0x1), uint256(0), encodedMessage, receipts, new bytes[](0)); + + bytes32[] memory topics = new bytes32[](4); + topics[0] = CCIPForkAdapterV2.eventSelector(); + topics[1] = bytes32(uint256(222)); + topics[2] = bytes32(uint256(uint160(makeAddr("sender")))); + topics[3] = messageId; + + Vm.Log memory entry; + entry.topics = topics; + entry.data = eventData; + entry.emitter = makeAddr("onRampEmitter"); + + bool attempted = simulator.routeV2Message(entry); + assertTrue(attempted); + assertEq(offRamp.executionCount(), 0); + + bytes32[] memory pendingMessageIds = simulator.getPendingV2MessageIds(); + assertEq(pendingMessageIds.length, 1); + assertEq(pendingMessageIds[0], messageId); + assertTrue(simulator.isPendingV2Message(messageId)); + + bool manualAttempted = simulator.executePendingV2Message(messageId); + assertTrue(manualAttempted); + assertEq(offRamp.executionCount(), 1); + assertFalse(simulator.isPendingV2Message(messageId)); + } + + function test_v2VerificationModeStrictFailsWhileSyntheticOnlySucceeds() public { + bytes4 failingVersion = 0x11111111; + MockFailingVerifier failingVerifier = new MockFailingVerifier(); + MockVersionedResolver resolver = new MockVersionedResolver(failingVersion, address(failingVerifier)); + MockV2OffRampWithVerifier offRamp = new MockV2OffRampWithVerifier(address(resolver)); + + MessageV1Codec.MessageV1 memory message = MessageV1Codec.MessageV1({ + sourceChainSelector: 111, + destChainSelector: 222, + messageNumber: 1, + executionGasLimit: 400_000, + ccipReceiveGasLimit: 300_000, + finality: FinalityCodec._encodeBlockDepth(2), + ccvAndExecutorHash: bytes32(0), + onRampAddress: abi.encode(makeAddr("onRamp")), + offRampAddress: abi.encodePacked(address(offRamp)), + sender: abi.encode(makeAddr("sender")), + receiver: abi.encodePacked(makeAddr("receiver")), + destBlob: "", + tokenTransfer: new MessageV1Codec.TokenTransferV1[](0), + data: "payload" + }); + + bytes memory encodedMessage = MessageV1Codec._encodeMessageV1(message); + bytes32 messageId = keccak256(encodedMessage); + + bytes[] memory verifierBlobs = new bytes[](1); + verifierBlobs[0] = abi.encodePacked(failingVersion); + + CCIPForkAdapterTypes.V2Receipt[] memory receipts = new CCIPForkAdapterTypes.V2Receipt[](1); + receipts[0] = CCIPForkAdapterTypes.V2Receipt({ + issuer: address(resolver), destGasLimit: 10_000, destBytesOverhead: 32, feeTokenAmount: 1, extraArgs: hex"" + }); + bytes memory eventData = abi.encode(address(0x1), uint256(0), encodedMessage, receipts, verifierBlobs); + + bytes32[] memory topics = new bytes32[](4); + topics[0] = CCIPForkAdapterV2.eventSelector(); + topics[1] = bytes32(uint256(222)); + topics[2] = bytes32(uint256(uint160(makeAddr("sender")))); + topics[3] = messageId; + + Vm.Log memory entry; + entry.topics = topics; + entry.data = eventData; + entry.emitter = makeAddr("onRampEmitter"); + + CCIPLocalSimulatorForkHarness strictSimulator = new CCIPLocalSimulatorForkHarness(); + strictSimulator.setV2VerificationMode(CCIPLocalSimulatorFork.V2VerificationMode.STRICT); + // Strict routing (default): the rejected proofs surface as a revert instead of a silent non-delivery. + vm.expectPartialRevert(CCIPLocalSimulatorFork.CCIPLocalSimulatorFork__MessageExecutionFailed.selector); + strictSimulator.routeV2Message(entry); + assertEq(offRamp.successfulExecutions(), 0); + + // Without strict routing, the failure is recorded instead. + strictSimulator.setStrictRouting(false); + assertTrue(strictSimulator.routeV2Message(entry)); + assertEq(offRamp.successfulExecutions(), 0); + (CCIPLocalSimulatorFork.MessageStatus status,) = strictSimulator.getMessageStatus(topics[3]); + assertEq(uint8(status), uint8(CCIPLocalSimulatorFork.MessageStatus.FAILED)); + + CCIPLocalSimulatorForkHarness syntheticOnlySimulator = new CCIPLocalSimulatorForkHarness(); + syntheticOnlySimulator.setV2VerificationMode(CCIPLocalSimulatorFork.V2VerificationMode.SYNTHETIC_ONLY); + assertTrue(syntheticOnlySimulator.routeV2Message(entry)); + assertEq(offRamp.successfulExecutions(), 1); + } +} diff --git a/test/unit/ccip/CCIPLocalRouterUnit.t.sol b/test/unit/ccip/CCIPLocalRouterUnit.t.sol new file mode 100644 index 0000000..ee6d07f --- /dev/null +++ b/test/unit/ccip/CCIPLocalRouterUnit.t.sol @@ -0,0 +1,419 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.24; + +import {Test} from "forge-std/Test.sol"; +import {CCIPLocalSimulator, IRouterClient, BurnMintERC677Helper} from "../../../src/ccip/CCIPLocalSimulator.sol"; +import {CCIPLocalRouter} from "../../../src/ccip/CCIPLocalRouter.sol"; +import {CCIPReceiver} from "@chainlink/contracts-ccip/contracts/applications/CCIPReceiver.sol"; +import {Client} from "@chainlink/contracts-ccip/contracts/libraries/Client.sol"; +import {CCVConfigValidation} from "@chainlink/contracts-ccip/contracts/libraries/CCVConfigValidation.sol"; +import {ExtraArgsCodec} from "@chainlink/contracts-ccip/contracts/libraries/ExtraArgsCodec.sol"; +import {FinalityCodec} from "@chainlink/contracts-ccip/contracts/libraries/FinalityCodec.sol"; +import {MockCCIPRouter} from "@chainlink/contracts-ccip/contracts/test/mocks/MockRouter.sol"; + +import {BasicMessageReceiver} from "../../../src/test/ccip/BasicMessageReceiver.sol"; +import {BasicMessageReceiverWithCCVs} from "../../../src/test/ccip/BasicMessageReceiverWithCCVs.sol"; +import {ConfigurableCCVMessageReceiver} from "../../../src/test/ccip/ConfigurableCCVMessageReceiver.sol"; + +/// @dev Tiny test-only receiver that reverts if it is ever asked to process the same messageId twice. Used to prove +/// that `ccipSend` produces unique messageIds even for otherwise-identical sends (see `CCIPLocalRouterUnitTest` +/// messageId uniqueness tests below). +contract DedupingReceiver is CCIPReceiver { + mapping(bytes32 => bool) public seen; + uint256 public acceptedCount; + + constructor(address router) CCIPReceiver(router) {} + + function _ccipReceive(Client.Any2EVMMessage memory message) internal override { + require(!seen[message.messageId], "duplicate messageId delivered"); + seen[message.messageId] = true; + acceptedCount++; + } +} + +/// @dev Local mode must apply the CCIP 2.0 OffRamp finality rules, so a test that passes locally does not fail on a +/// fork or in production: an FTF message with data (or a non-zero gas limit) is only delivered to a receiver that +/// allows that finality via `getCCVsAndFinalityConfig`; token-only transfers skip the receiver check. +contract CCIPLocalRouterUnitTest is Test { + CCIPLocalSimulator internal s_simulator; + IRouterClient internal s_router; + uint64 internal s_chainSelector; + BurnMintERC677Helper internal s_ccipBnM; + address internal s_alice = makeAddr("alice"); + + function setUp() public { + s_simulator = new CCIPLocalSimulator(); + (uint64 chainSelector, IRouterClient sourceRouter,,,, BurnMintERC677Helper ccipBnM,) = + s_simulator.configuration(); + s_chainSelector = chainSelector; + s_router = sourceRouter; + s_ccipBnM = ccipBnM; + } + + function _send(address receiver, bytes memory data, Client.EVMTokenAmount[] memory tokens, bytes memory extraArgs) + internal + returns (bytes32) + { + vm.startPrank(s_alice); + bytes32 messageId = s_router.ccipSend( + s_chainSelector, + Client.EVM2AnyMessage({ + receiver: abi.encode(receiver), + data: data, + tokenAmounts: tokens, + extraArgs: extraArgs, + feeToken: address(0) + }) + ); + vm.stopPrank(); + return messageId; + } + + function _ftf(uint32 gasLimit, uint16 blockDepth) internal pure returns (bytes memory) { + return ExtraArgsCodec._getBasicEncodedExtraArgsV3BlockDepth(gasLimit, blockDepth); + } + + function _oneBnM(uint256 amount) internal returns (Client.EVMTokenAmount[] memory tokens) { + s_ccipBnM.drip(s_alice); + vm.prank(s_alice); + s_ccipBnM.approve(address(s_router), amount); + tokens = new Client.EVMTokenAmount[](1); + tokens[0] = Client.EVMTokenAmount({token: address(s_ccipBnM), amount: amount}); + } + + function test_ftfMessage_toReceiverRequiringFinality_reverts() public { + BasicMessageReceiver receiver = new BasicMessageReceiver(address(s_router)); + + vm.expectRevert( + abi.encodeWithSelector( + FinalityCodec.InvalidRequestedFinality.selector, + FinalityCodec._encodeBlockDepth(1), + FinalityCodec.WAIT_FOR_FINALITY_FLAG + ) + ); + _send(address(receiver), "hello", new Client.EVMTokenAmount[](0), _ftf(200_000, 1)); + } + + function test_ftfMessage_toOptedInReceiver_isDelivered() public { + BasicMessageReceiverWithCCVs receiver = new BasicMessageReceiverWithCCVs(address(s_router)); + receiver.setAllowedFinalityConfig(s_chainSelector, FinalityCodec._encodeBlockDepth(1)); + + bytes32 messageId = _send(address(receiver), "hello", new Client.EVMTokenAmount[](0), _ftf(200_000, 5)); + + assertEq(receiver.latestMessageId(), messageId); + assertEq(receiver.latestMessage(), "hello"); + } + + function test_ftfMessage_belowReceiverMinimumDepth_reverts() public { + BasicMessageReceiverWithCCVs receiver = new BasicMessageReceiverWithCCVs(address(s_router)); + receiver.setAllowedFinalityConfig(s_chainSelector, FinalityCodec._encodeBlockDepth(10)); + + vm.expectRevert( + abi.encodeWithSelector( + FinalityCodec.InvalidRequestedFinality.selector, + FinalityCodec._encodeBlockDepth(5), + FinalityCodec._encodeBlockDepth(10) + ) + ); + _send(address(receiver), "hello", new Client.EVMTokenAmount[](0), _ftf(200_000, 5)); + } + + function test_ftfMessage_safeFlag_toReceiverAllowingSafe_isDelivered() public { + BasicMessageReceiverWithCCVs receiver = new BasicMessageReceiverWithCCVs(address(s_router)); + receiver.setAllowedFinalityConfig(s_chainSelector, FinalityCodec.WAIT_FOR_SAFE_FLAG); + + bytes32 messageId = _send( + address(receiver), + "hello", + new Client.EVMTokenAmount[](0), + ExtraArgsCodec._getBasicEncodedExtraArgsV3FastConfirmationRule(200_000) + ); + + assertEq(receiver.latestMessageId(), messageId); + } + + /// @dev Token-only transfers skip the receiver finality check (the pool enforces finality in production). + function test_ftfTokenOnly_toEOA_isDelivered() public { + address bob = makeAddr("bob"); + _send(bob, "", _oneBnM(1 ether), _ftf(0, 1)); + assertEq(s_ccipBnM.balanceOf(bob), 1 ether); + } + + function test_ftfTokenOnly_toContractReceiver_withNoDataAndZeroGas_isDelivered() public { + BasicMessageReceiver receiver = new BasicMessageReceiver(address(s_router)); + _send(address(receiver), "", _oneBnM(1 ether), _ftf(0, 1)); + assertEq(s_ccipBnM.balanceOf(address(receiver)), 1 ether); + } + + function test_ftfProgrammableTokenTransfer_toReceiverRequiringFinality_reverts() public { + BasicMessageReceiver receiver = new BasicMessageReceiver(address(s_router)); + Client.EVMTokenAmount[] memory tokens = _oneBnM(1 ether); + + vm.expectRevert( + abi.encodeWithSelector( + FinalityCodec.InvalidRequestedFinality.selector, + FinalityCodec._encodeBlockDepth(1), + FinalityCodec.WAIT_FOR_FINALITY_FLAG + ) + ); + _send(address(receiver), "hello", tokens, _ftf(200_000, 1)); + } + + function test_waitForFinality_toAnyReceiver_isDelivered() public { + BasicMessageReceiver receiver = new BasicMessageReceiver(address(s_router)); + bytes32 messageId = _send( + address(receiver), + "hello", + new Client.EVMTokenAmount[](0), + ExtraArgsCodec._getBasicEncodedExtraArgsV3(200_000, FinalityCodec.WAIT_FOR_FINALITY_FLAG) + ); + assertEq(receiver.latestMessageId(), messageId); + } + + /// @dev The OnRamp rejects a finality config with more than one mode at send time. + function test_invalidFinalityShape_reverts() public { + BasicMessageReceiverWithCCVs receiver = new BasicMessageReceiverWithCCVs(address(s_router)); + bytes4 twoModes = FinalityCodec._encodeBlockDepthAndSafeFlag(5); + + vm.expectRevert(abi.encodeWithSelector(FinalityCodec.RequestedFinalityCanOnlyHaveOneMode.selector, twoModes)); + _send( + address(receiver), + "hello", + new Client.EVMTokenAmount[](0), + ExtraArgsCodec._getBasicEncodedExtraArgsV3(200_000, twoModes) + ); + } + + /// @dev GenericExtraArgsV2 / EVMExtraArgsV1 carry no finality: behaviour is unchanged. + function test_genericExtraArgsV2_toAnyReceiver_isDelivered() public { + BasicMessageReceiver receiver = new BasicMessageReceiver(address(s_router)); + bytes32 messageId = _send( + address(receiver), + "hello", + new Client.EVMTokenAmount[](0), + Client._argsToBytes(Client.GenericExtraArgsV2({gasLimit: 200_000, allowOutOfOrderExecution: true})) + ); + assertEq(receiver.latestMessageId(), messageId); + } + + /// @dev Existing tests cast the local router to the upstream mock to set fees; keep that ABI. + function test_routerKeepsMockCCIPRouterFeeAbi() public { + MockCCIPRouter(address(s_router)).setFee(123); + assertEq( + s_router.getFee( + s_chainSelector, + Client.EVM2AnyMessage({ + receiver: abi.encode(s_alice), + data: "", + tokenAmounts: new Client.EVMTokenAmount[](0), + extraArgs: "", + feeToken: address(0) + }) + ), + 123 + ); + } + + function _sendAs( + address sender, + uint64 destinationChainSelector, + address receiver, + bytes memory data, + Client.EVMTokenAmount[] memory tokens, + bytes memory extraArgs + ) internal returns (bytes32) { + vm.prank(sender); + return s_router.ccipSend( + destinationChainSelector, + Client.EVM2AnyMessage({ + receiver: abi.encode(receiver), + data: data, + tokenAmounts: tokens, + extraArgs: extraArgs, + feeToken: address(0) + }) + ); + } + + // ================================================================ + // │ Unique messageId per send │ + // ================================================================ + + function test_messageId_sameSenderIdenticalSends_areUnique() public { + BasicMessageReceiver receiver = new BasicMessageReceiver(address(s_router)); + bytes32 firstId = _send(address(receiver), "hello", new Client.EVMTokenAmount[](0), ""); + bytes32 secondId = _send(address(receiver), "hello", new Client.EVMTokenAmount[](0), ""); + assertTrue(firstId != secondId); + } + + function test_messageId_differentSenders_areUnique() public { + BasicMessageReceiver receiver = new BasicMessageReceiver(address(s_router)); + address bob = makeAddr("bob"); + bytes32 aliceId = + _sendAs(s_alice, s_chainSelector, address(receiver), "hello", new Client.EVMTokenAmount[](0), ""); + bytes32 bobId = _sendAs(bob, s_chainSelector, address(receiver), "hello", new Client.EVMTokenAmount[](0), ""); + assertTrue(aliceId != bobId); + } + + function test_messageId_differentDestinationSelectors_areUnique() public { + BasicMessageReceiver receiver = new BasicMessageReceiver(address(s_router)); + bytes32 firstId = + _sendAs(s_alice, s_chainSelector, address(receiver), "hello", new Client.EVMTokenAmount[](0), ""); + bytes32 secondId = + _sendAs(s_alice, s_chainSelector + 1, address(receiver), "hello", new Client.EVMTokenAmount[](0), ""); + assertTrue(firstId != secondId); + } + + /// @dev A receiver that dedupes by messageId must accept two otherwise-identical sends: this fails on the + /// pre-fix `keccak256(abi.encode(message))` scheme because both sends produce the same id. + function test_messageId_dedupingReceiver_acceptsBothSends() public { + DedupingReceiver receiver = new DedupingReceiver(address(s_router)); + _send(address(receiver), "hello", new Client.EVMTokenAmount[](0), ""); + _send(address(receiver), "hello", new Client.EVMTokenAmount[](0), ""); + assertEq(receiver.acceptedCount(), 2); + } + + // ================================================================ + // │ GenericExtraArgsV3.tokenReceiver rejection │ + // ================================================================ + + /// @dev Production OnRamp 2.0 rejects a non-empty `tokenReceiver` on all EVM lanes + /// (`OnRamp._parseExtraArgsWithDefaults`, `DestChainConfig.tokenReceiverAllowed` is always false for EVM). + function test_tokenReceiver_nonEmpty_reverts() public { + BasicMessageReceiver receiver = new BasicMessageReceiver(address(s_router)); + + ExtraArgsCodec.GenericExtraArgsV3 memory args; + args.gasLimit = 200_000; + args.tokenReceiver = abi.encodePacked(makeAddr("tokenReceiver")); + + vm.expectRevert(abi.encodeWithSelector(CCIPLocalRouter.TokenReceiverNotAllowed.selector, s_chainSelector)); + _send( + address(receiver), "hello", new Client.EVMTokenAmount[](0), ExtraArgsCodec._encodeGenericExtraArgsV3(args) + ); + } + + // ================================================================ + // │ Receiver V2 hook mirrored like OffRamp._getCCVsFromReceiver │ + // ================================================================ + + function test_ccvHook_revertingGetter_finalizedMessage_reverts() public { + ConfigurableCCVMessageReceiver receiver = new ConfigurableCCVMessageReceiver(address(s_router)); + bytes memory revertData = abi.encodeWithSignature("Boom()"); + receiver.setRevert(true, revertData); + + vm.expectRevert(revertData); + _send(address(receiver), "hello", new Client.EVMTokenAmount[](0), ""); + } + + function test_ccvHook_revertingGetter_ftfMessage_reverts() public { + ConfigurableCCVMessageReceiver receiver = new ConfigurableCCVMessageReceiver(address(s_router)); + bytes memory revertData = abi.encodeWithSignature("Boom()"); + receiver.setRevert(true, revertData); + + vm.expectRevert(revertData); + _send(address(receiver), "hello", new Client.EVMTokenAmount[](0), _ftf(200_000, 1)); + } + + function test_ccvHook_duplicateRequiredCCVs_reverts() public { + ConfigurableCCVMessageReceiver receiver = new ConfigurableCCVMessageReceiver(address(s_router)); + address ccv = makeAddr("ccv"); + address[] memory duplicateRequired = new address[](2); + duplicateRequired[0] = ccv; + duplicateRequired[1] = ccv; + receiver.setCCVConfig(duplicateRequired, new address[](0), 0, FinalityCodec.WAIT_FOR_FINALITY_FLAG); + + vm.expectRevert(abi.encodeWithSelector(CCVConfigValidation.DuplicateCCVNotAllowed.selector, ccv)); + _send(address(receiver), "hello", new Client.EVMTokenAmount[](0), ""); + } + + function test_ccvHook_duplicateOptionalCCVs_reverts() public { + ConfigurableCCVMessageReceiver receiver = new ConfigurableCCVMessageReceiver(address(s_router)); + address ccv = makeAddr("ccv"); + address[] memory duplicateOptional = new address[](2); + duplicateOptional[0] = ccv; + duplicateOptional[1] = ccv; + receiver.setCCVConfig(new address[](0), duplicateOptional, 1, FinalityCodec.WAIT_FOR_FINALITY_FLAG); + + vm.expectRevert(abi.encodeWithSelector(CCVConfigValidation.DuplicateCCVNotAllowed.selector, ccv)); + _send(address(receiver), "hello", new Client.EVMTokenAmount[](0), ""); + } + + function test_ccvHook_optionalThresholdExceedsOptionalLength_reverts() public { + ConfigurableCCVMessageReceiver receiver = new ConfigurableCCVMessageReceiver(address(s_router)); + address[] memory optionalCCVs = new address[](1); + optionalCCVs[0] = makeAddr("ccv"); + receiver.setCCVConfig(new address[](0), optionalCCVs, 2, FinalityCodec.WAIT_FOR_FINALITY_FLAG); + + vm.expectRevert(abi.encodeWithSelector(CCIPLocalRouter.InvalidOptionalThreshold.selector, 2, 1)); + _send(address(receiver), "hello", new Client.EVMTokenAmount[](0), ""); + } + + /// @dev Finalized messages must still invoke the V2 hook (not only FTF messages): a reverting hook must make a + /// finalized send revert too. + function test_ccvHook_finalizedMessage_stillCallsHook() public { + ConfigurableCCVMessageReceiver receiver = new ConfigurableCCVMessageReceiver(address(s_router)); + receiver.setCCVConfig(new address[](0), new address[](0), 0, FinalityCodec.WAIT_FOR_FINALITY_FLAG); + + // Valid config: the finalized send must succeed and reach the receiver. + bytes32 messageId = _send(address(receiver), "hello", new Client.EVMTokenAmount[](0), ""); + assertEq(receiver.latestMessageId(), messageId); + + // Now make the hook revert: the same finalized send must revert too, proving the hook is actually invoked + // for finalized messages and not skipped as it was before the fix. + bytes memory revertData = abi.encodeWithSignature("Boom()"); + receiver.setRevert(true, revertData); + vm.expectRevert(revertData); + _send(address(receiver), "hello", new Client.EVMTokenAmount[](0), ""); + } + + // ================================================================ + // │ Sends the 2.0 OnRamp rejects │ + // ================================================================ + + function test_moreThanOneToken_reverts() public { + BasicMessageReceiver receiver = new BasicMessageReceiver(address(s_router)); + Client.EVMTokenAmount[] memory tokens = _oneBnM(1 ether); + Client.EVMTokenAmount[] memory twoTokens = new Client.EVMTokenAmount[](2); + twoTokens[0] = tokens[0]; + twoTokens[1] = tokens[0]; + + vm.expectRevert(abi.encodeWithSelector(CCIPLocalRouter.CanOnlySendOneTokenPerMessage.selector)); + _send(address(receiver), "hello", twoTokens, ""); + } + + function test_zeroAmountToken_reverts() public { + BasicMessageReceiver receiver = new BasicMessageReceiver(address(s_router)); + Client.EVMTokenAmount[] memory tokens = _oneBnM(0); + + vm.expectRevert(abi.encodeWithSelector(CCIPLocalRouter.CannotSendZeroTokens.selector)); + _send(address(receiver), "hello", tokens, ""); + } + + /// @dev Production treats extraArgs shorter than 4 bytes as empty (default gas limit and finality), it does not + /// revert `InvalidExtraArgsTag` (see `FeeQuoter._parseUnvalidatedEVMExtraArgsFromBytes`). + function test_shortExtraArgs_treatedAsEmpty() public { + BasicMessageReceiver receiver = new BasicMessageReceiver(address(s_router)); + bytes32 messageId = _send(address(receiver), "hello", new Client.EVMTokenAmount[](0), hex"010203"); + assertEq(receiver.latestMessageId(), messageId); + } + + /// @dev Production (FeeQuoter) compares the full uint256 V1/V2 gas limit against the lane's `maxPerMsgGasLimit` + /// (a uint32) and reverts `MessageGasLimitTooHigh`; it never truncates. Above uint32 every lane cap is exceeded. + function test_legacyGasLimitAboveUint32_reverts() public { + BasicMessageReceiver receiver = new BasicMessageReceiver(address(s_router)); + bytes memory extraArgs = Client._argsToBytes( + Client.GenericExtraArgsV2({gasLimit: uint256(type(uint32).max) + 300_000, allowOutOfOrderExecution: true}) + ); + + vm.expectRevert(bytes4(keccak256("MessageGasLimitTooHigh()"))); + _send(address(receiver), "hello", new Client.EVMTokenAmount[](0), extraArgs); + } + + function test_legacyEvmExtraArgsV1GasLimitAboveUint32_reverts() public { + BasicMessageReceiver receiver = new BasicMessageReceiver(address(s_router)); + bytes memory extraArgs = Client._argsToBytes(Client.EVMExtraArgsV1({gasLimit: uint256(type(uint32).max) + 1})); + + vm.expectRevert(bytes4(keccak256("MessageGasLimitTooHigh()"))); + _send(address(receiver), "hello", new Client.EVMTokenAmount[](0), extraArgs); + } +} diff --git a/test/unit/ccip/CCIPLocalSimulatorForkDeployGas.t.sol b/test/unit/ccip/CCIPLocalSimulatorForkDeployGas.t.sol new file mode 100644 index 0000000..e2e9a19 --- /dev/null +++ b/test/unit/ccip/CCIPLocalSimulatorForkDeployGas.t.sol @@ -0,0 +1,59 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.19; + +import {Test} from "forge-std/Test.sol"; +import {CCIPLocalSimulatorFork} from "../../../src/ccip/CCIPLocalSimulatorFork.sol"; + +/// @dev Deploys the simulator from inside an external call, so the CREATE can be given a hard gas budget. +contract CCIPLocalSimulatorForkDeployer { + function deploy() external returns (address) { + return address(new CCIPLocalSimulatorFork()); + } +} + +/// @dev The documented setup is `vm.createSelectFork(...)` followed by `new CCIPLocalSimulatorFork()`, so the deployment +/// runs under the forked chain's block gas limit. Many chains cap blocks at 30M gas, so the simulator must deploy +/// well below that. +contract CCIPLocalSimulatorForkDeployGasTest is Test { + /// @dev Leaves headroom below 30M-gas-limit chains. + uint256 internal constant DEPLOY_GAS_BUDGET = 24_000_000; + + /// @dev Enforced with a hard gas cap on the CREATE: forge does not meter the gas of a large CREATE reliably through + /// `gasleft()` or `vm.lastCallGas`, but it does enforce a gas cap. + function test_deploy_succeedsWithinBudget() public { + CCIPLocalSimulatorForkDeployer deployer = new CCIPLocalSimulatorForkDeployer(); + address simulator = deployer.deploy{gas: DEPLOY_GAS_BUDGET}(); + assertTrue(simulator.code.length > 0); + } + + /// @dev Reports the actual deployment cost (smallest gas cap that succeeds), for the release notes. + function test_logDeployGas() public { + CCIPLocalSimulatorForkDeployer deployer = new CCIPLocalSimulatorForkDeployer(); + uint256 low = 1_000_000; + uint256 high = 60_000_000; + while (high - low > 50_000) { + uint256 mid = (low + high) / 2; + try deployer.deploy{gas: mid}() { + high = mid; + } catch { + low = mid; + } + } + emit log_named_uint("CCIPLocalSimulatorFork deploy gas (upper bound, +-50k)", high); + } + + /// @dev Same condition as deploying after `createSelectFork` on a chain with a 30M block gas limit. + function test_deploy_succeedsWithin30MGas() public { + CCIPLocalSimulatorForkDeployer deployer = new CCIPLocalSimulatorForkDeployer(); + address simulator = deployer.deploy{gas: 30_000_000}(); + assertTrue(simulator.code.length > 0); + } + + /// @dev Network details must still be available after the size reduction. + function test_networkDetails_availableAfterDeploy() public { + CCIPLocalSimulatorFork simulator = new CCIPLocalSimulatorFork(); + assertEq(simulator.getNetworkDetails(11155111).chainSelector, 16015286601757825753); + assertEq(simulator.getNetworkDetails(11155111).routerAddress, 0x0BF3dE8c5D3e8A2B34D2BEeB17ABfCeBaf363A59); + assertEq(simulator.getNetworkDetails(1).chainSelector, 5009297550715157269); + } +} diff --git a/test/unit/ccip/CCIPLocalSimulatorForkHelper.unit.test.js b/test/unit/ccip/CCIPLocalSimulatorForkHelper.unit.test.js new file mode 100644 index 0000000..f1cad3e --- /dev/null +++ b/test/unit/ccip/CCIPLocalSimulatorForkHelper.unit.test.js @@ -0,0 +1,194 @@ +// Offline unit tests for the JS helper `scripts/CCIPLocalSimulatorFork.js`. No RPC or Hardhat network needed: +// `_selectCCVs` is a pure function, and the hardhat-ethers guard only needs a plain object as `connection`. +// Run with `npm run js-unit-test` (part of `npm test`). +import { describe, it } from "node:test"; +import assert from "node:assert/strict"; +import { ethers } from "ethers"; + +import { + _selectCCVs, + _gasLimitFromExtraArgs, + _decodeEVMAddress, + _stampedOffRamp, + getCCIPMessages, +} from "../../../scripts/CCIPLocalSimulatorFork.js"; + +const connection = { ethers }; + +const A = "0xAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"; +const B = "0xBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"; +const C = "0xCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC"; +const D = "0xDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD"; + +describe("_selectCCVs", () => { + it("required-only: returns every required CCV regardless of threshold", () => { + assert.deepEqual(_selectCCVs([A, B], [], 0), [A, B]); + }); + + it("optional-only, threshold 0: no optional CCVs are added", () => { + assert.deepEqual(_selectCCVs([], [A, B, C], 0), []); + }); + + it("optional-only, threshold 1: the first optional CCV is added", () => { + assert.deepEqual(_selectCCVs([], [A, B, C], 1), [A]); + }); + + it("optional-only, threshold equal to all optionals: every optional CCV is added", () => { + assert.deepEqual(_selectCCVs([], [A, B, C], 3), [A, B, C]); + }); + + it("required + optional, threshold 0: only the required CCVs are returned", () => { + assert.deepEqual(_selectCCVs([A], [B, C], 0), [A]); + }); + + it("required + optional, threshold 1: required CCVs plus one optional CCV", () => { + assert.deepEqual(_selectCCVs([A], [B, C], 1), [A, B]); + }); + + it("required + optional, threshold equal to all optionals: required plus every optional CCV", () => { + assert.deepEqual(_selectCCVs([A], [B, C], 2), [A, B, C]); + }); + + it("overlap: an optional CCV that is also required counts toward the threshold without being re-added", () => { + // required=[A], optional=[A, B], threshold=1 -> A (already required) satisfies the threshold; B is not needed. + assert.deepEqual(_selectCCVs([A], [A, B], 1), [A]); + }); + + it("overlap: once the overlapping CCV satisfies the threshold, later optionals are not pulled in", () => { + assert.deepEqual(_selectCCVs([A, B], [B, C, D], 1), [A, B]); + }); + + it("overlap: threshold higher than what the overlap covers still pulls in the remaining optionals in order", () => { + // required=[A], optional=[A, B, C], threshold=2 -> A covers 1, then B is added to cover the 2nd. + assert.deepEqual(_selectCCVs([A], [A, B, C], 2), [A, B]); + }); + + it("overlap later in the optional list: no unneeded optional CCV is added (matches the Solidity selection)", () => { + // required=[C], optional=[B, C], threshold=1: C is already present and satisfies the threshold, so B is not needed. + assert.deepEqual(_selectCCVs([C], [B, C], 1), [C]); + }); + + it("duplicates in required: deduplicates keeping the first occurrence order", () => { + assert.deepEqual(_selectCCVs([A, B, A], [], 0), [A, B]); + }); + + it("duplicates in required do not throw off optional threshold accounting", () => { + assert.deepEqual(_selectCCVs([A, A, B], [C], 1), [A, B, C]); + }); +}); + +describe("hardhat-ethers guard", () => { + it("getCCIPMessages throws a clear error naming @nomicfoundation/hardhat-ethers when connection.ethers is missing", () => { + assert.throws(() => getCCIPMessages({}, { logs: [] }), (err) => { + assert.match(err.message, /@nomicfoundation\/hardhat-ethers/); + return true; + }); + }); +}); + +describe("_gasLimitFromExtraArgs", () => { + const GENERIC_EXTRA_ARGS_V2_TAG = "0x181dcf10"; + const EVM_EXTRA_ARGS_V1_TAG = "0x97a657c9"; + const DEFAULT_GAS_LIMIT = 200_000n; + const coder = ethers.AbiCoder.defaultAbiCoder(); + + it("empty extraArgs: returns the default gas limit", () => { + assert.equal(_gasLimitFromExtraArgs(connection, "0x"), DEFAULT_GAS_LIMIT); + }); + + it("EVMExtraArgsV1 tag (0x97a657c9): decodes the packed uint256 gas limit", () => { + const body = coder.encode(["uint256"], [123456n]); + const extraArgs = ethers.concat([EVM_EXTRA_ARGS_V1_TAG, body]); + assert.equal(_gasLimitFromExtraArgs(connection, extraArgs), 123456n); + }); + + it("GenericExtraArgsV2 tag (0x181dcf10): decodes gasLimit from the (gasLimit, allowOutOfOrderExecution) tuple", () => { + const body = coder.encode(["tuple(uint256 gasLimit, bool allowOutOfOrderExecution)"], [[654321n, true]]); + const extraArgs = ethers.concat([GENERIC_EXTRA_ARGS_V2_TAG, body]); + assert.equal(_gasLimitFromExtraArgs(connection, extraArgs), 654321n); + }); + + it("unknown 4-byte tag: throws a clear error naming the tag", () => { + const extraArgs = ethers.concat(["0xdeadbeef", coder.encode(["uint256"], [1n])]); + assert.throws(() => _gasLimitFromExtraArgs(connection, extraArgs), /Unsupported 1\.6 extraArgs tag: 0xdeadbeef/); + }); +}); + +describe("_decodeEVMAddress", () => { + const address = "0x1234567890123456789012345678901234567890"; + + it("32-byte ABI-encoded address: decodes to the checksummed address", () => { + const encoded = ethers.AbiCoder.defaultAbiCoder().encode(["address"], [address]); + assert.equal(_decodeEVMAddress(connection, encoded), address); + }); + + it("20-byte raw address: decodes to the checksummed address", () => { + assert.equal(_decodeEVMAddress(connection, address), address); + }); + + it("invalid length (e.g. 19 bytes): throws a clear error", () => { + const tooShort = ethers.dataSlice(address, 0, 19); + assert.throws(() => _decodeEVMAddress(connection, tooShort), /Invalid EVM address encoding/); + }); + + it("invalid length (e.g. empty): throws a clear error", () => { + assert.throws(() => _decodeEVMAddress(connection, "0x"), /Invalid EVM address encoding/); + }); +}); + +describe("_stampedOffRamp", () => { + // Builds a minimal well-formed MessageV1 header (69 bytes) followed by onRampLen/onRamp/offRampLen/offRamp, per + // `MessageV1Codec._encodeMessageV1`'s documented layout — verified against the real codec's output in + // `CCIPLocalSimulatorForkRoutingHelper.unit.test.js`. + function header() { + return ethers.solidityPacked( + ["uint8", "uint64", "uint64", "uint64", "uint32", "uint32", "bytes4", "bytes32"], + [1, 1n, 2n, 3n, 200000, 100000, "0x00000000", ethers.ZeroHash] + ); + } + + it("well-formed 20-byte offRampAddress: returns the checksummed address", () => { + const onRamp = ethers.AbiCoder.defaultAbiCoder().encode(["address"], ["0x1111111111111111111111111111111111111111"]); + const offRamp = "0x2222222222222222222222222222222222222222"; + const encoded = ethers.solidityPacked( + ["bytes", "uint8", "bytes", "uint8", "bytes"], + [header(), 32, onRamp, 20, offRamp] + ); + assert.equal(_stampedOffRamp(connection, encoded), ethers.getAddress(offRamp)); + }); + + it("offRampAddress of a non-20-byte length (e.g. a non-EVM chain): returns null", () => { + const onRamp = ethers.AbiCoder.defaultAbiCoder().encode(["address"], ["0x1111111111111111111111111111111111111111"]); + const offRamp = "0x22222222"; // 4 bytes + const encoded = ethers.solidityPacked( + ["bytes", "uint8", "bytes", "uint8", "bytes"], + [header(), 32, onRamp, 4, offRamp] + ); + assert.equal(_stampedOffRamp(connection, encoded), null); + }); + + it("message shorter than the fixed 69-byte header: returns null", () => { + assert.equal(_stampedOffRamp(connection, ethers.dataSlice(header(), 0, 40)), null); + }); + + it("onRampLen makes the offRampLen byte fall outside the buffer: returns null (bounds-checked)", () => { + // onRampLen claims 200 bytes, but there is nothing after the header: reading the offRampLen byte would + // overrun the buffer. + const encoded = ethers.solidityPacked(["bytes", "uint8"], [header(), 200]); + assert.equal(_stampedOffRamp(connection, encoded), null); + }); + + it("offRampLen makes the address content fall outside the buffer: returns null (bounds-checked)", () => { + const onRamp = ethers.AbiCoder.defaultAbiCoder().encode(["address"], ["0x1111111111111111111111111111111111111111"]); + // offRampLen claims 20 bytes, but only 5 are actually present. + const encoded = ethers.solidityPacked( + ["bytes", "uint8", "bytes", "uint8", "bytes"], + [header(), 32, onRamp, 20, "0x1122334455"] + ); + assert.equal(_stampedOffRamp(connection, encoded), null); + }); + + it("malformed / garbage bytes: returns null instead of throwing", () => { + assert.equal(_stampedOffRamp(connection, "0x"), null); + }); +}); diff --git a/test/unit/ccip/CCIPLocalSimulatorForkLogDecoding.unit.test.js b/test/unit/ccip/CCIPLocalSimulatorForkLogDecoding.unit.test.js new file mode 100644 index 0000000..241ad2b --- /dev/null +++ b/test/unit/ccip/CCIPLocalSimulatorForkLogDecoding.unit.test.js @@ -0,0 +1,334 @@ +// Fully offline (no RPC, no Hardhat network) tests for `getCCIPMessages`'s log decoding, covering all three CCIP +// eras. Fixture logs are built from ABIs fetched INDEPENDENTLY of the helper's own ABI strings, so a bug that +// mirrors a wrong assumption in both places would still be caught: +// - pre-1.6 `CCIPSendRequested` and 1.6 `CCIPMessageSent`: `git show v0.2.9:abi/EVM2EVMOnRamp.json` and +// `v0.2.9:abi/OnRamp.json` (the 0.2.x npm package shipped these ABIs), saved as +// `test/unit/ccip/fixtures/EVM2EVMOnRampPreV1dot6.abi.json` / `OnRampV1dot6.abi.json`. +// - 2.0 `CCIPMessageSent`: `forge inspect lib/chainlink-ccip/.../OnRamp.sol:OnRamp abi` (tag contracts-ccip-v2.0.0), +// saved as `OnRampV2.abi.json`. Its `encodedMessage` bytes are hand-encoded here per the documented MessageV1 +// wire format layout in `lib/chainlink-ccip/chains/evm/contracts/libraries/MessageV1Codec.sol` +// (`_encodeMessageV1`), independently cross-checked in `CCIPLocalSimulatorForkRoutingHelper.unit.test.js` against +// the codec's own `_encodeMessageV1` running on-chain (`MessageV1CodecTestHelper`). +// Run with `npm run js-unit-test` (part of `npm test`). +import { describe, it } from "node:test"; +import assert from "node:assert/strict"; +import { readFileSync } from "node:fs"; +import { fileURLToPath } from "node:url"; +import path from "node:path"; +import { ethers } from "ethers"; + +import { getCCIPMessages } from "../../../scripts/CCIPLocalSimulatorFork.js"; + +const __dirname = path.dirname(fileURLToPath(import.meta.url)); +const loadAbi = (name) => JSON.parse(readFileSync(path.join(__dirname, "fixtures", name), "utf8")); + +const preV1dot6Abi = loadAbi("EVM2EVMOnRampPreV1dot6.abi.json"); +const v1dot6Abi = loadAbi("OnRampV1dot6.abi.json"); +const v2Abi = loadAbi("OnRampV2.abi.json"); + +const connection = { ethers }; + +/** Builds a fake `receipt.log` entry from an ABI's event and args, as `ethers.Interface.encodeEventLog` would emit it. */ +function buildLog(abi, eventName, args, emitterAddress) { + const iface = new ethers.Interface(abi); + const fragment = iface.getEvent(eventName); + const { data, topics } = iface.encodeEventLog(fragment, args); + return { address: emitterAddress, topics, data }; +} + +/** A log from an unrelated contract/event, which `getCCIPMessages` must ignore. */ +function foreignLog() { + const iface = new ethers.Interface(["event Transfer(address indexed from, address indexed to, uint256 value)"]); + const { data, topics } = iface.encodeEventLog(iface.getEvent("Transfer"), [ + "0x1000000000000000000000000000000000000001", + "0x2000000000000000000000000000000000000002", + 123n, + ]); + return { address: "0x9000000000000000000000000000000000000009", topics, data }; +} + +/** + * Hand-encodes a MessageV1 wire-format message, per `MessageV1Codec._encodeMessageV1`'s documented layout + * (`lib/chainlink-ccip/chains/evm/contracts/libraries/MessageV1Codec.sol`). No token transfer, for brevity. + */ +function encodeMessageV1({ + sourceChainSelector, + destChainSelector, + messageNumber, + executionGasLimit, + ccipReceiveGasLimit, + finality, + ccvAndExecutorHash, + onRampAddress, + offRampAddress, + sender, + receiver, + destBlob, + data, +}) { + return ethers.solidityPacked( + [ + "uint8", + "uint64", + "uint64", + "uint64", + "uint32", + "uint32", + "bytes4", + "bytes32", + "uint8", + "bytes", + "uint8", + "bytes", + "uint8", + "bytes", + "uint8", + "bytes", + "uint16", + "bytes", + "uint16", + "bytes", + "uint16", + "bytes", + ], + [ + 1, + sourceChainSelector, + destChainSelector, + messageNumber, + executionGasLimit, + ccipReceiveGasLimit, + finality, + ccvAndExecutorHash, + ethers.getBytes(onRampAddress).length, + onRampAddress, + ethers.getBytes(offRampAddress).length, + offRampAddress, + ethers.getBytes(sender).length, + sender, + ethers.getBytes(receiver).length, + receiver, + ethers.getBytes(destBlob).length, + destBlob, + 0, + "0x", + ethers.getBytes(data).length, + data, + ] + ); +} + +describe("getCCIPMessages: pre-1.6 (CCIPSendRequested)", () => { + it("decodes era, onRamp, messageId, sourceChainSelector and the full EVM2EVMMessage payload", () => { + const onRamp = "0x1111111111111111111111111111111111111111"; + const message = { + sourceChainSelector: 16015286601757825753n, + sender: "0x2222222222222222222222222222222222222222", + receiver: "0x3333333333333333333333333333333333333333", + sequenceNumber: 5n, + gasLimit: 200000n, + strict: false, + nonce: 1n, + feeToken: "0x4444444444444444444444444444444444444444", + feeTokenAmount: 1000n, + data: "0xdeadbeef", + tokenAmounts: [["0x5555555555555555555555555555555555555555", 42n]], + sourceTokenData: ["0x01", "0x02"], + messageId: ethers.id("pre-1.6-message"), + }; + const log = buildLog(preV1dot6Abi, "CCIPSendRequested", [message], onRamp); + + const [sent] = getCCIPMessages(connection, { logs: [foreignLog(), log] }); + + assert.equal(sent.era, "PRE_V1_6"); + assert.equal(sent.onRamp, onRamp); + assert.equal(sent.messageId, message.messageId); + assert.equal(sent.sourceChainSelector, message.sourceChainSelector); + assert.equal(sent.destChainSelector, undefined); + assert.equal(sent.message.sender, message.sender); + assert.equal(sent.message.receiver, message.receiver); + assert.equal(sent.message.data, message.data); + assert.deepEqual(sent.message.tokenAmounts, [{ token: message.tokenAmounts[0][0], amount: 42n }]); + assert.deepEqual(sent.message.sourceTokenData, ["0x01", "0x02"]); + }); +}); + +describe("getCCIPMessages: 1.6 (CCIPMessageSent)", () => { + it("decodes era, onRamp, messageId, source/destChainSelector and the full EVM2AnyRampMessage payload", () => { + const onRamp = "0x6666666666666666666666666666666666666666"; + const header = { + messageId: ethers.id("v1.6-message"), + sourceChainSelector: 16015286601757825753n, + destChainSelector: 3478487238524512106n, + sequenceNumber: 9n, + nonce: 2n, + }; + const message = { + header, + sender: "0x7777777777777777777777777777777777777777", + data: "0xcafe", + receiver: "0x88888888888888888888888888888888888888888888888888888888888888", + extraArgs: "0x97a657c9", + feeToken: "0x9999999999999999999999999999999999999999", + feeTokenAmount: 500n, + feeValueJuels: 600n, + tokenAmounts: [ + ["0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "0xbbbb", "0x", 1n, "0x0000007b"], + ], + }; + const log = buildLog(v1dot6Abi, "CCIPMessageSent", [header.destChainSelector, header.sequenceNumber, message], onRamp); + + const [sent] = getCCIPMessages(connection, { logs: [log] }); + + assert.equal(sent.era, "V1_6"); + assert.equal(sent.onRamp, onRamp); + assert.equal(sent.messageId, header.messageId); + assert.equal(sent.sourceChainSelector, header.sourceChainSelector); + assert.equal(sent.destChainSelector, header.destChainSelector); + assert.deepEqual(sent.message.header, { + messageId: header.messageId, + sourceChainSelector: header.sourceChainSelector, + destChainSelector: header.destChainSelector, + sequenceNumber: header.sequenceNumber, + nonce: header.nonce, + }); + assert.equal(sent.message.sender, message.sender); + assert.equal(sent.message.extraArgs, message.extraArgs); + assert.deepEqual(sent.message.tokenAmounts, [ + { + sourcePoolAddress: ethers.getAddress(message.tokenAmounts[0][0]), + destTokenAddress: message.tokenAmounts[0][1], + extraData: message.tokenAmounts[0][2], + amount: message.tokenAmounts[0][3], + destExecData: message.tokenAmounts[0][4], + }, + ]); + }); +}); + +describe("getCCIPMessages: CCIP 2.0 (CCIPMessageSent, MessageV1)", () => { + it("decodes era, onRamp, messageId and source/destChainSelector from the encodedMessage wire format", () => { + const onRamp = "0xcccccccccccccccccccccccccccccccccccccccc"; + const sourceChainSelector = 16015286601757825753n; + const destChainSelector = 3478487238524512106n; + const encodedMessage = encodeMessageV1({ + sourceChainSelector, + destChainSelector, + messageNumber: 3n, + executionGasLimit: 200000, + ccipReceiveGasLimit: 100000, + finality: "0x00000000", + ccvAndExecutorHash: ethers.ZeroHash, + onRampAddress: ethers.AbiCoder.defaultAbiCoder().encode(["address"], [onRamp]), + offRampAddress: "0xdddddddddddddddddddddddddddddddddddddddd", + sender: ethers.AbiCoder.defaultAbiCoder().encode(["address"], ["0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee"]), + receiver: "0xffffffffffffffffffffffffffffffffffffffff", + destBlob: "0x", + data: "0xf00d", + }); + const messageId = ethers.keccak256(encodedMessage); + const receipts = [ + { + issuer: "0x1234567890123456789012345678901234567890", + destGasLimit: 200000, + destBytesOverhead: 0, + feeTokenAmount: 10n, + extraArgs: "0x", + }, + ]; + const log = buildLog( + v2Abi, + "CCIPMessageSent", + [ + destChainSelector, + "0x1111111111111111111111111111111111111111", + messageId, + "0x2222222222222222222222222222222222222222", + 777n, + encodedMessage, + receipts, + [], + ], + onRamp + ); + + const [sent] = getCCIPMessages(connection, { logs: [log] }); + + assert.equal(sent.era, "V2"); + assert.equal(sent.onRamp, onRamp); + assert.equal(sent.messageId, messageId); + assert.equal(sent.sourceChainSelector, sourceChainSelector); + assert.equal(sent.destChainSelector, destChainSelector); + assert.equal(sent.message.encodedMessage, encodedMessage); + assert.deepEqual(sent.message.receipts, [ + { + issuer: receipts[0].issuer, + destGasLimit: BigInt(receipts[0].destGasLimit), + destBytesOverhead: BigInt(receipts[0].destBytesOverhead), + feeTokenAmount: receipts[0].feeTokenAmount, + extraArgs: receipts[0].extraArgs, + }, + ]); + }); +}); + +describe("getCCIPMessages: multi-message / mixed-era receipts", () => { + it("returns every recognised message, in log order, ignoring logs from other contracts and unrelated events", () => { + const preOnRamp = "0x1010101010101010101010101010101010101010"; + const v6OnRamp = "0x2020202020202020202020202020202020202020"; + + const preMessage = { + sourceChainSelector: 1n, + sender: "0x000000000000000000000000000000000000000a", + receiver: "0x000000000000000000000000000000000000000b", + sequenceNumber: 1n, + gasLimit: 1n, + strict: false, + nonce: 1n, + feeToken: "0x000000000000000000000000000000000000000c", + feeTokenAmount: 1n, + data: "0x", + tokenAmounts: [], + sourceTokenData: [], + messageId: ethers.id("multi-pre"), + }; + const header = { + messageId: ethers.id("multi-v1.6"), + sourceChainSelector: 2n, + destChainSelector: 3n, + sequenceNumber: 1n, + nonce: 1n, + }; + const v6Message = { + header, + sender: "0x000000000000000000000000000000000000000d", + data: "0x", + receiver: "0x000000000000000000000000000000000000000e", + extraArgs: "0x", + feeToken: "0x000000000000000000000000000000000000000f", + feeTokenAmount: 0n, + feeValueJuels: 0n, + tokenAmounts: [], + }; + + const logs = [ + foreignLog(), + buildLog(preV1dot6Abi, "CCIPSendRequested", [preMessage], preOnRamp), + foreignLog(), + buildLog(v1dot6Abi, "CCIPMessageSent", [header.destChainSelector, header.sequenceNumber, v6Message], v6OnRamp), + ]; + + const sent = getCCIPMessages(connection, { logs }); + + assert.equal(sent.length, 2); + assert.equal(sent[0].era, "PRE_V1_6"); + assert.equal(sent[0].messageId, preMessage.messageId); + assert.equal(sent[1].era, "V1_6"); + assert.equal(sent[1].messageId, header.messageId); + }); + + it("returns an empty array when a receipt has no CCIP logs", () => { + assert.deepEqual(getCCIPMessages(connection, { logs: [foreignLog()] }), []); + assert.deepEqual(getCCIPMessages(connection, { logs: [] }), []); + }); +}); diff --git a/test/unit/ccip/CCIPLocalSimulatorForkRouting.t.sol b/test/unit/ccip/CCIPLocalSimulatorForkRouting.t.sol index 698a345..77b9ab1 100644 --- a/test/unit/ccip/CCIPLocalSimulatorForkRouting.t.sol +++ b/test/unit/ccip/CCIPLocalSimulatorForkRouting.t.sol @@ -2,33 +2,36 @@ pragma solidity ^0.8.19; import {Test} from "forge-std/Test.sol"; -import {Internal} from "@chainlink/contracts-ccip/contracts/libraries/Internal.sol"; import { CCIPLocalSimulatorFork, - IRouterFork, IOffRampSourceConfigFork, + IOffRampSourceConfigV2Fork, IEVM2EVMOffRampStaticConfigFork } from "../../../src/ccip/CCIPLocalSimulatorFork.sol"; +import {CCIPForkAdapterTypes} from "../../../src/ccip/adapters/CCIPForkAdapterTypes.sol"; +import {CCIPForkAdapterV1dot6} from "../../../src/ccip/adapters/CCIPForkAdapterV1dot6.sol"; /// @dev Exposes internal OffRamp resolution for unit testing. contract CCIPLocalSimulatorForkHarness is CCIPLocalSimulatorFork { function exposedDecodeReceiver(bytes memory encoded) external pure returns (address) { - return _decodeEVMAddress(encoded); + return CCIPForkAdapterV1dot6._decodeEVMAddress(encoded); } - function exposedExecutePostV1dot6(address offRamp, Internal.EVM2AnyRampMessage memory message) + function exposedExecuteV1dot6(address offRamp, CCIPForkAdapterTypes.V1dot6EVM2AnyRampMessage memory message) external - returns (bool) + returns (bool success) { - return _executePostV1dot6(offRamp, message); + vm.startPrank(offRamp); + (success,) = CCIPForkAdapterV1dot6.execute(message, offRamp); + vm.stopPrank(); } function exposedFindOffRamp( - IRouterFork.OffRamp[] calldata offRamps, + CCIPForkAdapterTypes.RouterOffRamp[] calldata offRamps, uint64 sourceChainSelector, address sourceOnRamp ) external view returns (address) { - IRouterFork.OffRamp[] memory ramps = new IRouterFork.OffRamp[](offRamps.length); + CCIPForkAdapterTypes.RouterOffRamp[] memory ramps = new CCIPForkAdapterTypes.RouterOffRamp[](offRamps.length); for (uint256 i; i < offRamps.length; ++i) { ramps[i] = offRamps[i]; } @@ -91,12 +94,9 @@ contract MockOffRampPre16 { contract MockOffRampV16WrongThenPre16 is MockOffRampPre16 { address internal immutable i_wrongOnRamp; - constructor( - uint64 chainSelector_, - uint64 sourceChainSelector_, - address correctOnRamp_, - address wrongOnRamp_ - ) MockOffRampPre16(chainSelector_, sourceChainSelector_, correctOnRamp_) { + constructor(uint64 chainSelector_, uint64 sourceChainSelector_, address correctOnRamp_, address wrongOnRamp_) + MockOffRampPre16(chainSelector_, sourceChainSelector_, correctOnRamp_) + { i_wrongOnRamp = wrongOnRamp_; } @@ -121,10 +121,178 @@ contract MockOffRampForeign {} contract MockOffRampRecorder { bytes public recordedSender; - function executeSingleMessage(Internal.Any2EVMRampMessage memory message, bytes[] calldata, uint32[] calldata) + function executeSingleMessage( + CCIPForkAdapterTypes.V1dot6Any2EVMRampMessage memory message, + bytes[] calldata, + uint32[] calldata + ) external { + recordedSender = message.sender; + } +} + +/// @dev Shape of `getStaticConfig()` on the real 1.6 and 2.0 OffRamps: 5 static words, versus 7 on pre-1.6 +/// `EVM2EVMOffRamp`. Same selector, so decoding it as the pre-1.6 struct must not revert the lookup. +struct FiveWordStaticConfig { + uint64 localChainSelector; + uint16 gasForCallExactCheck; + address rmnRemote; + address tokenAdminRegistry; + uint32 maxGasBufferToUpdateState; +} + +/// @dev Faithful OffRamp 2.0.0 view surface: `getSourceChainConfig` has the 1.6 selector but the 2.0 struct. +contract MockOffRampV2Real { + uint64 internal immutable i_sourceChainSelector; + bool internal immutable i_enabled; + bytes[] internal s_onRamps; + + constructor(uint64 sourceChainSelector_, address[] memory onRamps_, bool enabled_) { + i_sourceChainSelector = sourceChainSelector_; + i_enabled = enabled_; + for (uint256 i; i < onRamps_.length; ++i) { + s_onRamps.push(abi.encode(onRamps_[i])); + } + } + + function typeAndVersion() external pure returns (string memory) { + return "OffRamp 2.0.0"; + } + + function getSourceChainConfig(uint64 sourceChainSelector) external + view + returns (IOffRampSourceConfigV2Fork.SourceChainConfig memory cfg) { - recordedSender = message.sender; + if (sourceChainSelector != i_sourceChainSelector) return cfg; + cfg.router = address(0xBEEF); + cfg.isEnabled = i_enabled; + cfg.onRamps = s_onRamps; + cfg.defaultCCVs = new address[](1); + cfg.defaultCCVs[0] = address(0xCC5); + cfg.laneMandatedCCVs = new address[](0); + } + + function getStaticConfig() external pure returns (FiveWordStaticConfig memory c) { + c.localChainSelector = 1; + } +} + +/// @dev 2.0 OffRamp without `typeAndVersion`, so the lookup has to probe shapes. +contract MockOffRampV2NoTypeAndVersion { + uint64 internal immutable i_sourceChainSelector; + address internal immutable i_onRamp; + + constructor(uint64 sourceChainSelector_, address onRamp_) { + i_sourceChainSelector = sourceChainSelector_; + i_onRamp = onRamp_; + } + + function getSourceChainConfig(uint64 sourceChainSelector) + external + view + returns (IOffRampSourceConfigV2Fork.SourceChainConfig memory cfg) + { + if (sourceChainSelector != i_sourceChainSelector) return cfg; + cfg.router = address(0xBEEF); + cfg.isEnabled = true; + cfg.onRamps = new bytes[](1); + cfg.onRamps[0] = abi.encode(i_onRamp); + cfg.defaultCCVs = new address[](1); + cfg.defaultCCVs[0] = address(0xCC5); + } + + function getStaticConfig() external pure returns (FiveWordStaticConfig memory c) { + c.localChainSelector = 1; + } +} + +/// @dev 2.0 OffRamp whose lane lists a raw 32-byte OnRamp word that is not an EVM address (e.g. a non-EVM source). +contract MockOffRampV2RawOnRamps { + uint64 internal immutable i_sourceChainSelector; + bytes[] internal s_onRamps; + + constructor(uint64 sourceChainSelector_, bytes[] memory onRamps_) { + i_sourceChainSelector = sourceChainSelector_; + for (uint256 i; i < onRamps_.length; ++i) { + s_onRamps.push(onRamps_[i]); + } + } + + function typeAndVersion() external pure returns (string memory) { + return "OffRamp 2.0.0"; + } + + function getSourceChainConfig(uint64 sourceChainSelector) + external + view + returns (IOffRampSourceConfigV2Fork.SourceChainConfig memory cfg) + { + if (sourceChainSelector != i_sourceChainSelector) return cfg; + cfg.isEnabled = true; + cfg.onRamps = s_onRamps; + } +} + +/// @dev Faithful OffRamp 1.6.x view surface, including the 5-word `getStaticConfig`. +contract MockOffRampV16Real { + uint64 internal immutable i_sourceChainSelector; + address internal immutable i_onRamp; + + constructor(uint64 sourceChainSelector_, address onRamp_) { + i_sourceChainSelector = sourceChainSelector_; + i_onRamp = onRamp_; + } + + function typeAndVersion() external pure returns (string memory) { + return "OffRamp 1.6.0"; + } + + function getSourceChainConfig(uint64 sourceChainSelector) + external + view + returns (IOffRampSourceConfigFork.SourceChainConfig memory cfg) + { + if (sourceChainSelector != i_sourceChainSelector) return cfg; + cfg.router = address(0xBEEF); + cfg.isEnabled = true; + cfg.minSeqNr = 1; + cfg.onRamp = abi.encode(i_onRamp); + } + + function getStaticConfig() external pure returns (FiveWordStaticConfig memory c) { + c.localChainSelector = 1; + } +} + +/// @dev Pre-1.6 EVM2EVMOffRamp with its real `typeAndVersion`. +contract MockOffRampPre16Real is MockOffRampPre16 { + constructor(uint64 chainSelector_, uint64 sourceChainSelector_, address onRamp_) + MockOffRampPre16(chainSelector_, sourceChainSelector_, onRamp_) + {} + + function typeAndVersion() external pure returns (string memory) { + return "EVM2EVMOffRamp 1.5.0"; + } +} + +/// @dev Answers every call (including `typeAndVersion`) with 3 junk bytes: an OffRamp of unknown shape. +contract MockOffRampGarbage { + fallback() external { + assembly { + mstore(0, 0x0102030000000000000000000000000000000000000000000000000000000000) + return(0, 3) + } + } +} + +/// @dev Future OffRamp version whose config getter has a shape this simulator does not know. +contract MockOffRampUnknownVersion { + function typeAndVersion() external pure returns (string memory) { + return "OffRamp 9.0.0"; + } + + function getSourceChainConfig(uint64) external pure returns (uint256, uint256) { + return (1, 2); } } @@ -150,12 +318,12 @@ contract CCIPLocalSimulatorForkRoutingTest is Test { /// @dev v1.6 lanes with an EVM source chain deliver `sender` as a 32-byte ABI word, so receivers can /// `abi.decode(message.sender, (address))` and compare against `abi.encode(trustedRemote)`. - function test_executePostV1dot6_encodesSenderAsAbiWord() public { + function test_executeV1dot6_encodesSenderAsAbiWord() public { MockOffRampRecorder offRamp = new MockOffRampRecorder(); address sender = address(0x1234567890123456789012345678901234567890); - Internal.EVM2AnyRampMessage memory message = Internal.EVM2AnyRampMessage({ - header: Internal.RampMessageHeader({ + CCIPForkAdapterTypes.V1dot6EVM2AnyRampMessage memory message = CCIPForkAdapterTypes.V1dot6EVM2AnyRampMessage({ + header: CCIPForkAdapterTypes.V1dot6RampMessageHeader({ messageId: keccak256("messageId"), sourceChainSelector: SOURCE_SELECTOR, destChainSelector: DEST_CHAIN_SELECTOR, @@ -169,10 +337,10 @@ contract CCIPLocalSimulatorForkRoutingTest is Test { feeToken: address(0), feeTokenAmount: 0, feeValueJuels: 0, - tokenAmounts: new Internal.EVM2AnyTokenTransfer[](0) + tokenAmounts: new CCIPForkAdapterTypes.V1dot6EVM2AnyTokenTransfer[](0) }); - assertTrue(harness.exposedExecutePostV1dot6(address(offRamp), message)); + assertTrue(harness.exposedExecuteV1dot6(address(offRamp), message)); bytes memory recordedSender = offRamp.recordedSender(); assertEq(recordedSender.length, 32); @@ -190,10 +358,10 @@ contract CCIPLocalSimulatorForkRoutingTest is Test { address bad = address(new MockOffRampV16(routerAddr, SOURCE_SELECTOR, address(0xBAD), true)); address foreign = address(new MockOffRampForeign()); - IRouterFork.OffRamp[] memory ramps = new IRouterFork.OffRamp[](3); - ramps[0] = IRouterFork.OffRamp({sourceChainSelector: SOURCE_SELECTOR, offRamp: good}); - ramps[1] = IRouterFork.OffRamp({sourceChainSelector: SOURCE_SELECTOR, offRamp: bad}); - ramps[2] = IRouterFork.OffRamp({sourceChainSelector: SOURCE_SELECTOR, offRamp: foreign}); + CCIPForkAdapterTypes.RouterOffRamp[] memory ramps = new CCIPForkAdapterTypes.RouterOffRamp[](3); + ramps[0] = CCIPForkAdapterTypes.RouterOffRamp({sourceChainSelector: SOURCE_SELECTOR, offRamp: good}); + ramps[1] = CCIPForkAdapterTypes.RouterOffRamp({sourceChainSelector: SOURCE_SELECTOR, offRamp: bad}); + ramps[2] = CCIPForkAdapterTypes.RouterOffRamp({sourceChainSelector: SOURCE_SELECTOR, offRamp: foreign}); assertEq(harness.exposedFindOffRamp(ramps, SOURCE_SELECTOR, sourceOnRamp), good); } @@ -202,8 +370,8 @@ contract CCIPLocalSimulatorForkRoutingTest is Test { address sourceOnRamp = address(0xB0B); address pre = address(new MockOffRampPre16(DEST_CHAIN_SELECTOR, SOURCE_SELECTOR, sourceOnRamp)); - IRouterFork.OffRamp[] memory ramps = new IRouterFork.OffRamp[](1); - ramps[0] = IRouterFork.OffRamp({sourceChainSelector: SOURCE_SELECTOR, offRamp: pre}); + CCIPForkAdapterTypes.RouterOffRamp[] memory ramps = new CCIPForkAdapterTypes.RouterOffRamp[](1); + ramps[0] = CCIPForkAdapterTypes.RouterOffRamp({sourceChainSelector: SOURCE_SELECTOR, offRamp: pre}); assertEq(harness.exposedFindOffRamp(ramps, SOURCE_SELECTOR, sourceOnRamp), pre); } @@ -212,8 +380,8 @@ contract CCIPLocalSimulatorForkRoutingTest is Test { address sourceOnRamp = address(0xC0C0); address wrong = address(new MockOffRampV16(address(0x1), SOURCE_SELECTOR, address(0xDEAD), true)); - IRouterFork.OffRamp[] memory ramps = new IRouterFork.OffRamp[](1); - ramps[0] = IRouterFork.OffRamp({sourceChainSelector: SOURCE_SELECTOR, offRamp: wrong}); + CCIPForkAdapterTypes.RouterOffRamp[] memory ramps = new CCIPForkAdapterTypes.RouterOffRamp[](1); + ramps[0] = CCIPForkAdapterTypes.RouterOffRamp({sourceChainSelector: SOURCE_SELECTOR, offRamp: wrong}); assertEq(harness.exposedFindOffRamp(ramps, SOURCE_SELECTOR, sourceOnRamp), address(0)); } @@ -221,10 +389,11 @@ contract CCIPLocalSimulatorForkRoutingTest is Test { function test_findOffRamp_fallsBackToStaticWhenV16OnRampWrong() public { address sourceOnRamp = address(0xD00D); address wrongOnRamp = address(0xBAD1); - address combo = address(new MockOffRampV16WrongThenPre16(DEST_CHAIN_SELECTOR, SOURCE_SELECTOR, sourceOnRamp, wrongOnRamp)); + address combo = + address(new MockOffRampV16WrongThenPre16(DEST_CHAIN_SELECTOR, SOURCE_SELECTOR, sourceOnRamp, wrongOnRamp)); - IRouterFork.OffRamp[] memory ramps = new IRouterFork.OffRamp[](1); - ramps[0] = IRouterFork.OffRamp({sourceChainSelector: SOURCE_SELECTOR, offRamp: combo}); + CCIPForkAdapterTypes.RouterOffRamp[] memory ramps = new CCIPForkAdapterTypes.RouterOffRamp[](1); + ramps[0] = CCIPForkAdapterTypes.RouterOffRamp({sourceChainSelector: SOURCE_SELECTOR, offRamp: combo}); assertEq(harness.exposedFindOffRamp(ramps, SOURCE_SELECTOR, sourceOnRamp), combo); } @@ -235,10 +404,125 @@ contract CCIPLocalSimulatorForkRoutingTest is Test { address disabled = address(new MockOffRampV16(routerAddr, SOURCE_SELECTOR, sourceOnRamp, false)); address enabled = address(new MockOffRampV16(routerAddr, SOURCE_SELECTOR, sourceOnRamp, true)); - IRouterFork.OffRamp[] memory ramps = new IRouterFork.OffRamp[](2); - ramps[0] = IRouterFork.OffRamp({sourceChainSelector: SOURCE_SELECTOR, offRamp: disabled}); - ramps[1] = IRouterFork.OffRamp({sourceChainSelector: SOURCE_SELECTOR, offRamp: enabled}); + CCIPForkAdapterTypes.RouterOffRamp[] memory ramps = new CCIPForkAdapterTypes.RouterOffRamp[](2); + ramps[0] = CCIPForkAdapterTypes.RouterOffRamp({sourceChainSelector: SOURCE_SELECTOR, offRamp: disabled}); + ramps[1] = CCIPForkAdapterTypes.RouterOffRamp({sourceChainSelector: SOURCE_SELECTOR, offRamp: enabled}); assertEq(harness.exposedFindOffRamp(ramps, SOURCE_SELECTOR, sourceOnRamp), enabled); } + + function _ramps(address[] memory offRamps) + internal + pure + returns (CCIPForkAdapterTypes.RouterOffRamp[] memory ramps) + { + ramps = new CCIPForkAdapterTypes.RouterOffRamp[](offRamps.length); + for (uint256 i; i < offRamps.length; ++i) { + ramps[i] = CCIPForkAdapterTypes.RouterOffRamp({sourceChainSelector: SOURCE_SELECTOR, offRamp: offRamps[i]}); + } + } + + function _one(address a) internal pure returns (address[] memory arr) { + arr = new address[](1); + arr[0] = a; + } + + /// @dev Mixed-era migration: 1.6 and 2.0 OffRamps registered for the same source selector. Both lanes must be + /// resolvable, in both router orders, without the 2.0 `SourceChainConfig` payload reverting the 1.6 decode. + function test_findOffRamp_mixedEra_resolvesBothLanesInAnyOrder() public { + address onRampV16 = address(0x1616); + address onRampV2 = address(0x2020); + address v16 = address(new MockOffRampV16Real(SOURCE_SELECTOR, onRampV16)); + address v2 = address(new MockOffRampV2Real(SOURCE_SELECTOR, _one(onRampV2), true)); + + address[] memory order = new address[](2); + order[0] = v16; + order[1] = v2; + assertEq(harness.exposedFindOffRamp(_ramps(order), SOURCE_SELECTOR, onRampV16), v16); + assertEq(harness.exposedFindOffRamp(_ramps(order), SOURCE_SELECTOR, onRampV2), v2); + + order[0] = v2; + order[1] = v16; + assertEq(harness.exposedFindOffRamp(_ramps(order), SOURCE_SELECTOR, onRampV16), v16); + assertEq(harness.exposedFindOffRamp(_ramps(order), SOURCE_SELECTOR, onRampV2), v2); + } + + function test_findOffRamp_v2Only_matchesAnyEntryOfOnRampsArray() public { + address[] memory onRamps = new address[](2); + onRamps[0] = address(0xAAAA); + onRamps[1] = address(0xBBBB); + address v2 = address(new MockOffRampV2Real(SOURCE_SELECTOR, onRamps, true)); + + assertEq(harness.exposedFindOffRamp(_ramps(_one(v2)), SOURCE_SELECTOR, address(0xBBBB)), v2); + assertEq(harness.exposedFindOffRamp(_ramps(_one(v2)), SOURCE_SELECTOR, address(0xCCCC)), address(0)); + } + + function test_findOffRamp_v2_ignoresDisabledLane() public { + address onRamp = address(0x2021); + address disabled = address(new MockOffRampV2Real(SOURCE_SELECTOR, _one(onRamp), false)); + + assertEq(harness.exposedFindOffRamp(_ramps(_one(disabled)), SOURCE_SELECTOR, onRamp), address(0)); + } + + /// @dev Two real-shaped 1.6 OffRamps: the non-matching one is probed first (router list is walked newest first) + /// and its 5-word `getStaticConfig` must not be decoded as the 7-word pre-1.6 struct. + function test_findOffRamp_twoV16_nonMatchingFirst_doesNotRevert() public { + address onRamp = address(0x1617); + address good = address(new MockOffRampV16Real(SOURCE_SELECTOR, onRamp)); + address other = address(new MockOffRampV16Real(SOURCE_SELECTOR, address(0xDEAD))); + + address[] memory order = new address[](2); + order[0] = good; + order[1] = other; + assertEq(harness.exposedFindOffRamp(_ramps(order), SOURCE_SELECTOR, onRamp), good); + } + + function test_findOffRamp_preV16WithTypeAndVersion() public { + address onRamp = address(0x1515); + address pre = address(new MockOffRampPre16Real(DEST_CHAIN_SELECTOR, SOURCE_SELECTOR, onRamp)); + address v2 = address(new MockOffRampV2Real(SOURCE_SELECTOR, _one(address(0x2022)), true)); + + address[] memory order = new address[](2); + order[0] = pre; + order[1] = v2; + assertEq(harness.exposedFindOffRamp(_ramps(order), SOURCE_SELECTOR, onRamp), pre); + } + + /// @dev Unknown shapes (junk return data, or an unrecognised `typeAndVersion`) are skipped, never reverted on. + function test_findOffRamp_unknownShape_isSkipped() public { + address onRamp = address(0x2023); + address v2 = address(new MockOffRampV2Real(SOURCE_SELECTOR, _one(onRamp), true)); + + address[] memory order = new address[](3); + order[0] = v2; + order[1] = address(new MockOffRampGarbage()); + order[2] = address(new MockOffRampUnknownVersion()); + assertEq(harness.exposedFindOffRamp(_ramps(order), SOURCE_SELECTOR, onRamp), v2); + assertEq(harness.exposedFindOffRamp(_ramps(order), SOURCE_SELECTOR, address(0x9999)), address(0)); + } + + function test_findOffRamp_v2WithoutTypeAndVersion_resolvedByShapeProbe() public { + address onRamp = address(0x2024); + address v2 = address(new MockOffRampV2NoTypeAndVersion(SOURCE_SELECTOR, onRamp)); + address v16 = address(new MockOffRampV16(address(0xBEEF), SOURCE_SELECTOR, address(0x1618), true)); + + address[] memory order = new address[](2); + order[0] = v2; + order[1] = v16; + assertEq(harness.exposedFindOffRamp(_ramps(order), SOURCE_SELECTOR, onRamp), v2); + assertEq(harness.exposedFindOffRamp(_ramps(order), SOURCE_SELECTOR, address(0x1618)), v16); + assertEq(harness.exposedFindOffRamp(_ramps(order), SOURCE_SELECTOR, address(0)), address(0)); + } + + /// @dev A 32-byte OnRamp word with high bits set is not an address: it must be skipped, not revert `abi.decode`. + function test_findOffRamp_nonAddressOnRampWord_isSkipped() public { + address onRamp = address(0x2025); + bytes[] memory onRamps = new bytes[](2); + onRamps[0] = abi.encode(type(uint256).max); + onRamps[1] = abi.encode(onRamp); + address v2 = address(new MockOffRampV2RawOnRamps(SOURCE_SELECTOR, onRamps)); + + assertEq(harness.exposedFindOffRamp(_ramps(_one(v2)), SOURCE_SELECTOR, onRamp), v2); + assertEq(harness.exposedFindOffRamp(_ramps(_one(v2)), SOURCE_SELECTOR, address(0x9999)), address(0)); + } } diff --git a/test/unit/ccip/CCIPLocalSimulatorForkRoutingHelper.unit.test.js b/test/unit/ccip/CCIPLocalSimulatorForkRoutingHelper.unit.test.js new file mode 100644 index 0000000..5a6267f --- /dev/null +++ b/test/unit/ccip/CCIPLocalSimulatorForkRoutingHelper.unit.test.js @@ -0,0 +1,531 @@ +// Local-EDR-network tests (no forking, no RPC) for the OffRamp lookup and execution paths of the JavaScript helper +// `scripts/CCIPLocalSimulatorFork.js`. Uses the mocks in `src/test/ccip/JsHelperOffRampMocks.sol` and the real +// pinned `MessageV1Codec` (via `src/test/ccip/MessageV1CodecTestHelper.sol`) to build a genuine CCIP 2.0 wire-format +// `encodedMessage`. Run with `npm run js-unit-test` (part of `npm test`). +import { describe, it, before } from "node:test"; +import assert from "node:assert/strict"; +import { network } from "hardhat"; + +import { routeMessage, _stampedOffRamp } from "../../../scripts/CCIPLocalSimulatorFork.js"; + +const SOURCE_SELECTOR = 16015286601757825753n; +const DEST_SELECTOR = 3478487238524512106n; +const NO_EXECUTION_ADDRESS = "0xeba517d200000000000000000000000000000000"; + +describe("routeMessage (local EDR network, mocked OffRamps)", () => { + let connection, ethers, codecHelper; + + before(async () => { + connection = await network.connect(); + ethers = connection.ethers; + const factory = await ethers.getContractFactory( + "src/test/ccip/MessageV1CodecTestHelper.sol:MessageV1CodecTestHelper" + ); + codecHelper = await factory.deploy(); + await codecHelper.waitForDeployment(); + }); + + async function deployRouter() { + const factory = await ethers.getContractFactory("src/test/ccip/JsHelperOffRampMocks.sol:JsMockRouter"); + const router = await factory.deploy(); + await router.waitForDeployment(); + return router; + } + + async function deployPreV1dot6(typeAndVersion, chainSelector, sourceChainSelector, onRamp) { + const factory = await ethers.getContractFactory( + "src/test/ccip/JsHelperOffRampMocks.sol:JsMockPreV1dot6OffRamp" + ); + const c = await factory.deploy(typeAndVersion, chainSelector, sourceChainSelector, onRamp); + await c.waitForDeployment(); + return c; + } + + async function deployV1dot6(sourceChainSelector, onRamp, localChainSelector) { + const factory = await ethers.getContractFactory("src/test/ccip/JsHelperOffRampMocks.sol:JsMockV1dot6OffRamp"); + const c = await factory.deploy(sourceChainSelector, onRamp, localChainSelector); + await c.waitForDeployment(); + return c; + } + + async function deployV2(sourceChainSelector, onRamps) { + const factory = await ethers.getContractFactory("src/test/ccip/JsHelperOffRampMocks.sol:JsMockV2OffRamp"); + const c = await factory.deploy(sourceChainSelector, onRamps); + await c.waitForDeployment(); + return c; + } + + async function deployUnknown() { + const factory = await ethers.getContractFactory("src/test/ccip/JsHelperOffRampMocks.sol:JsMockUnknownOffRamp"); + const c = await factory.deploy(); + await c.waitForDeployment(); + return c; + } + + function abiEncodeAddress(addr) { + return ethers.AbiCoder.defaultAbiCoder().encode(["address"], [addr]); + } + + async function encodeV2Message({ + sourceChainSelector = SOURCE_SELECTOR, + destChainSelector = DEST_SELECTOR, + messageNumber = 1n, + onRampAddress, + offRampAddress, + sender = "0x3333333333333333333333333333333333333333", + receiver = "0x4444444444444444444444444444444444444444", + data = "0x", + }) { + const message = { + sourceChainSelector, + destChainSelector, + messageNumber, + executionGasLimit: 200_000, + ccipReceiveGasLimit: 100_000, + finality: "0x00000000", + ccvAndExecutorHash: ethers.ZeroHash, + onRampAddress: abiEncodeAddress(onRampAddress), + offRampAddress, + sender: abiEncodeAddress(sender), + receiver, + destBlob: "0x", + tokenTransfer: [], + data, + }; + return codecHelper.encodeMessageV1(message); + } + + describe("pre-1.6 lanes", () => { + it("1.5.x OffRamp: uses the 3-argument executeSingleMessage overload and passes a zero gas override per token", async () => { + const router = await deployRouter(); + const onRamp = "0x1111111111111111111111111111111111111111"; + const offRamp = await deployPreV1dot6("EVM2EVMOffRamp 1.5.0", DEST_SELECTOR, SOURCE_SELECTOR, onRamp); + await router.addOffRamp(SOURCE_SELECTOR, await offRamp.getAddress()); + + const sent = { + era: "PRE_V1_6", + onRamp, + sourceChainSelector: SOURCE_SELECTOR, + message: { + sourceChainSelector: SOURCE_SELECTOR, + sender: onRamp, + receiver: "0x5555555555555555555555555555555555555555", + sequenceNumber: 1, + gasLimit: 200_000n, + strict: false, + nonce: 1, + feeToken: ethers.ZeroAddress, + feeTokenAmount: 0, + data: "0x", + tokenAmounts: [{ token: "0x6666666666666666666666666666666666666666", amount: 1n }], + sourceTokenData: ["0x"], + messageId: ethers.id("message-1"), + }, + }; + + const result = await routeMessage(connection, await router.getAddress(), sent); + assert.equal(result.executed, true); + assert.equal(await offRamp.callsWithOverridesCount(), 1n); + assert.equal(await offRamp.callsWithoutOverridesCount(), 0n); + const overrides = await offRamp.lastTokenGasOverrides(); + assert.deepEqual(overrides.map(Number), [0]); + }); + + it("1.2.x OffRamp: uses the 2-argument executeSingleMessage overload (no per-token gas override param)", async () => { + const router = await deployRouter(); + const onRamp = "0x1111111111111111111111111111111111111111"; + const offRamp = await deployPreV1dot6("EVM2EVMOffRamp 1.2.0", DEST_SELECTOR, SOURCE_SELECTOR, onRamp); + await router.addOffRamp(SOURCE_SELECTOR, await offRamp.getAddress()); + + const sent = { + era: "PRE_V1_6", + onRamp, + sourceChainSelector: SOURCE_SELECTOR, + message: { + sourceChainSelector: SOURCE_SELECTOR, + sender: onRamp, + receiver: "0x5555555555555555555555555555555555555555", + sequenceNumber: 1, + gasLimit: 200_000n, + strict: false, + nonce: 1, + feeToken: ethers.ZeroAddress, + feeTokenAmount: 0, + data: "0x", + tokenAmounts: [], + sourceTokenData: [], + messageId: ethers.id("message-2"), + }, + }; + + await routeMessage(connection, await router.getAddress(), sent); + assert.equal(await offRamp.callsWithoutOverridesCount(), 1n); + assert.equal(await offRamp.callsWithOverridesCount(), 0n); + }); + + it("decodes a known revert reason from executeSingleMessage and keeps the original error as `cause`", async () => { + const router = await deployRouter(); + const onRamp = "0x1111111111111111111111111111111111111111"; + const offRamp = await deployPreV1dot6("EVM2EVMOffRamp 1.5.0", DEST_SELECTOR, SOURCE_SELECTOR, onRamp); + // `TokenHandlingError(bytes)` — pre-1.6 `EVM2EVMOffRamp` signature (`git show v0.2.9:abi/EVM2EVMOffRamp.json`). + const errIface = new ethers.Interface(["error TokenHandlingError(bytes err)"]); + const revertData = errIface.encodeErrorResult("TokenHandlingError", ["0xdead"]); + await offRamp.setRevertData(revertData); + await router.addOffRamp(SOURCE_SELECTOR, await offRamp.getAddress()); + + const sent = { + era: "PRE_V1_6", + onRamp, + sourceChainSelector: SOURCE_SELECTOR, + message: { + sourceChainSelector: SOURCE_SELECTOR, + sender: onRamp, + receiver: "0x5555555555555555555555555555555555555555", + sequenceNumber: 1, + gasLimit: 200_000n, + strict: false, + nonce: 1, + feeToken: ethers.ZeroAddress, + feeTokenAmount: 0, + data: "0x", + tokenAmounts: [], + sourceTokenData: [], + messageId: ethers.id("message-3"), + }, + }; + + await assert.rejects(routeMessage(connection, await router.getAddress(), sent), (err) => { + assert.match(err.message, /TokenHandlingError\(0xdead\)/); + assert.ok(err.cause, "original error should be preserved as `cause`"); + return true; + }); + }); + }); + + describe("1.6 lanes", () => { + it("executes when the connected OffRamp's static chain selector matches the message's destChainSelector, with zero token gas overrides", async () => { + const router = await deployRouter(); + const onRamp = "0x2222222222222222222222222222222222222222"; + const offRamp = await deployV1dot6(SOURCE_SELECTOR, onRamp, DEST_SELECTOR); + await router.addOffRamp(SOURCE_SELECTOR, await offRamp.getAddress()); + + const sent = { + era: "V1_6", + onRamp, + sourceChainSelector: SOURCE_SELECTOR, + destChainSelector: DEST_SELECTOR, + message: { + header: { + messageId: ethers.id("message-4"), + sourceChainSelector: SOURCE_SELECTOR, + destChainSelector: DEST_SELECTOR, + sequenceNumber: 1, + nonce: 1, + }, + sender: "0x7777777777777777777777777777777777777777", + data: "0x", + receiver: "0x5555555555555555555555555555555555555555", + extraArgs: "0x", + feeToken: ethers.ZeroAddress, + feeTokenAmount: 0, + feeValueJuels: 0, + tokenAmounts: [ + { + sourcePoolAddress: "0x8888888888888888888888888888888888888888", + destTokenAddress: "0x9999999999999999999999999999999999999999", + extraData: "0x", + amount: 1n, + destExecData: ethers.AbiCoder.defaultAbiCoder().encode(["uint32"], [123]), + }, + ], + }, + }; + + const result = await routeMessage(connection, await router.getAddress(), sent); + assert.equal(result.executed, true); + assert.equal(await offRamp.callCount(), 1n); + const overrides = await offRamp.lastTokenGasOverrides(); + assert.deepEqual(overrides.map(Number), [0]); + // Sender must be delivered as a 32-byte ABI word (see the existing Solidity-side assertion in + // `CCIPLocalSimulatorForkRouting.t.sol`'s `test_executeV1dot6_encodesSenderAsAbiWord`). + assert.equal(ethers.getBytes(await offRamp.lastSender()).length, 32); + }); + + it("throws a clear error when the connected OffRamp's chain selector does not match destChainSelector", async () => { + const router = await deployRouter(); + const onRamp = "0x2222222222222222222222222222222222222222"; + // OffRamp reports it is on chain selector DEST_SELECTOR + 1n, but the message targets DEST_SELECTOR. + const offRamp = await deployV1dot6(SOURCE_SELECTOR, onRamp, DEST_SELECTOR + 1n); + await router.addOffRamp(SOURCE_SELECTOR, await offRamp.getAddress()); + + const sent = { + era: "V1_6", + onRamp, + sourceChainSelector: SOURCE_SELECTOR, + destChainSelector: DEST_SELECTOR, + message: { + header: { + messageId: ethers.id("message-5"), + sourceChainSelector: SOURCE_SELECTOR, + destChainSelector: DEST_SELECTOR, + sequenceNumber: 1, + nonce: 1, + }, + sender: "0x7777777777777777777777777777777777777777", + data: "0x", + receiver: "0x5555555555555555555555555555555555555555", + extraArgs: "0x", + feeToken: ethers.ZeroAddress, + feeTokenAmount: 0, + feeValueJuels: 0, + tokenAmounts: [], + }, + }; + + await assert.rejects(routeMessage(connection, await router.getAddress(), sent), (err) => { + assert.match(err.message, /destination chain selector/i); + return true; + }); + assert.equal(await offRamp.callCount(), 0n); + }); + }); + + describe("CCIP 2.0 lanes", () => { + it("executes successfully and reports `executed: true` on SUCCESS", async () => { + const router = await deployRouter(); + const onRamp = "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; + const offRamp = await deployV2(SOURCE_SELECTOR, [onRamp]); + const offRampAddress = await offRamp.getAddress(); + await router.addOffRamp(SOURCE_SELECTOR, offRampAddress); + + const encodedMessage = await encodeV2Message({ onRampAddress: onRamp, offRampAddress }); + const sent = { + era: "V2", + onRamp, + sourceChainSelector: SOURCE_SELECTOR, + message: { encodedMessage, receipts: [] }, + }; + + const result = await routeMessage(connection, await router.getAddress(), sent); + assert.equal(result.executed, true); + assert.equal(result.offRamp, offRampAddress); + assert.equal(await offRamp.executeCalled(), true); + }); + + it("points a resolver CCV at the synthetic verifier and passes the \"FORK\" verifier result", async () => { + const router = await deployRouter(); + const onRamp = "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; + const offRamp = await deployV2(SOURCE_SELECTOR, [onRamp]); + const offRampAddress = await offRamp.getAddress(); + await router.addOffRamp(SOURCE_SELECTOR, offRampAddress); + + const resolverOwner = "0x0000000000000000000000000000000000000a11"; + const resolverFactory = await ethers.getContractFactory( + "src/test/ccip/JsHelperOffRampMocks.sol:JsMockVersionedResolver" + ); + const resolver = await resolverFactory.deploy(resolverOwner); + await resolver.waitForDeployment(); + const plainCCV = "0x0000000000000000000000000000000000000cc5"; + await offRamp.setCCVsForMessage([await resolver.getAddress(), plainCCV], [], 0); + + const encodedMessage = await encodeV2Message({ onRampAddress: onRamp, offRampAddress }); + const sent = { era: "V2", onRamp, sourceChainSelector: SOURCE_SELECTOR, message: { encodedMessage, receipts: [] } }; + + await routeMessage(connection, await router.getAddress(), sent); + assert.deepEqual([...(await offRamp.lastVerifierResults())], ["0x464f524b", "0x"]); + assert.notEqual(await resolver.inboundImplementation("0x464f524b"), ethers.ZeroAddress); + }); + + it("throws a decoded error when the OffRamp records FAILURE", async () => { + const router = await deployRouter(); + const onRamp = "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; + const offRamp = await deployV2(SOURCE_SELECTOR, [onRamp]); + const offRampAddress = await offRamp.getAddress(); + await router.addOffRamp(SOURCE_SELECTOR, offRampAddress); + // `NotEnoughGasForCall()` — CCIP 2.0 OffRamp (`lib/chainlink-ccip` OffRamp.sol, tag contracts-ccip-v2.0.0). + const errIface = new ethers.Interface(["error NotEnoughGasForCall()"]); + const returnData = errIface.encodeErrorResult("NotEnoughGasForCall", []); + await offRamp.setExecutionResult(1, returnData); // 1 = FAILURE + + const encodedMessage = await encodeV2Message({ onRampAddress: onRamp, offRampAddress }); + const sent = { + era: "V2", + onRamp, + sourceChainSelector: SOURCE_SELECTOR, + message: { encodedMessage, receipts: [] }, + }; + + await assert.rejects(routeMessage(connection, await router.getAddress(), sent), (err) => { + assert.match(err.message, /NotEnoughGasForCall\(\)/); + return true; + }); + }); + + it("decodes a revert of the outer `execute` call itself (not just a recorded FAILURE state)", async () => { + const router = await deployRouter(); + const onRamp = "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; + const offRamp = await deployV2(SOURCE_SELECTOR, [onRamp]); + const offRampAddress = await offRamp.getAddress(); + await router.addOffRamp(SOURCE_SELECTOR, offRampAddress); + // `InvalidMessageDestChainSelector(uint64)` — CCIP 2.0 OffRamp (`lib/chainlink-ccip` OffRamp.sol, tag + // contracts-ccip-v2.0.0); the same signature the 1.6.0 OffRamp uses (verified via the gobindings-embedded + // source, see the ABI comment in `scripts/CCIPLocalSimulatorFork.js`). + const errIface = new ethers.Interface(["error InvalidMessageDestChainSelector(uint64 messageDestChainSelector)"]); + const revertData = errIface.encodeErrorResult("InvalidMessageDestChainSelector", [DEST_SELECTOR]); + await offRamp.setExecuteReverts(revertData); + + const encodedMessage = await encodeV2Message({ onRampAddress: onRamp, offRampAddress }); + const sent = { era: "V2", onRamp, sourceChainSelector: SOURCE_SELECTOR, message: { encodedMessage, receipts: [] } }; + + await assert.rejects(routeMessage(connection, await router.getAddress(), sent), (err) => { + assert.match(err.message, /InvalidMessageDestChainSelector/); + assert.ok(err.cause); + return true; + }); + }); + + it("decodes a getCCVsForMessage revert (e.g. finality rejection) with a clear error", async () => { + const router = await deployRouter(); + const onRamp = "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; + const offRamp = await deployV2(SOURCE_SELECTOR, [onRamp]); + const offRampAddress = await offRamp.getAddress(); + await router.addOffRamp(SOURCE_SELECTOR, offRampAddress); + const errIface = new ethers.Interface([ + "error InvalidRequestedFinality(bytes4 requestedFinality, bytes4 allowedFinality)", + ]); + const returnData = errIface.encodeErrorResult("InvalidRequestedFinality", ["0x00000001", "0x00000000"]); + await offRamp.setGetCCVsReverts(returnData); + + const encodedMessage = await encodeV2Message({ onRampAddress: onRamp, offRampAddress }); + const sent = { + era: "V2", + onRamp, + sourceChainSelector: SOURCE_SELECTOR, + message: { encodedMessage, receipts: [] }, + }; + + await assert.rejects(routeMessage(connection, await router.getAddress(), sent), (err) => { + assert.match(err.message, /InvalidRequestedFinality/); + return true; + }); + }); + + it("queues a NO_EXECUTION_ADDRESS message instead of executing, unless forceExecution is set", async () => { + const router = await deployRouter(); + const onRamp = "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; + const offRamp = await deployV2(SOURCE_SELECTOR, [onRamp]); + const offRampAddress = await offRamp.getAddress(); + await router.addOffRamp(SOURCE_SELECTOR, offRampAddress); + + const encodedMessage = await encodeV2Message({ onRampAddress: onRamp, offRampAddress }); + // `routeMessage` treats `receipts[receipts.length - 2].issuer` as the executor slot: put the + // NO_EXECUTION marker there (second-to-last), with a distinct final entry after it. + const receipts = [ + { issuer: NO_EXECUTION_ADDRESS, destGasLimit: 0, destBytesOverhead: 0, feeTokenAmount: 0, extraArgs: "0x" }, + { issuer: "0xbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", destGasLimit: 0, destBytesOverhead: 0, feeTokenAmount: 0, extraArgs: "0x" }, + ]; + const sent = { era: "V2", onRamp, sourceChainSelector: SOURCE_SELECTOR, message: { encodedMessage, receipts } }; + + const queued = await routeMessage(connection, await router.getAddress(), sent); + assert.equal(queued.executed, false); + assert.equal(queued.reason, "NO_EXECUTION_ADDRESS"); + assert.equal(await offRamp.executeCalled(), false); + + const forced = await routeMessage(connection, await router.getAddress(), sent, { forceExecution: true }); + assert.equal(forced.executed, true); + assert.equal(await offRamp.executeCalled(), true); + }); + + it("prefers the OffRamp stamped in encodedMessage over the generic reverse-order lookup", async () => { + const router = await deployRouter(); + const onRamp = "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; + // Two 2.0 OffRamps both serve `onRamp` for the same source selector (a migration in progress). The + // generic lookup walks the router's list newest-first, so it would pick `newerOffRamp`. The message is + // stamped for `olderOffRamp`, and that is the one that must execute. + const olderOffRamp = await deployV2(SOURCE_SELECTOR, [onRamp]); + const newerOffRamp = await deployV2(SOURCE_SELECTOR, [onRamp]); + const olderAddress = await olderOffRamp.getAddress(); + const newerAddress = await newerOffRamp.getAddress(); + await router.addOffRamp(SOURCE_SELECTOR, olderAddress); + await router.addOffRamp(SOURCE_SELECTOR, newerAddress); + + const encodedMessage = await encodeV2Message({ onRampAddress: onRamp, offRampAddress: olderAddress }); + assert.equal(_stampedOffRamp(connection, encodedMessage), ethers.getAddress(olderAddress)); + + const sent = { era: "V2", onRamp, sourceChainSelector: SOURCE_SELECTOR, message: { encodedMessage, receipts: [] } }; + const result = await routeMessage(connection, await router.getAddress(), sent); + + assert.equal(result.offRamp, olderAddress); + assert.equal(await olderOffRamp.executeCalled(), true); + assert.equal(await newerOffRamp.executeCalled(), false); + }); + }); + + describe("OffRamp lookup", () => { + it("skips an OffRamp of unknown typeAndVersion and still resolves the correct mixed-era lane", async () => { + const router = await deployRouter(); + const preOnRamp = "0x1111111111111111111111111111111111111111"; + const preOffRamp = await deployPreV1dot6("EVM2EVMOffRamp 1.5.0", DEST_SELECTOR, SOURCE_SELECTOR, preOnRamp); + const v6OnRamp = "0x2222222222222222222222222222222222222222"; + const v6OffRamp = await deployV1dot6(SOURCE_SELECTOR, v6OnRamp, DEST_SELECTOR); + const v2OnRamp = "0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; + const v2OffRamp = await deployV2(SOURCE_SELECTOR, [v2OnRamp]); + const unknown = await deployUnknown(); + + await router.addOffRamp(SOURCE_SELECTOR, await preOffRamp.getAddress()); + await router.addOffRamp(SOURCE_SELECTOR, await unknown.getAddress()); + await router.addOffRamp(SOURCE_SELECTOR, await v6OffRamp.getAddress()); + await router.addOffRamp(SOURCE_SELECTOR, await v2OffRamp.getAddress()); + const routerAddress = await router.getAddress(); + + // pre-1.6 lane still resolves. + await routeMessage(connection, routerAddress, { + era: "PRE_V1_6", + onRamp: preOnRamp, + sourceChainSelector: SOURCE_SELECTOR, + message: { + sourceChainSelector: SOURCE_SELECTOR, + sender: preOnRamp, + receiver: "0x5555555555555555555555555555555555555555", + sequenceNumber: 1, + gasLimit: 200_000n, + strict: false, + nonce: 1, + feeToken: ethers.ZeroAddress, + feeTokenAmount: 0, + data: "0x", + tokenAmounts: [], + sourceTokenData: [], + messageId: ethers.id("message-6"), + }, + }); + assert.equal(await preOffRamp.callsWithOverridesCount(), 1n); + + // 1.6 lane still resolves. + await routeMessage(connection, routerAddress, { + era: "V1_6", + onRamp: v6OnRamp, + sourceChainSelector: SOURCE_SELECTOR, + destChainSelector: DEST_SELECTOR, + message: { + header: { + messageId: ethers.id("message-7"), + sourceChainSelector: SOURCE_SELECTOR, + destChainSelector: DEST_SELECTOR, + sequenceNumber: 1, + nonce: 1, + }, + sender: "0x7777777777777777777777777777777777777777", + data: "0x", + receiver: "0x5555555555555555555555555555555555555555", + extraArgs: "0x", + feeToken: ethers.ZeroAddress, + feeTokenAmount: 0, + feeValueJuels: 0, + tokenAmounts: [], + }, + }); + assert.equal(await v6OffRamp.callCount(), 1n); + }); + }); +}); diff --git a/test/unit/ccip/CCIPLocalSimulatorForkV2Routing.t.sol b/test/unit/ccip/CCIPLocalSimulatorForkV2Routing.t.sol new file mode 100644 index 0000000..75295a6 --- /dev/null +++ b/test/unit/ccip/CCIPLocalSimulatorForkV2Routing.t.sol @@ -0,0 +1,711 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.19; + +import {Test, Vm} from "forge-std/Test.sol"; +import {Client} from "@chainlink/contracts-ccip/contracts/libraries/Client.sol"; +import {CCIPLocalSimulatorFork, IOffRampSourceConfigV2Fork} from "../../../src/ccip/CCIPLocalSimulatorFork.sol"; +import {Register} from "../../../src/ccip/Register.sol"; +import {CCIPForkAdapterTypes} from "../../../src/ccip/adapters/CCIPForkAdapterTypes.sol"; +import {CCIPForkAdapterV2} from "../../../src/ccip/adapters/CCIPForkAdapterV2.sol"; +import {MessageV1Codec} from "@chainlink/contracts-ccip/contracts/libraries/MessageV1Codec.sol"; + +/// @dev Exposes the CCIP 2.0 routing entrypoint and processed-message state for unit testing. +contract CCIPLocalSimulatorForkV2Harness is CCIPLocalSimulatorFork { + function exposedRouteV2(Vm.Log memory entry, uint64 sourceChainSelector) external returns (bool) { + return _routeV2Message(entry, sourceChainSelector, false); + } + + function exposedFindSourceOnRamp(uint64 destChainSelector, address emitter) external view returns (address) { + return _findSourceOnRamp(destChainSelector, emitter); + } + + function exposedFindOffRampOnCurrentFork(uint64 sourceChainSelector, address sourceOnRamp) + external + view + returns (address) + { + return _findOffRampOnCurrentFork(sourceChainSelector, sourceOnRamp); + } + + function exposedSetLaneDefaultCCVs(address offRamp, uint64 sourceChainSelector, address ccv) external { + _setLaneDefaultCCVs(offRamp, sourceChainSelector, ccv); + } + + function exposedLogDestination(Vm.Log memory entry) external pure returns (bool hasDestination, uint64 selector) { + return _logDestinationChainSelector(entry, _detectEraFromLog(entry)); + } + + function exposedStampedV2OffRamp(bytes memory encodedMessage) external pure returns (address) { + return _stampedV2OffRamp(encodedMessage); + } + + function isProcessed(bytes32 messageId) external view returns (bool) { + return s_processedMessages[messageId]; + } +} + +contract MockRouterV2 { + CCIPForkAdapterTypes.RouterOffRamp[] internal s_offRamps; + mapping(uint64 destChainSelector => address onRamp) internal s_onRamps; + + function setOnRamp(uint64 destChainSelector, address onRamp) external { + s_onRamps[destChainSelector] = onRamp; + } + + function getOnRamp(uint64 destChainSelector) external view returns (address) { + return s_onRamps[destChainSelector]; + } + + function addOffRamp(uint64 sourceChainSelector, address offRamp) external { + s_offRamps.push( + CCIPForkAdapterTypes.RouterOffRamp({sourceChainSelector: sourceChainSelector, offRamp: offRamp}) + ); + } + + function getOffRamps() external view returns (CCIPForkAdapterTypes.RouterOffRamp[] memory) { + return s_offRamps; + } +} + +/// @dev OffRamp 2.0.0 double for the permissionless `execute` path. Like the real contract, `execute` does NOT revert +/// when the inner execution fails on a first attempt: it records FAILURE and returns normally. +contract MockOffRampV2Execute { + uint8 internal constant SUCCESS = 2; + uint8 internal constant FAILURE = 3; + + uint64 internal immutable i_sourceChainSelector; + address internal immutable i_onRamp; + address[] internal s_requiredCCVs; + address[] internal s_optionalCCVs; + uint8 internal s_threshold; + bool internal s_innerExecutionFails; + bytes internal s_innerRevertData = abi.encodeWithSignature("ReceiverError(bytes)", hex"dead"); + + error NoStateProgressMade(bytes32 messageId, bytes err); + bool internal s_garbageCCVs; + + mapping(bytes32 messageId => uint8 state) internal s_states; + uint256 public executeCount; + address[] internal s_lastCCVs; + bytes[] internal s_lastVerifierResults; + + constructor(uint64 sourceChainSelector_, address onRamp_, address[] memory requiredCCVs_) { + i_sourceChainSelector = sourceChainSelector_; + i_onRamp = onRamp_; + s_requiredCCVs = requiredCCVs_; + } + + function setInnerExecutionFails(bool fails) external { + s_innerExecutionFails = fails; + } + + function setOptionalCCVs(address[] calldata optionalCCVs, uint8 threshold) external { + s_optionalCCVs = optionalCCVs; + s_threshold = threshold; + } + + function setGarbageCCVs(bool garbage) external { + s_garbageCCVs = garbage; + } + + function typeAndVersion() external pure returns (string memory) { + return "OffRamp 2.0.0"; + } + + function getSourceChainConfig(uint64 sourceChainSelector) + external + view + returns (IOffRampSourceConfigV2Fork.SourceChainConfig memory cfg) + { + if (sourceChainSelector != i_sourceChainSelector) return cfg; + cfg.isEnabled = true; + cfg.onRamps = new bytes[](1); + cfg.onRamps[0] = abi.encode(i_onRamp); + } + + function getCCVsForMessage(bytes calldata) + external + view + returns (address[] memory requiredCCVs, address[] memory optionalCCVs, uint8 threshold) + { + if (s_garbageCCVs) { + assembly { + mstore(0, 0x0102030000000000000000000000000000000000000000000000000000000000) + return(0, 3) + } + } + return (s_requiredCCVs, s_optionalCCVs, s_threshold); + } + + function execute(bytes calldata encodedMessage, address[] calldata ccvs, bytes[] calldata verifierResults, uint32) + external + { + bytes32 messageId = keccak256(encodedMessage); + // OffRamp 2.0: a failed first attempt records FAILURE and returns; a failed retry reverts with the inner error. + if (s_innerExecutionFails && s_states[messageId] == FAILURE) { + revert NoStateProgressMade(messageId, s_innerRevertData); + } + executeCount += 1; + s_lastCCVs = ccvs; + delete s_lastVerifierResults; + for (uint256 i; i < verifierResults.length; ++i) { + s_lastVerifierResults.push(verifierResults[i]); + } + s_states[keccak256(encodedMessage)] = s_innerExecutionFails ? FAILURE : SUCCESS; + } + + function getExecutionState(bytes32 messageId) external view returns (uint8) { + return s_states[messageId]; + } + + function lastCCVs() external view returns (address[] memory) { + return s_lastCCVs; + } + + function lastVerifierResults() external view returns (bytes[] memory) { + return s_lastVerifierResults; + } +} + +/// @dev Owner-configurable versioned verifier resolver double (the production CCV shape on 2.0 lanes). +contract MockVersionedResolver { + struct InboundImplementationArgs { + bytes4 version; + address verifier; + } + + address public owner = address(0x0A11); + bytes4 public configuredVersion; + address public configuredVerifier; + + function applyInboundImplementationUpdates(InboundImplementationArgs[] calldata implementations) external { + require(msg.sender == owner, "only owner"); + configuredVersion = implementations[0].version; + configuredVerifier = implementations[0].verifier; + } + + function getInboundImplementation(bytes calldata verifierResults) external view returns (address) { + return bytes4(verifierResults[:4]) == configuredVersion ? configuredVerifier : address(0); + } +} + +contract CCIPLocalSimulatorForkV2RoutingTest is Test { + uint64 internal constant SOURCE_SELECTOR = 16015286601757825753; + address internal constant ON_RAMP = address(0x2000); + + CCIPLocalSimulatorForkV2Harness internal harness; + MockRouterV2 internal router; + + function setUp() public { + harness = new CCIPLocalSimulatorForkV2Harness(); + router = new MockRouterV2(); + harness.setNetworkDetails( + block.chainid, + Register.NetworkDetails({ + chainSelector: 3478487238524512106, + routerAddress: address(router), + linkAddress: address(0), + wrappedNativeAddress: address(0), + ccipBnMAddress: address(0), + ccipLnMAddress: address(0), + rmnProxyAddress: address(0), + registryModuleOwnerCustomAddress: address(0), + tokenAdminRegistryAddress: address(0) + }) + ); + } + + function _entry(bytes memory encodedMessage, CCIPForkAdapterTypes.V2Receipt[] memory receipts) + internal + pure + returns (Vm.Log memory entry) + { + entry.topics = new bytes32[](4); + entry.topics[0] = CCIPForkAdapterV2.eventSelector(); + entry.topics[1] = bytes32(uint256(3478487238524512106)); + entry.topics[2] = bytes32(uint256(uint160(address(0xA11CE)))); + entry.topics[3] = keccak256(encodedMessage); + entry.data = abi.encode(address(0), uint256(0), encodedMessage, receipts, new bytes[](0)); + entry.emitter = ON_RAMP; + } + + function _offRamp(address onRamp, address[] memory ccvs) internal returns (MockOffRampV2Execute offRamp) { + offRamp = new MockOffRampV2Execute(SOURCE_SELECTOR, onRamp, ccvs); + router.addOffRamp(SOURCE_SELECTOR, address(offRamp)); + } + + function test_defaultVerificationModeIsOffRampDerived() public { + CCIPLocalSimulatorFork fresh = new CCIPLocalSimulatorFork(); + assertEq(uint8(fresh.getV2VerificationMode()), uint8(CCIPLocalSimulatorFork.V2VerificationMode.OFFRAMP_DERIVED)); + } + + function test_offRampDerived_successMarksProcessed() public { + MockOffRampV2Execute offRamp = _offRamp(ON_RAMP, new address[](0)); + Vm.Log memory entry = _entry("message", new CCIPForkAdapterTypes.V2Receipt[](0)); + + assertTrue(harness.exposedRouteV2(entry, SOURCE_SELECTOR)); + assertEq(offRamp.executeCount(), 1); + assertTrue(harness.isProcessed(entry.topics[3])); + } + + /// @dev OffRamp 2.0 `execute` returns normally on a first-attempt failure, so success must be read from + /// `getExecutionState`, not from the call not reverting. + function test_offRampDerived_failureStateIsNotMarkedProcessed() public { + MockOffRampV2Execute offRamp = _offRamp(ON_RAMP, new address[](0)); + offRamp.setInnerExecutionFails(true); + Vm.Log memory entry = _entry("message", new CCIPForkAdapterTypes.V2Receipt[](0)); + harness.setStrictRouting(false); + + assertTrue(harness.exposedRouteV2(entry, SOURCE_SELECTOR)); + assertEq(offRamp.executeCount(), 1); + assertFalse(harness.isProcessed(entry.topics[3])); + } + + /// @dev Only the OffRamp bound to the emitting OnRamp is executed, not every OffRamp on the router. + function test_offRampDerived_onlyExecutesLaneOffRamp() public { + MockOffRampV2Execute lane = _offRamp(ON_RAMP, new address[](0)); + MockOffRampV2Execute otherLane = _offRamp(address(0x3000), new address[](0)); + Vm.Log memory entry = _entry("message", new CCIPForkAdapterTypes.V2Receipt[](0)); + + assertTrue(harness.exposedRouteV2(entry, SOURCE_SELECTOR)); + assertEq(lane.executeCount(), 1); + assertEq(otherLane.executeCount(), 0); + } + + function test_offRampDerived_returnsFalseWhenNoLaneOffRamp() public { + MockOffRampV2Execute otherLane = _offRamp(address(0x3000), new address[](0)); + Vm.Log memory entry = _entry("message", new CCIPForkAdapterTypes.V2Receipt[](0)); + + assertFalse(harness.exposedRouteV2(entry, SOURCE_SELECTOR)); + assertEq(otherLane.executeCount(), 0); + } + + /// @dev Resolver-style CCVs get the synthetic fork verifier, so lanes work without mocking default CCVs. + /// CCVs that cannot be reconfigured (e.g. a `CCVNoOpVerifier` set via `setLaneDefaultCCVs`) get an empty result. + function test_offRampDerived_usesSyntheticResultForResolverCCVs() public { + MockVersionedResolver resolver = new MockVersionedResolver(); + address plainCCV = address(0xCC5); + address[] memory ccvs = new address[](2); + ccvs[0] = address(resolver); + ccvs[1] = plainCCV; + MockOffRampV2Execute offRamp = _offRamp(ON_RAMP, ccvs); + + assertTrue(harness.exposedRouteV2(_entry("message", new CCIPForkAdapterTypes.V2Receipt[](0)), SOURCE_SELECTOR)); + + address[] memory usedCCVs = offRamp.lastCCVs(); + bytes[] memory results = offRamp.lastVerifierResults(); + assertEq(usedCCVs.length, 2); + assertEq(usedCCVs[0], address(resolver)); + assertEq(results[0], abi.encodePacked(bytes4(0x464f524b))); // "FORK" + assertEq(results[1].length, 0); + assertEq(resolver.configuredVersion(), bytes4(0x464f524b)); + assertTrue(resolver.configuredVerifier() != address(0)); + } + + /// @dev `vm.rollFork` or a snapshot revert on the destination fork drops the resolver update and the synthetic + /// verifier's code, while the persistent simulator's storage survives. Routing must set both up again. + function test_offRampDerived_reconfiguresResolverAfterForkStateReset() public { + MockVersionedResolver resolver = new MockVersionedResolver(); + address[] memory ccvs = new address[](1); + ccvs[0] = address(resolver); + MockOffRampV2Execute offRamp = _offRamp(ON_RAMP, ccvs); + + assertTrue(harness.exposedRouteV2(_entry("first", new CCIPForkAdapterTypes.V2Receipt[](0)), SOURCE_SELECTOR)); + address firstVerifier = resolver.configuredVerifier(); + assertTrue(firstVerifier.code.length > 0); + + // Simulate the reset: the resolver no longer knows "FORK", and the verifier has no code. + MockVersionedResolver.InboundImplementationArgs[] memory reset = + new MockVersionedResolver.InboundImplementationArgs[](1); + reset[0] = MockVersionedResolver.InboundImplementationArgs({version: bytes4(0), verifier: address(0)}); + vm.prank(resolver.owner()); + resolver.applyInboundImplementationUpdates(reset); + vm.etch(firstVerifier, ""); + + assertTrue(harness.exposedRouteV2(_entry("second", new CCIPForkAdapterTypes.V2Receipt[](0)), SOURCE_SELECTOR)); + assertEq(resolver.configuredVersion(), bytes4(0x464f524b)); // "FORK" + assertTrue(resolver.configuredVerifier().code.length > 0); + assertEq(offRamp.lastVerifierResults()[0], abi.encodePacked(bytes4(0x464f524b))); + } + + /// @dev MessageV1 wire prefix up to the OffRamp address (69-byte fixed header, onRamp, offRamp), then a tail. + function _encodedMessageStampedWith(address offRamp) internal pure returns (bytes memory) { + return abi.encodePacked(new bytes(69), uint8(32), abi.encode(ON_RAMP), uint8(20), offRamp, "tail"); + } + + /// @dev OffRamp 2.0 only executes a message stamped with its own address (`InvalidOffRamp`). When the routers list + /// several OffRamps for the lane (e.g. during an OffRamp upgrade), routing must use the stamped one, not the + /// newest match of the router lookup. + function test_offRampDerived_prefersOffRampStampedInMessage() public { + MockOffRampV2Execute stamped = _offRamp(ON_RAMP, new address[](0)); + MockOffRampV2Execute newer = _offRamp(ON_RAMP, new address[](0)); + + Vm.Log memory entry = + _entry(_encodedMessageStampedWith(address(stamped)), new CCIPForkAdapterTypes.V2Receipt[](0)); + assertTrue(harness.exposedRouteV2(entry, SOURCE_SELECTOR)); + assertEq(stamped.executeCount(), 1); + assertEq(newer.executeCount(), 0); + } + + /// @dev The offset arithmetic of `_stampedV2OffRamp` agrees with the pinned `MessageV1Codec` encoder. + function testFuzz_stampedV2OffRamp_matchesCodec(address offRamp, bytes memory onRamp, bytes memory data) + public + view + { + vm.assume(onRamp.length <= 255); + MessageV1Codec.MessageV1 memory message; + message.onRampAddress = onRamp; + message.offRampAddress = abi.encodePacked(offRamp); + message.sender = abi.encode(address(0xA11CE)); + message.receiver = abi.encodePacked(address(0xB0B)); + message.data = data; + assertEq(harness.exposedStampedV2OffRamp(MessageV1Codec._encodeMessageV1(message)), offRamp); + } + + /// @dev OnRamp addresses longer than 185 bytes overflowed a uint8 offset (found by the fuzz test in CI). + function test_stampedV2OffRamp_longOnRampAddress() public view { + MessageV1Codec.MessageV1 memory message; + message.onRampAddress = new bytes(255); + message.offRampAddress = abi.encodePacked(address(0xFEED)); + message.sender = abi.encode(address(0xA11CE)); + message.receiver = abi.encodePacked(address(0xB0B)); + assertEq(harness.exposedStampedV2OffRamp(MessageV1Codec._encodeMessageV1(message)), address(0xFEED)); + } + + function test_stampedV2OffRamp_malformedReturnsZero() public view { + assertEq(harness.exposedStampedV2OffRamp("message"), address(0)); + assertEq(harness.exposedStampedV2OffRamp(abi.encodePacked(new bytes(69), uint8(32))), address(0)); + // A 32-byte (non-EVM) OffRamp address. + assertEq( + harness.exposedStampedV2OffRamp( + abi.encodePacked(new bytes(69), uint8(32), abi.encode(ON_RAMP), uint8(32), bytes32(uint256(1))) + ), + address(0) + ); + } + + /// @dev A stamped address that does not serve the lane (no code, other OnRamp) is ignored in favour of the lookup. + function test_offRampDerived_stampedOffRampNotServingLane_usesLookup() public { + MockOffRampV2Execute otherLane = new MockOffRampV2Execute(SOURCE_SELECTOR, address(0xBEEF), new address[](0)); + MockOffRampV2Execute laneOffRamp = _offRamp(ON_RAMP, new address[](0)); + + assertTrue( + harness.exposedRouteV2( + _entry(_encodedMessageStampedWith(address(otherLane)), new CCIPForkAdapterTypes.V2Receipt[](0)), + SOURCE_SELECTOR + ) + ); + assertTrue( + harness.exposedRouteV2( + _entry(_encodedMessageStampedWith(address(0xDEAD)), new CCIPForkAdapterTypes.V2Receipt[](0)), + SOURCE_SELECTOR + ) + ); + assertEq(otherLane.executeCount(), 0); + assertEq(laneOffRamp.executeCount(), 2); + } + + function test_offRampDerived_garbageCCVResponseDoesNotRevert() public { + MockOffRampV2Execute offRamp = _offRamp(ON_RAMP, new address[](0)); + offRamp.setGarbageCCVs(true); + + harness.exposedRouteV2(_entry("message", new CCIPForkAdapterTypes.V2Receipt[](0)), SOURCE_SELECTOR); + } + + /// @dev `RESPECT_NO_EXEC` (default) queues NO_EXECUTION messages in OFFRAMP_DERIVED mode too. + function test_offRampDerived_noExecutionMessageIsQueuedThenExecutable() public { + MockOffRampV2Execute offRamp = _offRamp(ON_RAMP, new address[](0)); + CCIPForkAdapterTypes.V2Receipt[] memory receipts = new CCIPForkAdapterTypes.V2Receipt[](2); + receipts[0].issuer = Client.NO_EXECUTION_ADDRESS; + receipts[1].issuer = address(0xFEE); + Vm.Log memory entry = _entry("message", receipts); + bytes32 messageId = entry.topics[3]; + + assertTrue(harness.exposedRouteV2(entry, SOURCE_SELECTOR)); + assertEq(offRamp.executeCount(), 0); + assertTrue(harness.isPendingV2Message(messageId)); + + assertTrue(harness.executePendingV2Message(messageId)); + assertEq(offRamp.executeCount(), 1); + assertTrue(harness.isProcessed(messageId)); + assertFalse(harness.isPendingV2Message(messageId)); + } + + // ================================================================ + // │ CCIP 2.0 parallel routers │ + // ================================================================ + + function test_ccipV2RouterDefaults() public view { + assertEq(harness.getCCIPV2RouterAddress(11155111), 0x784d49a71BB4C48eB7dA4cD7e6Ecb424f9b5EAB1); + assertEq(harness.getCCIPV2RouterAddress(43113), 0x7C9B8B4e8024e5Ee8A630F6FCe9015e470dA5763); + assertEq(harness.getCCIPV2RouterAddress(1), address(0)); + } + + function test_setCCIPV2RouterAddress() public { + harness.setCCIPV2RouterAddress(421614, address(0xB0B)); + assertEq(harness.getCCIPV2RouterAddress(421614), address(0xB0B)); + } + + /// @dev A message sent through the CCIP 2.0 router is emitted by that router's OnRamp, not the Register router's. + function test_findSourceOnRamp_matchesEitherRouter() public { + uint64 dest = 3478487238524512106; + router.setOnRamp(dest, address(0xAAA1)); + MockRouterV2 v2Router = new MockRouterV2(); + v2Router.setOnRamp(dest, address(0xBBB2)); + harness.setCCIPV2RouterAddress(block.chainid, address(v2Router)); + + assertEq(harness.exposedFindSourceOnRamp(dest, address(0xAAA1)), address(0xAAA1)); + assertEq(harness.exposedFindSourceOnRamp(dest, address(0xBBB2)), address(0xBBB2)); + assertEq(harness.exposedFindSourceOnRamp(dest, address(0xCCC3)), address(0)); + } + + function test_findSourceOnRamp_withoutV2Router() public { + uint64 dest = 3478487238524512106; + router.setOnRamp(dest, address(0xAAA1)); + + assertEq(harness.exposedFindSourceOnRamp(dest, address(0xAAA1)), address(0xAAA1)); + assertEq(harness.exposedFindSourceOnRamp(dest, address(0xBBB2)), address(0)); + } + + /// @dev The destination OffRamp of a CCIP 2.0-router lane is only listed by the 2.0 router. + function test_findOffRamp_consultsV2Router() public { + MockRouterV2 v2Router = new MockRouterV2(); + MockOffRampV2Execute laneOffRamp = new MockOffRampV2Execute(SOURCE_SELECTOR, ON_RAMP, new address[](0)); + v2Router.addOffRamp(SOURCE_SELECTOR, address(laneOffRamp)); + _offRamp(address(0x3000), new address[](0)); // Register router only knows another lane + + assertEq(harness.exposedFindOffRampOnCurrentFork(SOURCE_SELECTOR, ON_RAMP), address(0)); + + harness.setCCIPV2RouterAddress(block.chainid, address(v2Router)); + assertEq(harness.exposedFindOffRampOnCurrentFork(SOURCE_SELECTOR, ON_RAMP), address(laneOffRamp)); + + assertTrue(harness.exposedRouteV2(_entry("message", new CCIPForkAdapterTypes.V2Receipt[](0)), SOURCE_SELECTOR)); + assertEq(laneOffRamp.executeCount(), 1); + } + + /// @dev A router returning junk from `getOffRamps` is skipped instead of reverting the lookup. + function test_findOffRamp_skipsRouterWithGarbageOffRamps() public { + MockRouterV2 v2Router = new MockRouterV2(); + MockOffRampV2Execute laneOffRamp = new MockOffRampV2Execute(SOURCE_SELECTOR, ON_RAMP, new address[](0)); + v2Router.addOffRamp(SOURCE_SELECTOR, address(laneOffRamp)); + harness.setCCIPV2RouterAddress(block.chainid, address(v2Router)); + vm.etch(address(router), address(new GarbageRouter()).code); + + assertEq(harness.exposedFindOffRampOnCurrentFork(SOURCE_SELECTOR, ON_RAMP), address(laneOffRamp)); + } + + /// @dev Review repro: required=[A], optional=[B, C], threshold=1. The OffRamp needs A plus one optional CCV; selecting + /// only [A] fails with `OptionalCCVQuorumNotReached` where production delivers. + function test_offRampDerived_selectsRequiredPlusThresholdOptionalCCVs() public { + address a = address(0xA0); + address b = address(0xB0); + address c = address(0xC0); + address[] memory required = new address[](1); + required[0] = a; + address[] memory optional = new address[](2); + optional[0] = b; + optional[1] = c; + MockOffRampV2Execute offRamp = _offRamp(ON_RAMP, required); + offRamp.setOptionalCCVs(optional, 1); + + assertTrue(harness.exposedRouteV2(_entry("message", new CCIPForkAdapterTypes.V2Receipt[](0)), SOURCE_SELECTOR)); + + address[] memory used = offRamp.lastCCVs(); + assertEq(used.length, 2); + assertEq(used[0], a); + assertEq(used[1], b); + } + + // ================================================================ + // │ Observable routing outcomes │ + // ================================================================ + + function test_strictRoutingIsOnByDefault() public { + assertTrue(new CCIPLocalSimulatorFork().getStrictRouting()); + } + + function test_getMessageStatus_notFoundForUnknownMessage() public view { + (CCIPLocalSimulatorFork.MessageStatus status, bytes memory reason) = + harness.getMessageStatus(bytes32(uint256(1))); + assertEq(uint8(status), uint8(CCIPLocalSimulatorFork.MessageStatus.NOT_FOUND)); + assertEq(reason.length, 0); + } + + function test_getMessageStatus_successAfterRouting() public { + _offRamp(ON_RAMP, new address[](0)); + Vm.Log memory entry = _entry("message", new CCIPForkAdapterTypes.V2Receipt[](0)); + + harness.exposedRouteV2(entry, SOURCE_SELECTOR); + + (CCIPLocalSimulatorFork.MessageStatus status,) = harness.getMessageStatus(entry.topics[3]); + assertEq(uint8(status), uint8(CCIPLocalSimulatorFork.MessageStatus.SUCCESS)); + } + + /// @dev Strict mode (default): a CCIP 2.0 FAILURE reverts with the OffRamp's inner error, recovered from the + /// `NoStateProgressMade(messageId, err)` revert of a second `execute` attempt. + function test_strict_executionFailureReverts_withDecodedReason() public { + MockOffRampV2Execute offRamp = _offRamp(ON_RAMP, new address[](0)); + offRamp.setInnerExecutionFails(true); + Vm.Log memory entry = _entry("message", new CCIPForkAdapterTypes.V2Receipt[](0)); + + vm.expectRevert( + abi.encodeWithSelector( + CCIPLocalSimulatorFork.CCIPLocalSimulatorFork__MessageExecutionFailed.selector, + entry.topics[3], + abi.encodeWithSignature("ReceiverError(bytes)", hex"dead") + ) + ); + harness.exposedRouteV2(entry, SOURCE_SELECTOR); + } + + function test_nonStrict_executionFailureRecorded_withDecodedReason() public { + MockOffRampV2Execute offRamp = _offRamp(ON_RAMP, new address[](0)); + offRamp.setInnerExecutionFails(true); + Vm.Log memory entry = _entry("message", new CCIPForkAdapterTypes.V2Receipt[](0)); + harness.setStrictRouting(false); + + assertTrue(harness.exposedRouteV2(entry, SOURCE_SELECTOR)); + + (CCIPLocalSimulatorFork.MessageStatus status, bytes memory reason) = harness.getMessageStatus(entry.topics[3]); + assertEq(uint8(status), uint8(CCIPLocalSimulatorFork.MessageStatus.FAILED)); + assertEq(reason, abi.encodeWithSignature("ReceiverError(bytes)", hex"dead")); + assertFalse(harness.isProcessed(entry.topics[3])); + } + + function test_getMessageStatus_queuedForNoExecutionMessage() public { + _offRamp(ON_RAMP, new address[](0)); + CCIPForkAdapterTypes.V2Receipt[] memory receipts = new CCIPForkAdapterTypes.V2Receipt[](2); + receipts[0].issuer = Client.NO_EXECUTION_ADDRESS; + receipts[1].issuer = address(0xFEE); + Vm.Log memory entry = _entry("message", receipts); + + harness.exposedRouteV2(entry, SOURCE_SELECTOR); + + (CCIPLocalSimulatorFork.MessageStatus status,) = harness.getMessageStatus(entry.topics[3]); + assertEq(uint8(status), uint8(CCIPLocalSimulatorFork.MessageStatus.QUEUED)); + } + + /// @dev The OffRamp keys execution state on keccak256(encodedMessage); a log whose messageId topic differs is not a + /// genuine CCIP 2.0 message and must not be executed. + function test_messageIdTopicMustMatchEncodedMessage() public { + MockOffRampV2Execute offRamp = _offRamp(ON_RAMP, new address[](0)); + Vm.Log memory entry = _entry("message", new CCIPForkAdapterTypes.V2Receipt[](0)); + entry.topics[3] = bytes32(uint256(0xBAD)); + + vm.expectRevert( + abi.encodeWithSelector( + CCIPLocalSimulatorFork.CCIPLocalSimulatorFork__MessageNotRouted.selector, + bytes32(uint256(0xBAD)), + "messageId topic does not match keccak256(encodedMessage)" + ) + ); + harness.exposedRouteV2(entry, SOURCE_SELECTOR); + assertEq(offRamp.executeCount(), 0); + } + + /// @dev 1.6 OnRamps serve several destinations, so 1.6 logs must be filtered by destination like 2.0 logs. + function test_logDestination_readFromTopic1ForV1dot6AndV2() public view { + Vm.Log memory v2 = _entry("message", new CCIPForkAdapterTypes.V2Receipt[](0)); + (bool hasV2, uint64 v2Selector) = harness.exposedLogDestination(v2); + assertTrue(hasV2); + assertEq(v2Selector, 3478487238524512106); + + Vm.Log memory v16; + v16.topics = new bytes32[](3); + v16.topics[0] = keccak256( + "CCIPMessageSent(uint64,uint64,((bytes32,uint64,uint64,uint64,uint64),address,bytes,bytes,bytes,address,uint256,uint256,(address,bytes,bytes,uint256,bytes)[]))" + ); + v16.topics[1] = bytes32(uint256(14767482510784806043)); + (bool has16, uint64 selector16) = harness.exposedLogDestination(v16); + assertTrue(has16); + assertEq(selector16, 14767482510784806043); + } + + /// @dev A foreign event with the CCIP 2.0 signature but fewer indexed topics must not panic the routing loop. + function test_logDestination_shortTopicsDoNotPanic() public view { + Vm.Log memory entry; + entry.topics = new bytes32[](1); + entry.topics[0] = CCIPForkAdapterV2.eventSelector(); + (bool hasDestination,) = harness.exposedLogDestination(entry); + assertFalse(hasDestination); + } + + /// @dev `setLaneDefaultCCVs` must not make the lane less strict than production: lane-mandated CCVs are kept. + function test_setLaneDefaultCCVs_preservesLaneMandatedCCVs() public { + MockOffRampV2Admin offRamp = new MockOffRampV2Admin(SOURCE_SELECTOR, ON_RAMP); + harness.exposedSetLaneDefaultCCVs(address(offRamp), SOURCE_SELECTOR, address(0xC0DE)); + + IOffRampSourceConfigV2Fork.SourceChainConfig memory cfg = offRamp.getSourceChainConfig(SOURCE_SELECTOR); + assertEq(cfg.defaultCCVs.length, 1); + assertEq(cfg.defaultCCVs[0], address(0xC0DE)); + assertEq(cfg.laneMandatedCCVs.length, 1); + assertEq(cfg.laneMandatedCCVs[0], address(0x3A7D)); + assertEq(cfg.onRamps.length, 1); + assertEq(cfg.router, address(0xBEEF)); + } + + /// @dev A router whose `getOnRamp` returns a word that is not an address is skipped, not reverted on. + function test_findSourceOnRamp_nonAddressWordDoesNotRevert() public { + vm.etch(address(router), address(new NonAddressWordRouter()).code); + assertEq(harness.exposedFindSourceOnRamp(3478487238524512106, ON_RAMP), address(0)); + } +} + +/// @dev Returns a 32-byte word with high bits set from every call. +contract NonAddressWordRouter { + fallback() external { + assembly { + mstore(0, not(0)) + return(0, 32) + } + } +} + +/// @dev OffRamp 2.0 admin surface used by `setLaneDefaultCCVs`. +contract MockOffRampV2Admin { + address public owner = address(0x0B0B); + mapping(uint64 => IOffRampSourceConfigV2Fork.SourceChainConfig) internal s_configs; + + constructor(uint64 sourceChainSelector, address onRamp) { + IOffRampSourceConfigV2Fork.SourceChainConfig storage cfg = s_configs[sourceChainSelector]; + cfg.router = address(0xBEEF); + cfg.isEnabled = true; + cfg.onRamps.push(abi.encode(onRamp)); + cfg.defaultCCVs.push(address(0xDEF0)); + cfg.laneMandatedCCVs.push(address(0x3A7D)); + } + + function getSourceChainConfig(uint64 sourceChainSelector) + external + view + returns (IOffRampSourceConfigV2Fork.SourceChainConfig memory) + { + return s_configs[sourceChainSelector]; + } + + function applySourceChainConfigUpdates(IOffRampSourceConfigV2Fork.SourceChainConfigArgs[] calldata updates) + external + { + require(msg.sender == owner, "only owner"); + for (uint256 i; i < updates.length; ++i) { + IOffRampSourceConfigV2Fork.SourceChainConfig storage cfg = s_configs[updates[i].sourceChainSelector]; + cfg.router = updates[i].router; + cfg.isEnabled = updates[i].isEnabled; + delete cfg.onRamps; + for (uint256 j; j < updates[i].onRamps.length; ++j) { + cfg.onRamps.push(updates[i].onRamps[j]); + } + cfg.defaultCCVs = updates[i].defaultCCVs; + cfg.laneMandatedCCVs = updates[i].laneMandatedCCVs; + } + } +} + +contract GarbageRouter { + fallback() external { + assembly { + mstore(0, 0x0102030000000000000000000000000000000000000000000000000000000000) + return(0, 3) + } + } +} diff --git a/test/unit/ccip/CCIPLocalSimulatorUnit.t.sol b/test/unit/ccip/CCIPLocalSimulatorUnit.t.sol index 3dc0d80..927f9f2 100644 --- a/test/unit/ccip/CCIPLocalSimulatorUnit.t.sol +++ b/test/unit/ccip/CCIPLocalSimulatorUnit.t.sol @@ -5,9 +5,9 @@ import {Test} from "forge-std/Test.sol"; import {CCIPLocalSimulator, IRouterClient} from "@chainlink/local/src/ccip/CCIPLocalSimulator.sol"; import {Client} from "@chainlink/contracts-ccip/contracts/libraries/Client.sol"; -import {ERC20} from "../../../src/vendor/openzeppelin-solidity/v5.0.2/contracts/token/ERC20/ERC20.sol"; +import {ERC20} from "@openzeppelin/contracts@5.3.0/token/ERC20/ERC20.sol"; import {OwnerIsCreator} from "@chainlink/contracts/src/v0.8/shared/access/OwnerIsCreator.sol"; -import {AccessControl} from "../../../src/vendor/openzeppelin-solidity/v5.0.2/contracts/access/AccessControl.sol"; +import {AccessControl} from "@openzeppelin/contracts@5.3.0/access/AccessControl.sol"; contract MockERC20TokenOwner is ERC20, OwnerIsCreator { constructor() ERC20("MockERC20Token", "MTK") {} @@ -166,7 +166,9 @@ contract CCIPLocalSimulatorUnitTest is Test { receiver: abi.encode(bob), data: "", tokenAmounts: new Client.EVMTokenAmount[](0), - extraArgs: Client._argsToBytes(Client.GenericExtraArgsV2({gasLimit: 500_000, allowOutOfOrderExecution: true})), + extraArgs: Client._argsToBytes( + Client.GenericExtraArgsV2({gasLimit: 500_000, allowOutOfOrderExecution: true}) + ), feeToken: address(0) }); router.ccipSend(chainSelector, message); diff --git a/test/unit/ccip/CCVNoOpVerifierUnit.t.sol b/test/unit/ccip/CCVNoOpVerifierUnit.t.sol new file mode 100644 index 0000000..8cba6e1 --- /dev/null +++ b/test/unit/ccip/CCVNoOpVerifierUnit.t.sol @@ -0,0 +1,31 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.24; + +import {Test} from "forge-std/Test.sol"; +import {ICrossChainVerifierV1} from "@chainlink/contracts-ccip/contracts/interfaces/ICrossChainVerifierV1.sol"; +import { + ICrossChainVerifierResolver +} from "@chainlink/contracts-ccip/contracts/interfaces/ICrossChainVerifierResolver.sol"; +import {ICCVNoOpVerifierFork} from "../../../src/test/ccip/CCVNoOpVerifier.sol"; + +/// @dev `CCVNoOpVerifier` mirrors the CCIP 2.0 verifier types locally. If a dependency bump changes `MessageV1` or the +/// verifier interfaces (as the `finality` uint16 -> bytes4 change did), the OffRamp would call selectors the mock +/// does not implement. Pin the mirrors to the pinned chainlink-ccip interfaces. +contract CCVNoOpVerifierUnitTest is Test { + function test_selectorsMatchPinnedCrossChainVerifierV1() public pure { + assertEq(ICCVNoOpVerifierFork.verifyMessage.selector, ICrossChainVerifierV1.verifyMessage.selector); + assertEq(ICCVNoOpVerifierFork.getFee.selector, ICrossChainVerifierV1.getFee.selector); + assertEq(ICCVNoOpVerifierFork.forwardToVerifier.selector, ICrossChainVerifierV1.forwardToVerifier.selector); + } + + function test_selectorsMatchPinnedCrossChainVerifierResolver() public pure { + assertEq( + ICCVNoOpVerifierFork.getInboundImplementation.selector, + ICrossChainVerifierResolver.getInboundImplementation.selector + ); + assertEq( + ICCVNoOpVerifierFork.getOutboundImplementation.selector, + ICrossChainVerifierResolver.getOutboundImplementation.selector + ); + } +} diff --git a/test/unit/ccip/RegisterGenerator.unit.test.js b/test/unit/ccip/RegisterGenerator.unit.test.js new file mode 100644 index 0000000..eced132 --- /dev/null +++ b/test/unit/ccip/RegisterGenerator.unit.test.js @@ -0,0 +1,29 @@ +import { describe, it } from "node:test"; +import assert from "node:assert/strict"; +import generator from "../../../helper_doc/updateRegisterContract.cjs"; + +const { selectWrappedNativeToken } = generator; + +const token = (symbol) => ({ symbol, address: `0x${symbol}` }); +const pick = (...symbols) => selectWrappedNativeToken(symbols.map(token))?.symbol ?? null; + +// Fee token lists as returned by https://docs.chain.link/api/ccip/v1/chains (Sep 2026). +describe("updateRegisterContract: selectWrappedNativeToken", () => { + it("ignores fee tokens listed before the wrapped native token (GHO before WETH)", () => { + assert.equal(pick("GHO", "LINK", "WETH"), "WETH"); // Ethereum, Arbitrum, Base, Sepolia + assert.equal(pick("GHO", "LINK", "WAVAX"), "WAVAX"); // Avalanche + assert.equal(pick("AlphaUSD", "BetaUSD", "LINK", "PathUSD", "ThetaUSD", "WTEMP"), "WTEMP"); // Tempo Testnet + }); + + it("prefers the chain's own wrapped native token over a bridged WETH", () => { + assert.equal(pick("LINK", "WETH", "WMON"), "WMON"); // Monad Testnet + assert.equal(pick("LINK", "WETH", "WXPL"), "WXPL"); // Plasma Testnet + }); + + it("returns null when the wrapped native token is ambiguous or missing", () => { + assert.equal(pick("LINK", "WgUSDT", "WUSDT0"), null); // Stable + assert.equal(pick("LINK", "PBTC"), null); // Botanix + assert.equal(pick("LINK"), null); + assert.equal(selectWrappedNativeToken(undefined), null); + }); +}); diff --git a/test/unit/ccip/RegisterUnit.t.sol b/test/unit/ccip/RegisterUnit.t.sol new file mode 100644 index 0000000..0e843e8 --- /dev/null +++ b/test/unit/ccip/RegisterUnit.t.sol @@ -0,0 +1,59 @@ +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.19; + +import {Test} from "forge-std/Test.sol"; +import {Register} from "../../../src/ccip/Register.sol"; +import {CCIPLocalSimulatorFork} from "../../../src/ccip/CCIPLocalSimulatorFork.sol"; + +/// @dev Register's built-in network details are generated into code; `setNetworkDetails` overrides are stored. +contract RegisterUnitTest is Test { + uint256 internal constant SEPOLIA = 11155111; + + function _details(uint64 chainSelector) internal pure returns (Register.NetworkDetails memory details) { + details.chainSelector = chainSelector; + details.routerAddress = address(0xBEEF); + } + + function test_builtInDetails() public { + Register register = new Register(); + Register.NetworkDetails memory sepolia = register.getNetworkDetails(SEPOLIA); + assertEq(sepolia.chainSelector, 16015286601757825753); + assertEq(sepolia.routerAddress, 0x0BF3dE8c5D3e8A2B34D2BEeB17ABfCeBaf363A59); + assertEq(sepolia.linkAddress, 0x779877A7B0D9E8603169DdbD7836e478b4624789); + } + + function test_unknownChain_returnsZeroDetails() public { + Register register = new Register(); + Register.NetworkDetails memory unknown = register.getNetworkDetails(424242424242); + assertEq(unknown.chainSelector, 0); + assertEq(unknown.routerAddress, address(0)); + } + + function test_setNetworkDetails_overridesBuiltInAndUnknownChains() public { + Register register = new Register(); + register.setNetworkDetails(SEPOLIA, _details(7)); + register.setNetworkDetails(424242424242, _details(8)); + assertEq(register.getNetworkDetails(SEPOLIA).chainSelector, 7); + assertEq(register.getNetworkDetails(SEPOLIA).routerAddress, address(0xBEEF)); + assertEq(register.getNetworkDetails(424242424242).chainSelector, 8); + // Other chains keep their built-in details. + assertEq(register.getNetworkDetails(1).chainSelector, 5009297550715157269); + } + + /// @dev An explicit override to an all-zero struct is honoured (it is not mistaken for "not overridden"). + function test_setNetworkDetails_toZeroDetails() public { + Register register = new Register(); + Register.NetworkDetails memory zero; + register.setNetworkDetails(SEPOLIA, zero); + assertEq(register.getNetworkDetails(SEPOLIA).chainSelector, 0); + } + + /// @dev Each simulator gets its own Register (placed with vm.etch), so overrides do not leak between simulators. + function test_simulatorsDoNotShareOverrides() public { + CCIPLocalSimulatorFork first = new CCIPLocalSimulatorFork(); + CCIPLocalSimulatorFork second = new CCIPLocalSimulatorFork(); + first.setNetworkDetails(SEPOLIA, _details(7)); + assertEq(first.getNetworkDetails(SEPOLIA).chainSelector, 7); + assertEq(second.getNetworkDetails(SEPOLIA).chainSelector, 16015286601757825753); + } +} diff --git a/abi/EVM2EVMOnRamp.json b/test/unit/ccip/fixtures/EVM2EVMOnRampPreV1dot6.abi.json similarity index 100% rename from abi/EVM2EVMOnRamp.json rename to test/unit/ccip/fixtures/EVM2EVMOnRampPreV1dot6.abi.json diff --git a/abi/OnRamp.json b/test/unit/ccip/fixtures/OnRampV1dot6.abi.json similarity index 100% rename from abi/OnRamp.json rename to test/unit/ccip/fixtures/OnRampV1dot6.abi.json diff --git a/test/unit/ccip/fixtures/OnRampV2.abi.json b/test/unit/ccip/fixtures/OnRampV2.abi.json new file mode 100644 index 0000000..c7f38ca --- /dev/null +++ b/test/unit/ccip/fixtures/OnRampV2.abi.json @@ -0,0 +1,1206 @@ +[ + { + "type": "constructor", + "inputs": [ + { + "name": "staticConfig", + "type": "tuple", + "internalType": "struct OnRamp.StaticConfig", + "components": [ + { + "name": "chainSelector", + "type": "uint64", + "internalType": "uint64" + }, + { + "name": "rmnRemote", + "type": "address", + "internalType": "contract IRMN" + }, + { + "name": "maxUSDCentsPerMessage", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "tokenAdminRegistry", + "type": "address", + "internalType": "address" + } + ] + }, + { + "name": "dynamicConfig", + "type": "tuple", + "internalType": "struct OnRamp.DynamicConfig", + "components": [ + { + "name": "feeQuoter", + "type": "address", + "internalType": "address" + }, + { + "name": "reentrancyGuardEntered", + "type": "bool", + "internalType": "bool" + }, + { + "name": "feeAggregator", + "type": "address", + "internalType": "address" + } + ] + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "acceptOwnership", + "inputs": [], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "applyDestChainConfigUpdates", + "inputs": [ + { + "name": "destChainConfigArgs", + "type": "tuple[]", + "internalType": "struct OnRamp.DestChainConfigArgs[]", + "components": [ + { + "name": "destChainSelector", + "type": "uint64", + "internalType": "uint64" + }, + { + "name": "router", + "type": "address", + "internalType": "contract IRouter" + }, + { + "name": "addressBytesLength", + "type": "uint8", + "internalType": "uint8" + }, + { + "name": "tokenReceiverAllowed", + "type": "bool", + "internalType": "bool" + }, + { + "name": "messageNetworkFeeUSDCents", + "type": "uint16", + "internalType": "uint16" + }, + { + "name": "tokenNetworkFeeUSDCents", + "type": "uint16", + "internalType": "uint16" + }, + { + "name": "baseExecutionGasCost", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "defaultCCVs", + "type": "address[]", + "internalType": "address[]" + }, + { + "name": "laneMandatedCCVs", + "type": "address[]", + "internalType": "address[]" + }, + { + "name": "defaultExecutor", + "type": "address", + "internalType": "address" + }, + { + "name": "offRamp", + "type": "bytes", + "internalType": "bytes" + } + ] + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "forwardFromRouter", + "inputs": [ + { + "name": "destChainSelector", + "type": "uint64", + "internalType": "uint64" + }, + { + "name": "message", + "type": "tuple", + "internalType": "struct Client.EVM2AnyMessage", + "components": [ + { + "name": "receiver", + "type": "bytes", + "internalType": "bytes" + }, + { + "name": "data", + "type": "bytes", + "internalType": "bytes" + }, + { + "name": "tokenAmounts", + "type": "tuple[]", + "internalType": "struct Client.EVMTokenAmount[]", + "components": [ + { + "name": "token", + "type": "address", + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "name": "feeToken", + "type": "address", + "internalType": "address" + }, + { + "name": "extraArgs", + "type": "bytes", + "internalType": "bytes" + } + ] + }, + { + "name": "feeTokenAmount", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "originalSender", + "type": "address", + "internalType": "address" + } + ], + "outputs": [ + { + "name": "messageId", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "getAllDestChainConfigs", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "uint64[]", + "internalType": "uint64[]" + }, + { + "name": "", + "type": "tuple[]", + "internalType": "struct OnRamp.DestChainConfig[]", + "components": [ + { + "name": "router", + "type": "address", + "internalType": "contract IRouter" + }, + { + "name": "messageNumber", + "type": "uint64", + "internalType": "uint64" + }, + { + "name": "addressBytesLength", + "type": "uint8", + "internalType": "uint8" + }, + { + "name": "tokenReceiverAllowed", + "type": "bool", + "internalType": "bool" + }, + { + "name": "messageNetworkFeeUSDCents", + "type": "uint16", + "internalType": "uint16" + }, + { + "name": "tokenNetworkFeeUSDCents", + "type": "uint16", + "internalType": "uint16" + }, + { + "name": "baseExecutionGasCost", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "defaultExecutor", + "type": "address", + "internalType": "address" + }, + { + "name": "laneMandatedCCVs", + "type": "address[]", + "internalType": "address[]" + }, + { + "name": "defaultCCVs", + "type": "address[]", + "internalType": "address[]" + }, + { + "name": "offRamp", + "type": "bytes", + "internalType": "bytes" + } + ] + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getDestChainConfig", + "inputs": [ + { + "name": "destChainSelector", + "type": "uint64", + "internalType": "uint64" + } + ], + "outputs": [ + { + "name": "destChainConfig", + "type": "tuple", + "internalType": "struct OnRamp.DestChainConfig", + "components": [ + { + "name": "router", + "type": "address", + "internalType": "contract IRouter" + }, + { + "name": "messageNumber", + "type": "uint64", + "internalType": "uint64" + }, + { + "name": "addressBytesLength", + "type": "uint8", + "internalType": "uint8" + }, + { + "name": "tokenReceiverAllowed", + "type": "bool", + "internalType": "bool" + }, + { + "name": "messageNetworkFeeUSDCents", + "type": "uint16", + "internalType": "uint16" + }, + { + "name": "tokenNetworkFeeUSDCents", + "type": "uint16", + "internalType": "uint16" + }, + { + "name": "baseExecutionGasCost", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "defaultExecutor", + "type": "address", + "internalType": "address" + }, + { + "name": "laneMandatedCCVs", + "type": "address[]", + "internalType": "address[]" + }, + { + "name": "defaultCCVs", + "type": "address[]", + "internalType": "address[]" + }, + { + "name": "offRamp", + "type": "bytes", + "internalType": "bytes" + } + ] + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getDynamicConfig", + "inputs": [], + "outputs": [ + { + "name": "dynamicConfig", + "type": "tuple", + "internalType": "struct OnRamp.DynamicConfig", + "components": [ + { + "name": "feeQuoter", + "type": "address", + "internalType": "address" + }, + { + "name": "reentrancyGuardEntered", + "type": "bool", + "internalType": "bool" + }, + { + "name": "feeAggregator", + "type": "address", + "internalType": "address" + } + ] + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getExpectedNextMessageNumber", + "inputs": [ + { + "name": "destChainSelector", + "type": "uint64", + "internalType": "uint64" + } + ], + "outputs": [ + { + "name": "", + "type": "uint64", + "internalType": "uint64" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getFee", + "inputs": [ + { + "name": "destChainSelector", + "type": "uint64", + "internalType": "uint64" + }, + { + "name": "message", + "type": "tuple", + "internalType": "struct Client.EVM2AnyMessage", + "components": [ + { + "name": "receiver", + "type": "bytes", + "internalType": "bytes" + }, + { + "name": "data", + "type": "bytes", + "internalType": "bytes" + }, + { + "name": "tokenAmounts", + "type": "tuple[]", + "internalType": "struct Client.EVMTokenAmount[]", + "components": [ + { + "name": "token", + "type": "address", + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "name": "feeToken", + "type": "address", + "internalType": "address" + }, + { + "name": "extraArgs", + "type": "bytes", + "internalType": "bytes" + } + ] + } + ], + "outputs": [ + { + "name": "feeTokenAmount", + "type": "uint256", + "internalType": "uint256" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getPoolBySourceToken", + "inputs": [ + { + "name": "", + "type": "uint64", + "internalType": "uint64" + }, + { + "name": "sourceToken", + "type": "address", + "internalType": "contract IERC20" + } + ], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "contract IPoolV1" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getStaticConfig", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "tuple", + "internalType": "struct OnRamp.StaticConfig", + "components": [ + { + "name": "chainSelector", + "type": "uint64", + "internalType": "uint64" + }, + { + "name": "rmnRemote", + "type": "address", + "internalType": "contract IRMN" + }, + { + "name": "maxUSDCentsPerMessage", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "tokenAdminRegistry", + "type": "address", + "internalType": "address" + } + ] + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "getSupportedTokens", + "inputs": [ + { + "name": "", + "type": "uint64", + "internalType": "uint64" + } + ], + "outputs": [ + { + "name": "", + "type": "address[]", + "internalType": "address[]" + } + ], + "stateMutability": "pure" + }, + { + "type": "function", + "name": "owner", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "address", + "internalType": "address" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "setDynamicConfig", + "inputs": [ + { + "name": "dynamicConfig", + "type": "tuple", + "internalType": "struct OnRamp.DynamicConfig", + "components": [ + { + "name": "feeQuoter", + "type": "address", + "internalType": "address" + }, + { + "name": "reentrancyGuardEntered", + "type": "bool", + "internalType": "bool" + }, + { + "name": "feeAggregator", + "type": "address", + "internalType": "address" + } + ] + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "transferOwnership", + "inputs": [ + { + "name": "to", + "type": "address", + "internalType": "address" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "function", + "name": "typeAndVersion", + "inputs": [], + "outputs": [ + { + "name": "", + "type": "string", + "internalType": "string" + } + ], + "stateMutability": "view" + }, + { + "type": "function", + "name": "withdrawFeeTokens", + "inputs": [ + { + "name": "feeTokens", + "type": "address[]", + "internalType": "address[]" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }, + { + "type": "event", + "name": "CCIPMessageSent", + "inputs": [ + { + "name": "destChainSelector", + "type": "uint64", + "indexed": true, + "internalType": "uint64" + }, + { + "name": "sender", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "messageId", + "type": "bytes32", + "indexed": true, + "internalType": "bytes32" + }, + { + "name": "feeToken", + "type": "address", + "indexed": false, + "internalType": "address" + }, + { + "name": "tokenAmountBeforeTokenPoolFees", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + }, + { + "name": "encodedMessage", + "type": "bytes", + "indexed": false, + "internalType": "bytes" + }, + { + "name": "receipts", + "type": "tuple[]", + "indexed": false, + "internalType": "struct OnRamp.Receipt[]", + "components": [ + { + "name": "issuer", + "type": "address", + "internalType": "address" + }, + { + "name": "destGasLimit", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "destBytesOverhead", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "feeTokenAmount", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "extraArgs", + "type": "bytes", + "internalType": "bytes" + } + ] + }, + { + "name": "verifierBlobs", + "type": "bytes[]", + "indexed": false, + "internalType": "bytes[]" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "ConfigSet", + "inputs": [ + { + "name": "staticConfig", + "type": "tuple", + "indexed": false, + "internalType": "struct OnRamp.StaticConfig", + "components": [ + { + "name": "chainSelector", + "type": "uint64", + "internalType": "uint64" + }, + { + "name": "rmnRemote", + "type": "address", + "internalType": "contract IRMN" + }, + { + "name": "maxUSDCentsPerMessage", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "tokenAdminRegistry", + "type": "address", + "internalType": "address" + } + ] + }, + { + "name": "dynamicConfig", + "type": "tuple", + "indexed": false, + "internalType": "struct OnRamp.DynamicConfig", + "components": [ + { + "name": "feeQuoter", + "type": "address", + "internalType": "address" + }, + { + "name": "reentrancyGuardEntered", + "type": "bool", + "internalType": "bool" + }, + { + "name": "feeAggregator", + "type": "address", + "internalType": "address" + } + ] + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "DestChainConfigSet", + "inputs": [ + { + "name": "destChainSelector", + "type": "uint64", + "indexed": true, + "internalType": "uint64" + }, + { + "name": "messageNumber", + "type": "uint64", + "indexed": false, + "internalType": "uint64" + }, + { + "name": "config", + "type": "tuple", + "indexed": false, + "internalType": "struct OnRamp.DestChainConfigArgs", + "components": [ + { + "name": "destChainSelector", + "type": "uint64", + "internalType": "uint64" + }, + { + "name": "router", + "type": "address", + "internalType": "contract IRouter" + }, + { + "name": "addressBytesLength", + "type": "uint8", + "internalType": "uint8" + }, + { + "name": "tokenReceiverAllowed", + "type": "bool", + "internalType": "bool" + }, + { + "name": "messageNetworkFeeUSDCents", + "type": "uint16", + "internalType": "uint16" + }, + { + "name": "tokenNetworkFeeUSDCents", + "type": "uint16", + "internalType": "uint16" + }, + { + "name": "baseExecutionGasCost", + "type": "uint32", + "internalType": "uint32" + }, + { + "name": "defaultCCVs", + "type": "address[]", + "internalType": "address[]" + }, + { + "name": "laneMandatedCCVs", + "type": "address[]", + "internalType": "address[]" + }, + { + "name": "defaultExecutor", + "type": "address", + "internalType": "address" + }, + { + "name": "offRamp", + "type": "bytes", + "internalType": "bytes" + } + ] + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "FeeTokenWithdrawn", + "inputs": [ + { + "name": "receiver", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "feeToken", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "amount", + "type": "uint256", + "indexed": false, + "internalType": "uint256" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "OwnershipTransferRequested", + "inputs": [ + { + "name": "from", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "to", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "event", + "name": "OwnershipTransferred", + "inputs": [ + { + "name": "from", + "type": "address", + "indexed": true, + "internalType": "address" + }, + { + "name": "to", + "type": "address", + "indexed": true, + "internalType": "address" + } + ], + "anonymous": false + }, + { + "type": "error", + "name": "CanOnlySendOneTokenPerMessage", + "inputs": [] + }, + { + "type": "error", + "name": "CannotSendZeroTokens", + "inputs": [] + }, + { + "type": "error", + "name": "CannotTransferToSelf", + "inputs": [] + }, + { + "type": "error", + "name": "CursedByRMN", + "inputs": [ + { + "name": "destChainSelector", + "type": "uint64", + "internalType": "uint64" + } + ] + }, + { + "type": "error", + "name": "DestinationChainNotSupported", + "inputs": [ + { + "name": "destChainSelector", + "type": "uint64", + "internalType": "uint64" + } + ] + }, + { + "type": "error", + "name": "DestinationChainNotSupportedByCCV", + "inputs": [ + { + "name": "ccvAddress", + "type": "address", + "internalType": "address" + }, + { + "name": "destChainSelector", + "type": "uint64", + "internalType": "uint64" + } + ] + }, + { + "type": "error", + "name": "DuplicateCCVNotAllowed", + "inputs": [ + { + "name": "ccvAddress", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "FTFNotSupportedOnPoolV1", + "inputs": [] + }, + { + "type": "error", + "name": "FeeExceedsMaxAllowed", + "inputs": [ + { + "name": "feeUSDCents", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "maxUSDCentsPerMessage", + "type": "uint32", + "internalType": "uint32" + } + ] + }, + { + "type": "error", + "name": "GetSupportedTokensFunctionalityRemovedCheckAdminRegistry", + "inputs": [] + }, + { + "type": "error", + "name": "InsufficientFeeTokenAmount", + "inputs": [] + }, + { + "type": "error", + "name": "InvalidAddressLength", + "inputs": [ + { + "name": "length", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "error", + "name": "InvalidConfig", + "inputs": [] + }, + { + "type": "error", + "name": "InvalidDataLength", + "inputs": [ + { + "name": "location", + "type": "uint8", + "internalType": "enum ExtraArgsCodec.EncodingErrorLocation" + }, + { + "name": "offset", + "type": "uint256", + "internalType": "uint256" + } + ] + }, + { + "type": "error", + "name": "InvalidDataLength", + "inputs": [ + { + "name": "location", + "type": "uint8", + "internalType": "enum MessageV1Codec.EncodingErrorLocation" + } + ] + }, + { + "type": "error", + "name": "InvalidDestChainAddress", + "inputs": [ + { + "name": "destChainAddress", + "type": "bytes", + "internalType": "bytes" + } + ] + }, + { + "type": "error", + "name": "InvalidDestChainConfig", + "inputs": [ + { + "name": "destChainSelector", + "type": "uint64", + "internalType": "uint64" + } + ] + }, + { + "type": "error", + "name": "InvalidExtraArgsTag", + "inputs": [ + { + "name": "expected", + "type": "bytes4", + "internalType": "bytes4" + }, + { + "name": "actual", + "type": "bytes4", + "internalType": "bytes4" + } + ] + }, + { + "type": "error", + "name": "MustBeCalledByRouter", + "inputs": [] + }, + { + "type": "error", + "name": "MustBeProposedOwner", + "inputs": [] + }, + { + "type": "error", + "name": "MustSpecifyDefaultOrRequiredCCVs", + "inputs": [] + }, + { + "type": "error", + "name": "OnlyCallableByOwner", + "inputs": [] + }, + { + "type": "error", + "name": "OwnerCannotBeZero", + "inputs": [] + }, + { + "type": "error", + "name": "ReentrancyGuardReentrantCall", + "inputs": [] + }, + { + "type": "error", + "name": "RequestedFinalityCanOnlyHaveOneMode", + "inputs": [ + { + "name": "encodedFinality", + "type": "bytes4", + "internalType": "bytes4" + } + ] + }, + { + "type": "error", + "name": "RouterMustSetOriginalSender", + "inputs": [] + }, + { + "type": "error", + "name": "SafeERC20FailedOperation", + "inputs": [ + { + "name": "token", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "SourceTokenDataTooLarge", + "inputs": [ + { + "name": "token", + "type": "address", + "internalType": "address" + }, + { + "name": "actualLength", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "maxLength", + "type": "uint32", + "internalType": "uint32" + } + ] + }, + { + "type": "error", + "name": "TokenArgsNotSupportedOnPoolV1", + "inputs": [] + }, + { + "type": "error", + "name": "TokenReceiverNotAllowed", + "inputs": [ + { + "name": "destChainSelector", + "type": "uint64", + "internalType": "uint64" + } + ] + }, + { + "type": "error", + "name": "UnsupportedToken", + "inputs": [ + { + "name": "token", + "type": "address", + "internalType": "address" + } + ] + }, + { + "type": "error", + "name": "ZeroAddressNotAllowed", + "inputs": [] + }, + { + "type": "error", + "name": "ZeroAddressNotAllowed", + "inputs": [] + } +] diff --git a/test/unit/data-feeds/DataFeedsUnit.t.sol b/test/unit/data-feeds/DataFeedsUnit.t.sol index 0a21961..3788c40 100644 --- a/test/unit/data-feeds/DataFeedsUnit.t.sol +++ b/test/unit/data-feeds/DataFeedsUnit.t.sol @@ -1,7 +1,7 @@ // SPDX-License-Identifier: MIT pragma solidity ^0.8.19; -import {Test, console2} from "forge-std/Test.sol"; +import {Test} from "forge-std/Test.sol"; import {MockV3Aggregator} from "@chainlink/local/src/data-feeds/MockV3Aggregator.sol"; import {MockOffchainAggregator} from "@chainlink/local/src/data-feeds/MockOffchainAggregator.sol"; import {AggregatorV2V3Interface} from "@chainlink/local/src/data-feeds/interfaces/AggregatorV2V3Interface.sol"; @@ -25,17 +25,17 @@ contract BasicDataConsumerV3Test is Test { mockOffchainAggregator = MockOffchainAggregator(mockAggregator.aggregator()); } - function test_shouldReturnDecimals() public { + function test_shouldReturnDecimals() public view { uint8 result = mockAggregator.decimals(); assertEq(result, decimals); } - function test_shouldReturnAnswerByRoundId() public { + function test_shouldReturnAnswerByRoundId() public view { int256 result = mockAggregator.getAnswer(initialRoundId); assertEq(result, initialAnswer); } - function test_shouldReturnRoundDataByRoundId() public { + function test_shouldReturnRoundDataByRoundId() public view { (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound) = mockAggregator.getRoundData(initialRoundId); @@ -46,7 +46,7 @@ contract BasicDataConsumerV3Test is Test { assertEq(answeredInRound, initialRoundId); } - function test_shouldReturnLatestRoundData() public { + function test_shouldReturnLatestRoundData() public view { (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound) = mockAggregator.latestRoundData(); @@ -57,22 +57,22 @@ contract BasicDataConsumerV3Test is Test { assertEq(answeredInRound, initialRoundId); } - function test_shouldReturnTimestampByRoundId() public { + function test_shouldReturnTimestampByRoundId() public view { uint256 result = mockAggregator.getTimestamp(initialRoundId); assertEq(result, deploymentTimestamp); } - function test_shouldReturnLatestAnswer() public { + function test_shouldReturnLatestAnswer() public view { int256 result = mockAggregator.latestAnswer(); assertEq(result, initialAnswer); } - function test_shouldReturnLatestTimestamp() public { + function test_shouldReturnLatestTimestamp() public view { uint256 result = mockAggregator.latestTimestamp(); assertEq(result, deploymentTimestamp); } - function test_shouldReturnLatestRound() public { + function test_shouldReturnLatestRound() public view { uint256 result = mockAggregator.latestRound(); assertEq(result, initialRoundId); } @@ -146,7 +146,7 @@ contract BasicDataConsumerV3Test is Test { assertEq(result, newAnswer); } - function test_shouldReturnMinAndMaxAnswers() public { + function test_shouldReturnMinAndMaxAnswers() public view { int192 minAnswer = 1; int192 maxAnswer = 95780971304118053647396689196894323976171195136475135; // type(uint176).max diff --git a/tsconfig.json b/tsconfig.json index 574e785..23f621e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { "target": "es2020", - "module": "commonjs", + "module": "node16", "esModuleInterop": true, "forceConsistentCasingInFileNames": true, "strict": true,