{"_id":"@checkerchain/elrond-merkle-tree-generator","_rev":"2-ec3dbb17e847e364d5cbfde8f95f5072","name":"@checkerchain/elrond-merkle-tree-generator","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.1":{"name":"@checkerchain/elrond-merkle-tree-generator","version":"1.0.1","description":"A JS Library to generate the merkle tree and gets it's root and proof for any given distribution for Elrond","main":"lib/index.js","types":"lib/index.d.ts","scripts":{"test":"jest --config jestconfig.json","build":"tsc","format":"prettier --write \"src/**/*.ts\" \"src/**/*.js\"","lint":"tslint -p tsconfig.json","prepare":"npm run build","prepublishOnly":"npm test && npm run lint","preversion":"npm run lint","version":"npm run format && git add -A src","postversion":"git push && git push --tags"},"repository":{"type":"git","url":"git+https://github.com/Checkerchain-Protocol/Merkle-Tree-Generator.git"},"keywords":["elrond","checkerchain","checkr","merkle-tree"],"author":{"name":"CheckerChain Protocol"},"license":"ISC","devDependencies":{"@types/jest":"^27.5.1","jest":"^27.4.5","prettier":"^2.5.1","ts-jest":"^27.1.2","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","typescript":"^4.5.4"},"dependencies":{"@elrondnetwork/erdjs":"^10.2.5","keccak256":"^1.0.6","merkletreejs":"^0.2.27"},"gitHead":"40af93b6e698442afbd6427ec9bdc2c501304fec","bugs":{"url":"https://github.com/Checkerchain-Protocol/Merkle-Tree-Generator/issues"},"homepage":"https://github.com/Checkerchain-Protocol/Merkle-Tree-Generator#readme","_id":"@checkerchain/elrond-merkle-tree-generator@1.0.1","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-IpyyvZvkZI4i1Dh7R3JGwPDDK94Sd+/gTkzXN9lYma1OxBVuxhXrYSf9kQIygat4mqocXVnkRmgrAR1PKrnfvA==","shasum":"7ef71883aab9396b3a41621b846d684e8d954993","tarball":"https://registry.npmjs.org/@checkerchain/elrond-merkle-tree-generator/-/elrond-merkle-tree-generator-1.0.1.tgz","fileCount":6,"unpackedSize":5348,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDCc+EVwd+SbzjAH8zQfO1lQBxU5fu4u4/RVAvb+nG54AiACBR3mQLh73HGk62HRd6GxEqOmmbPCx1ON63f7PyBOvw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjBL6WACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqqcQ//RJPj/RTpYcmJpgP8e8Yj30BZvdyNoTumdZp8U0GTzXpRkFD3\r\nJLtX3ElMlFi46WWpwoZfBTYCTbEpeex4nLZTnm5BaxCDVarS2BfYkdfNYNiM\r\n15+XDS2qzZgQ/gI0cPSsEgEwp/0j4Z8UQXLg8u2GmvbFgIn2m+3DV+F8h5to\r\ncevtu9q3H/SfP2RUyhRESbMs+YGAuz8saNZqnbjXdzvGwHNq/hM1GUFWExjb\r\njst5ZdNmOxKV8ykdZl5TC+meWpowYpAGFwGYeFtoQ1vsEIySkxRWyFP4JGc+\r\nhPaNa0T97Ovu6DHOQ3Qo5x1liv/dQZ/Ocl1v1CCCUJvptZgJw9iYA4MFhALC\r\nhm1tlAws4N1JcBz9m+YqtxWTh5P5PEABSqujuBWVUAveT1flKtgENcD624qw\r\n+hZtS6LsOTII7yeTf1HGaPk11IUl2dyWcA0PEFlALWQYv41X9U/KiFzZa43X\r\nrG2miN1+grdP49dUxULGHttwZJ6E54hBLD4wwLTozLmXXzbvRhBXiNRG3EYI\r\nxDJsumm5ak2Js10r/BMo34+HPIg1iwSd1LcXP0PFmr4fqTuNZ/UaKINejmR8\r\ngZBoUUGwGZwyt0aL56A7Qge/HYarZAKa2dHMt2WXYBkGuscTszzT54V2L4ac\r\njJx3csk2sdRn8A2Vx4Nyxj3V+UengfhjW28=\r\n=IqYK\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"subasshrestha","email":"subasshrestha513@gmail.com"},"directories":{},"maintainers":[{"name":"asmithq","email":"bhantanasmit@gmail.com"},{"name":"subasshrestha","email":"subasshrestha513@gmail.com"},{"name":"checkr-elrond","email":"bibek@checkerchain.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/elrond-merkle-tree-generator_1.0.1_1661255318015_0.059460116458804224"},"_hasShrinkwrap":false},"1.0.2":{"name":"@checkerchain/elrond-merkle-tree-generator","version":"1.0.2","description":"A JS Library to generate the merkle tree and gets it's root and proof for any given distribution for Elrond","main":"lib/index.js","types":"lib/index.d.ts","scripts":{"test":"jest --config jestconfig.json","build":"tsc","format":"prettier --write \"src/**/*.ts\" \"src/**/*.js\"","lint":"tslint -p tsconfig.json","prepare":"npm run build","prepublishOnly":"npm test && npm run lint","preversion":"npm run lint","version":"npm run format && git add -A src","postversion":"git push && git push --tags"},"repository":{"type":"git","url":"git+https://github.com/CheckerChain/MerkleTreeGenerator.git"},"keywords":["elrond","checkerchain","checkr","merkle-tree"],"author":{"name":"CheckerChain Protocol"},"license":"ISC","devDependencies":{"@types/jest":"^27.5.1","jest":"^27.4.5","prettier":"^2.5.1","ts-jest":"^27.1.2","tslint":"^6.1.3","tslint-config-prettier":"^1.18.0","typescript":"^4.5.4"},"dependencies":{"@elrondnetwork/erdjs":"^10.2.5","keccak256":"^1.0.6","merkletreejs":"^0.2.27"},"gitHead":"a66152a9a345f400095986dd7232fa9c4d41077c","bugs":{"url":"https://github.com/CheckerChain/MerkleTreeGenerator/issues"},"homepage":"https://github.com/CheckerChain/MerkleTreeGenerator#readme","_id":"@checkerchain/elrond-merkle-tree-generator@1.0.2","_nodeVersion":"16.13.0","_npmVersion":"8.1.0","dist":{"integrity":"sha512-P5/irsEaim17sHw3ftSZbLP5x6VVPFJCVGmvx26E1Xo8jsnaEVOEz8XOZIswdK6WB2RUp8civl0/BsE7Nu58Pw==","shasum":"4dfec7a7db678167e276bc10a58ea71414288b87","tarball":"https://registry.npmjs.org/@checkerchain/elrond-merkle-tree-generator/-/elrond-merkle-tree-generator-1.0.2.tgz","fileCount":6,"unpackedSize":5337,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC2fqJh5f3Sppe81KvxkiyV6+uMcVAGVe/UdH4rOkh10gIhAKMb0eBQg2xlVH5vtY+DSsXBpo4joK7vU4IFjDFkMmpD"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjBN4RACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpmag//ax92xp71t/wJMc3UyalMY8qeYa6yr2hFiWncgKkpRYeEzpLd\r\ngv3c9H3HhNDK9jRM1Y5S40UVYg7fZp6Uw0qJtLfiYFZ0HbW7KQBKkJDNT+ls\r\nBKURQFQX+e24gkpakzt0RPWJDuPOvrIpcbMwdRPLQWBeYUvgwci0xo8ihLEH\r\nsoyE+ZjrLJnqBjdxOTNohAJvzrl/vmmJ2zy8P/gfboQkpNbWQhCMFX0pntCa\r\nPhp0l4QnGD3hrixwj3Y9yPDexqJBM+gwIwFg5D6rzYa5pn93O2LbA5Rtl4VQ\r\nAvYzymly7sXADtqTiDgFHVUkXlbqCF8rTY6d3ugKYYQaK22/5sSjMZvdoVig\r\n6VGkQtWtv0O7U+eUfv/tSluI/viuqklOAcjdp838SRwbEPlfexDIqwPBH7hs\r\nzwJz2OoXt+dun3hrfIr0OE7gYJtUB/ZCQzKRSG75Xu074kZVhZ2lYY6MjvQd\r\n715gxHHILxw0YB0iTRSTdNURSgVyoFUTXzTaYT56LPt3NPtU5UtGJSFpPc/y\r\nIt52qbQn1ZUguAoBUWmnDVTEC6Dpy6rlPitaYySZERV6oX3uoM/Ew/aQDwg2\r\n10550EJsRvug/PSf7/Ddr4lLlF2QNPFelT/GmkjXJKCafBxNiZQB+xFNHos1\r\noTjLJoAx9XN1XagzluIgXtgapHE+gmMw+XA=\r\n=Nhif\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"subasshrestha","email":"subasshrestha513@gmail.com"},"directories":{},"maintainers":[{"name":"lucoadam1","email":"lucoadam@gmail.com"},{"name":"asmithq","email":"bhantanasmit@gmail.com"},{"name":"subasshrestha","email":"subasshrestha513@gmail.com"},{"name":"checkr-elrond","email":"bibek@checkerchain.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/elrond-merkle-tree-generator_1.0.2_1661263377447_0.62160949118316"},"_hasShrinkwrap":false}},"time":{"created":"2022-08-23T11:48:37.938Z","1.0.1":"2022-08-23T11:48:38.159Z","modified":"2022-08-23T14:02:57.742Z","1.0.2":"2022-08-23T14:02:57.597Z"},"maintainers":[{"name":"lucoadam1","email":"lucoadam@gmail.com"},{"name":"asmithq","email":"bhantanasmit@gmail.com"},{"name":"subasshrestha","email":"subasshrestha513@gmail.com"},{"name":"checkr-elrond","email":"bibek@checkerchain.com"}],"description":"A JS Library to generate the merkle tree and gets it's root and proof for any given distribution for Elrond","homepage":"https://github.com/CheckerChain/MerkleTreeGenerator#readme","keywords":["elrond","checkerchain","checkr","merkle-tree"],"repository":{"type":"git","url":"git+https://github.com/CheckerChain/MerkleTreeGenerator.git"},"author":{"name":"CheckerChain Protocol"},"bugs":{"url":"https://github.com/CheckerChain/MerkleTreeGenerator/issues"},"license":"ISC","readme":"# Merkle Tree Generator for Elrond\n\nA Simple Javascript library to generate Merkle Tree and get its root and proof for any type of Merkle Tree Distribution\n\n## Installation\n\nThe recommend way to use Merkle Tree Generator is to install it as a dependency:\n\n```shell\n# If you use npm:\nnpm i @checkerchain/elrond-merkle-tree-generator\n\n# Or if you use Yarn:\nyarn add @checkerchain/elrond-merkle-tree-generator\n```\n\n## Example\n\n1. The first step is to import the function generateTree from the package.\n\n```javascript\nimport { generateTree } from '@checkerchain/elrond-merkle-tree-generator';\n```\nor\n\n```javascript\nconst { generateTree } = require('@checkerchain/elrond-merkle-tree-generator');\n```\n\n2. The next step is to send a array of data to the generate tree function. The format of data should be:\n\n   ```\n   data = [\n      {\n         index: '01',\n         wallet: 'erd13wsm72uc0c2fwgtpwjn0xlrzfdh7kg59jmrnfcjh9fhqsp7g5yas5sy69l',\n         amount: '1000000',\n      },\n      {\n         index: '02',\n         wallet: 'erd14pgqys8lzhdfnuseev4yh3hfrq2423u8wxkd3fkxsvvpvyannzrs88l2nt',\n         amount: '1000000',\n      },\n      ....\n   ]\n\n   const result = generateTree(data);\n   console.log(result);\n   ```\n\n3. And boom, you are done! It returns you with the merkle root and proof for all the passed wallets, which can be passed on Smart Contracts for claiming the rewards.\n\nThis is just the initial version of the package, feel free to contribute more to it.\n","readmeFilename":"README.md"}