@omnisat/lasereyes 0.0.12 → 0.0.14

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 CHANGED
@@ -7,17 +7,25 @@ declare const UNISAT_MAINNET = "livenet";
7
7
  declare const UNISAT_TESTNET = "testnet";
8
8
  declare const XVERSE_MAINNET = "Mainnet";
9
9
  declare const XVERSE_TESTNET = "Testnet";
10
+ declare const OKX_MAINNET = "livenet";
11
+ declare const OKX_TESTNET = "testnet";
12
+ declare const WIZZ_MAINNET = "livenet";
13
+ declare const WIZZ_TESTNET = "testnet";
10
14
  declare const LEATHER_MAINNET = "mainnet";
11
15
  declare const LEATHER_TESTNET = "testnet";
12
16
  declare const MAINNET = "mainnet";
17
+ declare const SIGNET = "signet";
13
18
  declare const TESTNET = "testnet";
14
19
  declare const REGTEST = "regtest";
15
20
  declare const getXverseNetwork: (network: string) => "Mainnet" | "Testnet";
16
21
  declare const getLeatherNetwork: (network: string) => "testnet" | "mainnet";
17
22
  declare const getUnisatNetwork: (network: string) => "livenet" | "testnet";
23
+ declare const getWizzNetwork: (network: string) => "livenet" | "testnet";
18
24
  declare const getNetworkForUnisat: (network: string) => "testnet" | "mainnet";
19
25
  declare const getNetworkForXverse: (network: string) => "testnet" | "mainnet";
20
26
  declare const getNetworkForLeather: (network: string) => "testnet" | "mainnet";
27
+ declare const getNetworkForOkx: (network: string) => "testnet" | "mainnet";
28
+ declare const getNetworkForWizz: (network: string) => "testnet" | "mainnet";
21
29
  declare const MEMPOOL_SPACE_URL = "https://mempool.space";
22
30
  declare const MEMPOOL_SPACE_TESTNET_URL = "https://mempool.space/testnet";
23
31
  declare const getMempoolSpaceUrl: (network: string) => "https://mempool.space" | "https://mempool.space/testnet";
@@ -27,6 +35,9 @@ declare const UNISAT = "unisat";
27
35
  declare const XVERSE = "xverse";
28
36
  declare const PHANTOM = "phantom";
29
37
  declare const LEATHER = "leather";
38
+ declare const MAGIC_EDEN = "magic-eden";
39
+ declare const OKX = "okx";
40
+ declare const WIZZ = "wizz";
30
41
  declare const P2TR = "p2tr";
31
42
  declare const P2PKH = "p2pkh";
32
43
  declare const P2WPKH = "p2wpkh";
@@ -77,7 +88,12 @@ type LaserEyesContextType = {
77
88
  hasUnisat: boolean;
78
89
  hasXverse: boolean;
79
90
  hasOyl: boolean;
80
- connect: (walletName: typeof UNISAT | typeof XVERSE) => Promise<void>;
91
+ hasMagicEden: boolean;
92
+ hasOkx: boolean;
93
+ hasLeather: boolean;
94
+ hasPhantom: boolean;
95
+ hasWizz: boolean;
96
+ connect: (walletName: typeof UNISAT | typeof XVERSE | typeof MAGIC_EDEN) => Promise<void>;
81
97
  disconnect: () => void;
82
98
  requestAccounts: () => Promise<string[]>;
83
99
  getNetwork: () => Promise<string | undefined>;
@@ -132,4 +148,4 @@ declare function createSendBtcPsbt(address: string, paymentAddress: string, reci
132
148
  }>;
133
149
  declare function getRedeemScript(paymentPublicKey: string, network: typeof MAINNET | typeof TESTNET): Buffer | undefined;
134
150
 
135
- export { LEATHER, LEATHER_MAINNET, LEATHER_TESTNET, LaserEyesProvider, MAINNET, MEMPOOL_SPACE_TESTNET_URL, MEMPOOL_SPACE_URL, OYL, P2PKH, P2PSH, P2SH, P2TR, P2WPKH, P2WSH, PHANTOM, REGTEST, TESTNET, UNISAT, UNISAT_MAINNET, UNISAT_TESTNET, WALLETS, XVERSE, XVERSE_MAINNET, XVERSE_NETWORK, XVERSE_TESTNET, createConfig, createSendBtcPsbt, estimateTxSize, findOrdinalsAddress, findPaymentAddress, getAddressType, getAddressUtxos, getBTCBalance, getBitcoinNetwork, getLeatherNetwork, getMempoolSpaceUrl, getNetworkForLeather, getNetworkForUnisat, getNetworkForXverse, getRedeemScript, getUnisatNetwork, getXverseNetwork, isBase64, isHex, satoshisToBTC, useLaserEyes };
151
+ export { LEATHER, LEATHER_MAINNET, LEATHER_TESTNET, LaserEyesProvider, MAGIC_EDEN, MAINNET, MEMPOOL_SPACE_TESTNET_URL, MEMPOOL_SPACE_URL, OKX, OKX_MAINNET, OKX_TESTNET, OYL, P2PKH, P2PSH, P2SH, P2TR, P2WPKH, P2WSH, PHANTOM, REGTEST, SIGNET, TESTNET, UNISAT, UNISAT_MAINNET, UNISAT_TESTNET, WALLETS, WIZZ, WIZZ_MAINNET, WIZZ_TESTNET, XVERSE, XVERSE_MAINNET, XVERSE_NETWORK, XVERSE_TESTNET, createConfig, createSendBtcPsbt, estimateTxSize, findOrdinalsAddress, findPaymentAddress, getAddressType, getAddressUtxos, getBTCBalance, getBitcoinNetwork, getLeatherNetwork, getMempoolSpaceUrl, getNetworkForLeather, getNetworkForOkx, getNetworkForUnisat, getNetworkForWizz, getNetworkForXverse, getRedeemScript, getUnisatNetwork, getWizzNetwork, getXverseNetwork, isBase64, isHex, satoshisToBTC, useLaserEyes };