{"_id":"@bobanetwork/bundler_sdk","_rev":"6-e07c11d26897c9d3a9d035949f0bc52a","time":{"created":"2023-05-10T14:16:22.509Z","0.2.3":"2023-04-27T15:04:02.491Z","modified":"2023-06-06T15:13:10.894Z","0.3.0":"2023-05-10T14:16:22.953Z","0.3.1":"2023-06-01T12:24:22.969Z","0.3.1-beta.0":"2023-06-06T14:07:38.301Z","0.3.1-beta.1":"2023-06-06T15:13:10.785Z"},"name":"@bobanetwork/bundler_sdk","dist-tags":{"latest":"0.3.1-beta.1","beta":"0.3.1-beta.0"},"versions":{"0.3.0":{"name":"@bobanetwork/bundler_sdk","version":"0.3.0","main":"./dist/index.js","license":"MIT","scripts":{"build":"hardhat compile && tsc","clean":"rimraf  dist/ cache node_modules ./tsconfig.tsbuildinfo","lint":"eslint -f unix .","lint-fix":"eslint -f unix . --fix","test":"hardhat test","test:coverage":"COVERAGE=1 hardhat coverage","hardhat-test":"hardhat test","tsc":"tsc","watch-tsc":"tsc -w --preserveWatchOutput"},"dependencies":{"@ethersproject/abi":"^5.7.0","@boba/accountabstraction":"^1.0.0","@boba/bundler_utils":"^0.2.3","@ethersproject/abstract-provider":"^5.7.0","@ethersproject/abstract-signer":"^5.7.0","@ethersproject/networks":"^5.7.0","@ethersproject/properties":"^5.7.0","@ethersproject/providers":"^5.7.0","@types/debug":"^4.1.7","debug":"^4.3.4","ethers":"^5.7.0","hardhat-gas-reporter":"^1.0.8"},"devDependencies":{"@typechain/ethers-v5":"^10.1.0","@typechain/hardhat":"^6.1.2","@types/mocha":"^9.1.0","@nomiclabs/hardhat-etherscan":"^3.0.0","@nomicfoundation/hardhat-chai-matchers":"^1.0.3","@nomicfoundation/hardhat-network-helpers":"^1.0.8","@nomicfoundation/hardhat-toolbox":"^1.0.2","@nomiclabs/hardhat-ethers":"^2.0.2","chai":"^4.3.6","hardhat":"^2.12.5","solidity-coverage":"^0.7.21","ts-node":">=8.0.0","typechain":"^8.1.0"},"types":"./dist/index.d.ts","gitHead":"86239119a108e6e92a6693a80c6d66384efb1f85","description":"This package provides 2 APIs for using UserOperations:","_id":"@bobanetwork/bundler_sdk@0.3.0","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-F29WsdoHmw1mjYUJa0GhX24hzdxprYfuCMyv1Fk8eKNpRSQYMN8ME/X9QgjzU5YI5RpAKGVIomPkSkO7uLUEnw==","shasum":"c976d4e8539d7287f1b0db421d99cd12d8a061dd","tarball":"https://registry.npmjs.org/@bobanetwork/bundler_sdk/-/bundler_sdk-0.3.0.tgz","fileCount":2,"unpackedSize":3468,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGScnul8LfEUDnVsWe1yqofxq2z709OjCwid/BKyVW1AAiB7Hp2tzHXPZU8p4Z41NqY0RD3CUTDiKE1VGPIGobsT7Q=="}]},"_npmUser":{"name":"boba.network","email":"chaininfra@boba.foundation"},"directories":{},"maintainers":[{"name":"boba.network","email":"chaininfra@boba.foundation"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bundler_sdk_0.3.0_1683728182616_0.5494947853350629"},"_hasShrinkwrap":false},"0.3.1":{"name":"@bobanetwork/bundler_sdk","version":"0.3.1","main":"./dist/index.js","keywords":["boba","account abstraction","bundler","sdk","smart wallets","web3","solidity","ethereum","smart","contracts","account-abstraction","eip-4337"],"repository":{"type":"git","url":"git+https://github.com/bobanetwork/boba.git#develop"},"homepage":"https://boba.network","bugs":{"url":"https://github.com/bobanetwork/issues"},"license":"MIT","scripts":{"build":"hardhat compile && tsc","clean":"rimraf  dist/ cache node_modules ./tsconfig.tsbuildinfo","lint":"eslint -f unix .","lint-fix":"eslint -f unix . --fix","test":"hardhat test","test:coverage":"COVERAGE=1 hardhat coverage","hardhat-test":"hardhat test","tsc":"tsc","watch-tsc":"tsc -w --preserveWatchOutput"},"dependencies":{"@boba/accountabstraction":"^1.0.0","@boba/bundler_utils":"^0.2.3","@ethersproject/abi":"^5.7.0","@ethersproject/abstract-provider":"^5.7.0","@ethersproject/abstract-signer":"^5.7.0","@ethersproject/networks":"^5.7.0","@ethersproject/properties":"^5.7.0","@ethersproject/providers":"^5.7.0","@types/debug":"^4.1.7","debug":"^4.3.4","ethers":"^5.7.0","hardhat-gas-reporter":"^1.0.8"},"devDependencies":{"@nomicfoundation/hardhat-chai-matchers":"^1.0.3","@nomicfoundation/hardhat-network-helpers":"^1.0.8","@nomicfoundation/hardhat-toolbox":"^1.0.2","@nomiclabs/hardhat-ethers":"^2.0.2","@nomiclabs/hardhat-etherscan":"^3.0.0","@typechain/ethers-v5":"^10.1.0","@typechain/hardhat":"^6.1.2","@types/mocha":"^9.1.0","chai":"^4.3.6","hardhat":"^2.12.5","solidity-coverage":"^0.7.21","ts-node":">=8.0.0","typechain":"^8.1.0"},"types":"./dist/index.d.ts","gitHead":"ce2523cdf4ff00027ad085083b4e5e2de56a43fd","description":"This package provides 2 APIs for using UserOperations:","_id":"@bobanetwork/bundler_sdk@0.3.1","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-3QVV6XVHId3QCu27zxnO/s6VumI3hP+69+YH5MAmDkEVO/fYHjM5FnjRf8gR8YRhSP49ZbxBJqo3JoBUHwpYug==","shasum":"b65f2fc77689084767a60f4ea91bfde7ad12c467","tarball":"https://registry.npmjs.org/@bobanetwork/bundler_sdk/-/bundler_sdk-0.3.1.tgz","fileCount":2,"unpackedSize":4135,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBU/HUkLUHx2z/iSFN2+VotZBhbs6fntXiGQy720hhwDAiBw+zScrueDQtjjD8ybGDUUjiZahDH713A7lEZ8xKN8Qw=="}]},"_npmUser":{"name":"boba.network","email":"chaininfra@boba.foundation"},"directories":{},"maintainers":[{"name":"boba.network","email":"chaininfra@boba.foundation"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bundler_sdk_0.3.1_1685622262802_0.7225246521538213"},"_hasShrinkwrap":false},"0.3.1-beta.0":{"name":"@bobanetwork/bundler_sdk","version":"0.3.1-beta.0","main":"./dist/index.js","keywords":["boba","account abstraction","bundler","sdk","smart wallets","web3","solidity","ethereum","smart","contracts","account-abstraction","eip-4337"],"repository":{"type":"git","url":"git+https://github.com/bobanetwork/boba.git#develop"},"homepage":"https://boba.network","bugs":{"url":"https://github.com/bobanetwork/issues"},"license":"MIT","scripts":{"build":"hardhat compile && tsc","clean":"rimraf  dist/ cache node_modules ./tsconfig.tsbuildinfo","lint":"eslint -f unix .","lint-fix":"eslint -f unix . --fix","test":"hardhat test","test:coverage":"COVERAGE=1 hardhat coverage","hardhat-test":"hardhat test","tsc":"tsc","watch-tsc":"tsc -w --preserveWatchOutput"},"dependencies":{"@boba/accountabstraction":"file:../account-abstraction","@boba/bundler_utils":"file:../bundler_utils","@ethersproject/abi":"^5.7.0","@ethersproject/abstract-provider":"^5.7.0","@ethersproject/abstract-signer":"^5.7.0","@ethersproject/networks":"^5.7.0","@ethersproject/properties":"^5.7.0","@ethersproject/providers":"^5.7.0","@types/debug":"^4.1.7","debug":"^4.3.4","ethers":"^5.7.0","hardhat-gas-reporter":"^1.0.8"},"devDependencies":{"@nomicfoundation/hardhat-chai-matchers":"^1.0.3","@nomicfoundation/hardhat-network-helpers":"^1.0.8","@nomicfoundation/hardhat-toolbox":"^1.0.2","@nomiclabs/hardhat-ethers":"^2.0.2","@nomiclabs/hardhat-etherscan":"^3.0.0","@typechain/ethers-v5":"^10.1.0","@typechain/hardhat":"^6.1.2","@types/mocha":"^9.1.0","chai":"^4.3.6","hardhat":"^2.12.5","solidity-coverage":"^0.7.21","ts-node":">=8.0.0","typechain":"^8.1.0"},"types":"./dist/index.d.ts","readme":"# SDK to create and send UserOperation\n\nThis package provides 2 APIs for using UserOperations:\n\n- Low-level \"walletAPI\"\n- High-level Provider\n\n## Documentation\nYou can find more documentation about Boba, the Bundler SDK, etc. here:\n- [Official Boba Documentation](https://docs.boba.network/for-developers)\n- [Official NPM Package](https://www.npmjs.com/package/@bobanetwork/bundler_sdk)\n\n## LowLevel API:\n\n### BaseWalletAPI\n\nAn abstract base-class to create UserOperation for a contract wallet.\n\n### SimpleWalletAPI\n\nAn implementation of the BaseWalletAPi, for the SimpleWallet sample of account-abstraction.\n\n```typescript\nowner = provider.getSigner()\nconst walletAPI = new SimpleWalletAPI({\n    provider,\n    entryPointAddress,\n    owner,\n    factoryAddress\n})\nconst op = await walletAPi.createSignedUserOp({\n  target: recipient.address,\n  data: recipient.interface.encodeFunctionData('something', ['hello'])\n})\n```\n\n## High-Level Provider API\n\nA simplified mode that doesn't require a different wallet extension.\nInstead, the current provider's account is used as wallet owner by calling its \"Sign Message\" operation.\n\nThis can only work for wallets that use an EIP-191 (\"Ethereum Signed Message\") signatures (like our sample SimpleWallet)\nAlso, the UX is not great (the user is asked to sign a hash, and even the wallet address is not mentioned, only the signer)\n\n```typescript\nimport { wrapProvider } from '@bobanetwork/bundler_sdk'\n\n//use this account as wallet-owner (which will be used to sign the requests)\nconst signer = provider.getSigner()\nconst config = {\n  chainId: await provider.getNetwork().then(net => net.chainId),\n  entryPointAddress,\n  bundlerUrl: 'http://localhost:3000/rpc'\n}\nconst aaProvider = await wrapProvider(provider, config, aasigner, entryPointWrapperAddress)\nconst walletAddress = await aaProvider.getSigner().getAddress()\n\n// send some eth to the wallet Address: wallet should have some balance to pay for its own creation, and for calling methods.\n\nconst myContract = new Contract(abi, aaProvider)\n\n// this method will get called from the wallet address, through account-abstraction EntryPoint\nawait myContract.someMethod()\n```\n\n","readmeFilename":"README.md","gitHead":"a432b73ff8b6cfa00e904db8c28d84684bf40d01","description":"This package provides 2 APIs for using UserOperations:","_id":"@bobanetwork/bundler_sdk@0.3.1-beta.0","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-uD+qraJdxEzoD2uVLxWr4KCBJpc36V4KrN10v979ZRua2jVKu8aa8iF3myqF/Jpyj7anxxdSFJaE4Wd1RQ6yIA==","shasum":"fc8b9745acef8565c47c0bdbadbbfd01b5109cdf","tarball":"https://registry.npmjs.org/@bobanetwork/bundler_sdk/-/bundler_sdk-0.3.1-beta.0.tgz","fileCount":2,"unpackedSize":4178,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDLFMYjlywhjOLlxwFAUk392GLN42NKDN0jOd/sF88cLwIhANm9Lt+Zcea6h+Bw4vN2IaMV8FEzVh0/xcoOlfi63QVs"}]},"_npmUser":{"name":"boba.network","email":"chaininfra@boba.foundation"},"directories":{},"maintainers":[{"name":"boba.network","email":"chaininfra@boba.foundation"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bundler_sdk_0.3.1-beta.0_1686060458164_0.6889368914321559"},"_hasShrinkwrap":false},"0.3.1-beta.1":{"name":"@bobanetwork/bundler_sdk","version":"0.3.1-beta.1","main":"./dist/index.js","keywords":["boba","account abstraction","bundler","sdk","smart wallets","web3","solidity","ethereum","smart","contracts","account-abstraction","eip-4337"],"repository":{"type":"git","url":"git+https://github.com/bobanetwork/boba.git#develop"},"homepage":"https://boba.network","bugs":{"url":"https://github.com/bobanetwork/issues"},"license":"MIT","scripts":{"build":"hardhat compile && tsc","clean":"rimraf  dist/ cache node_modules ./tsconfig.tsbuildinfo","lint":"eslint -f unix .","lint-fix":"eslint -f unix . --fix","test":"hardhat test","test:coverage":"COVERAGE=1 hardhat coverage","hardhat-test":"hardhat test","tsc":"tsc","watch-tsc":"tsc -w --preserveWatchOutput"},"dependencies":{"@bobanetwork/accountabstraction":"^1.0.0","@bobanetwork/bundler_utils":"^0.2.3","@ethersproject/abi":"^5.7.0","@ethersproject/abstract-provider":"^5.7.0","@ethersproject/abstract-signer":"^5.7.0","@ethersproject/networks":"^5.7.0","@ethersproject/properties":"^5.7.0","@ethersproject/providers":"^5.7.0","@types/debug":"^4.1.7","debug":"^4.3.4","ethers":"^5.7.0","hardhat-gas-reporter":"^1.0.8"},"devDependencies":{"@nomicfoundation/hardhat-chai-matchers":"^1.0.3","@nomicfoundation/hardhat-network-helpers":"^1.0.8","@nomicfoundation/hardhat-toolbox":"^1.0.2","@nomiclabs/hardhat-ethers":"^2.0.2","@nomiclabs/hardhat-etherscan":"^3.0.0","@typechain/ethers-v5":"^10.1.0","@typechain/hardhat":"^6.1.2","@types/mocha":"^9.1.0","chai":"^4.3.6","hardhat":"^2.12.5","solidity-coverage":"^0.7.21","ts-node":">=8.0.0","typechain":"^8.1.0"},"types":"./dist/index.d.ts","gitHead":"a432b73ff8b6cfa00e904db8c28d84684bf40d01","description":"This package provides 2 APIs for using UserOperations:","_id":"@bobanetwork/bundler_sdk@0.3.1-beta.1","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-prsYzPPdFbHj3nIgfj4iIUsF1ltFTTcgE8d7bkA4El7sOLmZn3XCD1bxP1wgG1U4ONpBGZrLozJd4qqtC6LtUg==","shasum":"7f9caeaa5a9c4617a3f6c089ed0f59279577193a","tarball":"https://registry.npmjs.org/@bobanetwork/bundler_sdk/-/bundler_sdk-0.3.1-beta.1.tgz","fileCount":2,"unpackedSize":4156,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCdHBiNQvvxmx4L0tx/TtY/7k775K4IAHS8jHCh691IxgIgC7XTwySv5DkqAdecUPAOeWmWwets2G6qBewCE4Ndnbw="}]},"_npmUser":{"name":"boba.network","email":"chaininfra@boba.foundation"},"directories":{},"maintainers":[{"name":"boba.network","email":"chaininfra@boba.foundation"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bundler_sdk_0.3.1-beta.1_1686064390622_0.8155168447178136"},"_hasShrinkwrap":false}},"maintainers":[{"name":"boba.network","email":"chaininfra@boba.foundation"}],"description":"This package provides 2 APIs for using UserOperations:","license":"MIT","readme":"# SDK to create and send UserOperation\n\nThis package provides 2 APIs for using UserOperations:\n\n- Low-level \"walletAPI\"\n- High-level Provider\n\n## Documentation\nYou can find more documentation about Boba, the Bundler SDK, etc. here:\n- [Official Boba Documentation](https://docs.boba.network/for-developers)\n- [Official NPM Package](https://www.npmjs.com/package/@bobanetwork/bundler_sdk)\n\n## LowLevel API:\n\n### BaseWalletAPI\n\nAn abstract base-class to create UserOperation for a contract wallet.\n\n### SimpleWalletAPI\n\nAn implementation of the BaseWalletAPi, for the SimpleWallet sample of account-abstraction.\n\n```typescript\nowner = provider.getSigner()\nconst walletAPI = new SimpleWalletAPI({\n    provider,\n    entryPointAddress,\n    owner,\n    factoryAddress\n})\nconst op = await walletAPi.createSignedUserOp({\n  target: recipient.address,\n  data: recipient.interface.encodeFunctionData('something', ['hello'])\n})\n```\n\n## High-Level Provider API\n\nA simplified mode that doesn't require a different wallet extension.\nInstead, the current provider's account is used as wallet owner by calling its \"Sign Message\" operation.\n\nThis can only work for wallets that use an EIP-191 (\"Ethereum Signed Message\") signatures (like our sample SimpleWallet)\nAlso, the UX is not great (the user is asked to sign a hash, and even the wallet address is not mentioned, only the signer)\n\n```typescript\nimport { wrapProvider } from '@bobanetwork/bundler_sdk'\n\n//use this account as wallet-owner (which will be used to sign the requests)\nconst signer = provider.getSigner()\nconst config = {\n  chainId: await provider.getNetwork().then(net => net.chainId),\n  entryPointAddress,\n  bundlerUrl: 'http://localhost:3000/rpc'\n}\nconst aaProvider = await wrapProvider(provider, config, aasigner, entryPointWrapperAddress)\nconst walletAddress = await aaProvider.getSigner().getAddress()\n\n// send some eth to the wallet Address: wallet should have some balance to pay for its own creation, and for calling methods.\n\nconst myContract = new Contract(abi, aaProvider)\n\n// this method will get called from the wallet address, through account-abstraction EntryPoint\nawait myContract.someMethod()\n```\n\n","readmeFilename":"README.md","homepage":"https://boba.network","keywords":["boba","account abstraction","bundler","sdk","smart wallets","web3","solidity","ethereum","smart","contracts","account-abstraction","eip-4337"],"repository":{"type":"git","url":"git+https://github.com/bobanetwork/boba.git#develop"},"bugs":{"url":"https://github.com/bobanetwork/issues"}}