UNPKG

@owlprotocol/contracts-account-abstraction

Version:

ERC4337 Account Abstraction support for deploying relevant smart contracts and interacting with UserOps.

178 lines 6.11 kB
{ "name": "@owlprotocol/contracts-account-abstraction", "version": "3.2.0", "keywords": [ "blockchain", "web3", "solidity", "erc4337" ], "private": false, "type": "module", "homepage": "https://github.com/owlprotocol/workspace-public", "repository": { "type": "git", "url": "https://github.com/owlprotocol/workspace-public.git" }, "copyright": "Copyright 2024 Owl Protocol", "license": "MIT", "author": { "name": "Leo Vigna", "email": "leo@owlprotocol.xyz", "url": "https://github.com/leovigna" }, "files": [ "dist/*", "lib/*", "!lib/forge-std", "src/*", "LICENSE", "README.md", "contracts/*" ], "main": "./lib/cjs/index.cjs", "module": "./lib/esm/index.mjs", "types": "./lib/types/index.d.ts", "exports": { ".": { "types": "./lib/types/index.d.ts", "require": "./lib/cjs/index.js", "import": "./lib/esm/index.js" }, "./actions": { "types": "./lib/types/actions/index.d.ts", "require": "./lib/cjs/actions/index.js", "import": "./lib/esm/actions/index.js" }, "./clients": { "types": "./lib/types/clients/index.d.ts", "require": "./lib/cjs/clients/index.js", "import": "./lib/esm/clients/index.js" }, "./eip1193": { "types": "./lib/types/eip1193/index.d.ts", "require": "./lib/cjs/eip1193/index.js", "import": "./lib/esm/eip1193/index.js" }, "./SimpleAccount": { "types": "./lib/types/SimpleAccount.d.ts", "require": "./lib/cjs/SimpleAccount.js", "import": "./lib/esm/SimpleAccount.js" }, "./artifacts": { "types": "./lib/types/artifacts/index.d.ts", "require": "./lib/cjs/artifacts/index.js", "import": "./lib/esm/artifacts/index.js" }, "./artifacts/*": { "types": "./lib/types/artifacts/*.d.ts", "require": "./lib/cjs/artifacts/*.js", "import": "./lib/esm/artifacts/*.js" }, "./userOp": { "types": "./lib/types/userOp.d.ts", "require": "./lib/cjs/userOp.js", "import": "./lib/esm/userOp.js" }, "./zsol": { "types": "./lib/types/zsol/index.d.ts", "require": "./lib/cjs/zsol/index.js", "import": "./lib/esm/zsol/index.js" }, "./zsol/*": { "types": "./lib/types/zsol/*.d.ts", "require": "./lib/cjs/zsol/*.js", "import": "./lib/esm/zsol/*.js" }, "./solc-metadata": { "types": "./lib/types/solc-metadata/index.d.ts", "require": "./lib/cjs/solc-metadata/index.js", "import": "./lib/esm/solc-metadata/index.js" }, "./solc-metadata/*": { "types": "./lib/types/solc-metadata/*.d.ts", "require": "./lib/cjs/solc-metadata/*.js", "import": "./lib/esm/solc-metadata/*.js" } }, "dependencies": { "@account-abstraction/contracts": "0.7.0", "@open-rpc/meta-schema": "1.14.9", "@open-rpc/schema-utils-js": "2.0.5", "@openzeppelin/contracts": "5.0.2", "permissionless": "0.2.6", "viem": "2.21.19", "zod": "3.22.4", "@owlprotocol/backend-public": "3.1.3", "@owlprotocol/viem-utils": "3.2.0", "@owlprotocol/zod-sol": "3.1.2" }, "devDependencies": { "@nomicfoundation/hardhat-viem": "^2.0.0", "@types/lodash-es": "4.17.12", "@types/node": "^20.11.10", "@typescript/analyze-trace": "^0.10.1", "core-js": "^3.37.1", "depcheck": "^1.4.7", "handlebars": "^4.7.7", "hardhat": "^2.22.1", "hardhat-deploy": "^0.12.2", "lint-staged": "^11.2.6", "lodash-es": "4.17.21", "madge": "^5.0.2", "npm-run-all": "^4.1.5", "prool": "^0.0.15", "rimraf": "^3.0.2", "solidity-docgen": "^0.6.0-beta.36", "ts-node": "^10.8.0", "tsx": "^4.11.0", "typescript": "5.4.5", "vite": "^5.1.6", "vitest": "^1.4.0", "@owlprotocol/chains": "3.1.2", "@owlprotocol/envvars": "3.1.2", "@owlprotocol/eslint-config": "3.2.0", "@owlprotocol/hardhat-config": "3.1.2", "@owlprotocol/esbuild-config": "3.1.2", "@owlprotocol/prettier-config": "3.1.2", "@owlprotocol/tsconfig": "3.1.2" }, "bugs": { "url": "https://github.com/owlprotocol/workspace-public/issues", "email": "leo@owlprotocol.xyz" }, "funding": "https://owlprotocol.xyz", "engines": { "node": "^18.0.0" }, "scripts": { "build": "npm-run-all build:hardhat build:artifacts build:solcmetadata build:esm", "build:artifacts": "tsx src/codegen/runHardhatArtifactsExport.ts", "build:solcmetadata": "tsx src/codegen/runHardhatMetadataExport.ts", "build:esbuild": "node esbuild.config.mjs", "build:esbuild:watch": "ESBUILD_WATCH=true node esbuild.config.mjs", "build:esm": "npm-run-all -p build:esbuild build:tsc ", "build:hardhat": "npm run to:commonjs && cp tsconfig.hardhat.json tsconfig.json && hardhat compile && hardhat docgen && npm run to:module && cp tsconfig.build.json tsconfig.json", "build:tsc": "tsc", "build:tsc:watch": "tsc -w", "build:watch": "npm-run-all -p build:tsc:watch build:esbuild:watch", "build:zsol": "tsx src/codegen/runGenerateZodValidators.ts", "clean": "rimraf lib cache artifacts src/artifacts src/solc-metadata src/zsol docs-contracts-reference", "depcheck": "depcheck", "esbuild": "node esbuild.config.mjs", "esbuild:watch": "ESBUILD_WATCH=true node esbuild.config.mjs", "hardhat:deploy": "npm run to:commonjs && hardhat deploy && npm run to:module", "lint": "eslint 'src/**/*.ts'", "lint:fix": "eslint --fix 'src/**/*.ts'", "lint:staged": "lint-staged", "madge": "madge src/index.ts -c", "test": "pnpm run test:ci", "test:ci": "vitest --run", "test:watch": "vitest", "to:commonjs": "sed 's/\"type\": \"module\"/\"type\": \"commonjs\"/g' package.json > ./temp.package.json && mv ./temp.package.json package.json", "to:module": "sed 's/\"type\": \"commonjs\"/\"type\": \"module\"/g' package.json > ./temp.package.json && mv -f ./temp.package.json package.json", "tsc": "tsc", "tsc:trace": "tsc --generateTrace lib/trace && analyze-trace lib/trace", "tsc:watch": "tsc -w" } }