UNPKG

@0x/0x-parser

Version:

🧾 Designed for 0x integrators: This library parses 0x transactions on EVM blockchains into a format that is both user-friendly and easy to understand.

68 lines (67 loc) • 2.27 kB
{ "name": "@0x/0x-parser", "version": "2.10.1", "description": "🧾 Designed for 0x integrators: This library parses 0x transactions on EVM blockchains into a format that is both user-friendly and easy to understand.", "keywords": [ "0x", "dex", "logs", "swap", "parse", "tokens", "events", "gasless", "settler", "ethereum", "aggregator", "0x protocol", "transactions" ], "author": "henryzhu.eth", "license": "MIT", "homepage": "https://github.com/0xproject/0x-parser", "repository": { "type": "git", "url": "https://github.com/0xproject/0x-parser" }, "bugs": { "url": "https://github.com/0xproject/0x-parser/issues" }, "main": "dist/index.cjs.js", "module": "dist/index.esm.js", "types": "dist/index.d.ts", "sideEffects": false, "files": [ "dist", "src" ], "engines": { "node": ">=20" }, "scripts": { "start": "npm run build && cp ./dist ./public/dist", "build": "npm run build:cjs && npm run build:esm && npm run types", "build:esm": "esbuild src/index.ts --bundle --minify-whitespace --minify-identifiers --format=esm --target=esnext --outfile=dist/index.esm.js --external:viem", "build:cjs": "esbuild src/index.ts --bundle --minify-whitespace --minify-identifiers --platform=node --target=node18 --outfile=dist/index.cjs.js --external:viem", "build:dev": "npm run build:cjs:dev && npm run build:esm:dev && npm run types", "build:esm:dev": "esbuild src/index.ts --bundle --format=esm --outfile=dist/index.esm.js", "build:cjs:dev": "esbuild src/index.ts --bundle --platform=node --target=node18 --outfile=dist/index.cjs.js", "types": "rm -rf ./dist/index.d.ts && tsc --emitDeclarationOnly --outDir ./dist", "web:example": "npm run clean && npm run build:dev && cp ./dist/index.esm.js ./examples/web && http-server ./examples/web --port 8000 -o", "clean": "rm -rf dist", "test": "vitest --coverage" }, "peerDependencies": { "viem": "^2.23.4" }, "devDependencies": { "@types/node": "^22.13.5", "@vitest/coverage-v8": "^3.0.6", "abitype": "^1.0.8", "dotenv": "^16.4.7", "esbuild": "^0.25.0", "http-server": "^14.1.1", "typescript": "^5.7.3", "vitest": "^3.0.6" } }