@omnisat/lasereyes 0.0.138 → 0.0.139-rc.2
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 +10 -8
- package/dist/index.umd.cjs +4 -4
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -42227,7 +42227,7 @@ const RQ = async ({
|
|
|
42227
42227
|
let E = 0;
|
|
42228
42228
|
for await (const S of m) {
|
|
42229
42229
|
const _ = nT(t, o);
|
|
42230
|
-
if (
|
|
42230
|
+
if (l.addInput({
|
|
42231
42231
|
hash: S.txid,
|
|
42232
42232
|
index: S.vout,
|
|
42233
42233
|
witnessUtxo: { value: BigInt(S.value), script: k }
|
|
@@ -47203,8 +47203,9 @@ class Hte extends Ni {
|
|
|
47203
47203
|
return (await this.library.pushPsbt({ psbt: t })).txid;
|
|
47204
47204
|
}
|
|
47205
47205
|
async getPublicKey() {
|
|
47206
|
-
|
|
47207
|
-
|
|
47206
|
+
const { nativeSegwit: t, taproot: r } = await this.library.getAddresses();
|
|
47207
|
+
if (!t || !r) throw new Error("No accounts found");
|
|
47208
|
+
return this.$store.setKey("publicKey", r.publicKey), this.$store.setKey("paymentPublicKey", t.publicKey), r.publicKey;
|
|
47208
47209
|
}
|
|
47209
47210
|
async getBalance() {
|
|
47210
47211
|
const { total: t } = await this.library.getBalance();
|
|
@@ -47215,7 +47216,7 @@ class Hte extends Ni {
|
|
|
47215
47216
|
return await this.library.getInscriptions(n, o);
|
|
47216
47217
|
}
|
|
47217
47218
|
async requestAccounts() {
|
|
47218
|
-
return
|
|
47219
|
+
return [this.$store.get().address, this.$store.get().paymentAddress];
|
|
47219
47220
|
}
|
|
47220
47221
|
async switchNetwork() {
|
|
47221
47222
|
throw Ev;
|
|
@@ -91095,7 +91096,7 @@ const Mbe = async ({
|
|
|
91095
91096
|
let E = 0;
|
|
91096
91097
|
for await (const S of m) {
|
|
91097
91098
|
const _ = yN(t, o);
|
|
91098
|
-
if (
|
|
91099
|
+
if (l.addInput({
|
|
91099
91100
|
hash: S.txid,
|
|
91100
91101
|
index: S.vout,
|
|
91101
91102
|
witnessUtxo: { value: BigInt(S.value), script: k }
|
|
@@ -96071,8 +96072,9 @@ class qwe extends ji {
|
|
|
96071
96072
|
return (await this.library.pushPsbt({ psbt: t })).txid;
|
|
96072
96073
|
}
|
|
96073
96074
|
async getPublicKey() {
|
|
96074
|
-
|
|
96075
|
-
|
|
96075
|
+
const { nativeSegwit: t, taproot: r } = await this.library.getAddresses();
|
|
96076
|
+
if (!t || !r) throw new Error("No accounts found");
|
|
96077
|
+
return this.$store.setKey("publicKey", r.publicKey), this.$store.setKey("paymentPublicKey", t.publicKey), r.publicKey;
|
|
96076
96078
|
}
|
|
96077
96079
|
async getBalance() {
|
|
96078
96080
|
const { total: t } = await this.library.getBalance();
|
|
@@ -96083,7 +96085,7 @@ class qwe extends ji {
|
|
|
96083
96085
|
return await this.library.getInscriptions(n, o);
|
|
96084
96086
|
}
|
|
96085
96087
|
async requestAccounts() {
|
|
96086
|
-
return
|
|
96088
|
+
return [this.$store.get().address, this.$store.get().paymentAddress];
|
|
96087
96089
|
}
|
|
96088
96090
|
async switchNetwork() {
|
|
96089
96091
|
throw k8;
|