@ledgerhq/coin-module-boilerplate 4.2.2-nightly.1 → 4.2.3-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 +26 -9
- package/lib/api/index.d.ts +1 -1
- package/lib/api/index.d.ts.map +1 -1
- package/lib/api/index.js +6 -0
- package/lib/api/index.js.map +1 -1
- package/lib-es/api/index.d.ts +1 -1
- package/lib-es/api/index.d.ts.map +1 -1
- package/lib-es/api/index.js +6 -0
- package/lib-es/api/index.js.map +1 -1
- package/package.json +8 -8
- package/src/api/index.ts +9 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
> @ledgerhq/coin-module-boilerplate@4.2.2
|
|
2
|
+
> @ledgerhq/coin-module-boilerplate@4.2.2 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,21 +1,38 @@
|
|
|
1
1
|
# @ledgerhq/coin-module-boilerplate
|
|
2
2
|
|
|
3
|
-
## 4.2.
|
|
3
|
+
## 4.2.3-nightly.0
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
- Updated dependencies [[`
|
|
8
|
-
- @ledgerhq/types-live@6.78.
|
|
9
|
-
- @ledgerhq/
|
|
10
|
-
- @ledgerhq/coin-framework@5.7.0-nightly.1
|
|
7
|
+
- Updated dependencies [[`6312f3a`](https://github.com/LedgerHQ/ledger-live/commit/6312f3a039e3018dfd78d231fa91ecf8fc82a118)]:
|
|
8
|
+
- @ledgerhq/types-live@6.78.1-nightly.0
|
|
9
|
+
- @ledgerhq/coin-framework@5.7.1-nightly.0
|
|
11
10
|
|
|
12
|
-
## 4.2.2
|
|
11
|
+
## 4.2.2
|
|
13
12
|
|
|
14
13
|
### Patch Changes
|
|
15
14
|
|
|
16
|
-
- Updated dependencies [[`
|
|
17
|
-
- @ledgerhq/
|
|
18
|
-
- @ledgerhq/
|
|
15
|
+
- Updated dependencies [[`17e039b`](https://github.com/LedgerHQ/ledger-live/commit/17e039b0c7487dda4a68f6a0fe493b4cf5fd265b), [`6ece1b8`](https://github.com/LedgerHQ/ledger-live/commit/6ece1b80ed05f9dab6541702e40a43b51887f958), [`bb7e311`](https://github.com/LedgerHQ/ledger-live/commit/bb7e31139763b9fd943bf237d2c6260d6aef24ab), [`0e32a4e`](https://github.com/LedgerHQ/ledger-live/commit/0e32a4e5482ad2d3002483632770a2d7981b7a5a), [`9fd5b54`](https://github.com/LedgerHQ/ledger-live/commit/9fd5b5449f1d15fc559e966e9d71e2ad6573547c), [`63cdeb1`](https://github.com/LedgerHQ/ledger-live/commit/63cdeb1ea20fe0c16b623546ce00f3fe26b7ec80), [`20406e5`](https://github.com/LedgerHQ/ledger-live/commit/20406e52b4167289fced610c6ca9824a6d68cdac)]:
|
|
16
|
+
- @ledgerhq/live-env@2.12.0
|
|
17
|
+
- @ledgerhq/cryptoassets@13.22.0
|
|
18
|
+
- @ledgerhq/coin-framework@5.7.0
|
|
19
|
+
- @ledgerhq/types-live@6.78.0
|
|
20
|
+
- @ledgerhq/errors@6.23.0
|
|
21
|
+
- @ledgerhq/live-network@2.0.13
|
|
22
|
+
- @ledgerhq/devices@8.4.8
|
|
23
|
+
|
|
24
|
+
## 4.2.2-next.0
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- Updated dependencies [[`17e039b`](https://github.com/LedgerHQ/ledger-live/commit/17e039b0c7487dda4a68f6a0fe493b4cf5fd265b), [`6ece1b8`](https://github.com/LedgerHQ/ledger-live/commit/6ece1b80ed05f9dab6541702e40a43b51887f958), [`bb7e311`](https://github.com/LedgerHQ/ledger-live/commit/bb7e31139763b9fd943bf237d2c6260d6aef24ab), [`0e32a4e`](https://github.com/LedgerHQ/ledger-live/commit/0e32a4e5482ad2d3002483632770a2d7981b7a5a), [`9fd5b54`](https://github.com/LedgerHQ/ledger-live/commit/9fd5b5449f1d15fc559e966e9d71e2ad6573547c), [`63cdeb1`](https://github.com/LedgerHQ/ledger-live/commit/63cdeb1ea20fe0c16b623546ce00f3fe26b7ec80), [`20406e5`](https://github.com/LedgerHQ/ledger-live/commit/20406e52b4167289fced610c6ca9824a6d68cdac)]:
|
|
29
|
+
- @ledgerhq/live-env@2.12.0-next.0
|
|
30
|
+
- @ledgerhq/cryptoassets@13.22.0-next.0
|
|
31
|
+
- @ledgerhq/coin-framework@5.7.0-next.0
|
|
32
|
+
- @ledgerhq/types-live@6.78.0-next.0
|
|
33
|
+
- @ledgerhq/errors@6.23.0-next.0
|
|
34
|
+
- @ledgerhq/live-network@2.0.13-next.0
|
|
35
|
+
- @ledgerhq/devices@8.4.8-next.0
|
|
19
36
|
|
|
20
37
|
## 4.2.1
|
|
21
38
|
|
package/lib/api/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { AlpacaApi } from "@ledgerhq/coin-framework/api/index";
|
|
2
2
|
import { type BoilerplateConfig } from "../config";
|
|
3
3
|
import { BoilerplateAsset } from "../types";
|
|
4
4
|
export declare function createApi(config: BoilerplateConfig): AlpacaApi<BoilerplateAsset>;
|
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,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAKV,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,CAkBhF"}
|
package/lib/api/index.js
CHANGED
|
@@ -17,6 +17,12 @@ function createApi(config) {
|
|
|
17
17
|
getBalance: common_logic_1.getBalance,
|
|
18
18
|
lastBlock: common_logic_1.lastBlock,
|
|
19
19
|
listOperations: common_logic_1.listOperations,
|
|
20
|
+
getBlock(_height) {
|
|
21
|
+
throw new Error("getBlock is not supported");
|
|
22
|
+
},
|
|
23
|
+
getBlockInfo(_height) {
|
|
24
|
+
throw new Error("getBlockInfo is not supported");
|
|
25
|
+
},
|
|
20
26
|
};
|
|
21
27
|
}
|
|
22
28
|
async function craft(transactionIntent) {
|
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":";;;;;AAqBA,8BAkBC;AAhCD,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;QACd,QAAQ,CAAC,OAAO;YACd,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;QAC/C,CAAC;QACD,YAAY,CAAC,OAAe;YAC1B,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;QACnD,CAAC;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,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { AlpacaApi } from "@ledgerhq/coin-framework/api/index";
|
|
2
2
|
import { type BoilerplateConfig } from "../config";
|
|
3
3
|
import { BoilerplateAsset } from "../types";
|
|
4
4
|
export declare function createApi(config: BoilerplateConfig): AlpacaApi<BoilerplateAsset>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAKV,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,CAkBhF"}
|
package/lib-es/api/index.js
CHANGED
|
@@ -11,6 +11,12 @@ export function createApi(config) {
|
|
|
11
11
|
getBalance,
|
|
12
12
|
lastBlock,
|
|
13
13
|
listOperations,
|
|
14
|
+
getBlock(_height) {
|
|
15
|
+
throw new Error("getBlock is not supported");
|
|
16
|
+
},
|
|
17
|
+
getBlockInfo(_height) {
|
|
18
|
+
throw new Error("getBlockInfo is not supported");
|
|
19
|
+
},
|
|
14
20
|
};
|
|
15
21
|
}
|
|
16
22
|
async function craft(transactionIntent) {
|
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":"AAOA,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,E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/coin-module-boilerplate",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.3-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.7.
|
|
105
|
-
"@ledgerhq/cryptoassets": "^13.22.0
|
|
106
|
-
"@ledgerhq/devices": "8.4.8
|
|
107
|
-
"@ledgerhq/errors": "^6.23.0
|
|
108
|
-
"@ledgerhq/live-env": "^2.12.0
|
|
109
|
-
"@ledgerhq/live-network": "^2.0.13
|
|
110
|
-
"@ledgerhq/types-live": "^6.78.
|
|
104
|
+
"@ledgerhq/coin-framework": "^5.7.1-nightly.0",
|
|
105
|
+
"@ledgerhq/cryptoassets": "^13.22.0",
|
|
106
|
+
"@ledgerhq/devices": "8.4.8",
|
|
107
|
+
"@ledgerhq/errors": "^6.23.0",
|
|
108
|
+
"@ledgerhq/live-env": "^2.12.0",
|
|
109
|
+
"@ledgerhq/live-network": "^2.0.13",
|
|
110
|
+
"@ledgerhq/types-live": "^6.78.1-nightly.0"
|
|
111
111
|
},
|
|
112
112
|
"devDependencies": {
|
|
113
113
|
"@types/invariant": "^2.2.37",
|
package/src/api/index.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import {
|
|
2
2
|
AlpacaApi,
|
|
3
|
+
Block,
|
|
4
|
+
BlockInfo,
|
|
3
5
|
FeeEstimation,
|
|
4
6
|
TransactionIntent,
|
|
5
7
|
} from "@ledgerhq/coin-framework/api/index";
|
|
@@ -28,6 +30,12 @@ export function createApi(config: BoilerplateConfig): AlpacaApi<BoilerplateAsset
|
|
|
28
30
|
getBalance,
|
|
29
31
|
lastBlock,
|
|
30
32
|
listOperations,
|
|
33
|
+
getBlock(_height): Promise<Block<BoilerplateAsset>> {
|
|
34
|
+
throw new Error("getBlock is not supported");
|
|
35
|
+
},
|
|
36
|
+
getBlockInfo(_height: number): Promise<BlockInfo> {
|
|
37
|
+
throw new Error("getBlockInfo is not supported");
|
|
38
|
+
},
|
|
31
39
|
};
|
|
32
40
|
}
|
|
33
41
|
|