@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.
@@ -1,4 +1,4 @@
1
1
 
2
- > @ledgerhq/coin-tron@4.5.1-nightly.1 build /home/runner/work/ledger-live/ledger-live/libs/coin-modules/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
- ## 4.6.0-nightly.2
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
- - [#11016](https://github.com/LedgerHQ/ledger-live/pull/11016) [`a8b4f57`](https://github.com/LedgerHQ/ledger-live/commit/a8b4f57bf7d82e6c2444a65901e927c3c3d64412) Thanks [@jnicoulaud-ledger](https://github.com/jnicoulaud-ledger)! - [coin-modules] add coin-framework staking API + SUI implementation
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 [[`0c8486e`](https://github.com/LedgerHQ/ledger-live/commit/0c8486ea830e9e2abf1dfc5d108117e1db733072), [`a8b4f57`](https://github.com/LedgerHQ/ledger-live/commit/a8b4f57bf7d82e6c2444a65901e927c3c3d64412), [`67e2a7c`](https://github.com/LedgerHQ/ledger-live/commit/67e2a7c5a74d000f22684254778dfec5b8b5163d)]:
12
- - @ledgerhq/cryptoassets@13.24.0-nightly.0
13
- - @ledgerhq/coin-framework@5.9.0-nightly.2
14
- - @ledgerhq/types-live@6.79.1-nightly.0
15
- - @ledgerhq/devices@8.4.9-nightly.1
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
- ## 4.5.1-nightly.1
22
+ ## 5.0.0-next.0
18
23
 
19
- ### Patch Changes
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
- - Updated dependencies [[`354fa83`](https://github.com/LedgerHQ/ledger-live/commit/354fa83c8107cf8e6b56a8b306569ee65980e10c)]:
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
- ## 4.5.1-nightly.0
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/coin-framework@5.9.0-nightly.0
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
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAWV,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,CAwBjE"}
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) {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":";;;;;AA0BA,8BAwBC;AArCD,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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{"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"}
@@ -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) {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAaA,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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,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": "4.6.0-nightly.2",
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": "^5.9.0-nightly.2",
100
- "@ledgerhq/cryptoassets": "^13.24.0-nightly.0",
101
- "@ledgerhq/devices": "8.4.9-nightly.1",
102
- "@ledgerhq/errors": "^6.24.0-nightly.0",
103
- "@ledgerhq/live-network": "^2.0.14-nightly.1",
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.24.0",
107
- "@ledgerhq/types-live": "^6.79.1-nightly.0"
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.24.0"
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