{"_id":"@archisinal/typechain-polkadot-parser","_rev":"4-a9bbde0c621122755fd87f826fe05899","name":"@archisinal/typechain-polkadot-parser","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.1":{"name":"@archisinal/typechain-polkadot-parser","version":"1.0.1","author":{"name":"Supercolony-net"},"license":"MIT","_id":"@archisinal/typechain-polkadot-parser@1.0.1","maintainers":[{"name":"semirazov","email":"semirazov94@gmail.com"}],"homepage":"https://github.com/archisinal/typechain-polkadot#readme","bugs":{"url":"https://github.com/archisinal/typechain-polkadot/issues"},"dist":{"shasum":"12eea3cf33b86ae0d278f0cc1ccdce972b6e2679","tarball":"https://registry.npmjs.org/@archisinal/typechain-polkadot-parser/-/typechain-polkadot-parser-1.0.1.tgz","fileCount":10,"integrity":"sha512-IaC32KPxQBxv9g0xNr/hhTEGVPCb5C3mwGqT/BtmQ90DR7968mnAzXyVSewBX75tA2cFcbY+kKucwpKCQfOfVQ==","signatures":[{"sig":"MEUCIQCm+vcv+HRGjXVh3fp6numTN9E4j9Vx+fcdsd3sQR+9nwIgGcdwPg5kX4lKkiBr6n95T0ckJQlwFpQjLB5qIBo5aO0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":31214},"gitHead":"fe4c3cbc02a1c7f85a0e1fa390bb74b3cb9d6867","scripts":{"test":"ts-node index.ts"},"_npmUser":{"name":"semirazov","email":"semirazov94@gmail.com"},"repository":{"url":"git+https://github.com/archisinal/typechain-polkadot.git","type":"git"},"_npmVersion":"10.1.0","description":"Parser that can generate typescript definitions from ABI of the contract","directories":{},"_nodeVersion":"20.9.0","dependencies":{"camelcase":"^6.3.0","typescript":"^4.7.4","@types/node":"^18.0.3","@types/bn.js":"^5.1.0","@polkadot/api":"^10.8.1","@polkadot/api-contract":"^10.8.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/typechain-polkadot-parser_1.0.1_1702410299006_0.3087953497857776","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@archisinal/typechain-polkadot-parser","version":"1.0.2","description":"Parser that can generate typescript definitions from ABI of the contract","scripts":{"test":"ts-node index.ts"},"repository":{"type":"git","url":"git+https://github.com/archisinal/typechain-polkadot.git"},"author":{"name":"Supercolony-net"},"license":"MIT","bugs":{"url":"https://github.com/archisinal/typechain-polkadot/issues"},"homepage":"https://github.com/archisinal/typechain-polkadot#readme","dependencies":{"@polkadot/api":"^12.3.1","@polkadot/api-contract":"^12.3.1","@types/bn.js":"^5.1.0","@types/node":"^18.0.3","typescript":"^4.7.4","camelcase":"^6.3.0"},"gitHead":"fe4c3cbc02a1c7f85a0e1fa390bb74b3cb9d6867","_id":"@archisinal/typechain-polkadot-parser@1.0.2","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-CRaFFzMBecJUT4ej8OlTzU3g2eYO+Eds8ymfYRZaj1WxFo12Q6cdbEOKVrJzyrO7rjcD2raWpJC9eY3IUzA9xA==","shasum":"7f55c79cbee4acd30cded5f55f164c7d76832b44","tarball":"https://registry.npmjs.org/@archisinal/typechain-polkadot-parser/-/typechain-polkadot-parser-1.0.2.tgz","fileCount":10,"unpackedSize":30247,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDQ5uv3SNXmhW2FPyOMz49sHsTJs5sT6qxn1eJ9oMU/HgIhAJilo9cuccqD74edInRIrZHBHVo36Y1cTeJSLJVrqiDk"}]},"_npmUser":{"name":"semirazov","email":"semirazov94@gmail.com"},"directories":{},"maintainers":[{"name":"semirazov","email":"semirazov94@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/typechain-polkadot-parser_1.0.2_1723715584447_0.6604351622141234"},"_hasShrinkwrap":false}},"time":{"created":"2023-12-12T19:44:58.822Z","modified":"2024-08-15T09:53:04.796Z","1.0.0":"2023-12-12T19:29:41.660Z","1.0.1":"2023-12-12T19:44:59.158Z","1.0.2":"2024-08-15T09:53:04.582Z"},"bugs":{"url":"https://github.com/archisinal/typechain-polkadot/issues"},"author":{"name":"Supercolony-net"},"license":"MIT","homepage":"https://github.com/archisinal/typechain-polkadot#readme","repository":{"type":"git","url":"git+https://github.com/archisinal/typechain-polkadot.git"},"description":"Parser that can generate typescript definitions from ABI of the contract","maintainers":[{"name":"semirazov","email":"semirazov94@gmail.com"}],"readme":"# Typechain-polkadot-parser\n\n---\n\nUtility package for parsing ABIs of Polkadot smart contracts.\n\n## Types\n\n---\n\n- `class TypeParser` - Parser for ABIs of Polkadot smart contracts. It contains only one public method `getType` that takes type id as a parameter and returns a `TypeInfo` object. Also it has public field `tsTypes` that contains a map of all parsed types.\n\n- `class TypeInfo` - Contains information about a type.\n``` typescript\n\tid: number; // - type id\n\ttsArgType: string; // - TypeScript type for function arguments\n\ttsReturnType: string; // - TypeScript type for function return value\n\ttsArgTypePrefixed: string; // - TypeScript type for function arguments with prefix (for imports)\n\ttsReturnTypePrefixed: string; // - TypeScript type for function return value with prefix (for imports)\n\ttypeDescription: TypeTS; // - type description in TypeScript\n\t// For enums and composites\n\tbodyArgType ?: string; // - TypeScript type for function arguments\n\tbodyReturnType ?: string; // - TypeScript type for function return value\n```\n","readmeFilename":"README.md"}