@omnisat/lasereyes 0.0.157-next.3 → 0.0.157-next.4
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.js +112 -112
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -65448,7 +65448,62 @@ const bCe = new Error(
|
|
|
65448
65448
|
), mCe = new Error("Wallet is not installed");
|
|
65449
65449
|
class Ql {
|
|
65450
65450
|
constructor(t, r, n) {
|
|
65451
|
-
Vt(this, "$store"), Vt(this, "$network"), Vt(this, "dataSourceManager"), this
|
|
65451
|
+
Vt(this, "$store"), Vt(this, "$network"), Vt(this, "dataSourceManager"), Vt(this, "send", async (o, i) => {
|
|
65452
|
+
switch (o) {
|
|
65453
|
+
case EG:
|
|
65454
|
+
const a = i;
|
|
65455
|
+
return await this.sendBTC(a.toAddress, a.amount);
|
|
65456
|
+
case _G: {
|
|
65457
|
+
if (this.$network.get() !== Li)
|
|
65458
|
+
throw new Error("Unsupported network");
|
|
65459
|
+
const s = i;
|
|
65460
|
+
if (!s.runeId || !s.amount || !s.toAddress)
|
|
65461
|
+
throw new Error("Missing required parameters");
|
|
65462
|
+
return await Z$e({
|
|
65463
|
+
runeId: s.runeId,
|
|
65464
|
+
amount: s.amount,
|
|
65465
|
+
ordinalAddress: this.$store.get().address,
|
|
65466
|
+
ordinalPublicKey: this.$store.get().publicKey,
|
|
65467
|
+
paymentAddress: this.$store.get().paymentAddress,
|
|
65468
|
+
paymentPublicKey: this.$store.get().paymentPublicKey,
|
|
65469
|
+
toAddress: s.toAddress,
|
|
65470
|
+
signPsbt: this.signPsbt.bind(this),
|
|
65471
|
+
network: this.$network.get()
|
|
65472
|
+
});
|
|
65473
|
+
}
|
|
65474
|
+
case SG: {
|
|
65475
|
+
if (this.$network.get() !== Li)
|
|
65476
|
+
throw new Error("Unsupported network");
|
|
65477
|
+
const s = i;
|
|
65478
|
+
if (!s.ticker || !s.amount || !s.toAddress)
|
|
65479
|
+
throw new Error("Missing required parameters");
|
|
65480
|
+
return await FNe({
|
|
65481
|
+
ticker: s.ticker,
|
|
65482
|
+
amount: s.amount,
|
|
65483
|
+
ordinalAddress: this.$store.get().address,
|
|
65484
|
+
ordinalPublicKey: this.$store.get().publicKey,
|
|
65485
|
+
paymentAddress: this.$store.get().paymentAddress,
|
|
65486
|
+
paymentPublicKey: this.$store.get().paymentPublicKey,
|
|
65487
|
+
signPsbt: this.signPsbt.bind(this),
|
|
65488
|
+
toAddress: s.toAddress,
|
|
65489
|
+
dataSourceManager: this.dataSourceManager,
|
|
65490
|
+
network: this.$network.get()
|
|
65491
|
+
});
|
|
65492
|
+
}
|
|
65493
|
+
case kG: {
|
|
65494
|
+
const s = i;
|
|
65495
|
+
if (!s.id || !s.amount || !s.toAddress)
|
|
65496
|
+
throw new Error("Missing required parameters");
|
|
65497
|
+
return await new The(this.parent).send(
|
|
65498
|
+
s.id,
|
|
65499
|
+
s.amount,
|
|
65500
|
+
s.toAddress
|
|
65501
|
+
);
|
|
65502
|
+
}
|
|
65503
|
+
default:
|
|
65504
|
+
throw new Error("Unsupported protocol");
|
|
65505
|
+
}
|
|
65506
|
+
}), this.parent = r, this.config = n, this.$store = t.$store, this.$network = t.$network, this.config = n;
|
|
65452
65507
|
try {
|
|
65453
65508
|
this.dataSourceManager = ey.getInstance();
|
|
65454
65509
|
} catch {
|
|
@@ -65534,61 +65589,6 @@ class Ql {
|
|
|
65534
65589
|
network: this.$network.get()
|
|
65535
65590
|
});
|
|
65536
65591
|
}
|
|
65537
|
-
async send(t, r) {
|
|
65538
|
-
switch (t) {
|
|
65539
|
-
case EG:
|
|
65540
|
-
return await this.sendBTC(r.toAddress, r.amount);
|
|
65541
|
-
case _G: {
|
|
65542
|
-
if (this.$network.get() !== Li)
|
|
65543
|
-
throw new Error("Unsupported network");
|
|
65544
|
-
const n = r;
|
|
65545
|
-
if (!n.runeId || !n.amount || !n.toAddress)
|
|
65546
|
-
throw new Error("Missing required parameters");
|
|
65547
|
-
return await Z$e({
|
|
65548
|
-
runeId: n.runeId,
|
|
65549
|
-
amount: n.amount,
|
|
65550
|
-
ordinalAddress: this.$store.get().address,
|
|
65551
|
-
ordinalPublicKey: this.$store.get().publicKey,
|
|
65552
|
-
paymentAddress: this.$store.get().paymentAddress,
|
|
65553
|
-
paymentPublicKey: this.$store.get().paymentPublicKey,
|
|
65554
|
-
toAddress: n.toAddress,
|
|
65555
|
-
signPsbt: this.signPsbt.bind(this),
|
|
65556
|
-
network: this.$network.get()
|
|
65557
|
-
});
|
|
65558
|
-
}
|
|
65559
|
-
case SG: {
|
|
65560
|
-
if (this.$network.get() !== Li)
|
|
65561
|
-
throw new Error("Unsupported network");
|
|
65562
|
-
const n = r;
|
|
65563
|
-
if (!n.ticker || !n.amount || !n.toAddress)
|
|
65564
|
-
throw new Error("Missing required parameters");
|
|
65565
|
-
return await FNe({
|
|
65566
|
-
ticker: n.ticker,
|
|
65567
|
-
amount: n.amount,
|
|
65568
|
-
ordinalAddress: this.$store.get().address,
|
|
65569
|
-
ordinalPublicKey: this.$store.get().publicKey,
|
|
65570
|
-
paymentAddress: this.$store.get().paymentAddress,
|
|
65571
|
-
paymentPublicKey: this.$store.get().paymentPublicKey,
|
|
65572
|
-
signPsbt: this.signPsbt.bind(this),
|
|
65573
|
-
toAddress: n.toAddress,
|
|
65574
|
-
dataSourceManager: this.dataSourceManager,
|
|
65575
|
-
network: this.$network.get()
|
|
65576
|
-
});
|
|
65577
|
-
}
|
|
65578
|
-
case kG: {
|
|
65579
|
-
const n = r;
|
|
65580
|
-
if (!n.id || !n.amount || !n.toAddress)
|
|
65581
|
-
throw new Error("Missing required parameters");
|
|
65582
|
-
return await new The(this.parent).send(
|
|
65583
|
-
n.id,
|
|
65584
|
-
n.amount,
|
|
65585
|
-
n.toAddress
|
|
65586
|
-
);
|
|
65587
|
-
}
|
|
65588
|
-
default:
|
|
65589
|
-
throw new Error("Unsupported protocol");
|
|
65590
|
-
}
|
|
65591
|
-
}
|
|
65592
65592
|
async sendInscriptions(t, r) {
|
|
65593
65593
|
if ((await this.getInscriptions()).filter(
|
|
65594
65594
|
(n) => t.includes(n.id)
|
|
@@ -149568,7 +149568,62 @@ const kht = new Error(
|
|
|
149568
149568
|
), xht = new Error("Wallet is not installed");
|
|
149569
149569
|
class rf {
|
|
149570
149570
|
constructor(t, r, n) {
|
|
149571
|
-
Wt(this, "$store"), Wt(this, "$network"), Wt(this, "dataSourceManager"), this
|
|
149571
|
+
Wt(this, "$store"), Wt(this, "$network"), Wt(this, "dataSourceManager"), Wt(this, "send", async (o, i) => {
|
|
149572
|
+
switch (o) {
|
|
149573
|
+
case zee:
|
|
149574
|
+
const a = i;
|
|
149575
|
+
return await this.sendBTC(a.toAddress, a.amount);
|
|
149576
|
+
case Fee: {
|
|
149577
|
+
if (this.$network.get() !== Di)
|
|
149578
|
+
throw new Error("Unsupported network");
|
|
149579
|
+
const s = i;
|
|
149580
|
+
if (!s.runeId || !s.amount || !s.toAddress)
|
|
149581
|
+
throw new Error("Missing required parameters");
|
|
149582
|
+
return await ist({
|
|
149583
|
+
runeId: s.runeId,
|
|
149584
|
+
amount: s.amount,
|
|
149585
|
+
ordinalAddress: this.$store.get().address,
|
|
149586
|
+
ordinalPublicKey: this.$store.get().publicKey,
|
|
149587
|
+
paymentAddress: this.$store.get().paymentAddress,
|
|
149588
|
+
paymentPublicKey: this.$store.get().paymentPublicKey,
|
|
149589
|
+
toAddress: s.toAddress,
|
|
149590
|
+
signPsbt: this.signPsbt.bind(this),
|
|
149591
|
+
network: this.$network.get()
|
|
149592
|
+
});
|
|
149593
|
+
}
|
|
149594
|
+
case jee: {
|
|
149595
|
+
if (this.$network.get() !== Di)
|
|
149596
|
+
throw new Error("Unsupported network");
|
|
149597
|
+
const s = i;
|
|
149598
|
+
if (!s.ticker || !s.amount || !s.toAddress)
|
|
149599
|
+
throw new Error("Missing required parameters");
|
|
149600
|
+
return await Wft({
|
|
149601
|
+
ticker: s.ticker,
|
|
149602
|
+
amount: s.amount,
|
|
149603
|
+
ordinalAddress: this.$store.get().address,
|
|
149604
|
+
ordinalPublicKey: this.$store.get().publicKey,
|
|
149605
|
+
paymentAddress: this.$store.get().paymentAddress,
|
|
149606
|
+
paymentPublicKey: this.$store.get().paymentPublicKey,
|
|
149607
|
+
signPsbt: this.signPsbt.bind(this),
|
|
149608
|
+
toAddress: s.toAddress,
|
|
149609
|
+
dataSourceManager: this.dataSourceManager,
|
|
149610
|
+
network: this.$network.get()
|
|
149611
|
+
});
|
|
149612
|
+
}
|
|
149613
|
+
case Lee: {
|
|
149614
|
+
const s = i;
|
|
149615
|
+
if (!s.id || !s.amount || !s.toAddress)
|
|
149616
|
+
throw new Error("Missing required parameters");
|
|
149617
|
+
return await new ame(this.parent).send(
|
|
149618
|
+
s.id,
|
|
149619
|
+
s.amount,
|
|
149620
|
+
s.toAddress
|
|
149621
|
+
);
|
|
149622
|
+
}
|
|
149623
|
+
default:
|
|
149624
|
+
throw new Error("Unsupported protocol");
|
|
149625
|
+
}
|
|
149626
|
+
}), this.parent = r, this.config = n, this.$store = t.$store, this.$network = t.$network, this.config = n;
|
|
149572
149627
|
try {
|
|
149573
149628
|
this.dataSourceManager = ay.getInstance();
|
|
149574
149629
|
} catch {
|
|
@@ -149654,61 +149709,6 @@ class rf {
|
|
|
149654
149709
|
network: this.$network.get()
|
|
149655
149710
|
});
|
|
149656
149711
|
}
|
|
149657
|
-
async send(t, r) {
|
|
149658
|
-
switch (t) {
|
|
149659
|
-
case zee:
|
|
149660
|
-
return await this.sendBTC(r.toAddress, r.amount);
|
|
149661
|
-
case Fee: {
|
|
149662
|
-
if (this.$network.get() !== Di)
|
|
149663
|
-
throw new Error("Unsupported network");
|
|
149664
|
-
const n = r;
|
|
149665
|
-
if (!n.runeId || !n.amount || !n.toAddress)
|
|
149666
|
-
throw new Error("Missing required parameters");
|
|
149667
|
-
return await ist({
|
|
149668
|
-
runeId: n.runeId,
|
|
149669
|
-
amount: n.amount,
|
|
149670
|
-
ordinalAddress: this.$store.get().address,
|
|
149671
|
-
ordinalPublicKey: this.$store.get().publicKey,
|
|
149672
|
-
paymentAddress: this.$store.get().paymentAddress,
|
|
149673
|
-
paymentPublicKey: this.$store.get().paymentPublicKey,
|
|
149674
|
-
toAddress: n.toAddress,
|
|
149675
|
-
signPsbt: this.signPsbt.bind(this),
|
|
149676
|
-
network: this.$network.get()
|
|
149677
|
-
});
|
|
149678
|
-
}
|
|
149679
|
-
case jee: {
|
|
149680
|
-
if (this.$network.get() !== Di)
|
|
149681
|
-
throw new Error("Unsupported network");
|
|
149682
|
-
const n = r;
|
|
149683
|
-
if (!n.ticker || !n.amount || !n.toAddress)
|
|
149684
|
-
throw new Error("Missing required parameters");
|
|
149685
|
-
return await Wft({
|
|
149686
|
-
ticker: n.ticker,
|
|
149687
|
-
amount: n.amount,
|
|
149688
|
-
ordinalAddress: this.$store.get().address,
|
|
149689
|
-
ordinalPublicKey: this.$store.get().publicKey,
|
|
149690
|
-
paymentAddress: this.$store.get().paymentAddress,
|
|
149691
|
-
paymentPublicKey: this.$store.get().paymentPublicKey,
|
|
149692
|
-
signPsbt: this.signPsbt.bind(this),
|
|
149693
|
-
toAddress: n.toAddress,
|
|
149694
|
-
dataSourceManager: this.dataSourceManager,
|
|
149695
|
-
network: this.$network.get()
|
|
149696
|
-
});
|
|
149697
|
-
}
|
|
149698
|
-
case Lee: {
|
|
149699
|
-
const n = r;
|
|
149700
|
-
if (!n.id || !n.amount || !n.toAddress)
|
|
149701
|
-
throw new Error("Missing required parameters");
|
|
149702
|
-
return await new ame(this.parent).send(
|
|
149703
|
-
n.id,
|
|
149704
|
-
n.amount,
|
|
149705
|
-
n.toAddress
|
|
149706
|
-
);
|
|
149707
|
-
}
|
|
149708
|
-
default:
|
|
149709
|
-
throw new Error("Unsupported protocol");
|
|
149710
|
-
}
|
|
149711
|
-
}
|
|
149712
149712
|
async sendInscriptions(t, r) {
|
|
149713
149713
|
if ((await this.getInscriptions()).filter(
|
|
149714
149714
|
(n) => t.includes(n.id)
|
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"url": "https://github.com/omnisat/lasereyes-mono.git"
|
|
21
21
|
},
|
|
22
22
|
"private": false,
|
|
23
|
-
"version": "0.0.157-next.
|
|
23
|
+
"version": "0.0.157-next.4",
|
|
24
24
|
"type": "module",
|
|
25
25
|
"module": "./dist/index.js",
|
|
26
26
|
"files": [
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"bip39": "^3.1.0",
|
|
42
|
-
"@omnisat/lasereyes-core": "0.0.79-next.
|
|
43
|
-
"@omnisat/lasereyes-react": "0.0.74-next.
|
|
42
|
+
"@omnisat/lasereyes-core": "0.0.79-next.4",
|
|
43
|
+
"@omnisat/lasereyes-react": "0.0.74-next.4"
|
|
44
44
|
},
|
|
45
45
|
"license": "MIT",
|
|
46
46
|
"publishConfig": {
|