{"_id":"@bunzz/deploy-sdk","_rev":"4-0e74280a4bcde8ecedbace35e15358b0","name":"@bunzz/deploy-sdk","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@bunzz/deploy-sdk","version":"0.1.0","author":{"name":"Bunzz Pte. Ltd."},"license":"MIT","_id":"@bunzz/deploy-sdk@0.1.0","maintainers":[{"name":"hitsuji-haneta","email":"hitsuji-haneta@hotmail.com"}],"homepage":"https://github.com/BunzzDev/deploy-sdk#readme","bugs":{"url":"https://github.com/BunzzDev/deploy-sdk/issues"},"dist":{"shasum":"ebd55c737d04fa04642452b5fb907910590b60ca","tarball":"https://registry.npmjs.org/@bunzz/deploy-sdk/-/deploy-sdk-0.1.0.tgz","fileCount":10,"integrity":"sha512-iSelA5eIdVfQ3II+3/ZQxGuGgORGtii/v4r3g5J5PTFwKsacu4WAXBsCjX8Dv35KCLJf4Wo9X20s7LSmcyOjsw==","signatures":[{"sig":"MEUCIHiuNZo0Xbn9Dq1T/ZMEcHBBTEd9B0bCAdX5x4pmQSodAiEA9T33iEN3k3W7EFt42GXW0EF3/IkmKpiq5/Axn0y9ejM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2355724,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkNhKRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpcVw/7BSZDJKM1x2tfZnIg/K4+QlnEDXzJuWEqGka/AY1oxNTL/BgK\r\ntgW1tm2TLnJn/HFmeE8kbGJwNSOX7QWiEe5pjGXtJAmovBfULt2jx2Z4fVcI\r\neio9Mubx7IHoRIAJSFG0cZAWyPaZqguPc5ThjvA6NQbQVfpRyMXKRfv5vmAe\r\n6Cr7+2jjssf4GP5lg6yvd/gXiFejdzfoScVdimvR85cjuwZBmC1Je7vbapSy\r\nYj1tfiwA/JQVHovFMUEx7pU8a2j4JoAPq/OXRaTY327FgR+F850u5O1bycQH\r\nOHGiUh8E6Gd4I/i9n0Q4nUir2PWzB36xUhZOo2ZMkKUrqnXlJF3fJqEV3GNR\r\nedVNGeO9o7F8V9nt+hud9K8m4a9Lagqa3YE69zn4UUPn+xM1CGiFIviIwEWV\r\nRnLs4DpvIBYM74B7aMtiXeFAcMFyQXz3dF6cruXc9lmhk2Iml9nkaNrqdLmy\r\nYhTeF41gaHzjZgYwSXIzv6hxEM2iukXSMsNwzJ6dGAxHTJsRj9WofIaOgWTz\r\nDjCgUrdX4gj4sddIFOfgiYVUosnCW8OtfJhAliOjxgKqvWToANbp7h2pR8Rh\r\nO9O/10VVWNynl9y6L2PTUSNZgsxTfDmuX/8hEb93QYKdIwLhq02iRd7k0sdS\r\nb6WJsv/83BnmV1rlPhsR+Z/mlDuZIRgpjAQ=\r\n=hWRO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.cjs.js","types":"lib/index.d.ts","module":"lib/index.esm.js","gitHead":"2e3b60d0df5bc75015aecf34b6fa716b90fa6e55","private":false,"scripts":{"lint":"npm-run-all tsc-test eslint","test":"hardhat test","build":"npm-run-all clean esbuild tsc-declaration tsc-test","clean":"rimraf lib","eslint":"eslint --ext .js,.jsx,.ts,.tsx src --fix","esbuild":"node ./esbuild.js","tsc-test":"tsc --project . --noEmit","prepublish":"yarn build","tsc-declaration":"tsc --emitDeclarationOnly"},"_npmUser":{"name":"hitsuji-haneta","email":"hitsuji-haneta@hotmail.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/BunzzDev/deploy-sdk.git","type":"git"},"_npmVersion":"8.13.2","description":"An SDK to deploy smart contracts from frontend by Bunzz","directories":{},"_nodeVersion":"18.6.0","dependencies":{"ethers":"^5.7.0","@ethersproject/abstract-provider":"^5.7.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.7","eslint":"^8.37.0","rimraf":"^4.4.1","esbuild":"^0.17.15","hardhat":"^2.13.0","ts-node":"^10.9.1","prettier":"^2.8.7","typechain":"^8.1.1","typescript":"^5.0.3","@types/chai":"^4.3.4","@types/node":"^18.15.11","@types/uuid":"^9.0.1","npm-run-all":"^4.1.5","@types/mocha":"^10.0.1","solidity-coverage":"^0.8.2","@typechain/hardhat":"^6.1.5","@typechain/ethers-v5":"^10.2.0","hardhat-gas-reporter":"^1.0.9","eslint-config-prettier":"^8.8.0","eslint-plugin-prettier":"^4.2.1","@ethersproject/providers":"^5.7.2","@nomiclabs/hardhat-ethers":"^2.2.2","@nomiclabs/hardhat-waffle":"^2.0.5","@typescript-eslint/parser":"^5.57.1","@nomiclabs/hardhat-etherscan":"^3.1.7","@nomicfoundation/hardhat-toolbox":"^2.0.2","@typescript-eslint/eslint-plugin":"^5.57.1","@nomicfoundation/hardhat-chai-matchers":"^1.0.6","@nomicfoundation/hardhat-network-helpers":"^1.0.8"},"_npmOperationalInternal":{"tmp":"tmp/deploy-sdk_0.1.0_1681265297236_0.45031506276197986","host":"s3://npm-registry-packages"}}},"time":{"created":"2023-04-12T02:08:17.175Z","modified":"2024-12-16T07:10:17.257Z","0.1.0":"2023-04-12T02:08:17.489Z"},"bugs":{"url":"https://github.com/BunzzDev/deploy-sdk/issues"},"author":{"name":"Bunzz Pte. Ltd."},"license":"MIT","homepage":"https://github.com/BunzzDev/deploy-sdk#readme","repository":{"url":"git+https://github.com/BunzzDev/deploy-sdk.git","type":"git"},"description":"An SDK to deploy smart contracts from frontend by Bunzz","maintainers":[{"email":"hitsuji-haneta@hotmail.com","name":"hitsuji-haneta"},{"email":"nail.halimov.rus@gmail.com","name":"nailkhalimov"}],"readme":"# Bunzz Deploy SDK\n\n## NOTE\nThe Bunzz Deploy SDK is still in beta.\nThe behavior depends on the API server and might be changed without backward compatibility.  \n\n## Overview\n[Bunzz](https://bunzz.dev) is a DApp development platform to make smart contract development easy. Bunzz has a \"smart contract hub\" function as a registry/library of smart contracts like Docker Hub.  \n\nThe Bunzz Deploy SDK is a set of tools to allow end-users of your DApp to clone smart contracts by user action.  \nWith the SDK, developers can easily integrate the cloning functionality provided by Bunzz's smart contract hub, eliminating the need to develop and maintain their own cloning function.  \n\nMany DApps, including no-code web3 tools like DAO platforms, protocols like Uniswap, and NFT marketplaces that allow users to create their own NFT projects, require deploying smart contracts.  \nHowever, implementing this functionality can be a time-consuming and error-prone task for developers.  \n\nWith the Bunzz Deploy SDK, developers can quickly and easily integrate the cloning functionality into their DApps, allowing users to clone smart contracts with a simple user action.  \nThis can greatly simplify the development process, reduce the risk of errors, and speed up time to market.  \n\n## Features\n- Simplified contract cloning with a simple user action\n- Integration with Bunzz's smart contract hub\n- Reduces development time and risk of errors\n\n## Getting Started\n\n### installation\n```\nnpm install @bunzz/deploy-sdk ethers@^5.7.0\n```\n**NOTE: For now, `@bunzz/deploy-sdk` is not supporting ethers ver 6.x.x**\n\n### using Deploy SDK\n1. Find an appropriate smart contract module from the [explorer](https://app.bunzz.dev/explorer).\n2. If you couldn't find a good one, you can upload your own smart contract module from the [repository page](https://app.bunzz.dev/repository). (It requires signing up)\nTo get started with the Bunzz SDK, follow the installation and setup instructions in the documentation. Once set up, you can integrate the SDK into your DApp to enable contract cloning.\n3. Copy the module template ID from the module template page.\n4. You can easily implement a deploy function with the SDK. :rocket\n```\nimport { deploy } from '@bunzz/deploy-sdk';\nimport { providers } from 'ethers';\n\nconst TEMPLATE_ID = '<TEMPLATE_ID>';\n\nconst cloneContract = async () => {\n  // get an ethers' style Signer.\n  const signer = getSigner();\n\n  // Arguments for the constructor as an array.\n  // The types must follow the ethers style.\n  const arg = ['dummy', 123456];\n\n  // The return value is the same as the ethers one.\n  const tx = await deploy(TEMPLATE_ID, signer, args);\n\n  // You can get receipt as well.\n  const receipt = await tx.wait();\n  \n  return receipt;\n};\n\nconst getSigner = () => {\n  // Here is an example of Metamask.\n  const provider = new providers.Web3Provider(window.ethereum);\n  return provider.getSigner();\n};\n\n```\n\n\n## License\nThe Bunzz SDK is released under the [MIT License].\n","readmeFilename":"README.md"}