@ledgerhq/hw-app-algorand 6.20.0 → 6.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -22,7 +22,7 @@ Ledger Hardware Wallet Algorand JavaScript bindings.
22
22
 
23
23
  ### Algorand
24
24
 
25
- Cosmos API
25
+ Algorand API
26
26
 
27
27
  #### Parameters
28
28
 
@@ -37,7 +37,7 @@ const algo = new Algorand(transport)
37
37
 
38
38
  #### getAddress
39
39
 
40
- get Algorajt address for a given BIP 32 path.
40
+ get Algorant address for a given BIP 32 path.
41
41
 
42
42
  ##### Parameters
43
43
 
@@ -47,7 +47,7 @@ get Algorajt address for a given BIP 32 path.
47
47
  ##### Examples
48
48
 
49
49
  ```javascript
50
- cosmos.getAddress("44'/60'/0'/0/0").then(o => o.address)
50
+ cosmos.getAddress("44'/283'/0'/0/0").then(o => o.address)
51
51
  ```
52
52
 
53
53
  Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<{publicKey: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String), address: [string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)}>** an object with a publicKey, address and (optionally) chainCode
package/lib/Algorand.d.ts CHANGED
@@ -17,7 +17,7 @@
17
17
  ********************************************************************************/
18
18
  import type Transport from "@ledgerhq/hw-transport";
19
19
  /**
20
- * Cosmos API
20
+ * Algorand API
21
21
  *
22
22
  * @example
23
23
  * import Algorand from "@ledgerhq/hw-app-algorand";
@@ -27,12 +27,12 @@ export default class Algorand {
27
27
  transport: Transport;
28
28
  constructor(transport: Transport);
29
29
  /**
30
- * get Algorajt address for a given BIP 32 path.
30
+ * get Algorant address for a given BIP 32 path.
31
31
  * @param path a path in BIP 32 format
32
32
  * @option boolDisplay optionally enable or not the display
33
33
  * @return an object with a publicKey, address and (optionally) chainCode
34
34
  * @example
35
- * cosmos.getAddress("44'/60'/0'/0/0").then(o => o.address)
35
+ * cosmos.getAddress("44'/283'/0'/0/0").then(o => o.address)
36
36
  */
