@omnisat/lasereyes 0.0.30 → 0.0.32
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/dist/index.d.ts +9 -7
- package/dist/index.js +247 -2341
- package/dist/index.mjs +417 -2807
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -63,6 +63,7 @@ var __forAwait = (obj, it, method) => {
|
|
|
63
63
|
var XVERSE_NETWORK = "Mainnet";
|
|
64
64
|
var UNISAT_MAINNET = "livenet";
|
|
65
65
|
var UNISAT_TESTNET = "testnet";
|
|
66
|
+
var UNISAT_FRACTAL_TESTNET = "unknown";
|
|
66
67
|
var OP_WALLET_MAINNET = "livenet";
|
|
67
68
|
var OP_WALLET_TESTNET = "testnet";
|
|
68
69
|
var XVERSE_MAINNET = "Mainnet";
|
|
@@ -77,6 +78,7 @@ var LEATHER_TESTNET = "testnet";
|
|
|
77
78
|
var MAINNET = "mainnet";
|
|
78
79
|
var SIGNET = "signet";
|
|
79
80
|
var TESTNET = "testnet";
|
|
81
|
+
var FRACTAL_TESTNET = "fractal_testnet";
|
|
80
82
|
var REGTEST = "regtest";
|
|
81
83
|
var getXverseNetwork = (network) => {
|
|
82
84
|
if (network === MAINNET)
|
|
@@ -99,6 +101,8 @@ var getUnisatNetwork = (network) => {
|
|
|
99
101
|
return UNISAT_MAINNET;
|
|
100
102
|
if (network === TESTNET)
|
|
101
103
|
return UNISAT_TESTNET;
|
|
104
|
+
if (network === FRACTAL_TESTNET)
|
|
105
|
+
return UNISAT_FRACTAL_TESTNET;
|
|
102
106
|
return UNISAT_MAINNET;
|
|
103
107
|
};
|
|
104
108
|
var getWizzNetwork = (network) => {
|
|
@@ -113,6 +117,8 @@ var getNetworkForUnisat = (network) => {
|
|
|
113
117
|
return MAINNET;
|
|
114
118
|
if (network === UNISAT_TESTNET)
|
|
115
119
|
return TESTNET;
|
|
120
|
+
if (network === UNISAT_FRACTAL_TESTNET)
|
|
121
|
+
return FRACTAL_TESTNET;
|
|
116
122
|
return MAINNET;
|
|
117
123
|
};
|
|
118
124
|
var getNetworkForXverse = (network) => {
|
|
@@ -201,2467 +207,18 @@ var createConfig = (config) => {
|
|
|
201
207
|
|
|
202
208
|
// src/providers/LaserEyesProvider.tsx
|
|
203
209
|
import {
|
|
204
|
-
createContext
|
|
205
|
-
useCallback
|
|
206
|
-
useContext
|
|
207
|
-
useEffect
|
|
208
|
-
useRef
|
|
209
|
-
useState
|
|
210
|
-
} from "react";
|
|
211
|
-
import * as
|
|
212
|
-
|
|
213
|
-
// src/consts/settings.ts
|
|
214
|
-
var LOCAL_STORAGE_DEFAULT_WALLET = "defaultWallet";
|
|
215
|
-
var initialWalletContext = {
|
|
216
|
-
hasUnisat: false,
|
|
217
|
-
hasXverse: false,
|
|
218
|
-
hasOyl: false,
|
|
219
|
-
hasMagicEden: false,
|
|
220
|
-
hasOkx: false,
|
|
221
|
-
hasLeather: false,
|
|
222
|
-
hasPhantom: false,
|
|
223
|
-
hasWizz: false,
|
|
224
|
-
isInitializing: true,
|
|
225
|
-
connected: false,
|
|
226
|
-
isConnecting: false,
|
|
227
|
-
publicKey: "",
|
|
228
|
-
address: "",
|
|
229
|
-
paymentAddress: "",
|
|
230
|
-
paymentPublicKey: "",
|
|
231
|
-
balance: void 0,
|
|
232
|
-
network: MAINNET,
|
|
233
|
-
library: null,
|
|
234
|
-
provider: null,
|
|
235
|
-
accounts: [],
|
|
236
|
-
connect: (walletName) => __async(void 0, null, function* () {
|
|
237
|
-
}),
|
|
238
|
-
disconnect: () => {
|
|
239
|
-
},
|
|
240
|
-
requestAccounts: () => __async(void 0, null, function* () {
|
|
241
|
-
return [];
|
|
242
|
-
}),
|
|
243
|
-
getNetwork: () => __async(void 0, null, function* () {
|
|
244
|
-
return MAINNET;
|
|
245
|
-
}),
|
|
246
|
-
switchNetwork: (network) => __async(void 0, null, function* () {
|
|
247
|
-
}),
|
|
248
|
-
getPublicKey: () => __async(void 0, null, function* () {
|
|
249
|
-
return "";
|
|
250
|
-
}),
|
|
251
|
-
getBalance: () => __async(void 0, null, function* () {
|
|
252
|
-
return "";
|
|
253
|
-
}),
|
|
254
|
-
getInscriptions: () => __async(void 0, null, function* () {
|
|
255
|
-
return [];
|
|
256
|
-
}),
|
|
257
|
-
sendBTC: (to, amount) => __async(void 0, null, function* () {
|
|
258
|
-
return "";
|
|
259
|
-
}),
|
|
260
|
-
signMessage: (message) => __async(void 0, null, function* () {
|
|
261
|
-
return "";
|
|
262
|
-
}),
|
|
263
|
-
signPsbt: (tx) => __async(void 0, null, function* () {
|
|
264
|
-
return {
|
|
265
|
-
signedPsbtHex: "",
|
|
266
|
-
signedPsbtBase64: "",
|
|
267
|
-
txId: ""
|
|
268
|
-
};
|
|
269
|
-
}),
|
|
270
|
-
pushPsbt: (tx) => __async(void 0, null, function* () {
|
|
271
|
-
return "";
|
|
272
|
-
}),
|
|
273
|
-
inscribe: (content) => __async(void 0, null, function* () {
|
|
274
|
-
return "";
|
|
275
|
-
}),
|
|
276
|
-
isCreatingCommit: false,
|
|
277
|
-
isInscribing: false
|
|
278
|
-
};
|
|
279
|
-
|
|
280
|
-
// src/providers/LaserEyesProvider.tsx
|
|
281
|
-
import { useLocalStorage as useLocalStorage22 } from "usehooks-ts";
|
|
282
|
-
|
|
283
|
-
// src/lib/helpers.ts
|
|
284
|
-
import * as bitcoin from "bitcoinjs-lib";
|
|
285
|
-
import axios from "axios";
|
|
286
|
-
|
|
287
|
-
// src/lib/urls.ts
|
|
288
|
-
var MEMPOOL_SPACE_URL2 = "https://mempool.space";
|
|
289
|
-
var MEMPOOL_SPACE_TESTNET_URL2 = "https://mempool.space/testnet";
|
|
290
|
-
var getMempoolSpaceUrl2 = (network) => network === TESTNET ? MEMPOOL_SPACE_TESTNET_URL2 : MEMPOOL_SPACE_URL2;
|
|
291
|
-
|
|
292
|
-
// src/lib/helpers.ts
|
|
293
|
-
import * as ecc from "@bitcoinerlab/secp256k1";
|
|
294
|
-
bitcoin.initEccLib(ecc);
|
|
295
|
-
var getBitcoinNetwork = (network) => {
|
|
296
|
-
if (network === TESTNET) {
|
|
297
|
-
return bitcoin.networks.testnet;
|
|
298
|
-
} else if (network === SIGNET) {
|
|
299
|
-
return bitcoin.networks.testnet;
|
|
300
|
-
} else if (network === REGTEST) {
|
|
301
|
-
return bitcoin.networks.regtest;
|
|
302
|
-
} else {
|
|
303
|
-
return bitcoin.networks.bitcoin;
|
|
304
|
-
}
|
|
305
|
-
};
|
|
306
|
-
var findOrdinalsAddress = (addresses) => {
|
|
307
|
-
return addresses.find(
|
|
308
|
-
({ purpose }) => purpose === "ordinals"
|
|
309
|
-
);
|
|
310
|
-
};
|
|
311
|
-
var findPaymentAddress = (addresses) => {
|
|
312
|
-
return addresses.find(
|
|
313
|
-
({ purpose }) => purpose === "payment"
|
|
314
|
-
);
|
|
315
|
-
};
|
|
316
|
-
var getBTCBalance = (address3) => __async(void 0, null, function* () {
|
|
317
|
-
try {
|
|
318
|
-
return yield axios.get(`https://blockchain.info/q/addressbalance/${address3}`).then((response) => response.data);
|
|
319
|
-
} catch (error) {
|
|
320
|
-
console.error("Error fetching BTC balance:", error);
|
|
321
|
-
throw new Error("Failed to fetch BTC balance");
|
|
322
|
-
}
|
|
323
|
-
});
|
|
324
|
-
var satoshisToBTC = (satoshis) => {
|
|
325
|
-
if (Number.isNaN(satoshis) || satoshis === void 0)
|
|
326
|
-
return "--";
|
|
327
|
-
const btcValue = satoshis / 1e8;
|
|
328
|
-
return btcValue.toFixed(8);
|
|
329
|
-
};
|
|
330
|
-
var isBase64 = (str) => {
|
|
331
|
-
const base64Regex = /^(?:[A-Za-z0-9+\/]{4})*?(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/;
|
|
332
|
-
return base64Regex.test(str);
|
|
333
|
-
};
|
|
334
|
-
var isHex = (str) => {
|
|
335
|
-
const hexRegex = /^[a-fA-F0-9]+$/;
|
|
336
|
-
return hexRegex.test(str);
|
|
337
|
-
};
|
|
338
|
-
function estimateTxSize(taprootInputCount, nonTaprootInputCount, outputCount) {
|
|
339
|
-
const baseTxSize = 10;
|
|
340
|
-
const taprootInputSize = 57;
|
|
341
|
-
const nonTaprootInputSize = 41;
|
|
342
|
-
const outputSize = 34;
|
|
343
|
-
const totalInputSize = taprootInputCount * taprootInputSize + nonTaprootInputCount * nonTaprootInputSize;
|
|
344
|
-
const totalOutputSize = outputCount * outputSize;
|
|
345
|
-
return baseTxSize + totalInputSize + totalOutputSize;
|
|
346
|
-
}
|
|
347
|
-
function createSendBtcPsbt(address3, paymentAddress, recipientAddress, amount, paymentPublicKey, network, feeRate = 7) {
|
|
348
|
-
return __async(this, null, function* () {
|
|
349
|
-
const isTaprootOnly = address3 === paymentAddress;
|
|
350
|
-
const mempoolUrl = `${getMempoolSpaceUrl2(
|
|
351
|
-
network
|
|
352
|
-
)}/api/address/${paymentAddress}/utxo`;
|
|
353
|
-
const utxos = yield axios.get(mempoolUrl).then((response) => response.data);
|
|
354
|
-
const sortedUtxos = utxos.sort(
|
|
355
|
-
(a, b) => b.value - a.value
|
|
356
|
-
);
|
|
357
|
-
const psbt = new bitcoin.Psbt({ network: getBitcoinNetwork(network) });
|
|
358
|
-
const estTxSize = estimateTxSize(1, 0, 2);
|
|
359
|
-
const satsNeeded = Math.floor(estTxSize * feeRate) + amount;
|
|
360
|
-
let amountGathered = 0;
|
|
361
|
-
let counter = 0;
|
|
362
|
-
try {
|
|
363
|
-
for (var iter = __forAwait(sortedUtxos), more, temp, error; more = !(temp = yield iter.next()).done; more = false) {
|
|
364
|
-
let utxo = temp.value;
|
|
365
|
-
const { txid, vout, value } = utxo;
|
|
366
|
-
const script = bitcoin.address.toOutputScript(
|
|
367
|
-
paymentAddress,
|
|
368
|
-
getBitcoinNetwork(network)
|
|
369
|
-
);
|
|
370
|
-
psbt.addInput({
|
|
371
|
-
hash: txid,
|
|
372
|
-
index: vout,
|
|
373
|
-
witnessUtxo: {
|
|
374
|
-
script,
|
|
375
|
-
value
|
|
376
|
-
}
|
|
377
|
-
});
|
|
378
|
-
if (!isTaprootOnly) {
|
|
379
|
-
const redeemScript = getRedeemScript(paymentPublicKey, network);
|
|
380
|
-
psbt.updateInput(counter, { redeemScript });
|
|
381
|
-
}
|
|
382
|
-
amountGathered += value;
|
|
383
|
-
if (amountGathered >= satsNeeded) {
|
|
384
|
-
break;
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
} catch (temp) {
|
|
388
|
-
error = [temp];
|
|
389
|
-
} finally {
|
|
390
|
-
try {
|
|
391
|
-
more && (temp = iter.return) && (yield temp.call(iter));
|
|
392
|
-
} finally {
|
|
393
|
-
if (error)
|
|
394
|
-
throw error[0];
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
if (amountGathered < satsNeeded) {
|
|
398
|
-
throw new Error("Insufficient funds");
|
|
399
|
-
}
|
|
400
|
-
psbt.addOutput({
|
|
401
|
-
address: recipientAddress,
|
|
402
|
-
value: amount
|
|
403
|
-
});
|
|
404
|
-
if (amountGathered > satsNeeded) {
|
|
405
|
-
psbt.addOutput({
|
|
406
|
-
address: paymentAddress,
|
|
407
|
-
value: amountGathered - satsNeeded - amount
|
|
408
|
-
});
|
|
409
|
-
}
|
|
410
|
-
return {
|
|
411
|
-
psbtBase64: psbt.toBase64(),
|
|
412
|
-
psbtHex: psbt.toHex()
|
|
413
|
-
};
|
|
414
|
-
});
|
|
415
|
-
}
|
|
416
|
-
function getRedeemScript(paymentPublicKey, network) {
|
|
417
|
-
var _a;
|
|
418
|
-
const p2wpkh = bitcoin.payments.p2wpkh({
|
|
419
|
-
pubkey: Buffer.from(paymentPublicKey, "hex"),
|
|
420
|
-
network: getBitcoinNetwork(network)
|
|
421
|
-
});
|
|
422
|
-
const p2sh = bitcoin.payments.p2sh({
|
|
423
|
-
redeem: p2wpkh,
|
|
424
|
-
network: getBitcoinNetwork(network)
|
|
425
|
-
});
|
|
426
|
-
return (_a = p2sh == null ? void 0 : p2sh.redeem) == null ? void 0 : _a.output;
|
|
427
|
-
}
|
|
428
|
-
function delay(ms) {
|
|
429
|
-
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
// src/providers/LaserEyesProvider.tsx
|
|
433
|
-
import {
|
|
434
|
-
BitcoinNetworkType as BitcoinNetworkType22,
|
|
435
|
-
getAddress as getAddress22,
|
|
436
|
-
request as request22,
|
|
437
|
-
RpcErrorCode as RpcErrorCode22,
|
|
438
|
-
signMessage as signMessageSatsConnect22,
|
|
439
|
-
signTransaction as signTransaction22
|
|
440
|
-
} from "sats-connect";
|
|
441
|
-
import { fromOutputScript as fromOutputScript22 } from "bitcoinjs-lib/src/address";
|
|
442
|
-
import axios45 from "axios";
|
|
443
|
-
|
|
444
|
-
// dist/index.mjs
|
|
445
|
-
import {
|
|
446
|
-
createContext as createContext21,
|
|
447
|
-
useCallback as useCallback41,
|
|
448
|
-
useContext as useContext21,
|
|
449
|
-
useEffect as useEffect41,
|
|
450
|
-
useRef as useRef21,
|
|
451
|
-
useState as useState41
|
|
452
|
-
} from "react";
|
|
453
|
-
import * as bitcoin24 from "bitcoinjs-lib";
|
|
454
|
-
import { useLocalStorage as useLocalStorage21 } from "usehooks-ts";
|
|
455
|
-
import * as bitcoin2 from "bitcoinjs-lib";
|
|
456
|
-
import axios2 from "axios";
|
|
457
|
-
import * as ecc2 from "@bitcoinerlab/secp256k1";
|
|
458
|
-
import {
|
|
459
|
-
BitcoinNetworkType as BitcoinNetworkType21,
|
|
460
|
-
getAddress as getAddress21,
|
|
461
|
-
request as request21,
|
|
462
|
-
RpcErrorCode as RpcErrorCode21,
|
|
463
|
-
signMessage as signMessageSatsConnect21,
|
|
464
|
-
signTransaction as signTransaction21
|
|
465
|
-
} from "sats-connect";
|
|
466
|
-
import { fromOutputScript as fromOutputScript21 } from "bitcoinjs-lib/src/address";
|
|
467
|
-
import axios43 from "axios";
|
|
468
|
-
import {
|
|
469
|
-
createContext as createContext20,
|
|
470
|
-
useCallback as useCallback39,
|
|
471
|
-
useContext as useContext20,
|
|
472
|
-
useEffect as useEffect39,
|
|
473
|
-
useRef as useRef20,
|
|
474
|
-
useState as useState39
|
|
475
|
-
} from "react";
|
|
476
|
-
import * as bitcoin23 from "bitcoinjs-lib";
|
|
477
|
-
import { useLocalStorage as useLocalStorage20 } from "usehooks-ts";
|
|
478
|
-
import * as bitcoin22 from "bitcoinjs-lib";
|
|
479
|
-
import axios22 from "axios";
|
|
480
|
-
import * as ecc22 from "@bitcoinerlab/secp256k1";
|
|
481
|
-
import {
|
|
482
|
-
BitcoinNetworkType as BitcoinNetworkType20,
|
|
483
|
-
getAddress as getAddress20,
|
|
484
|
-
request as request20,
|
|
485
|
-
RpcErrorCode as RpcErrorCode20,
|
|
486
|
-
signMessage as signMessageSatsConnect20,
|
|
487
|
-
signTransaction as signTransaction20
|
|
488
|
-
} from "sats-connect";
|
|
489
|
-
import { fromOutputScript as fromOutputScript20 } from "bitcoinjs-lib/src/address";
|
|
490
|
-
import axios41 from "axios";
|
|
491
|
-
import {
|
|
492
|
-
createContext as createContext19,
|
|
493
|
-
useCallback as useCallback37,
|
|
494
|
-
useContext as useContext19,
|
|
495
|
-
useEffect as useEffect37,
|
|
496
|
-
useRef as useRef19,
|
|
497
|
-
useState as useState37
|
|
498
|
-
} from "react";
|
|
499
|
-
import * as bitcoin21 from "bitcoinjs-lib";
|
|
500
|
-
import { useLocalStorage as useLocalStorage19 } from "usehooks-ts";
|
|
501
|
-
import * as bitcoin222 from "bitcoinjs-lib";
|
|
502
|
-
import axios222 from "axios";
|
|
503
|
-
import * as ecc222 from "@bitcoinerlab/secp256k1";
|
|
504
|
-
import {
|
|
505
|
-
BitcoinNetworkType as BitcoinNetworkType19,
|
|
506
|
-
getAddress as getAddress19,
|
|
507
|
-
request as request19,
|
|
508
|
-
RpcErrorCode as RpcErrorCode19,
|
|
509
|
-
signMessage as signMessageSatsConnect19,
|
|
510
|
-
signTransaction as signTransaction19
|
|
511
|
-
} from "sats-connect";
|
|
512
|
-
import { fromOutputScript as fromOutputScript19 } from "bitcoinjs-lib/src/address";
|
|
513
|
-
import axios39 from "axios";
|
|
514
|
-
import {
|
|
515
|
-
createContext as createContext18,
|
|
516
|
-
useCallback as useCallback35,
|
|
517
|
-
useContext as useContext18,
|
|
518
|
-
useEffect as useEffect35,
|
|
519
|
-
useRef as useRef18,
|
|
520
|
-
useState as useState35
|
|
521
|
-
} from "react";
|
|
522
|
-
import * as bitcoin20 from "bitcoinjs-lib";
|
|
523
|
-
import { useLocalStorage as useLocalStorage18 } from "usehooks-ts";
|
|
524
|
-
import * as bitcoin2222 from "bitcoinjs-lib";
|
|
525
|
-
import axios2222 from "axios";
|
|
526
|
-
import * as ecc2222 from "@bitcoinerlab/secp256k1";
|
|
527
|
-
import {
|
|
528
|
-
BitcoinNetworkType as BitcoinNetworkType18,
|
|
529
|
-
getAddress as getAddress18,
|
|
530
|
-
request as request18,
|
|
531
|
-
RpcErrorCode as RpcErrorCode18,
|
|
532
|
-
signMessage as signMessageSatsConnect18,
|
|
533
|
-
signTransaction as signTransaction18
|
|
534
|
-
} from "sats-connect";
|
|
535
|
-
import { fromOutputScript as fromOutputScript18 } from "bitcoinjs-lib/src/address";
|
|
536
|
-
import axios37 from "axios";
|
|
537
|
-
import {
|
|
538
|
-
createContext as createContext17,
|
|
539
|
-
useCallback as useCallback33,
|
|
540
|
-
useContext as useContext17,
|
|
541
|
-
useEffect as useEffect33,
|
|
542
|
-
useRef as useRef17,
|
|
543
|
-
useState as useState33
|
|
544
|
-
} from "react";
|
|
545
|
-
import * as bitcoin19 from "bitcoinjs-lib";
|
|
546
|
-
import { useLocalStorage as useLocalStorage17 } from "usehooks-ts";
|
|
547
|
-
import * as bitcoin22222 from "bitcoinjs-lib";
|
|
548
|
-
import axios22222 from "axios";
|
|
549
|
-
import * as ecc22222 from "@bitcoinerlab/secp256k1";
|
|
550
|
-
import {
|
|
551
|
-
BitcoinNetworkType as BitcoinNetworkType17,
|
|
552
|
-
getAddress as getAddress17,
|
|
553
|
-
request as request17,
|
|
554
|
-
RpcErrorCode as RpcErrorCode17,
|
|
555
|
-
signMessage as signMessageSatsConnect17,
|
|
556
|
-
signTransaction as signTransaction17
|
|
557
|
-
} from "sats-connect";
|
|
558
|
-
import { fromOutputScript as fromOutputScript17 } from "bitcoinjs-lib/src/address";
|
|
559
|
-
import axios35 from "axios";
|
|
560
|
-
import {
|
|
561
|
-
createContext as createContext16,
|
|
562
|
-
useCallback as useCallback31,
|
|
563
|
-
useContext as useContext16,
|
|
564
|
-
useEffect as useEffect31,
|
|
565
|
-
useRef as useRef16,
|
|
566
|
-
useState as useState31
|
|
567
|
-
} from "react";
|
|
568
|
-
import * as bitcoin18 from "bitcoinjs-lib";
|
|
569
|
-
import { useLocalStorage as useLocalStorage16 } from "usehooks-ts";
|
|
570
|
-
import * as bitcoin222222 from "bitcoinjs-lib";
|
|
571
|
-
import axios222222 from "axios";
|
|
572
|
-
import * as ecc222222 from "@bitcoinerlab/secp256k1";
|
|
573
|
-
import {
|
|
574
|
-
BitcoinNetworkType as BitcoinNetworkType16,
|
|
575
|
-
getAddress as getAddress16,
|
|
576
|
-
request as request16,
|
|
577
|
-
RpcErrorCode as RpcErrorCode16,
|
|
578
|
-
signMessage as signMessageSatsConnect16,
|
|
579
|
-
signTransaction as signTransaction16
|
|
580
|
-
} from "sats-connect";
|
|
581
|
-
import { fromOutputScript as fromOutputScript16 } from "bitcoinjs-lib/src/address";
|
|
582
|
-
import axios33 from "axios";
|
|
583
|
-
import {
|
|
584
|
-
createContext as createContext15,
|
|
585
|
-
useCallback as useCallback29,
|
|
586
|
-
useContext as useContext15,
|
|
587
|
-
useEffect as useEffect29,
|
|
588
|
-
useRef as useRef15,
|
|
589
|
-
useState as useState29
|
|
590
|
-
} from "react";
|
|
591
|
-
import * as bitcoin17 from "bitcoinjs-lib";
|
|
592
|
-
import { useLocalStorage as useLocalStorage15 } from "usehooks-ts";
|
|
593
|
-
import * as bitcoin2222222 from "bitcoinjs-lib";
|
|
594
|
-
import axios2222222 from "axios";
|
|
595
|
-
import * as ecc2222222 from "@bitcoinerlab/secp256k1";
|
|
596
|
-
import {
|
|
597
|
-
BitcoinNetworkType as BitcoinNetworkType15,
|
|
598
|
-
getAddress as getAddress15,
|
|
599
|
-
request as request15,
|
|
600
|
-
RpcErrorCode as RpcErrorCode15,
|
|
601
|
-
signMessage as signMessageSatsConnect15,
|
|
602
|
-
signTransaction as signTransaction15
|
|
603
|
-
} from "sats-connect";
|
|
604
|
-
import { fromOutputScript as fromOutputScript15 } from "bitcoinjs-lib/src/address";
|
|
605
|
-
import axios31 from "axios";
|
|
606
|
-
import {
|
|
607
|
-
createContext as createContext14,
|
|
608
|
-
useCallback as useCallback27,
|
|
609
|
-
useContext as useContext14,
|
|
610
|
-
useEffect as useEffect27,
|
|
611
|
-
useRef as useRef14,
|
|
612
|
-
useState as useState27
|
|
613
|
-
} from "react";
|
|
614
|
-
import * as bitcoin16 from "bitcoinjs-lib";
|
|
615
|
-
import { useLocalStorage as useLocalStorage14 } from "usehooks-ts";
|
|
616
|
-
import * as bitcoin22222222 from "bitcoinjs-lib";
|
|
617
|
-
import axios22222222 from "axios";
|
|
618
|
-
import * as ecc22222222 from "@bitcoinerlab/secp256k1";
|
|
619
|
-
import {
|
|
620
|
-
BitcoinNetworkType as BitcoinNetworkType14,
|
|
621
|
-
getAddress as getAddress14,
|
|
622
|
-
request as request14,
|
|
623
|
-
RpcErrorCode as RpcErrorCode14,
|
|
624
|
-
signMessage as signMessageSatsConnect14,
|
|
625
|
-
signTransaction as signTransaction14
|
|
626
|
-
} from "sats-connect";
|
|
627
|
-
import { fromOutputScript as fromOutputScript14 } from "bitcoinjs-lib/src/address";
|
|
628
|
-
import axios29 from "axios";
|
|
629
|
-
import {
|
|
630
|
-
createContext as createContext13,
|
|
631
|
-
useCallback as useCallback25,
|
|
632
|
-
useContext as useContext13,
|
|
633
|
-
useEffect as useEffect25,
|
|
634
|
-
useRef as useRef13,
|
|
635
|
-
useState as useState25
|
|
636
|
-
} from "react";
|
|
637
|
-
import * as bitcoin15 from "bitcoinjs-lib";
|
|
638
|
-
import { useLocalStorage as useLocalStorage13 } from "usehooks-ts";
|
|
639
|
-
import * as bitcoin222222222 from "bitcoinjs-lib";
|
|
640
|
-
import axios222222222 from "axios";
|
|
641
|
-
import * as ecc222222222 from "@bitcoinerlab/secp256k1";
|
|
642
|
-
import {
|
|
643
|
-
BitcoinNetworkType as BitcoinNetworkType13,
|
|
644
|
-
getAddress as getAddress13,
|
|
645
|
-
request as request13,
|
|
646
|
-
RpcErrorCode as RpcErrorCode13,
|
|
647
|
-
signMessage as signMessageSatsConnect13,
|
|
648
|
-
signTransaction as signTransaction13
|
|
649
|
-
} from "sats-connect";
|
|
650
|
-
import { fromOutputScript as fromOutputScript13 } from "bitcoinjs-lib/src/address";
|
|
651
|
-
import axios27 from "axios";
|
|
652
|
-
import {
|
|
653
|
-
createContext as createContext12,
|
|
654
|
-
useCallback as useCallback23,
|
|
655
|
-
useContext as useContext12,
|
|
656
|
-
useEffect as useEffect23,
|
|
657
|
-
useRef as useRef12,
|
|
658
|
-
useState as useState23
|
|
659
|
-
} from "react";
|
|
660
|
-
import * as bitcoin14 from "bitcoinjs-lib";
|
|
661
|
-
import { useLocalStorage as useLocalStorage12 } from "usehooks-ts";
|
|
662
|
-
import * as bitcoin2222222222 from "bitcoinjs-lib";
|
|
663
|
-
import axios2222222222 from "axios";
|
|
664
|
-
import * as ecc2222222222 from "@bitcoinerlab/secp256k1";
|
|
665
|
-
import {
|
|
666
|
-
BitcoinNetworkType as BitcoinNetworkType12,
|
|
667
|
-
getAddress as getAddress12,
|
|
668
|
-
request as request12,
|
|
669
|
-
RpcErrorCode as RpcErrorCode12,
|
|
670
|
-
signMessage as signMessageSatsConnect12,
|
|
671
|
-
signTransaction as signTransaction12
|
|
672
|
-
} from "sats-connect";
|
|
673
|
-
import { fromOutputScript as fromOutputScript12 } from "bitcoinjs-lib/src/address";
|
|
674
|
-
import axios25 from "axios";
|
|
675
|
-
import {
|
|
676
|
-
createContext as createContext11,
|
|
677
|
-
useCallback as useCallback21,
|
|
678
|
-
useContext as useContext11,
|
|
679
|
-
useEffect as useEffect21,
|
|
680
|
-
useRef as useRef11,
|
|
681
|
-
useState as useState21
|
|
682
|
-
} from "react";
|
|
683
|
-
import * as bitcoin13 from "bitcoinjs-lib";
|
|
684
|
-
import { useLocalStorage as useLocalStorage11 } from "usehooks-ts";
|
|
685
|
-
import * as bitcoin22222222222 from "bitcoinjs-lib";
|
|
686
|
-
import axios22222222222 from "axios";
|
|
687
|
-
import * as ecc22222222222 from "@bitcoinerlab/secp256k1";
|
|
688
|
-
import {
|
|
689
|
-
BitcoinNetworkType as BitcoinNetworkType11,
|
|
690
|
-
getAddress as getAddress11,
|
|
691
|
-
request as request11,
|
|
692
|
-
RpcErrorCode as RpcErrorCode11,
|
|
693
|
-
signMessage as signMessageSatsConnect11,
|
|
694
|
-
signTransaction as signTransaction11
|
|
695
|
-
} from "sats-connect";
|
|
696
|
-
import { fromOutputScript as fromOutputScript11 } from "bitcoinjs-lib/src/address";
|
|
697
|
-
import axios23 from "axios";
|
|
698
|
-
import {
|
|
699
|
-
createContext as createContext10,
|
|
700
|
-
useCallback as useCallback19,
|
|
701
|
-
useContext as useContext10,
|
|
702
|
-
useEffect as useEffect19,
|
|
703
|
-
useRef as useRef10,
|
|
704
|
-
useState as useState19
|
|
705
|
-
} from "react";
|
|
706
|
-
import * as bitcoin12 from "bitcoinjs-lib";
|
|
707
|
-
import { useLocalStorage as useLocalStorage10 } from "usehooks-ts";
|
|
708
|
-
import * as bitcoin222222222222 from "bitcoinjs-lib";
|
|
709
|
-
import axios222222222222 from "axios";
|
|
710
|
-
import * as ecc222222222222 from "@bitcoinerlab/secp256k1";
|
|
711
|
-
import {
|
|
712
|
-
BitcoinNetworkType as BitcoinNetworkType10,
|
|
713
|
-
getAddress as getAddress10,
|
|
714
|
-
request as request10,
|
|
715
|
-
RpcErrorCode as RpcErrorCode10,
|
|
716
|
-
signMessage as signMessageSatsConnect10,
|
|
717
|
-
signTransaction as signTransaction10
|
|
718
|
-
} from "sats-connect";
|
|
719
|
-
import { fromOutputScript as fromOutputScript10 } from "bitcoinjs-lib/src/address";
|
|
720
|
-
import axios20 from "axios";
|
|
721
|
-
import {
|
|
722
|
-
createContext as createContext9,
|
|
723
|
-
useCallback as useCallback17,
|
|
724
|
-
useContext as useContext9,
|
|
725
|
-
useEffect as useEffect17,
|
|
726
|
-
useRef as useRef9,
|
|
727
|
-
useState as useState17
|
|
728
|
-
} from "react";
|
|
729
|
-
import * as bitcoin11 from "bitcoinjs-lib";
|
|
730
|
-
import { useLocalStorage as useLocalStorage9 } from "usehooks-ts";
|
|
731
|
-
import * as bitcoin2222222222222 from "bitcoinjs-lib";
|
|
732
|
-
import axios2222222222222 from "axios";
|
|
733
|
-
import * as ecc2222222222222 from "@bitcoinerlab/secp256k1";
|
|
734
|
-
import {
|
|
735
|
-
BitcoinNetworkType as BitcoinNetworkType9,
|
|
736
|
-
getAddress as getAddress9,
|
|
737
|
-
request as request9,
|
|
738
|
-
RpcErrorCode as RpcErrorCode9,
|
|
739
|
-
signMessage as signMessageSatsConnect9,
|
|
740
|
-
signTransaction as signTransaction9
|
|
741
|
-
} from "sats-connect";
|
|
742
|
-
import { fromOutputScript as fromOutputScript9 } from "bitcoinjs-lib/src/address";
|
|
743
|
-
import axios18 from "axios";
|
|
744
|
-
import {
|
|
745
|
-
createContext as createContext8,
|
|
746
|
-
useCallback as useCallback15,
|
|
747
|
-
useContext as useContext8,
|
|
748
|
-
useEffect as useEffect15,
|
|
749
|
-
useRef as useRef8,
|
|
750
|
-
useState as useState15
|
|
751
|
-
} from "react";
|
|
752
|
-
import * as bitcoin10 from "bitcoinjs-lib";
|
|
753
|
-
import { useLocalStorage as useLocalStorage8 } from "usehooks-ts";
|
|
754
|
-
import * as bitcoin22222222222222 from "bitcoinjs-lib";
|
|
755
|
-
import axios22222222222222 from "axios";
|
|
756
|
-
import * as ecc22222222222222 from "@bitcoinerlab/secp256k1";
|
|
757
|
-
import {
|
|
758
|
-
BitcoinNetworkType as BitcoinNetworkType8,
|
|
759
|
-
getAddress as getAddress8,
|
|
760
|
-
request as request8,
|
|
761
|
-
RpcErrorCode as RpcErrorCode8,
|
|
762
|
-
signMessage as signMessageSatsConnect8,
|
|
763
|
-
signTransaction as signTransaction8
|
|
764
|
-
} from "sats-connect";
|
|
765
|
-
import { fromOutputScript as fromOutputScript8 } from "bitcoinjs-lib/src/address";
|
|
766
|
-
import axios16 from "axios";
|
|
767
|
-
import {
|
|
768
|
-
createContext as createContext7,
|
|
769
|
-
useCallback as useCallback13,
|
|
770
|
-
useContext as useContext7,
|
|
771
|
-
useEffect as useEffect13,
|
|
772
|
-
useRef as useRef7,
|
|
773
|
-
useState as useState13
|
|
774
|
-
} from "react";
|
|
775
|
-
import * as bitcoin9 from "bitcoinjs-lib";
|
|
776
|
-
import { useLocalStorage as useLocalStorage7 } from "usehooks-ts";
|
|
777
|
-
import * as bitcoin222222222222222 from "bitcoinjs-lib";
|
|
778
|
-
import axios222222222222222 from "axios";
|
|
779
|
-
import * as ecc222222222222222 from "@bitcoinerlab/secp256k1";
|
|
780
|
-
import {
|
|
781
|
-
BitcoinNetworkType as BitcoinNetworkType7,
|
|
782
|
-
getAddress as getAddress7,
|
|
783
|
-
request as request7,
|
|
784
|
-
RpcErrorCode as RpcErrorCode7,
|
|
785
|
-
signMessage as signMessageSatsConnect7,
|
|
786
|
-
signTransaction as signTransaction7
|
|
787
|
-
} from "sats-connect";
|
|
788
|
-
import { fromOutputScript as fromOutputScript7 } from "bitcoinjs-lib/src/address";
|
|
789
|
-
import axios14 from "axios";
|
|
790
|
-
import {
|
|
791
|
-
createContext as createContext6,
|
|
792
|
-
useCallback as useCallback11,
|
|
793
|
-
useContext as useContext6,
|
|
794
|
-
useEffect as useEffect11,
|
|
795
|
-
useRef as useRef6,
|
|
796
|
-
useState as useState11
|
|
797
|
-
} from "react";
|
|
798
|
-
import * as bitcoin8 from "bitcoinjs-lib";
|
|
799
|
-
import { useLocalStorage as useLocalStorage6 } from "usehooks-ts";
|
|
800
|
-
import * as bitcoin2222222222222222 from "bitcoinjs-lib";
|
|
801
|
-
import axios2222222222222222 from "axios";
|
|
802
|
-
import * as ecc2222222222222222 from "@bitcoinerlab/secp256k1";
|
|
803
|
-
import {
|
|
804
|
-
BitcoinNetworkType as BitcoinNetworkType6,
|
|
805
|
-
getAddress as getAddress6,
|
|
806
|
-
request as request6,
|
|
807
|
-
RpcErrorCode as RpcErrorCode6,
|
|
808
|
-
signMessage as signMessageSatsConnect6,
|
|
809
|
-
signTransaction as signTransaction6
|
|
810
|
-
} from "sats-connect";
|
|
811
|
-
import { fromOutputScript as fromOutputScript6 } from "bitcoinjs-lib/src/address";
|
|
812
|
-
import axios12 from "axios";
|
|
813
|
-
import {
|
|
814
|
-
createContext as createContext5,
|
|
815
|
-
useCallback as useCallback9,
|
|
816
|
-
useContext as useContext5,
|
|
817
|
-
useEffect as useEffect9,
|
|
818
|
-
useRef as useRef5,
|
|
819
|
-
useState as useState9
|
|
820
|
-
} from "react";
|
|
821
|
-
import * as bitcoin7 from "bitcoinjs-lib";
|
|
822
|
-
import { useLocalStorage as useLocalStorage5 } from "usehooks-ts";
|
|
823
|
-
import * as bitcoin22222222222222222 from "bitcoinjs-lib";
|
|
824
|
-
import axios22222222222222222 from "axios";
|
|
825
|
-
import * as ecc22222222222222222 from "@bitcoinerlab/secp256k1";
|
|
826
|
-
import {
|
|
827
|
-
BitcoinNetworkType as BitcoinNetworkType5,
|
|
828
|
-
getAddress as getAddress5,
|
|
829
|
-
request as request5,
|
|
830
|
-
RpcErrorCode as RpcErrorCode5,
|
|
831
|
-
signMessage as signMessageSatsConnect5,
|
|
832
|
-
signTransaction as signTransaction5
|
|
833
|
-
} from "sats-connect";
|
|
834
|
-
import { fromOutputScript as fromOutputScript5 } from "bitcoinjs-lib/src/address";
|
|
835
|
-
import axios10 from "axios";
|
|
836
|
-
import {
|
|
837
|
-
createContext as createContext4,
|
|
838
|
-
useCallback as useCallback7,
|
|
839
|
-
useContext as useContext4,
|
|
840
|
-
useEffect as useEffect7,
|
|
841
|
-
useRef as useRef4,
|
|
842
|
-
useState as useState7
|
|
843
|
-
} from "react";
|
|
844
|
-
import * as bitcoin6 from "bitcoinjs-lib";
|
|
845
|
-
import { useLocalStorage as useLocalStorage4 } from "usehooks-ts";
|
|
846
|
-
import * as bitcoin222222222222222222 from "bitcoinjs-lib";
|
|
847
|
-
import axios222222222222222222 from "axios";
|
|
848
|
-
import * as ecc222222222222222222 from "@bitcoinerlab/secp256k1";
|
|
849
|
-
import {
|
|
850
|
-
BitcoinNetworkType as BitcoinNetworkType4,
|
|
851
|
-
getAddress as getAddress4,
|
|
852
|
-
request as request4,
|
|
853
|
-
RpcErrorCode as RpcErrorCode4,
|
|
854
|
-
signMessage as signMessageSatsConnect4,
|
|
855
|
-
signTransaction as signTransaction4
|
|
856
|
-
} from "sats-connect";
|
|
857
|
-
import { fromOutputScript as fromOutputScript4 } from "bitcoinjs-lib/src/address";
|
|
858
|
-
import axios8 from "axios";
|
|
859
|
-
import {
|
|
860
|
-
createContext as createContext3,
|
|
861
|
-
useCallback as useCallback5,
|
|
862
|
-
useContext as useContext3,
|
|
863
|
-
useEffect as useEffect5,
|
|
864
|
-
useRef as useRef3,
|
|
865
|
-
useState as useState5
|
|
866
|
-
} from "react";
|
|
867
|
-
import * as bitcoin5 from "bitcoinjs-lib";
|
|
868
|
-
import { useLocalStorage as useLocalStorage3 } from "usehooks-ts";
|
|
869
|
-
import * as bitcoin2222222222222222222 from "bitcoinjs-lib";
|
|
870
|
-
import axios2222222222222222222 from "axios";
|
|
871
|
-
import * as ecc2222222222222222222 from "@bitcoinerlab/secp256k1";
|
|
872
|
-
import {
|
|
873
|
-
BitcoinNetworkType as BitcoinNetworkType3,
|
|
874
|
-
getAddress as getAddress3,
|
|
875
|
-
request as request3,
|
|
876
|
-
RpcErrorCode as RpcErrorCode3,
|
|
877
|
-
signMessage as signMessageSatsConnect3,
|
|
878
|
-
signTransaction as signTransaction3
|
|
879
|
-
} from "sats-connect";
|
|
880
|
-
import { fromOutputScript as fromOutputScript3 } from "bitcoinjs-lib/src/address";
|
|
881
|
-
import axios6 from "axios";
|
|
882
|
-
import {
|
|
883
|
-
createContext as createContext2,
|
|
884
|
-
useCallback as useCallback3,
|
|
885
|
-
useContext as useContext2,
|
|
886
|
-
useEffect as useEffect3,
|
|
887
|
-
useRef as useRef2,
|
|
888
|
-
useState as useState3
|
|
889
|
-
} from "react";
|
|
890
|
-
import * as bitcoin4 from "bitcoinjs-lib";
|
|
891
|
-
import { useLocalStorage as useLocalStorage2 } from "usehooks-ts";
|
|
892
|
-
import * as bitcoin22222222222222222222 from "bitcoinjs-lib";
|
|
893
|
-
import axios22222222222222222222 from "axios";
|
|
894
|
-
import * as ecc22222222222222222222 from "@bitcoinerlab/secp256k1";
|
|
895
|
-
import {
|
|
896
|
-
BitcoinNetworkType as BitcoinNetworkType2,
|
|
897
|
-
getAddress as getAddress2,
|
|
898
|
-
request as request2,
|
|
899
|
-
RpcErrorCode as RpcErrorCode2,
|
|
900
|
-
signMessage as signMessageSatsConnect2,
|
|
901
|
-
signTransaction as signTransaction2
|
|
902
|
-
} from "sats-connect";
|
|
903
|
-
import { fromOutputScript as fromOutputScript2 } from "bitcoinjs-lib/src/address";
|
|
904
|
-
import axios4 from "axios";
|
|
905
|
-
import {
|
|
906
|
-
createContext,
|
|
907
|
-
useCallback,
|
|
908
|
-
useContext,
|
|
909
|
-
useEffect,
|
|
910
|
-
useRef,
|
|
911
|
-
useState
|
|
912
|
-
} from "react";
|
|
913
|
-
import * as bitcoin222222222222222222222 from "bitcoinjs-lib";
|
|
914
|
-
import { useLocalStorage } from "usehooks-ts";
|
|
915
|
-
import * as bitcoin3 from "bitcoinjs-lib";
|
|
916
|
-
import axios222222222222222222222 from "axios";
|
|
917
|
-
import * as ecc222222222222222222222 from "@bitcoinerlab/secp256k1";
|
|
918
|
-
import {
|
|
919
|
-
BitcoinNetworkType,
|
|
920
|
-
getAddress,
|
|
921
|
-
request,
|
|
922
|
-
RpcErrorCode,
|
|
923
|
-
signMessage as signMessageSatsConnect,
|
|
924
|
-
signTransaction
|
|
925
|
-
} from "sats-connect";
|
|
926
|
-
import { fromOutputScript } from "bitcoinjs-lib/src/address";
|
|
927
|
-
import axios2222222222222222222222 from "axios";
|
|
928
|
-
import { jsx } from "react/jsx-runtime";
|
|
929
|
-
import { useCallback as useCallback2, useEffect as useEffect2, useState as useState2 } from "react";
|
|
930
|
-
import axios3 from "axios";
|
|
931
|
-
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
932
|
-
import { useCallback as useCallback4, useEffect as useEffect4, useState as useState4 } from "react";
|
|
933
|
-
import axios5 from "axios";
|
|
934
|
-
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
935
|
-
import { useCallback as useCallback6, useEffect as useEffect6, useState as useState6 } from "react";
|
|
936
|
-
import axios7 from "axios";
|
|
937
|
-
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
938
|
-
import { useCallback as useCallback8, useEffect as useEffect8, useState as useState8 } from "react";
|
|
939
|
-
import axios9 from "axios";
|
|
940
|
-
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
941
|
-
import { useCallback as useCallback10, useEffect as useEffect10, useState as useState10 } from "react";
|
|
942
|
-
import axios11 from "axios";
|
|
943
|
-
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
944
|
-
import { useCallback as useCallback12, useEffect as useEffect12, useState as useState12 } from "react";
|
|
945
|
-
import axios13 from "axios";
|
|
946
|
-
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
947
|
-
import { useCallback as useCallback14, useEffect as useEffect14, useState as useState14 } from "react";
|
|
948
|
-
import axios15 from "axios";
|
|
949
|
-
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
950
|
-
import { useCallback as useCallback16, useEffect as useEffect16, useState as useState16 } from "react";
|
|
951
|
-
import axios17 from "axios";
|
|
952
|
-
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
953
|
-
import { useCallback as useCallback18, useEffect as useEffect18, useState as useState18 } from "react";
|
|
954
|
-
import axios19 from "axios";
|
|
955
|
-
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
956
|
-
import { useCallback as useCallback20, useEffect as useEffect20, useState as useState20 } from "react";
|
|
957
|
-
import axios21 from "axios";
|
|
958
|
-
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
959
|
-
import { useCallback as useCallback22, useEffect as useEffect22, useState as useState22 } from "react";
|
|
960
|
-
import axios24 from "axios";
|
|
961
|
-
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
962
|
-
import { useCallback as useCallback24, useEffect as useEffect24, useState as useState24 } from "react";
|
|
963
|
-
import axios26 from "axios";
|
|
964
|
-
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
965
|
-
import { useCallback as useCallback26, useEffect as useEffect26, useState as useState26 } from "react";
|
|
966
|
-
import axios28 from "axios";
|
|
967
|
-
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
968
|
-
import { useCallback as useCallback28, useEffect as useEffect28, useState as useState28 } from "react";
|
|
969
|
-
import axios30 from "axios";
|
|
970
|
-
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
971
|
-
import { useCallback as useCallback30, useEffect as useEffect30, useState as useState30 } from "react";
|
|
972
|
-
import axios32 from "axios";
|
|
973
|
-
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
974
|
-
import { useCallback as useCallback32, useEffect as useEffect32, useState as useState32 } from "react";
|
|
975
|
-
import axios34 from "axios";
|
|
976
|
-
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
977
|
-
import { useCallback as useCallback34, useEffect as useEffect34, useState as useState34 } from "react";
|
|
978
|
-
import axios36 from "axios";
|
|
979
|
-
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
980
|
-
import { useCallback as useCallback36, useEffect as useEffect36, useState as useState36 } from "react";
|
|
981
|
-
import axios38 from "axios";
|
|
982
|
-
import { jsx as jsx19, jsxs } from "react/jsx-runtime";
|
|
983
|
-
import { jsx as jsx20, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
984
|
-
import { jsx as jsx21, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
985
|
-
import { jsx as jsx22, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
986
|
-
import { jsx as jsx23, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
987
|
-
import { jsx as jsx24, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
988
|
-
import { jsx as jsx25, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
989
|
-
import { jsx as jsx26, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
990
|
-
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
991
|
-
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
992
|
-
import { useCallback as useCallback38, useEffect as useEffect38, useState as useState38 } from "react";
|
|
993
|
-
import axios40 from "axios";
|
|
994
|
-
import { jsx as jsx29, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
995
|
-
import { jsx as jsx30, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
996
|
-
import { jsx as jsx31, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
997
|
-
import { jsx as jsx32, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
998
|
-
import { jsx as jsx33, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
999
|
-
import { jsx as jsx34, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1000
|
-
import { jsx as jsx35, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
1001
|
-
import { jsx as jsx36, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
1002
|
-
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
1003
|
-
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
1004
|
-
import { useCallback as useCallback40, useEffect as useEffect40, useState as useState40 } from "react";
|
|
1005
|
-
import axios42 from "axios";
|
|
1006
|
-
import { jsx as jsx39, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
1007
|
-
import { jsx as jsx40, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
1008
|
-
import { jsx as jsx41, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
1009
|
-
import { jsx as jsx42, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
1010
|
-
import { jsx as jsx43, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
1011
|
-
import { jsx as jsx44, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
1012
|
-
import { jsx as jsx45, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
1013
|
-
import { jsx as jsx46, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
1014
|
-
import { jsx as jsx47 } from "react/jsx-runtime";
|
|
1015
|
-
import { jsx as jsx48 } from "react/jsx-runtime";
|
|
1016
|
-
import { useCallback as useCallback42, useEffect as useEffect42, useState as useState42 } from "react";
|
|
1017
|
-
import axios44 from "axios";
|
|
1018
|
-
import { jsx as jsx49, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
1019
|
-
import { jsx as jsx50, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
1020
|
-
import { jsx as jsx51, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
1021
|
-
import { jsx as jsx52, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
1022
|
-
import { jsx as jsx53, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
1023
|
-
import { jsx as jsx54, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
1024
|
-
import { jsx as jsx55, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
1025
|
-
import { jsx as jsx56, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
1026
|
-
import { jsx as jsx57 } from "react/jsx-runtime";
|
|
1027
|
-
var __async2 = (__this, __arguments, generator) => {
|
|
1028
|
-
return new Promise((resolve, reject) => {
|
|
1029
|
-
var fulfilled = (value) => {
|
|
1030
|
-
try {
|
|
1031
|
-
step(generator.next(value));
|
|
1032
|
-
} catch (e) {
|
|
1033
|
-
reject(e);
|
|
1034
|
-
}
|
|
1035
|
-
};
|
|
1036
|
-
var rejected = (value) => {
|
|
1037
|
-
try {
|
|
1038
|
-
step(generator.throw(value));
|
|
1039
|
-
} catch (e) {
|
|
1040
|
-
reject(e);
|
|
1041
|
-
}
|
|
1042
|
-
};
|
|
1043
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
1044
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
1045
|
-
});
|
|
1046
|
-
};
|
|
1047
|
-
var MAINNET4 = "mainnet";
|
|
1048
|
-
var SIGNET3 = "signet";
|
|
1049
|
-
var TESTNET3 = "testnet";
|
|
1050
|
-
var initialWalletContext2 = {
|
|
1051
|
-
hasUnisat: false,
|
|
1052
|
-
hasXverse: false,
|
|
1053
|
-
hasOyl: false,
|
|
1054
|
-
hasMagicEden: false,
|
|
1055
|
-
hasOkx: false,
|
|
1056
|
-
hasLeather: false,
|
|
1057
|
-
hasPhantom: false,
|
|
1058
|
-
hasWizz: false,
|
|
1059
|
-
isInitializing: true,
|
|
1060
|
-
connected: false,
|
|
1061
|
-
isConnecting: false,
|
|
1062
|
-
publicKey: "",
|
|
1063
|
-
address: "",
|
|
1064
|
-
paymentAddress: "",
|
|
1065
|
-
paymentPublicKey: "",
|
|
1066
|
-
balance: void 0,
|
|
1067
|
-
network: MAINNET4,
|
|
1068
|
-
library: null,
|
|
1069
|
-
provider: null,
|
|
1070
|
-
accounts: [],
|
|
1071
|
-
connect: (walletName) => __async2(void 0, null, function* () {
|
|
1072
|
-
}),
|
|
1073
|
-
disconnect: () => {
|
|
1074
|
-
},
|
|
1075
|
-
requestAccounts: () => __async2(void 0, null, function* () {
|
|
1076
|
-
return [];
|
|
1077
|
-
}),
|
|
1078
|
-
getNetwork: () => __async2(void 0, null, function* () {
|
|
1079
|
-
return MAINNET4;
|
|
1080
|
-
}),
|
|
1081
|
-
switchNetwork: (network) => __async2(void 0, null, function* () {
|
|
1082
|
-
}),
|
|
1083
|
-
getPublicKey: () => __async2(void 0, null, function* () {
|
|
1084
|
-
return "";
|
|
1085
|
-
}),
|
|
1086
|
-
getBalance: () => __async2(void 0, null, function* () {
|
|
1087
|
-
return "";
|
|
1088
|
-
}),
|
|
1089
|
-
getInscriptions: () => __async2(void 0, null, function* () {
|
|
1090
|
-
return [];
|
|
1091
|
-
}),
|
|
1092
|
-
sendBTC: (to, amount) => __async2(void 0, null, function* () {
|
|
1093
|
-
return "";
|
|
1094
|
-
}),
|
|
1095
|
-
signMessage: (message) => __async2(void 0, null, function* () {
|
|
1096
|
-
return "";
|
|
1097
|
-
}),
|
|
1098
|
-
signPsbt: (tx) => __async2(void 0, null, function* () {
|
|
1099
|
-
return {
|
|
1100
|
-
signedPsbtHex: "",
|
|
1101
|
-
signedPsbtBase64: "",
|
|
1102
|
-
txId: ""
|
|
1103
|
-
};
|
|
1104
|
-
}),
|
|
1105
|
-
pushPsbt: (tx) => __async2(void 0, null, function* () {
|
|
1106
|
-
return "";
|
|
1107
|
-
}),
|
|
1108
|
-
inscribe: (content) => __async2(void 0, null, function* () {
|
|
1109
|
-
return "";
|
|
1110
|
-
}),
|
|
1111
|
-
isCreatingCommit: false,
|
|
1112
|
-
isInscribing: false
|
|
1113
|
-
};
|
|
1114
|
-
bitcoin2.initEccLib(ecc2);
|
|
1115
|
-
var __async22 = (__this, __arguments, generator) => {
|
|
1116
|
-
return new Promise((resolve, reject) => {
|
|
1117
|
-
var fulfilled = (value) => {
|
|
1118
|
-
try {
|
|
1119
|
-
step(generator.next(value));
|
|
1120
|
-
} catch (e) {
|
|
1121
|
-
reject(e);
|
|
1122
|
-
}
|
|
1123
|
-
};
|
|
1124
|
-
var rejected = (value) => {
|
|
1125
|
-
try {
|
|
1126
|
-
step(generator.throw(value));
|
|
1127
|
-
} catch (e) {
|
|
1128
|
-
reject(e);
|
|
1129
|
-
}
|
|
1130
|
-
};
|
|
1131
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
1132
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
1133
|
-
});
|
|
1134
|
-
};
|
|
1135
|
-
var MAINNET42 = "mainnet";
|
|
1136
|
-
var initialWalletContext22 = {
|
|
1137
|
-
hasUnisat: false,
|
|
1138
|
-
hasXverse: false,
|
|
1139
|
-
hasOyl: false,
|
|
1140
|
-
hasMagicEden: false,
|
|
1141
|
-
hasOkx: false,
|
|
1142
|
-
hasLeather: false,
|
|
1143
|
-
hasPhantom: false,
|
|
1144
|
-
hasWizz: false,
|
|
1145
|
-
isInitializing: true,
|
|
1146
|
-
connected: false,
|
|
1147
|
-
isConnecting: false,
|
|
1148
|
-
publicKey: "",
|
|
1149
|
-
address: "",
|
|
1150
|
-
paymentAddress: "",
|
|
1151
|
-
paymentPublicKey: "",
|
|
1152
|
-
balance: void 0,
|
|
1153
|
-
network: MAINNET42,
|
|
1154
|
-
library: null,
|
|
1155
|
-
provider: null,
|
|
1156
|
-
accounts: [],
|
|
1157
|
-
connect: (walletName) => __async22(void 0, null, function* () {
|
|
1158
|
-
}),
|
|
1159
|
-
disconnect: () => {
|
|
1160
|
-
},
|
|
1161
|
-
requestAccounts: () => __async22(void 0, null, function* () {
|
|
1162
|
-
return [];
|
|
1163
|
-
}),
|
|
1164
|
-
getNetwork: () => __async22(void 0, null, function* () {
|
|
1165
|
-
return MAINNET42;
|
|
1166
|
-
}),
|
|
1167
|
-
switchNetwork: (network) => __async22(void 0, null, function* () {
|
|
1168
|
-
}),
|
|
1169
|
-
getPublicKey: () => __async22(void 0, null, function* () {
|
|
1170
|
-
return "";
|
|
1171
|
-
}),
|
|
1172
|
-
getBalance: () => __async22(void 0, null, function* () {
|
|
1173
|
-
return "";
|
|
1174
|
-
}),
|
|
1175
|
-
getInscriptions: () => __async22(void 0, null, function* () {
|
|
1176
|
-
return [];
|
|
1177
|
-
}),
|
|
1178
|
-
sendBTC: (to, amount) => __async22(void 0, null, function* () {
|
|
1179
|
-
return "";
|
|
1180
|
-
}),
|
|
1181
|
-
signMessage: (message) => __async22(void 0, null, function* () {
|
|
1182
|
-
return "";
|
|
1183
|
-
}),
|
|
1184
|
-
signPsbt: (tx) => __async22(void 0, null, function* () {
|
|
1185
|
-
return {
|
|
1186
|
-
signedPsbtHex: "",
|
|
1187
|
-
signedPsbtBase64: "",
|
|
1188
|
-
txId: ""
|
|
1189
|
-
};
|
|
1190
|
-
}),
|
|
1191
|
-
pushPsbt: (tx) => __async22(void 0, null, function* () {
|
|
1192
|
-
return "";
|
|
1193
|
-
}),
|
|
1194
|
-
inscribe: (content) => __async22(void 0, null, function* () {
|
|
1195
|
-
return "";
|
|
1196
|
-
}),
|
|
1197
|
-
isCreatingCommit: false,
|
|
1198
|
-
isInscribing: false
|
|
1199
|
-
};
|
|
1200
|
-
bitcoin22.initEccLib(ecc22);
|
|
1201
|
-
var __async222 = (__this, __arguments, generator) => {
|
|
1202
|
-
return new Promise((resolve, reject) => {
|
|
1203
|
-
var fulfilled = (value) => {
|
|
1204
|
-
try {
|
|
1205
|
-
step(generator.next(value));
|
|
1206
|
-
} catch (e) {
|
|
1207
|
-
reject(e);
|
|
1208
|
-
}
|
|
1209
|
-
};
|
|
1210
|
-
var rejected = (value) => {
|
|
1211
|
-
try {
|
|
1212
|
-
step(generator.throw(value));
|
|
1213
|
-
} catch (e) {
|
|
1214
|
-
reject(e);
|
|
1215
|
-
}
|
|
1216
|
-
};
|
|
1217
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
1218
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
1219
|
-
});
|
|
1220
|
-
};
|
|
1221
|
-
var MAINNET422 = "mainnet";
|
|
1222
|
-
var initialWalletContext222 = {
|
|
1223
|
-
hasUnisat: false,
|
|
1224
|
-
hasXverse: false,
|
|
1225
|
-
hasOyl: false,
|
|
1226
|
-
hasMagicEden: false,
|
|
1227
|
-
hasOkx: false,
|
|
1228
|
-
hasLeather: false,
|
|
1229
|
-
hasPhantom: false,
|
|
1230
|
-
hasWizz: false,
|
|
1231
|
-
isInitializing: true,
|
|
1232
|
-
connected: false,
|
|
1233
|
-
isConnecting: false,
|
|
1234
|
-
publicKey: "",
|
|
1235
|
-
address: "",
|
|
1236
|
-
paymentAddress: "",
|
|
1237
|
-
paymentPublicKey: "",
|
|
1238
|
-
balance: void 0,
|
|
1239
|
-
network: MAINNET422,
|
|
1240
|
-
library: null,
|
|
1241
|
-
provider: null,
|
|
1242
|
-
accounts: [],
|
|
1243
|
-
connect: (walletName) => __async222(void 0, null, function* () {
|
|
1244
|
-
}),
|
|
1245
|
-
disconnect: () => {
|
|
1246
|
-
},
|
|
1247
|
-
requestAccounts: () => __async222(void 0, null, function* () {
|
|
1248
|
-
return [];
|
|
1249
|
-
}),
|
|
1250
|
-
getNetwork: () => __async222(void 0, null, function* () {
|
|
1251
|
-
return MAINNET422;
|
|
1252
|
-
}),
|
|
1253
|
-
switchNetwork: (network) => __async222(void 0, null, function* () {
|
|
1254
|
-
}),
|
|
1255
|
-
getPublicKey: () => __async222(void 0, null, function* () {
|
|
1256
|
-
return "";
|
|
1257
|
-
}),
|
|
1258
|
-
getBalance: () => __async222(void 0, null, function* () {
|
|
1259
|
-
return "";
|
|
1260
|
-
}),
|
|
1261
|
-
getInscriptions: () => __async222(void 0, null, function* () {
|
|
1262
|
-
return [];
|
|
1263
|
-
}),
|
|
1264
|
-
sendBTC: (to, amount) => __async222(void 0, null, function* () {
|
|
1265
|
-
return "";
|
|
1266
|
-
}),
|
|
1267
|
-
signMessage: (message) => __async222(void 0, null, function* () {
|
|
1268
|
-
return "";
|
|
1269
|
-
}),
|
|
1270
|
-
signPsbt: (tx) => __async222(void 0, null, function* () {
|
|
1271
|
-
return {
|
|
1272
|
-
signedPsbtHex: "",
|
|
1273
|
-
signedPsbtBase64: "",
|
|
1274
|
-
txId: ""
|
|
1275
|
-
};
|
|
1276
|
-
}),
|
|
1277
|
-
pushPsbt: (tx) => __async222(void 0, null, function* () {
|
|
1278
|
-
return "";
|
|
1279
|
-
}),
|
|
1280
|
-
inscribe: (content) => __async222(void 0, null, function* () {
|
|
1281
|
-
return "";
|
|
1282
|
-
}),
|
|
1283
|
-
isCreatingCommit: false,
|
|
1284
|
-
isInscribing: false
|
|
1285
|
-
};
|
|
1286
|
-
bitcoin222.initEccLib(ecc222);
|
|
1287
|
-
var __async2222 = (__this, __arguments, generator) => {
|
|
1288
|
-
return new Promise((resolve, reject) => {
|
|
1289
|
-
var fulfilled = (value) => {
|
|
1290
|
-
try {
|
|
1291
|
-
step(generator.next(value));
|
|
1292
|
-
} catch (e) {
|
|
1293
|
-
reject(e);
|
|
1294
|
-
}
|
|
1295
|
-
};
|
|
1296
|
-
var rejected = (value) => {
|
|
1297
|
-
try {
|
|
1298
|
-
step(generator.throw(value));
|
|
1299
|
-
} catch (e) {
|
|
1300
|
-
reject(e);
|
|
1301
|
-
}
|
|
1302
|
-
};
|
|
1303
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
1304
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
1305
|
-
});
|
|
1306
|
-
};
|
|
1307
|
-
var MAINNET4222 = "mainnet";
|
|
1308
|
-
var initialWalletContext2222 = {
|
|
1309
|
-
hasUnisat: false,
|
|
1310
|
-
hasXverse: false,
|
|
1311
|
-
hasOyl: false,
|
|
1312
|
-
hasMagicEden: false,
|
|
1313
|
-
hasOkx: false,
|
|
1314
|
-
hasLeather: false,
|
|
1315
|
-
hasPhantom: false,
|
|
1316
|
-
hasWizz: false,
|
|
1317
|
-
isInitializing: true,
|
|
1318
|
-
connected: false,
|
|
1319
|
-
isConnecting: false,
|
|
1320
|
-
publicKey: "",
|
|
1321
|
-
address: "",
|
|
1322
|
-
paymentAddress: "",
|
|
1323
|
-
paymentPublicKey: "",
|
|
1324
|
-
balance: void 0,
|
|
1325
|
-
network: MAINNET4222,
|
|
1326
|
-
library: null,
|
|
1327
|
-
provider: null,
|
|
1328
|
-
accounts: [],
|
|
1329
|
-
connect: (walletName) => __async2222(void 0, null, function* () {
|
|
1330
|
-
}),
|
|
1331
|
-
disconnect: () => {
|
|
1332
|
-
},
|
|
1333
|
-
requestAccounts: () => __async2222(void 0, null, function* () {
|
|
1334
|
-
return [];
|
|
1335
|
-
}),
|
|
1336
|
-
getNetwork: () => __async2222(void 0, null, function* () {
|
|
1337
|
-
return MAINNET4222;
|
|
1338
|
-
}),
|
|
1339
|
-
switchNetwork: (network) => __async2222(void 0, null, function* () {
|
|
1340
|
-
}),
|
|
1341
|
-
getPublicKey: () => __async2222(void 0, null, function* () {
|
|
1342
|
-
return "";
|
|
1343
|
-
}),
|
|
1344
|
-
getBalance: () => __async2222(void 0, null, function* () {
|
|
1345
|
-
return "";
|
|
1346
|
-
}),
|
|
1347
|
-
getInscriptions: () => __async2222(void 0, null, function* () {
|
|
1348
|
-
return [];
|
|
1349
|
-
}),
|
|
1350
|
-
sendBTC: (to, amount) => __async2222(void 0, null, function* () {
|
|
1351
|
-
return "";
|
|
1352
|
-
}),
|
|
1353
|
-
signMessage: (message) => __async2222(void 0, null, function* () {
|
|
1354
|
-
return "";
|
|
1355
|
-
}),
|
|
1356
|
-
signPsbt: (tx) => __async2222(void 0, null, function* () {
|
|
1357
|
-
return {
|
|
1358
|
-
signedPsbtHex: "",
|
|
1359
|
-
signedPsbtBase64: "",
|
|
1360
|
-
txId: ""
|
|
1361
|
-
};
|
|
1362
|
-
}),
|
|
1363
|
-
pushPsbt: (tx) => __async2222(void 0, null, function* () {
|
|
1364
|
-
return "";
|
|
1365
|
-
}),
|
|
1366
|
-
inscribe: (content) => __async2222(void 0, null, function* () {
|
|
1367
|
-
return "";
|
|
1368
|
-
}),
|
|
1369
|
-
isCreatingCommit: false,
|
|
1370
|
-
isInscribing: false
|
|
1371
|
-
};
|
|
1372
|
-
bitcoin2222.initEccLib(ecc2222);
|
|
1373
|
-
var __async22222 = (__this, __arguments, generator) => {
|
|
1374
|
-
return new Promise((resolve, reject) => {
|
|
1375
|
-
var fulfilled = (value) => {
|
|
1376
|
-
try {
|
|
1377
|
-
step(generator.next(value));
|
|
1378
|
-
} catch (e) {
|
|
1379
|
-
reject(e);
|
|
1380
|
-
}
|
|
1381
|
-
};
|
|
1382
|
-
var rejected = (value) => {
|
|
1383
|
-
try {
|
|
1384
|
-
step(generator.throw(value));
|
|
1385
|
-
} catch (e) {
|
|
1386
|
-
reject(e);
|
|
1387
|
-
}
|
|
1388
|
-
};
|
|
1389
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
1390
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
1391
|
-
});
|
|
1392
|
-
};
|
|
1393
|
-
var MAINNET42222 = "mainnet";
|
|
1394
|
-
var initialWalletContext22222 = {
|
|
1395
|
-
hasUnisat: false,
|
|
1396
|
-
hasXverse: false,
|
|
1397
|
-
hasOyl: false,
|
|
1398
|
-
hasMagicEden: false,
|
|
1399
|
-
hasOkx: false,
|
|
1400
|
-
hasLeather: false,
|
|
1401
|
-
hasPhantom: false,
|
|
1402
|
-
hasWizz: false,
|
|
1403
|
-
isInitializing: true,
|
|
1404
|
-
connected: false,
|
|
1405
|
-
isConnecting: false,
|
|
1406
|
-
publicKey: "",
|
|
1407
|
-
address: "",
|
|
1408
|
-
paymentAddress: "",
|
|
1409
|
-
paymentPublicKey: "",
|
|
1410
|
-
balance: void 0,
|
|
1411
|
-
network: MAINNET42222,
|
|
1412
|
-
library: null,
|
|
1413
|
-
provider: null,
|
|
1414
|
-
accounts: [],
|
|
1415
|
-
connect: (walletName) => __async22222(void 0, null, function* () {
|
|
1416
|
-
}),
|
|
1417
|
-
disconnect: () => {
|
|
1418
|
-
},
|
|
1419
|
-
requestAccounts: () => __async22222(void 0, null, function* () {
|
|
1420
|
-
return [];
|
|
1421
|
-
}),
|
|
1422
|
-
getNetwork: () => __async22222(void 0, null, function* () {
|
|
1423
|
-
return MAINNET42222;
|
|
1424
|
-
}),
|
|
1425
|
-
switchNetwork: (network) => __async22222(void 0, null, function* () {
|
|
1426
|
-
}),
|
|
1427
|
-
getPublicKey: () => __async22222(void 0, null, function* () {
|
|
1428
|
-
return "";
|
|
1429
|
-
}),
|
|
1430
|
-
getBalance: () => __async22222(void 0, null, function* () {
|
|
1431
|
-
return "";
|
|
1432
|
-
}),
|
|
1433
|
-
getInscriptions: () => __async22222(void 0, null, function* () {
|
|
1434
|
-
return [];
|
|
1435
|
-
}),
|
|
1436
|
-
sendBTC: (to, amount) => __async22222(void 0, null, function* () {
|
|
1437
|
-
return "";
|
|
1438
|
-
}),
|
|
1439
|
-
signMessage: (message) => __async22222(void 0, null, function* () {
|
|
1440
|
-
return "";
|
|
1441
|
-
}),
|
|
1442
|
-
signPsbt: (tx) => __async22222(void 0, null, function* () {
|
|
1443
|
-
return {
|
|
1444
|
-
signedPsbtHex: "",
|
|
1445
|
-
signedPsbtBase64: "",
|
|
1446
|
-
txId: ""
|
|
1447
|
-
};
|
|
1448
|
-
}),
|
|
1449
|
-
pushPsbt: (tx) => __async22222(void 0, null, function* () {
|
|
1450
|
-
return "";
|
|
1451
|
-
}),
|
|
1452
|
-
inscribe: (content) => __async22222(void 0, null, function* () {
|
|
1453
|
-
return "";
|
|
1454
|
-
}),
|
|
1455
|
-
isCreatingCommit: false,
|
|
1456
|
-
isInscribing: false
|
|
1457
|
-
};
|
|
1458
|
-
bitcoin22222.initEccLib(ecc22222);
|
|
1459
|
-
var __async222222 = (__this, __arguments, generator) => {
|
|
1460
|
-
return new Promise((resolve, reject) => {
|
|
1461
|
-
var fulfilled = (value) => {
|
|
1462
|
-
try {
|
|
1463
|
-
step(generator.next(value));
|
|
1464
|
-
} catch (e) {
|
|
1465
|
-
reject(e);
|
|
1466
|
-
}
|
|
1467
|
-
};
|
|
1468
|
-
var rejected = (value) => {
|
|
1469
|
-
try {
|
|
1470
|
-
step(generator.throw(value));
|
|
1471
|
-
} catch (e) {
|
|
1472
|
-
reject(e);
|
|
1473
|
-
}
|
|
1474
|
-
};
|
|
1475
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
1476
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
1477
|
-
});
|
|
1478
|
-
};
|
|
1479
|
-
var MAINNET422222 = "mainnet";
|
|
1480
|
-
var initialWalletContext222222 = {
|
|
1481
|
-
hasUnisat: false,
|
|
1482
|
-
hasXverse: false,
|
|
1483
|
-
hasOyl: false,
|
|
1484
|
-
hasMagicEden: false,
|
|
1485
|
-
hasOkx: false,
|
|
1486
|
-
hasLeather: false,
|
|
1487
|
-
hasPhantom: false,
|
|
1488
|
-
hasWizz: false,
|
|
1489
|
-
isInitializing: true,
|
|
1490
|
-
connected: false,
|
|
1491
|
-
isConnecting: false,
|
|
1492
|
-
publicKey: "",
|
|
1493
|
-
address: "",
|
|
1494
|
-
paymentAddress: "",
|
|
1495
|
-
paymentPublicKey: "",
|
|
1496
|
-
balance: void 0,
|
|
1497
|
-
network: MAINNET422222,
|
|
1498
|
-
library: null,
|
|
1499
|
-
provider: null,
|
|
1500
|
-
accounts: [],
|
|
1501
|
-
connect: (walletName) => __async222222(void 0, null, function* () {
|
|
1502
|
-
}),
|
|
1503
|
-
disconnect: () => {
|
|
1504
|
-
},
|
|
1505
|
-
requestAccounts: () => __async222222(void 0, null, function* () {
|
|
1506
|
-
return [];
|
|
1507
|
-
}),
|
|
1508
|
-
getNetwork: () => __async222222(void 0, null, function* () {
|
|
1509
|
-
return MAINNET422222;
|
|
1510
|
-
}),
|
|
1511
|
-
switchNetwork: (network) => __async222222(void 0, null, function* () {
|
|
1512
|
-
}),
|
|
1513
|
-
getPublicKey: () => __async222222(void 0, null, function* () {
|
|
1514
|
-
return "";
|
|
1515
|
-
}),
|
|
1516
|
-
getBalance: () => __async222222(void 0, null, function* () {
|
|
1517
|
-
return "";
|
|
1518
|
-
}),
|
|
1519
|
-
getInscriptions: () => __async222222(void 0, null, function* () {
|
|
1520
|
-
return [];
|
|
1521
|
-
}),
|
|
1522
|
-
sendBTC: (to, amount) => __async222222(void 0, null, function* () {
|
|
1523
|
-
return "";
|
|
1524
|
-
}),
|
|
1525
|
-
signMessage: (message) => __async222222(void 0, null, function* () {
|
|
1526
|
-
return "";
|
|
1527
|
-
}),
|
|
1528
|
-
signPsbt: (tx) => __async222222(void 0, null, function* () {
|
|
1529
|
-
return {
|
|
1530
|
-
signedPsbtHex: "",
|
|
1531
|
-
signedPsbtBase64: "",
|
|
1532
|
-
txId: ""
|
|
1533
|
-
};
|
|
1534
|
-
}),
|
|
1535
|
-
pushPsbt: (tx) => __async222222(void 0, null, function* () {
|
|
1536
|
-
return "";
|
|
1537
|
-
}),
|
|
1538
|
-
inscribe: (content) => __async222222(void 0, null, function* () {
|
|
1539
|
-
return "";
|
|
1540
|
-
}),
|
|
1541
|
-
isCreatingCommit: false,
|
|
1542
|
-
isInscribing: false
|
|
1543
|
-
};
|
|
1544
|
-
bitcoin222222.initEccLib(ecc222222);
|
|
1545
|
-
var __async2222222 = (__this, __arguments, generator) => {
|
|
1546
|
-
return new Promise((resolve, reject) => {
|
|
1547
|
-
var fulfilled = (value) => {
|
|
1548
|
-
try {
|
|
1549
|
-
step(generator.next(value));
|
|
1550
|
-
} catch (e) {
|
|
1551
|
-
reject(e);
|
|
1552
|
-
}
|
|
1553
|
-
};
|
|
1554
|
-
var rejected = (value) => {
|
|
1555
|
-
try {
|
|
1556
|
-
step(generator.throw(value));
|
|
1557
|
-
} catch (e) {
|
|
1558
|
-
reject(e);
|
|
1559
|
-
}
|
|
1560
|
-
};
|
|
1561
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
1562
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
1563
|
-
});
|
|
1564
|
-
};
|
|
1565
|
-
var MAINNET4222222 = "mainnet";
|
|
1566
|
-
var initialWalletContext2222222 = {
|
|
1567
|
-
hasUnisat: false,
|
|
1568
|
-
hasXverse: false,
|
|
1569
|
-
hasOyl: false,
|
|
1570
|
-
hasMagicEden: false,
|
|
1571
|
-
hasOkx: false,
|
|
1572
|
-
hasLeather: false,
|
|
1573
|
-
hasPhantom: false,
|
|
1574
|
-
hasWizz: false,
|
|
1575
|
-
isInitializing: true,
|
|
1576
|
-
connected: false,
|
|
1577
|
-
isConnecting: false,
|
|
1578
|
-
publicKey: "",
|
|
1579
|
-
address: "",
|
|
1580
|
-
paymentAddress: "",
|
|
1581
|
-
paymentPublicKey: "",
|
|
1582
|
-
balance: void 0,
|
|
1583
|
-
network: MAINNET4222222,
|
|
1584
|
-
library: null,
|
|
1585
|
-
provider: null,
|
|
1586
|
-
accounts: [],
|
|
1587
|
-
connect: (walletName) => __async2222222(void 0, null, function* () {
|
|
1588
|
-
}),
|
|
1589
|
-
disconnect: () => {
|
|
1590
|
-
},
|
|
1591
|
-
requestAccounts: () => __async2222222(void 0, null, function* () {
|
|
1592
|
-
return [];
|
|
1593
|
-
}),
|
|
1594
|
-
getNetwork: () => __async2222222(void 0, null, function* () {
|
|
1595
|
-
return MAINNET4222222;
|
|
1596
|
-
}),
|
|
1597
|
-
switchNetwork: (network) => __async2222222(void 0, null, function* () {
|
|
1598
|
-
}),
|
|
1599
|
-
getPublicKey: () => __async2222222(void 0, null, function* () {
|
|
1600
|
-
return "";
|
|
1601
|
-
}),
|
|
1602
|
-
getBalance: () => __async2222222(void 0, null, function* () {
|
|
1603
|
-
return "";
|
|
1604
|
-
}),
|
|
1605
|
-
getInscriptions: () => __async2222222(void 0, null, function* () {
|
|
1606
|
-
return [];
|
|
1607
|
-
}),
|
|
1608
|
-
sendBTC: (to, amount) => __async2222222(void 0, null, function* () {
|
|
1609
|
-
return "";
|
|
1610
|
-
}),
|
|
1611
|
-
signMessage: (message) => __async2222222(void 0, null, function* () {
|
|
1612
|
-
return "";
|
|
1613
|
-
}),
|
|
1614
|
-
signPsbt: (tx) => __async2222222(void 0, null, function* () {
|
|
1615
|
-
return {
|
|
1616
|
-
signedPsbtHex: "",
|
|
1617
|
-
signedPsbtBase64: "",
|
|
1618
|
-
txId: ""
|
|
1619
|
-
};
|
|
1620
|
-
}),
|
|
1621
|
-
pushPsbt: (tx) => __async2222222(void 0, null, function* () {
|
|
1622
|
-
return "";
|
|
1623
|
-
}),
|
|
1624
|
-
inscribe: (content) => __async2222222(void 0, null, function* () {
|
|
1625
|
-
return "";
|
|
1626
|
-
}),
|
|
1627
|
-
isCreatingCommit: false,
|
|
1628
|
-
isInscribing: false
|
|
1629
|
-
};
|
|
1630
|
-
bitcoin2222222.initEccLib(ecc2222222);
|
|
1631
|
-
var MAINNET42222222 = "mainnet";
|
|
1632
|
-
var initialWalletContext22222222 = {
|
|
1633
|
-
hasUnisat: false,
|
|
1634
|
-
hasXverse: false,
|
|
1635
|
-
hasOyl: false,
|
|
1636
|
-
hasMagicEden: false,
|
|
1637
|
-
hasOkx: false,
|
|
1638
|
-
hasLeather: false,
|
|
1639
|
-
hasPhantom: false,
|
|
1640
|
-
hasWizz: false,
|
|
1641
|
-
isInitializing: true,
|
|
1642
|
-
connected: false,
|
|
1643
|
-
isConnecting: false,
|
|
1644
|
-
publicKey: "",
|
|
1645
|
-
address: "",
|
|
1646
|
-
paymentAddress: "",
|
|
1647
|
-
paymentPublicKey: "",
|
|
1648
|
-
balance: void 0,
|
|
1649
|
-
network: MAINNET42222222,
|
|
1650
|
-
library: null,
|
|
1651
|
-
provider: null,
|
|
1652
|
-
accounts: [],
|
|
1653
|
-
connect: (walletName) => __async2222222(void 0, null, function* () {
|
|
1654
|
-
}),
|
|
1655
|
-
disconnect: () => {
|
|
1656
|
-
},
|
|
1657
|
-
requestAccounts: () => __async2222222(void 0, null, function* () {
|
|
1658
|
-
return [];
|
|
1659
|
-
}),
|
|
1660
|
-
getNetwork: () => __async2222222(void 0, null, function* () {
|
|
1661
|
-
return MAINNET42222222;
|
|
1662
|
-
}),
|
|
1663
|
-
switchNetwork: (network) => __async2222222(void 0, null, function* () {
|
|
1664
|
-
}),
|
|
1665
|
-
getPublicKey: () => __async2222222(void 0, null, function* () {
|
|
1666
|
-
return "";
|
|
1667
|
-
}),
|
|
1668
|
-
getBalance: () => __async2222222(void 0, null, function* () {
|
|
1669
|
-
return "";
|
|
1670
|
-
}),
|
|
1671
|
-
getInscriptions: () => __async2222222(void 0, null, function* () {
|
|
1672
|
-
return [];
|
|
1673
|
-
}),
|
|
1674
|
-
sendBTC: (to, amount) => __async2222222(void 0, null, function* () {
|
|
1675
|
-
return "";
|
|
1676
|
-
}),
|
|
1677
|
-
signMessage: (message) => __async2222222(void 0, null, function* () {
|
|
1678
|
-
return "";
|
|
1679
|
-
}),
|
|
1680
|
-
signPsbt: (tx) => __async2222222(void 0, null, function* () {
|
|
1681
|
-
return {
|
|
1682
|
-
signedPsbtHex: "",
|
|
1683
|
-
signedPsbtBase64: "",
|
|
1684
|
-
txId: ""
|
|
1685
|
-
};
|
|
1686
|
-
}),
|
|
1687
|
-
pushPsbt: (tx) => __async2222222(void 0, null, function* () {
|
|
1688
|
-
return "";
|
|
1689
|
-
}),
|
|
1690
|
-
inscribe: (content) => __async2222222(void 0, null, function* () {
|
|
1691
|
-
return "";
|
|
1692
|
-
}),
|
|
1693
|
-
isCreatingCommit: false,
|
|
1694
|
-
isInscribing: false
|
|
1695
|
-
};
|
|
1696
|
-
bitcoin22222222.initEccLib(ecc22222222);
|
|
1697
|
-
var __async22222222 = (__this, __arguments, generator) => {
|
|
1698
|
-
return new Promise((resolve, reject) => {
|
|
1699
|
-
var fulfilled = (value) => {
|
|
1700
|
-
try {
|
|
1701
|
-
step(generator.next(value));
|
|
1702
|
-
} catch (e) {
|
|
1703
|
-
reject(e);
|
|
1704
|
-
}
|
|
1705
|
-
};
|
|
1706
|
-
var rejected = (value) => {
|
|
1707
|
-
try {
|
|
1708
|
-
step(generator.throw(value));
|
|
1709
|
-
} catch (e) {
|
|
1710
|
-
reject(e);
|
|
1711
|
-
}
|
|
1712
|
-
};
|
|
1713
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
1714
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
1715
|
-
});
|
|
1716
|
-
};
|
|
1717
|
-
var MAINNET422222222 = "mainnet";
|
|
1718
|
-
var initialWalletContext222222222 = {
|
|
1719
|
-
hasUnisat: false,
|
|
1720
|
-
hasXverse: false,
|
|
1721
|
-
hasOyl: false,
|
|
1722
|
-
hasMagicEden: false,
|
|
1723
|
-
hasOkx: false,
|
|
1724
|
-
hasLeather: false,
|
|
1725
|
-
hasPhantom: false,
|
|
1726
|
-
hasWizz: false,
|
|
1727
|
-
isInitializing: true,
|
|
1728
|
-
connected: false,
|
|
1729
|
-
isConnecting: false,
|
|
1730
|
-
publicKey: "",
|
|
1731
|
-
address: "",
|
|
1732
|
-
paymentAddress: "",
|
|
1733
|
-
paymentPublicKey: "",
|
|
1734
|
-
balance: void 0,
|
|
1735
|
-
network: MAINNET422222222,
|
|
1736
|
-
library: null,
|
|
1737
|
-
provider: null,
|
|
1738
|
-
accounts: [],
|
|
1739
|
-
connect: (walletName) => __async22222222(void 0, null, function* () {
|
|
1740
|
-
}),
|
|
1741
|
-
disconnect: () => {
|
|
1742
|
-
},
|
|
1743
|
-
requestAccounts: () => __async22222222(void 0, null, function* () {
|
|
1744
|
-
return [];
|
|
1745
|
-
}),
|
|
1746
|
-
getNetwork: () => __async22222222(void 0, null, function* () {
|
|
1747
|
-
return MAINNET422222222;
|
|
1748
|
-
}),
|
|
1749
|
-
switchNetwork: (network) => __async22222222(void 0, null, function* () {
|
|
1750
|
-
}),
|
|
1751
|
-
getPublicKey: () => __async22222222(void 0, null, function* () {
|
|
1752
|
-
return "";
|
|
1753
|
-
}),
|
|
1754
|
-
getBalance: () => __async22222222(void 0, null, function* () {
|
|
1755
|
-
return "";
|
|
1756
|
-
}),
|
|
1757
|
-
getInscriptions: () => __async22222222(void 0, null, function* () {
|
|
1758
|
-
return [];
|
|
1759
|
-
}),
|
|
1760
|
-
sendBTC: (to, amount) => __async22222222(void 0, null, function* () {
|
|
1761
|
-
return "";
|
|
1762
|
-
}),
|
|
1763
|
-
signMessage: (message) => __async22222222(void 0, null, function* () {
|
|
1764
|
-
return "";
|
|
1765
|
-
}),
|
|
1766
|
-
signPsbt: (tx) => __async22222222(void 0, null, function* () {
|
|
1767
|
-
return {
|
|
1768
|
-
signedPsbtHex: "",
|
|
1769
|
-
signedPsbtBase64: "",
|
|
1770
|
-
txId: ""
|
|
1771
|
-
};
|
|
1772
|
-
}),
|
|
1773
|
-
pushPsbt: (tx) => __async22222222(void 0, null, function* () {
|
|
1774
|
-
return "";
|
|
1775
|
-
}),
|
|
1776
|
-
inscribe: (content) => __async22222222(void 0, null, function* () {
|
|
1777
|
-
return "";
|
|
1778
|
-
}),
|
|
1779
|
-
isCreatingCommit: false,
|
|
1780
|
-
isInscribing: false
|
|
1781
|
-
};
|
|
1782
|
-
bitcoin222222222.initEccLib(ecc222222222);
|
|
1783
|
-
var __async222222222 = (__this, __arguments, generator) => {
|
|
1784
|
-
return new Promise((resolve, reject) => {
|
|
1785
|
-
var fulfilled = (value) => {
|
|
1786
|
-
try {
|
|
1787
|
-
step(generator.next(value));
|
|
1788
|
-
} catch (e) {
|
|
1789
|
-
reject(e);
|
|
1790
|
-
}
|
|
1791
|
-
};
|
|
1792
|
-
var rejected = (value) => {
|
|
1793
|
-
try {
|
|
1794
|
-
step(generator.throw(value));
|
|
1795
|
-
} catch (e) {
|
|
1796
|
-
reject(e);
|
|
1797
|
-
}
|
|
1798
|
-
};
|
|
1799
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
1800
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
1801
|
-
});
|
|
1802
|
-
};
|
|
1803
|
-
var MAINNET4222222222 = "mainnet";
|
|
1804
|
-
var initialWalletContext2222222222 = {
|
|
1805
|
-
hasUnisat: false,
|
|
1806
|
-
hasXverse: false,
|
|
1807
|
-
hasOyl: false,
|
|
1808
|
-
hasMagicEden: false,
|
|
1809
|
-
hasOkx: false,
|
|
1810
|
-
hasLeather: false,
|
|
1811
|
-
hasPhantom: false,
|
|
1812
|
-
hasWizz: false,
|
|
1813
|
-
isInitializing: true,
|
|
1814
|
-
connected: false,
|
|
1815
|
-
isConnecting: false,
|
|
1816
|
-
publicKey: "",
|
|
1817
|
-
address: "",
|
|
1818
|
-
paymentAddress: "",
|
|
1819
|
-
paymentPublicKey: "",
|
|
1820
|
-
balance: void 0,
|
|
1821
|
-
network: MAINNET4222222222,
|
|
1822
|
-
library: null,
|
|
1823
|
-
provider: null,
|
|
1824
|
-
accounts: [],
|
|
1825
|
-
connect: (walletName) => __async222222222(void 0, null, function* () {
|
|
1826
|
-
}),
|
|
1827
|
-
disconnect: () => {
|
|
1828
|
-
},
|
|
1829
|
-
requestAccounts: () => __async222222222(void 0, null, function* () {
|
|
1830
|
-
return [];
|
|
1831
|
-
}),
|
|
1832
|
-
getNetwork: () => __async222222222(void 0, null, function* () {
|
|
1833
|
-
return MAINNET4222222222;
|
|
1834
|
-
}),
|
|
1835
|
-
switchNetwork: (network) => __async222222222(void 0, null, function* () {
|
|
1836
|
-
}),
|
|
1837
|
-
getPublicKey: () => __async222222222(void 0, null, function* () {
|
|
1838
|
-
return "";
|
|
1839
|
-
}),
|
|
1840
|
-
getBalance: () => __async222222222(void 0, null, function* () {
|
|
1841
|
-
return "";
|
|
1842
|
-
}),
|
|
1843
|
-
getInscriptions: () => __async222222222(void 0, null, function* () {
|
|
1844
|
-
return [];
|
|
1845
|
-
}),
|
|
1846
|
-
sendBTC: (to, amount) => __async222222222(void 0, null, function* () {
|
|
1847
|
-
return "";
|
|
1848
|
-
}),
|
|
1849
|
-
signMessage: (message) => __async222222222(void 0, null, function* () {
|
|
1850
|
-
return "";
|
|
1851
|
-
}),
|
|
1852
|
-
signPsbt: (tx) => __async222222222(void 0, null, function* () {
|
|
1853
|
-
return {
|
|
1854
|
-
signedPsbtHex: "",
|
|
1855
|
-
signedPsbtBase64: "",
|
|
1856
|
-
txId: ""
|
|
1857
|
-
};
|
|
1858
|
-
}),
|
|
1859
|
-
pushPsbt: (tx) => __async222222222(void 0, null, function* () {
|
|
1860
|
-
return "";
|
|
1861
|
-
}),
|
|
1862
|
-
inscribe: (content) => __async222222222(void 0, null, function* () {
|
|
1863
|
-
return "";
|
|
1864
|
-
}),
|
|
1865
|
-
isCreatingCommit: false,
|
|
1866
|
-
isInscribing: false
|
|
1867
|
-
};
|
|
1868
|
-
bitcoin2222222222.initEccLib(ecc2222222222);
|
|
1869
|
-
var __async2222222222 = (__this, __arguments, generator) => {
|
|
1870
|
-
return new Promise((resolve, reject) => {
|
|
1871
|
-
var fulfilled = (value) => {
|
|
1872
|
-
try {
|
|
1873
|
-
step(generator.next(value));
|
|
1874
|
-
} catch (e) {
|
|
1875
|
-
reject(e);
|
|
1876
|
-
}
|
|
1877
|
-
};
|
|
1878
|
-
var rejected = (value) => {
|
|
1879
|
-
try {
|
|
1880
|
-
step(generator.throw(value));
|
|
1881
|
-
} catch (e) {
|
|
1882
|
-
reject(e);
|
|
1883
|
-
}
|
|
1884
|
-
};
|
|
1885
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
1886
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
1887
|
-
});
|
|
1888
|
-
};
|
|
1889
|
-
var MAINNET42222222222 = "mainnet";
|
|
1890
|
-
var initialWalletContext22222222222 = {
|
|
1891
|
-
hasUnisat: false,
|
|
1892
|
-
hasXverse: false,
|
|
1893
|
-
hasOyl: false,
|
|
1894
|
-
hasMagicEden: false,
|
|
1895
|
-
hasOkx: false,
|
|
1896
|
-
hasLeather: false,
|
|
1897
|
-
hasPhantom: false,
|
|
1898
|
-
hasWizz: false,
|
|
1899
|
-
isInitializing: true,
|
|
1900
|
-
connected: false,
|
|
1901
|
-
isConnecting: false,
|
|
1902
|
-
publicKey: "",
|
|
1903
|
-
address: "",
|
|
1904
|
-
paymentAddress: "",
|
|
1905
|
-
paymentPublicKey: "",
|
|
1906
|
-
balance: void 0,
|
|
1907
|
-
network: MAINNET42222222222,
|
|
1908
|
-
library: null,
|
|
1909
|
-
provider: null,
|
|
1910
|
-
accounts: [],
|
|
1911
|
-
connect: (walletName) => __async2222222222(void 0, null, function* () {
|
|
1912
|
-
}),
|
|
1913
|
-
disconnect: () => {
|
|
1914
|
-
},
|
|
1915
|
-
requestAccounts: () => __async2222222222(void 0, null, function* () {
|
|
1916
|
-
return [];
|
|
1917
|
-
}),
|
|
1918
|
-
getNetwork: () => __async2222222222(void 0, null, function* () {
|
|
1919
|
-
return MAINNET42222222222;
|
|
1920
|
-
}),
|
|
1921
|
-
switchNetwork: (network) => __async2222222222(void 0, null, function* () {
|
|
1922
|
-
}),
|
|
1923
|
-
getPublicKey: () => __async2222222222(void 0, null, function* () {
|
|
1924
|
-
return "";
|
|
1925
|
-
}),
|
|
1926
|
-
getBalance: () => __async2222222222(void 0, null, function* () {
|
|
1927
|
-
return "";
|
|
1928
|
-
}),
|
|
1929
|
-
getInscriptions: () => __async2222222222(void 0, null, function* () {
|
|
1930
|
-
return [];
|
|
1931
|
-
}),
|
|
1932
|
-
sendBTC: (to, amount) => __async2222222222(void 0, null, function* () {
|
|
1933
|
-
return "";
|
|
1934
|
-
}),
|
|
1935
|
-
signMessage: (message) => __async2222222222(void 0, null, function* () {
|
|
1936
|
-
return "";
|
|
1937
|
-
}),
|
|
1938
|
-
signPsbt: (tx) => __async2222222222(void 0, null, function* () {
|
|
1939
|
-
return {
|
|
1940
|
-
signedPsbtHex: "",
|
|
1941
|
-
signedPsbtBase64: "",
|
|
1942
|
-
txId: ""
|
|
1943
|
-
};
|
|
1944
|
-
}),
|
|
1945
|
-
pushPsbt: (tx) => __async2222222222(void 0, null, function* () {
|
|
1946
|
-
return "";
|
|
1947
|
-
}),
|
|
1948
|
-
inscribe: (content) => __async2222222222(void 0, null, function* () {
|
|
1949
|
-
return "";
|
|
1950
|
-
}),
|
|
1951
|
-
isCreatingCommit: false,
|
|
1952
|
-
isInscribing: false
|
|
1953
|
-
};
|
|
1954
|
-
bitcoin22222222222.initEccLib(ecc22222222222);
|
|
1955
|
-
var __async22222222222 = (__this, __arguments, generator) => {
|
|
1956
|
-
return new Promise((resolve, reject) => {
|
|
1957
|
-
var fulfilled = (value) => {
|
|
1958
|
-
try {
|
|
1959
|
-
step(generator.next(value));
|
|
1960
|
-
} catch (e) {
|
|
1961
|
-
reject(e);
|
|
1962
|
-
}
|
|
1963
|
-
};
|
|
1964
|
-
var rejected = (value) => {
|
|
1965
|
-
try {
|
|
1966
|
-
step(generator.throw(value));
|
|
1967
|
-
} catch (e) {
|
|
1968
|
-
reject(e);
|
|
1969
|
-
}
|
|
1970
|
-
};
|
|
1971
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
1972
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
1973
|
-
});
|
|
1974
|
-
};
|
|
1975
|
-
var MAINNET422222222222 = "mainnet";
|
|
1976
|
-
var initialWalletContext222222222222 = {
|
|
1977
|
-
hasUnisat: false,
|
|
1978
|
-
hasXverse: false,
|
|
1979
|
-
hasOyl: false,
|
|
1980
|
-
hasMagicEden: false,
|
|
1981
|
-
hasOkx: false,
|
|
1982
|
-
hasLeather: false,
|
|
1983
|
-
hasPhantom: false,
|
|
1984
|
-
hasWizz: false,
|
|
1985
|
-
isInitializing: true,
|
|
1986
|
-
connected: false,
|
|
1987
|
-
isConnecting: false,
|
|
1988
|
-
publicKey: "",
|
|
1989
|
-
address: "",
|
|
1990
|
-
paymentAddress: "",
|
|
1991
|
-
paymentPublicKey: "",
|
|
1992
|
-
balance: void 0,
|
|
1993
|
-
network: MAINNET422222222222,
|
|
1994
|
-
library: null,
|
|
1995
|
-
provider: null,
|
|
1996
|
-
accounts: [],
|
|
1997
|
-
connect: (walletName) => __async22222222222(void 0, null, function* () {
|
|
1998
|
-
}),
|
|
1999
|
-
disconnect: () => {
|
|
2000
|
-
},
|
|
2001
|
-
requestAccounts: () => __async22222222222(void 0, null, function* () {
|
|
2002
|
-
return [];
|
|
2003
|
-
}),
|
|
2004
|
-
getNetwork: () => __async22222222222(void 0, null, function* () {
|
|
2005
|
-
return MAINNET422222222222;
|
|
2006
|
-
}),
|
|
2007
|
-
switchNetwork: (network) => __async22222222222(void 0, null, function* () {
|
|
2008
|
-
}),
|
|
2009
|
-
getPublicKey: () => __async22222222222(void 0, null, function* () {
|
|
2010
|
-
return "";
|
|
2011
|
-
}),
|
|
2012
|
-
getBalance: () => __async22222222222(void 0, null, function* () {
|
|
2013
|
-
return "";
|
|
2014
|
-
}),
|
|
2015
|
-
getInscriptions: () => __async22222222222(void 0, null, function* () {
|
|
2016
|
-
return [];
|
|
2017
|
-
}),
|
|
2018
|
-
sendBTC: (to, amount) => __async22222222222(void 0, null, function* () {
|
|
2019
|
-
return "";
|
|
2020
|
-
}),
|
|
2021
|
-
signMessage: (message) => __async22222222222(void 0, null, function* () {
|
|
2022
|
-
return "";
|
|
2023
|
-
}),
|
|
2024
|
-
signPsbt: (tx) => __async22222222222(void 0, null, function* () {
|
|
2025
|
-
return {
|
|
2026
|
-
signedPsbtHex: "",
|
|
2027
|
-
signedPsbtBase64: "",
|
|
2028
|
-
txId: ""
|
|
2029
|
-
};
|
|
2030
|
-
}),
|
|
2031
|
-
pushPsbt: (tx) => __async22222222222(void 0, null, function* () {
|
|
2032
|
-
return "";
|
|
2033
|
-
}),
|
|
2034
|
-
inscribe: (content) => __async22222222222(void 0, null, function* () {
|
|
2035
|
-
return "";
|
|
2036
|
-
}),
|
|
2037
|
-
isCreatingCommit: false,
|
|
2038
|
-
isInscribing: false
|
|
2039
|
-
};
|
|
2040
|
-
bitcoin222222222222.initEccLib(ecc222222222222);
|
|
2041
|
-
var __async222222222222 = (__this, __arguments, generator) => {
|
|
2042
|
-
return new Promise((resolve, reject) => {
|
|
2043
|
-
var fulfilled = (value) => {
|
|
2044
|
-
try {
|
|
2045
|
-
step(generator.next(value));
|
|
2046
|
-
} catch (e) {
|
|
2047
|
-
reject(e);
|
|
2048
|
-
}
|
|
2049
|
-
};
|
|
2050
|
-
var rejected = (value) => {
|
|
2051
|
-
try {
|
|
2052
|
-
step(generator.throw(value));
|
|
2053
|
-
} catch (e) {
|
|
2054
|
-
reject(e);
|
|
2055
|
-
}
|
|
2056
|
-
};
|
|
2057
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
2058
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
2059
|
-
});
|
|
2060
|
-
};
|
|
2061
|
-
var MAINNET4222222222222 = "mainnet";
|
|
2062
|
-
var initialWalletContext2222222222222 = {
|
|
2063
|
-
hasUnisat: false,
|
|
2064
|
-
hasXverse: false,
|
|
2065
|
-
hasOyl: false,
|
|
2066
|
-
hasMagicEden: false,
|
|
2067
|
-
hasOkx: false,
|
|
2068
|
-
hasLeather: false,
|
|
2069
|
-
hasPhantom: false,
|
|
2070
|
-
hasWizz: false,
|
|
2071
|
-
isInitializing: true,
|
|
2072
|
-
connected: false,
|
|
2073
|
-
isConnecting: false,
|
|
2074
|
-
publicKey: "",
|
|
2075
|
-
address: "",
|
|
2076
|
-
paymentAddress: "",
|
|
2077
|
-
paymentPublicKey: "",
|
|
2078
|
-
balance: void 0,
|
|
2079
|
-
network: MAINNET4222222222222,
|
|
2080
|
-
library: null,
|
|
2081
|
-
provider: null,
|
|
2082
|
-
accounts: [],
|
|
2083
|
-
connect: (walletName) => __async222222222222(void 0, null, function* () {
|
|
2084
|
-
}),
|
|
2085
|
-
disconnect: () => {
|
|
2086
|
-
},
|
|
2087
|
-
requestAccounts: () => __async222222222222(void 0, null, function* () {
|
|
2088
|
-
return [];
|
|
2089
|
-
}),
|
|
2090
|
-
getNetwork: () => __async222222222222(void 0, null, function* () {
|
|
2091
|
-
return MAINNET4222222222222;
|
|
2092
|
-
}),
|
|
2093
|
-
switchNetwork: (network) => __async222222222222(void 0, null, function* () {
|
|
2094
|
-
}),
|
|
2095
|
-
getPublicKey: () => __async222222222222(void 0, null, function* () {
|
|
2096
|
-
return "";
|
|
2097
|
-
}),
|
|
2098
|
-
getBalance: () => __async222222222222(void 0, null, function* () {
|
|
2099
|
-
return "";
|
|
2100
|
-
}),
|
|
2101
|
-
getInscriptions: () => __async222222222222(void 0, null, function* () {
|
|
2102
|
-
return [];
|
|
2103
|
-
}),
|
|
2104
|
-
sendBTC: (to, amount) => __async222222222222(void 0, null, function* () {
|
|
2105
|
-
return "";
|
|
2106
|
-
}),
|
|
2107
|
-
signMessage: (message) => __async222222222222(void 0, null, function* () {
|
|
2108
|
-
return "";
|
|
2109
|
-
}),
|
|
2110
|
-
signPsbt: (tx) => __async222222222222(void 0, null, function* () {
|
|
2111
|
-
return {
|
|
2112
|
-
signedPsbtHex: "",
|
|
2113
|
-
signedPsbtBase64: "",
|
|
2114
|
-
txId: ""
|
|
2115
|
-
};
|
|
2116
|
-
}),
|
|
2117
|
-
pushPsbt: (tx) => __async222222222222(void 0, null, function* () {
|
|
2118
|
-
return "";
|
|
2119
|
-
}),
|
|
2120
|
-
inscribe: (content) => __async222222222222(void 0, null, function* () {
|
|
2121
|
-
return "";
|
|
2122
|
-
}),
|
|
2123
|
-
isCreatingCommit: false,
|
|
2124
|
-
isInscribing: false
|
|
2125
|
-
};
|
|
2126
|
-
bitcoin2222222222222.initEccLib(ecc2222222222222);
|
|
2127
|
-
var __async2222222222222 = (__this, __arguments, generator) => {
|
|
2128
|
-
return new Promise((resolve, reject) => {
|
|
2129
|
-
var fulfilled = (value) => {
|
|
2130
|
-
try {
|
|
2131
|
-
step(generator.next(value));
|
|
2132
|
-
} catch (e) {
|
|
2133
|
-
reject(e);
|
|
2134
|
-
}
|
|
2135
|
-
};
|
|
2136
|
-
var rejected = (value) => {
|
|
2137
|
-
try {
|
|
2138
|
-
step(generator.throw(value));
|
|
2139
|
-
} catch (e) {
|
|
2140
|
-
reject(e);
|
|
2141
|
-
}
|
|
2142
|
-
};
|
|
2143
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
2144
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
2145
|
-
});
|
|
2146
|
-
};
|
|
2147
|
-
var MAINNET42222222222222 = "mainnet";
|
|
2148
|
-
var initialWalletContext22222222222222 = {
|
|
2149
|
-
hasUnisat: false,
|
|
2150
|
-
hasXverse: false,
|
|
2151
|
-
hasOyl: false,
|
|
2152
|
-
hasMagicEden: false,
|
|
2153
|
-
hasOkx: false,
|
|
2154
|
-
hasLeather: false,
|
|
2155
|
-
hasPhantom: false,
|
|
2156
|
-
hasWizz: false,
|
|
2157
|
-
isInitializing: true,
|
|
2158
|
-
connected: false,
|
|
2159
|
-
isConnecting: false,
|
|
2160
|
-
publicKey: "",
|
|
2161
|
-
address: "",
|
|
2162
|
-
paymentAddress: "",
|
|
2163
|
-
paymentPublicKey: "",
|
|
2164
|
-
balance: void 0,
|
|
2165
|
-
network: MAINNET42222222222222,
|
|
2166
|
-
library: null,
|
|
2167
|
-
provider: null,
|
|
2168
|
-
accounts: [],
|
|
2169
|
-
connect: (walletName) => __async2222222222222(void 0, null, function* () {
|
|
2170
|
-
}),
|
|
2171
|
-
disconnect: () => {
|
|
2172
|
-
},
|
|
2173
|
-
requestAccounts: () => __async2222222222222(void 0, null, function* () {
|
|
2174
|
-
return [];
|
|
2175
|
-
}),
|
|
2176
|
-
getNetwork: () => __async2222222222222(void 0, null, function* () {
|
|
2177
|
-
return MAINNET42222222222222;
|
|
2178
|
-
}),
|
|
2179
|
-
switchNetwork: (network) => __async2222222222222(void 0, null, function* () {
|
|
2180
|
-
}),
|
|
2181
|
-
getPublicKey: () => __async2222222222222(void 0, null, function* () {
|
|
2182
|
-
return "";
|
|
2183
|
-
}),
|
|
2184
|
-
getBalance: () => __async2222222222222(void 0, null, function* () {
|
|
2185
|
-
return "";
|
|
2186
|
-
}),
|
|
2187
|
-
getInscriptions: () => __async2222222222222(void 0, null, function* () {
|
|
2188
|
-
return [];
|
|
2189
|
-
}),
|
|
2190
|
-
sendBTC: (to, amount) => __async2222222222222(void 0, null, function* () {
|
|
2191
|
-
return "";
|
|
2192
|
-
}),
|
|
2193
|
-
signMessage: (message) => __async2222222222222(void 0, null, function* () {
|
|
2194
|
-
return "";
|
|
2195
|
-
}),
|
|
2196
|
-
signPsbt: (tx) => __async2222222222222(void 0, null, function* () {
|
|
2197
|
-
return {
|
|
2198
|
-
signedPsbtHex: "",
|
|
2199
|
-
signedPsbtBase64: "",
|
|
2200
|
-
txId: ""
|
|
2201
|
-
};
|
|
2202
|
-
}),
|
|
2203
|
-
pushPsbt: (tx) => __async2222222222222(void 0, null, function* () {
|
|
2204
|
-
return "";
|
|
2205
|
-
}),
|
|
2206
|
-
inscribe: (content) => __async2222222222222(void 0, null, function* () {
|
|
2207
|
-
return "";
|
|
2208
|
-
}),
|
|
2209
|
-
isCreatingCommit: false,
|
|
2210
|
-
isInscribing: false
|
|
2211
|
-
};
|
|
2212
|
-
bitcoin22222222222222.initEccLib(ecc22222222222222);
|
|
2213
|
-
var __async22222222222222 = (__this, __arguments, generator) => {
|
|
2214
|
-
return new Promise((resolve, reject) => {
|
|
2215
|
-
var fulfilled = (value) => {
|
|
2216
|
-
try {
|
|
2217
|
-
step(generator.next(value));
|
|
2218
|
-
} catch (e) {
|
|
2219
|
-
reject(e);
|
|
2220
|
-
}
|
|
2221
|
-
};
|
|
2222
|
-
var rejected = (value) => {
|
|
2223
|
-
try {
|
|
2224
|
-
step(generator.throw(value));
|
|
2225
|
-
} catch (e) {
|
|
2226
|
-
reject(e);
|
|
2227
|
-
}
|
|
2228
|
-
};
|
|
2229
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
2230
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
2231
|
-
});
|
|
2232
|
-
};
|
|
2233
|
-
var MAINNET422222222222222 = "mainnet";
|
|
2234
|
-
var initialWalletContext222222222222222 = {
|
|
2235
|
-
hasUnisat: false,
|
|
2236
|
-
hasXverse: false,
|
|
2237
|
-
hasOyl: false,
|
|
2238
|
-
hasMagicEden: false,
|
|
2239
|
-
hasOkx: false,
|
|
2240
|
-
hasLeather: false,
|
|
2241
|
-
hasPhantom: false,
|
|
2242
|
-
hasWizz: false,
|
|
2243
|
-
isInitializing: true,
|
|
2244
|
-
connected: false,
|
|
2245
|
-
isConnecting: false,
|
|
2246
|
-
publicKey: "",
|
|
2247
|
-
address: "",
|
|
2248
|
-
paymentAddress: "",
|
|
2249
|
-
paymentPublicKey: "",
|
|
2250
|
-
balance: void 0,
|
|
2251
|
-
network: MAINNET422222222222222,
|
|
2252
|
-
library: null,
|
|
2253
|
-
provider: null,
|
|
2254
|
-
accounts: [],
|
|
2255
|
-
connect: (walletName) => __async22222222222222(void 0, null, function* () {
|
|
2256
|
-
}),
|
|
2257
|
-
disconnect: () => {
|
|
2258
|
-
},
|
|
2259
|
-
requestAccounts: () => __async22222222222222(void 0, null, function* () {
|
|
2260
|
-
return [];
|
|
2261
|
-
}),
|
|
2262
|
-
getNetwork: () => __async22222222222222(void 0, null, function* () {
|
|
2263
|
-
return MAINNET422222222222222;
|
|
2264
|
-
}),
|
|
2265
|
-
switchNetwork: (network) => __async22222222222222(void 0, null, function* () {
|
|
2266
|
-
}),
|
|
2267
|
-
getPublicKey: () => __async22222222222222(void 0, null, function* () {
|
|
2268
|
-
return "";
|
|
2269
|
-
}),
|
|
2270
|
-
getBalance: () => __async22222222222222(void 0, null, function* () {
|
|
2271
|
-
return "";
|
|
2272
|
-
}),
|
|
2273
|
-
getInscriptions: () => __async22222222222222(void 0, null, function* () {
|
|
2274
|
-
return [];
|
|
2275
|
-
}),
|
|
2276
|
-
sendBTC: (to, amount) => __async22222222222222(void 0, null, function* () {
|
|
2277
|
-
return "";
|
|
2278
|
-
}),
|
|
2279
|
-
signMessage: (message) => __async22222222222222(void 0, null, function* () {
|
|
2280
|
-
return "";
|
|
2281
|
-
}),
|
|
2282
|
-
signPsbt: (tx) => __async22222222222222(void 0, null, function* () {
|
|
2283
|
-
return {
|
|
2284
|
-
signedPsbtHex: "",
|
|
2285
|
-
signedPsbtBase64: "",
|
|
2286
|
-
txId: ""
|
|
2287
|
-
};
|
|
2288
|
-
}),
|
|
2289
|
-
pushPsbt: (tx) => __async22222222222222(void 0, null, function* () {
|
|
2290
|
-
return "";
|
|
2291
|
-
}),
|
|
2292
|
-
inscribe: (content) => __async22222222222222(void 0, null, function* () {
|
|
2293
|
-
return "";
|
|
2294
|
-
}),
|
|
2295
|
-
isCreatingCommit: false,
|
|
2296
|
-
isInscribing: false
|
|
2297
|
-
};
|
|
2298
|
-
bitcoin222222222222222.initEccLib(ecc222222222222222);
|
|
2299
|
-
var __async222222222222222 = (__this, __arguments, generator) => {
|
|
2300
|
-
return new Promise((resolve, reject) => {
|
|
2301
|
-
var fulfilled = (value) => {
|
|
2302
|
-
try {
|
|
2303
|
-
step(generator.next(value));
|
|
2304
|
-
} catch (e) {
|
|
2305
|
-
reject(e);
|
|
2306
|
-
}
|
|
2307
|
-
};
|
|
2308
|
-
var rejected = (value) => {
|
|
2309
|
-
try {
|
|
2310
|
-
step(generator.throw(value));
|
|
2311
|
-
} catch (e) {
|
|
2312
|
-
reject(e);
|
|
2313
|
-
}
|
|
2314
|
-
};
|
|
2315
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
2316
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
2317
|
-
});
|
|
2318
|
-
};
|
|
2319
|
-
var MAINNET4222222222222222 = "mainnet";
|
|
2320
|
-
var initialWalletContext2222222222222222 = {
|
|
2321
|
-
hasUnisat: false,
|
|
2322
|
-
hasXverse: false,
|
|
2323
|
-
hasOyl: false,
|
|
2324
|
-
hasMagicEden: false,
|
|
2325
|
-
hasOkx: false,
|
|
2326
|
-
hasLeather: false,
|
|
2327
|
-
hasPhantom: false,
|
|
2328
|
-
hasWizz: false,
|
|
2329
|
-
isInitializing: true,
|
|
2330
|
-
connected: false,
|
|
2331
|
-
isConnecting: false,
|
|
2332
|
-
publicKey: "",
|
|
2333
|
-
address: "",
|
|
2334
|
-
paymentAddress: "",
|
|
2335
|
-
paymentPublicKey: "",
|
|
2336
|
-
balance: void 0,
|
|
2337
|
-
network: MAINNET4222222222222222,
|
|
2338
|
-
library: null,
|
|
2339
|
-
provider: null,
|
|
2340
|
-
accounts: [],
|
|
2341
|
-
connect: (walletName) => __async222222222222222(void 0, null, function* () {
|
|
2342
|
-
}),
|
|
2343
|
-
disconnect: () => {
|
|
2344
|
-
},
|
|
2345
|
-
requestAccounts: () => __async222222222222222(void 0, null, function* () {
|
|
2346
|
-
return [];
|
|
2347
|
-
}),
|
|
2348
|
-
getNetwork: () => __async222222222222222(void 0, null, function* () {
|
|
2349
|
-
return MAINNET4222222222222222;
|
|
2350
|
-
}),
|
|
2351
|
-
switchNetwork: (network) => __async222222222222222(void 0, null, function* () {
|
|
2352
|
-
}),
|
|
2353
|
-
getPublicKey: () => __async222222222222222(void 0, null, function* () {
|
|
2354
|
-
return "";
|
|
2355
|
-
}),
|
|
2356
|
-
getBalance: () => __async222222222222222(void 0, null, function* () {
|
|
2357
|
-
return "";
|
|
2358
|
-
}),
|
|
2359
|
-
getInscriptions: () => __async222222222222222(void 0, null, function* () {
|
|
2360
|
-
return [];
|
|
2361
|
-
}),
|
|
2362
|
-
sendBTC: (to, amount) => __async222222222222222(void 0, null, function* () {
|
|
2363
|
-
return "";
|
|
2364
|
-
}),
|
|
2365
|
-
signMessage: (message) => __async222222222222222(void 0, null, function* () {
|
|
2366
|
-
return "";
|
|
2367
|
-
}),
|
|
2368
|
-
signPsbt: (tx) => __async222222222222222(void 0, null, function* () {
|
|
2369
|
-
return {
|
|
2370
|
-
signedPsbtHex: "",
|
|
2371
|
-
signedPsbtBase64: "",
|
|
2372
|
-
txId: ""
|
|
2373
|
-
};
|
|
2374
|
-
}),
|
|
2375
|
-
pushPsbt: (tx) => __async222222222222222(void 0, null, function* () {
|
|
2376
|
-
return "";
|
|
2377
|
-
}),
|
|
2378
|
-
inscribe: (content) => __async222222222222222(void 0, null, function* () {
|
|
2379
|
-
return "";
|
|
2380
|
-
}),
|
|
2381
|
-
isCreatingCommit: false,
|
|
2382
|
-
isInscribing: false
|
|
2383
|
-
};
|
|
2384
|
-
bitcoin2222222222222222.initEccLib(ecc2222222222222222);
|
|
2385
|
-
var __async2222222222222222 = (__this, __arguments, generator) => {
|
|
2386
|
-
return new Promise((resolve, reject) => {
|
|
2387
|
-
var fulfilled = (value) => {
|
|
2388
|
-
try {
|
|
2389
|
-
step(generator.next(value));
|
|
2390
|
-
} catch (e) {
|
|
2391
|
-
reject(e);
|
|
2392
|
-
}
|
|
2393
|
-
};
|
|
2394
|
-
var rejected = (value) => {
|
|
2395
|
-
try {
|
|
2396
|
-
step(generator.throw(value));
|
|
2397
|
-
} catch (e) {
|
|
2398
|
-
reject(e);
|
|
2399
|
-
}
|
|
2400
|
-
};
|
|
2401
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
2402
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
2403
|
-
});
|
|
2404
|
-
};
|
|
2405
|
-
var MAINNET42222222222222222 = "mainnet";
|
|
2406
|
-
var initialWalletContext22222222222222222 = {
|
|
2407
|
-
hasUnisat: false,
|
|
2408
|
-
hasXverse: false,
|
|
2409
|
-
hasOyl: false,
|
|
2410
|
-
hasMagicEden: false,
|
|
2411
|
-
hasOkx: false,
|
|
2412
|
-
hasLeather: false,
|
|
2413
|
-
hasPhantom: false,
|
|
2414
|
-
hasWizz: false,
|
|
2415
|
-
isInitializing: true,
|
|
2416
|
-
connected: false,
|
|
2417
|
-
isConnecting: false,
|
|
2418
|
-
publicKey: "",
|
|
2419
|
-
address: "",
|
|
2420
|
-
paymentAddress: "",
|
|
2421
|
-
paymentPublicKey: "",
|
|
2422
|
-
balance: void 0,
|
|
2423
|
-
network: MAINNET42222222222222222,
|
|
2424
|
-
library: null,
|
|
2425
|
-
provider: null,
|
|
2426
|
-
accounts: [],
|
|
2427
|
-
connect: (walletName) => __async2222222222222222(void 0, null, function* () {
|
|
2428
|
-
}),
|
|
2429
|
-
disconnect: () => {
|
|
2430
|
-
},
|
|
2431
|
-
requestAccounts: () => __async2222222222222222(void 0, null, function* () {
|
|
2432
|
-
return [];
|
|
2433
|
-
}),
|
|
2434
|
-
getNetwork: () => __async2222222222222222(void 0, null, function* () {
|
|
2435
|
-
return MAINNET42222222222222222;
|
|
2436
|
-
}),
|
|
2437
|
-
switchNetwork: (network) => __async2222222222222222(void 0, null, function* () {
|
|
2438
|
-
}),
|
|
2439
|
-
getPublicKey: () => __async2222222222222222(void 0, null, function* () {
|
|
2440
|
-
return "";
|
|
2441
|
-
}),
|
|
2442
|
-
getBalance: () => __async2222222222222222(void 0, null, function* () {
|
|
2443
|
-
return "";
|
|
2444
|
-
}),
|
|
2445
|
-
getInscriptions: () => __async2222222222222222(void 0, null, function* () {
|
|
2446
|
-
return [];
|
|
2447
|
-
}),
|
|
2448
|
-
sendBTC: (to, amount) => __async2222222222222222(void 0, null, function* () {
|
|
2449
|
-
return "";
|
|
2450
|
-
}),
|
|
2451
|
-
signMessage: (message) => __async2222222222222222(void 0, null, function* () {
|
|
2452
|
-
return "";
|
|
2453
|
-
}),
|
|
2454
|
-
signPsbt: (tx) => __async2222222222222222(void 0, null, function* () {
|
|
2455
|
-
return {
|
|
2456
|
-
signedPsbtHex: "",
|
|
2457
|
-
signedPsbtBase64: "",
|
|
2458
|
-
txId: ""
|
|
2459
|
-
};
|
|
2460
|
-
}),
|
|
2461
|
-
pushPsbt: (tx) => __async2222222222222222(void 0, null, function* () {
|
|
2462
|
-
return "";
|
|
2463
|
-
}),
|
|
2464
|
-
inscribe: (content) => __async2222222222222222(void 0, null, function* () {
|
|
2465
|
-
return "";
|
|
2466
|
-
}),
|
|
2467
|
-
isCreatingCommit: false,
|
|
2468
|
-
isInscribing: false
|
|
2469
|
-
};
|
|
2470
|
-
bitcoin22222222222222222.initEccLib(ecc22222222222222222);
|
|
2471
|
-
var __async22222222222222222 = (__this, __arguments, generator) => {
|
|
2472
|
-
return new Promise((resolve, reject) => {
|
|
2473
|
-
var fulfilled = (value) => {
|
|
2474
|
-
try {
|
|
2475
|
-
step(generator.next(value));
|
|
2476
|
-
} catch (e) {
|
|
2477
|
-
reject(e);
|
|
2478
|
-
}
|
|
2479
|
-
};
|
|
2480
|
-
var rejected = (value) => {
|
|
2481
|
-
try {
|
|
2482
|
-
step(generator.throw(value));
|
|
2483
|
-
} catch (e) {
|
|
2484
|
-
reject(e);
|
|
2485
|
-
}
|
|
2486
|
-
};
|
|
2487
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
2488
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
2489
|
-
});
|
|
2490
|
-
};
|
|
2491
|
-
var MAINNET422222222222222222 = "mainnet";
|
|
2492
|
-
var initialWalletContext222222222222222222 = {
|
|
2493
|
-
hasUnisat: false,
|
|
2494
|
-
hasXverse: false,
|
|
2495
|
-
hasOyl: false,
|
|
2496
|
-
hasMagicEden: false,
|
|
2497
|
-
hasOkx: false,
|
|
2498
|
-
hasLeather: false,
|
|
2499
|
-
hasPhantom: false,
|
|
2500
|
-
hasWizz: false,
|
|
2501
|
-
isInitializing: true,
|
|
2502
|
-
connected: false,
|
|
2503
|
-
isConnecting: false,
|
|
2504
|
-
publicKey: "",
|
|
2505
|
-
address: "",
|
|
2506
|
-
paymentAddress: "",
|
|
2507
|
-
paymentPublicKey: "",
|
|
2508
|
-
balance: void 0,
|
|
2509
|
-
network: MAINNET422222222222222222,
|
|
2510
|
-
library: null,
|
|
2511
|
-
provider: null,
|
|
2512
|
-
accounts: [],
|
|
2513
|
-
connect: (walletName) => __async22222222222222222(void 0, null, function* () {
|
|
2514
|
-
}),
|
|
2515
|
-
disconnect: () => {
|
|
2516
|
-
},
|
|
2517
|
-
requestAccounts: () => __async22222222222222222(void 0, null, function* () {
|
|
2518
|
-
return [];
|
|
2519
|
-
}),
|
|
2520
|
-
getNetwork: () => __async22222222222222222(void 0, null, function* () {
|
|
2521
|
-
return MAINNET422222222222222222;
|
|
2522
|
-
}),
|
|
2523
|
-
switchNetwork: (network) => __async22222222222222222(void 0, null, function* () {
|
|
2524
|
-
}),
|
|
2525
|
-
getPublicKey: () => __async22222222222222222(void 0, null, function* () {
|
|
2526
|
-
return "";
|
|
2527
|
-
}),
|
|
2528
|
-
getBalance: () => __async22222222222222222(void 0, null, function* () {
|
|
2529
|
-
return "";
|
|
2530
|
-
}),
|
|
2531
|
-
getInscriptions: () => __async22222222222222222(void 0, null, function* () {
|
|
2532
|
-
return [];
|
|
2533
|
-
}),
|
|
2534
|
-
sendBTC: (to, amount) => __async22222222222222222(void 0, null, function* () {
|
|
2535
|
-
return "";
|
|
2536
|
-
}),
|
|
2537
|
-
signMessage: (message) => __async22222222222222222(void 0, null, function* () {
|
|
2538
|
-
return "";
|
|
2539
|
-
}),
|
|
2540
|
-
signPsbt: (tx) => __async22222222222222222(void 0, null, function* () {
|
|
2541
|
-
return {
|
|
2542
|
-
signedPsbtHex: "",
|
|
2543
|
-
signedPsbtBase64: "",
|
|
2544
|
-
txId: ""
|
|
2545
|
-
};
|
|
2546
|
-
}),
|
|
2547
|
-
pushPsbt: (tx) => __async22222222222222222(void 0, null, function* () {
|
|
2548
|
-
return "";
|
|
2549
|
-
}),
|
|
2550
|
-
inscribe: (content) => __async22222222222222222(void 0, null, function* () {
|
|
2551
|
-
return "";
|
|
2552
|
-
}),
|
|
2553
|
-
isCreatingCommit: false,
|
|
2554
|
-
isInscribing: false
|
|
2555
|
-
};
|
|
2556
|
-
bitcoin222222222222222222.initEccLib(ecc222222222222222222);
|
|
2557
|
-
var __async222222222222222222 = (__this, __arguments, generator) => {
|
|
2558
|
-
return new Promise((resolve, reject) => {
|
|
2559
|
-
var fulfilled = (value) => {
|
|
2560
|
-
try {
|
|
2561
|
-
step(generator.next(value));
|
|
2562
|
-
} catch (e) {
|
|
2563
|
-
reject(e);
|
|
2564
|
-
}
|
|
2565
|
-
};
|
|
2566
|
-
var rejected = (value) => {
|
|
2567
|
-
try {
|
|
2568
|
-
step(generator.throw(value));
|
|
2569
|
-
} catch (e) {
|
|
2570
|
-
reject(e);
|
|
2571
|
-
}
|
|
2572
|
-
};
|
|
2573
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
2574
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
2575
|
-
});
|
|
2576
|
-
};
|
|
2577
|
-
var MAINNET4222222222222222222 = "mainnet";
|
|
2578
|
-
var initialWalletContext2222222222222222222 = {
|
|
2579
|
-
hasUnisat: false,
|
|
2580
|
-
hasXverse: false,
|
|
2581
|
-
hasOyl: false,
|
|
2582
|
-
hasMagicEden: false,
|
|
2583
|
-
hasOkx: false,
|
|
2584
|
-
hasLeather: false,
|
|
2585
|
-
hasPhantom: false,
|
|
2586
|
-
hasWizz: false,
|
|
2587
|
-
isInitializing: true,
|
|
2588
|
-
connected: false,
|
|
2589
|
-
isConnecting: false,
|
|
2590
|
-
publicKey: "",
|
|
2591
|
-
address: "",
|
|
2592
|
-
paymentAddress: "",
|
|
2593
|
-
paymentPublicKey: "",
|
|
2594
|
-
balance: void 0,
|
|
2595
|
-
network: MAINNET4222222222222222222,
|
|
2596
|
-
library: null,
|
|
2597
|
-
provider: null,
|
|
2598
|
-
accounts: [],
|
|
2599
|
-
connect: (walletName) => __async222222222222222222(void 0, null, function* () {
|
|
2600
|
-
}),
|
|
2601
|
-
disconnect: () => {
|
|
2602
|
-
},
|
|
2603
|
-
requestAccounts: () => __async222222222222222222(void 0, null, function* () {
|
|
2604
|
-
return [];
|
|
2605
|
-
}),
|
|
2606
|
-
getNetwork: () => __async222222222222222222(void 0, null, function* () {
|
|
2607
|
-
return MAINNET4222222222222222222;
|
|
2608
|
-
}),
|
|
2609
|
-
switchNetwork: (network) => __async222222222222222222(void 0, null, function* () {
|
|
2610
|
-
}),
|
|
2611
|
-
getPublicKey: () => __async222222222222222222(void 0, null, function* () {
|
|
2612
|
-
return "";
|
|
2613
|
-
}),
|
|
2614
|
-
getBalance: () => __async222222222222222222(void 0, null, function* () {
|
|
2615
|
-
return "";
|
|
2616
|
-
}),
|
|
2617
|
-
getInscriptions: () => __async222222222222222222(void 0, null, function* () {
|
|
2618
|
-
return [];
|
|
2619
|
-
}),
|
|
2620
|
-
sendBTC: (to, amount) => __async222222222222222222(void 0, null, function* () {
|
|
2621
|
-
return "";
|
|
2622
|
-
}),
|
|
2623
|
-
signMessage: (message) => __async222222222222222222(void 0, null, function* () {
|
|
2624
|
-
return "";
|
|
2625
|
-
}),
|
|
2626
|
-
signPsbt: (tx) => __async222222222222222222(void 0, null, function* () {
|
|
2627
|
-
return {
|
|
2628
|
-
signedPsbtHex: "",
|
|
2629
|
-
signedPsbtBase64: "",
|
|
2630
|
-
txId: ""
|
|
2631
|
-
};
|
|
2632
|
-
}),
|
|
2633
|
-
pushPsbt: (tx) => __async222222222222222222(void 0, null, function* () {
|
|
2634
|
-
return "";
|
|
2635
|
-
}),
|
|
2636
|
-
inscribe: (content) => __async222222222222222222(void 0, null, function* () {
|
|
2637
|
-
return "";
|
|
2638
|
-
}),
|
|
2639
|
-
isCreatingCommit: false,
|
|
2640
|
-
isInscribing: false
|
|
2641
|
-
};
|
|
2642
|
-
bitcoin2222222222222222222.initEccLib(ecc2222222222222222222);
|
|
2643
|
-
var __async2222222222222222222 = (__this, __arguments, generator) => {
|
|
2644
|
-
return new Promise((resolve, reject) => {
|
|
2645
|
-
var fulfilled = (value) => {
|
|
2646
|
-
try {
|
|
2647
|
-
step(generator.next(value));
|
|
2648
|
-
} catch (e) {
|
|
2649
|
-
reject(e);
|
|
2650
|
-
}
|
|
2651
|
-
};
|
|
2652
|
-
var rejected = (value) => {
|
|
2653
|
-
try {
|
|
2654
|
-
step(generator.throw(value));
|
|
2655
|
-
} catch (e) {
|
|
2656
|
-
reject(e);
|
|
2657
|
-
}
|
|
2658
|
-
};
|
|
2659
|
-
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
2660
|
-
step((generator = generator.apply(__this, __arguments)).next());
|
|
2661
|
-
});
|
|
2662
|
-
};
|
|
2663
|
-
var MAINNET42222222222222222222 = "mainnet";
|
|
2664
|
-
var initialWalletContext22222222222222222222 = {
|
|
210
|
+
createContext,
|
|
211
|
+
useCallback,
|
|
212
|
+
useContext,
|
|
213
|
+
useEffect,
|
|
214
|
+
useRef,
|
|
215
|
+
useState
|
|
216
|
+
} from "react";
|
|
217
|
+
import * as bitcoin2 from "bitcoinjs-lib";
|
|
218
|
+
|
|
219
|
+
// src/consts/settings.ts
|
|
220
|
+
var LOCAL_STORAGE_DEFAULT_WALLET = "defaultWallet";
|
|
221
|
+
var initialWalletContext = {
|
|
2665
222
|
hasUnisat: false,
|
|
2666
223
|
hasXverse: false,
|
|
2667
224
|
hasOyl: false,
|
|
@@ -2678,205 +235,253 @@ var initialWalletContext22222222222222222222 = {
|
|
|
2678
235
|
paymentAddress: "",
|
|
2679
236
|
paymentPublicKey: "",
|
|
2680
237
|
balance: void 0,
|
|
2681
|
-
network:
|
|
238
|
+
network: MAINNET,
|
|
2682
239
|
library: null,
|
|
2683
240
|
provider: null,
|
|
2684
241
|
accounts: [],
|
|
2685
|
-
connect: (walletName) =>
|
|
242
|
+
connect: (walletName) => __async(void 0, null, function* () {
|
|
2686
243
|
}),
|
|
2687
244
|
disconnect: () => {
|
|
2688
245
|
},
|
|
2689
|
-
requestAccounts: () =>
|
|
246
|
+
requestAccounts: () => __async(void 0, null, function* () {
|
|
2690
247
|
return [];
|
|
2691
248
|
}),
|
|
2692
|
-
getNetwork: () =>
|
|
2693
|
-
return
|
|
249
|
+
getNetwork: () => __async(void 0, null, function* () {
|
|
250
|
+
return MAINNET;
|
|
2694
251
|
}),
|
|
2695
|
-
switchNetwork: (network) =>
|
|
252
|
+
switchNetwork: (network) => __async(void 0, null, function* () {
|
|
2696
253
|
}),
|
|
2697
|
-
getPublicKey: () =>
|
|
254
|
+
getPublicKey: () => __async(void 0, null, function* () {
|
|
2698
255
|
return "";
|
|
2699
256
|
}),
|
|
2700
|
-
getBalance: () =>
|
|
257
|
+
getBalance: () => __async(void 0, null, function* () {
|
|
2701
258
|
return "";
|
|
2702
259
|
}),
|
|
2703
|
-
getInscriptions: () =>
|
|
260
|
+
getInscriptions: () => __async(void 0, null, function* () {
|
|
2704
261
|
return [];
|
|
2705
262
|
}),
|
|
2706
|
-
sendBTC: (to, amount) =>
|
|
263
|
+
sendBTC: (to, amount) => __async(void 0, null, function* () {
|
|
2707
264
|
return "";
|
|
2708
265
|
}),
|
|
2709
|
-
signMessage: (message) =>
|
|
266
|
+
signMessage: (message) => __async(void 0, null, function* () {
|
|
2710
267
|
return "";
|
|
2711
268
|
}),
|
|
2712
|
-
signPsbt: (tx) =>
|
|
269
|
+
signPsbt: (tx) => __async(void 0, null, function* () {
|
|
2713
270
|
return {
|
|
2714
271
|
signedPsbtHex: "",
|
|
2715
272
|
signedPsbtBase64: "",
|
|
2716
273
|
txId: ""
|
|
2717
274
|
};
|
|
2718
275
|
}),
|
|
2719
|
-
pushPsbt: (tx) =>
|
|
276
|
+
pushPsbt: (tx) => __async(void 0, null, function* () {
|
|
2720
277
|
return "";
|
|
2721
278
|
}),
|
|
2722
|
-
inscribe: (content) =>
|
|
279
|
+
inscribe: (content) => __async(void 0, null, function* () {
|
|
2723
280
|
return "";
|
|
2724
281
|
}),
|
|
2725
282
|
isCreatingCommit: false,
|
|
2726
283
|
isInscribing: false
|
|
2727
284
|
};
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
285
|
+
|
|
286
|
+
// src/providers/LaserEyesProvider.tsx
|
|
287
|
+
import { useLocalStorage } from "usehooks-ts";
|
|
288
|
+
|
|
289
|
+
// src/lib/helpers.ts
|
|
290
|
+
import * as bitcoin from "bitcoinjs-lib";
|
|
291
|
+
import axios from "axios";
|
|
292
|
+
|
|
293
|
+
// src/lib/urls.ts
|
|
294
|
+
var MEMPOOL_SPACE_URL2 = "https://mempool.space";
|
|
295
|
+
var MEMPOOL_SPACE_TESTNET_URL2 = "https://mempool.space/testnet";
|
|
296
|
+
var getMempoolSpaceUrl2 = (network) => network === TESTNET ? MEMPOOL_SPACE_TESTNET_URL2 : MEMPOOL_SPACE_URL2;
|
|
297
|
+
|
|
298
|
+
// src/lib/helpers.ts
|
|
299
|
+
import * as ecc from "@bitcoinerlab/secp256k1";
|
|
300
|
+
bitcoin.initEccLib(ecc);
|
|
301
|
+
var getBitcoinNetwork = (network) => {
|
|
302
|
+
if (network === TESTNET || network === FRACTAL_TESTNET) {
|
|
303
|
+
return bitcoin.networks.testnet;
|
|
304
|
+
} else if (network === SIGNET) {
|
|
305
|
+
return bitcoin.networks.testnet;
|
|
306
|
+
} else if (network === REGTEST) {
|
|
307
|
+
return bitcoin.networks.regtest;
|
|
308
|
+
} else {
|
|
309
|
+
return bitcoin.networks.bitcoin;
|
|
310
|
+
}
|
|
311
|
+
};
|
|
312
|
+
var findOrdinalsAddress = (addresses) => {
|
|
313
|
+
return addresses.find(
|
|
314
|
+
({ purpose }) => purpose === "ordinals"
|
|
315
|
+
);
|
|
316
|
+
};
|
|
317
|
+
var findPaymentAddress = (addresses) => {
|
|
318
|
+
return addresses.find(
|
|
319
|
+
({ purpose }) => purpose === "payment"
|
|
320
|
+
);
|
|
321
|
+
};
|
|
322
|
+
var getBTCBalance = (address2) => __async(void 0, null, function* () {
|
|
323
|
+
try {
|
|
324
|
+
return yield axios.get(`https://blockchain.info/q/addressbalance/${address2}`).then((response) => response.data);
|
|
325
|
+
} catch (error) {
|
|
326
|
+
console.error("Error fetching BTC balance:", error);
|
|
327
|
+
throw new Error("Failed to fetch BTC balance");
|
|
328
|
+
}
|
|
329
|
+
});
|
|
330
|
+
var satoshisToBTC = (satoshis) => {
|
|
331
|
+
if (Number.isNaN(satoshis) || satoshis === void 0)
|
|
332
|
+
return "--";
|
|
333
|
+
const btcValue = satoshis / 1e8;
|
|
334
|
+
return btcValue.toFixed(8);
|
|
335
|
+
};
|
|
336
|
+
var isBase64 = (str) => {
|
|
337
|
+
const base64Regex = /^(?:[A-Za-z0-9+\/]{4})*?(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/;
|
|
338
|
+
return base64Regex.test(str);
|
|
339
|
+
};
|
|
340
|
+
var isHex = (str) => {
|
|
341
|
+
const hexRegex = /^[a-fA-F0-9]+$/;
|
|
342
|
+
return hexRegex.test(str);
|
|
343
|
+
};
|
|
344
|
+
function estimateTxSize(taprootInputCount, nonTaprootInputCount, outputCount) {
|
|
345
|
+
const baseTxSize = 10;
|
|
346
|
+
const taprootInputSize = 57;
|
|
347
|
+
const nonTaprootInputSize = 41;
|
|
348
|
+
const outputSize = 34;
|
|
349
|
+
const totalInputSize = taprootInputCount * taprootInputSize + nonTaprootInputCount * nonTaprootInputSize;
|
|
350
|
+
const totalOutputSize = outputCount * outputSize;
|
|
351
|
+
return baseTxSize + totalInputSize + totalOutputSize;
|
|
352
|
+
}
|
|
353
|
+
function createSendBtcPsbt(address2, paymentAddress, recipientAddress, amount, paymentPublicKey, network, feeRate = 7) {
|
|
354
|
+
return __async(this, null, function* () {
|
|
355
|
+
const isTaprootOnly = address2 === paymentAddress;
|
|
356
|
+
const mempoolUrl = `${getMempoolSpaceUrl2(
|
|
357
|
+
network
|
|
358
|
+
)}/api/address/${paymentAddress}/utxo`;
|
|
359
|
+
const utxos = yield axios.get(mempoolUrl).then((response) => response.data);
|
|
360
|
+
const sortedUtxos = utxos.sort(
|
|
361
|
+
(a, b) => b.value - a.value
|
|
362
|
+
);
|
|
363
|
+
const psbt = new bitcoin.Psbt({ network: getBitcoinNetwork(network) });
|
|
364
|
+
const estTxSize = estimateTxSize(1, 0, 2);
|
|
365
|
+
const satsNeeded = Math.floor(estTxSize * feeRate) + amount;
|
|
366
|
+
let amountGathered = 0;
|
|
367
|
+
let counter = 0;
|
|
368
|
+
try {
|
|
369
|
+
for (var iter = __forAwait(sortedUtxos), more, temp, error; more = !(temp = yield iter.next()).done; more = false) {
|
|
370
|
+
let utxo = temp.value;
|
|
371
|
+
const { txid, vout, value } = utxo;
|
|
372
|
+
const script = bitcoin.address.toOutputScript(
|
|
373
|
+
paymentAddress,
|
|
374
|
+
getBitcoinNetwork(network)
|
|
375
|
+
);
|
|
376
|
+
psbt.addInput({
|
|
377
|
+
hash: txid,
|
|
378
|
+
index: vout,
|
|
379
|
+
witnessUtxo: {
|
|
380
|
+
script,
|
|
381
|
+
value
|
|
382
|
+
}
|
|
383
|
+
});
|
|
384
|
+
if (!isTaprootOnly) {
|
|
385
|
+
const redeemScript = getRedeemScript(paymentPublicKey, network);
|
|
386
|
+
psbt.updateInput(counter, { redeemScript });
|
|
387
|
+
}
|
|
388
|
+
amountGathered += value;
|
|
389
|
+
if (amountGathered >= satsNeeded) {
|
|
390
|
+
break;
|
|
391
|
+
}
|
|
2736
392
|
}
|
|
2737
|
-
}
|
|
2738
|
-
|
|
393
|
+
} catch (temp) {
|
|
394
|
+
error = [temp];
|
|
395
|
+
} finally {
|
|
2739
396
|
try {
|
|
2740
|
-
|
|
2741
|
-
}
|
|
2742
|
-
|
|
397
|
+
more && (temp = iter.return) && (yield temp.call(iter));
|
|
398
|
+
} finally {
|
|
399
|
+
if (error)
|
|
400
|
+
throw error[0];
|
|
2743
401
|
}
|
|
2744
|
-
}
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
hasWizz: false,
|
|
2759
|
-
isInitializing: true,
|
|
2760
|
-
connected: false,
|
|
2761
|
-
isConnecting: false,
|
|
2762
|
-
publicKey: "",
|
|
2763
|
-
address: "",
|
|
2764
|
-
paymentAddress: "",
|
|
2765
|
-
paymentPublicKey: "",
|
|
2766
|
-
balance: void 0,
|
|
2767
|
-
network: MAINNET422222222222222222222,
|
|
2768
|
-
library: null,
|
|
2769
|
-
provider: null,
|
|
2770
|
-
accounts: [],
|
|
2771
|
-
connect: (walletName) => __async22222222222222222222(void 0, null, function* () {
|
|
2772
|
-
}),
|
|
2773
|
-
disconnect: () => {
|
|
2774
|
-
},
|
|
2775
|
-
requestAccounts: () => __async22222222222222222222(void 0, null, function* () {
|
|
2776
|
-
return [];
|
|
2777
|
-
}),
|
|
2778
|
-
getNetwork: () => __async22222222222222222222(void 0, null, function* () {
|
|
2779
|
-
return MAINNET422222222222222222222;
|
|
2780
|
-
}),
|
|
2781
|
-
switchNetwork: (network) => __async22222222222222222222(void 0, null, function* () {
|
|
2782
|
-
}),
|
|
2783
|
-
getPublicKey: () => __async22222222222222222222(void 0, null, function* () {
|
|
2784
|
-
return "";
|
|
2785
|
-
}),
|
|
2786
|
-
getBalance: () => __async22222222222222222222(void 0, null, function* () {
|
|
2787
|
-
return "";
|
|
2788
|
-
}),
|
|
2789
|
-
getInscriptions: () => __async22222222222222222222(void 0, null, function* () {
|
|
2790
|
-
return [];
|
|
2791
|
-
}),
|
|
2792
|
-
sendBTC: (to, amount) => __async22222222222222222222(void 0, null, function* () {
|
|
2793
|
-
return "";
|
|
2794
|
-
}),
|
|
2795
|
-
signMessage: (message) => __async22222222222222222222(void 0, null, function* () {
|
|
2796
|
-
return "";
|
|
2797
|
-
}),
|
|
2798
|
-
signPsbt: (tx) => __async22222222222222222222(void 0, null, function* () {
|
|
402
|
+
}
|
|
403
|
+
if (amountGathered < satsNeeded) {
|
|
404
|
+
throw new Error("Insufficient funds");
|
|
405
|
+
}
|
|
406
|
+
psbt.addOutput({
|
|
407
|
+
address: recipientAddress,
|
|
408
|
+
value: amount
|
|
409
|
+
});
|
|
410
|
+
if (amountGathered > satsNeeded) {
|
|
411
|
+
psbt.addOutput({
|
|
412
|
+
address: paymentAddress,
|
|
413
|
+
value: amountGathered - satsNeeded - amount
|
|
414
|
+
});
|
|
415
|
+
}
|
|
2799
416
|
return {
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
txId: ""
|
|
417
|
+
psbtBase64: psbt.toBase64(),
|
|
418
|
+
psbtHex: psbt.toHex()
|
|
2803
419
|
};
|
|
2804
|
-
})
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
var LaserEyesContext7 = createContext7(initialWalletContext222222222222222);
|
|
2822
|
-
var LaserEyesContext8 = createContext8(initialWalletContext22222222222222);
|
|
2823
|
-
var LaserEyesContext9 = createContext9(initialWalletContext2222222222222);
|
|
2824
|
-
var LaserEyesContext10 = createContext10(initialWalletContext222222222222);
|
|
2825
|
-
var LaserEyesContext11 = createContext11(initialWalletContext22222222222);
|
|
2826
|
-
var LaserEyesContext12 = createContext12(initialWalletContext2222222222);
|
|
2827
|
-
var LaserEyesContext13 = createContext13(initialWalletContext222222222);
|
|
2828
|
-
var LaserEyesContext14 = createContext14(initialWalletContext22222222);
|
|
2829
|
-
var LaserEyesContext15 = createContext15(initialWalletContext2222222);
|
|
2830
|
-
var LaserEyesContext16 = createContext16(initialWalletContext222222);
|
|
2831
|
-
var LaserEyesContext17 = createContext17(initialWalletContext22222);
|
|
2832
|
-
var LaserEyesContext18 = createContext18(initialWalletContext2222);
|
|
2833
|
-
var LaserEyesContext19 = createContext19(initialWalletContext222);
|
|
2834
|
-
var LaserEyesContext20 = createContext20(initialWalletContext22);
|
|
2835
|
-
var LaserEyesContext21 = createContext21(initialWalletContext2);
|
|
2836
|
-
|
|
2837
|
-
// example/lib/urls.ts
|
|
2838
|
-
var MEMPOOL_SPACE_URL3 = "https://mempool.space";
|
|
2839
|
-
var MEMPOOL_SPACE_TESTNET_URL3 = "https://mempool.space/testnet";
|
|
2840
|
-
var MEMPOOL_SPACE_SIGNET_URL2 = "https://mempool.space/signet";
|
|
2841
|
-
var getMempoolSpaceUrl3 = (network) => network === TESTNET3 ? MEMPOOL_SPACE_TESTNET_URL3 : network === SIGNET3 ? MEMPOOL_SPACE_SIGNET_URL2 : MEMPOOL_SPACE_URL3;
|
|
420
|
+
});
|
|
421
|
+
}
|
|
422
|
+
function getRedeemScript(paymentPublicKey, network) {
|
|
423
|
+
var _a;
|
|
424
|
+
const p2wpkh = bitcoin.payments.p2wpkh({
|
|
425
|
+
pubkey: Buffer.from(paymentPublicKey, "hex"),
|
|
426
|
+
network: getBitcoinNetwork(network)
|
|
427
|
+
});
|
|
428
|
+
const p2sh = bitcoin.payments.p2sh({
|
|
429
|
+
redeem: p2wpkh,
|
|
430
|
+
network: getBitcoinNetwork(network)
|
|
431
|
+
});
|
|
432
|
+
return (_a = p2sh == null ? void 0 : p2sh.redeem) == null ? void 0 : _a.output;
|
|
433
|
+
}
|
|
434
|
+
function delay(ms) {
|
|
435
|
+
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
436
|
+
}
|
|
2842
437
|
|
|
2843
438
|
// src/providers/LaserEyesProvider.tsx
|
|
2844
|
-
import {
|
|
2845
|
-
|
|
439
|
+
import {
|
|
440
|
+
BitcoinNetworkType,
|
|
441
|
+
getAddress,
|
|
442
|
+
request,
|
|
443
|
+
RpcErrorCode,
|
|
444
|
+
signMessage as signMessageSatsConnect,
|
|
445
|
+
signTransaction
|
|
446
|
+
} from "sats-connect";
|
|
447
|
+
import { fromOutputScript } from "bitcoinjs-lib/src/address";
|
|
448
|
+
import axios2 from "axios";
|
|
449
|
+
import { jsx } from "react/jsx-runtime";
|
|
450
|
+
var LaserEyesContext = createContext(initialWalletContext);
|
|
2846
451
|
var useLaserEyes = () => {
|
|
2847
|
-
return
|
|
452
|
+
return useContext(LaserEyesContext);
|
|
2848
453
|
};
|
|
2849
454
|
var LaserEyesProvider = ({
|
|
2850
455
|
children,
|
|
2851
456
|
config
|
|
2852
457
|
}) => {
|
|
2853
|
-
const selfRef =
|
|
458
|
+
const selfRef = useRef({
|
|
2854
459
|
accounts: []
|
|
2855
460
|
});
|
|
2856
461
|
const self = selfRef.current;
|
|
2857
|
-
const [library, setLibrary] =
|
|
2858
|
-
const [provider, setProvider] =
|
|
2859
|
-
const [isInitializing, setIsInitializing] =
|
|
2860
|
-
const [connected, setConnected] =
|
|
2861
|
-
const [isConnecting, setIsConnecting] =
|
|
2862
|
-
const [accounts, setAccounts] =
|
|
2863
|
-
const [publicKey, setPublicKey] =
|
|
2864
|
-
const [paymentPublicKey, setPaymentPublicKey] =
|
|
2865
|
-
const [
|
|
2866
|
-
const [paymentAddress, setPaymentAddress] =
|
|
2867
|
-
const [balance, setBalance] =
|
|
2868
|
-
const [hasUnisat, setHasUnisat] =
|
|
2869
|
-
const [hasXverse, setHasXverse] =
|
|
2870
|
-
const [hasOyl, setHasOyl] =
|
|
2871
|
-
const [hasMagicEden, setHasMagicEden] =
|
|
2872
|
-
const [hasOkx, setHasOkx] =
|
|
2873
|
-
const [hasLeather, setHasLeather] =
|
|
2874
|
-
const [hasPhantom, setHasPhantom] =
|
|
2875
|
-
const [hasWizz, setHasWizz] =
|
|
2876
|
-
const [network, setNetwork] =
|
|
462
|
+
const [library, setLibrary] = useState(null);
|
|
463
|
+
const [provider, setProvider] = useState();
|
|
464
|
+
const [isInitializing, setIsInitializing] = useState(true);
|
|
465
|
+
const [connected, setConnected] = useState(false);
|
|
466
|
+
const [isConnecting, setIsConnecting] = useState(false);
|
|
467
|
+
const [accounts, setAccounts] = useState([]);
|
|
468
|
+
const [publicKey, setPublicKey] = useState("");
|
|
469
|
+
const [paymentPublicKey, setPaymentPublicKey] = useState("");
|
|
470
|
+
const [address2, setAddress] = useState("");
|
|
471
|
+
const [paymentAddress, setPaymentAddress] = useState("");
|
|
472
|
+
const [balance, setBalance] = useState();
|
|
473
|
+
const [hasUnisat, setHasUnisat] = useState(false);
|
|
474
|
+
const [hasXverse, setHasXverse] = useState(false);
|
|
475
|
+
const [hasOyl, setHasOyl] = useState(false);
|
|
476
|
+
const [hasMagicEden, setHasMagicEden] = useState(false);
|
|
477
|
+
const [hasOkx, setHasOkx] = useState(false);
|
|
478
|
+
const [hasLeather, setHasLeather] = useState(false);
|
|
479
|
+
const [hasPhantom, setHasPhantom] = useState(false);
|
|
480
|
+
const [hasWizz, setHasWizz] = useState(false);
|
|
481
|
+
const [network, setNetwork] = useLocalStorage("network", MAINNET, {
|
|
2877
482
|
initializeWithValue: false
|
|
2878
483
|
});
|
|
2879
|
-
|
|
484
|
+
useEffect(() => {
|
|
2880
485
|
if (config) {
|
|
2881
486
|
setNetwork(config.network);
|
|
2882
487
|
getNetwork().then((foundNetwork) => {
|
|
@@ -2893,7 +498,7 @@ var LaserEyesProvider = ({
|
|
|
2893
498
|
setIsInitializing(false);
|
|
2894
499
|
}
|
|
2895
500
|
};
|
|
2896
|
-
|
|
501
|
+
useEffect(() => {
|
|
2897
502
|
const observer = new MutationObserver(() => {
|
|
2898
503
|
const unisatLib = window == null ? void 0 : window.unisat;
|
|
2899
504
|
if (unisatLib) {
|
|
@@ -2906,7 +511,7 @@ var LaserEyesProvider = ({
|
|
|
2906
511
|
observer.disconnect();
|
|
2907
512
|
};
|
|
2908
513
|
}, []);
|
|
2909
|
-
|
|
514
|
+
useEffect(() => {
|
|
2910
515
|
const observer = new MutationObserver(() => {
|
|
2911
516
|
var _a;
|
|
2912
517
|
const xverseLib = (_a = window == null ? void 0 : window.XverseProviders) == null ? void 0 : _a.BitcoinProvider;
|
|
@@ -2920,7 +525,7 @@ var LaserEyesProvider = ({
|
|
|
2920
525
|
observer.disconnect();
|
|
2921
526
|
};
|
|
2922
527
|
}, []);
|
|
2923
|
-
|
|
528
|
+
useEffect(() => {
|
|
2924
529
|
const observer = new MutationObserver(() => {
|
|
2925
530
|
const oylLib = window == null ? void 0 : window.oyl;
|
|
2926
531
|
if (oylLib) {
|
|
@@ -2933,7 +538,7 @@ var LaserEyesProvider = ({
|
|
|
2933
538
|
observer.disconnect();
|
|
2934
539
|
};
|
|
2935
540
|
}, []);
|
|
2936
|
-
|
|
541
|
+
useEffect(() => {
|
|
2937
542
|
const observer = new MutationObserver(() => {
|
|
2938
543
|
const magicEdenLib = window == null ? void 0 : window.magicEden;
|
|
2939
544
|
if (magicEdenLib) {
|
|
@@ -2946,7 +551,7 @@ var LaserEyesProvider = ({
|
|
|
2946
551
|
observer.disconnect();
|
|
2947
552
|
};
|
|
2948
553
|
}, []);
|
|
2949
|
-
|
|
554
|
+
useEffect(() => {
|
|
2950
555
|
const observer = new MutationObserver(() => {
|
|
2951
556
|
var _a, _b;
|
|
2952
557
|
let foundOkx;
|
|
@@ -2965,7 +570,7 @@ var LaserEyesProvider = ({
|
|
|
2965
570
|
observer.disconnect();
|
|
2966
571
|
};
|
|
2967
572
|
}, [network]);
|
|
2968
|
-
|
|
573
|
+
useEffect(() => {
|
|
2969
574
|
const observer = new MutationObserver(() => {
|
|
2970
575
|
const leatherLib = window == null ? void 0 : window.LeatherProvider;
|
|
2971
576
|
if (leatherLib) {
|
|
@@ -2978,7 +583,7 @@ var LaserEyesProvider = ({
|
|
|
2978
583
|
observer.disconnect();
|
|
2979
584
|
};
|
|
2980
585
|
}, []);
|
|
2981
|
-
|
|
586
|
+
useEffect(() => {
|
|
2982
587
|
const observer = new MutationObserver(() => {
|
|
2983
588
|
var _a;
|
|
2984
589
|
const phantomLib = (_a = window == null ? void 0 : window.phantom) == null ? void 0 : _a.bitcoin;
|
|
@@ -2995,7 +600,7 @@ var LaserEyesProvider = ({
|
|
|
2995
600
|
observer.disconnect();
|
|
2996
601
|
};
|
|
2997
602
|
}, []);
|
|
2998
|
-
|
|
603
|
+
useEffect(() => {
|
|
2999
604
|
const observer = new MutationObserver(() => {
|
|
3000
605
|
const wizzLib = window == null ? void 0 : window.wizz;
|
|
3001
606
|
if (wizzLib) {
|
|
@@ -3008,7 +613,7 @@ var LaserEyesProvider = ({
|
|
|
3008
613
|
observer.disconnect();
|
|
3009
614
|
};
|
|
3010
615
|
}, []);
|
|
3011
|
-
|
|
616
|
+
useEffect(() => {
|
|
3012
617
|
checkInitializationComplete();
|
|
3013
618
|
}, [
|
|
3014
619
|
hasUnisat,
|
|
@@ -3020,10 +625,10 @@ var LaserEyesProvider = ({
|
|
|
3020
625
|
hasPhantom,
|
|
3021
626
|
hasWizz
|
|
3022
627
|
]);
|
|
3023
|
-
|
|
628
|
+
useEffect(() => {
|
|
3024
629
|
setBalance(void 0);
|
|
3025
630
|
}, [network]);
|
|
3026
|
-
|
|
631
|
+
useEffect(() => {
|
|
3027
632
|
if (provider !== UNISAT && provider !== WIZZ) {
|
|
3028
633
|
return;
|
|
3029
634
|
}
|
|
@@ -3037,7 +642,7 @@ var LaserEyesProvider = ({
|
|
|
3037
642
|
library.removeListener("networkChanged", handleNetworkChanged);
|
|
3038
643
|
};
|
|
3039
644
|
}, [library]);
|
|
3040
|
-
|
|
645
|
+
useEffect(() => {
|
|
3041
646
|
if (!isInitializing) {
|
|
3042
647
|
const defaultWallet = localStorage == null ? void 0 : localStorage.getItem(
|
|
3043
648
|
LOCAL_STORAGE_DEFAULT_WALLET
|
|
@@ -3048,7 +653,7 @@ var LaserEyesProvider = ({
|
|
|
3048
653
|
}
|
|
3049
654
|
}
|
|
3050
655
|
}, [isInitializing]);
|
|
3051
|
-
const connectUnisat =
|
|
656
|
+
const connectUnisat = useCallback(() => __async(void 0, null, function* () {
|
|
3052
657
|
try {
|
|
3053
658
|
localStorage == null ? void 0 : localStorage.setItem(LOCAL_STORAGE_DEFAULT_WALLET, UNISAT);
|
|
3054
659
|
const lib = window.unisat;
|
|
@@ -3058,6 +663,7 @@ var LaserEyesProvider = ({
|
|
|
3058
663
|
const unisatPubKey = yield lib.getPublicKey();
|
|
3059
664
|
if (!unisatPubKey)
|
|
3060
665
|
throw new Error("No public key found");
|
|
666
|
+
const foundNetwork = yield getNetwork();
|
|
3061
667
|
setAccounts(unisatAccounts);
|
|
3062
668
|
setAddress(unisatAccounts[0]);
|
|
3063
669
|
setPaymentAddress(unisatAccounts[0]);
|
|
@@ -3072,7 +678,7 @@ var LaserEyesProvider = ({
|
|
|
3072
678
|
throw error;
|
|
3073
679
|
}
|
|
3074
680
|
}), [hasUnisat]);
|
|
3075
|
-
const connectXverse =
|
|
681
|
+
const connectXverse = useCallback(() => __async(void 0, null, function* () {
|
|
3076
682
|
try {
|
|
3077
683
|
localStorage == null ? void 0 : localStorage.setItem(LOCAL_STORAGE_DEFAULT_WALLET, XVERSE);
|
|
3078
684
|
let xverseNetwork = getXverseNetwork((config == null ? void 0 : config.network) || MAINNET);
|
|
@@ -3106,7 +712,7 @@ var LaserEyesProvider = ({
|
|
|
3106
712
|
throw new Error(`Can't lasereyes to ${XVERSE} wallet`);
|
|
3107
713
|
}
|
|
3108
714
|
};
|
|
3109
|
-
yield
|
|
715
|
+
yield getAddress(getAddressOptions);
|
|
3110
716
|
setConnected(true);
|
|
3111
717
|
} catch (error) {
|
|
3112
718
|
throw error;
|
|
@@ -3171,7 +777,7 @@ var LaserEyesProvider = ({
|
|
|
3171
777
|
}
|
|
3172
778
|
};
|
|
3173
779
|
console.log(JSON.stringify(getAddressOptions));
|
|
3174
|
-
yield
|
|
780
|
+
yield getAddress(getAddressOptions);
|
|
3175
781
|
setConnected(true);
|
|
3176
782
|
} catch (error) {
|
|
3177
783
|
console.log("error", error);
|
|
@@ -3181,7 +787,7 @@ var LaserEyesProvider = ({
|
|
|
3181
787
|
const connectOkx = () => __async(void 0, null, function* () {
|
|
3182
788
|
try {
|
|
3183
789
|
localStorage == null ? void 0 : localStorage.setItem(LOCAL_STORAGE_DEFAULT_WALLET, OKX);
|
|
3184
|
-
const lib = network === TESTNET ? window.okxwallet.bitcoinTestnet : window.okxwallet.bitcoin;
|
|
790
|
+
const lib = network === TESTNET || network === FRACTAL_TESTNET ? window.okxwallet.bitcoinTestnet : window.okxwallet.bitcoin;
|
|
3185
791
|
const okxAccounts = yield lib.requestAccounts();
|
|
3186
792
|
if (!okxAccounts)
|
|
3187
793
|
throw new Error("No accounts found");
|
|
@@ -3202,7 +808,7 @@ var LaserEyesProvider = ({
|
|
|
3202
808
|
throw error;
|
|
3203
809
|
}
|
|
3204
810
|
});
|
|
3205
|
-
const connectLeather =
|
|
811
|
+
const connectLeather = useCallback(() => __async(void 0, null, function* () {
|
|
3206
812
|
try {
|
|
3207
813
|
localStorage == null ? void 0 : localStorage.setItem(LOCAL_STORAGE_DEFAULT_WALLET, LEATHER);
|
|
3208
814
|
const lib = window.LeatherProvider;
|
|
@@ -3212,13 +818,13 @@ var LaserEyesProvider = ({
|
|
|
3212
818
|
const addressesResponse = getAddressesResponse.result;
|
|
3213
819
|
const addresses = addressesResponse.addresses;
|
|
3214
820
|
const leatherAccountsParsed = addresses.map(
|
|
3215
|
-
(
|
|
821
|
+
(address3) => address3.address
|
|
3216
822
|
);
|
|
3217
823
|
const taprootAddress = addresses.find(
|
|
3218
|
-
(
|
|
824
|
+
(address3) => address3.type === P2TR
|
|
3219
825
|
);
|
|
3220
826
|
const segwitAddress = addresses.find(
|
|
3221
|
-
(
|
|
827
|
+
(address3) => address3.type === P2WPKH
|
|
3222
828
|
);
|
|
3223
829
|
setAccounts(leatherAccountsParsed);
|
|
3224
830
|
setAddress(String(taprootAddress == null ? void 0 : taprootAddress.address));
|
|
@@ -3304,6 +910,8 @@ var LaserEyesProvider = ({
|
|
|
3304
910
|
yield connectUnisat();
|
|
3305
911
|
} else if (walletName === XVERSE) {
|
|
3306
912
|
yield connectXverse();
|
|
913
|
+
} else if (walletName === OYL) {
|
|
914
|
+
yield connectOyl();
|
|
3307
915
|
} else if (walletName === LEATHER) {
|
|
3308
916
|
yield connectLeather();
|
|
3309
917
|
} else {
|
|
@@ -3395,7 +1003,7 @@ var LaserEyesProvider = ({
|
|
|
3395
1003
|
console.log("CANCELLED");
|
|
3396
1004
|
}
|
|
3397
1005
|
};
|
|
3398
|
-
return [
|
|
1006
|
+
return [address2];
|
|
3399
1007
|
} else if (provider === OYL) {
|
|
3400
1008
|
return yield library.requestAccounts();
|
|
3401
1009
|
} else if (provider === OKX) {
|
|
@@ -3409,13 +1017,13 @@ var LaserEyesProvider = ({
|
|
|
3409
1017
|
const addressesResponse = getAddressesResponse.result;
|
|
3410
1018
|
const addresses = addressesResponse.addresses;
|
|
3411
1019
|
const leatherAccountsParsed = addresses.map(
|
|
3412
|
-
(
|
|
1020
|
+
(address3) => address3.address
|
|
3413
1021
|
);
|
|
3414
1022
|
const taprootAddress = addresses.find(
|
|
3415
|
-
(
|
|
1023
|
+
(address3) => address3.type === P2TR
|
|
3416
1024
|
);
|
|
3417
1025
|
const segwitAddress = addresses.find(
|
|
3418
|
-
(
|
|
1026
|
+
(address3) => address3.type === P2WPKH
|
|
3419
1027
|
);
|
|
3420
1028
|
setAccounts(leatherAccountsParsed);
|
|
3421
1029
|
setAddress(String(taprootAddress == null ? void 0 : taprootAddress.address));
|
|
@@ -3458,17 +1066,17 @@ var LaserEyesProvider = ({
|
|
|
3458
1066
|
setNetwork(foundNetwork);
|
|
3459
1067
|
return foundNetwork;
|
|
3460
1068
|
} else if (provider === XVERSE) {
|
|
3461
|
-
if (
|
|
1069
|
+
if (address2.slice(0, 1) === "t") {
|
|
3462
1070
|
return TESTNET;
|
|
3463
1071
|
}
|
|
3464
1072
|
return MAINNET;
|
|
3465
1073
|
} else if (provider === OYL) {
|
|
3466
|
-
if (
|
|
1074
|
+
if (address2.slice(0, 1) === "t") {
|
|
3467
1075
|
return TESTNET;
|
|
3468
1076
|
}
|
|
3469
1077
|
return MAINNET;
|
|
3470
1078
|
} else if (provider === MAGIC_EDEN) {
|
|
3471
|
-
if (
|
|
1079
|
+
if (address2.slice(0, 1) === "t") {
|
|
3472
1080
|
return TESTNET;
|
|
3473
1081
|
}
|
|
3474
1082
|
return MAINNET;
|
|
@@ -3477,12 +1085,12 @@ var LaserEyesProvider = ({
|
|
|
3477
1085
|
const foundNetwork = getNetworkForOkx(okxNetwork);
|
|
3478
1086
|
setNetwork(foundNetwork);
|
|
3479
1087
|
} else if (provider === LEATHER) {
|
|
3480
|
-
if (
|
|
1088
|
+
if (address2.slice(0, 1) === "t") {
|
|
3481
1089
|
return TESTNET;
|
|
3482
1090
|
}
|
|
3483
1091
|
return MAINNET;
|
|
3484
1092
|
} else if (provider === PHANTOM) {
|
|
3485
|
-
if (
|
|
1093
|
+
if (address2.slice(0, 1) === "t") {
|
|
3486
1094
|
return TESTNET;
|
|
3487
1095
|
}
|
|
3488
1096
|
return MAINNET;
|
|
@@ -3595,7 +1203,7 @@ var LaserEyesProvider = ({
|
|
|
3595
1203
|
throw new Error("Transaction failed");
|
|
3596
1204
|
return txId;
|
|
3597
1205
|
} else if (provider === XVERSE) {
|
|
3598
|
-
const response = yield
|
|
1206
|
+
const response = yield request("sendTransfer", {
|
|
3599
1207
|
recipients: [
|
|
3600
1208
|
{
|
|
3601
1209
|
address: to,
|
|
@@ -3606,7 +1214,7 @@ var LaserEyesProvider = ({
|
|
|
3606
1214
|
if (response.status === "success") {
|
|
3607
1215
|
return response.result.txid;
|
|
3608
1216
|
} else {
|
|
3609
|
-
if (response.error.code ===
|
|
1217
|
+
if (response.error.code === RpcErrorCode.USER_REJECTION) {
|
|
3610
1218
|
throw new Error("User rejected the request");
|
|
3611
1219
|
} else {
|
|
3612
1220
|
throw new Error("Error sending BTC: " + response.error.message);
|
|
@@ -3614,7 +1222,7 @@ var LaserEyesProvider = ({
|
|
|
3614
1222
|
}
|
|
3615
1223
|
} else if (provider === OYL) {
|
|
3616
1224
|
const { psbtHex, psbtBase64 } = yield createSendBtcPsbt(
|
|
3617
|
-
|
|
1225
|
+
address2,
|
|
3618
1226
|
paymentAddress,
|
|
3619
1227
|
to,
|
|
3620
1228
|
amount,
|
|
@@ -3629,7 +1237,7 @@ var LaserEyesProvider = ({
|
|
|
3629
1237
|
return psbt.txId;
|
|
3630
1238
|
} else if (provider === MAGIC_EDEN) {
|
|
3631
1239
|
const { psbtHex, psbtBase64 } = yield createSendBtcPsbt(
|
|
3632
|
-
|
|
1240
|
+
address2,
|
|
3633
1241
|
paymentAddress,
|
|
3634
1242
|
to,
|
|
3635
1243
|
amount,
|
|
@@ -3659,7 +1267,7 @@ var LaserEyesProvider = ({
|
|
|
3659
1267
|
if ((_a = response == null ? void 0 : response.result) == null ? void 0 : _a.txid) {
|
|
3660
1268
|
return response.result.txid;
|
|
3661
1269
|
} else {
|
|
3662
|
-
if (response.error.code ===
|
|
1270
|
+
if (response.error.code === RpcErrorCode.USER_REJECTION) {
|
|
3663
1271
|
throw new Error("User rejected the request");
|
|
3664
1272
|
} else {
|
|
3665
1273
|
throw new Error("Error sending BTC: " + response.error.message);
|
|
@@ -3685,14 +1293,14 @@ var LaserEyesProvider = ({
|
|
|
3685
1293
|
if (provider === UNISAT) {
|
|
3686
1294
|
return yield library == null ? void 0 : library.signMessage(message);
|
|
3687
1295
|
} else if (provider === XVERSE) {
|
|
3688
|
-
const response = yield
|
|
3689
|
-
address:
|
|
1296
|
+
const response = yield request("signMessage", {
|
|
1297
|
+
address: address2,
|
|
3690
1298
|
message
|
|
3691
1299
|
});
|
|
3692
1300
|
if (response.status === "success") {
|
|
3693
1301
|
return response.result.signature;
|
|
3694
1302
|
} else {
|
|
3695
|
-
if (response.error.code ===
|
|
1303
|
+
if (response.error.code === RpcErrorCode.USER_REJECTION) {
|
|
3696
1304
|
throw new Error("User rejected the request");
|
|
3697
1305
|
} else {
|
|
3698
1306
|
throw new Error("Error signing message: " + response.error.message);
|
|
@@ -3700,13 +1308,13 @@ var LaserEyesProvider = ({
|
|
|
3700
1308
|
}
|
|
3701
1309
|
} else if (provider === MAGIC_EDEN) {
|
|
3702
1310
|
let signedMessage;
|
|
3703
|
-
yield
|
|
1311
|
+
yield signMessageSatsConnect({
|
|
3704
1312
|
getProvider: () => __async(void 0, null, function* () {
|
|
3705
1313
|
return window.magicEden.bitcoin;
|
|
3706
1314
|
}),
|
|
3707
1315
|
payload: {
|
|
3708
1316
|
network: {
|
|
3709
|
-
type:
|
|
1317
|
+
type: BitcoinNetworkType.Mainnet
|
|
3710
1318
|
},
|
|
3711
1319
|
address: paymentAddress,
|
|
3712
1320
|
message
|
|
@@ -3730,7 +1338,7 @@ var LaserEyesProvider = ({
|
|
|
3730
1338
|
} else if (provider === PHANTOM) {
|
|
3731
1339
|
const utf8Bytes = new TextEncoder().encode(message);
|
|
3732
1340
|
const uintArray = new Uint8Array(utf8Bytes);
|
|
3733
|
-
const response = yield library == null ? void 0 : library.signMessage(
|
|
1341
|
+
const response = yield library == null ? void 0 : library.signMessage(address2, uintArray);
|
|
3734
1342
|
const binaryString = String.fromCharCode(...response.signature);
|
|
3735
1343
|
return btoa(binaryString);
|
|
3736
1344
|
} else if (provider === WIZZ) {
|
|
@@ -3750,11 +1358,11 @@ var LaserEyesProvider = ({
|
|
|
3750
1358
|
if (!psbt)
|
|
3751
1359
|
throw new Error("No PSBT provided");
|
|
3752
1360
|
if (isHex(psbt)) {
|
|
3753
|
-
psbtBase64 =
|
|
1361
|
+
psbtBase64 = bitcoin2.Psbt.fromHex(psbt).toBase64();
|
|
3754
1362
|
psbtHex = psbt;
|
|
3755
1363
|
} else if (isBase64(psbt)) {
|
|
3756
1364
|
psbtBase64 = psbt;
|
|
3757
|
-
psbtHex =
|
|
1365
|
+
psbtHex = bitcoin2.Psbt.fromBase64(psbt).toHex();
|
|
3758
1366
|
} else {
|
|
3759
1367
|
throw new Error("Invalid PSBT format");
|
|
3760
1368
|
}
|
|
@@ -3762,7 +1370,7 @@ var LaserEyesProvider = ({
|
|
|
3762
1370
|
const signedPsbt = yield library == null ? void 0 : library.signPsbt(psbtHex, {
|
|
3763
1371
|
autoFinalized: finalize
|
|
3764
1372
|
});
|
|
3765
|
-
const psbtSignedPsbt =
|
|
1373
|
+
const psbtSignedPsbt = bitcoin2.Psbt.fromHex(signedPsbt);
|
|
3766
1374
|
if (finalize && broadcast) {
|
|
3767
1375
|
const txId = yield pushPsbt(signedPsbt);
|
|
3768
1376
|
return {
|
|
@@ -3777,13 +1385,13 @@ var LaserEyesProvider = ({
|
|
|
3777
1385
|
txId: void 0
|
|
3778
1386
|
};
|
|
3779
1387
|
} else if (provider === XVERSE) {
|
|
3780
|
-
const toSignPsbt =
|
|
1388
|
+
const toSignPsbt = bitcoin2.Psbt.fromBase64(String(psbtBase64), {
|
|
3781
1389
|
network: getBitcoinNetwork(network)
|
|
3782
1390
|
});
|
|
3783
1391
|
const inputs = toSignPsbt.data.inputs;
|
|
3784
1392
|
const inputsToSign = [];
|
|
3785
1393
|
const ordinalAddressData = {
|
|
3786
|
-
address:
|
|
1394
|
+
address: address2,
|
|
3787
1395
|
signingIndexes: []
|
|
3788
1396
|
};
|
|
3789
1397
|
const paymentsAddressData = {
|
|
@@ -3795,13 +1403,13 @@ var LaserEyesProvider = ({
|
|
|
3795
1403
|
for (var iter = __forAwait(inputs), more, temp, error; more = !(temp = yield iter.next()).done; more = false) {
|
|
3796
1404
|
let input = temp.value;
|
|
3797
1405
|
const { script } = input.witnessUtxo;
|
|
3798
|
-
const addressFromScript =
|
|
1406
|
+
const addressFromScript = fromOutputScript(
|
|
3799
1407
|
script,
|
|
3800
1408
|
getBitcoinNetwork(network)
|
|
3801
1409
|
);
|
|
3802
1410
|
if (addressFromScript === paymentAddress) {
|
|
3803
1411
|
paymentsAddressData.signingIndexes.push(Number(counter));
|
|
3804
|
-
} else if (addressFromScript ===
|
|
1412
|
+
} else if (addressFromScript === address2) {
|
|
3805
1413
|
ordinalAddressData.signingIndexes.push(Number(counter));
|
|
3806
1414
|
}
|
|
3807
1415
|
counter++;
|
|
@@ -3838,7 +1446,7 @@ var LaserEyesProvider = ({
|
|
|
3838
1446
|
if (response.txId) {
|
|
3839
1447
|
txId = response.txId;
|
|
3840
1448
|
} else if (response.psbtBase64) {
|
|
3841
|
-
const signedPsbt =
|
|
1449
|
+
const signedPsbt = bitcoin2.Psbt.fromBase64(
|
|
3842
1450
|
String(response.psbtBase64),
|
|
3843
1451
|
{
|
|
3844
1452
|
network: getBitcoinNetwork(network)
|
|
@@ -3850,7 +1458,7 @@ var LaserEyesProvider = ({
|
|
|
3850
1458
|
},
|
|
3851
1459
|
onCancel: () => console.log("Canceled")
|
|
3852
1460
|
};
|
|
3853
|
-
yield
|
|
1461
|
+
yield signTransaction(signPsbtOptions);
|
|
3854
1462
|
return {
|
|
3855
1463
|
signedPsbtHex,
|
|
3856
1464
|
signedPsbtBase64,
|
|
@@ -3859,7 +1467,7 @@ var LaserEyesProvider = ({
|
|
|
3859
1467
|
} else if (provider === OYL) {
|
|
3860
1468
|
const signedPsbt = yield library == null ? void 0 : library.signPsbt(psbtHex, true, true);
|
|
3861
1469
|
console.log({ signedPsbt });
|
|
3862
|
-
const psbtSignedPsbt =
|
|
1470
|
+
const psbtSignedPsbt = bitcoin2.Psbt.fromHex(signedPsbt);
|
|
3863
1471
|
if (broadcast) {
|
|
3864
1472
|
const txId = yield pushPsbt(psbtSignedPsbt.toHex());
|
|
3865
1473
|
return {
|
|
@@ -3875,13 +1483,13 @@ var LaserEyesProvider = ({
|
|
|
3875
1483
|
};
|
|
3876
1484
|
}
|
|
3877
1485
|
} else if (provider === MAGIC_EDEN) {
|
|
3878
|
-
const toSignPsbt =
|
|
1486
|
+
const toSignPsbt = bitcoin2.Psbt.fromBase64(String(psbtBase64), {
|
|
3879
1487
|
network: getBitcoinNetwork(network)
|
|
3880
1488
|
});
|
|
3881
1489
|
const inputs = toSignPsbt.data.inputs;
|
|
3882
1490
|
const inputsToSign = [];
|
|
3883
1491
|
const ordinalAddressData = {
|
|
3884
|
-
address:
|
|
1492
|
+
address: address2,
|
|
3885
1493
|
signingIndexes: []
|
|
3886
1494
|
};
|
|
3887
1495
|
const paymentsAddressData = {
|
|
@@ -3893,13 +1501,13 @@ var LaserEyesProvider = ({
|
|
|
3893
1501
|
for (var iter2 = __forAwait(inputs), more2, temp2, error2; more2 = !(temp2 = yield iter2.next()).done; more2 = false) {
|
|
3894
1502
|
let input = temp2.value;
|
|
3895
1503
|
const { script } = input.witnessUtxo;
|
|
3896
|
-
const addressFromScript =
|
|
1504
|
+
const addressFromScript = fromOutputScript(
|
|
3897
1505
|
script,
|
|
3898
1506
|
getBitcoinNetwork(network)
|
|
3899
1507
|
);
|
|
3900
1508
|
if (addressFromScript === paymentAddress) {
|
|
3901
1509
|
paymentsAddressData.signingIndexes.push(Number(counter));
|
|
3902
|
-
} else if (addressFromScript ===
|
|
1510
|
+
} else if (addressFromScript === address2) {
|
|
3903
1511
|
ordinalAddressData.signingIndexes.push(Number(counter));
|
|
3904
1512
|
}
|
|
3905
1513
|
counter++;
|
|
@@ -3937,7 +1545,7 @@ var LaserEyesProvider = ({
|
|
|
3937
1545
|
},
|
|
3938
1546
|
onFinish: (response) => {
|
|
3939
1547
|
if (response.psbtBase64) {
|
|
3940
|
-
const signedPsbt =
|
|
1548
|
+
const signedPsbt = bitcoin2.Psbt.fromBase64(
|
|
3941
1549
|
String(response.psbtBase64),
|
|
3942
1550
|
{
|
|
3943
1551
|
network: getBitcoinNetwork(network)
|
|
@@ -3956,9 +1564,9 @@ var LaserEyesProvider = ({
|
|
|
3956
1564
|
throw error3;
|
|
3957
1565
|
}
|
|
3958
1566
|
};
|
|
3959
|
-
yield
|
|
1567
|
+
yield signTransaction(signPsbtOptions);
|
|
3960
1568
|
if (broadcast) {
|
|
3961
|
-
const signed =
|
|
1569
|
+
const signed = bitcoin2.Psbt.fromBase64(String(signedPsbtBase64));
|
|
3962
1570
|
const finalized = signed.finalizeAllInputs();
|
|
3963
1571
|
const extracted = finalized.extractTransaction();
|
|
3964
1572
|
const txId2 = yield pushPsbt(extracted.toHex());
|
|
@@ -3978,7 +1586,7 @@ var LaserEyesProvider = ({
|
|
|
3978
1586
|
const signedPsbt = yield library == null ? void 0 : library.signPsbt(psbtHex, {
|
|
3979
1587
|
autoFinalized: finalize
|
|
3980
1588
|
});
|
|
3981
|
-
const psbtSignedPsbt =
|
|
1589
|
+
const psbtSignedPsbt = bitcoin2.Psbt.fromHex(signedPsbt);
|
|
3982
1590
|
if (finalize && broadcast) {
|
|
3983
1591
|
const txId = yield pushPsbt(signedPsbt);
|
|
3984
1592
|
return {
|
|
@@ -4004,7 +1612,7 @@ var LaserEyesProvider = ({
|
|
|
4004
1612
|
);
|
|
4005
1613
|
const leatherHexResult = response.result;
|
|
4006
1614
|
const signedTx = leatherHexResult.hex;
|
|
4007
|
-
const signed =
|
|
1615
|
+
const signed = bitcoin2.Psbt.fromHex(String(signedTx));
|
|
4008
1616
|
if (finalize && broadcast) {
|
|
4009
1617
|
const finalized = signed.finalizeAllInputs();
|
|
4010
1618
|
const txId = yield pushPsbt(finalized.toHex());
|
|
@@ -4032,7 +1640,7 @@ var LaserEyesProvider = ({
|
|
|
4032
1640
|
autoFinalized: finalize,
|
|
4033
1641
|
broadcast: false
|
|
4034
1642
|
});
|
|
4035
|
-
const psbtSignedPsbt =
|
|
1643
|
+
const psbtSignedPsbt = bitcoin2.Psbt.fromHex(signedPsbt);
|
|
4036
1644
|
if (finalize && broadcast) {
|
|
4037
1645
|
const txId = yield pushPsbt(signedPsbt);
|
|
4038
1646
|
return {
|
|
@@ -4064,11 +1672,11 @@ var LaserEyesProvider = ({
|
|
|
4064
1672
|
} else if (provider === OKX) {
|
|
4065
1673
|
return yield library == null ? void 0 : library.pushPsbt(psbt);
|
|
4066
1674
|
} else if (provider === MAGIC_EDEN) {
|
|
4067
|
-
return yield
|
|
1675
|
+
return yield axios2.post(`${getMempoolSpaceUrl2(network)}/api/tx`, psbt).then((res) => res.data);
|
|
4068
1676
|
} else if (provider === LEATHER) {
|
|
4069
|
-
const decoded =
|
|
1677
|
+
const decoded = bitcoin2.Psbt.fromHex(psbt);
|
|
4070
1678
|
const extracted = decoded.extractTransaction();
|
|
4071
|
-
return yield
|
|
1679
|
+
return yield axios2.post(`${getMempoolSpaceUrl2(network)}/api/tx`, extracted.toHex()).then((res) => res.data);
|
|
4072
1680
|
} else if (provider === WIZZ) {
|
|
4073
1681
|
return yield library == null ? void 0 : library.pushPsbt(psbt);
|
|
4074
1682
|
} else {
|
|
@@ -4078,14 +1686,14 @@ var LaserEyesProvider = ({
|
|
|
4078
1686
|
throw error;
|
|
4079
1687
|
}
|
|
4080
1688
|
});
|
|
4081
|
-
return /* @__PURE__ */
|
|
4082
|
-
|
|
1689
|
+
return /* @__PURE__ */ jsx(
|
|
1690
|
+
LaserEyesContext.Provider,
|
|
4083
1691
|
{
|
|
4084
1692
|
value: {
|
|
4085
1693
|
library,
|
|
4086
1694
|
accounts,
|
|
4087
1695
|
publicKey,
|
|
4088
|
-
address:
|
|
1696
|
+
address: address2,
|
|
4089
1697
|
paymentAddress,
|
|
4090
1698
|
paymentPublicKey,
|
|
4091
1699
|
provider,
|
|
@@ -4122,36 +1730,36 @@ var LaserEyesProvider = ({
|
|
|
4122
1730
|
};
|
|
4123
1731
|
|
|
4124
1732
|
// src/hooks/useInscriber.ts
|
|
4125
|
-
import { useCallback as
|
|
1733
|
+
import { useCallback as useCallback2, useEffect as useEffect2, useState as useState2 } from "react";
|
|
4126
1734
|
|
|
4127
1735
|
// src/consts/inscribe.ts
|
|
4128
1736
|
var MIME_TYPE_TEXT = "text/plain;charset=utf-8";
|
|
4129
1737
|
|
|
4130
1738
|
// src/hooks/useInscriber.ts
|
|
4131
|
-
import
|
|
1739
|
+
import axios3 from "axios";
|
|
4132
1740
|
var DESCRIBE_API_URL = "http://localhost:3000/api";
|
|
4133
1741
|
var useInscriber = ({
|
|
4134
1742
|
inscribeApiUrl = DESCRIBE_API_URL
|
|
4135
1743
|
}) => {
|
|
4136
|
-
const { address:
|
|
4137
|
-
const [content, setContent] =
|
|
4138
|
-
const [mimeType, setMimeType] =
|
|
4139
|
-
const [commitPsbtHex, setCommitPsbtHex] =
|
|
4140
|
-
const [commitPsbtBase64, setCommitPsbtBase64] =
|
|
4141
|
-
const [commitTxId, setCommitTxId] =
|
|
4142
|
-
const [feeRate, setFeeRate] =
|
|
4143
|
-
const [totalFees, setTotalFees] =
|
|
4144
|
-
const [inscriberAddress, setInscriberAddress] =
|
|
4145
|
-
const [inscriptionTxId, setInscriptionTxId] =
|
|
4146
|
-
const [previewUrl, setPreviewUrl] =
|
|
4147
|
-
const [isFetchingCommitPsbt, setIsFetchingCommitPsbt] =
|
|
4148
|
-
const [isInscribing, setIsInscribing] =
|
|
4149
|
-
|
|
1744
|
+
const { address: address2, paymentAddress, paymentPublicKey, publicKey, signPsbt } = useLaserEyes();
|
|
1745
|
+
const [content, setContent] = useState2("");
|
|
1746
|
+
const [mimeType, setMimeType] = useState2(MIME_TYPE_TEXT);
|
|
1747
|
+
const [commitPsbtHex, setCommitPsbtHex] = useState2("");
|
|
1748
|
+
const [commitPsbtBase64, setCommitPsbtBase64] = useState2("");
|
|
1749
|
+
const [commitTxId, setCommitTxId] = useState2("");
|
|
1750
|
+
const [feeRate, setFeeRate] = useState2(10);
|
|
1751
|
+
const [totalFees, setTotalFees] = useState2(0);
|
|
1752
|
+
const [inscriberAddress, setInscriberAddress] = useState2("");
|
|
1753
|
+
const [inscriptionTxId, setInscriptionTxId] = useState2("");
|
|
1754
|
+
const [previewUrl, setPreviewUrl] = useState2("");
|
|
1755
|
+
const [isFetchingCommitPsbt, setIsFetchingCommitPsbt] = useState2(false);
|
|
1756
|
+
const [isInscribing, setIsInscribing] = useState2(false);
|
|
1757
|
+
useEffect2(() => {
|
|
4150
1758
|
setCommitPsbtHex("");
|
|
4151
1759
|
setCommitPsbtBase64("");
|
|
4152
1760
|
setCommitTxId("");
|
|
4153
|
-
}, [content,
|
|
4154
|
-
const getCommitPsbt =
|
|
1761
|
+
}, [content, address2, mimeType, feeRate]);
|
|
1762
|
+
const getCommitPsbt = useCallback2(() => __async(void 0, null, function* () {
|
|
4155
1763
|
try {
|
|
4156
1764
|
if (!content)
|
|
4157
1765
|
throw new Error("missing content");
|
|
@@ -4164,7 +1772,7 @@ var useInscriber = ({
|
|
|
4164
1772
|
if (!mimeType)
|
|
4165
1773
|
throw new Error("missing mimeType");
|
|
4166
1774
|
setIsFetchingCommitPsbt(true);
|
|
4167
|
-
return yield
|
|
1775
|
+
return yield axios3.post(`${inscribeApiUrl}/create-inscription`, {
|
|
4168
1776
|
content,
|
|
4169
1777
|
paymentAddress,
|
|
4170
1778
|
paymentPublicKey,
|
|
@@ -4198,7 +1806,7 @@ var useInscriber = ({
|
|
|
4198
1806
|
throw e;
|
|
4199
1807
|
}
|
|
4200
1808
|
});
|
|
4201
|
-
const inscribe =
|
|
1809
|
+
const inscribe = useCallback2(
|
|
4202
1810
|
(_0) => __async(void 0, [_0], function* ({
|
|
4203
1811
|
content: providedContent,
|
|
4204
1812
|
mimeType: providedMimeType,
|
|
@@ -4208,7 +1816,7 @@ var useInscriber = ({
|
|
|
4208
1816
|
try {
|
|
4209
1817
|
const inscribeContent = providedContent != null ? providedContent : content;
|
|
4210
1818
|
const inscribeMimeType = providedMimeType != null ? providedMimeType : mimeType;
|
|
4211
|
-
const inscribeOutputAddress = providedAddress != null ? providedAddress :
|
|
1819
|
+
const inscribeOutputAddress = providedAddress != null ? providedAddress : address2;
|
|
4212
1820
|
let inscribeCommitTxId = providedCommitTxId != null ? providedCommitTxId : commitTxId;
|
|
4213
1821
|
if (!inscribeContent)
|
|
4214
1822
|
throw new Error("missing content");
|
|
@@ -4227,10 +1835,10 @@ var useInscriber = ({
|
|
|
4227
1835
|
yield delay(1e4);
|
|
4228
1836
|
if (!inscribeCommitTxId)
|
|
4229
1837
|
throw new Error("missing commitTxId");
|
|
4230
|
-
return yield
|
|
1838
|
+
return yield axios3.post(`${inscribeApiUrl}/inscribe`, {
|
|
4231
1839
|
content,
|
|
4232
1840
|
mimeType,
|
|
4233
|
-
ordinalAddress:
|
|
1841
|
+
ordinalAddress: address2,
|
|
4234
1842
|
commitTxId: inscribeCommitTxId
|
|
4235
1843
|
}).then((res) => res.data).then((data) => {
|
|
4236
1844
|
setInscriptionTxId(data);
|
|
@@ -4243,7 +1851,7 @@ var useInscriber = ({
|
|
|
4243
1851
|
setIsInscribing(false);
|
|
4244
1852
|
}
|
|
4245
1853
|
}),
|
|
4246
|
-
[
|
|
1854
|
+
[address2, commitTxId, content, mimeType]
|
|
4247
1855
|
);
|
|
4248
1856
|
const reset = () => {
|
|
4249
1857
|
setContent("");
|
|
@@ -4282,7 +1890,7 @@ var useInscriber = ({
|
|
|
4282
1890
|
};
|
|
4283
1891
|
|
|
4284
1892
|
// src/icons/oyl.tsx
|
|
4285
|
-
import { jsx as
|
|
1893
|
+
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
4286
1894
|
var OylLogo = (_a) => {
|
|
4287
1895
|
var _b = _a, {
|
|
4288
1896
|
size = 42,
|
|
@@ -4294,7 +1902,7 @@ var OylLogo = (_a) => {
|
|
|
4294
1902
|
"className"
|
|
4295
1903
|
]);
|
|
4296
1904
|
if (variant === "first") {
|
|
4297
|
-
return /* @__PURE__ */
|
|
1905
|
+
return /* @__PURE__ */ jsxs(
|
|
4298
1906
|
"svg",
|
|
4299
1907
|
__spreadProps(__spreadValues({
|
|
4300
1908
|
className,
|
|
@@ -4305,7 +1913,7 @@ var OylLogo = (_a) => {
|
|
|
4305
1913
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4306
1914
|
}, props), {
|
|
4307
1915
|
children: [
|
|
4308
|
-
/* @__PURE__ */
|
|
1916
|
+
/* @__PURE__ */ jsx2(
|
|
4309
1917
|
"rect",
|
|
4310
1918
|
{
|
|
4311
1919
|
width: "42",
|
|
@@ -4315,7 +1923,7 @@ var OylLogo = (_a) => {
|
|
|
4315
1923
|
style: { fill: "#090A0C", fillOpacity: 1 }
|
|
4316
1924
|
}
|
|
4317
1925
|
),
|
|
4318
|
-
/* @__PURE__ */
|
|
1926
|
+
/* @__PURE__ */ jsx2(
|
|
4319
1927
|
"path",
|
|
4320
1928
|
{
|
|
4321
1929
|
d: "M21 14C29.222 14 38 15.9676 38 20.9054C38 25.8622 29.222 28 21 28C12.778 28 4 26.0324 4 21.0946C4 16.1378 12.778 14 21 14ZM21.0397 25.3135C24.6939 25.3135 30.1752 24.3297 30.1752 21C30.1752 17.6703 24.6939 16.6865 21.0397 16.6865H20.9603C17.3061 16.6865 11.8248 17.6703 11.8248 21C11.8248 24.3297 17.3061 25.3135 20.9603 25.3135H21.0397Z",
|
|
@@ -4327,7 +1935,7 @@ var OylLogo = (_a) => {
|
|
|
4327
1935
|
})
|
|
4328
1936
|
);
|
|
4329
1937
|
}
|
|
4330
|
-
return /* @__PURE__ */
|
|
1938
|
+
return /* @__PURE__ */ jsxs(
|
|
4331
1939
|
"svg",
|
|
4332
1940
|
__spreadProps(__spreadValues({
|
|
4333
1941
|
className,
|
|
@@ -4338,7 +1946,7 @@ var OylLogo = (_a) => {
|
|
|
4338
1946
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4339
1947
|
}, props), {
|
|
4340
1948
|
children: [
|
|
4341
|
-
/* @__PURE__ */
|
|
1949
|
+
/* @__PURE__ */ jsx2(
|
|
4342
1950
|
"rect",
|
|
4343
1951
|
{
|
|
4344
1952
|
width: "42",
|
|
@@ -4348,7 +1956,7 @@ var OylLogo = (_a) => {
|
|
|
4348
1956
|
style: { fill: "white", fillOpacity: 1 }
|
|
4349
1957
|
}
|
|
4350
1958
|
),
|
|
4351
|
-
/* @__PURE__ */
|
|
1959
|
+
/* @__PURE__ */ jsx2(
|
|
4352
1960
|
"path",
|
|
4353
1961
|
{
|
|
4354
1962
|
d: "M21 14C29.222 14 38 15.9676 38 20.9054C38 25.8622 29.222 28 21 28C12.778 28 4 26.0324 4 21.0946C4 16.1378 12.778 14 21 14ZM21.0397 25.3135C24.6939 25.3135 30.1752 24.3297 30.1752 21C30.1752 17.6703 24.6939 16.6865 21.0397 16.6865H20.9603C17.3061 16.6865 11.8248 17.6703 11.8248 21C11.8248 24.3297 17.3061 25.3135 20.9603 25.3135H21.0397Z",
|
|
@@ -4362,7 +1970,7 @@ var OylLogo = (_a) => {
|
|
|
4362
1970
|
};
|
|
4363
1971
|
|
|
4364
1972
|
// src/icons/leather.tsx
|
|
4365
|
-
import { jsx as
|
|
1973
|
+
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
4366
1974
|
var LeatherLogo = (_a) => {
|
|
4367
1975
|
var _b = _a, {
|
|
4368
1976
|
size = 42,
|
|
@@ -4374,7 +1982,7 @@ var LeatherLogo = (_a) => {
|
|
|
4374
1982
|
"className"
|
|
4375
1983
|
]);
|
|
4376
1984
|
if (variant === "first") {
|
|
4377
|
-
return /* @__PURE__ */
|
|
1985
|
+
return /* @__PURE__ */ jsxs2(
|
|
4378
1986
|
"svg",
|
|
4379
1987
|
__spreadProps(__spreadValues({
|
|
4380
1988
|
className,
|
|
@@ -4385,8 +1993,8 @@ var LeatherLogo = (_a) => {
|
|
|
4385
1993
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4386
1994
|
}, props), {
|
|
4387
1995
|
children: [
|
|
4388
|
-
/* @__PURE__ */
|
|
4389
|
-
/* @__PURE__ */
|
|
1996
|
+
/* @__PURE__ */ jsx3("rect", { width: "128", height: "128", rx: "26.8387", fill: "#12100F" }),
|
|
1997
|
+
/* @__PURE__ */ jsx3(
|
|
4390
1998
|
"path",
|
|
4391
1999
|
{
|
|
4392
2000
|
d: "M74.9171 52.7114C82.4766 51.5408 93.4087 43.5804 93.4087 37.3761C93.4087 35.5031 91.8968 34.2154 89.6871 34.2154C85.5004 34.2154 78.4061 40.5368 74.9171 52.7114ZM39.911 83.4991C30.0256 83.4991 29.2115 93.3324 39.0969 93.3324C43.5163 93.3324 48.8661 91.5764 51.6573 88.4157C47.5868 84.9038 44.2141 83.4991 39.911 83.4991ZM102.829 79.2848C103.41 95.7907 95.0369 105.039 80.8484 105.039C72.4748 105.039 68.2881 101.878 59.333 96.0249C54.681 101.176 45.8423 105.039 38.5154 105.039C13.2785 105.039 14.3252 72.8463 40.0273 72.8463C45.3771 72.8463 49.9128 74.2511 55.7277 77.88L59.5656 64.4177C43.7489 60.0864 35.8405 47.9118 43.6326 30.4693H56.1929C49.215 42.0586 53.9832 51.6578 62.822 52.7114C67.5903 35.7372 77.8246 22.509 91.4316 22.509C99.1074 22.509 105.155 27.5428 105.155 36.6737C105.155 51.3066 86.0819 63.2471 71.6607 64.4177L65.7295 85.3721C72.4748 93.2153 91.199 100.824 91.199 79.2848H102.829Z",
|
|
@@ -4397,7 +2005,7 @@ var LeatherLogo = (_a) => {
|
|
|
4397
2005
|
})
|
|
4398
2006
|
);
|
|
4399
2007
|
}
|
|
4400
|
-
return /* @__PURE__ */
|
|
2008
|
+
return /* @__PURE__ */ jsxs2(
|
|
4401
2009
|
"svg",
|
|
4402
2010
|
__spreadProps(__spreadValues({
|
|
4403
2011
|
className,
|
|
@@ -4408,8 +2016,8 @@ var LeatherLogo = (_a) => {
|
|
|
4408
2016
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4409
2017
|
}, props), {
|
|
4410
2018
|
children: [
|
|
4411
|
-
/* @__PURE__ */
|
|
4412
|
-
/* @__PURE__ */
|
|
2019
|
+
/* @__PURE__ */ jsx3("rect", { width: "128", height: "128", rx: "26.8387", fill: "#F5F1ED" }),
|
|
2020
|
+
/* @__PURE__ */ jsx3(
|
|
4413
2021
|
"path",
|
|
4414
2022
|
{
|
|
4415
2023
|
d: "M74.9171 52.7115C82.4766 51.5409 93.4087 43.5806 93.4087 37.3762C93.4087 35.5032 91.8968 34.2155 89.6871 34.2155C85.5004 34.2155 78.4061 40.5369 74.9171 52.7115ZM39.911 83.4992C30.0256 83.4992 29.2115 93.3325 39.0969 93.3325C43.5163 93.3325 48.8661 91.5766 51.6573 88.4159C47.5868 84.904 44.2141 83.4992 39.911 83.4992ZM102.829 79.2849C103.41 95.7908 95.0369 105.039 80.8484 105.039C72.4748 105.039 68.2881 101.878 59.333 96.025C54.681 101.176 45.8423 105.039 38.5154 105.039C13.2785 105.039 14.3252 72.8464 40.0273 72.8464C45.3771 72.8464 49.9128 74.2512 55.7277 77.8801L59.5656 64.4179C43.7489 60.0865 35.8405 47.9119 43.6326 30.4695H56.1929C49.215 42.0587 53.9832 51.6579 62.822 52.7115C67.5903 35.7373 77.8246 22.5092 91.4316 22.5092C99.1074 22.5092 105.155 27.5429 105.155 36.6738C105.155 51.3068 86.0819 63.2472 71.6607 64.4179L65.7295 85.3722C72.4748 93.2155 91.199 100.825 91.199 79.2849H102.829Z",
|
|
@@ -4422,7 +2030,7 @@ var LeatherLogo = (_a) => {
|
|
|
4422
2030
|
};
|
|
4423
2031
|
|
|
4424
2032
|
// src/icons/phantom.tsx
|
|
4425
|
-
import { jsx as
|
|
2033
|
+
import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
4426
2034
|
var PhantomLogo = (_a) => {
|
|
4427
2035
|
var _b = _a, {
|
|
4428
2036
|
size = 42,
|
|
@@ -4434,7 +2042,7 @@ var PhantomLogo = (_a) => {
|
|
|
4434
2042
|
"className"
|
|
4435
2043
|
]);
|
|
4436
2044
|
if (variant === "first") {
|
|
4437
|
-
return /* @__PURE__ */
|
|
2045
|
+
return /* @__PURE__ */ jsxs3(
|
|
4438
2046
|
"svg",
|
|
4439
2047
|
__spreadProps(__spreadValues({
|
|
4440
2048
|
className,
|
|
@@ -4445,15 +2053,15 @@ var PhantomLogo = (_a) => {
|
|
|
4445
2053
|
fill: "none"
|
|
4446
2054
|
}, props), {
|
|
4447
2055
|
children: [
|
|
4448
|
-
/* @__PURE__ */
|
|
4449
|
-
/* @__PURE__ */
|
|
2056
|
+
/* @__PURE__ */ jsxs3("g", { clipPath: "url(#a)", children: [
|
|
2057
|
+
/* @__PURE__ */ jsx4(
|
|
4450
2058
|
"path",
|
|
4451
2059
|
{
|
|
4452
2060
|
fill: "#AB9FF2",
|
|
4453
2061
|
d: "M32 0H10C4.477 0 0 4.477 0 10v22c0 5.523 4.477 10 10 10h22c5.523 0 10-4.477 10-10V10c0-5.523-4.477-10-10-10Z"
|
|
4454
2062
|
}
|
|
4455
2063
|
),
|
|
4456
|
-
/* @__PURE__ */
|
|
2064
|
+
/* @__PURE__ */ jsx4(
|
|
4457
2065
|
"path",
|
|
4458
2066
|
{
|
|
4459
2067
|
fill: "#FFFDF8",
|
|
@@ -4463,12 +2071,12 @@ var PhantomLogo = (_a) => {
|
|
|
4463
2071
|
}
|
|
4464
2072
|
)
|
|
4465
2073
|
] }),
|
|
4466
|
-
/* @__PURE__ */
|
|
2074
|
+
/* @__PURE__ */ jsx4("defs", { children: /* @__PURE__ */ jsx4("clipPath", { id: "a", children: /* @__PURE__ */ jsx4("path", { fill: "#fff", d: "M0 0h42v42H0z" }) }) })
|
|
4467
2075
|
]
|
|
4468
2076
|
})
|
|
4469
2077
|
);
|
|
4470
2078
|
}
|
|
4471
|
-
return /* @__PURE__ */
|
|
2079
|
+
return /* @__PURE__ */ jsxs3(
|
|
4472
2080
|
"svg",
|
|
4473
2081
|
__spreadProps(__spreadValues({
|
|
4474
2082
|
className,
|
|
@@ -4479,15 +2087,15 @@ var PhantomLogo = (_a) => {
|
|
|
4479
2087
|
fill: "none"
|
|
4480
2088
|
}, props), {
|
|
4481
2089
|
children: [
|
|
4482
|
-
/* @__PURE__ */
|
|
4483
|
-
/* @__PURE__ */
|
|
2090
|
+
/* @__PURE__ */ jsxs3("g", { clipPath: "url(#a)", children: [
|
|
2091
|
+
/* @__PURE__ */ jsx4(
|
|
4484
2092
|
"path",
|
|
4485
2093
|
{
|
|
4486
2094
|
fill: "#FFFDF8",
|
|
4487
2095
|
d: "M32 0H10C4.477 0 0 4.477 0 10v22c0 5.523 4.477 10 10 10h22c5.523 0 10-4.477 10-10V10c0-5.523-4.477-10-10-10Z"
|
|
4488
2096
|
}
|
|
4489
2097
|
),
|
|
4490
|
-
/* @__PURE__ */
|
|
2098
|
+
/* @__PURE__ */ jsx4(
|
|
4491
2099
|
"path",
|
|
4492
2100
|
{
|
|
4493
2101
|
fill: "#AB9FF2",
|
|
@@ -4497,14 +2105,14 @@ var PhantomLogo = (_a) => {
|
|
|
4497
2105
|
}
|
|
4498
2106
|
)
|
|
4499
2107
|
] }),
|
|
4500
|
-
/* @__PURE__ */
|
|
2108
|
+
/* @__PURE__ */ jsx4("defs", { children: /* @__PURE__ */ jsx4("clipPath", { id: "a", children: /* @__PURE__ */ jsx4("path", { fill: "#fff", d: "M0 0h42v42H0z" }) }) })
|
|
4501
2109
|
]
|
|
4502
2110
|
})
|
|
4503
2111
|
);
|
|
4504
2112
|
};
|
|
4505
2113
|
|
|
4506
2114
|
// src/icons/xverse.tsx
|
|
4507
|
-
import { jsx as
|
|
2115
|
+
import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
4508
2116
|
var XverseLogo = (_a) => {
|
|
4509
2117
|
var _b = _a, {
|
|
4510
2118
|
size = 42,
|
|
@@ -4515,7 +2123,7 @@ var XverseLogo = (_a) => {
|
|
|
4515
2123
|
"variant",
|
|
4516
2124
|
"className"
|
|
4517
2125
|
]);
|
|
4518
|
-
return /* @__PURE__ */
|
|
2126
|
+
return /* @__PURE__ */ jsxs4(
|
|
4519
2127
|
"svg",
|
|
4520
2128
|
__spreadProps(__spreadValues({
|
|
4521
2129
|
className,
|
|
@@ -4526,22 +2134,22 @@ var XverseLogo = (_a) => {
|
|
|
4526
2134
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4527
2135
|
}, props), {
|
|
4528
2136
|
children: [
|
|
4529
|
-
/* @__PURE__ */
|
|
4530
|
-
/* @__PURE__ */
|
|
2137
|
+
/* @__PURE__ */ jsxs4("g", { clipPath: "url(#clip0_3_53)", children: [
|
|
2138
|
+
/* @__PURE__ */ jsx5(
|
|
4531
2139
|
"path",
|
|
4532
2140
|
{
|
|
4533
2141
|
d: "M32 0H10C4.47715 0 0 4.47715 0 10V32C0 37.5228 4.47715 42 10 42H32C37.5228 42 42 37.5228 42 32V10C42 4.47715 37.5228 0 32 0Z",
|
|
4534
2142
|
fill: "#181818"
|
|
4535
2143
|
}
|
|
4536
2144
|
),
|
|
4537
|
-
/* @__PURE__ */
|
|
2145
|
+
/* @__PURE__ */ jsx5(
|
|
4538
2146
|
"path",
|
|
4539
2147
|
{
|
|
4540
2148
|
d: "M32 31.6745V27.6829C32 27.5233 31.9203 27.3636 31.8406 27.2438L14.8225 10.1597C14.7029 10.0399 14.5435 10 14.3841 10H10.3986C10.1993 10 10.0399 10.1597 10.0399 10.3592V14.0715C10.0399 14.2311 10.1196 14.3908 10.1993 14.5105L16.2971 20.6177C16.4565 20.7774 16.4565 20.977 16.2971 21.1366L10.1196 27.3237C10.0399 27.4035 10 27.4834 10 27.5632V31.6346C10 31.8342 10.1594 31.9939 10.3587 31.9939H17.0544C17.2536 31.9939 17.413 31.8342 17.413 31.6346V29.2396C17.413 29.1598 17.4529 29.0401 17.5326 29.0002L20.8406 25.6871C21 25.5275 21.1993 25.5275 21.3587 25.6871L27.4964 31.8342C27.6159 31.954 27.7753 31.9939 27.9348 31.9939H31.6413C31.8406 32.0337 32 31.8741 32 31.6745Z",
|
|
4541
2149
|
fill: "white"
|
|
4542
2150
|
}
|
|
4543
2151
|
),
|
|
4544
|
-
/* @__PURE__ */
|
|
2152
|
+
/* @__PURE__ */ jsx5(
|
|
4545
2153
|
"path",
|
|
4546
2154
|
{
|
|
4547
2155
|
d: "M23.3406 15.0793H26.5592C26.7507 15.0793 26.9039 15.2333 26.9039 15.4257V18.658C26.9039 18.9658 27.2871 19.1197 27.4788 18.8888L31.8851 14.4637C31.9617 14.3867 32 14.3097 32 14.2328V10.3463C32 10.1539 31.8468 10 31.6552 10H27.7469C27.6703 10 27.5554 10.0385 27.5171 10.1154L23.1107 14.5021C22.8808 14.6945 23.0341 15.0793 23.3406 15.0793Z",
|
|
@@ -4549,14 +2157,14 @@ var XverseLogo = (_a) => {
|
|
|
4549
2157
|
}
|
|
4550
2158
|
)
|
|
4551
2159
|
] }),
|
|
4552
|
-
/* @__PURE__ */
|
|
2160
|
+
/* @__PURE__ */ jsx5("defs", { children: /* @__PURE__ */ jsx5("clipPath", { id: "clip0_3_53", children: /* @__PURE__ */ jsx5("rect", { width: "42", height: "42", fill: "white" }) }) })
|
|
4553
2161
|
]
|
|
4554
2162
|
})
|
|
4555
2163
|
);
|
|
4556
2164
|
};
|
|
4557
2165
|
|
|
4558
2166
|
// src/icons/unisat.tsx
|
|
4559
|
-
import { jsx as
|
|
2167
|
+
import { jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
4560
2168
|
var UnisatLogo = (_a) => {
|
|
4561
2169
|
var _b = _a, {
|
|
4562
2170
|
size = 42,
|
|
@@ -4567,7 +2175,7 @@ var UnisatLogo = (_a) => {
|
|
|
4567
2175
|
"variant",
|
|
4568
2176
|
"className"
|
|
4569
2177
|
]);
|
|
4570
|
-
return /* @__PURE__ */
|
|
2178
|
+
return /* @__PURE__ */ jsxs5(
|
|
4571
2179
|
"svg",
|
|
4572
2180
|
__spreadProps(__spreadValues({
|
|
4573
2181
|
className,
|
|
@@ -4578,29 +2186,29 @@ var UnisatLogo = (_a) => {
|
|
|
4578
2186
|
fill: "none"
|
|
4579
2187
|
}, props), {
|
|
4580
2188
|
children: [
|
|
4581
|
-
/* @__PURE__ */
|
|
4582
|
-
/* @__PURE__ */
|
|
2189
|
+
/* @__PURE__ */ jsxs5("g", { clipPath: "url(#a)", children: [
|
|
2190
|
+
/* @__PURE__ */ jsx6(
|
|
4583
2191
|
"path",
|
|
4584
2192
|
{
|
|
4585
2193
|
fill: "#000",
|
|
4586
2194
|
d: "M32 0H10C4.477 0 0 4.477 0 10v22c0 5.523 4.477 10 10 10h22c5.523 0 10-4.477 10-10V10c0-5.523-4.477-10-10-10Z"
|
|
4587
2195
|
}
|
|
4588
2196
|
),
|
|
4589
|
-
/* @__PURE__ */
|
|
2197
|
+
/* @__PURE__ */ jsx6(
|
|
4590
2198
|
"path",
|
|
4591
2199
|
{
|
|
4592
2200
|
fill: "url(#b)",
|
|
4593
2201
|
d: "m25.517 9.483 5.759 5.611c.49.477.731.959.724 1.445-.008.486-.219.929-.631 1.33-.431.421-.897.634-1.395.644-.497.007-.992-.228-1.482-.705l-5.89-5.738c-.669-.652-1.315-1.114-1.936-1.385a2.873 2.873 0 0 0-1.96-.127c-.685.185-1.42.662-2.21 1.428-1.086 1.06-1.605 2.054-1.552 2.983.053.929.593 1.893 1.617 2.89l5.938 5.786c.496.482.74.964.732 1.443-.008.48-.22.923-.64 1.332-.419.408-.88.62-1.382.638-.502.016-1.001-.217-1.495-.7l-5.76-5.61c-.936-.912-1.613-1.776-2.029-2.59-.416-.815-.572-1.737-.464-2.765.097-.88.384-1.732.863-2.558.477-.827 1.161-1.671 2.048-2.537C15.43 9.268 16.438 8.48 17.4 7.93c.96-.55 1.889-.854 2.786-.917.899-.064 1.784.112 2.66.527.876.415 1.765 1.061 2.67 1.943h.002Z"
|
|
4594
2202
|
}
|
|
4595
2203
|
),
|
|
4596
|
-
/* @__PURE__ */
|
|
2204
|
+
/* @__PURE__ */ jsx6(
|
|
4597
2205
|
"path",
|
|
4598
2206
|
{
|
|
4599
2207
|
fill: "url(#c)",
|
|
4600
2208
|
d: "m16.482 32.123-5.758-5.611c-.49-.479-.731-.959-.724-1.445.008-.486.219-.929.631-1.33.431-.421.897-.634 1.395-.644.498-.007.992.227 1.482.705l5.888 5.738c.671.652 1.315 1.114 1.936 1.385.622.27 1.276.312 1.962.127.685-.185 1.42-.662 2.21-1.43 1.086-1.06 1.605-2.054 1.552-2.983-.053-.929-.593-1.893-1.617-2.891l-3.164-3.056c-.496-.482-.74-.964-.732-1.443.008-.48.22-.923.64-1.332.419-.408.88-.62 1.382-.638.502-.016 1.002.217 1.496.7l2.983 2.88c.936.912 1.613 1.775 2.03 2.59.415.815.571 1.736.463 2.764a6.477 6.477 0 0 1-.863 2.559c-.477.826-1.16 1.67-2.048 2.536-1.057 1.03-2.066 1.819-3.027 2.368-.962.55-1.89.856-2.79.92-.898.063-1.784-.113-2.66-.527-.876-.415-1.765-1.062-2.67-1.944l.003.002Z"
|
|
4601
2209
|
}
|
|
4602
2210
|
),
|
|
4603
|
-
/* @__PURE__ */
|
|
2211
|
+
/* @__PURE__ */ jsx6(
|
|
4604
2212
|
"path",
|
|
4605
2213
|
{
|
|
4606
2214
|
fill: "url(#d)",
|
|
@@ -4608,8 +2216,8 @@ var UnisatLogo = (_a) => {
|
|
|
4608
2216
|
}
|
|
4609
2217
|
)
|
|
4610
2218
|
] }),
|
|
4611
|
-
/* @__PURE__ */
|
|
4612
|
-
/* @__PURE__ */
|
|
2219
|
+
/* @__PURE__ */ jsxs5("defs", { children: [
|
|
2220
|
+
/* @__PURE__ */ jsxs5(
|
|
4613
2221
|
"linearGradient",
|
|
4614
2222
|
{
|
|
4615
2223
|
id: "b",
|
|
@@ -4619,14 +2227,14 @@ var UnisatLogo = (_a) => {
|
|
|
4619
2227
|
y2: 20.772,
|
|
4620
2228
|
gradientUnits: "userSpaceOnUse",
|
|
4621
2229
|
children: [
|
|
4622
|
-
/* @__PURE__ */
|
|
4623
|
-
/* @__PURE__ */
|
|
4624
|
-
/* @__PURE__ */
|
|
4625
|
-
/* @__PURE__ */
|
|
2230
|
+
/* @__PURE__ */ jsx6("stop", { stopColor: "#201C1B" }),
|
|
2231
|
+
/* @__PURE__ */ jsx6("stop", { offset: 0.36, stopColor: "#77390D" }),
|
|
2232
|
+
/* @__PURE__ */ jsx6("stop", { offset: 0.67, stopColor: "#EA8101" }),
|
|
2233
|
+
/* @__PURE__ */ jsx6("stop", { offset: 1, stopColor: "#F4B852" })
|
|
4626
2234
|
]
|
|
4627
2235
|
}
|
|
4628
2236
|
),
|
|
4629
|
-
/* @__PURE__ */
|
|
2237
|
+
/* @__PURE__ */ jsxs5(
|
|
4630
2238
|
"linearGradient",
|
|
4631
2239
|
{
|
|
4632
2240
|
id: "c",
|
|
@@ -4636,14 +2244,14 @@ var UnisatLogo = (_a) => {
|
|
|
4636
2244
|
y2: 22.844,
|
|
4637
2245
|
gradientUnits: "userSpaceOnUse",
|
|
4638
2246
|
children: [
|
|
4639
|
-
/* @__PURE__ */
|
|
4640
|
-
/* @__PURE__ */
|
|
4641
|
-
/* @__PURE__ */
|
|
4642
|
-
/* @__PURE__ */
|
|
2247
|
+
/* @__PURE__ */ jsx6("stop", { stopColor: "#1F1D1C" }),
|
|
2248
|
+
/* @__PURE__ */ jsx6("stop", { offset: 0.37, stopColor: "#77390D" }),
|
|
2249
|
+
/* @__PURE__ */ jsx6("stop", { offset: 0.67, stopColor: "#EA8101" }),
|
|
2250
|
+
/* @__PURE__ */ jsx6("stop", { offset: 1, stopColor: "#F4FB52" })
|
|
4643
2251
|
]
|
|
4644
2252
|
}
|
|
4645
2253
|
),
|
|
4646
|
-
/* @__PURE__ */
|
|
2254
|
+
/* @__PURE__ */ jsxs5(
|
|
4647
2255
|
"radialGradient",
|
|
4648
2256
|
{
|
|
4649
2257
|
id: "d",
|
|
@@ -4653,14 +2261,14 @@ var UnisatLogo = (_a) => {
|
|
|
4653
2261
|
gradientTransform: "matrix(2.11484 0 0 2.08019 20.073 15.567)",
|
|
4654
2262
|
gradientUnits: "userSpaceOnUse",
|
|
4655
2263
|
children: [
|
|
4656
|
-
/* @__PURE__ */
|
|
4657
|
-
/* @__PURE__ */
|
|
4658
|
-
/* @__PURE__ */
|
|
4659
|
-
/* @__PURE__ */
|
|
2264
|
+
/* @__PURE__ */ jsx6("stop", { stopColor: "#F4B852" }),
|
|
2265
|
+
/* @__PURE__ */ jsx6("stop", { offset: 0.33, stopColor: "#EA8101" }),
|
|
2266
|
+
/* @__PURE__ */ jsx6("stop", { offset: 0.64, stopColor: "#77390D" }),
|
|
2267
|
+
/* @__PURE__ */ jsx6("stop", { offset: 1, stopColor: "#211C1D" })
|
|
4660
2268
|
]
|
|
4661
2269
|
}
|
|
4662
2270
|
),
|
|
4663
|
-
/* @__PURE__ */
|
|
2271
|
+
/* @__PURE__ */ jsx6("clipPath", { id: "a", children: /* @__PURE__ */ jsx6("path", { fill: "#fff", d: "M0 0h42v42H0z" }) })
|
|
4664
2272
|
] })
|
|
4665
2273
|
]
|
|
4666
2274
|
})
|
|
@@ -4668,7 +2276,7 @@ var UnisatLogo = (_a) => {
|
|
|
4668
2276
|
};
|
|
4669
2277
|
|
|
4670
2278
|
// src/icons/wizz.tsx
|
|
4671
|
-
import { jsx as
|
|
2279
|
+
import { jsx as jsx7, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
4672
2280
|
var WizzLogo = (_a) => {
|
|
4673
2281
|
var _b = _a, {
|
|
4674
2282
|
size = 42,
|
|
@@ -4679,7 +2287,7 @@ var WizzLogo = (_a) => {
|
|
|
4679
2287
|
"variant",
|
|
4680
2288
|
"className"
|
|
4681
2289
|
]);
|
|
4682
|
-
return /* @__PURE__ */
|
|
2290
|
+
return /* @__PURE__ */ jsxs6(
|
|
4683
2291
|
"svg",
|
|
4684
2292
|
__spreadProps(__spreadValues({
|
|
4685
2293
|
className,
|
|
@@ -4690,37 +2298,37 @@ var WizzLogo = (_a) => {
|
|
|
4690
2298
|
fill: "none"
|
|
4691
2299
|
}, props), {
|
|
4692
2300
|
children: [
|
|
4693
|
-
/* @__PURE__ */
|
|
4694
|
-
/* @__PURE__ */
|
|
2301
|
+
/* @__PURE__ */ jsxs6("g", { clipPath: "url(#a)", children: [
|
|
2302
|
+
/* @__PURE__ */ jsx7(
|
|
4695
2303
|
"path",
|
|
4696
2304
|
{
|
|
4697
2305
|
fill: "#000",
|
|
4698
2306
|
d: "M32 0H10C4.477 0 0 4.477 0 10v22c0 5.523 4.477 10 10 10h22c5.523 0 10-4.477 10-10V10c0-5.523-4.477-10-10-10Z"
|
|
4699
2307
|
}
|
|
4700
2308
|
),
|
|
4701
|
-
/* @__PURE__ */
|
|
4702
|
-
/* @__PURE__ */
|
|
2309
|
+
/* @__PURE__ */ jsxs6("g", { fillRule: "evenodd", clipPath: "url(#b)", clipRule: "evenodd", children: [
|
|
2310
|
+
/* @__PURE__ */ jsx7(
|
|
4703
2311
|
"path",
|
|
4704
2312
|
{
|
|
4705
2313
|
fill: "#FFD815",
|
|
4706
2314
|
d: "m26.507 17.74-1.623-1.623-1.624 1.623 1.623 1.623 1.624 1.624 1.623-1.624-1.623-1.623Z"
|
|
4707
2315
|
}
|
|
4708
2316
|
),
|
|
4709
|
-
/* @__PURE__ */
|
|
2317
|
+
/* @__PURE__ */ jsx7(
|
|
4710
2318
|
"path",
|
|
4711
2319
|
{
|
|
4712
2320
|
fill: "#FF9813",
|
|
4713
2321
|
d: "m26.507 8-1.624 1.623 1.624 1.624 1.623-1.624L26.507 8ZM33 14.493l-1.623-1.623-1.624 1.623 1.624 1.623L33 14.493ZM23.26 27.48l1.623 1.623 1.624-1.623-1.623-1.624-1.624 1.624ZM11.897 16.117l1.623 1.623 1.623-1.623-1.623-1.624-1.623 1.624ZM20.014 8 18.39 9.623l1.624 1.624 1.623-1.624L20.014 8ZM13.52 11.247l1.624 1.623 1.623-1.623-1.623-1.624-1.624 1.624ZM31.377 19.363l-1.624 1.623 1.624 1.624L33 20.987l-1.623-1.624ZM28.13 25.856l1.623 1.624 1.624-1.624-1.624-1.623-1.623 1.623Z"
|
|
4714
2322
|
}
|
|
4715
2323
|
),
|
|
4716
|
-
/* @__PURE__ */
|
|
2324
|
+
/* @__PURE__ */ jsx7(
|
|
4717
2325
|
"path",
|
|
4718
2326
|
{
|
|
4719
2327
|
fill: "#5B5B72",
|
|
4720
2328
|
d: "m26.507 20.986-1.624-1.623-1.623 1.623-1.623-1.623-1.623-1.623 1.623-1.624-1.623-1.623-1.624-1.623-1.623 1.623 1.623 1.623-1.623 1.624 1.623 1.623-1.623 1.623-.812-.811-1.623 1.623 1.623 1.623-1.623 1.624-1.543 1.542-1.542 1.543-1.624 1.623L8 31.377 9.623 33l1.624-1.623 1.623-1.624 1.543-1.542.08-.08 1.462-1.463.08-.08 1.544-1.543 1.623 1.623 1.623-1.623-.811-.812 1.623-1.623 1.623 1.623 1.623-1.623 1.624 1.623 1.623-1.623-1.623-1.624Z"
|
|
4721
2329
|
}
|
|
4722
2330
|
),
|
|
4723
|
-
/* @__PURE__ */
|
|
2331
|
+
/* @__PURE__ */ jsx7(
|
|
4724
2332
|
"path",
|
|
4725
2333
|
{
|
|
4726
2334
|
fill: "#FF9813",
|
|
@@ -4729,9 +2337,9 @@ var WizzLogo = (_a) => {
|
|
|
4729
2337
|
)
|
|
4730
2338
|
] })
|
|
4731
2339
|
] }),
|
|
4732
|
-
/* @__PURE__ */
|
|
4733
|
-
/* @__PURE__ */
|
|
4734
|
-
/* @__PURE__ */
|
|
2340
|
+
/* @__PURE__ */ jsxs6("defs", { children: [
|
|
2341
|
+
/* @__PURE__ */ jsx7("clipPath", { id: "a", children: /* @__PURE__ */ jsx7("path", { fill: "#fff", d: "M0 0h42v42H0z" }) }),
|
|
2342
|
+
/* @__PURE__ */ jsx7("clipPath", { id: "b", children: /* @__PURE__ */ jsx7("path", { fill: "#fff", d: "M8 8h25v25H8z" }) })
|
|
4735
2343
|
] })
|
|
4736
2344
|
]
|
|
4737
2345
|
})
|
|
@@ -4739,7 +2347,7 @@ var WizzLogo = (_a) => {
|
|
|
4739
2347
|
};
|
|
4740
2348
|
|
|
4741
2349
|
// src/icons/okx.tsx
|
|
4742
|
-
import { jsx as
|
|
2350
|
+
import { jsx as jsx8, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
4743
2351
|
var OkxLogo = (_a) => {
|
|
4744
2352
|
var _b = _a, {
|
|
4745
2353
|
size = 42,
|
|
@@ -4750,7 +2358,7 @@ var OkxLogo = (_a) => {
|
|
|
4750
2358
|
"variant",
|
|
4751
2359
|
"className"
|
|
4752
2360
|
]);
|
|
4753
|
-
return /* @__PURE__ */
|
|
2361
|
+
return /* @__PURE__ */ jsxs7(
|
|
4754
2362
|
"svg",
|
|
4755
2363
|
__spreadProps(__spreadValues({
|
|
4756
2364
|
className,
|
|
@@ -4761,19 +2369,19 @@ var OkxLogo = (_a) => {
|
|
|
4761
2369
|
fill: "none"
|
|
4762
2370
|
}, props), {
|
|
4763
2371
|
children: [
|
|
4764
|
-
/* @__PURE__ */
|
|
4765
|
-
/* @__PURE__ */
|
|
2372
|
+
/* @__PURE__ */ jsxs7("g", { clipPath: "url(#a)", children: [
|
|
2373
|
+
/* @__PURE__ */ jsx8(
|
|
4766
2374
|
"path",
|
|
4767
2375
|
{
|
|
4768
2376
|
fill: "#000",
|
|
4769
2377
|
d: "M32 0H10C4.477 0 0 4.477 0 10v22c0 5.523 4.477 10 10 10h22c5.523 0 10-4.477 10-10V10c0-5.523-4.477-10-10-10Z"
|
|
4770
2378
|
}
|
|
4771
2379
|
),
|
|
4772
|
-
/* @__PURE__ */
|
|
2380
|
+
/* @__PURE__ */ jsx8("g", { fill: "#fff", clipPath: "url(#b)", children: /* @__PURE__ */ jsx8("path", { d: "M24.578 17.052h-6.787a.523.523 0 0 0-.52.52v6.788c0 .286.235.52.52.52h6.787c.286 0 .521-.234.521-.52v-6.787a.523.523 0 0 0-.52-.521ZM16.733 9.223H9.946a.523.523 0 0 0-.521.521v6.787c0 .286.235.521.52.521h6.788c.285 0 .52-.235.52-.52V9.743a.523.523 0 0 0-.52-.52ZM32.424 9.223h-6.787a.523.523 0 0 0-.521.521v6.787c0 .286.235.521.52.521h6.788c.286 0 .52-.235.52-.52V9.743a.523.523 0 0 0-.52-.52ZM16.733 24.898H9.946a.523.523 0 0 0-.521.52v6.788c0 .285.235.52.52.52h6.788c.285 0 .52-.235.52-.52v-6.788a.523.523 0 0 0-.52-.52ZM32.424 24.898h-6.787a.523.523 0 0 0-.521.52v6.788c0 .285.235.52.52.52h6.788c.286 0 .52-.235.52-.52v-6.788a.523.523 0 0 0-.52-.52Z" }) })
|
|
4773
2381
|
] }),
|
|
4774
|
-
/* @__PURE__ */
|
|
4775
|
-
/* @__PURE__ */
|
|
4776
|
-
/* @__PURE__ */
|
|
2382
|
+
/* @__PURE__ */ jsxs7("defs", { children: [
|
|
2383
|
+
/* @__PURE__ */ jsx8("clipPath", { id: "a", children: /* @__PURE__ */ jsx8("path", { fill: "#fff", d: "M0 0h42v42H0z" }) }),
|
|
2384
|
+
/* @__PURE__ */ jsx8("clipPath", { id: "b", children: /* @__PURE__ */ jsx8("path", { fill: "#fff", d: "M0 0h42v42H0z" }) })
|
|
4777
2385
|
] })
|
|
4778
2386
|
]
|
|
4779
2387
|
})
|
|
@@ -4781,7 +2389,7 @@ var OkxLogo = (_a) => {
|
|
|
4781
2389
|
};
|
|
4782
2390
|
|
|
4783
2391
|
// src/icons/magiceden.tsx
|
|
4784
|
-
import { jsx as
|
|
2392
|
+
import { jsx as jsx9, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
4785
2393
|
var MagicEdenLogo = (_a) => {
|
|
4786
2394
|
var _b = _a, {
|
|
4787
2395
|
size = 42,
|
|
@@ -4792,7 +2400,7 @@ var MagicEdenLogo = (_a) => {
|
|
|
4792
2400
|
"variant",
|
|
4793
2401
|
"className"
|
|
4794
2402
|
]);
|
|
4795
|
-
return /* @__PURE__ */
|
|
2403
|
+
return /* @__PURE__ */ jsxs8(
|
|
4796
2404
|
"svg",
|
|
4797
2405
|
__spreadProps(__spreadValues({
|
|
4798
2406
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4803,15 +2411,15 @@ var MagicEdenLogo = (_a) => {
|
|
|
4803
2411
|
fill: "none"
|
|
4804
2412
|
}, props), {
|
|
4805
2413
|
children: [
|
|
4806
|
-
/* @__PURE__ */
|
|
4807
|
-
/* @__PURE__ */
|
|
2414
|
+
/* @__PURE__ */ jsxs8("g", { clipPath: "url(#clip0_17_93)", children: [
|
|
2415
|
+
/* @__PURE__ */ jsx9(
|
|
4808
2416
|
"path",
|
|
4809
2417
|
{
|
|
4810
2418
|
fill: "#070C34",
|
|
4811
2419
|
d: "M32 0H10C4.477 0 0 4.477 0 10v22c0 5.523 4.477 10 10 10h22c5.523 0 10-4.477 10-10V10c0-5.523-4.477-10-10-10Z"
|
|
4812
2420
|
}
|
|
4813
2421
|
),
|
|
4814
|
-
/* @__PURE__ */
|
|
2422
|
+
/* @__PURE__ */ jsx9(
|
|
4815
2423
|
"path",
|
|
4816
2424
|
{
|
|
4817
2425
|
fill: "url(#paint0_linear_17_93)",
|
|
@@ -4819,8 +2427,8 @@ var MagicEdenLogo = (_a) => {
|
|
|
4819
2427
|
}
|
|
4820
2428
|
)
|
|
4821
2429
|
] }),
|
|
4822
|
-
/* @__PURE__ */
|
|
4823
|
-
/* @__PURE__ */
|
|
2430
|
+
/* @__PURE__ */ jsxs8("defs", { children: [
|
|
2431
|
+
/* @__PURE__ */ jsxs8(
|
|
4824
2432
|
"linearGradient",
|
|
4825
2433
|
{
|
|
4826
2434
|
id: "paint0_linear_17_93",
|
|
@@ -4830,23 +2438,23 @@ var MagicEdenLogo = (_a) => {
|
|
|
4830
2438
|
y2: "30.176",
|
|
4831
2439
|
gradientUnits: "userSpaceOnUse",
|
|
4832
2440
|
children: [
|
|
4833
|
-
/* @__PURE__ */
|
|
4834
|
-
/* @__PURE__ */
|
|
4835
|
-
/* @__PURE__ */
|
|
4836
|
-
/* @__PURE__ */
|
|
4837
|
-
/* @__PURE__ */
|
|
4838
|
-
/* @__PURE__ */
|
|
4839
|
-
/* @__PURE__ */
|
|
4840
|
-
/* @__PURE__ */
|
|
4841
|
-
/* @__PURE__ */
|
|
4842
|
-
/* @__PURE__ */
|
|
4843
|
-
/* @__PURE__ */
|
|
4844
|
-
/* @__PURE__ */
|
|
4845
|
-
/* @__PURE__ */
|
|
2441
|
+
/* @__PURE__ */ jsx9("stop", { offset: "0.23", stopColor: "#FF0074" }),
|
|
2442
|
+
/* @__PURE__ */ jsx9("stop", { offset: "0.26", stopColor: "#FF0068" }),
|
|
2443
|
+
/* @__PURE__ */ jsx9("stop", { offset: "0.32", stopColor: "#FF0048" }),
|
|
2444
|
+
/* @__PURE__ */ jsx9("stop", { offset: "0.39", stopColor: "#FF0015" }),
|
|
2445
|
+
/* @__PURE__ */ jsx9("stop", { offset: "0.41", stopColor: "#FF0009" }),
|
|
2446
|
+
/* @__PURE__ */ jsx9("stop", { offset: "0.43", stopColor: "#FF0908" }),
|
|
2447
|
+
/* @__PURE__ */ jsx9("stop", { offset: "0.54", stopColor: "#FF4003" }),
|
|
2448
|
+
/* @__PURE__ */ jsx9("stop", { offset: "0.62", stopColor: "#FF6201" }),
|
|
2449
|
+
/* @__PURE__ */ jsx9("stop", { offset: "0.66", stopColor: "#FF6F00" }),
|
|
2450
|
+
/* @__PURE__ */ jsx9("stop", { offset: "0.72", stopColor: "#FF8700" }),
|
|
2451
|
+
/* @__PURE__ */ jsx9("stop", { offset: "0.83", stopColor: "#FFAB00" }),
|
|
2452
|
+
/* @__PURE__ */ jsx9("stop", { offset: "0.92", stopColor: "#FFC100" }),
|
|
2453
|
+
/* @__PURE__ */ jsx9("stop", { offset: "0.98", stopColor: "#FFCA00" })
|
|
4846
2454
|
]
|
|
4847
2455
|
}
|
|
4848
2456
|
),
|
|
4849
|
-
/* @__PURE__ */
|
|
2457
|
+
/* @__PURE__ */ jsx9("clipPath", { id: "clip0_17_93", children: /* @__PURE__ */ jsx9("path", { fill: "#fff", d: "M0 0h42v42H0z" }) })
|
|
4850
2458
|
] })
|
|
4851
2459
|
]
|
|
4852
2460
|
})
|
|
@@ -4854,7 +2462,7 @@ var MagicEdenLogo = (_a) => {
|
|
|
4854
2462
|
};
|
|
4855
2463
|
|
|
4856
2464
|
// src/icons/walletIcon.tsx
|
|
4857
|
-
import { jsx as
|
|
2465
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
4858
2466
|
var WalletIcon = ({
|
|
4859
2467
|
size,
|
|
4860
2468
|
className,
|
|
@@ -4862,26 +2470,27 @@ var WalletIcon = ({
|
|
|
4862
2470
|
walletName
|
|
4863
2471
|
}) => {
|
|
4864
2472
|
if (walletName === XVERSE) {
|
|
4865
|
-
return /* @__PURE__ */
|
|
2473
|
+
return /* @__PURE__ */ jsx10(XverseLogo, { size, className, variant });
|
|
4866
2474
|
} else if (walletName === WIZZ) {
|
|
4867
|
-
return /* @__PURE__ */
|
|
2475
|
+
return /* @__PURE__ */ jsx10(WizzLogo, { size, className, variant });
|
|
4868
2476
|
} else if (walletName === LEATHER) {
|
|
4869
|
-
return /* @__PURE__ */
|
|
2477
|
+
return /* @__PURE__ */ jsx10(LeatherLogo, { size, className, variant });
|
|
4870
2478
|
} else if (walletName === MAGIC_EDEN) {
|
|
4871
|
-
return /* @__PURE__ */
|
|
2479
|
+
return /* @__PURE__ */ jsx10(MagicEdenLogo, { size, className, variant });
|
|
4872
2480
|
} else if (walletName === OKX) {
|
|
4873
|
-
return /* @__PURE__ */
|
|
2481
|
+
return /* @__PURE__ */ jsx10(OkxLogo, { size, className, variant });
|
|
4874
2482
|
} else if (walletName === PHANTOM) {
|
|
4875
|
-
return /* @__PURE__ */
|
|
2483
|
+
return /* @__PURE__ */ jsx10(PhantomLogo, { size, className, variant });
|
|
4876
2484
|
} else if (walletName === UNISAT) {
|
|
4877
|
-
return /* @__PURE__ */
|
|
2485
|
+
return /* @__PURE__ */ jsx10(UnisatLogo, { size, className, variant });
|
|
4878
2486
|
} else if (walletName === OYL) {
|
|
4879
|
-
return /* @__PURE__ */
|
|
2487
|
+
return /* @__PURE__ */ jsx10(OylLogo, { size, className, variant });
|
|
4880
2488
|
} else {
|
|
4881
|
-
return /* @__PURE__ */
|
|
2489
|
+
return /* @__PURE__ */ jsx10(LeatherLogo, { size, className, variant });
|
|
4882
2490
|
}
|
|
4883
2491
|
};
|
|
4884
2492
|
export {
|
|
2493
|
+
FRACTAL_TESTNET,
|
|
4885
2494
|
LEATHER,
|
|
4886
2495
|
LEATHER_MAINNET,
|
|
4887
2496
|
LEATHER_TESTNET,
|
|
@@ -4913,6 +2522,7 @@ export {
|
|
|
4913
2522
|
SIGNET,
|
|
4914
2523
|
TESTNET,
|
|
4915
2524
|
UNISAT,
|
|
2525
|
+
UNISAT_FRACTAL_TESTNET,
|
|
4916
2526
|
UNISAT_MAINNET,
|
|
4917
2527
|
UNISAT_TESTNET,
|
|
4918
2528
|
UnisatLogo,
|