@ledgerhq/coin-tron 4.6.0-nightly.2 → 5.0.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 +24 -17
- package/lib/api/index.d.ts.map +1 -1
- package/lib/api/index.js +0 -6
- package/lib/api/index.js.map +1 -1
- package/lib-es/api/index.d.ts.map +1 -1
- package/lib-es/api/index.js +0 -6
- package/lib-es/api/index.js.map +1 -1
- package/package.json +9 -9
- package/src/api/index.ts +0 -10
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
> @ledgerhq/coin-tron@
|
|
2
|
+
> @ledgerhq/coin-tron@5.0.0 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,35 +1,42 @@
|
|
|
1
1
|
# @ledgerhq/coin-tron
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## 5.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#11138](https://github.com/LedgerHQ/ledger-live/pull/11138) [`417e4fc`](https://github.com/LedgerHQ/ledger-live/commit/417e4fc8b92ebc95542ca915e14023fdb62497bb) Thanks [@francois-guerin-ledger](https://github.com/francois-guerin-ledger)! - core(coin-framework): pass `FeeEstimation` to `craftTransaction`
|
|
4
8
|
|
|
5
9
|
### Minor Changes
|
|
6
10
|
|
|
7
|
-
- [#
|
|
11
|
+
- [#11154](https://github.com/LedgerHQ/ledger-live/pull/11154) [`5bb2111`](https://github.com/LedgerHQ/ledger-live/commit/5bb2111d6a0c84cd0d6508bbf33d184bc89f9da3) Thanks [@qperrot](https://github.com/qperrot)! - Remove generic type for token assets
|
|
8
12
|
|
|
9
13
|
### Patch Changes
|
|
10
14
|
|
|
11
|
-
- Updated dependencies [[`
|
|
12
|
-
- @ledgerhq/cryptoassets@13.24.0
|
|
13
|
-
- @ledgerhq/
|
|
14
|
-
- @ledgerhq/types-live@6.
|
|
15
|
-
- @ledgerhq/
|
|
15
|
+
- Updated dependencies [[`b5cbffa`](https://github.com/LedgerHQ/ledger-live/commit/b5cbffac207569027e241db761a6aa70b3b1b636), [`2da9b4a`](https://github.com/LedgerHQ/ledger-live/commit/2da9b4a5dd9fec3fea188fc9fa107b2c3479d1be), [`5bb2111`](https://github.com/LedgerHQ/ledger-live/commit/5bb2111d6a0c84cd0d6508bbf33d184bc89f9da3), [`417e4fc`](https://github.com/LedgerHQ/ledger-live/commit/417e4fc8b92ebc95542ca915e14023fdb62497bb), [`9c63d6b`](https://github.com/LedgerHQ/ledger-live/commit/9c63d6b8d5fb629a19514ec36396c35eeefb96aa), [`8b0b4ef`](https://github.com/LedgerHQ/ledger-live/commit/8b0b4efaf2c0968cfb60c0cecebca9c575b00748)]:
|
|
16
|
+
- @ledgerhq/cryptoassets@13.24.0
|
|
17
|
+
- @ledgerhq/types-cryptoassets@7.25.0
|
|
18
|
+
- @ledgerhq/types-live@6.80.0
|
|
19
|
+
- @ledgerhq/coin-framework@6.0.0
|
|
20
|
+
- @ledgerhq/live-network@2.0.14
|
|
16
21
|
|
|
17
|
-
##
|
|
22
|
+
## 5.0.0-next.0
|
|
18
23
|
|
|
19
|
-
###
|
|
24
|
+
### Major Changes
|
|
25
|
+
|
|
26
|
+
- [#11138](https://github.com/LedgerHQ/ledger-live/pull/11138) [`417e4fc`](https://github.com/LedgerHQ/ledger-live/commit/417e4fc8b92ebc95542ca915e14023fdb62497bb) Thanks [@francois-guerin-ledger](https://github.com/francois-guerin-ledger)! - core(coin-framework): pass `FeeEstimation` to `craftTransaction`
|
|
20
27
|
|
|
21
|
-
|
|
22
|
-
- @ledgerhq/errors@6.24.0-nightly.0
|
|
23
|
-
- @ledgerhq/coin-framework@5.9.0-nightly.1
|
|
24
|
-
- @ledgerhq/devices@8.4.9-nightly.0
|
|
25
|
-
- @ledgerhq/live-network@2.0.14-nightly.1
|
|
28
|
+
### Minor Changes
|
|
26
29
|
|
|
27
|
-
|
|
30
|
+
- [#11154](https://github.com/LedgerHQ/ledger-live/pull/11154) [`5bb2111`](https://github.com/LedgerHQ/ledger-live/commit/5bb2111d6a0c84cd0d6508bbf33d184bc89f9da3) Thanks [@qperrot](https://github.com/qperrot)! - Remove generic type for token assets
|
|
28
31
|
|
|
29
32
|
### Patch Changes
|
|
30
33
|
|
|
31
|
-
- Updated dependencies [[`9c63d6b`](https://github.com/LedgerHQ/ledger-live/commit/9c63d6b8d5fb629a19514ec36396c35eeefb96aa), [`8b0b4ef`](https://github.com/LedgerHQ/ledger-live/commit/8b0b4efaf2c0968cfb60c0cecebca9c575b00748)]:
|
|
32
|
-
- @ledgerhq/
|
|
34
|
+
- Updated dependencies [[`b5cbffa`](https://github.com/LedgerHQ/ledger-live/commit/b5cbffac207569027e241db761a6aa70b3b1b636), [`2da9b4a`](https://github.com/LedgerHQ/ledger-live/commit/2da9b4a5dd9fec3fea188fc9fa107b2c3479d1be), [`5bb2111`](https://github.com/LedgerHQ/ledger-live/commit/5bb2111d6a0c84cd0d6508bbf33d184bc89f9da3), [`417e4fc`](https://github.com/LedgerHQ/ledger-live/commit/417e4fc8b92ebc95542ca915e14023fdb62497bb), [`9c63d6b`](https://github.com/LedgerHQ/ledger-live/commit/9c63d6b8d5fb629a19514ec36396c35eeefb96aa), [`8b0b4ef`](https://github.com/LedgerHQ/ledger-live/commit/8b0b4efaf2c0968cfb60c0cecebca9c575b00748)]:
|
|
35
|
+
- @ledgerhq/cryptoassets@13.24.0-next.0
|
|
36
|
+
- @ledgerhq/types-cryptoassets@7.25.0-next.0
|
|
37
|
+
- @ledgerhq/types-live@6.80.0-next.0
|
|
38
|
+
- @ledgerhq/coin-framework@6.0.0-next.0
|
|
39
|
+
- @ledgerhq/live-network@2.0.14-next.0
|
|
33
40
|
|
|
34
41
|
## 4.5.0
|
|
35
42
|
|
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,EACL,SAAS,
|
|
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,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzC,wBAAgB,SAAS,CAAC,MAAM,EAAE,UAAU,GAAG,SAAS,CAAC,QAAQ,CAAC,CAkBjE"}
|
package/lib/api/index.js
CHANGED
|
@@ -22,12 +22,6 @@ function createApi(config) {
|
|
|
22
22
|
getBlockInfo(_height) {
|
|
23
23
|
throw new Error("getBlockInfo is not supported");
|
|
24
24
|
},
|
|
25
|
-
getStakes(_address, _cursor) {
|
|
26
|
-
throw new Error("getStakes is not supported");
|
|
27
|
-
},
|
|
28
|
-
getRewards(_address, _cursor) {
|
|
29
|
-
throw new Error("getRewards is not supported");
|
|
30
|
-
},
|
|
31
25
|
};
|
|
32
26
|
}
|
|
33
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,CAAC,iBAA8C;IACpE,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,
|
|
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,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzC,wBAAgB,SAAS,CAAC,MAAM,EAAE,UAAU,GAAG,SAAS,CAAC,QAAQ,CAAC,CAkBjE"}
|
package/lib-es/api/index.js
CHANGED
|
@@ -16,12 +16,6 @@ export function createApi(config) {
|
|
|
16
16
|
getBlockInfo(_height) {
|
|
17
17
|
throw new Error("getBlockInfo is not supported");
|
|
18
18
|
},
|
|
19
|
-
getStakes(_address, _cursor) {
|
|
20
|
-
throw new Error("getStakes is not supported");
|
|
21
|
-
},
|
|
22
|
-
getRewards(_address, _cursor) {
|
|
23
|
-
throw new Error("getRewards is not supported");
|
|
24
|
-
},
|
|
25
19
|
};
|
|
26
20
|
}
|
|
27
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,CAAC,iBAA8C;IACpE,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": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "Ledger Tron Coin integration",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Ledger",
|
|
@@ -96,15 +96,15 @@
|
|
|
96
96
|
"lodash": "^4.17.21",
|
|
97
97
|
"rxjs": "^7.8.1",
|
|
98
98
|
"tronweb": "5.3.2",
|
|
99
|
-
"@ledgerhq/coin-framework": "^
|
|
100
|
-
"@ledgerhq/cryptoassets": "^13.24.0
|
|
101
|
-
"@ledgerhq/devices": "8.4.
|
|
102
|
-
"@ledgerhq/errors": "^6.
|
|
103
|
-
"@ledgerhq/live-network": "^2.0.14
|
|
99
|
+
"@ledgerhq/coin-framework": "^6.0.0",
|
|
100
|
+
"@ledgerhq/cryptoassets": "^13.24.0",
|
|
101
|
+
"@ledgerhq/devices": "8.4.8",
|
|
102
|
+
"@ledgerhq/errors": "^6.23.0",
|
|
103
|
+
"@ledgerhq/live-network": "^2.0.14",
|
|
104
104
|
"@ledgerhq/live-promise": "^0.1.1",
|
|
105
105
|
"@ledgerhq/logs": "^6.13.0",
|
|
106
|
-
"@ledgerhq/types-cryptoassets": "^7.
|
|
107
|
-
"@ledgerhq/types-live": "^6.
|
|
106
|
+
"@ledgerhq/types-cryptoassets": "^7.25.0",
|
|
107
|
+
"@ledgerhq/types-live": "^6.80.0"
|
|
108
108
|
},
|
|
109
109
|
"devDependencies": {
|
|
110
110
|
"@agrozyme/types-tronweb": "^5.3.2",
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
"ts-jest": "^29.1.1",
|
|
119
119
|
"typescript": "^5.4.5",
|
|
120
120
|
"@ledgerhq/disable-network-setup": "^0.0.0",
|
|
121
|
-
"@ledgerhq/types-cryptoassets": "^7.
|
|
121
|
+
"@ledgerhq/types-cryptoassets": "^7.25.0"
|
|
122
122
|
},
|
|
123
123
|
"scripts": {
|
|
124
124
|
"clean": "rimraf lib lib-es",
|
package/src/api/index.ts
CHANGED
|
@@ -2,13 +2,9 @@ import {
|
|
|
2
2
|
AlpacaApi,
|
|
3
3
|
Block,
|
|
4
4
|
BlockInfo,
|
|
5
|
-
Cursor,
|
|
6
|
-
Page,
|
|
7
5
|
FeeEstimation,
|
|
8
6
|
Operation,
|
|
9
7
|
Pagination,
|
|
10
|
-
Reward,
|
|
11
|
-
Stake,
|
|
12
8
|
TransactionIntent,
|
|
13
9
|
} from "@ledgerhq/coin-framework/api/index";
|
|
14
10
|
import coinConfig, { type TronConfig } from "../config";
|
|
@@ -41,12 +37,6 @@ export function createApi(config: TronConfig): AlpacaApi<TronMemo> {
|
|
|
41
37
|
getBlockInfo(_height: number): Promise<BlockInfo> {
|
|
42
38
|
throw new Error("getBlockInfo is not supported");
|
|
43
39
|
},
|
|
44
|
-
getStakes(_address: string, _cursor?: Cursor): Promise<Page<Stake>> {
|
|
45
|
-
throw new Error("getStakes is not supported");
|
|
46
|
-
},
|
|
47
|
-
getRewards(_address: string, _cursor?: Cursor): Promise<Page<Reward>> {
|
|
48
|
-
throw new Error("getRewards is not supported");
|
|
49
|
-
},
|
|
50
40
|
};
|
|
51
41
|
}
|
|
52
42
|
|