正在自动登录…
zhouxingchi1017/ v4revert
用于解码 Uniswap v4 回滚数据的命令行工具,可递归解包 WrappedError 等错误层,并支持自定义错误签名。
AI 中文解读 · 根据仓库描述与 README 生成 · 2026/11/5 18:02:14 · 查看原文
- 累计 Stars
- 51
- 当前热度
- 1 天内 · 小火
- 仓库创建时间
选用指南
AI 根据 README 整理 · 2026/11/5 18:02:14
- 使用方式
通过命令行或作为 Node.js 库使用,支持参数、stdin 输入及自定义错误签名。
查看 README 依据
00000000000000000000000000000000000000000000000000000000000000000000000000000000000004a9e35b2f00000000000000000000000000000000000000000000000000000000 ``` ``` WrappedError target: 0x1111111111111111111111111111111111110088 selector: 0x575e24b4 (beforeSwap) reason: Error("wallet cap exceeded") details: HookCallFailed() ``` ## Usage ```bash v4revert 0x90bfb865... # argument echo 0x90bfb865... | v4revert # stdin v4revert --sig 'WalletCap(uint256 cap)' 0x... # your hook's custom errors (repeatable) ```
Decodes `Error(string)`, `Panic(uint256)`, v4-core and v4-periphery errors, Universal Router and Permit2 errors, and names the hook callback in `WrappedError.selector`. Unknown selectors are printed as raw hex: pass them in with `--sig`. ## Library ```js const { decode, render } = require('v4revert'); console.log(render(decode(revertData, ['WalletCap(uint256 cap)']))); ``` ## Test ```bash node test.js ``` ## License MIT
- 部署要求
需要 Node.js 环境以运行 npx 命令或作为库导入。
查看 README 依据
npx github:zhouxingchi1017/v4revert 0x90bfb8650000000000000000000000001111111111111111111111111111111111110088575e24b40000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000006408c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001377616c6c657420636170206578636565646564000000000000000000000000000000000000000000000000000000000000
Decodes `Error(string)`, `Panic(uint256)`, v4-core and v4-periphery errors, Universal Router and Permit2 errors, and names the hook callback in `WrappedError.selector`. Unknown selectors are printed as raw hex: pass them in with `--sig`. ## Library ```js const { decode, render } = require('v4revert'); console.log(render(decode(revertData, ['WalletCap(uint256 cap)']))); ``` ## Test ```bash node test.js ``` ## License MIT
README
正在加载 README…
收录信息
- 仓库创建时间
- 2026/11/5 17:17:15
- 首次达标收录
- 2026/11/5 17:57:31
- 统计更新时间
- 2026/11/5 19:41:36
按创建时长与累计 Stars 判断等级。首次达标收录后,即使未达当前门槛仍保留;累计 Stars 和仓库状态会定期更新。确认只有 README 及辅助文件的仓库会停止公开。
模型评估
值得看加权总分 3.9 / 5
由 Jev 模型根据仓库描述与 README 评估,2026/11/5 17:57:31 生成。评分仅供参考,不是代码、安全或许可证审查;热度等级另按创建时长与累计 Stars 计算。
仓库信息
- 最近推送
- 2026/11/5 17:17:22
- 许可证标识
- MIT
- Fork 数
- 0
- 当前状态
- 未归档
收录记录
按创建时长与累计 Stars 首次收录:小火
首次发现项目