@ledgerhq/live-cli 24.40.0 → 24.40.1-nightly.20260505134028
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/lib/5.js +411 -0
- package/lib/{827.js → 514.js} +54 -51
- package/lib/{550.js → 722.js} +619 -186
- package/lib/744.js +1 -1
- package/lib/810.js +36 -1
- package/lib/cli.js +43565 -38031
- package/lib/index.darwin-arm64.node +0 -0
- package/lib/index.darwin-x64.node +0 -0
- package/lib/index.linux-arm64-gnu.node +0 -0
- package/lib/index.linux-x64-gnu.node +0 -0
- package/lib/index.win32-arm64-msvc.node +0 -0
- package/lib/index.win32-x64-msvc.node +0 -0
- package/lib/{714.js → zcash-jsonrpc.js} +12 -11
- package/lib/zcash-native.js +456 -0
- package/package.json +1 -1
package/lib/5.js
ADDED
|
@@ -0,0 +1,411 @@
|
|
|
1
|
+
const __rslib_import_meta_url__ = /*#__PURE__*/ (function () {
|
|
2
|
+
return typeof document === 'undefined'
|
|
3
|
+
? new (require('url'.replace('', '')).URL)('file:' + __filename).href
|
|
4
|
+
: (document.currentScript && document.currentScript.src) ||
|
|
5
|
+
new URL('main.js', document.baseURI).href;
|
|
6
|
+
})();
|
|
7
|
+
exports.ids = ["5"];
|
|
8
|
+
exports.modules = {
|
|
9
|
+
"../../node_modules/.pnpm/@ledgerhq+zcash-utils@0.2.0/node_modules/@ledgerhq/zcash-utils/index.js"(module, __unused_rspack_exports, __webpack_require__) {
|
|
10
|
+
/* tslint:disable */
|
|
11
|
+
/* eslint-disable */
|
|
12
|
+
/* prettier-ignore */
|
|
13
|
+
|
|
14
|
+
/* auto-generated by NAPI-RS */
|
|
15
|
+
|
|
16
|
+
const { existsSync, readFileSync } = __webpack_require__("fs")
|
|
17
|
+
const { join } = __webpack_require__("path")
|
|
18
|
+
|
|
19
|
+
const { platform, arch } = process
|
|
20
|
+
|
|
21
|
+
let nativeBinding = null
|
|
22
|
+
let localFileExisted = false
|
|
23
|
+
let loadError = null
|
|
24
|
+
|
|
25
|
+
function isMusl() {
|
|
26
|
+
// For Node 10
|
|
27
|
+
if (!process.report || typeof process.report.getReport !== 'function') {
|
|
28
|
+
try {
|
|
29
|
+
const lddPath = (__webpack_require__("child_process")/* .execSync */.execSync)('which ldd').toString().trim()
|
|
30
|
+
return readFileSync(lddPath, 'utf8').includes('musl')
|
|
31
|
+
} catch (e) {
|
|
32
|
+
return true
|
|
33
|
+
}
|
|
34
|
+
} else {
|
|
35
|
+
const { glibcVersionRuntime } = process.report.getReport().header
|
|
36
|
+
return !glibcVersionRuntime
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
switch (platform) {
|
|
41
|
+
case 'android':
|
|
42
|
+
switch (arch) {
|
|
43
|
+
case 'arm64':
|
|
44
|
+
localFileExisted = existsSync(join(__dirname, 'index.android-arm64.node'))
|
|
45
|
+
try {
|
|
46
|
+
if (localFileExisted) {
|
|
47
|
+
nativeBinding = __webpack_require__(Object(function __rspack_missing_module() { var e = new Error("Cannot find module './index.android-arm64.node'"); e.code = 'MODULE_NOT_FOUND'; throw e; }()))
|
|
48
|
+
} else {
|
|
49
|
+
nativeBinding = __webpack_require__(Object(function __rspack_missing_module() { var e = new Error("Cannot find module '@ledgerhq/zcash-utils-android-arm64'"); e.code = 'MODULE_NOT_FOUND'; throw e; }()))
|
|
50
|
+
}
|
|
51
|
+
} catch (e) {
|
|
52
|
+
loadError = e
|
|
53
|
+
}
|
|
54
|
+
break
|
|
55
|
+
case 'arm':
|
|
56
|
+
localFileExisted = existsSync(join(__dirname, 'index.android-arm-eabi.node'))
|
|
57
|
+
try {
|
|
58
|
+
if (localFileExisted) {
|
|
59
|
+
nativeBinding = __webpack_require__(Object(function __rspack_missing_module() { var e = new Error("Cannot find module './index.android-arm-eabi.node'"); e.code = 'MODULE_NOT_FOUND'; throw e; }()))
|
|
60
|
+
} else {
|
|
61
|
+
nativeBinding = __webpack_require__(Object(function __rspack_missing_module() { var e = new Error("Cannot find module '@ledgerhq/zcash-utils-android-arm-eabi'"); e.code = 'MODULE_NOT_FOUND'; throw e; }()))
|
|
62
|
+
}
|
|
63
|
+
} catch (e) {
|
|
64
|
+
loadError = e
|
|
65
|
+
}
|
|
66
|
+
break
|
|
67
|
+
default:
|
|
68
|
+
throw new Error(`Unsupported architecture on Android ${arch}`)
|
|
69
|
+
}
|
|
70
|
+
break
|
|
71
|
+
case 'win32':
|
|
72
|
+
switch (arch) {
|
|
73
|
+
case 'x64':
|
|
74
|
+
localFileExisted = existsSync(
|
|
75
|
+
join(__dirname, 'index.win32-x64-msvc.node')
|
|
76
|
+
)
|
|
77
|
+
try {
|
|
78
|
+
if (localFileExisted) {
|
|
79
|
+
nativeBinding = __webpack_require__("../../node_modules/.pnpm/@ledgerhq+zcash-utils@0.2.0/node_modules/@ledgerhq/zcash-utils/index.win32-x64-msvc.node")
|
|
80
|
+
} else {
|
|
81
|
+
nativeBinding = __webpack_require__(Object(function __rspack_missing_module() { var e = new Error("Cannot find module '@ledgerhq/zcash-utils-win32-x64-msvc'"); e.code = 'MODULE_NOT_FOUND'; throw e; }()))
|
|
82
|
+
}
|
|
83
|
+
} catch (e) {
|
|
84
|
+
loadError = e
|
|
85
|
+
}
|
|
86
|
+
break
|
|
87
|
+
case 'ia32':
|
|
88
|
+
localFileExisted = existsSync(
|
|
89
|
+
join(__dirname, 'index.win32-ia32-msvc.node')
|
|
90
|
+
)
|
|
91
|
+
try {
|
|
92
|
+
if (localFileExisted) {
|
|
93
|
+
nativeBinding = __webpack_require__(Object(function __rspack_missing_module() { var e = new Error("Cannot find module './index.win32-ia32-msvc.node'"); e.code = 'MODULE_NOT_FOUND'; throw e; }()))
|
|
94
|
+
} else {
|
|
95
|
+
nativeBinding = __webpack_require__(Object(function __rspack_missing_module() { var e = new Error("Cannot find module '@ledgerhq/zcash-utils-win32-ia32-msvc'"); e.code = 'MODULE_NOT_FOUND'; throw e; }()))
|
|
96
|
+
}
|
|
97
|
+
} catch (e) {
|
|
98
|
+
loadError = e
|
|
99
|
+
}
|
|
100
|
+
break
|
|
101
|
+
case 'arm64':
|
|
102
|
+
localFileExisted = existsSync(
|
|
103
|
+
join(__dirname, 'index.win32-arm64-msvc.node')
|
|
104
|
+
)
|
|
105
|
+
try {
|
|
106
|
+
if (localFileExisted) {
|
|
107
|
+
nativeBinding = __webpack_require__("../../node_modules/.pnpm/@ledgerhq+zcash-utils@0.2.0/node_modules/@ledgerhq/zcash-utils/index.win32-arm64-msvc.node")
|
|
108
|
+
} else {
|
|
109
|
+
nativeBinding = __webpack_require__(Object(function __rspack_missing_module() { var e = new Error("Cannot find module '@ledgerhq/zcash-utils-win32-arm64-msvc'"); e.code = 'MODULE_NOT_FOUND'; throw e; }()))
|
|
110
|
+
}
|
|
111
|
+
} catch (e) {
|
|
112
|
+
loadError = e
|
|
113
|
+
}
|
|
114
|
+
break
|
|
115
|
+
default:
|
|
116
|
+
throw new Error(`Unsupported architecture on Windows: ${arch}`)
|
|
117
|
+
}
|
|
118
|
+
break
|
|
119
|
+
case 'darwin':
|
|
120
|
+
localFileExisted = existsSync(join(__dirname, 'index.darwin-universal.node'))
|
|
121
|
+
try {
|
|
122
|
+
if (localFileExisted) {
|
|
123
|
+
nativeBinding = __webpack_require__(Object(function __rspack_missing_module() { var e = new Error("Cannot find module './index.darwin-universal.node'"); e.code = 'MODULE_NOT_FOUND'; throw e; }()))
|
|
124
|
+
} else {
|
|
125
|
+
nativeBinding = __webpack_require__(Object(function __rspack_missing_module() { var e = new Error("Cannot find module '@ledgerhq/zcash-utils-darwin-universal'"); e.code = 'MODULE_NOT_FOUND'; throw e; }()))
|
|
126
|
+
}
|
|
127
|
+
break
|
|
128
|
+
} catch {}
|
|
129
|
+
switch (arch) {
|
|
130
|
+
case 'x64':
|
|
131
|
+
localFileExisted = existsSync(join(__dirname, 'index.darwin-x64.node'))
|
|
132
|
+
try {
|
|
133
|
+
if (localFileExisted) {
|
|
134
|
+
nativeBinding = __webpack_require__("../../node_modules/.pnpm/@ledgerhq+zcash-utils@0.2.0/node_modules/@ledgerhq/zcash-utils/index.darwin-x64.node")
|
|
135
|
+
} else {
|
|
136
|
+
nativeBinding = __webpack_require__(Object(function __rspack_missing_module() { var e = new Error("Cannot find module '@ledgerhq/zcash-utils-darwin-x64'"); e.code = 'MODULE_NOT_FOUND'; throw e; }()))
|
|
137
|
+
}
|
|
138
|
+
} catch (e) {
|
|
139
|
+
loadError = e
|
|
140
|
+
}
|
|
141
|
+
break
|
|
142
|
+
case 'arm64':
|
|
143
|
+
localFileExisted = existsSync(
|
|
144
|
+
join(__dirname, 'index.darwin-arm64.node')
|
|
145
|
+
)
|
|
146
|
+
try {
|
|
147
|
+
if (localFileExisted) {
|
|
148
|
+
nativeBinding = __webpack_require__("../../node_modules/.pnpm/@ledgerhq+zcash-utils@0.2.0/node_modules/@ledgerhq/zcash-utils/index.darwin-arm64.node")
|
|
149
|
+
} else {
|
|
150
|
+
nativeBinding = __webpack_require__(Object(function __rspack_missing_module() { var e = new Error("Cannot find module '@ledgerhq/zcash-utils-darwin-arm64'"); e.code = 'MODULE_NOT_FOUND'; throw e; }()))
|
|
151
|
+
}
|
|
152
|
+
} catch (e) {
|
|
153
|
+
loadError = e
|
|
154
|
+
}
|
|
155
|
+
break
|
|
156
|
+
default:
|
|
157
|
+
throw new Error(`Unsupported architecture on macOS: ${arch}`)
|
|
158
|
+
}
|
|
159
|
+
break
|
|
160
|
+
case 'freebsd':
|
|
161
|
+
if (arch !== 'x64') {
|
|
162
|
+
throw new Error(`Unsupported architecture on FreeBSD: ${arch}`)
|
|
163
|
+
}
|
|
164
|
+
localFileExisted = existsSync(join(__dirname, 'index.freebsd-x64.node'))
|
|
165
|
+
try {
|
|
166
|
+
if (localFileExisted) {
|
|
167
|
+
nativeBinding = __webpack_require__(Object(function __rspack_missing_module() { var e = new Error("Cannot find module './index.freebsd-x64.node'"); e.code = 'MODULE_NOT_FOUND'; throw e; }()))
|
|
168
|
+
} else {
|
|
169
|
+
nativeBinding = __webpack_require__(Object(function __rspack_missing_module() { var e = new Error("Cannot find module '@ledgerhq/zcash-utils-freebsd-x64'"); e.code = 'MODULE_NOT_FOUND'; throw e; }()))
|
|
170
|
+
}
|
|
171
|
+
} catch (e) {
|
|
172
|
+
loadError = e
|
|
173
|
+
}
|
|
174
|
+
break
|
|
175
|
+
case 'linux':
|
|
176
|
+
switch (arch) {
|
|
177
|
+
case 'x64':
|
|
178
|
+
if (isMusl()) {
|
|
179
|
+
localFileExisted = existsSync(
|
|
180
|
+
join(__dirname, 'index.linux-x64-musl.node')
|
|
181
|
+
)
|
|
182
|
+
try {
|
|
183
|
+
if (localFileExisted) {
|
|
184
|
+
nativeBinding = __webpack_require__(Object(function __rspack_missing_module() { var e = new Error("Cannot find module './index.linux-x64-musl.node'"); e.code = 'MODULE_NOT_FOUND'; throw e; }()))
|
|
185
|
+
} else {
|
|
186
|
+
nativeBinding = __webpack_require__(Object(function __rspack_missing_module() { var e = new Error("Cannot find module '@ledgerhq/zcash-utils-linux-x64-musl'"); e.code = 'MODULE_NOT_FOUND'; throw e; }()))
|
|
187
|
+
}
|
|
188
|
+
} catch (e) {
|
|
189
|
+
loadError = e
|
|
190
|
+
}
|
|
191
|
+
} else {
|
|
192
|
+
localFileExisted = existsSync(
|
|
193
|
+
join(__dirname, 'index.linux-x64-gnu.node')
|
|
194
|
+
)
|
|
195
|
+
try {
|
|
196
|
+
if (localFileExisted) {
|
|
197
|
+
nativeBinding = __webpack_require__("../../node_modules/.pnpm/@ledgerhq+zcash-utils@0.2.0/node_modules/@ledgerhq/zcash-utils/index.linux-x64-gnu.node")
|
|
198
|
+
} else {
|
|
199
|
+
nativeBinding = __webpack_require__(Object(function __rspack_missing_module() { var e = new Error("Cannot find module '@ledgerhq/zcash-utils-linux-x64-gnu'"); e.code = 'MODULE_NOT_FOUND'; throw e; }()))
|
|
200
|
+
}
|
|
201
|
+
} catch (e) {
|
|
202
|
+
loadError = e
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
break
|
|
206
|
+
case 'arm64':
|
|
207
|
+
if (isMusl()) {
|
|
208
|
+
localFileExisted = existsSync(
|
|
209
|
+
join(__dirname, 'index.linux-arm64-musl.node')
|
|
210
|
+
)
|
|
211
|
+
try {
|
|
212
|
+
if (localFileExisted) {
|
|
213
|
+
nativeBinding = __webpack_require__(Object(function __rspack_missing_module() { var e = new Error("Cannot find module './index.linux-arm64-musl.node'"); e.code = 'MODULE_NOT_FOUND'; throw e; }()))
|
|
214
|
+
} else {
|
|
215
|
+
nativeBinding = __webpack_require__(Object(function __rspack_missing_module() { var e = new Error("Cannot find module '@ledgerhq/zcash-utils-linux-arm64-musl'"); e.code = 'MODULE_NOT_FOUND'; throw e; }()))
|
|
216
|
+
}
|
|
217
|
+
} catch (e) {
|
|
218
|
+
loadError = e
|
|
219
|
+
}
|
|
220
|
+
} else {
|
|
221
|
+
localFileExisted = existsSync(
|
|
222
|
+
join(__dirname, 'index.linux-arm64-gnu.node')
|
|
223
|
+
)
|
|
224
|
+
try {
|
|
225
|
+
if (localFileExisted) {
|
|
226
|
+
nativeBinding = __webpack_require__("../../node_modules/.pnpm/@ledgerhq+zcash-utils@0.2.0/node_modules/@ledgerhq/zcash-utils/index.linux-arm64-gnu.node")
|
|
227
|
+
} else {
|
|
228
|
+
nativeBinding = __webpack_require__(Object(function __rspack_missing_module() { var e = new Error("Cannot find module '@ledgerhq/zcash-utils-linux-arm64-gnu'"); e.code = 'MODULE_NOT_FOUND'; throw e; }()))
|
|
229
|
+
}
|
|
230
|
+
} catch (e) {
|
|
231
|
+
loadError = e
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
break
|
|
235
|
+
case 'arm':
|
|
236
|
+
if (isMusl()) {
|
|
237
|
+
localFileExisted = existsSync(
|
|
238
|
+
join(__dirname, 'index.linux-arm-musleabihf.node')
|
|
239
|
+
)
|
|
240
|
+
try {
|
|
241
|
+
if (localFileExisted) {
|
|
242
|
+
nativeBinding = __webpack_require__(Object(function __rspack_missing_module() { var e = new Error("Cannot find module './index.linux-arm-musleabihf.node'"); e.code = 'MODULE_NOT_FOUND'; throw e; }()))
|
|
243
|
+
} else {
|
|
244
|
+
nativeBinding = __webpack_require__(Object(function __rspack_missing_module() { var e = new Error("Cannot find module '@ledgerhq/zcash-utils-linux-arm-musleabihf'"); e.code = 'MODULE_NOT_FOUND'; throw e; }()))
|
|
245
|
+
}
|
|
246
|
+
} catch (e) {
|
|
247
|
+
loadError = e
|
|
248
|
+
}
|
|
249
|
+
} else {
|
|
250
|
+
localFileExisted = existsSync(
|
|
251
|
+
join(__dirname, 'index.linux-arm-gnueabihf.node')
|
|
252
|
+
)
|
|
253
|
+
try {
|
|
254
|
+
if (localFileExisted) {
|
|
255
|
+
nativeBinding = __webpack_require__(Object(function __rspack_missing_module() { var e = new Error("Cannot find module './index.linux-arm-gnueabihf.node'"); e.code = 'MODULE_NOT_FOUND'; throw e; }()))
|
|
256
|
+
} else {
|
|
257
|
+
nativeBinding = __webpack_require__(Object(function __rspack_missing_module() { var e = new Error("Cannot find module '@ledgerhq/zcash-utils-linux-arm-gnueabihf'"); e.code = 'MODULE_NOT_FOUND'; throw e; }()))
|
|
258
|
+
}
|
|
259
|
+
} catch (e) {
|
|
260
|
+
loadError = e
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
break
|
|
264
|
+
case 'riscv64':
|
|
265
|
+
if (isMusl()) {
|
|
266
|
+
localFileExisted = existsSync(
|
|
267
|
+
join(__dirname, 'index.linux-riscv64-musl.node')
|
|
268
|
+
)
|
|
269
|
+
try {
|
|
270
|
+
if (localFileExisted) {
|
|
271
|
+
nativeBinding = __webpack_require__(Object(function __rspack_missing_module() { var e = new Error("Cannot find module './index.linux-riscv64-musl.node'"); e.code = 'MODULE_NOT_FOUND'; throw e; }()))
|
|
272
|
+
} else {
|
|
273
|
+
nativeBinding = __webpack_require__(Object(function __rspack_missing_module() { var e = new Error("Cannot find module '@ledgerhq/zcash-utils-linux-riscv64-musl'"); e.code = 'MODULE_NOT_FOUND'; throw e; }()))
|
|
274
|
+
}
|
|
275
|
+
} catch (e) {
|
|
276
|
+
loadError = e
|
|
277
|
+
}
|
|
278
|
+
} else {
|
|
279
|
+
localFileExisted = existsSync(
|
|
280
|
+
join(__dirname, 'index.linux-riscv64-gnu.node')
|
|
281
|
+
)
|
|
282
|
+
try {
|
|
283
|
+
if (localFileExisted) {
|
|
284
|
+
nativeBinding = __webpack_require__(Object(function __rspack_missing_module() { var e = new Error("Cannot find module './index.linux-riscv64-gnu.node'"); e.code = 'MODULE_NOT_FOUND'; throw e; }()))
|
|
285
|
+
} else {
|
|
286
|
+
nativeBinding = __webpack_require__(Object(function __rspack_missing_module() { var e = new Error("Cannot find module '@ledgerhq/zcash-utils-linux-riscv64-gnu'"); e.code = 'MODULE_NOT_FOUND'; throw e; }()))
|
|
287
|
+
}
|
|
288
|
+
} catch (e) {
|
|
289
|
+
loadError = e
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
break
|
|
293
|
+
case 's390x':
|
|
294
|
+
localFileExisted = existsSync(
|
|
295
|
+
join(__dirname, 'index.linux-s390x-gnu.node')
|
|
296
|
+
)
|
|
297
|
+
try {
|
|
298
|
+
if (localFileExisted) {
|
|
299
|
+
nativeBinding = __webpack_require__(Object(function __rspack_missing_module() { var e = new Error("Cannot find module './index.linux-s390x-gnu.node'"); e.code = 'MODULE_NOT_FOUND'; throw e; }()))
|
|
300
|
+
} else {
|
|
301
|
+
nativeBinding = __webpack_require__(Object(function __rspack_missing_module() { var e = new Error("Cannot find module '@ledgerhq/zcash-utils-linux-s390x-gnu'"); e.code = 'MODULE_NOT_FOUND'; throw e; }()))
|
|
302
|
+
}
|
|
303
|
+
} catch (e) {
|
|
304
|
+
loadError = e
|
|
305
|
+
}
|
|
306
|
+
break
|
|
307
|
+
default:
|
|
308
|
+
throw new Error(`Unsupported architecture on Linux: ${arch}`)
|
|
309
|
+
}
|
|
310
|
+
break
|
|
311
|
+
default:
|
|
312
|
+
throw new Error(`Unsupported OS: ${platform}, architecture: ${arch}`)
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
if (!nativeBinding) {
|
|
316
|
+
if (loadError) {
|
|
317
|
+
throw loadError
|
|
318
|
+
}
|
|
319
|
+
throw new Error(`Failed to load native binding`)
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
const { TransactionStream, startSync, getChainTip, findBlockHeight } = nativeBinding
|
|
323
|
+
|
|
324
|
+
module.exports.TransactionStream = TransactionStream
|
|
325
|
+
module.exports.startSync = startSync
|
|
326
|
+
module.exports.getChainTip = getChainTip
|
|
327
|
+
module.exports.findBlockHeight = findBlockHeight
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
},
|
|
331
|
+
"../../node_modules/.pnpm/@ledgerhq+zcash-utils@0.2.0/node_modules/@ledgerhq/zcash-utils/index.darwin-arm64.node"(module) {
|
|
332
|
+
|
|
333
|
+
try {
|
|
334
|
+
const path = require("node:path");
|
|
335
|
+
module.exports = require(path.join(__dirname, "index.darwin-arm64.node"));
|
|
336
|
+
} catch (error) {
|
|
337
|
+
throw new Error('Failed to load Node.js addon: "index.darwin-arm64.node"', {
|
|
338
|
+
cause: error,
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
},
|
|
344
|
+
"../../node_modules/.pnpm/@ledgerhq+zcash-utils@0.2.0/node_modules/@ledgerhq/zcash-utils/index.darwin-x64.node"(module) {
|
|
345
|
+
|
|
346
|
+
try {
|
|
347
|
+
const path = require("node:path");
|
|
348
|
+
module.exports = require(path.join(__dirname, "index.darwin-x64.node"));
|
|
349
|
+
} catch (error) {
|
|
350
|
+
throw new Error('Failed to load Node.js addon: "index.darwin-x64.node"', {
|
|
351
|
+
cause: error,
|
|
352
|
+
});
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
},
|
|
357
|
+
"../../node_modules/.pnpm/@ledgerhq+zcash-utils@0.2.0/node_modules/@ledgerhq/zcash-utils/index.linux-arm64-gnu.node"(module) {
|
|
358
|
+
|
|
359
|
+
try {
|
|
360
|
+
const path = require("node:path");
|
|
361
|
+
module.exports = require(path.join(__dirname, "index.linux-arm64-gnu.node"));
|
|
362
|
+
} catch (error) {
|
|
363
|
+
throw new Error('Failed to load Node.js addon: "index.linux-arm64-gnu.node"', {
|
|
364
|
+
cause: error,
|
|
365
|
+
});
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
},
|
|
370
|
+
"../../node_modules/.pnpm/@ledgerhq+zcash-utils@0.2.0/node_modules/@ledgerhq/zcash-utils/index.linux-x64-gnu.node"(module) {
|
|
371
|
+
|
|
372
|
+
try {
|
|
373
|
+
const path = require("node:path");
|
|
374
|
+
module.exports = require(path.join(__dirname, "index.linux-x64-gnu.node"));
|
|
375
|
+
} catch (error) {
|
|
376
|
+
throw new Error('Failed to load Node.js addon: "index.linux-x64-gnu.node"', {
|
|
377
|
+
cause: error,
|
|
378
|
+
});
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
},
|
|
383
|
+
"../../node_modules/.pnpm/@ledgerhq+zcash-utils@0.2.0/node_modules/@ledgerhq/zcash-utils/index.win32-arm64-msvc.node"(module) {
|
|
384
|
+
|
|
385
|
+
try {
|
|
386
|
+
const path = require("node:path");
|
|
387
|
+
module.exports = require(path.join(__dirname, "index.win32-arm64-msvc.node"));
|
|
388
|
+
} catch (error) {
|
|
389
|
+
throw new Error('Failed to load Node.js addon: "index.win32-arm64-msvc.node"', {
|
|
390
|
+
cause: error,
|
|
391
|
+
});
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
},
|
|
396
|
+
"../../node_modules/.pnpm/@ledgerhq+zcash-utils@0.2.0/node_modules/@ledgerhq/zcash-utils/index.win32-x64-msvc.node"(module) {
|
|
397
|
+
|
|
398
|
+
try {
|
|
399
|
+
const path = require("node:path");
|
|
400
|
+
module.exports = require(path.join(__dirname, "index.win32-x64-msvc.node"));
|
|
401
|
+
} catch (error) {
|
|
402
|
+
throw new Error('Failed to load Node.js addon: "index.win32-x64-msvc.node"', {
|
|
403
|
+
cause: error,
|
|
404
|
+
});
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
},
|
|
409
|
+
|
|
410
|
+
};
|
|
411
|
+
;
|
package/lib/{827.js → 514.js}
RENAMED
|
@@ -6,7 +6,7 @@ const __rslib_import_meta_url__ = /*#__PURE__*/ (function () {
|
|
|
6
6
|
new URL('main.js', document.baseURI).href;
|
|
7
7
|
})();
|
|
8
8
|
;
|
|
9
|
-
exports.ids = ["
|
|
9
|
+
exports.ids = ["514"];
|
|
10
10
|
exports.modules = {
|
|
11
11
|
"../../node_modules/.pnpm/@ledgerhq+coin-module-framework@2.2.0_@ledgerhq+errors@libs+ledgerjs+packages+errors/node_modules/@ledgerhq/coin-module-framework/lib-es/api/getBalance/rejectBalanceOptions.js"(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
12
12
|
__webpack_require__.d(__webpack_exports__, {
|
|
@@ -44,16 +44,61 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
44
44
|
var rejectBalanceOptions = __webpack_require__("../../node_modules/.pnpm/@ledgerhq+coin-module-framework@2.2.0_@ledgerhq+errors@libs+ledgerjs+packages+errors/node_modules/@ledgerhq/coin-module-framework/lib-es/api/getBalance/rejectBalanceOptions.js");
|
|
45
45
|
// EXTERNAL MODULE: ../../node_modules/.pnpm/@ledgerhq+coin-module-framework@2.2.0_@ledgerhq+errors@libs+ledgerjs+packages+errors/node_modules/@ledgerhq/coin-module-framework/lib-es/logic/craftTransactionData.js
|
|
46
46
|
var craftTransactionData = __webpack_require__("../../node_modules/.pnpm/@ledgerhq+coin-module-framework@2.2.0_@ledgerhq+errors@libs+ledgerjs+packages+errors/node_modules/@ledgerhq/coin-module-framework/lib-es/logic/craftTransactionData.js");
|
|
47
|
-
// EXTERNAL MODULE: ../../libs/ledgerjs/packages/errors/lib-es/index.js + 1 modules
|
|
48
|
-
var lib_es = __webpack_require__("../../libs/ledgerjs/packages/errors/lib-es/index.js");
|
|
49
|
-
// EXTERNAL MODULE: ../../libs/ledgerjs/packages/logs/lib-es/index.js
|
|
50
|
-
var logs_lib_es = __webpack_require__("../../libs/ledgerjs/packages/logs/lib-es/index.js");
|
|
51
47
|
// EXTERNAL MODULE: ../../node_modules/.pnpm/@stellar+stellar-sdk@14.0.0/node_modules/@stellar/stellar-sdk/lib/index.js
|
|
52
48
|
var lib = __webpack_require__("../../node_modules/.pnpm/@stellar+stellar-sdk@14.0.0/node_modules/@stellar/stellar-sdk/lib/index.js");
|
|
53
49
|
// EXTERNAL MODULE: ../../libs/coin-modules/coin-stellar/lib-es/config.js
|
|
54
50
|
var lib_es_config = __webpack_require__("../../libs/coin-modules/coin-stellar/lib-es/config.js");
|
|
55
|
-
// EXTERNAL MODULE: ../../libs/coin-modules/coin-stellar/lib-es/logic/index.js +
|
|
51
|
+
// EXTERNAL MODULE: ../../libs/coin-modules/coin-stellar/lib-es/logic/index.js + 11 modules
|
|
56
52
|
var logic = __webpack_require__("../../libs/coin-modules/coin-stellar/lib-es/logic/index.js");
|
|
53
|
+
// EXTERNAL MODULE: ../../libs/ledgerjs/packages/errors/lib-es/index.js + 1 modules
|
|
54
|
+
var lib_es = __webpack_require__("../../libs/ledgerjs/packages/errors/lib-es/index.js");
|
|
55
|
+
// EXTERNAL MODULE: ../../libs/ledgerjs/packages/logs/lib-es/index.js
|
|
56
|
+
var logs_lib_es = __webpack_require__("../../libs/ledgerjs/packages/logs/lib-es/index.js");
|
|
57
|
+
// EXTERNAL MODULE: ../../libs/coin-modules/coin-stellar/lib-es/logic/listOperations.js
|
|
58
|
+
var listOperations = __webpack_require__("../../libs/coin-modules/coin-stellar/lib-es/logic/listOperations.js");
|
|
59
|
+
;// CONCATENATED MODULE: ../../libs/coin-modules/coin-stellar/lib-es/logic/operationsFromHeight.js
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
async function operationsFromHeight(address, minHeight) {
|
|
64
|
+
const state = {
|
|
65
|
+
pageSize: 200,
|
|
66
|
+
heightLimit: minHeight,
|
|
67
|
+
continueIterations: true,
|
|
68
|
+
accumulator: []
|
|
69
|
+
};
|
|
70
|
+
// unfortunately, the stellar API does not support an option to filter by min height
|
|
71
|
+
// so the only strategy to get ALL operations is to iterate over all of them in descending order
|
|
72
|
+
// until we reach the desired minHeight
|
|
73
|
+
while(state.continueIterations){
|
|
74
|
+
const options = {
|
|
75
|
+
limit: state.pageSize,
|
|
76
|
+
order: "desc",
|
|
77
|
+
minHeight
|
|
78
|
+
};
|
|
79
|
+
if (state.apiNextCursor) {
|
|
80
|
+
options.cursor = state.apiNextCursor;
|
|
81
|
+
}
|
|
82
|
+
try {
|
|
83
|
+
const { items: operations, next: nextCursor } = await (0,listOperations/* .listOperations */.R)(address, options);
|
|
84
|
+
state.accumulator.push(...operations);
|
|
85
|
+
state.apiNextCursor = nextCursor ?? "";
|
|
86
|
+
state.continueIterations = !!nextCursor;
|
|
87
|
+
} catch (e) {
|
|
88
|
+
if (e instanceof lib_es/* .LedgerAPI4xx */.YT && e.status === 429) {
|
|
89
|
+
(0,logs_lib_es/* .log */.Rm)("coin:stellar", "(api/operations): TooManyRequests, retrying in 4s");
|
|
90
|
+
await new Promise((resolve)=>setTimeout(resolve, 4000));
|
|
91
|
+
} else {
|
|
92
|
+
throw e;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
return {
|
|
97
|
+
items: state.accumulator,
|
|
98
|
+
next: state.apiNextCursor ? state.apiNextCursor : ""
|
|
99
|
+
};
|
|
100
|
+
} //# sourceMappingURL=operationsFromHeight.js.map
|
|
101
|
+
|
|
57
102
|
// EXTERNAL MODULE: ../../libs/coin-modules/coin-stellar/lib-es/logic/utils.js
|
|
58
103
|
var utils = __webpack_require__("../../libs/coin-modules/coin-stellar/lib-es/logic/utils.js");
|
|
59
104
|
;// CONCATENATED MODULE: ../../libs/coin-modules/coin-stellar/lib-es/logic/validateAddress.js
|
|
@@ -73,7 +118,6 @@ var network = __webpack_require__("../../libs/coin-modules/coin-stellar/lib-es/n
|
|
|
73
118
|
|
|
74
119
|
|
|
75
120
|
|
|
76
|
-
|
|
77
121
|
function createApi(config) {
|
|
78
122
|
lib_es_config/* ["default"].setCoinConfig */.A.setCoinConfig(()=>({
|
|
79
123
|
...config,
|
|
@@ -81,6 +125,7 @@ function createApi(config) {
|
|
|
81
125
|
type: "active"
|
|
82
126
|
}
|
|
83
127
|
}));
|
|
128
|
+
(0,network/* .registerHorizonInterceptors */.DA)();
|
|
84
129
|
return {
|
|
85
130
|
broadcast: logic/* .broadcast */.mq,
|
|
86
131
|
combine: compose,
|
|
@@ -92,12 +137,8 @@ function createApi(config) {
|
|
|
92
137
|
getBalance: (address, options)=>(0,rejectBalanceOptions/* .rejectBalanceOptions */.k)(()=>(0,logic/* .getBalance */.r1)(address), options),
|
|
93
138
|
lastBlock: logic/* .lastBlock */.KH,
|
|
94
139
|
listOperations: api_operations,
|
|
95
|
-
getBlock
|
|
96
|
-
|
|
97
|
-
},
|
|
98
|
-
getBlockInfo (_height) {
|
|
99
|
-
throw new Error("getBlockInfo is not supported");
|
|
100
|
-
},
|
|
140
|
+
getBlock: logic/* .getBlock */.gd,
|
|
141
|
+
getBlockInfo: logic/* .getBlockInfo */.cV,
|
|
101
142
|
getStakes (_address, _cursor) {
|
|
102
143
|
throw new Error("getStakes is not supported");
|
|
103
144
|
},
|
|
@@ -165,44 +206,6 @@ async function api_operations(address, { minHeight }) {
|
|
|
165
206
|
next: next || undefined
|
|
166
207
|
};
|
|
167
208
|
}
|
|
168
|
-
async function operationsFromHeight(address, minHeight) {
|
|
169
|
-
const state = {
|
|
170
|
-
pageSize: 200,
|
|
171
|
-
heightLimit: minHeight,
|
|
172
|
-
continueIterations: true,
|
|
173
|
-
accumulator: []
|
|
174
|
-
};
|
|
175
|
-
// unfortunately, the stellar API does not support an option to filter by min height
|
|
176
|
-
// so the only strategy to get ALL operations is to iterate over all of them in descending order
|
|
177
|
-
// until we reach the desired minHeight
|
|
178
|
-
while(state.continueIterations){
|
|
179
|
-
const options = {
|
|
180
|
-
limit: state.pageSize,
|
|
181
|
-
order: "desc",
|
|
182
|
-
minHeight
|
|
183
|
-
};
|
|
184
|
-
if (state.apiNextCursor) {
|
|
185
|
-
options.cursor = state.apiNextCursor;
|
|
186
|
-
}
|
|
187
|
-
try {
|
|
188
|
-
const { items: operations, next: nextCursor } = await (0,logic/* .listOperations */.RT)(address, options);
|
|
189
|
-
state.accumulator.push(...operations);
|
|
190
|
-
state.apiNextCursor = nextCursor ?? "";
|
|
191
|
-
state.continueIterations = !!nextCursor;
|
|
192
|
-
} catch (e) {
|
|
193
|
-
if (e instanceof lib_es/* .LedgerAPI4xx */.YT && e.status === 429) {
|
|
194
|
-
(0,logs_lib_es/* .log */.Rm)("coin:stellar", "(api/operations): TooManyRequests, retrying in 4s");
|
|
195
|
-
await new Promise((resolve)=>setTimeout(resolve, 4000));
|
|
196
|
-
} else {
|
|
197
|
-
throw e;
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
return {
|
|
202
|
-
items: state.accumulator,
|
|
203
|
-
next: state.apiNextCursor ? state.apiNextCursor : ""
|
|
204
|
-
};
|
|
205
|
-
}
|
|
206
209
|
/**
|
|
207
210
|
* Deserialize a transaction envelope, also accepting transaction signature payload form.
|
|
208
211
|
*
|