@omnisat/lasereyes 0.0.38 → 0.0.39
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 +1 -1
- package/dist/index.js +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -110,7 +110,7 @@ type LaserEyesContextType = {
|
|
|
110
110
|
getBalance: () => Promise<string>;
|
|
111
111
|
getInscriptions: () => Promise<any[]>;
|
|
112
112
|
sendBTC: (to: string, amount: number) => Promise<string>;
|
|
113
|
-
signMessage: (message: string) => Promise<string>;
|
|
113
|
+
signMessage: (message: string, toSignAddress?: string) => Promise<string>;
|
|
114
114
|
signPsbt: (tx: string, finalize?: boolean, broadcast?: boolean) => Promise<{
|
|
115
115
|
signedPsbtHex: string | undefined;
|
|
116
116
|
signedPsbtBase64: string | undefined;
|
package/dist/index.js
CHANGED
|
@@ -1413,6 +1413,7 @@ var LaserEyesProvider = ({
|
|
|
1413
1413
|
const tempAddy = toSignAddress || paymentAddress;
|
|
1414
1414
|
return yield library == null ? void 0 : library.signMessage(message, "bip322", tempAddy);
|
|
1415
1415
|
} else if (provider === MAGIC_EDEN) {
|
|
1416
|
+
const tempAddy = toSignAddress || paymentAddress;
|
|
1416
1417
|
let signedMessage;
|
|
1417
1418
|
yield (0, import_sats_connect.signMessage)({
|
|
1418
1419
|
getProvider: () => __async(void 0, null, function* () {
|
|
@@ -1422,7 +1423,7 @@ var LaserEyesProvider = ({
|
|
|
1422
1423
|
network: {
|
|
1423
1424
|
type: import_sats_connect.BitcoinNetworkType.Mainnet
|
|
1424
1425
|
},
|
|
1425
|
-
address:
|
|
1426
|
+
address: tempAddy,
|
|
1426
1427
|
message,
|
|
1427
1428
|
protocol: import_sats_connect.MessageSigningProtocols.BIP322
|
|
1428
1429
|
},
|
package/dist/index.mjs
CHANGED
|
@@ -1325,6 +1325,7 @@ var LaserEyesProvider = ({
|
|
|
1325
1325
|
const tempAddy = toSignAddress || paymentAddress;
|
|
1326
1326
|
return yield library == null ? void 0 : library.signMessage(message, "bip322", tempAddy);
|
|
1327
1327
|
} else if (provider === MAGIC_EDEN) {
|
|
1328
|
+
const tempAddy = toSignAddress || paymentAddress;
|
|
1328
1329
|
let signedMessage;
|
|
1329
1330
|
yield signMessageSatsConnect({
|
|
1330
1331
|
getProvider: () => __async(void 0, null, function* () {
|
|
@@ -1334,7 +1335,7 @@ var LaserEyesProvider = ({
|
|
|
1334
1335
|
network: {
|
|
1335
1336
|
type: BitcoinNetworkType.Mainnet
|
|
1336
1337
|
},
|
|
1337
|
-
address:
|
|
1338
|
+
address: tempAddy,
|
|
1338
1339
|
message,
|
|
1339
1340
|
protocol: MessageSigningProtocols.BIP322
|
|
1340
1341
|
},
|