{"_id":"@adafel/adafel-solidity","_rev":"6-73383654d47d89f85a4862f2f77c389c","name":"@adafel/adafel-solidity","dist-tags":{"latest":"0.1.6"},"versions":{"0.1.0":{"name":"@adafel/adafel-solidity","version":"0.1.0","keywords":["Adafel","EVM","Solidity"],"author":{"name":"[Adafel Core Devs]"},"license":"MIT OR Apache-2.0","_id":"@adafel/adafel-solidity@0.1.0","maintainers":[{"name":"prajjawal_adafel","email":"prajjawal@adafel.com"},{"name":"prajjawal","email":"prajjawalkhandelwal@gmail.com"}],"homepage":"https://github.com/adafel-official/adafel-solidity#readme","bugs":{"url":"https://github.com/adafel-official/adafel-solidity/issues"},"dist":{"shasum":"41ab6a8ca60e7929482e68a1ae9c9b630bacbe32","tarball":"https://registry.npmjs.org/@adafel/adafel-solidity/-/adafel-solidity-0.1.0.tgz","fileCount":7,"integrity":"sha512-OJy2FXFr0+gt+r4x35ruIISgurFXyUqnXZRa0aIAGrqX7c+OkGfgVadDab8HAxiDW3e07OpITpzJCEa14Bpr5A==","signatures":[{"sig":"MEQCIGjEBROonbAXfkd5kJvcH3v4OBlYPyPxg6q7IoQlPK3mAiAMwGFfl7uEoSjm3SfCQ5eHon40mj6Wd43gw3HTI/HK0Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":23705},"main":"","gitHead":"4588072d7fae9c71f5869297640f0e36ef0c9bfb","scripts":{"format":"prettier --write contracts"},"_npmUser":{"name":"prajjawal","email":"prajjawalkhandelwal@gmail.com"},"repository":{"url":"git+https://github.com/adafel-official/adafel-solidity.git","type":"git"},"_npmVersion":"10.5.0","description":"Adafel EVM Solidity Library","directories":{},"_nodeVersion":"21.7.1","dependencies":{"@noble/secp256k1":"^2.1.0","solidity-cborutils":"^2.0.0","filecoin-solidity-api":"1.1.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/adafel-solidity_0.1.0_1720272726608_0.5224180761827413","host":"s3://npm-registry-packages"}},"0.1.1":{"name":"@adafel/adafel-solidity","version":"0.1.1","keywords":["Adafel","EVM","Solidity"],"author":{"name":"[Adafel Core Devs]"},"license":"MIT OR Apache-2.0","_id":"@adafel/adafel-solidity@0.1.1","maintainers":[{"name":"prajjawal_adafel","email":"prajjawal@adafel.com"},{"name":"prajjawal","email":"prajjawalkhandelwal@gmail.com"}],"homepage":"https://github.com/adafel-official/adafel-solidity#readme","bugs":{"url":"https://github.com/adafel-official/adafel-solidity/issues"},"dist":{"shasum":"e9c515374f6f31b315a2a1542e0fc34cb8f55791","tarball":"https://registry.npmjs.org/@adafel/adafel-solidity/-/adafel-solidity-0.1.1.tgz","fileCount":7,"integrity":"sha512-t2uxQ+WQGyNy335jAfM6QpiTLYW41X1CGHDq8wyP9per1DGC+OMNWrbAs85vkS4sUYvWagThgdmA8WLtK8Fibw==","signatures":[{"sig":"MEQCIE8ibb195O+6Pb4yBWhjDfOmmSeq4o8PjLPML3IrsNBMAiBDMrz7VbaIbIRmUqo3RRrWRT8GPviowGloowd6R6SIEQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":23483},"main":"","gitHead":"efc368f375621577b75cd3899ababef6d3098b8d","scripts":{"format":"prettier --write contracts"},"_npmUser":{"name":"prajjawal","email":"prajjawalkhandelwal@gmail.com"},"repository":{"url":"git+https://github.com/adafel-official/adafel-solidity.git","type":"git"},"_npmVersion":"10.5.0","description":"Adafel EVM Solidity Library","directories":{},"_nodeVersion":"21.7.1","dependencies":{"@noble/secp256k1":"^2.1.0","solidity-cborutils":"^2.0.0","filecoin-solidity-api":"1.1.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/adafel-solidity_0.1.1_1720807707887_0.9415528940055493","host":"s3://npm-registry-packages"}},"0.1.2":{"name":"@adafel/adafel-solidity","version":"0.1.2","keywords":["Adafel","EVM","Solidity"],"author":{"name":"[Adafel Core Devs]"},"license":"MIT OR Apache-2.0","_id":"@adafel/adafel-solidity@0.1.2","maintainers":[{"name":"prajjawal_adafel","email":"prajjawal@adafel.com"},{"name":"prajjawal","email":"prajjawalkhandelwal@gmail.com"}],"homepage":"https://github.com/adafel-official/adafel-solidity#readme","bugs":{"url":"https://github.com/adafel-official/adafel-solidity/issues"},"dist":{"shasum":"7f33c842b4d96cdee53e540b053a2f0dcd341ff0","tarball":"https://registry.npmjs.org/@adafel/adafel-solidity/-/adafel-solidity-0.1.2.tgz","fileCount":7,"integrity":"sha512-+/4pc7txEqRpoXd3/6QWs5YI7XBsc/6Y2j72Bu7VqlWR+yM5Be2R9GMfRqbJXlV7V6nu9OjezvwcZ6aRo738mg==","signatures":[{"sig":"MEUCIQCKtDSgDI0X9yMFHBpvz+zy4Zk1TjTTRuoMJsmcjwmSzgIgQrRUpoObG5NgbM1ANZtNro8D2i8fkSg44D56PvuRAOE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":23090},"main":"","gitHead":"cc1263e1d216228be11b3eaec18485dca0569019","scripts":{"format":"prettier --write contracts"},"_npmUser":{"name":"prajjawal","email":"prajjawalkhandelwal@gmail.com"},"repository":{"url":"git+https://github.com/adafel-official/adafel-solidity.git","type":"git"},"_npmVersion":"10.5.0","description":"Adafel EVM Solidity Library","directories":{},"_nodeVersion":"21.7.1","dependencies":{"@noble/secp256k1":"^2.1.0","solidity-cborutils":"^2.0.0","filecoin-solidity-api":"1.1.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/adafel-solidity_0.1.2_1720812358180_0.23024424390294151","host":"s3://npm-registry-packages"}},"0.1.3":{"name":"@adafel/adafel-solidity","version":"0.1.3","keywords":["Adafel","EVM","Solidity"],"author":{"name":"[Adafel Core Devs]"},"license":"MIT OR Apache-2.0","_id":"@adafel/adafel-solidity@0.1.3","maintainers":[{"name":"prajjawal_adafel","email":"prajjawal@adafel.com"},{"name":"prajjawal","email":"prajjawalkhandelwal@gmail.com"}],"homepage":"https://github.com/adafel-official/adafel-solidity#readme","bugs":{"url":"https://github.com/adafel-official/adafel-solidity/issues"},"dist":{"shasum":"60f234fcac581e70ab81c332f2a8a09c65da9d9e","tarball":"https://registry.npmjs.org/@adafel/adafel-solidity/-/adafel-solidity-0.1.3.tgz","fileCount":7,"integrity":"sha512-qgaeNHdkpSbQwkUN3YJjz0B08M2RN2Z/6k4XN34TZyInwME2eeZ3/3ida1xTQFIUFcuiRlD59OxfoSumNC2e6Q==","signatures":[{"sig":"MEUCIE8xqVqC/Xdyzx+z3a2tw0rA3G7HOcQERiVsAiJM5zAVAiEAsaxvwjzsk7w0KdPRXZqv+xF/oU+BUEWVgF0vMmep/bs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25103},"main":"","gitHead":"bd1bf4d3eb924acd75509fcae27c2c7aa2e7526c","scripts":{"format":"prettier --write contracts"},"_npmUser":{"name":"prajjawal","email":"prajjawalkhandelwal@gmail.com"},"repository":{"url":"git+https://github.com/adafel-official/adafel-solidity.git","type":"git"},"_npmVersion":"10.5.0","description":"Adafel EVM Solidity Library","directories":{},"_nodeVersion":"21.7.1","dependencies":{"@noble/secp256k1":"^2.1.0","solidity-cborutils":"^2.0.0","filecoin-solidity-api":"1.1.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/adafel-solidity_0.1.3_1721220517007_0.6234098825825314","host":"s3://npm-registry-packages"}},"0.1.4":{"name":"@adafel/adafel-solidity","version":"0.1.4","keywords":["Adafel","EVM","Solidity"],"author":{"name":"[Adafel Core Devs]"},"license":"MIT OR Apache-2.0","_id":"@adafel/adafel-solidity@0.1.4","maintainers":[{"name":"prajjawal_adafel","email":"prajjawal@adafel.com"},{"name":"prajjawal","email":"prajjawalkhandelwal@gmail.com"}],"homepage":"https://github.com/adafel-official/adafel-solidity#readme","bugs":{"url":"https://github.com/adafel-official/adafel-solidity/issues"},"dist":{"shasum":"4c4eeddffed9a34d1f071ad9d38a5266660464d6","tarball":"https://registry.npmjs.org/@adafel/adafel-solidity/-/adafel-solidity-0.1.4.tgz","fileCount":7,"integrity":"sha512-3QDzSL7POsh8W8f+nSM8+nPZPJRRmcdzz2kzp2pfApGvMpu+xATeVsNzmi2n5tehv2CB7/pm+84vR0wVHXyMjg==","signatures":[{"sig":"MEUCIQD89AOm8NyUTBRPyaEDm1YlrnCWZ6taBGmTsK1hDVfNpQIgMQZaEs257cSKkkqMlBFDndLWjoJEeHbCyyJFy2CSyjk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25105},"main":"","gitHead":"517d8b4d422bffdf86f4cf518aa09e8da5cbe5ef","scripts":{"format":"prettier --write contracts"},"_npmUser":{"name":"prajjawal","email":"prajjawalkhandelwal@gmail.com"},"repository":{"url":"git+https://github.com/adafel-official/adafel-solidity.git","type":"git"},"_npmVersion":"10.5.0","description":"Adafel EVM Solidity Library","directories":{},"_nodeVersion":"21.7.1","dependencies":{"@noble/secp256k1":"^2.1.0","solidity-cborutils":"^2.0.0","filecoin-solidity-api":"1.1.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/adafel-solidity_0.1.4_1721223277699_0.3881494975755493","host":"s3://npm-registry-packages"}},"0.1.5":{"name":"@adafel/adafel-solidity","version":"0.1.5","keywords":["Adafel","EVM","Solidity"],"author":{"name":"[Adafel Core Devs]"},"license":"MIT OR Apache-2.0","_id":"@adafel/adafel-solidity@0.1.5","maintainers":[{"name":"prajjawal_adafel","email":"prajjawal@adafel.com"},{"name":"prajjawal","email":"prajjawalkhandelwal@gmail.com"}],"homepage":"https://github.com/adafel-official/adafel-solidity#readme","bugs":{"url":"https://github.com/adafel-official/adafel-solidity/issues"},"dist":{"shasum":"b4b0aeed380e5aafba878ace2de521d3d88dc242","tarball":"https://registry.npmjs.org/@adafel/adafel-solidity/-/adafel-solidity-0.1.5.tgz","fileCount":7,"integrity":"sha512-KFJGhgcknGP79+RSlC3FNQNbRKIqT++sYHByqjlmp4vpTqAsXg930CfavTQ+NLTJpegH21mWthg9CvaUUOS05g==","signatures":[{"sig":"MEQCIAtArjWsHvgdH/9C3C3teEAr+5ERAavAQN8mXlZtLC6VAiALUevL6R//t9AaMrUbiC/o2nE/EOiYStqDIh3l+hcAfw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25153},"main":"","gitHead":"e697b9741acaaf3ab6a3e2d00146eaa514f2a184","scripts":{"format":"prettier --write contracts"},"_npmUser":{"name":"prajjawal","email":"prajjawalkhandelwal@gmail.com"},"repository":{"url":"git+https://github.com/adafel-official/adafel-solidity.git","type":"git"},"_npmVersion":"10.5.0","description":"Adafel EVM Solidity Library","directories":{},"_nodeVersion":"21.7.1","dependencies":{"@noble/secp256k1":"^2.1.0","solidity-cborutils":"^2.0.0","filecoin-solidity-api":"1.1.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/adafel-solidity_0.1.5_1721284264925_0.2997806177372775","host":"s3://npm-registry-packages"}},"0.1.6":{"name":"@adafel/adafel-solidity","version":"0.1.6","description":"Adafel EVM Solidity Library","main":"","scripts":{"format":"prettier --write contracts"},"repository":{"type":"git","url":"git+https://github.com/adafel-official/adafel-solidity.git"},"keywords":["Adafel","EVM","Solidity"],"author":{"name":"[Adafel Core Devs]"},"license":"MIT OR Apache-2.0","bugs":{"url":"https://github.com/adafel-official/adafel-solidity/issues"},"homepage":"https://github.com/adafel-official/adafel-solidity#readme","publishConfig":{"access":"public"},"dependencies":{"@noble/secp256k1":"^2.1.0","solidity-cborutils":"^2.0.0","filecoin-solidity-api":"1.1.3"},"_id":"@adafel/adafel-solidity@0.1.6","gitHead":"4207fc5a8e39a038444a54bc1a41483c8ed89b29","_nodeVersion":"21.7.1","_npmVersion":"10.5.0","dist":{"integrity":"sha512-I+rSFszUh8PAyXjMlzvL5AoRMnfdvYtQj5kZNPBVfjXHRi1NgzV5Pn9w+mfjiMdkpZY1elizkWbEtzK7Cc0ZTg==","shasum":"dbab430a7f37911baa37b3456951c58f9794c18c","tarball":"https://registry.npmjs.org/@adafel/adafel-solidity/-/adafel-solidity-0.1.6.tgz","fileCount":7,"unpackedSize":30259,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBFn2jnWO/26cP/t2TlgMjIAcpddpqvc1MZA2s6D5HxAAiBCVjBy6S+N+mtB4kWbxsFSZfKHGeoED3Y4tmvuPhHxwA=="}]},"_npmUser":{"name":"prajjawal","email":"prajjawalkhandelwal@gmail.com"},"directories":{},"maintainers":[{"name":"prajjawal_adafel","email":"prajjawal@adafel.com"},{"name":"prajjawal","email":"prajjawalkhandelwal@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/adafel-solidity_0.1.6_1721412686264_0.9395648458975512"},"_hasShrinkwrap":false}},"time":{"created":"2024-07-06T13:32:06.496Z","modified":"2024-07-19T18:11:26.656Z","0.1.0":"2024-07-06T13:32:06.776Z","0.1.1":"2024-07-12T18:08:28.090Z","0.1.2":"2024-07-12T19:25:58.316Z","0.1.3":"2024-07-17T12:48:37.183Z","0.1.4":"2024-07-17T13:34:37.863Z","0.1.5":"2024-07-18T06:31:05.116Z","0.1.6":"2024-07-19T18:11:26.445Z"},"bugs":{"url":"https://github.com/adafel-official/adafel-solidity/issues"},"author":{"name":"[Adafel Core Devs]"},"license":"MIT OR Apache-2.0","homepage":"https://github.com/adafel-official/adafel-solidity#readme","keywords":["Adafel","EVM","Solidity"],"repository":{"type":"git","url":"git+https://github.com/adafel-official/adafel-solidity.git"},"description":"Adafel EVM Solidity Library","maintainers":[{"name":"prajjawal_adafel","email":"prajjawal@adafel.com"},{"name":"prajjawal","email":"prajjawalkhandelwal@gmail.com"}],"readme":"# Adafel Solidity\n\nThe Adafel Solidity Library is a collection of functions for performing various machine learning tasks on the Adafel network. It leverages the built-in syscalls of the Adafel blockchain to enable training and prediction using different machine learning models directly on the smart contracts.\n\n## Features\n\n- **Linear Regression**: Train and predict using linear regression models.\n- **Logistic Regression**: Train and predict using logistic regression models.\n- **K-Nearest Neighbors (KNN)**: Train and predict using KNN regression and classification models.\n- **Decision Tree**: Train and predict using decision tree regression and classification models.\n- **Random Forest**: Train and predict using random forest regression and classification models.\n\n## Installation\n\nTo use the Adafel Solidity Library, you need to install the necessary dependencies:\n\n```bash\nnpm install @adafel/adafel-solidity\n```\n\n## Usage\n\n### Training a model\n\nTo train a model, call the appropriate training function with your data and labels. For example, to train a linear regression model:\n\n```bash\nint64[][] memory data = ...; // Your training data\nint64[] memory labels = ...; // Your training labels\n\nbytes memory model = MachineLearningLib.trainLinearRegression(data, labels);\n```\n\n### Making Predictions\n\nTo make predictions using a trained model, call the appropriate prediction function with your data and the trained model. For example, to make predictions using a trained linear regression model:\n\n```bash\nint64[][] memory data = ...; // Your input data\n\nint64[] memory predictions = MachineLearningLib.predictLinearRegression(data, model);\n```\n","readmeFilename":"README.md"}