@ledgerhq/coin-framework 0.20.0-nightly.1 → 0.20.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.
@@ -1,4 +1,4 @@
1
1
 
2
- > @ledgerhq/coin-framework@0.19.1-nightly.0 build /home/runner/work/ledger-live/ledger-live/libs/coin-framework
2
+ > @ledgerhq/coin-framework@0.20.0 build /home/runner/work/ledger-live/ledger-live/libs/coin-framework
3
3
  > tsc && tsc -m ES6 --outDir lib-es
4
4
 
package/CHANGELOG.md CHANGED
@@ -1,22 +1,44 @@
1
1
  # @ledgerhq/coin-framework
2
2
 
3
- ## 0.20.0-nightly.1
3
+ ## 0.20.0
4
4
 
5
5
  ### Minor Changes
6
6
 
7
7
  - [#8159](https://github.com/LedgerHQ/ledger-live/pull/8159) [`0b51d37`](https://github.com/LedgerHQ/ledger-live/commit/0b51d37762c73a88d7204d1fcc3bb60a110568ed) Thanks [@Wozacosta](https://github.com/Wozacosta)! - feat: scanAccount handle scheme arg
8
8
 
9
+ - [#8432](https://github.com/LedgerHQ/ledger-live/pull/8432) [`daa059a`](https://github.com/LedgerHQ/ledger-live/commit/daa059a90eb4381a0936c4a3703e8061db24072a) Thanks [@sprohaszka-ledger](https://github.com/sprohaszka-ledger)! - Alpaca allows delegate and undelegate tx crafting
10
+
9
11
  ### Patch Changes
10
12
 
11
13
  - Updated dependencies [[`724fa8b`](https://github.com/LedgerHQ/ledger-live/commit/724fa8b29cbda74a729c5756f91c5c9b745fdbdb)]:
12
- - @ledgerhq/types-live@6.54.0-nightly.1
14
+ - @ledgerhq/types-live@6.54.0
15
+
16
+ ## 0.20.0-next.0
17
+
18
+ ### Minor Changes
19
+
20
+ - [#8159](https://github.com/LedgerHQ/ledger-live/pull/8159) [`0b51d37`](https://github.com/LedgerHQ/ledger-live/commit/0b51d37762c73a88d7204d1fcc3bb60a110568ed) Thanks [@Wozacosta](https://github.com/Wozacosta)! - feat: scanAccount handle scheme arg
21
+
22
+ - [#8432](https://github.com/LedgerHQ/ledger-live/pull/8432) [`daa059a`](https://github.com/LedgerHQ/ledger-live/commit/daa059a90eb4381a0936c4a3703e8061db24072a) Thanks [@sprohaszka-ledger](https://github.com/sprohaszka-ledger)! - Alpaca allows delegate and undelegate tx crafting
23
+
24
+ ### Patch Changes
25
+
26
+ - Updated dependencies [[`724fa8b`](https://github.com/LedgerHQ/ledger-live/commit/724fa8b29cbda74a729c5756f91c5c9b745fdbdb)]:
27
+ - @ledgerhq/types-live@6.54.0-next.0
28
+
29
+ ## 0.19.1
30
+
31
+ ### Patch Changes
32
+
33
+ - Updated dependencies [[`5ce33a4`](https://github.com/LedgerHQ/ledger-live/commit/5ce33a417ecc87face54c1864aa49476c5f394b9), [`a52f6ae`](https://github.com/LedgerHQ/ledger-live/commit/a52f6ae3d49ea8daea42d9cdc24e9dd0d6d0f371), [`748cf14`](https://github.com/LedgerHQ/ledger-live/commit/748cf146b3e903172831e7e5ddbc29a3565c8932), [`61f8b03`](https://github.com/LedgerHQ/ledger-live/commit/61f8b033f710369171e277f5c0faede636207160)]:
34
+ - @ledgerhq/types-live@6.53.1
13
35
 
14
- ## 0.19.1-nightly.0
36
+ ## 0.19.1-next.0
15
37
 
16
38
  ### Patch Changes
17
39
 
18
- - Updated dependencies [[`61f8b03`](https://github.com/LedgerHQ/ledger-live/commit/61f8b033f710369171e277f5c0faede636207160)]:
19
- - @ledgerhq/types-live@6.53.1-nightly.0
40
+ - Updated dependencies [[`5ce33a4`](https://github.com/LedgerHQ/ledger-live/commit/5ce33a417ecc87face54c1864aa49476c5f394b9), [`a52f6ae`](https://github.com/LedgerHQ/ledger-live/commit/a52f6ae3d49ea8daea42d9cdc24e9dd0d6d0f371), [`748cf14`](https://github.com/LedgerHQ/ledger-live/commit/748cf146b3e903172831e7e5ddbc29a3565c8932), [`61f8b03`](https://github.com/LedgerHQ/ledger-live/commit/61f8b033f710369171e277f5c0faede636207160)]:
41
+ - @ledgerhq/types-live@6.53.1-next.0
20
42
 
21
43
  ## 0.19.0
22
44
 
@@ -0,0 +1,4 @@
1
+ export declare class IncorrectTypeError extends Error {
2
+ constructor(message?: string);
3
+ }
4
+ //# sourceMappingURL=errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/api/errors.ts"],"names":[],"mappings":"AAAA,qBAAa,kBAAmB,SAAQ,KAAK;gBAC/B,OAAO,CAAC,EAAE,MAAM;CAG7B"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IncorrectTypeError = void 0;
4
+ class IncorrectTypeError extends Error {
5
+ constructor(message) {
6
+ super(`IncorrectType: ${message}`);
7
+ }
8
+ }
9
+ exports.IncorrectTypeError = IncorrectTypeError;
10
+ //# sourceMappingURL=errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/api/errors.ts"],"names":[],"mappings":";;;AAAA,MAAa,kBAAmB,SAAQ,KAAK;IAC3C,YAAY,OAAgB;QAC1B,KAAK,CAAC,kBAAkB,OAAO,EAAE,CAAC,CAAC;IACrC,CAAC;CACF;AAJD,gDAIC"}
@@ -2,5 +2,6 @@
2
2
  * Module related to all API exposition constraints and helper.
3
3
  * One consumer of this API is Alpaca.
4
4
  */
5
+ export * from "./errors";
5
6
  export * from "./types";
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
package/lib/api/index.js CHANGED
@@ -18,5 +18,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
18
18
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
19
19
  };
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
+ __exportStar(require("./errors"), exports);
21
22
  __exportStar(require("./types"), exports);
22
23
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;AAEH,0CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;AAEH,2CAAyB;AACzB,0CAAwB"}
@@ -17,7 +17,7 @@ export type Operation = {
17
17
  details?: Record<string, unknown>;
18
18
  };
19
19
  export type Transaction = {
20
- mode: string;
20
+ type: string;
21
21
  recipient: string;
22
22
  amount: bigint;
23
23
  fee: bigint;
@@ -0,0 +1,4 @@
1
+ export declare class IncorrectTypeError extends Error {
2
+ constructor(message?: string);
3
+ }
4
+ //# sourceMappingURL=errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/api/errors.ts"],"names":[],"mappings":"AAAA,qBAAa,kBAAmB,SAAQ,KAAK;gBAC/B,OAAO,CAAC,EAAE,MAAM;CAG7B"}
@@ -0,0 +1,6 @@
1
+ export class IncorrectTypeError extends Error {
2
+ constructor(message) {
3
+ super(`IncorrectType: ${message}`);
4
+ }
5
+ }
6
+ //# sourceMappingURL=errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.js","sourceRoot":"","sources":["../../src/api/errors.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,kBAAmB,SAAQ,KAAK;IAC3C,YAAY,OAAgB;QAC1B,KAAK,CAAC,kBAAkB,OAAO,EAAE,CAAC,CAAC;IACrC,CAAC;CACF"}
@@ -2,5 +2,6 @@
2
2
  * Module related to all API exposition constraints and helper.
3
3
  * One consumer of this API is Alpaca.
4
4
  */
5
+ export * from "./errors";
5
6
  export * from "./types";
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
@@ -2,5 +2,6 @@
2
2
  * Module related to all API exposition constraints and helper.
3
3
  * One consumer of this API is Alpaca.
4
4
  */
5
+ export * from "./errors";
5
6
  export * from "./types";
6
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
@@ -17,7 +17,7 @@ export type Operation = {
17
17
  details?: Record<string, unknown>;
18
18
  };
19
19
  export type Transaction = {
20
- mode: string;
20
+ type: string;
21
21
  recipient: string;
22
22
  amount: bigint;
23
23
  fee: bigint;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/coin-framework",
3
- "version": "0.20.0-nightly.1",
3
+ "version": "0.20.0",
4
4
  "description": "Ledger framework for Coin integration",
5
5
  "keywords": [
6
6
  "Ledger",
@@ -97,7 +97,7 @@
97
97
  "@ledgerhq/live-network": "^2.0.3",
98
98
  "@ledgerhq/logs": "^6.12.0",
99
99
  "@ledgerhq/types-cryptoassets": "^7.17.0",
100
- "@ledgerhq/types-live": "^6.54.0-nightly.1"
100
+ "@ledgerhq/types-live": "^6.54.0"
101
101
  },
102
102
  "devDependencies": {
103
103
  "@types/invariant": "^2.2.2",
@@ -0,0 +1,5 @@
1
+ export class IncorrectTypeError extends Error {
2
+ constructor(message?: string) {
3
+ super(`IncorrectType: ${message}`);
4
+ }
5
+ }
package/src/api/index.ts CHANGED
@@ -3,4 +3,5 @@
3
3
  * One consumer of this API is Alpaca.
4
4
  */
5
5
 
6
+ export * from "./errors";
6
7
  export * from "./types";
package/src/api/types.ts CHANGED
@@ -20,7 +20,7 @@ export type Operation = {
20
20
  };
21
21
 
22
22
  export type Transaction = {
23
- mode: string;
23
+ type: string;
24
24
  recipient: string;
25
25
  amount: bigint;
26
26
  fee: bigint;