{"_id":"@anmolbansal/cactus-plugin-ledger-connector-polkadot","_rev":"4-bcedb454fbdfc97eff051969bc2a0e82","name":"@anmolbansal/cactus-plugin-ledger-connector-polkadot","dist-tags":{"latest":"100.0.3"},"versions":{"2.0.0-alpha.2":{"name":"@anmolbansal/cactus-plugin-ledger-connector-polkadot","version":"2.0.0-alpha.2","description":"Allows Cactus nodes to connect to a Substrate ledger.","keywords":["Hyperledger","Cactus","Integration","Blockchain","Distributed Ledger Technology"],"homepage":"https://github.com/hyperledger/cacti#readme","bugs":{"url":"https://github.com/hyperledger/cacti/issues"},"repository":{"type":"git","url":"git+https://github.com/hyperledger/cacti.git"},"license":"Apache-2.0","author":{"name":"Hyperledger Cactus Contributors","email":"cactus@lists.hyperledger.org","url":"https://www.hyperledger.org/use/cactus"},"contributors":[{"name":"Please add yourself to the list of contributors","email":"your.name@example.com","url":"https://example.com"},{"name":"Catarina Pedreira"},{"name":"Rafael Belchior"},{"name":"Anmol Bansal","email":"anmolbansal1807@gmail.com"}],"type":"module","main":"dist/lib/main/typescript/index.js","module":"dist/lib/main/typescript/index.js","browser":"dist/cactus-plugin-ledger-connector-polkadot.web.umd.js","types":"dist/types/main/typescript/index.d.ts","scripts":{"codegen":"run-p 'codegen:*'","codegen:openapi":"npm run generate-sdk","generate-sdk":"openapi-generator-cli generate -i ./src/main/json/openapi.json -g typescript-axios -o ./src/main/typescript/generated/openapi/typescript-axios/ --reserved-words-mappings protected=protected","lint":"tslint tests/*.ts -t verbose","lint-fix":"tslint --fix tests/*.ts -t verbose","watch":"npm-watch","webpack":"npm-run-all webpack:dev webpack:prod","webpack:dev":"npm-run-all webpack:dev:node webpack:dev:web","webpack:dev:node":"webpack --env=dev --target=node --config ../../webpack.config.js","webpack:dev:web":"webpack --env=dev --target=web --config ../../webpack.config.js","webpack:prod":"npm-run-all webpack:prod:node webpack:prod:web","webpack:prod:node":"webpack --env=prod --target=node --config ../../webpack.config.js","webpack:prod:web":"webpack --env=prod --target=web --config ../../webpack.config.js"},"dependencies":{"@hyperledger/cactus-common":"2.0.0-alpha.2","@hyperledger/cactus-core":"2.0.0-alpha.2","@hyperledger/cactus-core-api":"2.0.0-alpha.2","@polkadot/api":"10.9.1","@polkadot/api-contract":"10.9.1","@polkadot/rpc-provider":"10.9.1","@polkadot/types":"10.9.1","@polkadot/util":"12.6.2","bl":"5.0.0","eslint":"7.21.0","express":"4.17.1","express-openapi-validator":"4.13.1","form-data":"4.0.0","fs-extra":"11.2.0","http-errors":"2.0.0","http-status-codes":"2.1.4","joi":"14.3.1","multer":"1.4.2","ngo":"2.6.2","openapi-types":"9.1.0","prom-client":"13.2.0","temp":"0.9.1","tslint":"6.1.3","typescript-optional":"2.0.1","uuid":"8.3.2"},"devDependencies":{"@hyperledger/cactus-plugin-keychain-memory":"2.0.0-alpha.2","@hyperledger/cactus-test-tooling":"2.0.0-alpha.2","@types/express":"4.17.19","@types/http-errors":"2.0.4","@types/joi":"14.3.4","@types/multer":"1.4.7","@types/ssh2":"0.5.44","@types/supertest":"2.0.11","@types/temp":"0.9.1","@types/uuid":"8.3.1","axios":"0.22.0","supertest":"6.1.6"},"engines":{"node":">=10","npm":">=6"},"publishConfig":{"access":"public"},"browserMinified":"dist/cactus-plugin-ledger-connector-polkadot.web.umd.min.js","mainMinified":"dist/cactus-plugin-ledger-connector-polkadot.node.umd.min.js","watch":{"codegen:openapi":{"patterns":["./src/main/json/openapi.json"]}},"_id":"@anmolbansal/cactus-plugin-ledger-connector-polkadot@2.0.0-alpha.2","gitHead":"f7e7a2a1cd9694327e4d323650bd3fad9b3b80dd","_nodeVersion":"16.14.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-whE/YGlxdkpJZqcEFOENwmBuT8rYtghZthJzGEqEBRd+RsTbZDOaszCE5/g5y3WaZaytesjJqBySlTKwjAPTSA==","shasum":"2a7301ba08a21db51f301f7cfc722f43d5287bee","tarball":"https://registry.npmjs.org/@anmolbansal/cactus-plugin-ledger-connector-polkadot/-/cactus-plugin-ledger-connector-polkadot-2.0.0-alpha.2.tgz","fileCount":58,"unpackedSize":325431,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCDQznwRhU9bsQ7hpdRqA++wupKkxmSUBfUrw8OG2JpxQIhAMgqpjdOTRmpd3xcnA7SEXj+0fAramjCeRwvG59l29PJ"}]},"_npmUser":{"name":"anmolbansal","email":"anmolbansal1807@gmail.com"},"directories":{},"maintainers":[{"name":"anmolbansal","email":"anmolbansal1807@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cactus-plugin-ledger-connector-polkadot_2.0.0-alpha.2_1705180272959_0.3925750904379075"},"_hasShrinkwrap":false},"2.0.0-alpha.3":{"name":"@anmolbansal/cactus-plugin-ledger-connector-polkadot","version":"2.0.0-alpha.3","description":"Allows Cactus nodes to connect to a Substrate ledger.","keywords":["Hyperledger","Cactus","Integration","Blockchain","Distributed Ledger Technology"],"homepage":"https://github.com/hyperledger/cacti#readme","bugs":{"url":"https://github.com/hyperledger/cacti/issues"},"repository":{"type":"git","url":"git+https://github.com/hyperledger/cacti.git"},"license":"Apache-2.0","author":{"name":"Hyperledger Cactus Contributors","email":"cactus@lists.hyperledger.org","url":"https://www.hyperledger.org/use/cactus"},"contributors":[{"name":"Please add yourself to the list of contributors","email":"your.name@example.com","url":"https://example.com"},{"name":"Catarina Pedreira"},{"name":"Rafael Belchior"},{"name":"Anmol Bansal","email":"anmolbansal1807@gmail.com"}],"main":"dist/lib/main/typescript/index.js","module":"dist/lib/main/typescript/index.js","browser":"dist/cactus-plugin-ledger-connector-polkadot.web.umd.js","types":"dist/types/main/typescript/index.d.ts","scripts":{"codegen":"run-p 'codegen:*'","codegen:openapi":"npm run generate-sdk","generate-sdk":"openapi-generator-cli generate -i ./src/main/json/openapi.json -g typescript-axios -o ./src/main/typescript/generated/openapi/typescript-axios/ --reserved-words-mappings protected=protected","lint":"tslint tests/*.ts -t verbose","lint-fix":"tslint --fix tests/*.ts -t verbose","watch":"npm-watch","webpack":"npm-run-all webpack:dev webpack:prod","webpack:dev":"npm-run-all webpack:dev:node webpack:dev:web","webpack:dev:node":"webpack --env=dev --target=node --config ../../webpack.config.js","webpack:dev:web":"webpack --env=dev --target=web --config ../../webpack.config.js","webpack:prod":"npm-run-all webpack:prod:node webpack:prod:web","webpack:prod:node":"webpack --env=prod --target=node --config ../../webpack.config.js","webpack:prod:web":"webpack --env=prod --target=web --config ../../webpack.config.js"},"dependencies":{"@hyperledger/cactus-common":"2.0.0-alpha.2","@hyperledger/cactus-core":"2.0.0-alpha.2","@hyperledger/cactus-core-api":"2.0.0-alpha.2","@polkadot/api":"10.9.1","@polkadot/api-contract":"10.9.1","@polkadot/rpc-provider":"10.9.1","@polkadot/types":"10.9.1","@polkadot/util":"12.6.2","bl":"5.0.0","eslint":"7.21.0","express":"4.17.1","express-openapi-validator":"4.13.1","form-data":"4.0.0","fs-extra":"11.2.0","http-errors":"2.0.0","http-status-codes":"2.1.4","joi":"14.3.1","multer":"1.4.2","ngo":"2.6.2","openapi-types":"9.1.0","prom-client":"13.2.0","temp":"0.9.1","tslint":"6.1.3","typescript-optional":"2.0.1","uuid":"8.3.2"},"devDependencies":{"@hyperledger/cactus-plugin-keychain-memory":"2.0.0-alpha.2","@hyperledger/cactus-test-tooling":"2.0.0-alpha.2","@types/express":"4.17.19","@types/http-errors":"2.0.4","@types/joi":"14.3.4","@types/multer":"1.4.7","@types/ssh2":"0.5.44","@types/supertest":"2.0.11","@types/temp":"0.9.1","@types/uuid":"8.3.1","axios":"0.22.0","supertest":"6.1.6"},"engines":{"node":">=10","npm":">=6"},"publishConfig":{"access":"public"},"browserMinified":"dist/cactus-plugin-ledger-connector-polkadot.web.umd.min.js","mainMinified":"dist/cactus-plugin-ledger-connector-polkadot.node.umd.min.js","watch":{"codegen:openapi":{"patterns":["./src/main/json/openapi.json"]}},"_id":"@anmolbansal/cactus-plugin-ledger-connector-polkadot@2.0.0-alpha.3","gitHead":"f7e7a2a1cd9694327e4d323650bd3fad9b3b80dd","_nodeVersion":"16.14.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-m8kRTRGAfK+BxfHP3hPV95h7mN1vZlaiNCidCAHmLQm/KRrQrstE3/iggsmS38mJ+ok/J+uouJbq/nbvprzntQ==","shasum":"abbd389c5efa59641c83ec5fc1068a853dc7305b","tarball":"https://registry.npmjs.org/@anmolbansal/cactus-plugin-ledger-connector-polkadot/-/cactus-plugin-ledger-connector-polkadot-2.0.0-alpha.3.tgz","fileCount":58,"unpackedSize":325525,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBZF93JEw0fGE4Id6lbpxPAbX+KOyUMJpi1W02S/+s7HAiEAiN8HUggjX9L/8aKOw7zKn0pE2dc4JHcroa9OX7ZTtZw="}]},"_npmUser":{"name":"anmolbansal","email":"anmolbansal1807@gmail.com"},"directories":{},"maintainers":[{"name":"anmolbansal","email":"anmolbansal1807@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cactus-plugin-ledger-connector-polkadot_2.0.0-alpha.3_1705181307261_0.9478140028452644"},"_hasShrinkwrap":false},"2.0.0-alpha.4":{"name":"@anmolbansal/cactus-plugin-ledger-connector-polkadot","version":"2.0.0-alpha.4","description":"Allows Cactus nodes to connect to a Substrate ledger.","keywords":["Hyperledger","Cactus","Integration","Blockchain","Distributed Ledger Technology"],"homepage":"https://github.com/hyperledger/cacti#readme","bugs":{"url":"https://github.com/hyperledger/cacti/issues"},"repository":{"type":"git","url":"git+https://github.com/hyperledger/cacti.git"},"license":"Apache-2.0","author":{"name":"Hyperledger Cactus Contributors","email":"cactus@lists.hyperledger.org","url":"https://www.hyperledger.org/use/cactus"},"contributors":[{"name":"Please add yourself to the list of contributors","email":"your.name@example.com","url":"https://example.com"},{"name":"Catarina Pedreira"},{"name":"Rafael Belchior"},{"name":"Anmol Bansal","email":"anmolbansal1807@gmail.com"}],"main":"dist/lib/main/typescript/index.js","module":"dist/lib/main/typescript/index.js","browser":"dist/cactus-plugin-ledger-connector-polkadot.web.umd.js","types":"dist/types/main/typescript/index.d.ts","scripts":{"codegen":"run-p 'codegen:*'","codegen:openapi":"npm run generate-sdk","generate-sdk":"openapi-generator-cli generate -i ./src/main/json/openapi.json -g typescript-axios -o ./src/main/typescript/generated/openapi/typescript-axios/ --reserved-words-mappings protected=protected","lint":"tslint tests/*.ts -t verbose","lint-fix":"tslint --fix tests/*.ts -t verbose","watch":"npm-watch","webpack":"npm-run-all webpack:dev webpack:prod","webpack:dev":"npm-run-all webpack:dev:node webpack:dev:web","webpack:dev:node":"webpack --env=dev --target=node --config ../../webpack.config.js","webpack:dev:web":"webpack --env=dev --target=web --config ../../webpack.config.js","webpack:prod":"npm-run-all webpack:prod:node webpack:prod:web","webpack:prod:node":"webpack --env=prod --target=node --config ../../webpack.config.js","webpack:prod:web":"webpack --env=prod --target=web --config ../../webpack.config.js"},"dependencies":{"@hyperledger/cactus-common":"2.0.0-alpha.2","@hyperledger/cactus-core":"2.0.0-alpha.2","@hyperledger/cactus-core-api":"2.0.0-alpha.2","@polkadot/api":"10.9.1","@polkadot/api-contract":"10.9.1","@polkadot/rpc-provider":"10.9.1","@polkadot/types":"10.9.1","@polkadot/util":"12.6.2","bl":"5.0.0","eslint":"7.21.0","express":"4.17.1","express-openapi-validator":"4.13.1","form-data":"4.0.0","fs-extra":"11.2.0","http-errors":"2.0.0","http-status-codes":"2.1.4","joi":"14.3.1","multer":"1.4.2","ngo":"2.6.2","openapi-types":"9.1.0","prom-client":"13.2.0","run-time-error-cjs":"1.4.0","temp":"0.9.1","tslint":"6.1.3","typescript-optional":"2.0.1","uuid":"8.3.2"},"devDependencies":{"@hyperledger/cactus-plugin-keychain-memory":"2.0.0-alpha.2","@hyperledger/cactus-test-tooling":"2.0.0-alpha.2","@types/express":"4.17.19","@types/http-errors":"2.0.4","@types/joi":"14.3.4","@types/multer":"1.4.7","@types/ssh2":"0.5.44","@types/supertest":"2.0.11","@types/temp":"0.9.1","@types/uuid":"8.3.1","axios":"0.22.0","supertest":"6.1.6"},"engines":{"node":">=10","npm":">=6"},"publishConfig":{"access":"public"},"browserMinified":"dist/cactus-plugin-ledger-connector-polkadot.web.umd.min.js","mainMinified":"dist/cactus-plugin-ledger-connector-polkadot.node.umd.min.js","watch":{"codegen:openapi":{"patterns":["./src/main/json/openapi.json"]}},"_id":"@anmolbansal/cactus-plugin-ledger-connector-polkadot@2.0.0-alpha.4","gitHead":"f7e7a2a1cd9694327e4d323650bd3fad9b3b80dd","_nodeVersion":"16.14.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-atylA4t/MMCs2Q7UdyfXD/QV2OigCsUul4IUV1+5ypS8LCacVomwrTHHIZ0aQrNywLVL+C6uGWoMehZj101H/w==","shasum":"4f68c2ecc910c8aea432767225ef52dc83d12e2c","tarball":"https://registry.npmjs.org/@anmolbansal/cactus-plugin-ledger-connector-polkadot/-/cactus-plugin-ledger-connector-polkadot-2.0.0-alpha.4.tgz","fileCount":58,"unpackedSize":325550,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGY0ib3OYngSkarG1EuRLrNaSEe7/Tn2SY1KaiZ3fVNuAiAo6OD+wxRm7l3+7YLUrRxOnHS3rCmFqChPe1nLTwQs0g=="}]},"_npmUser":{"name":"anmolbansal","email":"anmolbansal1807@gmail.com"},"directories":{},"maintainers":[{"name":"anmolbansal","email":"anmolbansal1807@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cactus-plugin-ledger-connector-polkadot_2.0.0-alpha.4_1705227337019_0.9007764426842777"},"_hasShrinkwrap":false},"100.0.0":{"name":"@anmolbansal/cactus-plugin-ledger-connector-polkadot","version":"100.0.0","description":"Allows Cactus nodes to connect to a Substrate ledger.","keywords":["Hyperledger","Cactus","Integration","Blockchain","Distributed Ledger Technology"],"homepage":"https://github.com/hyperledger/cacti#readme","bugs":{"url":"https://github.com/hyperledger/cacti/issues"},"repository":{"type":"git","url":"git+https://github.com/hyperledger/cacti.git"},"license":"Apache-2.0","author":{"name":"Hyperledger Cactus Contributors","email":"cactus@lists.hyperledger.org","url":"https://www.hyperledger.org/use/cactus"},"contributors":[{"name":"Please add yourself to the list of contributors","email":"your.name@example.com","url":"https://example.com"},{"name":"Catarina Pedreira"},{"name":"Rafael Belchior"},{"name":"Anmol Bansal","email":"anmolbansal1807@gmail.com"}],"main":"dist/lib/main/typescript/index.js","module":"dist/lib/main/typescript/index.js","browser":"dist/cactus-plugin-ledger-connector-polkadot.web.umd.js","types":"dist/types/main/typescript/index.d.ts","scripts":{"codegen":"run-p 'codegen:*'","codegen:openapi":"npm run generate-sdk","generate-sdk":"openapi-generator-cli generate -i ./src/main/json/openapi.json -g typescript-axios -o ./src/main/typescript/generated/openapi/typescript-axios/ --reserved-words-mappings protected=protected","lint":"tslint tests/*.ts -t verbose","lint-fix":"tslint --fix tests/*.ts -t verbose","watch":"npm-watch","webpack":"npm-run-all webpack:dev webpack:prod","webpack:dev":"npm-run-all webpack:dev:node webpack:dev:web","webpack:dev:node":"webpack --env=dev --target=node --config ../../webpack.config.js","webpack:dev:web":"webpack --env=dev --target=web --config ../../webpack.config.js","webpack:prod":"npm-run-all webpack:prod:node webpack:prod:web","webpack:prod:node":"webpack --env=prod --target=node --config ../../webpack.config.js","webpack:prod:web":"webpack --env=prod --target=web --config ../../webpack.config.js"},"dependencies":{"@hyperledger/cactus-common":"2.0.0-alpha.2","@hyperledger/cactus-core":"2.0.0-alpha.2","@hyperledger/cactus-core-api":"2.0.0-alpha.2","@polkadot/api":"10.9.1","@polkadot/api-contract":"10.9.1","@polkadot/rpc-provider":"10.9.1","@polkadot/types":"10.9.1","@polkadot/util":"12.6.2","bl":"5.0.0","eslint":"7.21.0","express":"4.17.1","express-openapi-validator":"4.13.1","form-data":"4.0.0","fs-extra":"11.2.0","http-errors":"2.0.0","http-status-codes":"2.1.4","joi":"14.3.1","multer":"1.4.2","ngo":"2.6.2","openapi-types":"9.1.0","prom-client":"13.2.0","run-time-error":"1.4.0","temp":"0.9.1","tslint":"6.1.3","typescript-optional":"2.0.1","uuid":"8.3.2"},"devDependencies":{"@hyperledger/cactus-plugin-keychain-memory":"2.0.0-alpha.2","@hyperledger/cactus-test-tooling":"2.0.0-alpha.2","@types/express":"4.17.19","@types/http-errors":"2.0.4","@types/joi":"14.3.4","@types/multer":"1.4.7","@types/ssh2":"0.5.44","@types/supertest":"2.0.11","@types/temp":"0.9.1","@types/uuid":"8.3.1","axios":"0.22.0","supertest":"6.1.6"},"engines":{"node":">=10","npm":">=6"},"publishConfig":{"access":"public"},"browserMinified":"dist/cactus-plugin-ledger-connector-polkadot.web.umd.min.js","mainMinified":"dist/cactus-plugin-ledger-connector-polkadot.node.umd.min.js","watch":{"codegen:openapi":{"patterns":["./src/main/json/openapi.json"]}},"_id":"@anmolbansal/cactus-plugin-ledger-connector-polkadot@100.0.0","gitHead":"f7e7a2a1cd9694327e4d323650bd3fad9b3b80dd","_nodeVersion":"16.14.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-8+OKU78rQSM4e20AzYzyvZdxYmBvdt8d7qgvprEMVx4NywwN4mhi1nHoxz6Llfqq2wuSB7FMGUGhngGX/i7ATw==","shasum":"81a95a6dec854388e5b80dbffe0b70641e35821d","tarball":"https://registry.npmjs.org/@anmolbansal/cactus-plugin-ledger-connector-polkadot/-/cactus-plugin-ledger-connector-polkadot-100.0.0.tgz","fileCount":58,"unpackedSize":325541,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDsmMmy/4OlepCBP+RFbY4dxjhKXbns78J7P3v0D8vCrgIhAK/VsMB7CyjXfeGdxMGXW98BCHyG/NqwUtyodrC3BSc3"}]},"_npmUser":{"name":"anmolbansal","email":"anmolbansal1807@gmail.com"},"directories":{},"maintainers":[{"name":"anmolbansal","email":"anmolbansal1807@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cactus-plugin-ledger-connector-polkadot_100.0.0_1706528362536_0.8206241859459027"},"_hasShrinkwrap":false},"100.0.3":{"name":"@anmolbansal/cactus-plugin-ledger-connector-polkadot","version":"100.0.3","description":"Allows Cactus nodes to connect to a Substrate ledger.","keywords":["Hyperledger","Cactus","Integration","Blockchain","Distributed Ledger Technology"],"homepage":"https://github.com/hyperledger/cacti#readme","bugs":{"url":"https://github.com/hyperledger/cacti/issues"},"repository":{"type":"git","url":"git+https://github.com/hyperledger/cacti.git"},"license":"Apache-2.0","author":{"name":"Hyperledger Cactus Contributors","email":"cactus@lists.hyperledger.org","url":"https://www.hyperledger.org/use/cactus"},"contributors":[{"name":"Please add yourself to the list of contributors","email":"your.name@example.com","url":"https://example.com"},{"name":"Catarina Pedreira"},{"name":"Rafael Belchior"},{"name":"Anmol Bansal","email":"anmolbansal1807@gmail.com"}],"main":"dist/lib/main/typescript/index.js","module":"dist/lib/main/typescript/index.js","browser":"dist/cactus-plugin-ledger-connector-polkadot.web.umd.js","types":"dist/types/main/typescript/index.d.ts","scripts":{"codegen":"run-p 'codegen:*'","codegen:openapi":"npm run generate-sdk","generate-sdk":"openapi-generator-cli generate -i ./src/main/json/openapi.json -g typescript-axios -o ./src/main/typescript/generated/openapi/typescript-axios/ --reserved-words-mappings protected=protected","lint":"tslint tests/*.ts -t verbose","lint-fix":"tslint --fix tests/*.ts -t verbose","watch":"npm-watch","webpack":"npm-run-all webpack:dev webpack:prod","webpack:dev":"npm-run-all webpack:dev:node webpack:dev:web","webpack:dev:node":"webpack --env=dev --target=node --config ../../webpack.config.js","webpack:dev:web":"webpack --env=dev --target=web --config ../../webpack.config.js","webpack:prod":"npm-run-all webpack:prod:node webpack:prod:web","webpack:prod:node":"webpack --env=prod --target=node --config ../../webpack.config.js","webpack:prod:web":"webpack --env=prod --target=web --config ../../webpack.config.js"},"dependencies":{"@hyperledger/cactus-common":"2.0.0-alpha.2","@hyperledger/cactus-core":"2.0.0-alpha.2","@hyperledger/cactus-core-api":"2.0.0-alpha.2","@polkadot/api":"10.9.1","@polkadot/api-contract":"10.9.1","@polkadot/rpc-provider":"10.9.1","@polkadot/types":"10.9.1","@polkadot/util":"12.6.2","bl":"5.0.0","eslint":"7.21.0","express":"4.17.1","express-openapi-validator":"4.13.1","form-data":"4.0.0","fs-extra":"11.2.0","http-errors":"2.0.0","http-status-codes":"2.1.4","joi":"14.3.1","multer":"1.4.2","ngo":"2.6.2","openapi-types":"9.1.0","prom-client":"13.2.0","run-time-error":"1.4.0","temp":"0.9.1","tslint":"6.1.3","typescript-optional":"2.0.1","uuid":"8.3.2"},"devDependencies":{"@hyperledger/cactus-plugin-keychain-memory":"2.0.0-alpha.2","@hyperledger/cactus-test-tooling":"2.0.0-alpha.2","@types/express":"4.17.19","@types/http-errors":"2.0.4","@types/joi":"14.3.4","@types/multer":"1.4.7","@types/ssh2":"0.5.44","@types/supertest":"2.0.11","@types/temp":"0.9.1","@types/uuid":"8.3.1","axios":"0.22.0","supertest":"6.1.6"},"engines":{"node":">=10","npm":">=6"},"publishConfig":{"access":"public"},"browserMinified":"dist/cactus-plugin-ledger-connector-polkadot.web.umd.min.js","mainMinified":"dist/cactus-plugin-ledger-connector-polkadot.node.umd.min.js","watch":{"codegen:openapi":{"patterns":["./src/main/json/openapi.json"]}},"_id":"@anmolbansal/cactus-plugin-ledger-connector-polkadot@100.0.3","gitHead":"f7e7a2a1cd9694327e4d323650bd3fad9b3b80dd","_nodeVersion":"16.14.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-55LQcyfSBiQCj8geqjZiq5Gedjw0QYuFIJqzg4Xp0FigbRfbEdhMOXH4SwbnXjHMbfCEgSxz98vGo3eExN+NPg==","shasum":"5d94334c7587ecf93a53c9784be5e740d7f62a32","tarball":"https://registry.npmjs.org/@anmolbansal/cactus-plugin-ledger-connector-polkadot/-/cactus-plugin-ledger-connector-polkadot-100.0.3.tgz","fileCount":58,"unpackedSize":326351,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE+MWavsNDvD1SrGQ1hs4GxMxkyIFSoauDk/hVLjQTj7AiAIpkDixURZsgRSI1D1OonpQIbop5vuYIybVWBVQPYajg=="}]},"_npmUser":{"name":"anmolbansal","email":"anmolbansal1807@gmail.com"},"directories":{},"maintainers":[{"name":"anmolbansal","email":"anmolbansal1807@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cactus-plugin-ledger-connector-polkadot_100.0.3_1706710558820_0.38276614745130266"},"_hasShrinkwrap":false}},"time":{"created":"2024-01-13T21:11:12.855Z","2.0.0-alpha.2":"2024-01-13T21:11:13.156Z","modified":"2024-01-31T14:15:59.141Z","2.0.0-alpha.3":"2024-01-13T21:28:27.405Z","2.0.0-alpha.4":"2024-01-14T10:15:37.186Z","100.0.0":"2024-01-29T11:39:22.688Z","100.0.3":"2024-01-31T14:15:58.958Z"},"maintainers":[{"name":"anmolbansal","email":"anmolbansal1807@gmail.com"}],"description":"Allows Cactus nodes to connect to a Substrate ledger.","homepage":"https://github.com/hyperledger/cacti#readme","keywords":["Hyperledger","Cactus","Integration","Blockchain","Distributed Ledger Technology"],"repository":{"type":"git","url":"git+https://github.com/hyperledger/cacti.git"},"contributors":[{"name":"Please add yourself to the list of contributors","email":"your.name@example.com","url":"https://example.com"},{"name":"Catarina Pedreira"},{"name":"Rafael Belchior"},{"name":"Anmol Bansal","email":"anmolbansal1807@gmail.com"}],"author":{"name":"Hyperledger Cactus Contributors","email":"cactus@lists.hyperledger.org","url":"https://www.hyperledger.org/use/cactus"},"bugs":{"url":"https://github.com/hyperledger/cacti/issues"},"license":"Apache-2.0","readme":"# `@hyperledger/cactus-plugin-ledger-connector-polkadot` <!-- omit in toc -->\n\n## Table of Contents <!-- omit in toc -->\n\n- [1. Usage](#1-usage)\n  - [1.1. Installation](#11-installation)\n  - [1.2. Using as a Library](#12-using-as-a-library)\n  - [1.3. Using Via The API Client](#13-using-via-the-api-client)\n- [2. Architecture](#2-architecture)\n  - [2.1. run-transaction-endpoint](#21-run-transaction-endpoint)\n- [3. Containerization](#3-containerization)\n  - [3.1. Building/running the container image locally](#31-buildingrunning-the-container-image-locally)\n  - [3.2. Running the container](#32-running-the-container)\n- [4. Prometheus Exporter](#4-prometheus-exporter)\n  - [4.1. Usage Prometheus](#41-usage-prometheus)\n  - [4.2. Prometheus Integration](#42-prometheus-integration)\n  - [4.3. Helper code](#43-helper-code)\n    - [4.3.1. response.type.ts](#431-responsetypets)\n    - [4.3.2. data-fetcher.ts](#432-data-fetcherts)\n    - [4.3.3. metrics.ts](#433-metricsts)\n- [5. Contributing](#5-contributing)\n- [6. License](#6-license)\n- [7. Acknowledgments](#7-acknowledgments)\n\n\n## 1. Usage\n\nThis plugin provides a way to interact with Substrate networks.\nUsing this one can perform:\n* Deploy smart contracts (ink! contract).\n* Execute transactions on the ledger.\n* Invoke ink! contract functions.\n\nThe above functionality can either be accessed by importing the plugin directly as a library (embedding) or by hosting it as a REST API through the [Cactus API server](https://www.npmjs.com/package/@hyperledger/cactus-cmd-api-server)\n\nWe also publish the [Cactus API server as a container image](https://github.com/hyperledger/cactus/pkgs/container/cactus-cmd-api-server) to the GitHub Container Registry that you can run easily with a one liner.\nThe API server is also embeddable in your own NodeJS project if you choose to do so.\n\n### 1.1. Installation\n\n**npm**\n\n```sh\nnpm install @hyperledger/cactus-plugin-ledger-connector-polkadot\n```\n\n**yarn**\n\n```sh\nyarn add @hyperledger/cactus-plugin-ledger-connector-polkadot\n```\n\n### 1.2. Using as a Library\n\n```typescript\nimport {\n  PluginLedgerConnectorPolkadot,\n} from \"@hyperledger/cactus-plugin-ledger-connector-polkadot\";\n\nconst plugin = new PluginLedgerConnectorPolkadot({\n  // See test cases for exact details on what parameters are needed\n});\n\nconst req: RunTransactionRequest = {\n  // See tests for specific examples on request properties\n};\n\ntry {\n  const res = await plugin.transact(req);\n} catch (ex: Error) {\n  // Make sure to handle errors gracefully (which is dependent on your use-case)\n  console.error(ex);\n  throw ex;\n}\n```\n\n### 1.3. Using Via The API Client\n\n**Prerequisites**\n- A running Substrate ledger (network)\n- You have a running Cactus API server on `$HOST:$PORT` with the Polkadot connector plugin installed on it (and the latter configured to have access to the Substrate ledger from point 1)\n\n```typescript\nimport {\n  PluginLedgerConnectorPolkadot,\n  DefaultApi as PolkadotApi,\n} from \"@hyperledger/cactus-plugin-ledger-connector-polkadot\";\n\n// Step zero is to deploy your Substrate ledger and the Cactus API server\n\nconst apiHost = `http://${address}:${port}`;\n\nconst apiConfig = new Configuration({ basePath: apiHost });\n\nconst apiClient = new PolkadotApi(apiConfig);\n\nconst req: RunTransactionRequest = {\n  // See tests for specific examples on request properties\n};\n\ntry {\n  const res = await apiClient.runTransaction(req);\n} catch (ex: Error) {\n  // Make sure to handle errors gracefully (which is dependent on your use-case)\n  console.error(ex);\n  throw ex;\n}\n```\n## 2. Architecture\nThe sequence diagrams for various endpoints are mentioned below\n\n### 2.1. run-transaction-endpoint\n\n![run-transaction-endpoint sequence diagram](docs/architecture/images/run-transaction-endpoint.png)  \nThe above diagram shows the sequence diagram of run-transaction-endpoint. User A (One of the many Users) interacts with the API Client which in turn, calls the API server. API server then executes transact() method which is explained in detailed in the subsequent diagrams.  \n![run-transaction-endpoint transact() method](docs/architecture/images/run-transaction-endpoint-transact.png)  \nThe above diagram shows the sequence diagram of transact() method of the PluginLedgerConnectorPolkadot class. The caller to this function, which in reference to the above sequence diagram is API server, sends RunTransactionRequest object as an argument to the transact() method. Based on the type of Web3SigningCredentialType, corresponding responses are sent back to the caller.  \n![run-transaction-endpoint transactCactusKeychainRef() method](docs/architecture/images/run-transaction-endpoint-transact-cactuskeychainref.png)  \nThe above diagram shows transactCactusKeychainReference() method being called by the transact() method of the PluginLedgerConnector class when the Web3SigningCredentialType is CACTUSKEYCHAINREF. This method inturn calls transactMnemonicString() which calls the signAndSend() method of the Polkadot library.  \n![runtransaction-endpoint transactMnemonicString() method](docs/architecture/images/run-transaction-endpoint-transact-mnemonicstring.png)  \nThe above diagram shows transactMnemonicString() method being called by the transact() method of the PluginLedgerConnector class when the Web3SigningCredentialType is MNEMONICSTRING. This method then calls the signAndSend() method of the Polkadot library.  \n![run-transaction-endpoint transactSigned() method](docs/architecture/images/run-transaction-endpoint-transact-signed.png)  \nThe above diagram shows transactSigned() method being called by the transact() method of the PluginLedgerConnector class when the Web3SigningCredentialType is NONE. This method calls the api.rpc.author.submitAndWatchExtrinsic() of the Polkadot library.  \n\n\n## 3. Containerization\n### 3.1. Building/running the container image locally\n\nIn the Cactus project root say:\n\n```sh\nDOCKER_BUILDKIT=1 docker build -f ./packages/cactus-plugin-ledger-connector-polkadot/Dockerfile . -t cplcb\n```\n\nBuild with a specific version of the npm package:\n```sh\nDOCKER_BUILDKIT=1 docker build --build-arg NPM_PKG_VERSION=2.0.0-alpha.4 -f ./packages/cactus-plugin-ledger-connector-polkadot/Dockerfile . -t cplcb\n```\n\n### 3.2. Running the container\n\nLaunch container with plugin configuration as an **environment variable**:\n\n```sh\ndocker run \\\n  --rm \\\n  --publish 3000:3000 \\\n  --publish 4000:4000 \\\n  --env AUTHORIZATION_PROTOCOL='NONE' \\\n  --env AUTHORIZATION_CONFIG_JSON='{}' \\\n  --env GRPC_TLS_ENABLED=false \\\n  --env PLUGINS='[{\"packageName\": \"@hyperledger/cactus-plugin-ledger-connector-polkadot\", \"type\": \"org.hyperledger.cactus.plugin_import_type.LOCAL\", \"action\": \"org.hyperledger.cactus.plugin_import_action.INSTALL\",  \"options\": {\"wsProviderUrl\":\"ws://127.0.0.1:9944\", \"instanceId\": \"some-unique-polkadot-connector-instance-id\"}}]' \\\n  cplcb\n```\n\nLaunch container with plugin configuration as a **CLI argument**:\n```sh\ndocker run \\\n  --rm \\\n  --publish 3000:3000 \\\n   --publish 4000:4000 \\\n  cplcb \\\n    ./node_modules/.bin/cactusapi \\\n    --plugins='[{\"packageName\": \"@hyperledger/cactus-plugin-ledger-connector-polkadot\", \"type\": \"org.hyperledger.cactus.plugin_import_type.LOCAL\", \"action\": \"org.hyperledger.cactus.plugin_import_action.INSTALL\",  \"options\": {\"wsProviderUrl\":\"ws://127.0.0.1:9944\", \"instanceId\": \"some-unique-polkadot-connector-instance-id\"}}]'\n```\n\nLaunch container with **configuration file** mounted from host machine:\n```sh\n\necho '[{\"packageName\": \"@hyperledger/cactus-plugin-ledger-connector-polkadot\", \"type\": \"org.hyperledger.cactus.plugin_import_type.LOCAL\", \"action\": \"org.hyperledger.cactus.plugin_import_action.INSTALL\",  \"options\": {\"wsProviderUrl\":\"ws://127.0.0.1:9944\", \"instanceId\": \"some-unique-polkadot-connector-instance-id\"}}]' > cactus.json\n\ndocker run \\\n  --rm \\\n  --publish 3000:3000 \\\n  --publish 4000:4000 \\\n  --mount type=bind,source=\"$(pwd)\"/cactus.json,target=/cactus.json \\\n  cplcb \\\n    ./node_modules/.bin/cactusapi \\\n    --config-file=/cactus.json\n```\n\n## 4. Prometheus Exporter\n\nThis class creates a Prometheus exporter, which scraps the transactions (total transaction count) for the use cases incorporating the use of Fabric connector plugin.\n\n\n### 4.1. Usage Prometheus\nThe Prometheus exporter object is initialized in the `PluginLedgerConnectorPolkadot` class constructor itself, so instantiating the object of the `PluginLedgerConnectorPolkadot` class, gives access to the exporter object.\nYou can also initialize the Prometheus exporter object separately and then pass it to the `IPluginLedgerConnectorPolkadotOptions` interface for `PluginLedgerConnectorPolkadot` constructor.\n\n`getPrometheusExporterMetricsEndpoint` function returns the Prometheus exporter metrics, currently displaying the total transaction count, which currently increments every time the `transact()` method of the `PluginLedgerConnectoPolkadot` class is called.\n\n### 4.2. Prometheus Integration\nTo use Prometheus with this exporter make sure to install [Prometheus main component](https://prometheus.io/download/).\nOnce Prometheus is setup, the corresponding scrape_config needs to be added to the prometheus.yml\n\n```(yaml)\n- job_name: 'polkadot_ledger_connector_exporter'\n  metrics_path: api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-polkadot/get-prometheus-exporter-metrics\n  scrape_interval: 5s\n  static_configs:\n    - targets: ['{host}:{port}']\n```\n\nHere the `host:port` is where the Prometheus exporter metrics are exposed. The test cases (For example, packages/cactus-plugin-ledger-connector-polkadot/src/test/typescript/integration/run-transaction.test.ts) exposes it over `0.0.0.0` and a random port(). The random port can be found in the running logs of the test case and looks like (42379 in the below mentioned URL)\n`Metrics URL: http://0.0.0.0:42379/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-polkadot/get-prometheus-exporter-metrics`\n\nOnce edited, you can start the Prometheus service by referencing the above edited prometheus.yml file.\nOn the Prometheus graphical interface (defaulted to http://localhost:9090), choose **Graph** from the menu bar, then select the **Console** tab. From the **Insert metric at cursor** drop down, select **cactus_Polkadot_total_tx_count** and click **execute**\n\n### 4.3. Helper code\n\n#### 4.3.1. response.type.ts\nThis file contains the various responses of the metrics.\n\n#### 4.3.2. data-fetcher.ts\nThis file contains functions encasing the logic to process the data points\n\n#### 4.3.3. metrics.ts\nThis file lists all the Prometheus metrics and what they are used for.\n\n## 5. Contributing\n\nWe welcome contributions to Hyperledger Cactus in many forms, and there’s always plenty to do!\n\nPlease review [CONTIRBUTING.md](../../CONTRIBUTING.md) to get started.\n\n## 6. License\n\nThis distribution is published under the Apache License Version 2.0 found in the [LICENSE](../../LICENSE) file.\n\n## 7. Acknowledgments\n","readmeFilename":"README.md"}