@ledgerhq/hw-app-algorand 6.11.2 → 6.24.1
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 +3 -3
- package/lib/Algorand.d.ts +3 -3
- package/lib/Algorand.js +3 -3
- package/lib-es/Algorand.d.ts +3 -3
- package/lib-es/Algorand.js +3 -3
- package/package.json +3 -3
- package/src/Algorand.ts +3 -3
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@ Ledger Hardware Wallet Algorand JavaScript bindings.
|
|
|
22
22
|
|
|
23
23
|
### Algorand
|
|
24
24
|
|
|
25
|
-
|
|
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
|
|
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'/
|
|
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
|
-
*
|
|
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
|
|
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'/
|
|
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
|
-
*
|
|
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
|
|
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'/
|
|
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();
|
package/lib-es/Algorand.d.ts
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
********************************************************************************/
|
|
18
18
|
import type Transport from "@ledgerhq/hw-transport";
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
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
|
|
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'/
|
|
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-es/Algorand.js
CHANGED
|
@@ -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
|
-
*
|
|
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
|
|
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'/
|
|
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.
|
|
3
|
+
"version": "6.24.1",
|
|
4
4
|
"description": "Ledger Hardware Wallet Algorand Application API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Ledger",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"license": "Apache-2.0",
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@ledgerhq/errors": "^6.10.0",
|
|
31
|
-
"@ledgerhq/hw-transport": "^6.
|
|
31
|
+
"@ledgerhq/hw-transport": "^6.24.1",
|
|
32
32
|
"bip32-path": "^0.4.2",
|
|
33
33
|
"hi-base32": "^0.5.1",
|
|
34
34
|
"js-sha512": "^0.8.0",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"watch": "bash ../../script/watch.sh",
|
|
41
41
|
"doc": "bash ../../script/doc.sh"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "159269dafc5f177c7af5b20761ab0ef3550e3faf"
|
|
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
|
-
*
|
|
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
|
|
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'/
|
|
56
|
+
* cosmos.getAddress("44'/283'/0'/0/0").then(o => o.address)
|
|
57
57
|
*/
|
|
58
58
|
getAddress(
|
|
59
59
|
path: string,
|