@worldcoin/minikit-js 2.0.1 → 2.0.3

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.
Files changed (33) hide show
  1. package/build/chunk-2ADHLH4F.js +14 -0
  2. package/build/{chunk-6SCI6OTQ.js → chunk-5B6BPEWR.js} +105 -73
  3. package/build/chunk-6E2XIIO6.js +8 -0
  4. package/build/{chunk-MOORQBWF.js → chunk-7RB4UJBW.js} +6 -4
  5. package/build/{chunk-XHYUUG6Y.js → chunk-AH3WTRZY.js} +16 -221
  6. package/build/chunk-DZ2YRSIU.js +216 -0
  7. package/build/{chunk-QX4OA3EY.js → chunk-MXMNPAOF.js} +8 -10
  8. package/build/{chunk-IYL4VCWR.js → chunk-YPZEODWL.js} +30 -13
  9. package/build/command-exports.cjs +18 -20
  10. package/build/command-exports.d.cts +4 -4
  11. package/build/command-exports.d.ts +4 -4
  12. package/build/command-exports.js +14 -12
  13. package/build/connector/index.cjs +275 -246
  14. package/build/connector/index.js +10 -7
  15. package/build/index.cjs +33 -29
  16. package/build/index.d.cts +2 -2
  17. package/build/index.d.ts +2 -2
  18. package/build/index.js +6 -4
  19. package/build/minikit-provider.cjs +36 -307
  20. package/build/minikit-provider.js +15 -8
  21. package/build/siwe-exports.cjs +28 -12
  22. package/build/siwe-exports.d.cts +3 -2
  23. package/build/siwe-exports.d.ts +3 -2
  24. package/build/siwe-exports.js +1 -1
  25. package/build/{types-BV7utGi5.d.ts → types-B3FhypWE.d.ts} +1 -1
  26. package/build/{types-UxYgWVfF.d.ts → types-COxx4rrS.d.cts} +2 -0
  27. package/build/{types-UxYgWVfF.d.cts → types-COxx4rrS.d.ts} +2 -0
  28. package/build/{types-CBzfDT31.d.cts → types-D_X89fCc.d.cts} +1 -1
  29. package/build/wagmi-fallback-register.cjs +362 -0
  30. package/build/wagmi-fallback-register.d.cts +10 -0
  31. package/build/wagmi-fallback-register.d.ts +10 -0
  32. package/build/wagmi-fallback-register.js +14 -0
  33. package/package.json +11 -1
@@ -135,17 +135,13 @@ var parseSiweMessage = (inputString) => {
135
135
  return siweMessageData;
136
136
  };
137
137
  var verifySiweMessage = (payload, nonce, statement, requestId, userProvider) => {
138
- if (payload.version !== 2) {
139
- throw new Error("Unsupported version returned");
140
- } else {
141
- return verifySiweMessageV2(
142
- payload,
143
- nonce,
144
- statement,
145
- requestId,
146
- userProvider
147
- );
148
- }
138
+ return verifySiweMessageV2(
139
+ payload,
140
+ nonce,
141
+ statement,
142
+ requestId,
143
+ userProvider
144
+ );
149
145
  };
