{"_id":"@dpowxconsensus/typechain-polkadot-parser","_rev":"1-7c7f0d955342510d29f7d3bf2502a4da","name":"@dpowxconsensus/typechain-polkadot-parser","dist-tags":{"latest":"1.2.6"},"versions":{"1.2.4":{"name":"@dpowxconsensus/typechain-polkadot-parser","version":"1.2.4","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/dpowxconsensus/typechain-polkadot.git"},"author":{"name":"Brushfam"},"license":"MIT","bugs":{"url":"https://github.com/dpowxconsensus/typechain-polkadot/issues"},"homepage":"https://github.com/dpowxconsensus/typechain-polkadot#readme","dependencies":{"@polkadot/api":"^10.12.1","@polkadot/api-contract":"^10.12.1","@types/bn.js":"^5.1.0","@types/node":"^18.0.3","typescript":"^4.7.4","camelcase":"^6.3.0"},"gitHead":"fe4c3cbc02a1c7f85a0e1fa390bb74b3cb9d6867","licenseText":"// Copyright (c) 2012-2022 Supercolony\n//\n// Permission is hereby granted, free of charge, to any person obtaining\n// a copy of this software and associated documentation files (the\"Software\"),\n// to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to\n// permit persons to whom the Software is furnished to do so, subject to\n// the following conditions:\n//\n// The above copyright notice and this permission notice shall be\n// included in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\n// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\n// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\n// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"@dpowxconsensus/typechain-polkadot-parser@1.2.4","dist":{"shasum":"8d929748b1162dae49e2d8b73c584bfa007b378a","integrity":"sha512-bcwA0I1/ZQBFLe4dxphAZDH9mWOrhHI3lA8nmjG0aWVctgGXacW43BW7x2zh2o+y90MMKBegnEb1sytOjWSaxA==","tarball":"https://registry.npmjs.org/@dpowxconsensus/typechain-polkadot-parser/-/typechain-polkadot-parser-1.2.4.tgz","fileCount":14,"unpackedSize":30548,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFcWwSTr7Ppz+MtE4z89e7DP3opR2Z8BINP9Yu/p0XcpAiEAvx3hr5VPrezSvm6dGUHRbzXR+nYLQnR0fJkjvVFCqEo="}]},"_npmUser":{"name":"dpowxconsensus","email":"priyanshu@routerprotocol.com"},"directories":{},"maintainers":[{"name":"dpowxconsensus","email":"priyanshu@routerprotocol.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/typechain-polkadot-parser_1.2.4_1715813321667_0.5976225342929233"},"_hasShrinkwrap":false},"1.2.6":{"name":"@dpowxconsensus/typechain-polkadot-parser","version":"1.2.6","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/dpowxconsensus/typechain-polkadot.git"},"author":{"name":"Brushfam"},"license":"MIT","bugs":{"url":"https://github.com/dpowxconsensus/typechain-polkadot/issues"},"homepage":"https://github.com/dpowxconsensus/typechain-polkadot#readme","dependencies":{"@polkadot/api":"^10.12.1","@polkadot/api-contract":"^10.12.1","@types/bn.js":"^5.1.0","@types/node":"^18.0.3","typescript":"^4.7.4","camelcase":"^6.3.0"},"gitHead":"fe4c3cbc02a1c7f85a0e1fa390bb74b3cb9d6867","licenseText":"// Copyright (c) 2012-2022 Supercolony\n//\n// Permission is hereby granted, free of charge, to any person obtaining\n// a copy of this software and associated documentation files (the\"Software\"),\n// to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to\n// permit persons to whom the Software is furnished to do so, subject to\n// the following conditions:\n//\n// The above copyright notice and this permission notice shall be\n// included in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\n// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\n// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\n// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"@dpowxconsensus/typechain-polkadot-parser@1.2.6","dist":{"shasum":"4072a8e3db2d393057a3303984098e82b38b1508","integrity":"sha512-Aj3DVshfXcNwq6fKWyEPOAhDeDW76uOwKAadLvZA/25YyCh+/vKoK++fxI29rw2Zd3tqzw63grH+5gfc6Gy7PQ==","tarball":"https://registry.npmjs.org/@dpowxconsensus/typechain-polkadot-parser/-/typechain-polkadot-parser-1.2.6.tgz","fileCount":14,"unpackedSize":30564,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCoF1Sp2oTaiJtRE1Swq1wxW24jqwgZfhSt5QhKibQ1xwIgAZ4s2Atft7M5EmqxiZpx78A4A6B3+Abme7ZNICNR0gs="}]},"_npmUser":{"name":"dpowxconsensus","email":"priyanshu@routerprotocol.com"},"directories":{},"maintainers":[{"name":"dpowxconsensus","email":"priyanshu@routerprotocol.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/typechain-polkadot-parser_1.2.6_1715941069231_0.006647745849882591"},"_hasShrinkwrap":false}},"time":{"created":"2024-05-15T22:48:41.547Z","1.2.4":"2024-05-15T22:48:41.897Z","modified":"2024-05-17T10:17:49.685Z","1.2.6":"2024-05-17T10:17:49.512Z"},"maintainers":[{"name":"dpowxconsensus","email":"priyanshu@routerprotocol.com"}],"description":"Parser that can generate typescript definitions from ABI of the contract","homepage":"https://github.com/dpowxconsensus/typechain-polkadot#readme","repository":{"type":"git","url":"git+https://github.com/dpowxconsensus/typechain-polkadot.git"},"author":{"name":"Brushfam"},"bugs":{"url":"https://github.com/dpowxconsensus/typechain-polkadot/issues"},"license":"MIT","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"}