@omnisat/lasereyes 0.0.29 → 0.0.31

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
@@ -1,11 +1,12 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as react from 'react';
2
+ import * as React from 'react';
3
3
  import { ReactNode } from 'react';
4
4
  import * as bitcoin from 'bitcoinjs-lib';
5
5
 
6
6
  declare const XVERSE_NETWORK: "Mainnet" | "Testnet";
7
7
  declare const UNISAT_MAINNET = "livenet";
8
8
  declare const UNISAT_TESTNET = "testnet";
9
+ declare const UNISAT_FRACTAL_TESTNET = "unknown";
9
10
  declare const OP_WALLET_MAINNET = "livenet";
10
11
  declare const OP_WALLET_TESTNET = "testnet";
11
12
  declare const XVERSE_MAINNET = "Mainnet";
@@ -20,12 +21,13 @@ declare const LEATHER_TESTNET = "testnet";
20
21
  declare const MAINNET = "mainnet";
21
22
  declare const SIGNET = "signet";
22
23
  declare const TESTNET = "testnet";
24
+ declare const FRACTAL_TESTNET = "fractal_testnet";
23
25
  declare const REGTEST = "regtest";
24
26
  declare const getXverseNetwork: (network: string) => "Mainnet" | "Testnet" | "Signet";
25
27
  declare const getLeatherNetwork: (network: string) => "testnet" | "mainnet";
26
- declare const getUnisatNetwork: (network: string) => "livenet" | "testnet";
28
+ declare const getUnisatNetwork: (network: string) => "livenet" | "testnet" | "unknown";
27
29
  declare const getWizzNetwork: (network: string) => "livenet" | "testnet";
28
- declare const getNetworkForUnisat: (network: string) => "testnet" | "mainnet";
30
+ declare const getNetworkForUnisat: (network: string) => "testnet" | "mainnet" | "fractal_testnet";
29
31
  declare const getNetworkForXverse: (network: string) => "testnet" | "mainnet";
30
32
  declare const getNetworkForLeather: (network: string) => "testnet" | "mainnet";
31
33
  declare const getNetworkForOkx: (network: string) => "testnet" | "mainnet";