150
146
  var validateMessage = (siweMessageData, nonce, statement, requestId) => {
151
147
  if (siweMessageData.expiration_time) {
@@ -190,11 +186,31 @@ var verifySiweMessageV2 = async (payload, nonce, statement, requestId, userProvi
190
186
  if (!validateMessage(siweMessageData, nonce, statement, requestId)) {
191
187
  throw new Error("Validation failed");
192
188
  }
189
+ if (siweMessageData.address && siweMessageData.address.toLowerCase() !== address.toLowerCase()) {
190
+ throw new Error(
191
+ "Address mismatch: payload address does not match SIWE message address"
192
+ );
193
+ }
194
+ const expectedAddress = (siweMessageData.address ?? address).toLowerCase();
195
+ try {
196
+ const recoveredAddress = await (0, import_viem.recoverMessageAddress)({
197
+ message,
198
+ signature
199
+ });
200
+ if (recoveredAddress.toLowerCase() === expectedAddress) {
201
+ return {
202
+ isValid: true,
203
+ siweMessageData
204
+ };
205
+ }
206
+ } catch {
207
+ }
193
208
  try {
209
+ const client = userProvider || (0, import_viem.createPublicClient)({ chain: import_chains.worldchain, transport: (0, import_viem.http)() });
194
210
  const walletContract = (0, import_viem.getContract)({
195
211
  address,
196
212
  abi: SAFE_CONTRACT_ABI,
197
- client: userProvider || (0, import_viem.createPublicClient)({ chain: import_chains.worldchain, transport: (0, import_viem.http)() })
213
+ client
198
214
  });
199
215
  const hashedMessage = (0, import_viem.hashMessage)(message);
200
216
  const res = await walletContract.read.isValidSignature([
@@ -1,8 +1,9 @@
1
1
  import { Client } from 'viem';
2
- import { S as SiweMessage, y as MiniAppWalletAuthSuccessPayload } from './types-UxYgWVfF.cjs';
2
+ import { S as SiweMessage, W as WalletAuthResult, y as MiniAppWalletAuthSuccessPayload } from './types-COxx4rrS.cjs';
3
3
 
4
+ type VerifySiwePayload = WalletAuthResult | MiniAppWalletAuthSuccessPayload;
4
5
  declare const parseSiweMessage: (inputString: string) => SiweMessage;
5
- declare const verifySiweMessage: (payload: MiniAppWalletAuthSuccessPayload, nonce: string, statement?: string, requestId?: string, userProvider?: Client) => Promise<{
6
+ declare const verifySiweMessage: (payload: VerifySiwePayload, nonce: string, statement?: string, requestId?: string, userProvider?: Client) => Promise<{
6
7
  isValid: boolean;
7
8
  siweMessageData: SiweMessage;
8
9
  }>;
@@ -1,8 +1,9 @@
1
1
  import { Client } from 'viem';
2
- import { S as SiweMessage, y as MiniAppWalletAuthSuccessPayload } from './types-UxYgWVfF.js';
2
+ import { S as SiweMessage, W as WalletAuthResult, y as MiniAppWalletAuthSuccessPayload } from './types-COxx4rrS.js';
3
3
 
4
+ type VerifySiwePayload = WalletAuthResult | MiniAppWalletAuthSuccessPayload;
4
5
  declare const parseSiweMessage: (inputString: string) => SiweMessage;
5
- declare const verifySiweMessage: (payload: MiniAppWalletAuthSuccessPayload, nonce: string, statement?: string, requestId?: string, userProvider?: Client) => Promise<{
6
+ declare const verifySiweMessage: (payload: VerifySiwePayload, nonce: string, statement?: string, requestId?: string, userProvider?: Client) => Promise<{
6
7
  isValid: boolean;
7
8
  siweMessageData: SiweMessage;
8
9
  }>;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  parseSiweMessage,
3
3
  verifySiweMessage
4
- } from "./chunk-IYL4VCWR.js";
4
+ } from "./chunk-YPZEODWL.js";
5
5
  export {
6
6
  parseSiweMessage,
7
7
  verifySiweMessage
@@ -1,4 +1,4 @@
1
- import { F as FallbackConfig, l as MiniAppBaseSuccessPayload, m as MiniAppBaseErrorPayload } from './types-UxYgWVfF.js';
1
+ import { F as FallbackConfig, l as MiniAppBaseSuccessPayload, m as MiniAppBaseErrorPayload } from './types-COxx4rrS.js';
2
2
  import { Abi, AbiStateMutability, ExtractAbiFunctionNames, AbiParametersToPrimitiveTypes, ExtractAbiFunction, TypedData, TypedDataDomain } from 'abitype';
3
3
 
4
4
  type AttestationParams = {
@@ -207,6 +207,8 @@ interface WalletAuthResult {
207
207
  message: string;
208
208
  /** Signature */
209
209
  signature: string;
210
+ /** Command protocol version (present when returned from World App) */
211
+ version?: number;
210
212
  }
211
213
  type SiweMessage = {
212
214
  scheme?: string;
@@ -207,6 +207,8 @@ interface WalletAuthResult {
207
207
  message: string;
208
208
  /** Signature */
209
209
  signature: string;
210
+ /** Command protocol version (present when returned from World App) */
211
+ version?: number;
210
212
  }
211
213
  type SiweMessage = {
212
214
  scheme?: string;
@@ -1,4 +1,4 @@
1
- import { F as FallbackConfig, l as MiniAppBaseSuccessPayload, m as MiniAppBaseErrorPayload } from './types-UxYgWVfF.cjs';
1
+ import { F as FallbackConfig, l as MiniAppBaseSuccessPayload, m as MiniAppBaseErrorPayload } from './types-COxx4rrS.cjs';
2
2
  import { Abi, AbiStateMutability, ExtractAbiFunctionNames, AbiParametersToPrimitiveTypes, ExtractAbiFunction, TypedData, TypedDataDomain } from 'abitype';
3
3
 
4
4
  type AttestationParams = {
@@ -0,0 +1,362 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/wagmi-fallback-register.ts
31
+ var wagmi_fallback_register_exports = {};
32
+ __export(wagmi_fallback_register_exports, {
33
+ registerWagmiFallback: () => registerWagmiFallback
34
+ });
35
+ module.exports = __toCommonJS(wagmi_fallback_register_exports);
36
+
37
+ // src/global-keys.ts
38
+ var WAGMI_CONFIG_KEY = "__minikit_wagmi_config__";
39
+ var WAGMI_INSTALL_HOOK_KEY = "__minikit_install_wagmi_fallback__";
40
+
41
+ // src/helpers/hex.ts
42
+ var HEX_ADDRESS_REGEX = /^0x[0-9a-fA-F]{40}$/;
43
+ var HEX_STRING_REGEX = /^0x[0-9a-fA-F]*$/;
44
+ function isHexAddress(value) {
45
+ return typeof value === "string" && HEX_ADDRESS_REGEX.test(value);
46
+ }
47
+ function isHexString(value) {
48
+ return typeof value === "string" && HEX_STRING_REGEX.test(value);
49
+ }
50
+
51
+ // src/commands/fallback.ts
52
+ var PartialExecutionError = class extends Error {
53
+ constructor(message, submitted, cause) {
54
+ super(message);
55
+ this.name = "PartialExecutionError";
56
+ this.submitted = submitted;
57
+ this.cause = cause;
58
+ }
59
+ };
60
+
61
+ // src/commands/fallback-adapter-registry.ts
62
+ var FALLBACK_ADAPTER_KEY = "__minikit_fallback_adapter__";
63
+ function setFallbackAdapter(adapter) {
64
+ globalThis[FALLBACK_ADAPTER_KEY] = adapter;
65
+ }
66
+
67
+ // src/commands/wagmi-fallback.ts
68
+ var SIWE_NONCE_REGEX = /^[a-zA-Z0-9]{8,}$/;
69
+ function setWagmiConfig(config) {
70
+ globalThis[WAGMI_CONFIG_KEY] = config;
71
+ registerWagmiFallbacks();
72
+ }
73
+ globalThis[WAGMI_INSTALL_HOOK_KEY] = setWagmiConfig;
74
+ function getWagmiConfig() {
75
+ return globalThis[WAGMI_CONFIG_KEY];
76
+ }
77
+ function registerWagmiFallbacks() {
78
+ setFallbackAdapter({
79
+ walletAuth: wagmiWalletAuth,
80
+ signMessage: wagmiSignMessage,
81
+ signTypedData: wagmiSignTypedData,
82
+ sendTransaction: wagmiSendTransaction
83
+ });
84
+ }
85
+ async function loadWagmiActions() {
86
+ try {
87
+ return await import("wagmi/actions");
88
+ } catch (error) {
89
+ const wrappedError = new Error(
90
+ 'Wagmi fallback requires the "wagmi" package. Install wagmi or provide a custom fallback.'
91
+ );
92
+ wrappedError.cause = error;
93
+ throw wrappedError;
94
+ }
95
+ }
96
+ async function loadSiwe() {
97
+ try {
98
+ return await import("siwe");
99
+ } catch (error) {
100
+ const wrappedError = new Error(
101
+ 'Wagmi walletAuth fallback requires the "siwe" package. Install siwe or provide a custom fallback.'
102
+ );
103
+ wrappedError.cause = error;
104
+ throw wrappedError;
105
+ }
106
+ }
107
+ async function checksumAddress(addr) {
108
+ try {
109
+ const { getAddress } = await import("viem");
110
+ return getAddress(addr);
111
+ } catch {
112
+ return addr;
113
+ }
114
+ }
115
+ async function ensureConnected(config) {
116
+ const { connect, getConnections } = await loadWagmiActions();
117
+ const isWorldApp = typeof window !== "undefined" && Boolean(window.WorldApp);
118
+ const existingConnection = getConnections(config).find(
119
+ (connection) => connection.accounts && connection.accounts.length > 0 && (isWorldApp || connection.connector?.id !== "worldApp")
120
+ );
121
+ if (existingConnection && existingConnection.accounts) {
122
+ return {
123
+ address: await checksumAddress(existingConnection.accounts[0]),
124
+ connector: existingConnection.connector
125
+ };
126
+ }
127
+ const connectors = config.connectors;
128
+ if (!connectors || connectors.length === 0) {
129
+ throw new Error("No Wagmi connectors configured");
130
+ }
131
+ const candidateConnectors = isWorldApp ? connectors : connectors.filter(
132
+ (connector) => connector.id !== "worldApp"
133
+ );
134
+ if (!isWorldApp && candidateConnectors.length === 0) {
135
+ throw new Error(
136
+ "No web Wagmi connectors configured. Add a web connector (e.g. injected or walletConnect) after worldApp()."
137
+ );
138
+ }
139
+ const selectedConnector = candidateConnectors[0];
140
+ try {
141
+ const result = await connect(config, { connector: selectedConnector });
142
+ if (result.accounts.length > 0) {
143
+ const account = result.accounts[0];
144
+ const address = typeof account === "string" ? account : account.address;
145
+ if (address) {
146
+ return {
147
+ address: await checksumAddress(address),
148
+ connector: selectedConnector
149
+ };
150
+ }
151
+ }
152
+ } catch (error) {
153
+ const connectorId = selectedConnector.id ?? "unknown";
154
+ const wrappedError = new Error(
155
+ `Failed to connect with connector "${connectorId}". Reorder connectors to change the default connector.`
156
+ );
157
+ wrappedError.cause = error;
158
+ throw wrappedError;
159
+ }
160
+ throw new Error("Failed to connect wallet");
161
+ }
162
+ async function wagmiWalletAuth(params) {
163
+ const config = getWagmiConfig();
164
+ if (!config) {
165
+ throw new Error(
166
+ "Wagmi config not available. Pass wagmiConfig to MiniKitProvider."
167
+ );
168
+ }
169
+ const { signMessage } = await loadWagmiActions();
170
+ const { SiweMessage } = await loadSiwe();
171
+ const { address, connector } = await ensureConnected(config);
172
+ if (!SIWE_NONCE_REGEX.test(params.nonce)) {
173
+ throw new Error(
174
+ "Invalid nonce: must be alphanumeric and at least 8 characters (EIP-4361)"
175
+ );
176
+ }
177
+ const siweMessage = new SiweMessage({
178
+ domain: typeof window !== "undefined" ? window.location.host : "localhost",
179
+ address,
180
+ statement: params.statement,
181
+ uri: typeof window !== "undefined" ? window.location.origin : "http://localhost",
182
+ version: "1",
183
+ chainId: 480,
184
+ // World Chain
185
+ nonce: params.nonce,
186
+ expirationTime: params.expirationTime?.toISOString()
187
+ });
188
+ const message = siweMessage.prepareMessage();
189
+ const signature = await signMessage(config, {
190
+ connector,
191
+ account: address,
192
+ message
193
+ });
194
+ return {
195
+ address,
196
+ message,
197
+ signature
198
+ };
199
+ }
200
+ async function wagmiSignMessage(params) {
201
+ const config = getWagmiConfig();
202
+ if (!config) {
203
+ throw new Error(
204
+ "Wagmi config not available. Pass wagmiConfig to MiniKitProvider."
205
+ );
206
+ }
207
+ const { signMessage } = await loadWagmiActions();
208
+ const { address, connector } = await ensureConnected(config);
209
+ const signature = await signMessage(config, {
210
+ connector,
211
+ account: address,
212
+ message: params.message
213
+ });
214
+ return {
215
+ status: "success",
216
+ version: 1,
217
+ signature,
218
+ address
219
+ };
220
+ }
221
+ async function wagmiSignTypedData(params) {
222
+ const config = getWagmiConfig();
223
+ if (!config) {
224
+ throw new Error(
225
+ "Wagmi config not available. Pass wagmiConfig to MiniKitProvider."
226
+ );
227
+ }
228
+ const { getChainId, signTypedData, switchChain } = await loadWagmiActions();
229
+ const { address, connector } = await ensureConnected(config);
230
+ if (params.chainId !== void 0) {
231
+ const currentChainId = await getChainId(config);
232
+ if (currentChainId !== params.chainId) {
233
+ await switchChain(config, { chainId: params.chainId, connector });
234
+ }
235
+ }
236
+ const signature = await signTypedData(config, {
237
+ connector,
238
+ account: address,
239
+ types: params.types,
240
+ primaryType: params.primaryType,
241
+ domain: params.domain,
242
+ message: params.message
243
+ });
244
+ return {
245
+ status: "success",
246
+ version: 1,
247
+ signature,
248
+ address
249
+ };
250
+ }
251
+ function isChainMismatchError(error) {
252
+ const message = error instanceof Error ? error.message : String(error);
253
+ return message.includes("does not match the target chain");
254
+ }
255
+ function validateBatch(transactions) {
256
+ return transactions.map((tx, i) => {
257
+ if (!isHexAddress(tx.address)) {
258
+ throw new Error(
259
+ `Transaction ${i + 1}: invalid address "${tx.address}". Must be a 0x-prefixed 20-byte hex string.`
260
+ );
261
+ }
262
+ if (tx.data !== void 0 && !isHexString(tx.data)) {
263
+ throw new Error(
264
+ `Transaction ${i + 1}: invalid data "${tx.data}". Must be a 0x-prefixed hex string.`
265
+ );
266
+ }
267
+ let value;
268
+ if (tx.value !== void 0 && tx.value !== "") {
269
+ try {
270
+ value = BigInt(tx.value);
271
+ } catch {
272
+ throw new Error(
273
+ `Transaction ${i + 1}: invalid value "${tx.value}". Must be a decimal or hex string parseable as BigInt.`
274
+ );
275
+ }
276
+ if (value < 0n) {
277
+ throw new Error(
278
+ `Transaction ${i + 1}: value cannot be negative (got "${tx.value}").`
279
+ );
280
+ }
281
+ }
282
+ return {
283
+ to: tx.address,
284
+ ...tx.data !== void 0 ? { data: tx.data } : {},
285
+ ...value !== void 0 ? { value } : {}
286
+ };
287
+ });
288
+ }
289
+ async function wagmiSendTransaction(params) {
290
+ if (params.transactions.length === 0) {
291
+ throw new Error("At least one transaction is required");
292
+ }
293
+ const normalizedTxs = validateBatch(params.transactions);
294
+ const config = getWagmiConfig();
295
+ if (!config) {
296
+ throw new Error(
297
+ "Wagmi config not available. Pass wagmiConfig to MiniKitProvider."
298
+ );
299
+ }
300
+ const { getChainId, getWalletClient, sendTransaction, switchChain } = await loadWagmiActions();
301
+ const { address, connector } = await ensureConnected(config);
302
+ const targetChainId = params.chainId ?? config.chains?.[0]?.id;
303
+ const ensureTargetChain = async () => {
304
+ if (targetChainId === void 0) return;
305
+ const currentChainId = await getChainId(config);
306
+ if (currentChainId !== targetChainId) {
307
+ await switchChain(config, { chainId: targetChainId, connector });
308
+ }
309
+ const walletClient = await getWalletClient(config);
310
+ const providerChainId = walletClient ? await walletClient.getChainId() : await getChainId(config);
311
+ if (providerChainId !== targetChainId) {
312
+ throw new Error(
313
+ `Wallet network mismatch: expected chain ${targetChainId}, got ${providerChainId}. Please switch networks in your wallet and retry.`
314
+ );
315
+ }
316
+ };
317
+ await ensureTargetChain();
318
+ const sendWithChainRetry = async (tx) => {
319
+ const send = () => sendTransaction(config, {
320
+ connector,
321
+ account: address,
322
+ chainId: targetChainId,
323
+ to: tx.to,
324
+ data: tx.data,
325
+ value: tx.value
326
+ });
327
+ try {
328
+ return await send();
329
+ } catch (error) {
330
+ if (targetChainId !== void 0 && isChainMismatchError(error)) {
331
+ await ensureTargetChain();
332
+ return await send();
333
+ }
334
+ throw error;
335
+ }
336
+ };
337
+ const submitted = [];
338
+ for (let i = 0; i < normalizedTxs.length; i++) {
339
+ try {
340
+ submitted.push(await sendWithChainRetry(normalizedTxs[i]));
341
+ } catch (error) {
342
+ if (submitted.length > 0) {
343
+ throw new PartialExecutionError(
344
+ `Transaction ${i + 1}/${normalizedTxs.length} failed after ${submitted.length} tx(s) were already submitted. Resolve manually.`,
345
+ submitted,
346
+ error
347
+ );
348
+ }
349
+ throw error;
350
+ }
351
+ }
352
+ return { transactionHash: submitted[submitted.length - 1] };
353
+ }
354
+
355
+ // src/wagmi-fallback-register.ts
356
+ function registerWagmiFallback(config) {
357
+ setWagmiConfig(config);
358
+ }
359
+ // Annotate the CommonJS export names for ESM import in node:
360
+ 0 && (module.exports = {
361
+ registerWagmiFallback
362
+ });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Register the wagmi fallback adapter with a wagmi Config.
3
+ *
4
+ * Call this once at app startup (or anywhere before invoking MiniKit commands).
5
+ * Alternatively, pass `wagmiConfig` to `MiniKitProvider` — this module must
6
+ * still be imported for the prop to take effect.
7
+ */
8
+ declare function registerWagmiFallback(config: unknown): void;
9
+
10
+ export { registerWagmiFallback };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Register the wagmi fallback adapter with a wagmi Config.
3
+ *
4
+ * Call this once at app startup (or anywhere before invoking MiniKit commands).
5
+ * Alternatively, pass `wagmiConfig` to `MiniKitProvider` — this module must
6
+ * still be imported for the prop to take effect.
7
+ */
8
+ declare function registerWagmiFallback(config: unknown): void;
9
+
10
+ export { registerWagmiFallback };
@@ -0,0 +1,14 @@
1
+ import {
2
+ setWagmiConfig
3
+ } from "./chunk-5B6BPEWR.js";
4
+ import "./chunk-2ADHLH4F.js";
5
+ import "./chunk-6E2XIIO6.js";
6
+ import "./chunk-DZ2YRSIU.js";
7
+
8
+ // src/wagmi-fallback-register.ts
9
+ function registerWagmiFallback(config) {
10
+ setWagmiConfig(config);
11
+ }
12
+ export {
13
+ registerWagmiFallback
14
+ };
package/package.json CHANGED
@@ -98,6 +98,16 @@
98
98
  "types": "./build/address-book.d.cts",
99
99
  "default": "./build/address-book.cjs"
100
100
  }
101
+ },
102
+ "./wagmi-fallback": {
103
+ "import": {
104
+ "types": "./build/wagmi-fallback-register.d.ts",
105
+ "default": "./build/wagmi-fallback-register.js"
106
+ },
107
+ "require": {
108
+ "types": "./build/wagmi-fallback-register.d.cts",
109
+ "default": "./build/wagmi-fallback-register.cjs"
110
+ }
101
111
  }
102
112
  },
103
113
  "files": [
@@ -140,7 +150,7 @@
140
150
  ]
141
151
  }
142
152
  },
143
- "version": "2.0.1",
153
+ "version": "2.0.3",
144
154
  "scripts": {
145
155
  "build": "tsup",
146
156
  "dev": "tsup --watch",