UNPKG

eip-712

Version:

Tiny library with utility functions that can help with signing and verifying EIP-712 based messages

94 lines (93 loc) 3 kB
{ "name": "eip-712", "version": "1.0.0", "description": "Tiny library with utility functions that can help with signing and verifying EIP-712 based messages", "author": "Maarten Zuidhoorn <maarten@zuidhoorn.com>", "repository": { "type": "git", "url": "https://github.com/Mrtenz/eip-712.git" }, "bugs": { "url": "https://github.com/Mrtenz/eip-712/issues" }, "keywords": [ "ethereum", "eip712" ], "license": "MIT", "main": "lib/cjs/index.js", "module": "lib/es/index.js", "typings": "typings/index.d.ts", "sideEffects": false, "engines": { "node": ">=10" }, "files": [ "lib", "src", "typings" ], "scripts": { "clean": "rimraf lib", "build": "yarn run clean && yarn run build:source && yarn run build:declarations", "build:source": "yarn run build:source:cjs && yarn run build:source:es", "build:source:cjs": "cross-env NODE_ENV=production BABEL_ENV=cjs babel src --extensions '.ts' --source-maps --out-dir lib/cjs", "build:source:es": "cross-env NODE_ENV=production BABEL_ENV=es babel src --extensions '.ts' --source-maps --out-dir lib/es", "build:declarations": "tsc -p tsconfig.build.json", "test": "jest", "lint": "yarn run lint:tsc && yarn run lint:eslint && yarn run lint:prettier && yarn run lint:lockfile", "lint:tsc": "tsc --noEmit", "lint:eslint": "eslint . --ignore-path .gitignore --ext .ts,.tsx,.js,.jsx", "lint:prettier": "prettier --check --ignore-path .gitignore '**/*.{ts,tsx,js,json}'", "lint:lockfile": "lockfile-lint --type yarn --path yarn.lock --allowed-hosts yarn --validate-https --validate-checksum --validate-integrity", "format": "prettier --write --ignore-path .gitignore '**/*.{ts,tsx,js,json}'", "prepare": "yarn run build" }, "dependencies": { "@findeth/abi": "^0.3.0", "@noble/hashes": "^1.0.0", "superstruct": "^0.15.3" }, "devDependencies": { "@babel/cli": "^7.10.5", "@babel/core": "^7.11.4", "@babel/plugin-transform-modules-commonjs": "^7.10.4", "@babel/preset-env": "^7.11.0", "@babel/preset-typescript": "^7.10.4", "@types/jest": "^26.0.10", "@types/keccak": "^3.0.1", "@typescript-eslint/eslint-plugin": "^3.10.1", "@typescript-eslint/parser": "^3.10.1", "babel-jest": "^26.3.0", "codecov": "^3.7.2", "cross-env": "^7.0.2", "eslint": "^7.7.0", "eslint-config-prettier": "^6.11.0", "eslint-plugin-import": "^2.22.0", "eslint-plugin-jest": "^23.20.0", "ethereumjs-util": "^7.0.4", "ethers": "^5.0.9", "husky": "^4.2.5", "jest": "^27.5.1", "lint-staged": "^10.2.13", "lockfile-lint": "^4.3.7", "prettier": "^2.1.1", "rimraf": "^3.0.2", "ts-node": "^9.0.0", "typescript": "^4.0.2" }, "lint-staged": { "*.{ts,tsx}": [ "prettier --write", "eslint --fix" ], "*.{js,json}": [ "prettier --write" ] }, "husky": { "hooks": { "pre-commit": "lint-staged" } } }