[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-108662":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":11,"openIssues":13,"contributorsCount":13,"subscribersCount":13,"size":13,"stars1d":13,"stars7d":13,"stars30d":13,"stars90d":13,"forks30d":13,"starsTrendScore":13,"compositeScore":14,"rankGlobal":9,"rankLanguage":9,"license":15,"archived":16,"fork":16,"defaultBranch":17,"hasWiki":18,"hasPages":16,"topics":19,"createdAt":9,"pushedAt":28,"updatedAt":29,"readmeContent":30,"aiSummary":31,"trendingCount":13,"starSnapshotCount":13,"syncStatus":32,"lastSyncTime":33,"discoverSource":34},108662,"v4revert","zhouxingchi1017\u002Fv4revert","zhouxingchi1017","Decode Uniswap v4 revert data: recursively unwraps WrappedError. One file, zero dependencies.",null,"JavaScript",51,1,0,40.9,"MIT License",false,"main",true,[20,21,22,23,24,25,26,27],"cli","debugging","ethereum","evm","hooks","solidity","uniswap","uniswap-v4","2026-11-05 09:17:22","2026-11-05 09:39:48","# v4revert\n\nUniswap v4 hides the real revert. When a hook fails, PoolManager wraps it in `WrappedError(address,bytes4,bytes,bytes)` (`0x90bfb865`), the Universal Router may wrap that again in `ExecutionFailed`, and your tooling prints a useless blob, or `execution reverted`.\n\n`v4revert` peels every layer. One file, zero dependencies, works offline.\n\n```bash\nnpx github:zhouxingchi1017\u002Fv4revert 0x90bfb8650000000000000000000000001111111111111111111111111111111111110088575e24b40000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000006408c379a00000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000001377616c6c65742063617020657863656564656400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004a9e35b2f00000000000000000000000000000000000000000000000000000000\n```\n\n```\nWrappedError\n  target: 0x1111111111111111111111111111111111110088\n  selector: 0x575e24b4 (beforeSwap)\n  reason: Error(\"wallet cap exceeded\")\n  details: HookCallFailed()\n```\n\n## Usage\n\n```bash\nv4revert 0x90bfb865...                                # argument\necho 0x90bfb865... | v4revert                        # stdin\nv4revert --sig 'WalletCap(uint256 cap)' 0x...         # your hook's custom errors (repeatable)\n```\n\nDecodes `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`.\n\n## Library\n\n```js\nconst { decode, render } = require('v4revert');\nconsole.log(render(decode(revertData, ['WalletCap(uint256 cap)'])));\n```\n\n## Test\n\n```bash\nnode test.js\n```\n\n## License\n\nMIT\n","v4revert 是一个专用于解析 Uniswap v4 智能合约调用失败（revert）数据的轻量级工具，可递归解包多层嵌套的 WrappedError 和 ExecutionFailed 等错误包装器，还原原始错误信息（如 Error(string)、Panic(uint256)、自定义 Hook 错误等）。项目采用单文件 JavaScript 实现，无任何外部依赖，支持命令行直接调用和编程集成，离线可用。适用于以太坊链上开发、Uniswap v4 钩子（hook）调试、交易失败根因分析及前端\u002F后端错误展示等场景。",2,"2026-11-24 04:34:54","CREATED_QUERY"]