@omnisat/lasereyes 0.0.19 → 0.0.21
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 +1 -15
- package/dist/index.mjs +1 -15
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -900,18 +900,6 @@ var LaserEyesProvider = ({
|
|
|
900
900
|
yield connectUnisat();
|
|
901
901
|
} else if (walletName === XVERSE) {
|
|
902
902
|
yield connectXverse();
|
|
903
|
-
} else if (walletName === OYL) {
|
|
904
|
-
yield connectOyl();
|
|
905
|
-
} else if (walletName === MAGIC_EDEN) {
|
|
906
|
-
yield connectMagicEden();
|
|
907
|
-
} else if (walletName === OKX) {
|
|
908
|
-
yield connectOkx();
|
|
909
|
-
} else if (walletName === LEATHER) {
|
|
910
|
-
yield connectLeather();
|
|
911
|
-
} else if (walletName === PHANTOM) {
|
|
912
|
-
yield connectPhantom();
|
|
913
|
-
} else if (walletName === WIZZ) {
|
|
914
|
-
yield connectWizz();
|
|
915
903
|
} else {
|
|
916
904
|
throw new Error("Unsupported wallet..");
|
|
917
905
|
}
|
|
@@ -1314,7 +1302,7 @@ var LaserEyesProvider = ({
|
|
|
1314
1302
|
network: {
|
|
1315
1303
|
type: import_sats_connect.BitcoinNetworkType.Mainnet
|
|
1316
1304
|
},
|
|
1317
|
-
address:
|
|
1305
|
+
address: paymentAddress,
|
|
1318
1306
|
message
|
|
1319
1307
|
},
|
|
1320
1308
|
onFinish: (response) => {
|
|
@@ -1332,13 +1320,11 @@ var LaserEyesProvider = ({
|
|
|
1332
1320
|
message,
|
|
1333
1321
|
paymentType: P2TR
|
|
1334
1322
|
});
|
|
1335
|
-
console.log(signed);
|
|
1336
1323
|
return (_a = signed == null ? void 0 : signed.result) == null ? void 0 : _a.signature;
|
|
1337
1324
|
} else if (provider === PHANTOM) {
|
|
1338
1325
|
const utf8Bytes = new TextEncoder().encode(message);
|
|
1339
1326
|
const uintArray = new Uint8Array(utf8Bytes);
|
|
1340
1327
|
const response = yield library == null ? void 0 : library.signMessage(address2, uintArray);
|
|
1341
|
-
console.log(response);
|
|
1342
1328
|
const binaryString = String.fromCharCode(...response.signature);
|
|
1343
1329
|
return btoa(binaryString);
|
|
1344
1330
|
} else if (provider === WIZZ) {
|
package/dist/index.mjs
CHANGED
|
@@ -822,18 +822,6 @@ var LaserEyesProvider = ({
|
|
|
822
822
|
yield connectUnisat();
|
|
823
823
|
} else if (walletName === XVERSE) {
|
|
824
824
|
yield connectXverse();
|
|
825
|
-
} else if (walletName === OYL) {
|
|
826
|
-
yield connectOyl();
|
|
827
|
-
} else if (walletName === MAGIC_EDEN) {
|
|
828
|
-
yield connectMagicEden();
|
|
829
|
-
} else if (walletName === OKX) {
|
|
830
|
-
yield connectOkx();
|
|
831
|
-
} else if (walletName === LEATHER) {
|
|
832
|
-
yield connectLeather();
|
|
833
|
-
} else if (walletName === PHANTOM) {
|
|
834
|
-
yield connectPhantom();
|
|
835
|
-
} else if (walletName === WIZZ) {
|
|
836
|
-
yield connectWizz();
|
|
837
825
|
} else {
|
|
838
826
|
throw new Error("Unsupported wallet..");
|
|
839
827
|
}
|
|
@@ -1236,7 +1224,7 @@ var LaserEyesProvider = ({
|
|
|
1236
1224
|
network: {
|
|
1237
1225
|
type: BitcoinNetworkType.Mainnet
|
|
1238
1226
|
},
|
|
1239
|
-
address:
|
|
1227
|
+
address: paymentAddress,
|
|
1240
1228
|
message
|
|
1241
1229
|
},
|
|
1242
1230
|
onFinish: (response) => {
|
|
@@ -1254,13 +1242,11 @@ var LaserEyesProvider = ({
|
|
|
1254
1242
|
message,
|
|
1255
1243
|
paymentType: P2TR
|
|
1256
1244
|
});
|
|
1257
|
-
console.log(signed);
|
|
1258
1245
|
return (_a = signed == null ? void 0 : signed.result) == null ? void 0 : _a.signature;
|
|
1259
1246
|
} else if (provider === PHANTOM) {
|
|
1260
1247
|
const utf8Bytes = new TextEncoder().encode(message);
|
|
1261
1248
|
const uintArray = new Uint8Array(utf8Bytes);
|
|
1262
1249
|
const response = yield library == null ? void 0 : library.signMessage(address2, uintArray);
|
|
1263
|
-
console.log(response);
|
|
1264
1250
|
const binaryString = String.fromCharCode(...response.signature);
|
|
1265
1251
|
return btoa(binaryString);
|
|
1266
1252
|
} else if (provider === WIZZ) {
|