From 6ce41649cf95d94b2ca4da5c54333528a2a7ba0e Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Thu, 27 Aug 2026 14:00:09 -0400 Subject: [PATCH 1/2] ci: remove redundant broken deploy workflow --- .github/workflows/deploy.yml | 29 ----------------------------- .nvmrc | 1 + README.md | 5 +++-- package.json | 5 +++++ 4 files changed, 9 insertions(+), 31 deletions(-) delete mode 100644 .github/workflows/deploy.yml create mode 100644 .nvmrc diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index 0170adb..0000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: deploy -on: - push: - branches: [main] -jobs: - cloudflare: - runs-on: ubuntu-latest - permissions: - contents: read - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 22 - cache: npm - - run: npm ci - - run: npm run validate - - run: npm run build - - name: Deploy to Cloudflare - if: ${{ secrets.CLOUDFLARE_API_TOKEN != '' && secrets.CLOUDFLARE_ACCOUNT_ID != '' }} - run: npx wrangler deploy - env: - CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} - CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - - name: Skip deploy (missing secrets) - if: ${{ secrets.CLOUDFLARE_API_TOKEN == '' || secrets.CLOUDFLARE_ACCOUNT_ID == '' }} - run: | - echo "Skipping wrangler deploy. Add repo secrets CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID to enable GitHub deploys." - echo "Local deploys with wrangler still work." diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..8fdd954 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +22 \ No newline at end of file diff --git a/README.md b/README.md index abc2305..7055f7d 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Every listing shows the `getHookPermissions` block and the callbacks that matter | | | |---|---| -| **Patterns** | Copyable implementations — TWAMM, limit orders, take-profit, oracles, dynamic fees, JIT penalty, rehypothecation, v2-on-v4, first-party rewrites, … | +| **Patterns** | Reference implementations — TWAMM, limit orders, take-profit, oracles, dynamic fees, JIT penalty, rehypothecation, v2-on-v4, first-party rewrites, … | | **First-party** | [`contracts/`](contracts/) — hooks we maintain here (Foundry + tests). Legacy ideas rewritten for current v4. | | **Products** | How live protocols wire their hooks — study the callbacks, don’t paste the factory | | **Agent dumps** | [`llms.txt`](https://v4hooks.com/llms.txt) · [`llm-full.txt`](https://v4hooks.com/llm-full.txt) · [`hooks.json`](https://v4hooks.com/hooks.json) | @@ -56,6 +56,7 @@ Filename must match `slug`. Schema: [`schema/hook.schema.json`](schema/hook.sche ## Develop ```bash +nvm use # Node 22 (>=22.12.0) npm install npm run validate npm run dev # local site @@ -64,7 +65,7 @@ forge build && forge test # first-party contracts/ npm run deploy # build + wrangler (manual) ``` -Push to `main` deploys via **Cloudflare Workers Builds**. GitHub Actions runs catalog validate **and** `forge test`. +Push to `main` deploys via **Cloudflare Workers Builds**. GitHub Actions runs catalog validation **and** `forge test`. For the ads rail, set Worker secrets `HELIO_PAYLINK_ID` and `HELIO_WEBHOOK_SECRET`. Local: copy `.dev.vars.example` → `.dev.vars`. diff --git a/package.json b/package.json index 5417a15..5f31da4 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,11 @@ "version": "0.1.0", "private": true, "type": "module", + "packageManager": "npm@10.9.2", + "engines": { + "node": ">=22.12.0", + "npm": ">=10.8.2" + }, "description": "Open directory of Uniswap v4 hooks you can actually use.", "scripts": { "dev": "astro dev", From 41194e5dfb9cfcc30cdeb085120c395c824e2f69 Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Thu, 27 Aug 2026 14:00:56 -0400 Subject: [PATCH 2/2] chore: sync package metadata in lockfile --- package-lock.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package-lock.json b/package-lock.json index 5d0ec95..b1d744a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,6 +15,10 @@ "typescript": "^7.0.2", "wrangler": "^4.127.0", "yaml": "^2.9.0" + }, + "engines": { + "node": ">=22.12.0", + "npm": ">=10.8.2" } }, "node_modules/@astrojs/compiler-binding": {