{"_id":"arts-dao","_rev":"5-c1cf6d8042268617aae33eaee4564057","name":"arts-dao","dist-tags":{"latest":"1.1.5"},"versions":{"1.0.0":{"name":"arts-dao","version":"1.0.0","author":{"name":"arts"},"license":"ISC","_id":"arts-dao@1.0.0","maintainers":[{"name":"artknight404","email":"artknight404@gmail.com"}],"dist":{"shasum":"526dc09d023ee323dc39b52d7e1a136bdc3e9dfb","tarball":"https://registry.npmjs.org/arts-dao/-/arts-dao-1.0.0.tgz","fileCount":16,"integrity":"sha512-bBWLUQDWbfkfzUm//VZ9q9MzbrqUvZBZCq1GyyBhy40CSt+CPkd5El75hLphsnkP9fISM6dZ0Rz9CImtQ8GVbg==","signatures":[{"sig":"MEQCIDfmGga/P0Jv4lTKVkexou5UlzF645fkevO8Y31DLvx5AiBlcK6nhdIbfov96RPAUttNfJeXXGjxyWkyyH12YpsTBQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":189914},"main":"index.js","gitHead":"5fc6fb73ef233ba9afc0ebbddbd6ead1dd9a1cd7","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"artknight404","email":"artknight404@gmail.com"},"_npmVersion":"10.2.3","description":"First, run the development server:","directories":{},"_nodeVersion":"20.10.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/arts-dao_1.0.0_1709338786614_0.05818756166930594","host":"s3://npm-registry-packages"}},"1.1.2":{"name":"arts-dao","version":"1.1.2","_id":"arts-dao@1.1.2","maintainers":[{"name":"artknight404","email":"artknight404@gmail.com"}],"dist":{"shasum":"c2273fe9ad910a9cf00f5e1e37171bf3477babd8","tarball":"https://registry.npmjs.org/arts-dao/-/arts-dao-1.1.2.tgz","fileCount":12,"integrity":"sha512-7Z86MIQN/swU2yezGpCmTBC3H+7onswFSFfJ9HJSTFCi7FlqHkeedFKcOBDHTn7DGfKS6TL0Z0eqXen7OYvCLA==","signatures":[{"sig":"MEYCIQDoPUIQ+pj4FdludT/M5jl/qvdcZtgSLiYkOIHN0g/5RwIhAIuNTjkzHiPvQ3WYbNFHLlAUSs10gpyrSYsA824sU0Zt","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":39868},"gitHead":"e5822594a06ddc62dcc241929badf4e2d5bb75d9","private":false,"scripts":{"dev":"next dev","lint":"next lint","build":"next build","start":"next start"},"_npmUser":{"name":"artknight404","email":"artknight404@gmail.com"},"_npmVersion":"10.2.3","description":"This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).","directories":{},"_nodeVersion":"20.10.0","dependencies":{"next":"14.1.1","react":"^18","react-dom":"^18"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8","typescript":"^5","@types/node":"^20","@types/react":"^18","@types/react-dom":"^18","eslint-config-next":"14.1.1"},"_npmOperationalInternal":{"tmp":"tmp/arts-dao_1.1.2_1709447907490_0.6564854786554095","host":"s3://npm-registry-packages"}},"1.1.3":{"name":"arts-dao","version":"1.1.3","keywords":["next-js"],"author":{"name":"artknight404"},"license":"ISC","_id":"arts-dao@1.1.3","maintainers":[{"name":"artknight404","email":"artknight404@gmail.com"}],"homepage":"https://github.com/artknight404/arts-dao#readme","bugs":{"url":"https://github.com/artknight404/arts-dao/issues"},"dist":{"shasum":"a43365522d9e926827543decfc9078d794980699","tarball":"https://registry.npmjs.org/arts-dao/-/arts-dao-1.1.3.tgz","fileCount":16,"integrity":"sha512-uYVn/7sOFYSF27GxNiHD18Sfpt7cNd0lPLVT5Z2HnbJzGHv7zNfKCdVXxfekLxlZtOEae3X4W2IyCXPRpGGl/w==","signatures":[{"sig":"MEYCIQDzdUZLtR2LxpceY7PL+XVVbNwEcfYmmycr8E7KPNkN+AIhANwNpYpKC2wSn9kmqSSI+TpuamI2euY4MrlBVKjemCNf","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":190220},"main":"index.js","gitHead":"3005cbcdcf4ab5dd5190bbe5f2aeabb4651f59c2","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"artknight404","email":"artknight404@gmail.com"},"repository":{"url":"git+https://github.com/artknight404/arts-dao.git","type":"git"},"_npmVersion":"10.2.3","description":"First, run the development server:","directories":{},"_nodeVersion":"20.10.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/arts-dao_1.1.3_1709614709536_0.7698563953724686","host":"s3://npm-registry-packages"}},"1.1.4":{"name":"arts-dao","version":"1.1.4","keywords":["next-js"],"author":{"name":"artknight404"},"license":"ISC","_id":"arts-dao@1.1.4","maintainers":[{"name":"artknight404","email":"artknight404@gmail.com"}],"homepage":"https://github.com/artknight404/arts-dao#readme","bugs":{"url":"https://github.com/artknight404/arts-dao/issues"},"dist":{"shasum":"0d9d5ba1b80a6a7e0bad43c7b84b9d4e711a2e21","tarball":"https://registry.npmjs.org/arts-dao/-/arts-dao-1.1.4.tgz","fileCount":16,"integrity":"sha512-QrhUEMfIwfI4mNIrUfo+pmxPDH2ZPCCa/drheFgCqz2flV8FqC7tJzH7ME4N/sPL3Yxsa1aNHsNni6x0z70u2Q==","signatures":[{"sig":"MEUCIQDlbd4+mXpdPYaTp+Da/SLP6UNQvMWGip1kFcVFTGTujgIgf05n9Np4QNIzkmI05dwz71u+EZk6GY2+aQA+/QbZllQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":190279},"main":"index.js","gitHead":"e192755199cfa2c613625f67811c65684dc96ae9","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"artknight404","email":"artknight404@gmail.com"},"repository":{"url":"git+https://github.com/artknight404/arts-dao.git","type":"git"},"_npmVersion":"10.2.3","description":"just dao things","directories":{},"_nodeVersion":"20.10.0","dependencies":{"yunnie-dao":"^1.1.6"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/arts-dao_1.1.4_1709805996315_0.9464011546788962","host":"s3://npm-registry-packages"}},"1.1.5":{"name":"arts-dao","version":"1.1.5","description":"library for arts-dao","main":"libs/arts-dao.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/artknight404/arts-dao.git"},"keywords":["dao","crypto","blockchain","web3","ethereum","solidity","smart-contracts"],"author":{"name":"artknight404"},"license":"ISC","_id":"arts-dao@1.1.5","gitHead":"1327e090a23cd64f2707955178b21abb076bd734","bugs":{"url":"https://github.com/artknight404/arts-dao/issues"},"homepage":"https://github.com/artknight404/arts-dao#readme","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-8h7k+7g3VjaAFuj8yIZSy6Mz0QCdb59QR7wUx1mkuarVvZajVIJXIIZve+6SZNTNOZ7lsbzv7IHvtlMQ2IS61w==","shasum":"342467f24024e007f89cb4dc79bc8f3ff98978a5","tarball":"https://registry.npmjs.org/arts-dao/-/arts-dao-1.1.5.tgz","fileCount":7,"unpackedSize":8470,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIHbQyXR9i1/poGsOF1OuAiFjlABcDXjV+7K3DM7wG6duAiEAhui0FBRHqKNXJeQKSK0Sb19ujYxKDfNvV47pBq0UCpA="}]},"_npmUser":{"name":"artknight404","email":"artknight404@gmail.com"},"directories":{},"maintainers":[{"name":"artknight404","email":"artknight404@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/arts-dao_1.1.5_1746840300985_0.03940779130552996"},"_hasShrinkwrap":false}},"time":{"created":"2024-03-02T00:19:46.614Z","modified":"2025-05-10T01:25:01.349Z","1.0.0":"2024-03-02T00:19:46.807Z","1.1.2":"2024-03-03T06:38:27.648Z","1.1.3":"2024-03-05T04:58:29.699Z","1.1.4":"2024-03-07T10:06:36.494Z","1.1.5":"2025-05-10T01:25:01.183Z"},"bugs":{"url":"https://github.com/artknight404/arts-dao/issues"},"author":{"name":"artknight404"},"license":"ISC","homepage":"https://github.com/artknight404/arts-dao#readme","keywords":["dao","crypto","blockchain","web3","ethereum","solidity","smart-contracts"],"repository":{"type":"git","url":"git+https://github.com/artknight404/arts-dao.git"},"description":"library for arts-dao","maintainers":[{"name":"artknight404","email":"artknight404@gmail.com"}],"readme":"# arts-dao\r\n\r\nSimple DAO library for managing proposals and votes.\r\n\r\n## Installation\r\n\r\n```bash\r\nnpm install arts-dao\r\n```\r\n\r\n## Usage\r\n\r\n```js\r\nconst ArtsDAO = require('arts-dao');\r\nconst dao = new ArtsDAO();\r\n\r\ndao.createProposal('Add new feature', 'Description of the feature');\r\ndao.voteProposal(1);\r\nconsole.log(dao.getProposals());\r\n```\r\n\r\n## API\r\n- `createProposal(title, description)` - Create a new proposal\r\n- `voteProposal(id)` - Vote for a proposal by id\r\n- `getProposals()` - Get all proposals\r\n- `getProposalById(id)` - Get a proposal by its id\r\n- `deleteProposal(id)` - Delete a proposal by its id\r\n- `updateProposal(id, updates)` - Update a proposal by its id with new data\r\n- `getProposalsByVotes(minVotes)` - Get proposals with votes greater than or equal to minVotes\r\n\r\n## Examples\r\n\r\n### Get a Proposal by ID\r\n```js\r\nconst proposal = dao.getProposalById(1);\r\nconsole.log(proposal);\r\n```\r\n\r\n### Delete a Proposal\r\n```js\r\nconst deletedProposal = dao.deleteProposal(1);\r\nconsole.log('Deleted proposal:', deletedProposal);\r\n```\r\n\r\n### Update a Proposal\r\n```js\r\nconst updatedProposal = dao.updateProposal(1, { title: 'Updated Title', description: 'Updated Description' });\r\nconsole.log('Updated proposal:', updatedProposal);\r\n```\r\n\r\n### Get Proposals by Minimum Votes\r\n```js\r\nconst popularProposals = dao.getProposalsByVotes(5);\r\nconsole.log('Popular proposals:', popularProposals);\r\n```\r\n\r\n\r\n## Contributor\r\n\r\n- [@gulagulali404](https://github.com/gulagulali404/)\r\n- [@yunnie-pin](https://github.com/Yunnie-pin)\r\n- [@artknight404](https://github.com/artknight404)\r\n- [@aru-problemsolver68](https://github.com/aru-problemsolver68)\r\n- [@msaruh11](https://github.com/msaruh11)","readmeFilename":"README.md"}