{"_id":"@bvvvp009/abstractjs","name":"@bvvvp009/abstractjs","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@bvvvp009/abstractjs","version":"1.0.0","author":{"name":"@bvvvp009"},"repository":{"type":"git","url":"git+https://github.com/bvvvp009/abstractjs.git"},"main":"./dist/_cjs/index.js","module":"./dist/_esm/index.js","access":"public","devDependencies":{"@biconomy/ecosystem":"0.5.2","@biomejs/biome":"1.9.4","@changesets/cli":"^2.28.1","@commitlint/cli":"^19.8.1","@commitlint/config-conventional":"^19.8.1","@ethersproject/abi":"^5.8.0","@ethersproject/providers":"^5.8.0","@ethersproject/wallet":"^5.8.0","@metamask/delegation-toolkit":"^0.11.0","@pimlico/alto":"^0.0.4","@rhinestone/module-sdk":"0.2.7","@size-limit/esbuild-why":"^11.2.0","@size-limit/preset-small-lib":"^11.2.0","@types/bun":"^1.2.4","@types/yargs":"^17.0.33","@vitest/coverage-istanbul":"^3.0.7","buffer":"^6.0.3","concurrently":"^9.1.2","dotenv":"^16.4.7","ethers":"^6.13.5","execa":"^9.5.2","get-port":"^7.1.0","gh-pages":"^6.3.0","permissionless":"^0.2.47","prool":"^0.0.23","rimraf":"^6.0.1","simple-git-hooks":"^2.11.1","size-limit":"^11.2.0","ts-node":"^10.9.2","tsc-alias":"^1.8.16","tslib":"^2.8.1","typedoc":"^0.27.9","viem":"^2.26.2","vitest":"^3.0.7","yargs":"^17.7.2"},"peerDependencies":{"@metamask/delegation-toolkit":"^0.11.0","@rhinestone/module-sdk":"0.2.7","typescript":"^5.8.2","viem":"^2.26.2"},"exports":{".":{"types":"./dist/_types/index.d.ts","import":"./dist/_esm/index.js","default":"./dist/_cjs/index.js"},"./account":{"types":"./_types/account/index.d.ts","import":"./_esm/account/index.js","default":"./_cjs/account/index.js"},"./bundler":{"types":"./_types/bundler/index.d.ts","import":"./_esm/bundler/index.js","default":"./_cjs/bundler/index.js"},"./paymaster":{"types":"./_types/paymaster/index.d.ts","import":"./_esm/paymaster/index.js","default":"./_cjs/paymaster/index.js"},"./modules":{"types":"./_types/modules/index.d.ts","import":"./_esm/modules/index.js","default":"./_cjs/modules/index.js"}},"commitlint":{"extends":["@commitlint/config-conventional"]},"description":"SDK for Biconomy integration with support for account abstraction, smart accounts, ERC-4337.","homepage":"https://biconomy.io","keywords":["erc-7579","modular smart account","account abstraction","bvvvp009","sdk"],"license":"MIT","scripts":{"format":"biome format . --write","lint":"biome check .","lint:fix":"bun run lint --apply","dev":"bun run build && bun link && concurrently \"bun run esm:watch\" \"bun run cjs:watch\" \"bun run esm:watch:aliases\" \"bun run cjs:watch:aliases\"","build":"bun run clean && bun run build:cjs && bun run build:esm && bun run build:types","clean":"rimraf ./dist/_esm ./dist/_cjs ./dist/_types ./dist/tsconfig","coverage":"vitest run -c ./src/test/vitest.config.ts --coverage","test":"vitest run -c ./src/test/vitest.config.ts","test:watch":"vitest --watch -c ./src/test/vitest.config.ts","playground":"RUN_PLAYGROUND=true vitest -c ./src/test/vitest.config.ts -t=playground","playground:watch":"RUN_PLAYGROUND=true bun run test -t=playground --watch","fetch:tokenMap":"bun run scripts/fetch:tokenMap.ts && bun run lint:fix","size":"size-limit","docs":"typedoc --tsconfig ./tsconfig/tsconfig.esm.json","docs:deploy":"bun run docs && gh-pages -d docs","changeset":"changeset","changeset:release":"bun run build && changeset publish","changeset:version":"changeset version && bun install --lockfile-only","changeset:release:canary":"original_name=$(bun run scripts/publish:canary.ts | grep ORIGINAL_NAME | cut -d'=' -f2) && npm publish && git checkout package.json && git tag -l '*-canary.*' | xargs git tag -d && git fetch --tags && git reset --hard && git clean -fd && echo \"Published canary version of $original_name as latest\"","esm:watch":"tsc --project ./tsconfig/tsconfig.esm.json --watch","cjs:watch":"tsc --project ./tsconfig/tsconfig.cjs.json --watch","esm:watch:aliases":"tsc-alias -p ./tsconfig/tsconfig.esm.json --watch","cjs:watch:aliases":"tsc-alias -p ./tsconfig/tsconfig.cjs.json --watch","build:cjs":"tsc --project ./tsconfig/tsconfig.cjs.json && tsc-alias -p ./tsconfig/tsconfig.cjs.json && echo '{\"type\":\"commonjs\"}' > ./dist/_cjs/package.json","build:esm":"tsc --project ./tsconfig/tsconfig.esm.json && tsc-alias -p ./tsconfig/tsconfig.esm.json && echo '{\"type\": \"module\",\"sideEffects\":false}' > ./dist/_esm/package.json","build:types":"tsc --project ./tsconfig/tsconfig.types.json && tsc-alias -p ./tsconfig/tsconfig.types.json","fetch:deployment":"bun run ./scripts/fetch:deployment.ts && bun run lint --apply-unsafe","fetch:deployment:raw":"bun run ./scripts/fetch:deployment.ts","fund:nexus":"bun run ./scripts/fund:nexus.ts"},"sideEffects":false,"simple-git-hooks":{"pre-commit":"bun run format && bun run lint:fix","commit-msg":"npx --no -- commitlint --edit ${1}"},"type":"module","types":"./dist/_types/index.d.ts","typings":"./dist/_types/index.d.ts","_id":"@bvvvp009/abstractjs@1.0.0","gitHead":"7736df3d8a18e89f9a011d7c39dc79a6de554eb3","bugs":{"url":"https://github.com/bvvvp009/abstractjs/issues"},"_nodeVersion":"22.17.0","_npmVersion":"9.8.1","dist":{"integrity":"sha512-Hc6TTvoUfKlLmXvUCQUGyArmq8cZ+GwbBzhFsM4ofmHpLBLOrftMWpk+CulpTEg3C3FrsIxj6wvdUDIqQTpCeQ==","shasum":"9d67f2af9b2d5166baac0510ead9f39f5f44b943","tarball":"https://registry.npmjs.org/@bvvvp009/abstractjs/-/abstractjs-1.0.0.tgz","fileCount":1187,"unpackedSize":3841477,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDc81WOg0HiNQB74ZkKqi446D9IpRV0B4u+lq9klyPB9wIhAIxMD8B3ZDWWq58oEPjwplf2P834J9gLwDPC9Z0jBZMc"}]},"_npmUser":{"name":"bvvvp009","email":"bvvvp009@gmail.com"},"directories":{},"maintainers":[{"name":"bvvvp009","email":"bvvvp009@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/abstractjs_1.0.0_1756469991757_0.264555799201063"},"_hasShrinkwrap":false}},"time":{"created":"2025-08-29T12:19:51.346Z","1.0.0":"2025-08-29T12:19:52.016Z","modified":"2025-08-29T12:19:52.297Z"},"maintainers":[{"name":"bvvvp009","email":"bvvvp009@gmail.com"}],"description":"SDK for Biconomy integration with support for account abstraction, smart accounts, ERC-4337.","homepage":"https://biconomy.io","keywords":["erc-7579","modular smart account","account abstraction","bvvvp009","sdk"],"repository":{"type":"git","url":"git+https://github.com/bvvvp009/abstractjs.git"},"author":{"name":"@bvvvp009"},"bugs":{"url":"https://github.com/bvvvp009/abstractjs/issues"},"license":"MIT","readme":"[![Biconomy](https://img.shields.io/badge/Made_with_%F0%9F%8D%8A_by-Biconomy-ff4e17?style=flat)](https://biconomy.io)\n[![Build](https://github.com/bcnmy/abstractjs/actions/workflows/build.yml/badge.svg)](https://github.com/bcnmy/abstractjs/actions)\n[![License MIT](https://img.shields.io/badge/License-MIT-blue?&style=flat)](./LICENSE) \n[![codecov](https://codecov.io/github/bcnmy/abstractjs/graph/badge.svg?token=DTdIR5aBDA)](https://codecov.io/github/bcnmy/abstractjs) \n[![install size](https://packagephobia.com/badge?p=@biconomy/abstractjs)](https://packagephobia.com/result?p=@biconomy/abstractjs)\n\n# abstractjs 🚀\n\n[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/bcnmy/abstractjs)\n\nThe Biconomy SDK is your all-in-one toolkit for building decentralized applications (dApps) with **ERC4337 Account Abstraction** and **Smart Accounts**. It is designed for seamless user experiences and offers non-custodial solutions for user onboarding, sending transactions (userOps), gas sponsorship and much more.\n\n## 📚 Table of Contents\n\n- [SDK 🚀](#sdk-)\n\n  - [📚 Table of Contents](#-table-of-contents)\n  - [🛠️ Quickstart](#-quickstart)\n    - [Installation](#installation)\n    - [Testing](#testing)\n  - [📄 Documentation and Resources](#-documentation-and-resources)\n  - [💼 Examples](#-examples)\n  - [License](#license)\n  - [Connect with Biconomy 🍊](#connect-with-biconomy-)\n\n## 🛠️ Quickstart\n\n### Installation\n\n1. **Add the package:**\n```bash\nbun add @biconomy/abstractjs viem @rhinestone/module-sdk\n```\n\n2. **Basic Usage:**\n```typescript\nimport { toMultichainNexusAccount, mcUSDC, createMeeClient } from \"@biconomy/abstractjs\";\nimport { base, optimism } from \"viem/chains\";\nimport { privateKeyToAccount } from \"viem/accounts\";\nimport { http } from \"viem\";\n\nconst eoaAccount = privateKeyToAccount(`0x${process.env.PRIVATE_KEY}`)\nconst mcNexus = await toMultichainNexusAccount({\n  signer: eoaAccount,\n  chainConfigurations: [\n    {\n      chain: base,\n      transport: http(),\n      version: getMEEVersion(DEFAULT_MEE_VERSION)\n    },\n    {\n      chain: optimism,\n      transport: http(),\n      version: getMEEVersion(DEFAULT_MEE_VERSION)\n    }\n  ]\n})\nconst meeClient = await createMeeClient({ account: mcNexus })\n\nconst quote = await meeClient.getQuote({\n  instructions: [{\n    calls: [{ to: \"0x...\", value: 1n, gasLimit: 100000n }],\n    chainId: base.id\n  }],\n  feeToken: {\n    address: mcUSDC.addressOn(base.id),\n    chainId: base.id\n  }\n})\n\n// Execute the quote and get back a transaction hash\n// This sends the transaction to the network\nconst { hash } = await meeClient.executeQuote({ quote })\n```\n\n### Testing\n\n**Prerequisites:**\n- [Node.js](https://nodejs.org/en/download/package-manager) *(v22 or higher)*\n- [Bun](https://bun.sh/) package manager\n- [Foundry](https://book.getfoundry.sh/getting-started/installation)\n- [Yarn](https://www.npmjs.com/package/yarn) *(must be 1.1.x, not 3.x)*. This is necessary because the nexus contracts repo relies on yarn.\n\n**Setup:**\n```bash\nbun install --frozen-lockfile\n```\n\n**Funding test accounts:**\n\n```bash\n# Fund test nexus accounts with native tokens and USDC, using a funded PRIVATE_KEY master account\nbun run fund:nexus\n```\n\n**Running Tests:**\n```bash\n# Run all tests\nbun run test\n\n# Run tests in watch mode for a specific subset of tests (by test description)\nbun run test:watch -t=mee\n```\n\nFor detailed information about the testing framework, network configurations, and debugging guidelines, please refer to our [Testing Documentation](./src/test/README.md).\n\n## 📄 Documentation and Resources\n\nFor a comprehensive understanding of our project and to contribute effectively, please refer to the following resources:\n\n- [**Biconomy Documentation**](https://docs.biconomy.io)\n- [**Biconomy Dashboard**](https://dashboard.biconomy.io)\n- [**API Documentation**](https://bcnmy.github.io/abstractjs)\n- [**Contributing Guidelines**](./CONTRIBUTING.md): Learn how to contribute to our project, from code contributions to documentation improvements.\n- [**Code of Conduct**](./CODE_OF_CONDUCT.md): Our commitment to fostering an open and welcoming environment.\n- [**Security Policy**](./SECURITY.md): Guidelines for reporting security vulnerabilities.\n- [**Changelog**](./CHANGELOG.md): Stay updated with the changes and versions\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](./LICENSE) file for details\n\n## Connect with Biconomy 🍊\n\n[![Website](https://img.shields.io/badge/🍊-Website-ff4e17?style=for-the-badge&logoColor=white)](https://biconomy.io) [![Telegram](https://img.shields.io/badge/Telegram-2CA5E0?style=for-the-badge&logo=telegram&logoColor=white)](https://t.me/biconomy) [![Twitter](https://img.shields.io/badge/Twitter-1DA1F2?style=for-the-badge&logo=twitter&logoColor=white)](https://twitter.com/biconomy) [![LinkedIn](https://img.shields.io/badge/LinkedIn-0077B5?style=for-the-badge&logo=linkedin&logoColor=white)](https://www.linkedin.com/company/biconomy) [![Discord](https://img.shields.io/badge/Discord-7289DA?style=for-the-badge&logo=discord&logoColor=white)](https://discord.gg/biconomy) [![YouTube](https://img.shields.io/badge/YouTube-FF0000?style=for-the-badge&logo=youtube&logoColor=white)](https://www.youtube.com/channel/UC0CtA-Dw9yg-ENgav_VYjRw) [![GitHub](https://img.shields.io/badge/GitHub-181717?style=for-the-badge&logo=github&logoColor=white)](https://github.com/bcnmy/)","readmeFilename":"README.md","_rev":"1-6b96576504615f13c421b4a94ed2966d"}