@omnisat/lasereyes 0.0.153 → 0.0.154-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +52 -16
- package/dist/ui.js +26 -8
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -65465,7 +65465,7 @@ const hUe = new Error(
|
|
|
65465
65465
|
), dUe = new Error("Wallet is not installed");
|
|
65466
65466
|
let ml = class {
|
|
65467
65467
|
constructor(t, r, n) {
|
|
65468
|
-
Vt(this, "$store"), Vt(this, "$network"), Vt(this, "dataSourceManager"), this.parent = r, this.config = n, this.$store = t.$store, this.$network = t.$network;
|
|
65468
|
+
Vt(this, "$store"), Vt(this, "$network"), Vt(this, "dataSourceManager"), this.parent = r, this.config = n, this.$store = t.$store, this.$network = t.$network, this.config = n;
|
|
65469
65469
|
try {
|
|
65470
65470
|
this.dataSourceManager = ig.getInstance();
|
|
65471
65471
|
} catch {
|
|
@@ -65483,7 +65483,9 @@ let ml = class {
|
|
|
65483
65483
|
}
|
|
65484
65484
|
async getNetwork() {
|
|
65485
65485
|
const { address: t } = this.$store.get();
|
|
65486
|
-
return t.slice(0, 1) === "t" && [$a, As, Gs, Hs].includes(
|
|
65486
|
+
return t.slice(0, 1) === "t" && [$a, As, Gs, Hs].includes(
|
|
65487
|
+
this.$network.get()
|
|
65488
|
+
) ? this.$network.get() : ji;
|
|
65487
65489
|
}
|
|
65488
65490
|
async getPublicKey() {
|
|
65489
65491
|
return this.$store.get().publicKey;
|
|
@@ -65491,7 +65493,9 @@ let ml = class {
|
|
|
65491
65493
|
async getBalance() {
|
|
65492
65494
|
if (!this.dataSourceManager.getAddressBtcBalance)
|
|
65493
65495
|
throw new Error("Method not found on data source");
|
|
65494
|
-
return await this.dataSourceManager.getAddressBtcBalance(
|
|
65496
|
+
return await this.dataSourceManager.getAddressBtcBalance(
|
|
65497
|
+
this.$store.get().paymentAddress
|
|
65498
|
+
);
|
|
65495
65499
|
}
|
|
65496
65500
|
async getMetaBalances(t) {
|
|
65497
65501
|
switch (t) {
|
|
@@ -65502,16 +65506,22 @@ let ml = class {
|
|
|
65502
65506
|
throw new Error("Unsupported network");
|
|
65503
65507
|
if (!this.dataSourceManager.getAddressRunesBalances)
|
|
65504
65508
|
throw new Error("Method not found on data source");
|
|
65505
|
-
return await this.dataSourceManager.getAddressRunesBalances(
|
|
65509
|
+
return await this.dataSourceManager.getAddressRunesBalances(
|
|
65510
|
+
this.$store.get().address
|
|
65511
|
+
);
|
|
65506
65512
|
}
|
|
65507
65513
|
case hV:
|
|
65508
65514
|
if (!this.dataSourceManager.getAddressBrc20Balances)
|
|
65509
65515
|
throw new Error("Method not found on data source");
|
|
65510
|
-
return await this.dataSourceManager.getAddressBrc20Balances(
|
|
65516
|
+
return await this.dataSourceManager.getAddressBrc20Balances(
|
|
65517
|
+
this.$store.get().address
|
|
65518
|
+
);
|
|
65511
65519
|
case pV:
|
|
65512
65520
|
if (!this.dataSourceManager.getAddressAlkanesBalances)
|
|
65513
65521
|
throw new Error("Method not found on data source");
|
|
65514
|
-
return await this.dataSourceManager.getAddressAlkanesBalances(
|
|
65522
|
+
return await this.dataSourceManager.getAddressAlkanesBalances(
|
|
65523
|
+
this.$store.get().address
|
|
65524
|
+
);
|
|
65515
65525
|
default:
|
|
65516
65526
|
throw new Error("Unsupported protocol");
|
|
65517
65527
|
}
|
|
@@ -65519,7 +65529,11 @@ let ml = class {
|
|
|
65519
65529
|
async getInscriptions(t, r) {
|
|
65520
65530
|
if (!this.dataSourceManager.getAddressInscriptions)
|
|
65521
65531
|
throw new Error("Method not found on data source");
|
|
65522
|
-
return await this.dataSourceManager.getAddressInscriptions(
|
|
65532
|
+
return await this.dataSourceManager.getAddressInscriptions(
|
|
65533
|
+
this.$store.get().address,
|
|
65534
|
+
t,
|
|
65535
|
+
r
|
|
65536
|
+
);
|
|
65523
65537
|
}
|
|
65524
65538
|
async pushPsbt(t) {
|
|
65525
65539
|
let r = t;
|
|
@@ -65582,7 +65596,11 @@ let ml = class {
|
|
|
65582
65596
|
const n = r;
|
|
65583
65597
|
if (!n.id || !n.amount || !n.toAddress)
|
|
65584
65598
|
throw new Error("Missing required parameters");
|
|
65585
|
-
return await new fUe(this.parent).send(
|
|
65599
|
+
return await new fUe(this.parent).send(
|
|
65600
|
+
n.id,
|
|
65601
|
+
n.amount,
|
|
65602
|
+
n.toAddress
|
|
65603
|
+
);
|
|
65586
65604
|
}
|
|
65587
65605
|
default:
|
|
65588
65606
|
throw new Error("Unsupported protocol");
|
|
@@ -150774,7 +150792,7 @@ const Pst = new Error(
|
|
|
150774
150792
|
), Rst = new Error("Wallet is not installed");
|
|
150775
150793
|
class xl {
|
|
150776
150794
|
constructor(t, r, n) {
|
|
150777
|
-
Gt(this, "$store"), Gt(this, "$network"), Gt(this, "dataSourceManager"), this.parent = r, this.config = n, this.$store = t.$store, this.$network = t.$network;
|
|
150795
|
+
Gt(this, "$store"), Gt(this, "$network"), Gt(this, "dataSourceManager"), this.parent = r, this.config = n, this.$store = t.$store, this.$network = t.$network, this.config = n;
|
|
150778
150796
|
try {
|
|
150779
150797
|
this.dataSourceManager = lg.getInstance();
|
|
150780
150798
|
} catch {
|
|
@@ -150792,7 +150810,9 @@ class xl {
|
|
|
150792
150810
|
}
|
|
150793
150811
|
async getNetwork() {
|
|
150794
150812
|
const { address: t } = this.$store.get();
|
|
150795
|
-
return t.slice(0, 1) === "t" && [za, Is, Ys, Ks].includes(
|
|
150813
|
+
return t.slice(0, 1) === "t" && [za, Is, Ys, Ks].includes(
|
|
150814
|
+
this.$network.get()
|
|
150815
|
+
) ? this.$network.get() : Li;
|
|
150796
150816
|
}
|
|
150797
150817
|
async getPublicKey() {
|
|
150798
150818
|
return this.$store.get().publicKey;
|
|
@@ -150800,7 +150820,9 @@ class xl {
|
|
|
150800
150820
|
async getBalance() {
|
|
150801
150821
|
if (!this.dataSourceManager.getAddressBtcBalance)
|
|
150802
150822
|
throw new Error("Method not found on data source");
|
|
150803
|
-
return await this.dataSourceManager.getAddressBtcBalance(
|
|
150823
|
+
return await this.dataSourceManager.getAddressBtcBalance(
|
|
150824
|
+
this.$store.get().paymentAddress
|
|
150825
|
+
);
|
|
150804
150826
|
}
|
|
150805
150827
|
async getMetaBalances(t) {
|
|
150806
150828
|
switch (t) {
|
|
@@ -150811,16 +150833,22 @@ class xl {
|
|
|
150811
150833
|
throw new Error("Unsupported network");
|
|
150812
150834
|
if (!this.dataSourceManager.getAddressRunesBalances)
|
|
150813
150835
|
throw new Error("Method not found on data source");
|
|
150814
|
-
return await this.dataSourceManager.getAddressRunesBalances(
|
|
150836
|
+
return await this.dataSourceManager.getAddressRunesBalances(
|
|
150837
|
+
this.$store.get().address
|
|
150838
|
+
);
|
|
150815
150839
|
}
|
|
150816
150840
|
case zee:
|
|
150817
150841
|
if (!this.dataSourceManager.getAddressBrc20Balances)
|
|
150818
150842
|
throw new Error("Method not found on data source");
|
|
150819
|
-
return await this.dataSourceManager.getAddressBrc20Balances(
|
|
150843
|
+
return await this.dataSourceManager.getAddressBrc20Balances(
|
|
150844
|
+
this.$store.get().address
|
|
150845
|
+
);
|
|
150820
150846
|
case Lee:
|
|
150821
150847
|
if (!this.dataSourceManager.getAddressAlkanesBalances)
|
|
150822
150848
|
throw new Error("Method not found on data source");
|
|
150823
|
-
return await this.dataSourceManager.getAddressAlkanesBalances(
|
|
150849
|
+
return await this.dataSourceManager.getAddressAlkanesBalances(
|
|
150850
|
+
this.$store.get().address
|
|
150851
|
+
);
|
|
150824
150852
|
default:
|
|
150825
150853
|
throw new Error("Unsupported protocol");
|
|
150826
150854
|
}
|
|
@@ -150828,7 +150856,11 @@ class xl {
|
|
|
150828
150856
|
async getInscriptions(t, r) {
|
|
150829
150857
|
if (!this.dataSourceManager.getAddressInscriptions)
|
|
150830
150858
|
throw new Error("Method not found on data source");
|
|
150831
|
-
return await this.dataSourceManager.getAddressInscriptions(
|
|
150859
|
+
return await this.dataSourceManager.getAddressInscriptions(
|
|
150860
|
+
this.$store.get().address,
|
|
150861
|
+
t,
|
|
150862
|
+
r
|
|
150863
|
+
);
|
|
150832
150864
|
}
|
|
150833
150865
|
async pushPsbt(t) {
|
|
150834
150866
|
let r = t;
|
|
@@ -150891,7 +150923,11 @@ class xl {
|
|
|
150891
150923
|
const n = r;
|
|
150892
150924
|
if (!n.id || !n.amount || !n.toAddress)
|
|
150893
150925
|
throw new Error("Missing required parameters");
|
|
150894
|
-
return await new Ost(this.parent).send(
|
|
150926
|
+
return await new Ost(this.parent).send(
|
|
150927
|
+
n.id,
|
|
150928
|
+
n.amount,
|
|
150929
|
+
n.toAddress
|
|
150930
|
+
);
|
|
150895
150931
|
}
|
|
150896
150932
|
default:
|
|
150897
150933
|
throw new Error("Unsupported protocol");
|
package/dist/ui.js
CHANGED
|
@@ -68023,7 +68023,7 @@ const bRe = new Error(
|
|
|
68023
68023
|
), mRe = new Error("Wallet is not installed");
|
|
68024
68024
|
let Wc = class {
|
|
68025
68025
|
constructor(e, t, r) {
|
|
68026
|
-
Wt(this, "$store"), Wt(this, "$network"), Wt(this, "dataSourceManager"), this.parent = t, this.config = r, this.$store = e.$store, this.$network = e.$network;
|
|
68026
|
+
Wt(this, "$store"), Wt(this, "$network"), Wt(this, "dataSourceManager"), this.parent = t, this.config = r, this.$store = e.$store, this.$network = e.$network, this.config = r;
|
|
68027
68027
|
try {
|
|
68028
68028
|
this.dataSourceManager = k1.getInstance();
|
|
68029
68029
|
} catch {
|
|
@@ -68041,7 +68041,9 @@ let Wc = class {
|
|
|
68041
68041
|
}
|
|
68042
68042
|
async getNetwork() {
|
|
68043
68043
|
const { address: e } = this.$store.get();
|
|
68044
|
-
return e.slice(0, 1) === "t" && [Jo, gs, ms, Ps].includes(
|
|
68044
|
+
return e.slice(0, 1) === "t" && [Jo, gs, ms, Ps].includes(
|
|
68045
|
+
this.$network.get()
|
|
68046
|
+
) ? this.$network.get() : ti;
|
|
68045
68047
|
}
|
|
68046
68048
|
async getPublicKey() {
|
|
68047
68049
|
return this.$store.get().publicKey;
|
|
@@ -68049,7 +68051,9 @@ let Wc = class {
|
|
|
68049
68051
|
async getBalance() {
|
|
68050
68052
|
if (!this.dataSourceManager.getAddressBtcBalance)
|
|
68051
68053
|
throw new Error("Method not found on data source");
|
|
68052
|
-
return await this.dataSourceManager.getAddressBtcBalance(
|
|
68054
|
+
return await this.dataSourceManager.getAddressBtcBalance(
|
|
68055
|
+
this.$store.get().paymentAddress
|
|
68056
|
+
);
|
|
68053
68057
|
}
|
|
68054
68058
|
async getMetaBalances(e) {
|
|
68055
68059
|
switch (e) {
|
|
@@ -68060,16 +68064,22 @@ let Wc = class {
|
|
|
68060
68064
|
throw new Error("Unsupported network");
|
|
68061
68065
|
if (!this.dataSourceManager.getAddressRunesBalances)
|
|
68062
68066
|
throw new Error("Method not found on data source");
|
|
68063
|
-
return await this.dataSourceManager.getAddressRunesBalances(
|
|
68067
|
+
return await this.dataSourceManager.getAddressRunesBalances(
|
|
68068
|
+
this.$store.get().address
|
|
68069
|
+
);
|
|
68064
68070
|
}
|
|
68065
68071
|
case OW:
|
|
68066
68072
|
if (!this.dataSourceManager.getAddressBrc20Balances)
|
|
68067
68073
|
throw new Error("Method not found on data source");
|
|
68068
|
-
return await this.dataSourceManager.getAddressBrc20Balances(
|
|
68074
|
+
return await this.dataSourceManager.getAddressBrc20Balances(
|
|
68075
|
+
this.$store.get().address
|
|
68076
|
+
);
|
|
68069
68077
|
case IW:
|
|
68070
68078
|
if (!this.dataSourceManager.getAddressAlkanesBalances)
|
|
68071
68079
|
throw new Error("Method not found on data source");
|
|
68072
|
-
return await this.dataSourceManager.getAddressAlkanesBalances(
|
|
68080
|
+
return await this.dataSourceManager.getAddressAlkanesBalances(
|
|
68081
|
+
this.$store.get().address
|
|
68082
|
+
);
|
|
68073
68083
|
default:
|
|
68074
68084
|
throw new Error("Unsupported protocol");
|
|
68075
68085
|
}
|
|
@@ -68077,7 +68087,11 @@ let Wc = class {
|
|
|
68077
68087
|
async getInscriptions(e, t) {
|
|
68078
68088
|
if (!this.dataSourceManager.getAddressInscriptions)
|
|
68079
68089
|
throw new Error("Method not found on data source");
|
|
68080
|
-
return await this.dataSourceManager.getAddressInscriptions(
|
|
68090
|
+
return await this.dataSourceManager.getAddressInscriptions(
|
|
68091
|
+
this.$store.get().address,
|
|
68092
|
+
e,
|
|
68093
|
+
t
|
|
68094
|
+
);
|
|
68081
68095
|
}
|
|
68082
68096
|
async pushPsbt(e) {
|
|
68083
68097
|
let t = e;
|
|
@@ -68140,7 +68154,11 @@ let Wc = class {
|
|
|
68140
68154
|
const r = t;
|
|
68141
68155
|
if (!r.id || !r.amount || !r.toAddress)
|
|
68142
68156
|
throw new Error("Missing required parameters");
|
|
68143
|
-
return await new yRe(this.parent).send(
|
|
68157
|
+
return await new yRe(this.parent).send(
|
|
68158
|
+
r.id,
|
|
68159
|
+
r.amount,
|
|
68160
|
+
r.toAddress
|
|
68161
|
+
);
|
|
68144
68162
|
}
|
|
68145
68163
|
default:
|
|
68146
68164
|
throw new Error("Unsupported protocol");
|
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.
|
|
23
|
+
"version": "0.0.154-next.0",
|
|
24
24
|
"type": "module",
|
|
25
25
|
"module": "./dist/index.js",
|
|
26
26
|
"files": [
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"bip39": "^3.1.0",
|
|
43
|
-
"@omnisat/lasereyes-core": "0.0.
|
|
44
|
-
"@omnisat/lasereyes-
|
|
45
|
-
"@omnisat/lasereyes-
|
|
43
|
+
"@omnisat/lasereyes-core": "0.0.76-next.0",
|
|
44
|
+
"@omnisat/lasereyes-react": "0.0.71-next.0",
|
|
45
|
+
"@omnisat/lasereyes-ui": "0.0.13-next.0"
|
|
46
46
|
},
|
|
47
47
|
"license": "MIT",
|
|
48
48
|
"publishConfig": {
|