@omnisat/lasereyes 0.0.30 → 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 +9 -7
- package/dist/index.js +3251 -537
- package/dist/index.mjs +3611 -549
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import * as bitcoin from 'bitcoinjs-lib';
|
|
|
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>;
|
|
@@ -242,4 +244,4 @@ declare const WalletIcon: ({ size, className, variant, walletName, }: {
|
|
|
242
244
|
walletName: typeof XVERSE | typeof WIZZ | typeof LEATHER | typeof MAGIC_EDEN | typeof OKX | typeof PHANTOM | typeof UNISAT | typeof OYL;
|
|
243
245
|
}) => react_jsx_runtime.JSX.Element;
|
|
244
246
|
|
|
245
|
-
export { DeScribeCreateResponse, 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_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 };
|
|
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 };
|