@omnisat/lasereyes 0.0.151-next.0 → 0.0.152
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 +22 -20
- package/dist/ui.js +11 -10
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -83426,9 +83426,6 @@ class dje extends ml {
|
|
|
83426
83426
|
}
|
|
83427
83427
|
async connect(t) {
|
|
83428
83428
|
if (!this.library) throw new Error("Oyl isn't installed");
|
|
83429
|
-
await this.getNetwork().then((i) => {
|
|
83430
|
-
this.network !== i && this.switchNetwork(this.network);
|
|
83431
|
-
});
|
|
83432
83429
|
const { nativeSegwit: r, taproot: n } = await this.library.getAddresses();
|
|
83433
83430
|
if (!r || !n) throw new Error("No accounts found");
|
|
83434
83431
|
this.$store.setKey("address", n.address), this.$store.setKey("paymentAddress", r.address), this.$store.setKey("publicKey", n.publicKey), this.$store.setKey("paymentPublicKey", r.publicKey);
|
|
@@ -83495,7 +83492,7 @@ class dje extends ml {
|
|
|
83495
83492
|
return [this.$store.get().address, this.$store.get().paymentAddress];
|
|
83496
83493
|
}
|
|
83497
83494
|
async switchNetwork(t) {
|
|
83498
|
-
await this.library.switchNetwork(t), this.$network.set(t), this.parent.connect(Py);
|
|
83495
|
+
await this.library.switchNetwork(t), this.$network.set(t), await this.parent.connect(Py);
|
|
83499
83496
|
}
|
|
83500
83497
|
}
|
|
83501
83498
|
const pje = "LEATHER_CONNECTED_WALLET_STATE";
|
|
@@ -85107,16 +85104,20 @@ class s0t {
|
|
|
85107
85104
|
this.$network.listen(this.watchNetworkChange.bind(this)), gl(this.$store, ["isInitializing"], (t, r) => {
|
|
85108
85105
|
if (!this.disposed && t.isInitializing !== r.isInitializing)
|
|
85109
85106
|
return this.handleIsInitializingChanged(t.isInitializing);
|
|
85110
|
-
}),
|
|
85107
|
+
}), gUe(() => {
|
|
85108
|
+
this.$store.setKey("isInitializing", !1), this.checkNetwork();
|
|
85109
|
+
});
|
|
85111
85110
|
}
|
|
85112
85111
|
async checkNetwork() {
|
|
85113
85112
|
var t;
|
|
85114
|
-
const r =
|
|
85115
|
-
r
|
|
85113
|
+
const { provider: r, isInitializing: n } = this.$store.get();
|
|
85114
|
+
if (!r || n) return;
|
|
85115
|
+
const i = await this.getNetwork();
|
|
85116
|
+
i && (this.$network.set(i), this.dataSourceManager.updateNetwork(i));
|
|
85116
85117
|
try {
|
|
85117
|
-
(t = this.config) != null && t.network && this.config.network !==
|
|
85118
|
-
} catch (
|
|
85119
|
-
console.error("Couldn't enforce config network",
|
|
85118
|
+
(t = this.config) != null && t.network && this.config.network !== i && await this.switchNetwork(this.config.network);
|
|
85119
|
+
} catch (o) {
|
|
85120
|
+
console.error("Couldn't enforce config network", o), this.disconnect();
|
|
85120
85121
|
}
|
|
85121
85122
|
}
|
|
85122
85123
|
handleIsInitializingChanged(t) {
|
|
@@ -168724,9 +168725,6 @@ class Mft extends xl {
|
|
|
168724
168725
|
}
|
|
168725
168726
|
async connect(t) {
|
|
168726
168727
|
if (!this.library) throw new Error("Oyl isn't installed");
|
|
168727
|
-
await this.getNetwork().then((i) => {
|
|
168728
|
-
this.network !== i && this.switchNetwork(this.network);
|
|
168729
|
-
});
|
|
168730
168728
|
const { nativeSegwit: r, taproot: n } = await this.library.getAddresses();
|
|
168731
168729
|
if (!r || !n) throw new Error("No accounts found");
|
|
168732
168730
|
this.$store.setKey("address", n.address), this.$store.setKey("paymentAddress", r.address), this.$store.setKey("publicKey", n.publicKey), this.$store.setKey("paymentPublicKey", r.publicKey);
|
|
@@ -168793,7 +168791,7 @@ class Mft extends xl {
|
|
|
168793
168791
|
return [this.$store.get().address, this.$store.get().paymentAddress];
|
|
168794
168792
|
}
|
|
168795
168793
|
async switchNetwork(t) {
|
|
168796
|
-
await this.library.switchNetwork(t), this.$network.set(t), this.parent.connect(q1);
|
|
168794
|
+
await this.library.switchNetwork(t), this.$network.set(t), await this.parent.connect(q1);
|
|
168797
168795
|
}
|
|
168798
168796
|
}
|
|
168799
168797
|
const Nft = "LEATHER_CONNECTED_WALLET_STATE";
|
|
@@ -170405,16 +170403,20 @@ class bht {
|
|
|
170405
170403
|
this.$network.listen(this.watchNetworkChange.bind(this)), El(this.$store, ["isInitializing"], (t, r) => {
|
|
170406
170404
|
if (!this.disposed && t.isInitializing !== r.isInitializing)
|
|
170407
170405
|
return this.handleIsInitializingChanged(t.isInitializing);
|
|
170408
|
-
}),
|
|
170406
|
+
}), Nst(() => {
|
|
170407
|
+
this.$store.setKey("isInitializing", !1), this.checkNetwork();
|
|
170408
|
+
});
|
|
170409
170409
|
}
|
|
170410
170410
|
async checkNetwork() {
|
|
170411
170411
|
var t;
|
|
170412
|
-
const r =
|
|
170413
|
-
r
|
|
170412
|
+
const { provider: r, isInitializing: n } = this.$store.get();
|
|
170413
|
+
if (!r || n) return;
|
|
170414
|
+
const i = await this.getNetwork();
|
|
170415
|
+
i && (this.$network.set(i), this.dataSourceManager.updateNetwork(i));
|
|
170414
170416
|
try {
|
|
170415
|
-
(t = this.config) != null && t.network && this.config.network !==
|
|
170416
|
-
} catch (
|
|
170417
|
-
console.error("Couldn't enforce config network",
|
|
170417
|
+
(t = this.config) != null && t.network && this.config.network !== i && await this.switchNetwork(this.config.network);
|
|
170418
|
+
} catch (o) {
|
|
170419
|
+
console.error("Couldn't enforce config network", o), this.disconnect();
|
|
170418
170420
|
}
|
|
170419
170421
|
}
|
|
170420
170422
|
handleIsInitializingChanged(t) {
|
package/dist/ui.js
CHANGED
|
@@ -85984,9 +85984,6 @@ class wze extends Wc {
|
|
|
85984
85984
|
}
|
|
85985
85985
|
async connect(t) {
|
|
85986
85986
|
if (!this.library) throw new Error("Oyl isn't installed");
|
|
85987
|
-
await this.getNetwork().then((i) => {
|
|
85988
|
-
this.network !== i && this.switchNetwork(this.network);
|
|
85989
|
-
});
|
|
85990
85987
|
const { nativeSegwit: r, taproot: n } = await this.library.getAddresses();
|
|
85991
85988
|
if (!r || !n) throw new Error("No accounts found");
|
|
85992
85989
|
this.$store.setKey("address", n.address), this.$store.setKey("paymentAddress", r.address), this.$store.setKey("publicKey", n.publicKey), this.$store.setKey("paymentPublicKey", r.publicKey);
|
|
@@ -86053,7 +86050,7 @@ class wze extends Wc {
|
|
|
86053
86050
|
return [this.$store.get().address, this.$store.get().paymentAddress];
|
|
86054
86051
|
}
|
|
86055
86052
|
async switchNetwork(t) {
|
|
86056
|
-
await this.library.switchNetwork(t), this.$network.set(t), this.parent.connect(i1);
|
|
86053
|
+
await this.library.switchNetwork(t), this.$network.set(t), await this.parent.connect(i1);
|
|
86057
86054
|
}
|
|
86058
86055
|
}
|
|
86059
86056
|
const vze = "LEATHER_CONNECTED_WALLET_STATE";
|
|
@@ -87665,16 +87662,20 @@ class nLe {
|
|
|
87665
87662
|
this.$network.listen(this.watchNetworkChange.bind(this)), $c(this.$store, ["isInitializing"], (t, r) => {
|
|
87666
87663
|
if (!this.disposed && t.isInitializing !== r.isInitializing)
|
|
87667
87664
|
return this.handleIsInitializingChanged(t.isInitializing);
|
|
87668
|
-
}),
|
|
87665
|
+
}), vRe(() => {
|
|
87666
|
+
this.$store.setKey("isInitializing", !1), this.checkNetwork();
|
|
87667
|
+
});
|
|
87669
87668
|
}
|
|
87670
87669
|
async checkNetwork() {
|
|
87671
87670
|
var t;
|
|
87672
|
-
const r =
|
|
87673
|
-
r
|
|
87671
|
+
const { provider: r, isInitializing: n } = this.$store.get();
|
|
87672
|
+
if (!r || n) return;
|
|
87673
|
+
const i = await this.getNetwork();
|
|
87674
|
+
i && (this.$network.set(i), this.dataSourceManager.updateNetwork(i));
|
|
87674
87675
|
try {
|
|
87675
|
-
(t = this.config) != null && t.network && this.config.network !==
|
|
87676
|
-
} catch (
|
|
87677
|
-
console.error("Couldn't enforce config network",
|
|
87676
|
+
(t = this.config) != null && t.network && this.config.network !== i && await this.switchNetwork(this.config.network);
|
|
87677
|
+
} catch (o) {
|
|
87678
|
+
console.error("Couldn't enforce config network", o), this.disconnect();
|
|
87678
87679
|
}
|
|
87679
87680
|
}
|
|
87680
87681
|
handleIsInitializingChanged(t) {
|
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.152",
|
|
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-
|
|
44
|
-
"@omnisat/lasereyes-
|
|
45
|
-
"@omnisat/lasereyes-ui": "0.0.
|
|
43
|
+
"@omnisat/lasereyes-react": "0.0.69",
|
|
44
|
+
"@omnisat/lasereyes-core": "0.0.74",
|
|
45
|
+
"@omnisat/lasereyes-ui": "0.0.11"
|
|
46
46
|
},
|
|
47
47
|
"license": "MIT",
|
|
48
48
|
"publishConfig": {
|