@omnisat/lasereyes 0.0.27 → 0.0.28
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 +6 -4
- package/dist/index.js +1487 -281
- package/dist/index.mjs +1665 -293
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ 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 OP_WALLET_MAINNET = "livenet";
|
|
10
|
+
declare const OP_WALLET_TESTNET = "testnet";
|
|
9
11
|
declare const XVERSE_MAINNET = "Mainnet";
|
|
10
12
|
declare const XVERSE_TESTNET = "Testnet";
|
|
11
13
|
declare const XVERSE_SIGNET = "Signet";
|
|
@@ -85,7 +87,7 @@ type LaserEyesContextType = {
|
|
|
85
87
|
paymentAddress: string;
|
|
86
88
|
paymentPublicKey: string;
|
|
87
89
|
balance: number | undefined;
|
|
88
|
-
network: typeof MAINNET | typeof TESTNET | typeof SIGNET
|
|
90
|
+
network: typeof MAINNET | typeof TESTNET | typeof SIGNET;
|
|
89
91
|
library: any;
|
|
90
92
|
provider: any;
|
|
91
93
|
accounts: string[];
|
|
@@ -101,7 +103,7 @@ type LaserEyesContextType = {
|
|
|
101
103
|
disconnect: () => void;
|
|
102
104
|
requestAccounts: () => Promise<string[]>;
|
|
103
105
|
getNetwork: () => Promise<string | undefined>;
|
|
104
|
-
switchNetwork: (network: typeof MAINNET | typeof TESTNET | typeof SIGNET
|
|
106
|
+
switchNetwork: (network: typeof MAINNET | typeof TESTNET | typeof SIGNET) => Promise<void>;
|
|
105
107
|
getPublicKey: () => Promise<string>;
|
|
106
108
|
getBalance: () => Promise<string>;
|
|
107
109
|
getInscriptions: () => Promise<any[]>;
|
|
@@ -115,7 +117,7 @@ type LaserEyesContextType = {
|
|
|
115
117
|
pushPsbt: (tx: string) => Promise<string | undefined>;
|
|
116
118
|
};
|
|
117
119
|
type Config = {
|
|
118
|
-
network: typeof MAINNET | typeof TESTNET | typeof SIGNET
|
|
120
|
+
network: typeof MAINNET | typeof TESTNET | typeof SIGNET;
|
|
119
121
|
};
|
|
120
122
|
interface CommitPsbtResponse {
|
|
121
123
|
inscriberAddress: string;
|
|
@@ -185,4 +187,4 @@ declare const useInscriber: ({ inscribeApiUrl, }: {
|
|
|
185
187
|
reset: () => void;
|
|
186
188
|
};
|
|
187
189
|
|
|
188
|
-
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, 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 };
|
|
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 };
|