{"_id":"@blooo/ledger-thorchain-js","name":"@blooo/ledger-thorchain-js","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.1":{"name":"@blooo/ledger-thorchain-js","author":{"name":"Blooo"},"license":"Apache-2.0","version":"1.0.1","description":"Node API for THORChain App (Ledger Nano S/S+/X)","main":"./dist/index.js","typings":"./dist/index.d.ts","types":"./dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/blooo-io/ledger-thorchain-js.git"},"keywords":["Ledger","Typescript","Tendermint","THORChain"],"bugs":{"url":"https://github.com/blooo-io/ledger-thorchain-js/issues"},"homepage":"https://github.com/blooo-io/ledger-thorchain-js","resolutions":{"@ledgerhq/hw-transport":"6.27.1","@ledgerhq/devices":"6.27.1","@ledgerhq/hw-transport-node-hid":"6.27.1","@ledgerhq/hw-transport-node-hid-noevents":"6.27.1"},"dependencies":{"@babel/runtime":"^7.14.8","@ledgerhq/hw-transport":"6.27.1","@ledgerhq/hw-transport-u2f":"^5.36.0-deprecated","@vue/cli-plugin-typescript":"^5.0.8","@vue/cli-service":"^5.0.8","bech32":"^1.1.4","buffer":"^6.0.3","crypto":"^1.0.1","crypto-browserify":"^3.12.0","ripemd160":"^2.0.2","stream-browserify":"^3.0.0","vue":"^2.7.7","vue-template-compiler":"^2.7.16"},"devDependencies":{"@babel/cli":"^7.18.10","@babel/core":"^7.18.10","@babel/node":"^7.18.10","@babel/plugin-transform-runtime":"^7.18.9","@babel/preset-env":"^7.18.9","@ledgerhq/hw-transport-node-hid":"6.27.1","@ledgerhq/hw-transport-webusb":"6.27.1","@swc/core":"^1.2.237","@types/jest":"^26.0.24","@types/ledgerhq__hw-transport":"4.21.4","@types/node":"^18.11.9","@typescript-eslint/eslint-plugin":"^5.33.1","@typescript-eslint/parser":"^5.33.1","babel-eslint":"^10.1.0","babel-jest":"^28.1.3","bip32":"2.0.6","bip39":"3.0.2","copyfiles":"^2.4.1","core-js":"^3.15.2","crypto-js":"4.2.0","eslint":"^8.22.0","eslint-config-prettier":"^8.5.0","eslint-plugin-import":"^2.26.0","eslint-plugin-jest":"^26.8.3","eslint-plugin-prettier":"^3.4.0","jest":"^26","jest-serial-runner":"^1.2.0","prettier":"^2.3.2","secp256k1":"^4.0.2","ts-jest":"26","ts-node":"^10.8.1","typescript":"^4.7.4","webpack":"^5.91.0"},"moduleDirectories":["node_modules","dist"],"browserslist":["> 1%","last 2 versions"],"publishConfig":{"access":"public"},"peerDependencies":{"@babel/core":"^7.17.5","@types/node":"^17.0.21"},"scripts":{"build":"tsc && yarn copy-files","copy-files":"copyfiles -u 0 src/**/*.proto dist/","test:integration":"yarn build && jest -t 'Integration'","test:unit":"yarn build && jest tests/basic_unit.test.ts","serve":"openssl req -nodes -new -x509 -config certs/openssl.cnf -keyout certs/server.key -out certs/server.cert; openssl x509 -in certs/server.cert -out certs/cert.pem -outform PEM; vue-cli-service serve vue_example/main.js","linter":"eslint --ext .ts,.tsx,.js,.jsx --ignore-path .eslintignore . --max-warnings 0","format":"prettier --write \"**/*.{js,jsx,ts,tsx,json,md}\""},"_id":"@blooo/ledger-thorchain-js@1.0.1","gitHead":"0989b1b263661cc3c5a80245ec9c309476094429","_nodeVersion":"18.20.2","_npmVersion":"10.5.0","dist":{"integrity":"sha512-X2vBz+fSplVXuyTfMM9LaexH/wN9GZ7O/HPa5HJcdwj7tSVibVtIiaqyJe8viE6ggaJzs98WU4UYMuKYnk8xIQ==","shasum":"5ef40a4b6d74fc82d3b4e83da96eab7e789c7322","tarball":"https://registry.npmjs.org/@blooo/ledger-thorchain-js/-/ledger-thorchain-js-1.0.1.tgz","fileCount":18,"unpackedSize":97966,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGieDHrw0FdRE3VhKc6t+La+MWr7RWEHtd3vsqm4+8RKAiAxfFb9TJvN6VZztshuuh98wOdEzIX8Fq5bmyBxHIXCrw=="}]},"_npmUser":{"name":"n4l5u0r","email":"rouslan@blooo.io"},"directories":{},"maintainers":[{"name":"n4l5u0r","email":"rouslan@blooo.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ledger-thorchain-js_1.0.1_1715779884492_0.982203892064027"},"_hasShrinkwrap":false}},"time":{"created":"2024-05-15T13:31:24.396Z","1.0.1":"2024-05-15T13:31:24.680Z","modified":"2024-05-15T13:31:25.022Z"},"maintainers":[{"name":"n4l5u0r","email":"rouslan@blooo.io"}],"description":"Node API for THORChain App (Ledger Nano S/S+/X)","homepage":"https://github.com/blooo-io/ledger-thorchain-js","keywords":["Ledger","Typescript","Tendermint","THORChain"],"repository":{"type":"git","url":"git+https://github.com/blooo-io/ledger-thorchain-js.git"},"author":{"name":"Blooo"},"bugs":{"url":"https://github.com/blooo-io/ledger-thorchain-js/issues"},"license":"Apache-2.0","readme":"# @blooo/ledger-thorchain-js\n\nThis package provides a basic client library to communicate with the THORChain App running in a Ledger Nano S/S+/X devices\n\nWe recommend using the npmjs package in order to receive updates/fixes.\n\n\n# Available commands\n\n| Operation  | Response         | Command                           |\n| ---------- | ---------------- | -----------------------           |\n| getVersion | app version      | ---------------                   |\n| publicKey  | pubkey            | path (legacy command)            |\n| getAddressAndPubKey | pubkey + address | path + ( showInDevice )  |\n| showAddressAndPubKey       | signed message   | path              |\n| appInfo       | name, version, flags, etc   | ---------------                |\n| deviceInfo       | fw and mcu version, id, etc   | Only available in dashboard             |\n| sign       | signed message   | path  + transaction type +  message                    |\n| sign       | signed message   | path  + transaction type +  message                    |\n\n\ngetAddress command requires that you set the derivation path (account, change, index) and has an option parameter to display the address on the device. By default, it will retrieve the information without user confirmation.\n\nsign command requires that you specify the transaction type, '0' for json transaction\n\n# Testing with real devices\n\nIt is possible to test this package with a real Ledger Nano device. To accomplish that, you will need to follow these steps:\n\n- Install the application in the Ledger device\n- Install the dependencies from this project\n- Run tests\n\n```shell script\nyarn install\nyarn test:integration\n```","readmeFilename":"README.md"}