@@ -87,7 +89,7 @@ type LaserEyesContextType = {
87
89
  paymentAddress: string;
88
90
  paymentPublicKey: string;
89
91
  balance: number | undefined;
90
- network: typeof MAINNET | typeof TESTNET | typeof SIGNET;
92
+ network: typeof MAINNET | typeof TESTNET | typeof SIGNET | typeof FRACTAL_TESTNET;
91
93
  library: any;
92
94
  provider: any;
93
95
  accounts: string[];
@@ -103,7 +105,7 @@ type LaserEyesContextType = {
103
105
  disconnect: () => void;
104
106
  requestAccounts: () => Promise<string[]>;
105
107
  getNetwork: () => Promise<string | undefined>;
106
- switchNetwork: (network: typeof MAINNET | typeof TESTNET | typeof SIGNET) => Promise<void>;
108
+ switchNetwork: (network: typeof MAINNET | typeof TESTNET | typeof SIGNET | typeof FRACTAL_TESTNET) => Promise<void>;
107
109
  getPublicKey: () => Promise<string>;
108
110
  getBalance: () => Promise<string>;
109
111
  getInscriptions: () => Promise<any[]>;
@@ -117,7 +119,7 @@ type LaserEyesContextType = {
117
119
  pushPsbt: (tx: string) => Promise<string | undefined>;
118
120
  };
119
121
  type Config = {
120
- network: typeof MAINNET | typeof TESTNET | typeof SIGNET;
122
+ network: typeof MAINNET | typeof TESTNET | typeof SIGNET | typeof FRACTAL_TESTNET;
121
123
  };
122
124
  interface CommitPsbtResponse {
123
125
  inscriberAddress: string;
@@ -142,7 +144,7 @@ interface DeScribeCreateResponse {
142
144
  totalFees: number;
143
145
  }
144
146
 
145
- declare const getBitcoinNetwork: (network: typeof MAINNET | typeof TESTNET | typeof SIGNET | typeof REGTEST) => bitcoin.networks.Network;
147
+ declare const getBitcoinNetwork: (network: typeof MAINNET | typeof TESTNET | typeof SIGNET | typeof REGTEST | typeof FRACTAL_TESTNET) => bitcoin.networks.Network;
146
148
  declare const findOrdinalsAddress: (addresses: any) => any;
147
149
  declare const findPaymentAddress: (addresses: any) => any;
148
150
  declare const getBTCBalance: (address: string) => Promise<number>;
@@ -161,19 +163,19 @@ declare const useInscriber: ({ inscribeApiUrl, }: {
161
163
  inscribeApiUrl: string;
162
164
  }) => {
163
165
  content: any;
164
- setContent: react.Dispatch<any>;
165
- setMimeType: react.Dispatch<react.SetStateAction<"text/plain;charset=utf-8">>;
166
+ setContent: React.Dispatch<any>;
167
+ setMimeType: React.Dispatch<React.SetStateAction<"text/plain;charset=utf-8">>;
166
168
  previewUrl: string;
167
- setPreviewUrl: react.Dispatch<react.SetStateAction<string>>;
169
+ setPreviewUrl: React.Dispatch<React.SetStateAction<string>>;
168
170
  getCommitPsbt: () => Promise<CommitPsbtResponse>;
169
171
  isFetchingCommitPsbt: boolean;
170
172
  commitPsbtHex: string;
171
173
  commitPsbtBase64: string;
172
174
  handleSignCommit: (tx?: string) => Promise<string | undefined>;
173
175
  commitTxId: string;
174
- setCommitTxId: react.Dispatch<react.SetStateAction<string>>;
176
+ setCommitTxId: React.Dispatch<React.SetStateAction<string>>;
175
177
  feeRate: number;
176
- setFeeRate: react.Dispatch<react.SetStateAction<number>>;
178
+ setFeeRate: React.Dispatch<React.SetStateAction<number>>;
177
179
  totalFees: number;
178
180
  inscriberAddress: string;
179
181
  inscribe: ({ content: providedContent, mimeType: providedMimeType, ordinalAddress: providedAddress, commitTxId: providedCommitTxId, }: {
@@ -187,4 +189,59 @@ declare const useInscriber: ({ inscribeApiUrl, }: {
187
189
  reset: () => void;
188
190
  };
189
191
 
190
- export { DeScribeCreateResponse, LEATHER, LEATHER_MAINNET, LEATHER_TESTNET, LaserEyesProvider, MAGIC_EDEN, MAINNET, MEMPOOL_SPACE_SIGNET_URL, MEMPOOL_SPACE_TESTNET_URL, MEMPOOL_SPACE_URL, OKX, OKX_MAINNET, OKX_TESTNET, OP_WALLET_MAINNET, OP_WALLET_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_SIGNET, XVERSE_TESTNET, createConfig, createSendBtcPsbt, delay, estimateTxSize, findOrdinalsAddress, findPaymentAddress, getBTCBalance, getBitcoinNetwork, getLeatherNetwork, getMempoolSpaceUrl, getNetworkForLeather, getNetworkForOkx, getNetworkForUnisat, getNetworkForWizz, getNetworkForXverse, getRedeemScript, getUnisatNetwork, getWizzNetwork, getXverseNetwork, isBase64, isHex, satoshisToBTC, useInscriber, useLaserEyes };
192
+ interface OylLogoProps extends React.SVGProps<SVGSVGElement> {
193
+ size?: number;
194
+ variant?: "first" | "second";
195
+ }
196
+ declare const OylLogo: React.FC<OylLogoProps>;
197
+
198
+ interface LeatherLogoProps extends React.SVGProps<SVGSVGElement> {
199
+ size?: number;
200
+ variant?: "first" | "second";
201
+ }
202
+ declare const LeatherLogo: React.FC<LeatherLogoProps>;
203
+
204
+ interface PhantomLogoProps extends React.SVGProps<SVGSVGElement> {
205
+ size?: number;
206
+ variant?: "first" | "second";
207
+ }
208
+ declare const PhantomLogo: React.FC<PhantomLogoProps>;
209
+
210
+ interface XverseLogoProps extends React.SVGProps<SVGSVGElement> {
211
+ size?: number;
212
+ variant?: "first" | "second";
213
+ }
214
+ declare const XverseLogo: React.FC<XverseLogoProps>;
215
+
216
+ interface UnisatLogoProps extends React.SVGProps<SVGSVGElement> {
217
+ size?: number;
218
+ variant?: "first" | "second";
219
+ }
220
+ declare const UnisatLogo: React.FC<UnisatLogoProps>;
221
+
222
+ interface WizzLogoProps extends React.SVGProps<SVGSVGElement> {
223
+ size?: number;
224
+ variant?: "first" | "second";
225
+ }
226
+ declare const WizzLogo: React.FC<WizzLogoProps>;
227
+
228
+ interface OkxLogoProps extends React.SVGProps<SVGSVGElement> {
229
+ size?: number;
230
+ variant?: "first" | "second";
231
+ }
232
+ declare const OkxLogo: React.FC<OkxLogoProps>;
233
+
234
+ interface MagicedenLogoProps extends React.SVGProps<SVGSVGElement> {
235
+ size?: number;
236
+ variant?: "first" | "second";
237
+ }
238
+ declare const MagicEdenLogo: React.FC<MagicedenLogoProps>;
239
+
240
+ declare const WalletIcon: ({ size, className, variant, walletName, }: {
241
+ size: number;
242
+ className?: string | undefined;
243
+ variant?: "first" | "second" | undefined;
244
+ walletName: typeof XVERSE | typeof WIZZ | typeof LEATHER | typeof MAGIC_EDEN | typeof OKX | typeof PHANTOM | typeof UNISAT | typeof OYL;
245
+ }) => react_jsx_runtime.JSX.Element;
246
+
247
+ export { DeScribeCreateResponse, FRACTAL_TESTNET, LEATHER, LEATHER_MAINNET, LEATHER_TESTNET, LaserEyesProvider, LeatherLogo, MAGIC_EDEN, MAINNET, MEMPOOL_SPACE_SIGNET_URL, MEMPOOL_SPACE_TESTNET_URL, MEMPOOL_SPACE_URL, MagicEdenLogo, OKX, OKX_MAINNET, OKX_TESTNET, OP_WALLET_MAINNET, OP_WALLET_TESTNET, OYL, OkxLogo, OylLogo, P2PKH, P2PSH, P2SH, P2TR, P2WPKH, P2WSH, PHANTOM, PhantomLogo, REGTEST, SIGNET, TESTNET, UNISAT, UNISAT_FRACTAL_TESTNET, UNISAT_MAINNET, UNISAT_TESTNET, UnisatLogo, WALLETS, WIZZ, WIZZ_MAINNET, WIZZ_TESTNET, WalletIcon, WizzLogo, XVERSE, XVERSE_MAINNET, XVERSE_NETWORK, XVERSE_SIGNET, XVERSE_TESTNET, XverseLogo, createConfig, createSendBtcPsbt, delay, estimateTxSize, findOrdinalsAddress, findPaymentAddress, getBTCBalance, getBitcoinNetwork, getLeatherNetwork, getMempoolSpaceUrl, getNetworkForLeather, getNetworkForOkx, getNetworkForUnisat, getNetworkForWizz, getNetworkForXverse, getRedeemScript, getUnisatNetwork, getWizzNetwork, getXverseNetwork, isBase64, isHex, satoshisToBTC, useInscriber, useLaserEyes };