UNPKG

@ethereum-sourcify/bytecode-utils

Version:

Decode the CBOR encoded data at the end of an Ethereum contract's bytecode.

84 lines (83 loc) 2.1 kB
{ "name": "@ethereum-sourcify/bytecode-utils", "version": "1.3.3", "description": "Decode the CBOR encoded data at the end of an Ethereum contract's bytecode.", "main": "build/main/index.js", "typings": "build/main/index.d.ts", "module": "build/module/index.js", "repository": "https://github.com/ethereum/sourcify", "license": "MIT", "keywords": [ "sourcify", "ethereum", "cbor", "contract", "smart-contract", "metadata", "solidity", "ipfs" ], "scripts": { "build": "run-p build:*", "build:main": "tsc -p tsconfig.json", "build:module": "tsc -p tsconfig.module.json", "fix": "run-s fix:*", "fix:prettier": "prettier \"./**/*.ts\" --write", "fix:lint": "eslint . --ext .ts --fix", "check": "run-s check:*", "check:eslint": "eslint . --ext .ts", "check:prettier": "prettier \"./**/*.ts\" --check", "test": "c8 --reporter=none mocha --exit test/**", "watch:build": "tsc -p tsconfig.json -w", "cov": "run-s build test:unit cov:html cov:lcov && open-cli coverage/index.html", "cov:html": "c8 report --reporter=html", "cov:lcov": "c8 report --reporter=lcov", "cov:check": "c8 report && c8 check-coverage --lines 100 --functions 100 --branches 100" }, "engines": { "node": "22.5.1" }, "dependencies": { "@ethersproject/bytes": "5.8.0", "base-x": "4.0.1", "bs58": "5.0.0", "cbor-x": "1.6.0", "semver": "7.7.1" }, "devDependencies": { "@types/chai": "4.3.20", "@types/mocha": "10.0.10", "@types/node": "22.13.10", "c8": "10.1.3", "chai": "4.5.0", "cz-conventional-changelog": "3.3.0", "mocha": "10.8.2", "npm-run-all2": "5.0.2" }, "optionalDependencies": { "fsevents": "2.3.3" }, "files": [ "build/main", "build/module", "!**/*.spec.*", "!**/*.json", "LICENSE", "README.md" ], "prettier": { "singleQuote": true }, "c8": { "exclude": [ "**/*.spec.js", "**/*.spec.ts" ], "reporter": [ "html", "lcov", "text", "text-summary" ] } }