@ledgerhq/coin-module-boilerplate 4.0.5-nightly.1 → 4.0.6-nightly.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/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +36 -8
- package/jest.config.js +2 -12
- package/lib/api/index.d.ts +2 -2
- package/lib/api/index.d.ts.map +1 -1
- package/lib/api/index.js.map +1 -1
- package/lib-es/api/index.d.ts +2 -2
- package/lib-es/api/index.d.ts.map +1 -1
- package/lib-es/api/index.js.map +1 -1
- package/package.json +7 -8
- package/src/api/index.ts +6 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
> @ledgerhq/coin-module-boilerplate@4.0.5
|
|
2
|
+
> @ledgerhq/coin-module-boilerplate@4.0.5 build /home/runner/work/ledger-live/ledger-live/libs/coin-modules/coin-module-boilerplate
|
|
3
3
|
> tsc && tsc -m esnext --moduleResolution bundler --outDir lib-es
|
|
4
4
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,20 +1,48 @@
|
|
|
1
1
|
# @ledgerhq/coin-module-boilerplate
|
|
2
2
|
|
|
3
|
-
## 4.0.
|
|
3
|
+
## 4.0.6-nightly.0
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
- Updated dependencies [[`
|
|
8
|
-
- @ledgerhq/types-live@6.
|
|
9
|
-
- @ledgerhq/coin-framework@5.2.
|
|
7
|
+
- Updated dependencies [[`9ceee03`](https://github.com/LedgerHQ/ledger-live/commit/9ceee03c33c41bb035fe64f9303acd36872536b6)]:
|
|
8
|
+
- @ledgerhq/types-live@6.73.0-nightly.0
|
|
9
|
+
- @ledgerhq/coin-framework@5.2.1-nightly.0
|
|
10
10
|
|
|
11
|
-
## 4.0.5
|
|
11
|
+
## 4.0.5
|
|
12
12
|
|
|
13
13
|
### Patch Changes
|
|
14
14
|
|
|
15
|
-
- Updated dependencies [[`1a4e5e5`](https://github.com/LedgerHQ/ledger-live/commit/1a4e5e5913fe5e12d6127b36f3849e4c81e5e50e)]:
|
|
16
|
-
- @ledgerhq/types-live@6.72.0
|
|
17
|
-
- @ledgerhq/coin-framework@5.
|
|
15
|
+
- Updated dependencies [[`4ddfe60`](https://github.com/LedgerHQ/ledger-live/commit/4ddfe6060ab8e4e5c0bb89da91e08a02d8ca50e6), [`f42f353`](https://github.com/LedgerHQ/ledger-live/commit/f42f353a593d0a1cd0a237648765080c85d0eea7), [`1a4e5e5`](https://github.com/LedgerHQ/ledger-live/commit/1a4e5e5913fe5e12d6127b36f3849e4c81e5e50e)]:
|
|
16
|
+
- @ledgerhq/types-live@6.72.0
|
|
17
|
+
- @ledgerhq/coin-framework@5.2.0
|
|
18
|
+
- @ledgerhq/devices@8.4.6
|
|
19
|
+
- @ledgerhq/live-network@2.0.9
|
|
20
|
+
|
|
21
|
+
## 4.0.5-next.2
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- Updated dependencies []:
|
|
26
|
+
- @ledgerhq/coin-framework@5.2.0-next.2
|
|
27
|
+
- @ledgerhq/devices@8.4.6-next.1
|
|
28
|
+
- @ledgerhq/live-network@2.0.9-next.1
|
|
29
|
+
|
|
30
|
+
## 4.0.5-next.1
|
|
31
|
+
|
|
32
|
+
### Patch Changes
|
|
33
|
+
|
|
34
|
+
- Updated dependencies []:
|
|
35
|
+
- @ledgerhq/coin-framework@5.2.0-next.1
|
|
36
|
+
- @ledgerhq/devices@8.4.6-next.0
|
|
37
|
+
- @ledgerhq/live-network@2.0.9-next.0
|
|
38
|
+
|
|
39
|
+
## 4.0.5-next.0
|
|
40
|
+
|
|
41
|
+
### Patch Changes
|
|
42
|
+
|
|
43
|
+
- Updated dependencies [[`4ddfe60`](https://github.com/LedgerHQ/ledger-live/commit/4ddfe6060ab8e4e5c0bb89da91e08a02d8ca50e6), [`f42f353`](https://github.com/LedgerHQ/ledger-live/commit/f42f353a593d0a1cd0a237648765080c85d0eea7), [`1a4e5e5`](https://github.com/LedgerHQ/ledger-live/commit/1a4e5e5913fe5e12d6127b36f3849e4c81e5e50e)]:
|
|
44
|
+
- @ledgerhq/types-live@6.72.0-next.0
|
|
45
|
+
- @ledgerhq/coin-framework@5.2.0-next.0
|
|
18
46
|
|
|
19
47
|
## 4.0.4
|
|
20
48
|
|
package/jest.config.js
CHANGED
|
@@ -11,21 +11,11 @@ module.exports = {
|
|
|
11
11
|
"!src/**/*.spec.ts",
|
|
12
12
|
"!src/test/**/*.ts",
|
|
13
13
|
],
|
|
14
|
-
coverageReporters: [
|
|
15
|
-
"json",
|
|
16
|
-
["lcov", { file: "boilerplate-lcov.info", projectRoot: "../" }],
|
|
17
|
-
"text",
|
|
18
|
-
],
|
|
14
|
+
coverageReporters: ["json", ["lcov", { file: "lcov.info", projectRoot: "../../../" }], "text"],
|
|
19
15
|
testPathIgnorePatterns: ["lib/", "lib-es/", ".*\\.integ\\.test\\.[tj]s"],
|
|
20
16
|
workerThreads: true,
|
|
21
17
|
reporters: [
|
|
22
18
|
"default",
|
|
23
|
-
[
|
|
24
|
-
"jest-sonar",
|
|
25
|
-
{
|
|
26
|
-
outputName: "boilerplate-sonar-executionTests-report.xml",
|
|
27
|
-
reportedFilePath: "absolute",
|
|
28
|
-
},
|
|
29
|
-
],
|
|
19
|
+
["jest-sonar", { outputName: "sonar-executionTests-report.xml", reportedFilePath: "absolute" }],
|
|
30
20
|
],
|
|
31
21
|
};
|
package/lib/api/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AlpacaApi } from "@ledgerhq/coin-framework/api/index";
|
|
2
2
|
import { type BoilerplateConfig } from "../config";
|
|
3
3
|
import { BoilerplateAsset } from "../types";
|
|
4
|
-
export declare function createApi(config: BoilerplateConfig):
|
|
4
|
+
export declare function createApi(config: BoilerplateConfig): AlpacaApi<BoilerplateAsset>;
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/api/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EAGV,MAAM,oCAAoC,CAAC;AAC5C,OAAmB,EAAE,KAAK,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAY/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,wBAAgB,SAAS,CAAC,MAAM,EAAE,iBAAiB,GAAG,SAAS,CAAC,gBAAgB,CAAC,CAYhF"}
|
package/lib/api/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":";;;;;AAmBA,8BAYC;AA1BD,uDAA+D;AAC/D,kDASyB;AACzB,gEAAqC;AAGrC,SAAgB,SAAS,CAAC,MAAyB;IACjD,gBAAU,CAAC,aAAa,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,GAAG,MAAM,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC;IAE5E,OAAO;QACL,SAAS,EAAT,wBAAS;QACT,OAAO,EAAP,sBAAO;QACP,gBAAgB,EAAE,KAAK;QACvB,YAAY,EAAE,QAAQ;QACtB,UAAU,EAAV,yBAAU;QACV,SAAS,EAAT,wBAAS;QACT,cAAc,EAAd,6BAAc;KACf,CAAC;AACJ,CAAC;AAED,KAAK,UAAU,KAAK,CAAC,iBAAsD;IACzE,MAAM,kBAAkB,GAAG,MAAM,IAAA,mCAAoB,EAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAChF,MAAM,EAAE,GAAG,MAAM,IAAA,+BAAgB,EAC/B,EAAE,OAAO,EAAE,iBAAiB,CAAC,MAAM,EAAE,kBAAkB,EAAE,EACzD;QACE,SAAS,EAAE,iBAAiB,CAAC,SAAS;QACtC,MAAM,EAAE,IAAI,sBAAS,CAAC,iBAAiB,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;KAC3D,CACF,CAAC;IACF,OAAO,EAAE,CAAC,qBAAqB,CAAC;AAClC,CAAC;AAED,KAAK,UAAU,QAAQ,CACrB,iBAAsD;IAEtD,MAAM,EAAE,qBAAqB,EAAE,GAAG,MAAM,IAAA,+BAAgB,EACtD,EAAE,OAAO,EAAE,iBAAiB,CAAC,MAAM,EAAE,EACrC;QACE,SAAS,EAAE,iBAAiB,CAAC,SAAS;QACtC,MAAM,EAAE,IAAI,sBAAS,CAAC,iBAAiB,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;KAC3D,CACF,CAAC;IAEF,MAAM,KAAK,GAAG,MAAM,IAAA,2BAAY,EAAC,qBAAqB,CAAC,CAAC;IAExD,OAAO,EAAE,KAAK,EAAE,CAAC;AACnB,CAAC"}
|
package/lib-es/api/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AlpacaApi } from "@ledgerhq/coin-framework/api/index";
|
|
2
2
|
import { type BoilerplateConfig } from "../config";
|
|
3
3
|
import { BoilerplateAsset } from "../types";
|
|
4
|
-
export declare function createApi(config: BoilerplateConfig):
|
|
4
|
+
export declare function createApi(config: BoilerplateConfig): AlpacaApi<BoilerplateAsset>;
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EAGV,MAAM,oCAAoC,CAAC;AAC5C,OAAmB,EAAE,KAAK,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAY/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,wBAAgB,SAAS,CAAC,MAAM,EAAE,iBAAiB,GAAG,SAAS,CAAC,gBAAgB,CAAC,CAYhF"}
|
package/lib-es/api/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAKA,OAAO,UAAsC,MAAM,WAAW,CAAC;AAC/D,OAAO,EACL,SAAS,EACT,OAAO,EACP,gBAAgB,EAChB,YAAY,EACZ,UAAU,EACV,oBAAoB,EACpB,SAAS,EACT,cAAc,GACf,MAAM,iBAAiB,CAAC;AACzB,OAAO,SAAS,MAAM,cAAc,CAAC;AAGrC,MAAM,UAAU,SAAS,CAAC,MAAyB;IACjD,UAAU,CAAC,aAAa,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,GAAG,MAAM,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC;IAE5E,OAAO;QACL,SAAS;QACT,OAAO;QACP,gBAAgB,EAAE,KAAK;QACvB,YAAY,EAAE,QAAQ;QACtB,UAAU;QACV,SAAS;QACT,cAAc;KACf,CAAC;AACJ,CAAC;AAED,KAAK,UAAU,KAAK,CAAC,iBAAsD;IACzE,MAAM,kBAAkB,GAAG,MAAM,oBAAoB,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAChF,MAAM,EAAE,GAAG,MAAM,gBAAgB,CAC/B,EAAE,OAAO,EAAE,iBAAiB,CAAC,MAAM,EAAE,kBAAkB,EAAE,EACzD;QACE,SAAS,EAAE,iBAAiB,CAAC,SAAS;QACtC,MAAM,EAAE,IAAI,SAAS,CAAC,iBAAiB,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;KAC3D,CACF,CAAC;IACF,OAAO,EAAE,CAAC,qBAAqB,CAAC;AAClC,CAAC;AAED,KAAK,UAAU,QAAQ,CACrB,iBAAsD;IAEtD,MAAM,EAAE,qBAAqB,EAAE,GAAG,MAAM,gBAAgB,CACtD,EAAE,OAAO,EAAE,iBAAiB,CAAC,MAAM,EAAE,EACrC;QACE,SAAS,EAAE,iBAAiB,CAAC,SAAS;QACtC,MAAM,EAAE,IAAI,SAAS,CAAC,iBAAiB,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC;KAC3D,CACF,CAAC;IAEF,MAAM,KAAK,GAAG,MAAM,YAAY,CAAC,qBAAqB,CAAC,CAAC;IAExD,OAAO,EAAE,KAAK,EAAE,CAAC;AACnB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/coin-module-boilerplate",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.6-nightly.0",
|
|
4
4
|
"description": "Boilerplate coin integration",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Ledger",
|
|
@@ -101,13 +101,13 @@
|
|
|
101
101
|
"bignumber.js": "^9.1.2",
|
|
102
102
|
"invariant": "^2.2.4",
|
|
103
103
|
"rxjs": "^7.8.1",
|
|
104
|
-
"@ledgerhq/coin-framework": "^5.2.
|
|
105
|
-
"@ledgerhq/cryptoassets": "^13.18.0",
|
|
106
|
-
"@ledgerhq/devices": "8.4.
|
|
104
|
+
"@ledgerhq/coin-framework": "^5.2.1-nightly.0",
|
|
105
|
+
"@ledgerhq/cryptoassets": "^13.18.1-nightly.0",
|
|
106
|
+
"@ledgerhq/devices": "8.4.6",
|
|
107
107
|
"@ledgerhq/errors": "^6.21.0",
|
|
108
|
-
"@ledgerhq/live-env": "^2.9.0",
|
|
109
|
-
"@ledgerhq/live-network": "^2.0.
|
|
110
|
-
"@ledgerhq/types-live": "^6.
|
|
108
|
+
"@ledgerhq/live-env": "^2.9.1-nightly.0",
|
|
109
|
+
"@ledgerhq/live-network": "^2.0.9",
|
|
110
|
+
"@ledgerhq/types-live": "^6.73.0-nightly.0"
|
|
111
111
|
},
|
|
112
112
|
"devDependencies": {
|
|
113
113
|
"@types/invariant": "^2.2.37",
|
|
@@ -115,7 +115,6 @@
|
|
|
115
115
|
"dotenv": "^16.4.5",
|
|
116
116
|
"expect": "^27.4.6",
|
|
117
117
|
"jest": "^29.7.0",
|
|
118
|
-
"jest-sonar": "0.2.16",
|
|
119
118
|
"ts-jest": "^29.1.1",
|
|
120
119
|
"typescript": "^5.4.5",
|
|
121
120
|
"@ledgerhq/types-cryptoassets": "^7.23.0",
|
package/src/api/index.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type {
|
|
2
|
+
AlpacaApi,
|
|
3
|
+
FeeEstimation,
|
|
4
|
+
TransactionIntent,
|
|
5
|
+
} from "@ledgerhq/coin-framework/api/index";
|
|
2
6
|
import coinConfig, { type BoilerplateConfig } from "../config";
|
|
3
7
|
import {
|
|
4
8
|
broadcast,
|
|
@@ -13,7 +17,7 @@ import {
|
|
|
13
17
|
import BigNumber from "bignumber.js";
|
|
14
18
|
import { BoilerplateAsset } from "../types";
|
|
15
19
|
|
|
16
|
-
export function createApi(config: BoilerplateConfig):
|
|
20
|
+
export function createApi(config: BoilerplateConfig): AlpacaApi<BoilerplateAsset> {
|
|
17
21
|
coinConfig.setCoinConfig(() => ({ ...config, status: { type: "active" } }));
|
|
18
22
|
|
|
19
23
|
return {
|