@ledgerhq/coin-tron 5.0.0 → 5.0.1-nightly.1
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 +18 -0
- 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.map +1 -1
- package/lib-es/api/index.js +6 -0
- package/lib-es/api/index.js.map +1 -1
- package/package.json +6 -6
- package/src/api/index.ts +10 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
> @ledgerhq/coin-tron@5.0.0 build /home/runner/work/ledger-live/ledger-live/libs/coin-modules/coin-tron
|
|
2
|
+
> @ledgerhq/coin-tron@5.0.1-nightly.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,5 +1,23 @@
|
|
|
1
1
|
# @ledgerhq/coin-tron
|
|
2
2
|
|
|
3
|
+
## 5.0.1-nightly.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`d41fc9c`](https://github.com/LedgerHQ/ledger-live/commit/d41fc9c458050ef1234c04af9642321c41cecda1)]:
|
|
8
|
+
- @ledgerhq/cryptoassets@13.25.0-nightly.1
|
|
9
|
+
- @ledgerhq/types-live@6.80.0
|
|
10
|
+
- @ledgerhq/coin-framework@6.0.1-nightly.1
|
|
11
|
+
|
|
12
|
+
## 5.0.1-nightly.0
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies []:
|
|
17
|
+
- @ledgerhq/coin-framework@6.0.1-nightly.0
|
|
18
|
+
- @ledgerhq/cryptoassets@13.24.1-nightly.0
|
|
19
|
+
- @ledgerhq/live-network@2.0.15-nightly.0
|
|
20
|
+
|
|
3
21
|
## 5.0.0
|
|
4
22
|
|
|
5
23
|
### Major Changes
|
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,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"}
|
package/lib/api/index.js
CHANGED
|
@@ -22,6 +22,12 @@ 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
|
+
},
|
|
25
31
|
};
|
|
26
32
|
}
|
|
27
33
|
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":";;;;;AA0BA,8BAwBC;AArCD,uDAAwD;AACxD,oCASkB;AAGlB,SAAgB,SAAS,CAAC,MAAkB;IAC1C,gBAAU,CAAC,aAAa,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[],"mappings":"AAAA,OAAO,EACL,SAAS,
|
|
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"}
|
package/lib-es/api/index.js
CHANGED
|
@@ -16,6 +16,12 @@ 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
|
+
},
|
|
19
25
|
};
|
|
20
26
|
}
|
|
21
27
|
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":"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+B,CAAC,CAAC;QACnD,CAAC;QACD,SAAS,CAAC,QAAgB,EAAE,OAAgB;YAC1C,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAC;QAChD,CAAC;QACD,UAAU,CAAC,QAAgB,EAAE,OAAgB;YAC3C,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;QACjD,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": "5.0.
|
|
3
|
+
"version": "5.0.1-nightly.1",
|
|
4
4
|
"description": "Ledger Tron Coin integration",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Ledger",
|
|
@@ -96,11 +96,11 @@
|
|
|
96
96
|
"lodash": "^4.17.21",
|
|
97
97
|
"rxjs": "^7.8.1",
|
|
98
98
|
"tronweb": "5.3.2",
|
|
99
|
-
"@ledgerhq/coin-framework": "^6.0.
|
|
100
|
-
"@ledgerhq/cryptoassets": "^13.
|
|
101
|
-
"@ledgerhq/devices": "8.4.
|
|
102
|
-
"@ledgerhq/errors": "^6.
|
|
103
|
-
"@ledgerhq/live-network": "^2.0.
|
|
99
|
+
"@ledgerhq/coin-framework": "^6.0.1-nightly.1",
|
|
100
|
+
"@ledgerhq/cryptoassets": "^13.25.0-nightly.1",
|
|
101
|
+
"@ledgerhq/devices": "8.4.9-nightly.1",
|
|
102
|
+
"@ledgerhq/errors": "^6.24.0-nightly.0",
|
|
103
|
+
"@ledgerhq/live-network": "^2.0.15-nightly.0",
|
|
104
104
|
"@ledgerhq/live-promise": "^0.1.1",
|
|
105
105
|
"@ledgerhq/logs": "^6.13.0",
|
|
106
106
|
"@ledgerhq/types-cryptoassets": "^7.25.0",
|
package/src/api/index.ts
CHANGED
|
@@ -2,9 +2,13 @@ import {
|
|
|
2
2
|
AlpacaApi,
|
|
3
3
|
Block,
|
|
4
4
|
BlockInfo,
|
|
5
|
+
Cursor,
|
|
6
|
+
Page,
|
|
5
7
|
FeeEstimation,
|
|
6
8
|
Operation,
|
|
7
9
|
Pagination,
|
|
10
|
+
Reward,
|
|
11
|
+
Stake,
|
|
8
12
|
TransactionIntent,
|
|
9
13
|
} from "@ledgerhq/coin-framework/api/index";
|
|
10
14
|
import coinConfig, { type TronConfig } from "../config";
|
|
@@ -37,6 +41,12 @@ export function createApi(config: TronConfig): AlpacaApi<TronMemo> {
|
|
|
37
41
|
getBlockInfo(_height: number): Promise<BlockInfo> {
|
|
38
42
|
throw new Error("getBlockInfo is not supported");
|
|
39
43
|
},
|
|
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
|
+
},
|
|
40
50
|
};
|
|
41
51
|
}
|
|
42
52
|
|