@ledgerhq/coin-tron 4.4.2-nightly.1 → 4.5.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 +11 -0
- 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 +2 -2
- package/src/api/index.ts +9 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
> @ledgerhq/coin-tron@4.4.2-nightly.
|
|
2
|
+
> @ledgerhq/coin-tron@4.4.2-nightly.1 build /home/runner/work/ledger-live/ledger-live/libs/coin-modules/coin-tron
|
|
3
3
|
> tsc && tsc -m esnext --moduleResolution bundler --outDir lib-es
|
|
4
4
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @ledgerhq/coin-tron
|
|
2
2
|
|
|
3
|
+
## 4.5.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
|
+
|
|
3
14
|
## 4.4.2-nightly.1
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
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 TronConfig } from "../config";
|
|
3
3
|
import type { TronAsset, TronMemo } from "../types";
|
|
4
4
|
export declare function createApi(config: TronConfig): AlpacaApi<TronAsset, TronMemo>;
|
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,EAOV,MAAM,oCAAoC,CAAC;AAC5C,OAAmB,EAAE,KAAK,UAAU,EAAE,MAAM,WAAW,CAAC;AAWxD,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpD,wBAAgB,SAAS,CAAC,MAAM,EAAE,UAAU,GAAG,SAAS,CAAC,SAAS,EAAE,QAAQ,CAAC,CAkB5E"}
|
package/lib/api/index.js
CHANGED
|
@@ -16,6 +16,12 @@ function createApi(config) {
|
|
|
16
16
|
getBalance: logic_1.getBalance,
|
|
17
17
|
lastBlock: logic_1.lastBlock,
|
|
18
18
|
listOperations,
|
|
19
|
+
getBlock(_height) {
|
|
20
|
+
throw new Error("getBlock is not supported");
|
|
21
|
+
},
|
|
22
|
+
getBlockInfo(_height) {
|
|
23
|
+
throw new Error("getBlockInfo is not supported");
|
|
24
|
+
},
|
|
19
25
|
};
|
|
20
26
|
}
|
|
21
27
|
async function estimate(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":";;;;;AAsBA,8BAkBC;AA/BD,uDAAwD;AACxD,oCASkB;AAGlB,SAAgB,SAAS,CAAC,MAAkB;IAC1C,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,iBAAS;QACT,OAAO,EAAP,eAAO;QACP,gBAAgB,EAAhB,wBAAgB;QAChB,YAAY,EAAE,QAAQ;QACtB,UAAU,EAAV,kBAAU;QACV,SAAS,EAAT,iBAAS;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,QAAQ,CACrB,iBAAyD;IAEzD,MAAM,IAAI,GAAG,MAAM,IAAA,oBAAY,EAAC,iBAAiB,CAAC,CAAC;IACnD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AACzB,CAAC;AAED,KAAK,UAAU,cAAc,CAC3B,OAAe,EACf,UAAsB;IAEtB,MAAM,EAAE,SAAS,EAAE,GAAG,UAAU,CAAC;IACjC,MAAM,OAAO,GAAY;QACvB,SAAS,EAAE,GAAG;QACd,SAAS,EAAE,SAAS;QACpB,KAAK,EAAE,KAAK;KACJ,CAAC;IACX,OAAO,IAAA,sBAAmB,EAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AAC/C,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 TronConfig } from "../config";
|
|
3
3
|
import type { TronAsset, TronMemo } from "../types";
|
|
4
4
|
export declare function createApi(config: TronConfig): AlpacaApi<TronAsset, TronMemo>;
|
|
@@ -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,EAOV,MAAM,oCAAoC,CAAC;AAC5C,OAAmB,EAAE,KAAK,UAAU,EAAE,MAAM,WAAW,CAAC;AAWxD,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpD,wBAAgB,SAAS,CAAC,MAAM,EAAE,UAAU,GAAG,SAAS,CAAC,SAAS,EAAE,QAAQ,CAAC,CAkB5E"}
|
package/lib-es/api/index.js
CHANGED
|
@@ -10,6 +10,12 @@ export function createApi(config) {
|
|
|
10
10
|
getBalance,
|
|
11
11
|
lastBlock,
|
|
12
12
|
listOperations,
|
|
13
|
+
getBlock(_height) {
|
|
14
|
+
throw new Error("getBlock is not supported");
|
|
15
|
+
},
|
|
16
|
+
getBlockInfo(_height) {
|
|
17
|
+
throw new Error("getBlockInfo is not supported");
|
|
18
|
+
},
|
|
13
19
|
};
|
|
14
20
|
}
|
|
15
21
|
async function estimate(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":"AASA,OAAO,UAA+B,MAAM,WAAW,CAAC;AACxD,OAAO,EACL,SAAS,EACT,OAAO,EACP,gBAAgB,EAChB,YAAY,EACZ,UAAU,EACV,cAAc,IAAI,mBAAmB,EACrC,SAAS,GAEV,MAAM,UAAU,CAAC;AAGlB,MAAM,UAAU,SAAS,CAAC,MAAkB;IAC1C,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;QAChB,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,QAAQ,CACrB,iBAAyD;IAEzD,MAAM,IAAI,GAAG,MAAM,YAAY,CAAC,iBAAiB,CAAC,CAAC;IACnD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AACzB,CAAC;AAED,KAAK,UAAU,cAAc,CAC3B,OAAe,EACf,UAAsB;IAEtB,MAAM,EAAE,SAAS,EAAE,GAAG,UAAU,CAAC;IACjC,MAAM,OAAO,GAAY;QACvB,SAAS,EAAE,GAAG;QACd,SAAS,EAAE,SAAS;QACpB,KAAK,EAAE,KAAK;KACJ,CAAC;IACX,OAAO,mBAAmB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AAC/C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/coin-tron",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.5.0-nightly.2",
|
|
4
4
|
"description": "Ledger Tron Coin integration",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Ledger",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"lodash": "^4.17.21",
|
|
97
97
|
"rxjs": "^7.8.1",
|
|
98
98
|
"tronweb": "5.3.2",
|
|
99
|
-
"@ledgerhq/coin-framework": "^5.7.0-nightly.
|
|
99
|
+
"@ledgerhq/coin-framework": "^5.7.0-nightly.2",
|
|
100
100
|
"@ledgerhq/cryptoassets": "^13.22.0-nightly.5",
|
|
101
101
|
"@ledgerhq/devices": "8.4.8-nightly.0",
|
|
102
102
|
"@ledgerhq/errors": "^6.23.0-nightly.0",
|
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
|
Operation,
|
|
5
7
|
Pagination,
|
|
@@ -29,6 +31,12 @@ export function createApi(config: TronConfig): AlpacaApi<TronAsset, TronMemo> {
|
|
|
29
31
|
getBalance,
|
|
30
32
|
lastBlock,
|
|
31
33
|
listOperations,
|
|
34
|
+
getBlock(_height): Promise<Block<TronAsset>> {
|
|
35
|
+
throw new Error("getBlock is not supported");
|
|
36
|
+
},
|
|
37
|
+
getBlockInfo(_height: number): Promise<BlockInfo> {
|
|
38
|
+
throw new Error("getBlockInfo is not supported");
|
|
39
|
+
},
|
|
32
40
|
};
|
|
33
41
|
}
|
|
34
42
|
|