@ledgerhq/coin-module-boilerplate 4.2.2 → 4.3.0-nightly.2
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 +20 -18
- 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 +9 -9
- 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 build /home/runner/work/ledger-live/ledger-live/libs/coin-modules/coin-module-boilerplate
|
|
2
|
+
> @ledgerhq/coin-module-boilerplate@4.2.2-nightly.1 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,30 +1,32 @@
|
|
|
1
1
|
# @ledgerhq/coin-module-boilerplate
|
|
2
2
|
|
|
3
|
-
## 4.
|
|
3
|
+
## 4.3.0-nightly.2
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#10838](https://github.com/LedgerHQ/ledger-live/pull/10838) [`d5f6793`](https://github.com/LedgerHQ/ledger-live/commit/d5f6793c6ae52178e93a19efc75931994bf930a8) Thanks [@jnicoulaud-ledger](https://github.com/jnicoulaud-ledger)! - [coin-modules][ALPACA] add getBlock to coin-framework API, implement it for SUI
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`d5f6793`](https://github.com/LedgerHQ/ledger-live/commit/d5f6793c6ae52178e93a19efc75931994bf930a8)]:
|
|
12
|
+
- @ledgerhq/coin-framework@5.7.0-nightly.2
|
|
13
|
+
|
|
14
|
+
## 4.2.2-nightly.1
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
6
17
|
|
|
7
|
-
- Updated dependencies [[`
|
|
8
|
-
- @ledgerhq/live
|
|
9
|
-
- @ledgerhq/cryptoassets@13.22.0
|
|
10
|
-
- @ledgerhq/coin-framework@5.7.0
|
|
11
|
-
- @ledgerhq/types-live@6.78.0
|
|
12
|
-
- @ledgerhq/errors@6.23.0
|
|
13
|
-
- @ledgerhq/live-network@2.0.13
|
|
14
|
-
- @ledgerhq/devices@8.4.8
|
|
18
|
+
- Updated dependencies [[`4eee376`](https://github.com/LedgerHQ/ledger-live/commit/4eee3767b513dfb58a156cf2ce8086e31a7d55bf), [`6792990`](https://github.com/LedgerHQ/ledger-live/commit/6792990d8130ec297192bb7d6b98aef024e81dfa), [`132af3d`](https://github.com/LedgerHQ/ledger-live/commit/132af3db5863fb6e54587dd53d4db7b0ec19259e)]:
|
|
19
|
+
- @ledgerhq/types-live@6.78.0-nightly.0
|
|
20
|
+
- @ledgerhq/cryptoassets@13.22.0-nightly.5
|
|
21
|
+
- @ledgerhq/coin-framework@5.7.0-nightly.1
|
|
15
22
|
|
|
16
|
-
## 4.2.2-
|
|
23
|
+
## 4.2.2-nightly.0
|
|
17
24
|
|
|
18
25
|
### Patch Changes
|
|
19
26
|
|
|
20
|
-
- Updated dependencies [[`
|
|
21
|
-
- @ledgerhq/
|
|
22
|
-
- @ledgerhq/
|
|
23
|
-
- @ledgerhq/coin-framework@5.7.0-next.0
|
|
24
|
-
- @ledgerhq/types-live@6.78.0-next.0
|
|
25
|
-
- @ledgerhq/errors@6.23.0-next.0
|
|
26
|
-
- @ledgerhq/live-network@2.0.13-next.0
|
|
27
|
-
- @ledgerhq/devices@8.4.8-next.0
|
|
27
|
+
- Updated dependencies [[`72c2a6c`](https://github.com/LedgerHQ/ledger-live/commit/72c2a6c91cfee66fac3505774ba16049fba1c0cf)]:
|
|
28
|
+
- @ledgerhq/cryptoassets@13.22.0-nightly.4
|
|
29
|
+
- @ledgerhq/coin-framework@5.6.1-nightly.0
|
|
28
30
|
|
|
29
31
|
## 4.2.1
|
|
30
32
|
|
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,EAAE,CAAC,CAAC,CAAC;IAE5E,OAAO;QACL,SAAS;QACT,OAAO;QACP,gBAAgB,EAAE,KAAK;QACvB,YAAY,EAAE,QAAQ;QACtB,UAAU;QACV,SAAS;QACT,cAAc;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,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.
|
|
3
|
+
"version": "4.3.0-nightly.2",
|
|
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.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.0"
|
|
104
|
+
"@ledgerhq/coin-framework": "^5.7.0-nightly.2",
|
|
105
|
+
"@ledgerhq/cryptoassets": "^13.22.0-nightly.5",
|
|
106
|
+
"@ledgerhq/devices": "8.4.8-nightly.0",
|
|
107
|
+
"@ledgerhq/errors": "^6.23.0-nightly.0",
|
|
108
|
+
"@ledgerhq/live-env": "^2.12.0-nightly.1",
|
|
109
|
+
"@ledgerhq/live-network": "^2.0.13-nightly.1",
|
|
110
|
+
"@ledgerhq/types-live": "^6.78.0-nightly.0"
|
|
111
111
|
},
|
|
112
112
|
"devDependencies": {
|
|
113
113
|
"@types/invariant": "^2.2.37",
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
"jest": "^29.7.0",
|
|
118
118
|
"ts-jest": "^29.1.1",
|
|
119
119
|
"typescript": "^5.4.5",
|
|
120
|
-
"@ledgerhq/types-cryptoassets": "^7.
|
|
120
|
+
"@ledgerhq/types-cryptoassets": "^7.24.0-nightly.0",
|
|
121
121
|
"@ledgerhq/disable-network-setup": "^0.0.0"
|
|
122
122
|
},
|
|
123
123
|
"scripts": {
|
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
|
|