37
37
  getAddress(path: string, boolDisplay?: boolean): Promise<{
38
38
  publicKey: string;
package/lib/Algorand.js CHANGED
@@ -56,7 +56,7 @@ var CLA = 0x80;
56
56
  var INS_GET_PUBLIC_KEY = 0x03;
57
57
  var INS_SIGN_MSGPACK = 0x08;
58
58
  /**
59
- * Cosmos API
59
+ * Algorand API
60
60
  *
61
61
  * @example
62
62
  * import Algorand from "@ledgerhq/hw-app-algorand";
@@ -68,12 +68,12 @@ var Algorand = /** @class */ (function () {
68
68
  transport.decorateAppAPIMethods(this, ["getAddress", "sign"], "ALGO");
69
69
  }
70
70
  /**
71
- * get Algorajt address for a given BIP 32 path.
71
+ * get Algorant address for a given BIP 32 path.
72
72
  * @param path a path in BIP 32 format
73
73
  * @option boolDisplay optionally enable or not the display
74
74
  * @return an object with a publicKey, address and (optionally) chainCode
75
75
  * @example
76
- * cosmos.getAddress("44'/60'/0'/0/0").then(o => o.address)
76
+ * cosmos.getAddress("44'/283'/0'/0/0").then(o => o.address)
77
77
  */
78
78
  Algorand.prototype.getAddress = function (path, boolDisplay) {
79
79
  var bipPath = bip32_path_1["default"].fromString(path).toPathArray();
@@ -17,7 +17,7 @@
17
17
  ********************************************************************************/
18
18
  import type Transport from "@ledgerhq/hw-transport";
19
19
  /**
20
- * Cosmos API
20
+ * Algorand API
21
21
  *
22
22
  * @example
23
23
  * import Algorand from "@ledgerhq/hw-app-algorand";
@@ -27,12 +27,12 @@ export default class Algorand {
27
27
  transport: Transport;
28
28
  constructor(transport: Transport);
29
29
  /**
30
- * get Algorajt address for a given BIP 32 path.
30
+ * get Algorant address for a given BIP 32 path.
31
31
  * @param path a path in BIP 32 format
32
32
  * @option boolDisplay optionally enable or not the display
33
33
  * @return an object with a publicKey, address and (optionally) chainCode
34
34
  * @example
35
- * cosmos.getAddress("44'/60'/0'/0/0").then(o => o.address)
35
+ * cosmos.getAddress("44'/283'/0'/0/0").then(o => o.address)
36
36
  */
37
37
  getAddress(path: string, boolDisplay?: boolean): Promise<{
38
38
  publicKey: string;
@@ -51,7 +51,7 @@ var CLA = 0x80;
51
51
  var INS_GET_PUBLIC_KEY = 0x03;
52
52
  var INS_SIGN_MSGPACK = 0x08;
53
53
  /**
54
- * Cosmos API
54
+ * Algorand API
55
55
  *
56
56
  * @example
57
57
  * import Algorand from "@ledgerhq/hw-app-algorand";
@@ -63,12 +63,12 @@ var Algorand = /** @class */ (function () {
63
63
  transport.decorateAppAPIMethods(this, ["getAddress", "sign"], "ALGO");
64
64
  }
65
65
  /**
66
- * get Algorajt address for a given BIP 32 path.
66
+ * get Algorant address for a given BIP 32 path.
67
67
  * @param path a path in BIP 32 format
68
68
  * @option boolDisplay optionally enable or not the display
69
69
  * @return an object with a publicKey, address and (optionally) chainCode
70
70
  * @example
71
- * cosmos.getAddress("44'/60'/0'/0/0").then(o => o.address)
71
+ * cosmos.getAddress("44'/283'/0'/0/0").then(o => o.address)
72
72
  */
73
73
  Algorand.prototype.getAddress = function (path, boolDisplay) {
74
74
  var bipPath = BIPPath.fromString(path).toPathArray();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/hw-app-algorand",
3
- "version": "6.20.0",
3
+ "version": "6.24.0",
4
4
  "description": "Ledger Hardware Wallet Algorand Application API",
5
5
  "keywords": [
6
6
  "Ledger",
@@ -40,5 +40,5 @@
40
40
  "watch": "bash ../../script/watch.sh",
41
41
  "doc": "bash ../../script/doc.sh"
42
42
  },
43
- "gitHead": "814218180de877f1c4128af1b9e2dd0fb7dfb0c7"
43
+ "gitHead": "b97c53ae460ea09aff7126733a9f2422357073b5"
44
44
  }
package/src/Algorand.ts CHANGED
@@ -32,7 +32,7 @@ const CLA = 0x80;
32
32
  const INS_GET_PUBLIC_KEY = 0x03;
33
33
  const INS_SIGN_MSGPACK = 0x08;
34
34
  /**
35
- * Cosmos API
35
+ * Algorand API
36
36
  *
37
37
  * @example
38
38
  * import Algorand from "@ledgerhq/hw-app-algorand";
@@ -48,12 +48,12 @@ export default class Algorand {
48
48
  }
49
49
 
50
50
  /**
51
- * get Algorajt address for a given BIP 32 path.
51
+ * get Algorant address for a given BIP 32 path.
52
52
  * @param path a path in BIP 32 format
53
53
  * @option boolDisplay optionally enable or not the display
54
54
  * @return an object with a publicKey, address and (optionally) chainCode
55
55
  * @example
56
- * cosmos.getAddress("44'/60'/0'/0/0").then(o => o.address)
56
+ * cosmos.getAddress("44'/283'/0'/0/0").then(o => o.address)
57
57
  */
58
58
  getAddress(
59
59
  path: string,