@bestinslot/wallet-kit 0.7.0
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/README.md +108 -0
- package/dist/balances-BQiaAIaq.js +9627 -0
- package/dist/browser.js +205 -0
- package/dist/core.js +39 -0
- package/dist/mint-BXVHw4CQ.js +70722 -0
- package/dist/node.js +1787 -0
- package/dist/react.js +14 -0
- package/dist/register-browser-providers-CLLT6W6P.js +499 -0
- package/dist/types/adapters/react/use-network.d.ts +8 -0
- package/dist/types/adapters/react/use-wallet.d.ts +15 -0
- package/dist/types/adapters/vue/use-network.d.ts +12 -0
- package/dist/types/api/balances.d.ts +52 -0
- package/dist/types/api/brc20.d.ts +110 -0
- package/dist/types/api/helpers.d.ts +3 -0
- package/dist/types/api/mint.d.ts +57 -0
- package/dist/types/api/modal.d.ts +3 -0
- package/dist/types/api/swap.d.ts +122 -0
- package/dist/types/api/wallet.browser.d.ts +2 -0
- package/dist/types/api/wallet.d.ts +6 -0
- package/dist/types/api/wallet.node.d.ts +4 -0
- package/dist/types/browser.d.ts +10 -0
- package/dist/types/components/Dev.vue.d.ts +11 -0
- package/dist/types/components/connect-modal-view.d.ts +28 -0
- package/dist/types/components/dev/BRC20.vue.d.ts +2 -0
- package/dist/types/components/dev/Button.vue.d.ts +17 -0
- package/dist/types/components/dev/Input.vue.d.ts +12 -0
- package/dist/types/components/dev/Label.vue.d.ts +17 -0
- package/dist/types/components/dev/Select.vue.d.ts +17 -0
- package/dist/types/components/dev/SessionInfo.vue.d.ts +6 -0
- package/dist/types/core/bis.d.ts +21 -0
- package/dist/types/core/bis_swap.d.ts +622 -0
- package/dist/types/core/brc20.d.ts +229 -0
- package/dist/types/core/connect-modal.d.ts +15 -0
- package/dist/types/core/helpers.d.ts +212 -0
- package/dist/types/core/mint.d.ts +364 -0
- package/dist/types/core/modal.d.ts +21 -0
- package/dist/types/core/providers.d.ts +90 -0
- package/dist/types/core/register-browser-providers.d.ts +1 -0
- package/dist/types/core/register-local-provider.d.ts +1 -0
- package/dist/types/core/storage.d.ts +19 -0
- package/dist/types/core/store-network.d.ts +20 -0
- package/dist/types/core/store.d.ts +39 -0
- package/dist/types/core.d.ts +10 -0
- package/dist/types/lib/bitcoin.d.ts +8 -0
- package/dist/types/lib/dev-worker.d.ts +1 -0
- package/dist/types/lib/dev.d.ts +9 -0
- package/dist/types/lib/swap-constants.d.ts +7 -0
- package/dist/types/lib/swap-reporting.d.ts +80 -0
- package/dist/types/lib/uniswap_ops.d.ts +238 -0
- package/dist/types/lib/web3.d.ts +7 -0
- package/dist/types/node.d.ts +9 -0
- package/dist/types/provider/api.d.ts +97 -0
- package/dist/types/provider/leather.d.ts +2 -0
- package/dist/types/provider/local.d.ts +39 -0
- package/dist/types/provider/okx.d.ts +2 -0
- package/dist/types/provider/unisat.d.ts +2 -0
- package/dist/types/provider/xverse.d.ts +2 -0
- package/dist/types/react.d.ts +3 -0
- package/dist/types/types/common.d.ts +33 -0
- package/dist/types/types/global.d.ts +26 -0
- package/dist/types/types/inscription.d.ts +147 -0
- package/dist/types/types/vite-env.d.ts +7 -0
- package/dist/types/types/wallet.d.ts +50 -0
- package/dist/types/vue.d.ts +2 -0
- package/dist/vue.js +13 -0
- package/package.json +133 -0
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { Buff } from '@cmdcode/buff-utils';
|
|
2
|
+
/**
|
|
3
|
+
* Class representing the details of an inscription to be minted. This class is used to encapsulate
|
|
4
|
+
* the various properties of an inscription, such as its MIME type, metadata, metaprotocol, content
|
|
5
|
+
* encoding, delegate, and file data. Each property is optional and can be null. The constructor
|
|
6
|
+
* validates the types of the properties to ensure they are either Buff instances or null.
|
|
7
|
+
*
|
|
8
|
+
* @class InscriptionDetails
|
|
9
|
+
*
|
|
10
|
+
* @property {Buff|null} mime_type - The MIME type of the inscription content, or null if not specified.
|
|
11
|
+
* @property {Buff|null} metadata - Additional metadata associated with the inscription, or null if not specified.
|
|
12
|
+
* @property {Buff|null} metaprotocol - The metaprotocol information for the inscription, or null if not specified.
|
|
13
|
+
* @property {Buff|null} content_encoding - The content encoding used for the inscription, or null if not specified.
|
|
14
|
+
* @property {Buff|null} delegate - The delegate information for the inscription, or null if not specified.
|
|
15
|
+
* @property {Buff|null} file_data - The actual file data to be inscribed, or null if not specified.
|
|
16
|
+
*/
|
|
17
|
+
export declare class InscriptionDetails {
|
|
18
|
+
mimeType: Buff | null;
|
|
19
|
+
metadata: Buff | null;
|
|
20
|
+
metaprotocol: Buff | null;
|
|
21
|
+
contentEncoding: Buff | null;
|
|
22
|
+
delegate: Buff | null;
|
|
23
|
+
data: Buff | null;
|
|
24
|
+
/**
|
|
25
|
+
* Creates an instance of InscriptionDetails.
|
|
26
|
+
*
|
|
27
|
+
* @param {Buff|null} mimeType - The MIME type of the inscription content, or null if not specified.
|
|
28
|
+
* @param {Buff|null} metadata - Additional metadata associated with the inscription, or null if not specified.
|
|
29
|
+
* @param {Buff|null} metaprotocol - The metaprotocol information for the inscription, or null if not specified.
|
|
30
|
+
* @param {Buff|null} contentEncoding - The content encoding used for the inscription, or null if not specified.
|
|
31
|
+
* @param {Buff|null} delegate - The delegate information for the inscription, or null if not specified.
|
|
32
|
+
* @param {Buff|null} data - The actual file data to be inscribed, or null if not specified.
|
|
33
|
+
* @throws {Error} Throws an error if any of the parameters are not of type Buff or null.
|
|
34
|
+
* @returns {InscriptionDetails} An instance of the InscriptionDetails class.
|
|
35
|
+
* @example
|
|
36
|
+
* const inscriptionDetails = new InscriptionDetails(
|
|
37
|
+
* Buff.from('text/plain'),
|
|
38
|
+
* Buff.from('{"name": "My Inscription", "description": "This is an example inscription."}'),
|
|
39
|
+
* Buff.from('my-metaprotocol'),
|
|
40
|
+
* Buff.from('utf-8'),
|
|
41
|
+
* Buff.from('delegate-info'),
|
|
42
|
+
* Buff.from('file data to be inscribed'),
|
|
43
|
+
* );
|
|
44
|
+
*/
|
|
45
|
+
constructor(mimeType: Buff | null, metadata: Buff | null, metaprotocol: Buff | null, contentEncoding: Buff | null, delegate: Buff | null, data: Buff | null);
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Helper function to create an InscriptionDetails instance for a JSON file. This function takes a Buff
|
|
49
|
+
* containing JSON data and returns an InscriptionDetails instance with the appropriate MIME type, content
|
|
50
|
+
* encoding, and file data set. The metadata, metaprotocol, and delegate properties are set to null.
|
|
51
|
+
*
|
|
52
|
+
* @param {any} jsonData - The JSON data to be inscribed.
|
|
53
|
+
* @returns {InscriptionDetails} An instance of the InscriptionDetails class with the JSON data set for inscription.
|
|
54
|
+
*/
|
|
55
|
+
export declare function jsonInscription(jsonData: any): InscriptionDetails;
|
|
56
|
+
/**
|
|
57
|
+
* Helper function to create an InscriptionDetails instance for a text file. This function takes a string
|
|
58
|
+
* containing the text data and returns an InscriptionDetails instance with the appropriate MIME type, content
|
|
59
|
+
* encoding, and file data set. The metadata, metaprotocol, and delegate properties are set to null.
|
|
60
|
+
*
|
|
61
|
+
* @param {string} text - A string containing the text data to be inscribed.
|
|
62
|
+
* @returns {InscriptionDetails} An instance of the InscriptionDetails class with the text data set for inscription.
|
|
63
|
+
*/
|
|
64
|
+
export declare function textInscription(text: string): InscriptionDetails;
|
|
65
|
+
/**
|
|
66
|
+
* Helper function to create an InscriptionDetails instance for a delegated inscription. This function takes an inscription ID
|
|
67
|
+
* and returns an InscriptionDetails instance with the delegate property set to the provided inscription ID. The MIME type, metadata,
|
|
68
|
+
* metaprotocol, content encoding, and file data properties are set to null.
|
|
69
|
+
*
|
|
70
|
+
* @param inscriptionId - A string representing the inscription ID to delegate to.
|
|
71
|
+
* @returns An instance of the InscriptionDetails class with the delegate property set.
|
|
72
|
+
*/
|
|
73
|
+
export declare function delegateInscription(inscriptionId: string): InscriptionDetails;
|
|
74
|
+
/**
|
|
75
|
+
* Inscribe fees for a single inscription, including total fee, commit fee, reveal fee, postage, and secret.
|
|
76
|
+
*
|
|
77
|
+
* @interface InscribeFees
|
|
78
|
+
* @property {number} totalFee - The total fee in satoshis for the inscription process, including both commit and reveal transactions.
|
|
79
|
+
* @property {number} commitFee - The fee in satoshis for the commit transaction that initiates the inscription process.
|
|
80
|
+
* @property {number} revealFee - The fee in satoshis for the reveal transaction that completes the inscription process.
|
|
81
|
+
* @property {number} postage - The amount of postage in satoshis included in the inscription transactions, which indicates the size of the utxo that holds the inscription.
|
|
82
|
+
* @property {string} secret - A secret token used during the inscription process, which may be required for certain operations related to the inscription.
|
|
83
|
+
*/
|
|
84
|
+
export interface InscribeFees {
|
|
85
|
+
totalFee: number;
|
|
86
|
+
commitFee: number;
|
|
87
|
+
revealFee: number;
|
|
88
|
+
postage: number;
|
|
89
|
+
secret: string;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Result of an inscription minting process, including commit transaction ID, signed commit transaction hex, reveal transaction ID, signed reveal transaction hex, inscription ID, postage used, and the secret token used for minting.
|
|
93
|
+
*
|
|
94
|
+
* @interface InscribeResult
|
|
95
|
+
* @property {string} commitTxId - The transaction ID of the commit transaction that initiated the inscription process.
|
|
96
|
+
* @property {string} signedCommitTxHex - The signed transaction hex of the commit transaction, which can be used for broadcasting or record-keeping purposes.
|
|
97
|
+
* @property {string} revealTxId - The transaction ID of the reveal transaction that completed the inscription process and revealed the inscription on the blockchain.
|
|
98
|
+
* @property {string} signedRevealTxHex - The signed transaction hex of the reveal transaction, which can be used for broadcasting or record-keeping purposes.
|
|
99
|
+
* @property {string} inscriptionId - The unique identifier of the newly minted inscription, which can be used to reference and interact with the inscription in future operations.
|
|
100
|
+
* @property {number} postage - The amount of postage in satoshis that was included in the inscription transactions, which indicates the cost paid for inscribing the content on the blockchain.
|
|
101
|
+
* @property {string} secret - The secret token used during the inscription process, which may be required for certain operations related to the inscription.
|
|
102
|
+
*/
|
|
103
|
+
export interface InscribeResult {
|
|
104
|
+
commitTxId: string;
|
|
105
|
+
signedCommitTxHex: string;
|
|
106
|
+
revealTxId: string;
|
|
107
|
+
signedRevealTxHex: string;
|
|
108
|
+
inscriptionId: string;
|
|
109
|
+
postage: number;
|
|
110
|
+
secret: string;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Inscribe multiple inscriptions result, including commit transaction ID, signed commit transaction hex, reveal transaction ID, signed reveal transaction hex, an array of inscription IDs, postage used, and the secret token used for minting.
|
|
114
|
+
*
|
|
115
|
+
* @interface InscribeMultipleResult
|
|
116
|
+
* @property {string} commitTxId - The transaction ID of the commit transaction that initiated the inscription process for multiple inscriptions.
|
|
117
|
+
* @property {string} signedCommitTxHex - The signed transaction hex of the commit transaction, which can be used for broadcasting or record-keeping purposes.
|
|
118
|
+
* @property {string} revealTxId - The transaction ID of the reveal transaction that completed the inscription process for multiple inscriptions.
|
|
119
|
+
* @property {string} signedRevealTxHex - The signed transaction hex of the reveal transaction, which can be used for broadcasting or record-keeping purposes.
|
|
120
|
+
* @property {string[]} inscriptionIds - An array of strings representing the IDs of the inscriptions that were minted in this batch process.
|
|
121
|
+
* @property {number} postage - The amount of postage in satoshis that was included in the inscription transactions, which indicates the cost associated with minting the inscriptions.
|
|
122
|
+
* @property {string} secret - A secret token used during the inscription process, which may be required
|
|
123
|
+
*/
|
|
124
|
+
export interface InscribeMultipleResult {
|
|
125
|
+
commitTxId: string;
|
|
126
|
+
signedCommitTxHex: string;
|
|
127
|
+
revealTxId: string;
|
|
128
|
+
signedRevealTxHex: string;
|
|
129
|
+
inscriptionIds: string[];
|
|
130
|
+
postage: number;
|
|
131
|
+
secret: string;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Result of sending an inscription, including the transaction ID of the send transaction, the signed transaction hex, the vout index of the output containing the inscription, and the value of that output in satoshis.
|
|
135
|
+
*
|
|
136
|
+
* @interface SendInscriptionResult
|
|
137
|
+
* @property {string} txId - The transaction ID of the send transaction that transferred the inscription to its new location.
|
|
138
|
+
* @property {string} signedTxHex - The signed transaction hex of the send transaction, which can be used for broadcasting or record-keeping purposes.
|
|
139
|
+
* @property {number} vout - The index of the output in the send transaction that contains the inscription after it has been transferred.
|
|
140
|
+
* @property {number} outputValue - The value of the output containing the inscription in satoshis, which indicates the amount of Bitcoin associated with the inscription after it has been sent.
|
|
141
|
+
*/
|
|
142
|
+
export interface SendInscriptionResult {
|
|
143
|
+
txId: string;
|
|
144
|
+
signedTxHex: string;
|
|
145
|
+
vout: number;
|
|
146
|
+
outputValue: number;
|
|
147
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Buffer } from 'node:buffer';
|
|
2
|
+
/**
|
|
3
|
+
* Class representing wallet information for a Bitcoin address. This class is used to encapsulate the properties of a wallet, such as its address,
|
|
4
|
+
* redeem script, whether it is an OP_RETURN output, the output script, and the public key. The constructor validates the properties and sets the output
|
|
5
|
+
* script based on the provided address and output script. The class also includes a method to retrieve the redeem script, which can be derived from the public key if not provided.
|
|
6
|
+
*
|
|
7
|
+
* @class WalletInfo
|
|
8
|
+
* @property {string|null|undefined} addr - The Bitcoin address associated with the wallet, or null/undefined if not specified.
|
|
9
|
+
* @property {Buffer|null} redeemScript - The redeem script for the wallet, or null if not specified.
|
|
10
|
+
* @property {boolean} is_op_return - A boolean indicating whether the wallet is an OP_RETURN output.
|
|
11
|
+
* @property {Buffer} outputScript - The output script for the wallet, derived from the address or provided directly.
|
|
12
|
+
* @property {string|null} publicKey - The public key associated with the wallet, or null if not specified.
|
|
13
|
+
*/
|
|
14
|
+
export declare class WalletInfo {
|
|
15
|
+
addr: string | null | undefined;
|
|
16
|
+
redeemScript: Buffer | null;
|
|
17
|
+
isOpReturn: boolean;
|
|
18
|
+
outputScript: Buffer;
|
|
19
|
+
publicKey: string | null;
|
|
20
|
+
/**
|
|
21
|
+
* Creates an instance of WalletInfo.
|
|
22
|
+
*
|
|
23
|
+
* @param {boolean} isOpReturn - A boolean indicating whether the wallet is an OP_RETURN output.
|
|
24
|
+
* @param {Buffer|null} outputScript - The output script for the wallet, or null if it should be derived from the address.
|
|
25
|
+
* @param {string|null|undefined} addr - The Bitcoin address associated with the wallet, or null/undefined if not specified.
|
|
26
|
+
* @param {Buffer|null} redeemScript - The redeem script for the wallet, or null if not specified.
|
|
27
|
+
* @param {string|null} publicKey - The public key associated with the wallet, or null if not specified.
|
|
28
|
+
*/
|
|
29
|
+
constructor(isOpReturn: boolean, outputScript: Buffer | null, addr: string | null | undefined, redeemScript: Buffer | null, publicKey: string | null);
|
|
30
|
+
/**
|
|
31
|
+
* Get the redeem script for the wallet. If the redeem script is already set, it returns the cached redeem script. If not, it derives the redeem script from the public key.
|
|
32
|
+
*
|
|
33
|
+
* @returns {Buffer} The redeem script for the wallet.
|
|
34
|
+
*/
|
|
35
|
+
getRedeemScript(): Buffer;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Utility function to create a WalletInfo instance for an OP_RETURN output. This function takes an output script as input and returns a WalletInfo instance with the isOpReturn property set to true.
|
|
39
|
+
*
|
|
40
|
+
* @param outputScript - The output script for the OP_RETURN output, provided as a Buffer.
|
|
41
|
+
* @returns {WalletInfo} A WalletInfo instance representing the OP_RETURN output.
|
|
42
|
+
*/
|
|
43
|
+
export declare function opReturnWalletInfo(outputScript: Buffer): WalletInfo;
|
|
44
|
+
/**
|
|
45
|
+
* Utility function to create a WalletInfo instance for a standard Bitcoin address. This function takes a Bitcoin address as input and returns a WalletInfo instance with the isOpReturn property set to false and the output script derived from the address.
|
|
46
|
+
*
|
|
47
|
+
* @param addr - The Bitcoin address for which to create the WalletInfo instance, provided as a string.
|
|
48
|
+
* @returns {WalletInfo} A WalletInfo instance representing the standard Bitcoin address.
|
|
49
|
+
*/
|
|
50
|
+
export declare function addressWalletInfo(addr: string): WalletInfo;
|
package/dist/vue.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ref as s, onScopeDispose as i, watch as u } from "vue";
|
|
2
|
+
import { d as r, w as c, i as w } from "./mint-BXVHw4CQ.js";
|
|
3
|
+
function n() {
|
|
4
|
+
const e = s(r()), t = c((o) => {
|
|
5
|
+
e.value !== o && (e.value = o);
|
|
6
|
+
});
|
|
7
|
+
return i(t, !0), u(e, (o) => {
|
|
8
|
+
o !== r() && w(o);
|
|
9
|
+
}), e;
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
n as useNetwork
|
|
13
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@bestinslot/wallet-kit",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.7.0",
|
|
5
|
+
"private": false,
|
|
6
|
+
"description": "A lightweight JavaScript library for connecting Bitcoin wallets with a unified API.",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"node": {
|
|
10
|
+
"types": "./dist/types/node.d.ts",
|
|
11
|
+
"import": "./dist/node.js"
|
|
12
|
+
},
|
|
13
|
+
"browser": {
|
|
14
|
+
"types": "./dist/types/browser.d.ts",
|
|
15
|
+
"import": "./dist/browser.js"
|
|
16
|
+
},
|
|
17
|
+
"default": {
|
|
18
|
+
"types": "./dist/types/browser.d.ts",
|
|
19
|
+
"import": "./dist/browser.js"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"./node": {
|
|
23
|
+
"types": "./dist/types/node.d.ts",
|
|
24
|
+
"import": "./dist/node.js"
|
|
25
|
+
},
|
|
26
|
+
"./browser": {
|
|
27
|
+
"types": "./dist/types/browser.d.ts",
|
|
28
|
+
"import": "./dist/browser.js"
|
|
29
|
+
},
|
|
30
|
+
"./core": {
|
|
31
|
+
"types": "./dist/types/core.d.ts",
|
|
32
|
+
"import": "./dist/core.js"
|
|
33
|
+
},
|
|
34
|
+
"./react": {
|
|
35
|
+
"types": "./dist/types/react.d.ts",
|
|
36
|
+
"import": "./dist/react.js"
|
|
37
|
+
},
|
|
38
|
+
"./vue": {
|
|
39
|
+
"types": "./dist/types/vue.d.ts",
|
|
40
|
+
"import": "./dist/vue.js"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"module": "dist/browser.js",
|
|
44
|
+
"types": "dist/types/browser.d.ts",
|
|
45
|
+
"files": [
|
|
46
|
+
"dist"
|
|
47
|
+
],
|
|
48
|
+
"peerDependencies": {
|
|
49
|
+
"react": ">=18",
|
|
50
|
+
"vue": "^3.5.13"
|
|
51
|
+
},
|
|
52
|
+
"peerDependenciesMeta": {
|
|
53
|
+
"react": {
|
|
54
|
+
"optional": true
|
|
55
|
+
},
|
|
56
|
+
"vue": {
|
|
57
|
+
"optional": true
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"dependencies": {
|
|
61
|
+
"@bestinslot/nada": "^0.1.6",
|
|
62
|
+
"@bitcoinerlab/secp256k1": "^1.2.0",
|
|
63
|
+
"@bokuweb/zstd-wasm": "^0.0.27",
|
|
64
|
+
"@cmdcode/buff-utils": "^2.0.0",
|
|
65
|
+
"@cmdcode/crypto-tools": "^2.8.0",
|
|
66
|
+
"@cmdcode/tapscript": "1.5.3",
|
|
67
|
+
"@noble/curves": "2.0.1",
|
|
68
|
+
"@noble/hashes": "2.0.1",
|
|
69
|
+
"@noble/secp256k1": "^3.0.0",
|
|
70
|
+
"base64-arraybuffer": "^1.0.2",
|
|
71
|
+
"bip322-js": "^3.0.0",
|
|
72
|
+
"bitcoinjs-lib": "^6.1.7",
|
|
73
|
+
"bitcoinjs-message": "^2.2.0",
|
|
74
|
+
"cbor2": "^1.12.0",
|
|
75
|
+
"ecpair": "^3.0.0",
|
|
76
|
+
"ethers": "^6.16.0",
|
|
77
|
+
"tiny-secp256k1": "^2.2.4",
|
|
78
|
+
"varuint-bitcoin": "^2.0.0",
|
|
79
|
+
"web3": "^4.16.0"
|
|
80
|
+
},
|
|
81
|
+
"devDependencies": {
|
|
82
|
+
"@antfu/eslint-config": "^6.7.3",
|
|
83
|
+
"@leather-wallet/types": "^0.2.1",
|
|
84
|
+
"@tailwindcss/vite": "^4.1.18",
|
|
85
|
+
"@testing-library/react": "^16.3.2",
|
|
86
|
+
"@types/react": "^19.2.17",
|
|
87
|
+
"@vitejs/plugin-vue": "^6.0.3",
|
|
88
|
+
"@vue/tsconfig": "^0.8.1",
|
|
89
|
+
"@vueuse/core": "^14.1.0",
|
|
90
|
+
"clsx": "^2.1.1",
|
|
91
|
+
"dotenv": "^17.3.1",
|
|
92
|
+
"eslint": "^9.39.2",
|
|
93
|
+
"eslint-plugin-jsdoc": "^62.6.1",
|
|
94
|
+
"jsdom": "^29.1.1",
|
|
95
|
+
"prettier": "^3.8.1",
|
|
96
|
+
"react": "^19.2.7",
|
|
97
|
+
"react-dom": "^19.2.7",
|
|
98
|
+
"solc": "^0.8.33",
|
|
99
|
+
"tailwind-merge": "^3.4.0",
|
|
100
|
+
"tailwindcss": "^4.1.18",
|
|
101
|
+
"ts-morph": "^27.0.2",
|
|
102
|
+
"typedoc": "^0.28.17",
|
|
103
|
+
"typescript": "^5.9.3",
|
|
104
|
+
"vite": "^7.3.0",
|
|
105
|
+
"vite-plugin-dts": "^4.5.4",
|
|
106
|
+
"vite-plugin-node-polyfills": "^0.24.0",
|
|
107
|
+
"vite-plugin-wasm": "^3.5.0",
|
|
108
|
+
"vitest": "^4.0.18",
|
|
109
|
+
"vue": "^3.5.13",
|
|
110
|
+
"vue-tsc": "^3.2.2"
|
|
111
|
+
},
|
|
112
|
+
"publishConfig": {
|
|
113
|
+
"access": "public"
|
|
114
|
+
},
|
|
115
|
+
"scripts": {
|
|
116
|
+
"dev": "vite",
|
|
117
|
+
"build": "vue-tsc -b && vite build",
|
|
118
|
+
"build:debug": "vue-tsc -b && vite build --minify=false",
|
|
119
|
+
"preview": "vite preview",
|
|
120
|
+
"lint": "eslint",
|
|
121
|
+
"lint:fix": "prettier --write . && eslint --fix",
|
|
122
|
+
"test": "vitest run",
|
|
123
|
+
"verify:bundles": "node scripts/verify-build-flavours.mjs",
|
|
124
|
+
"test:signet": "vitest run tests/signet/ --config vitest.signet.config.ts",
|
|
125
|
+
"test:mainnet": "vitest run tests/mainnet/ --config vitest.mainnet.config.ts",
|
|
126
|
+
"docs:api": "typedoc",
|
|
127
|
+
"examples:install": "pnpm install",
|
|
128
|
+
"examples:build": "pnpm build && pnpm -r --filter \"./examples/*\" build",
|
|
129
|
+
"example:react": "pnpm build && pnpm --filter example-react dev",
|
|
130
|
+
"example:vue": "pnpm build && pnpm --filter example-vue dev",
|
|
131
|
+
"example:vanilla": "pnpm build && pnpm --filter example-vanillajs dev"
|
|
132
|
+
}
|
|
133
|
+
}
|