Skip to content

Commit 150ccbe

Browse files
authored
Merge pull request #61 from Zondax/dev
Fix npm readme
2 parents 7336c52 + c950d4a commit 150ccbe

File tree

3 files changed

+48
-1
lines changed

3 files changed

+48
-1
lines changed

.github/workflows/publish.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
with:
2828
registry-url: 'https://registry.npmjs.org'
2929
scope: '@zondax'
30+
- run: mv README-npm.md README.md
3031
- name: Install yarn
3132
run: npm install -g yarn
3233
- run: yarn install

README-npm.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# @zondax/ledger-cosmos-js
2+
3+
![zondax](docs/zondax_light.png)
4+
5+
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
6+
[![Main](https://github.com/Zondax/ledger-cosmos-js/workflows/Main/badge.svg)](https://github.com/Zondax/ledger-cosmos-js/actions?query=workflow%3AMain)
7+
[![npm version](https://badge.fury.io/js/%40zondax%2Fledger-cosmos-js.svg)](https://badge.fury.io/js/%40zondax%2Fledger-cosmos-js)
8+
9+
10+
This package provides a basic client library to communicate with a Tendermint/Cosmos App running in a Ledger Nano S/S+/X devices
11+
12+
We recommend using the npmjs package in order to receive updates/fixes.
13+
14+
15+
# Available commands
16+
17+
| Operation | Response | Command |
18+
| ---------- | ---------------- | ----------------------- |
19+
| getVersion | app version | --------------- |
20+
| publicKey | pubkey | path (legacy command) |
21+
| getAddressAndPubKey | pubkey + address | path + ( showInDevice ) |
22+
| showAddressAndPubKey | signed message | path |
23+
| appInfo | name, version, flags, etc | --------------- |
24+
| deviceInfo | fw and mcu version, id, etc | Only available in dashboard |
25+
| sign | signed message | path + message |
26+
27+
28+
getAddress 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.
29+
30+
31+
# Testing with real devices
32+
33+
It is possible to test this package with a real Ledger Nano device. To accomplish that, you will need to follow these steps:
34+
35+
- Install the application in the Ledger device
36+
- Install the dependencies from this project
37+
- Run tests
38+
39+
```shell script
40+
yarn install
41+
yarn test:integration
42+
```
43+
44+
# Who we are?
45+
46+
We are Zondax, a company pioneering blockchain services. If you want to know more about us, please visit us at [zondax.ch](https://zondax.ch)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@zondax/ledger-cosmos-js",
33
"author": "ZondaX AG",
44
"license": "Apache-2.0",
5-
"version": "3.0.0",
5+
"version": "3.0.1",
66
"description": "Node API for Cosmos App (Ledger Nano S/S+/X)",
77
"main": "./dist/index.js",
88
"typings": "./dist/index.d.ts",

0 commit comments

Comments
 (0)