btc-wallet 0.5.10-beta → 0.5.11-beta

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,6 @@ export declare abstract class InjectedConnector extends BaseConnector {
4
4
  constructor(propertity: string);
5
5
  isReady(): boolean;
6
6
  requestAccounts(): Promise<string[]>;
7
- private getUniversalLink;
8
7
  getAccounts(): Promise<string[]>;
9
8
  getPublicKey(): Promise<string>;
10
9
  signMessage(signStr: string, type?: 'ecdsa' | 'bip322-simple'): Promise<string>;
package/dist/index.js CHANGED
@@ -505,24 +505,6 @@ var InjectedConnector = class extends BaseConnector {
505
505
  return accounts;
506
506
  });
507
507
  }
508
- getUniversalLink(url) {
509
- url = "https://www.deltatrade.ai/";
510
- console.log(this.metadata.id);
511
- switch (this.metadata.id) {
512
- case "unisat":
513
- return `unisat://dapp?url=${encodeURIComponent(url)}`;
514
- case "okx":
515
- return `okx://wallet/dapp/url?dappUrl=${encodeURIComponent(url)}`;
516
- case "bitget":
517
- return `https://bkcode.vip?action=dapp&url=${encodeURIComponent(url)}`;
518
- case "binance":
519
- return `binance://dapp?url=${encodeURIComponent(url)}`;
520
- case "xverse":
521
- return `https://connect.xverse.app/browser?url=${encodeURIComponent(url)}`;
522
- default:
523
- return url;
524
- }
525
- }
526
508
  getAccounts() {
527
509
  return __async(this, null, function* () {
528
510
  const accounts = yield this.getProviderOrThrow().getAccounts();
@@ -801,18 +783,10 @@ var XverseConnector = class extends BaseConnector {
801
783
  message: signStr,
802
784
  protocol: "ECDSA"
803
785
  });
804
- const modifiedSig = Buffer.from(result.signature, "base64");
805
786
  console.log("xverse walletType", address.walletType);
806
- console.log("xverse raw sig", result.signature, modifiedSig.toString("base64"));
807
- if (address.walletType === "ledger") {
808
- if (address.addressType === "p2wpkh") {
809
- modifiedSig[0] = 31 + (modifiedSig[0] - 39);
810
- } else if (address.addressType === "p2sh") {
811
- modifiedSig[0] = 31 + (modifiedSig[0] - 35);
812
- }
813
- } else {
814
- modifiedSig[0] = 31 + (modifiedSig[0] - 31) % 4;
815
- }
787
+ console.log("xverse raw sig", result.signature);
788
+ const modifiedSig = Buffer.from(result.signature, "base64");
789
+ modifiedSig[0] = 31 + (modifiedSig[0] - 31) % 4;
816
790
  const sig = modifiedSig.toString("base64");
817
791
  console.log("xverse modified sig", sig);
818
792
  return sig;
@@ -4486,7 +4460,7 @@ function setupBTCWallet({
4486
4460
 
4487
4461
  // src/index.ts
4488
4462
  var getVersion = () => {
4489
- return "0.5.10-beta";
4463
+ return "0.5.11-beta";
4490
4464
  };
4491
4465
  if (typeof window !== "undefined") {
4492
4466
  window.__BTC_WALLET_VERSION = getVersion();