@ledgerhq/coin-tron 5.1.1-nightly.2 → 5.3.0-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 +20 -21
- package/lib/network/trongrid/trongrid-adapters.js +3 -1
- package/lib/network/trongrid/trongrid-adapters.js.map +1 -1
- package/lib-es/network/trongrid/trongrid-adapters.js +3 -1
- package/lib-es/network/trongrid/trongrid-adapters.js.map +1 -1
- package/package.json +5 -5
- package/src/network/trongrid/trongrid-adapters.ts +3 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
> @ledgerhq/coin-tron@5.
|
|
2
|
+
> @ledgerhq/coin-tron@5.2.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,37 +1,36 @@
|
|
|
1
1
|
# @ledgerhq/coin-tron
|
|
2
2
|
|
|
3
|
-
## 5.
|
|
3
|
+
## 5.3.0-nightly.0
|
|
4
4
|
|
|
5
|
-
###
|
|
5
|
+
### Minor Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
- @ledgerhq/coin-framework@6.2.0-nightly.2
|
|
9
|
-
- @ledgerhq/types-live@6.82.0-nightly.2
|
|
7
|
+
- [#11526](https://github.com/LedgerHQ/ledger-live/pull/11526) [`19e0b97`](https://github.com/LedgerHQ/ledger-live/commit/19e0b97f12404f0bb857e5430cecf77c7eb128e9) Thanks [@francois-guerin-ledger](https://github.com/francois-guerin-ledger)! - fix(coin-tron): transaction type is unknown on staking
|
|
10
8
|
|
|
11
|
-
## 5.
|
|
9
|
+
## 5.2.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#10420](https://github.com/LedgerHQ/ledger-live/pull/10420) [`80f8f1e`](https://github.com/LedgerHQ/ledger-live/commit/80f8f1eaef8a7bc84ba5441790296dec6cbfa199) Thanks [@Wozacosta](https://github.com/Wozacosta)! - Stellar Generic Adaptor
|
|
12
14
|
|
|
13
15
|
### Patch Changes
|
|
14
16
|
|
|
15
|
-
- [
|
|
17
|
+
- Updated dependencies [[`1f1cbeb`](https://github.com/LedgerHQ/ledger-live/commit/1f1cbeb4485fb4b85b76ffe040c632d049f4e0c4), [`80f8f1e`](https://github.com/LedgerHQ/ledger-live/commit/80f8f1eaef8a7bc84ba5441790296dec6cbfa199), [`d41fc9c`](https://github.com/LedgerHQ/ledger-live/commit/d41fc9c458050ef1234c04af9642321c41cecda1), [`67ec10b`](https://github.com/LedgerHQ/ledger-live/commit/67ec10b773b4a6b512a8a6485940fa0abd41c3ef), [`31dceca`](https://github.com/LedgerHQ/ledger-live/commit/31dcecad24abdaa8a77208e82532c47728c11180)]:
|
|
18
|
+
- @ledgerhq/cryptoassets@13.26.0
|
|
19
|
+
- @ledgerhq/coin-framework@6.2.0
|
|
20
|
+
- @ledgerhq/types-live@6.82.0
|
|
21
|
+
|
|
22
|
+
## 5.2.0-next.0
|
|
16
23
|
|
|
17
|
-
|
|
18
|
-
- @ledgerhq/coin-framework@6.2.0-nightly.1
|
|
19
|
-
- @ledgerhq/cryptoassets@13.26.0-nightly.1
|
|
20
|
-
- @ledgerhq/types-live@6.82.0-nightly.1
|
|
21
|
-
- @ledgerhq/errors@6.25.0-nightly.0
|
|
22
|
-
- @ledgerhq/types-cryptoassets@7.26.0-nightly.0
|
|
23
|
-
- @ledgerhq/devices@8.5.1-nightly.0
|
|
24
|
-
- @ledgerhq/live-network@2.0.16-nightly.1
|
|
24
|
+
### Minor Changes
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
- [#10420](https://github.com/LedgerHQ/ledger-live/pull/10420) [`80f8f1e`](https://github.com/LedgerHQ/ledger-live/commit/80f8f1eaef8a7bc84ba5441790296dec6cbfa199) Thanks [@Wozacosta](https://github.com/Wozacosta)! - Stellar Generic Adaptor
|
|
27
27
|
|
|
28
28
|
### Patch Changes
|
|
29
29
|
|
|
30
|
-
- Updated dependencies [[`
|
|
31
|
-
- @ledgerhq/
|
|
32
|
-
- @ledgerhq/coin-framework@6.2.0-
|
|
33
|
-
- @ledgerhq/
|
|
34
|
-
- @ledgerhq/live-network@2.0.16-nightly.0
|
|
30
|
+
- Updated dependencies [[`1f1cbeb`](https://github.com/LedgerHQ/ledger-live/commit/1f1cbeb4485fb4b85b76ffe040c632d049f4e0c4), [`80f8f1e`](https://github.com/LedgerHQ/ledger-live/commit/80f8f1eaef8a7bc84ba5441790296dec6cbfa199), [`d41fc9c`](https://github.com/LedgerHQ/ledger-live/commit/d41fc9c458050ef1234c04af9642321c41cecda1), [`67ec10b`](https://github.com/LedgerHQ/ledger-live/commit/67ec10b773b4a6b512a8a6485940fa0abd41c3ef), [`31dceca`](https://github.com/LedgerHQ/ledger-live/commit/31dcecad24abdaa8a77208e82532c47728c11180)]:
|
|
31
|
+
- @ledgerhq/cryptoassets@13.26.0-next.0
|
|
32
|
+
- @ledgerhq/coin-framework@6.2.0-next.0
|
|
33
|
+
- @ledgerhq/types-live@6.82.0-next.0
|
|
35
34
|
|
|
36
35
|
## 5.1.0
|
|
37
36
|
|
|
@@ -20,7 +20,9 @@ function fromTrongridTxInfoToOperation(trongridTxInfo, userAddress) {
|
|
|
20
20
|
}
|
|
21
21
|
function inferOperationType(trongridTxInfo, userAddress) {
|
|
22
22
|
switch (true) {
|
|
23
|
-
case trongridTxInfo.from === userAddress &&
|
|
23
|
+
case trongridTxInfo.from === userAddress &&
|
|
24
|
+
trongridTxInfo.to &&
|
|
25
|
+
trongridTxInfo.to !== userAddress:
|
|
24
26
|
return "OUT";
|
|
25
27
|
case trongridTxInfo.to === userAddress && trongridTxInfo.from !== userAddress:
|
|
26
28
|
return "IN";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trongrid-adapters.js","sourceRoot":"","sources":["../../../src/network/trongrid/trongrid-adapters.ts"],"names":[],"mappings":";;AAIA,sEAkBC;AArBD,0DAAuE;AAGvE,SAAgB,6BAA6B,CAC3C,cAA8B,EAC9B,WAAmB;IAEnB,OAAO;QACL,EAAE,EAAE,cAAc,CAAC,IAAI;QACvB,EAAE,EAAE;YACF,IAAI,EAAE,cAAc,CAAC,IAAI;YACzB,KAAK,EAAE,EAAE,MAAM,EAAE,cAAc,CAAC,WAAW,IAAI,CAAC,EAAE,IAAI,EAAE,cAAc,CAAC,IAAI,EAAE;YAC7E,IAAI,EAAE,IAAA,6BAAqB,EAAS,cAAc,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;YAClE,IAAI,EAAE,cAAc,CAAC,IAAI;SAC1B;QACD,IAAI,EAAE,kBAAkB,CAAC,cAAc,EAAE,WAAW,CAAC;QACrD,KAAK,EAAE,IAAA,6BAAqB,EAAS,cAAc,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;QACrE,OAAO,EAAE,CAAC,cAAc,CAAC,IAAI,CAAC;QAC9B,UAAU,EAAE,cAAc,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE;QACxD,KAAK,EAAE,cAAc,CAAC,cAAc,CAAC;KACtC,CAAC;AACJ,CAAC;AAED,SAAS,kBAAkB,CAAC,cAA8B,EAAE,WAAmB;IAC7E,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,cAAc,CAAC,IAAI,KAAK,WAAW,
|
|
1
|
+
{"version":3,"file":"trongrid-adapters.js","sourceRoot":"","sources":["../../../src/network/trongrid/trongrid-adapters.ts"],"names":[],"mappings":";;AAIA,sEAkBC;AArBD,0DAAuE;AAGvE,SAAgB,6BAA6B,CAC3C,cAA8B,EAC9B,WAAmB;IAEnB,OAAO;QACL,EAAE,EAAE,cAAc,CAAC,IAAI;QACvB,EAAE,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Ac,CAAC,SAAS,KAAK,OAAO;YACvC,OAAO;gBACL,IAAI,EAAE,OAAO;gBACb,2DAA2D;gBAC3D,cAAc,EAAE,cAAc,CAAC,YAAsB;aACtD,CAAC;QACJ;YACE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;IAC9B,CAAC;AACH,CAAC"}
|
|
@@ -17,7 +17,9 @@ export function fromTrongridTxInfoToOperation(trongridTxInfo, userAddress) {
|
|
|
17
17
|
}
|
|
18
18
|
function inferOperationType(trongridTxInfo, userAddress) {
|
|
19
19
|
switch (true) {
|
|
20
|
-
case trongridTxInfo.from === userAddress &&
|
|
20
|
+
case trongridTxInfo.from === userAddress &&
|
|
21
|
+
trongridTxInfo.to &&
|
|
22
|
+
trongridTxInfo.to !== userAddress:
|
|
21
23
|
return "OUT";
|
|
22
24
|
case trongridTxInfo.to === userAddress && trongridTxInfo.from !== userAddress:
|
|
23
25
|
return "IN";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trongrid-adapters.js","sourceRoot":"","sources":["../../../src/network/trongrid/trongrid-adapters.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAGvE,MAAM,UAAU,6BAA6B,CAC3C,cAA8B,EAC9B,WAAmB;IAEnB,OAAO;QACL,EAAE,EAAE,cAAc,CAAC,IAAI;QACvB,EAAE,EAAE;YACF,IAAI,EAAE,cAAc,CAAC,IAAI;YACzB,KAAK,EAAE,EAAE,MAAM,EAAE,cAAc,CAAC,WAAW,IAAI,CAAC,EAAE,IAAI,EAAE,cAAc,CAAC,IAAI,EAAE;YAC7E,IAAI,EAAE,qBAAqB,CAAS,cAAc,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;YAClE,IAAI,EAAE,cAAc,CAAC,IAAI;SAC1B;QACD,IAAI,EAAE,kBAAkB,CAAC,cAAc,EAAE,WAAW,CAAC;QACrD,KAAK,EAAE,qBAAqB,CAAS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CAAC,EAAE;QACxD,KAAK,EAAE,cAAc,CAAC,cAAc,CAAC;KACtC,CAAC;AACJ,CAAC;AAED,SAAS,kBAAkB,CAAC,cAA8B,EAAE,WAAmB;IAC7E,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,cAAc,CAAC,IAAI,KAAK,WAAW;YACtC,cAAc,CAAC,EAAE;YACjB,cAAc,CAAC,EAAE,KAAK,WAAW;YACjC,OAAO,KAAK,CAAC;QACf,KAAK,cAAc,CAAC,EAAE,KAAK,WAAW,IAAI,cAAc,CAAC,IAAI,KAAK,WAAW;YAC3E,OAAO,IAAI,CAAC;QACd;YACE,OAAO,SAAS,CAAC;IACrB,CAAC;AACH,CAAC;AAED,SAAS,cAAc,CAAC,cAA8B;IACpD,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,cAAc,CAAC,SAAS,KAAK,OAAO;YACvC,OAAO;gBACL,IAAI,EAAE,OAAO;gBACb,mDAAmD;gBACnD,cAAc,EAAE,cAAc,CAAC,OAAiB;aACjD,CAAC;QACJ,KAAK,cAAc,CAAC,SAAS,KAAK,OAAO;YACvC,OAAO;gBACL,IAAI,EAAE,OAAO;gBACb,2DAA2D;gBAC3D,cAAc,EAAE,cAAc,CAAC,YAAsB;aACtD,CAAC;QACJ;YACE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;IAC9B,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ledgerhq/coin-tron",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.0-nightly.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": "^6.2.0
|
|
100
|
-
"@ledgerhq/cryptoassets": "^13.26.0
|
|
99
|
+
"@ledgerhq/coin-framework": "^6.2.0",
|
|
100
|
+
"@ledgerhq/cryptoassets": "^13.26.0",
|
|
101
101
|
"@ledgerhq/devices": "8.5.1-nightly.0",
|
|
102
102
|
"@ledgerhq/errors": "^6.25.0-nightly.0",
|
|
103
103
|
"@ledgerhq/live-network": "^2.0.16-nightly.1",
|
|
104
104
|
"@ledgerhq/live-promise": "^0.1.1",
|
|
105
105
|
"@ledgerhq/logs": "^6.13.0",
|
|
106
106
|
"@ledgerhq/types-cryptoassets": "^7.26.0-nightly.0",
|
|
107
|
-
"@ledgerhq/types-live": "^6.82.0
|
|
107
|
+
"@ledgerhq/types-live": "^6.82.0"
|
|
108
108
|
},
|
|
109
109
|
"devDependencies": {
|
|
110
110
|
"@agrozyme/types-tronweb": "^5.3.2",
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
"scripts": {
|
|
124
124
|
"clean": "rimraf lib lib-es",
|
|
125
125
|
"build": "tsc && tsc -m esnext --moduleResolution bundler --outDir lib-es",
|
|
126
|
-
"coverage": "jest --coverage
|
|
126
|
+
"coverage": "jest --coverage",
|
|
127
127
|
"prewatch": "pnpm build",
|
|
128
128
|
"watch": "tsc --watch",
|
|
129
129
|
"watch:es": "tsc --watch -m esnext --moduleResolution bundler --outDir lib-es",
|
|
@@ -24,7 +24,9 @@ export function fromTrongridTxInfoToOperation(
|
|
|
24
24
|
|
|
25
25
|
function inferOperationType(trongridTxInfo: TrongridTxInfo, userAddress: string): string {
|
|
26
26
|
switch (true) {
|
|
27
|
-
case trongridTxInfo.from === userAddress &&
|
|
27
|
+
case trongridTxInfo.from === userAddress &&
|
|
28
|
+
trongridTxInfo.to &&
|
|
29
|
+
trongridTxInfo.to !== userAddress:
|
|
28
30
|
return "OUT";
|
|
29
31
|
case trongridTxInfo.to === userAddress && trongridTxInfo.from !== userAddress:
|
|
30
32
|
return "IN";
|