@payai/x402-solana-react 1.0.4 → 2.0.0-canary.1

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 CHANGED
@@ -2,12 +2,85 @@
2
2
 
3
3
  A reusable React component library that provides drop-in paywall functionality for Solana-based applications using the x402 payment protocol.
4
4
 
5
+ ## Classic theme
6
+
7
+ <table>
8
+ <tr>
9
+ <td width="50%">
10
+
11
+ <img src="./example-images/light.png" alt="Classic Light Theme Preview" style="width: 100%; height: auto;">
12
+
13
+ </td>
14
+ <td width="50%">
15
+
16
+ <img src="./example-images/dark.png" alt="Classic Dark Theme Preview" style="width: 100%; height: auto;">
17
+
18
+ </td>
19
+ </tr>
20
+ </table>
21
+
22
+ ## Solana theme
23
+
24
+ <table>
25
+ <tr>
26
+ <td width="50%">
27
+
28
+ <img src="./example-images/solana-light.png" alt="Solana Light Theme Preview" style="width: 100%; height: auto;">
29
+
30
+ </td>
31
+ <td width="50%">
32
+
33
+ <img src="./example-images/solana-dark.png" alt="Solana Dark Theme Preview" style="width: 100%; height: auto;">
34
+
35
+ </td>
36
+ </tr>
37
+ </table>
38
+
39
+ ## Seeker theme
40
+
41
+ <table>
42
+ <tr>
43
+ <td width="33.33%">
44
+
45
+ <img src="./example-images/seeker-light.png" alt="Seeker Light Theme Preview" style="width: 100%; height: auto;">
46
+
47
+ </td>
48
+ <td width="33.33%">
49
+
50
+ <img src="./example-images/seeker.png" alt="Seeker Theme Preview" style="width: 100%; height: auto;">
51
+
52
+ </td>
53
+ <td width="33.33%">
54
+
55
+ <img src="./example-images/seeker-2.png" alt="Seeker-2 Theme Preview" style="width: 100%; height: auto;">
56
+
57
+ </td>
58
+ </tr>
59
+ </table>
60
+
61
+ ## Terminal theme
62
+
63
+ <table>
64
+ <tr>
65
+ <td width="50%">
66
+
67
+ <img src="./example-images/terminal-light.png" alt="Terminal Light Theme Preview" style="width: 100%; height: auto;">
68
+
69
+ </td>
70
+ <td width="50%">
71
+
72
+ <img src="./example-images/terminal-dark.png" alt="Terminal Dark Theme Preview" style="width: 100%; height: auto;">
73
+
74
+ </td>
75
+ </tr>
76
+ </table>
77
+
5
78
  ## 🚀 Features
6
79
 
7
80
  - ✅ **Drop-in React Components**: Easy integration with existing apps
8
81
  - ✅ **Auto-Setup Providers**: Automatically configures wallet providers (or use your own)
9
82
  - ✅ **Solana Native**: Built specifically for Solana blockchain
10
- - ✅ **Multi-Wallet Support**: Works with Phantom, Solflare, and more
83
+ - ✅ **Multi-Wallet Support**: Works with Phantom, Solflare, and more
11
84
  - ✅ **Multiple Themes**: Light, Dark, Solana, Seeker, Terminal themes
12
85
  - ✅ **Tailwind CSS**: Utility-first styling with customization
13
86
  - ✅ **shadcn/ui**: Accessible, beautiful components
@@ -27,7 +100,7 @@ A reusable React component library that provides drop-in paywall functionality f
27
100
  npm install @payai/x402-solana-react
28
101
  # or
29
102
  yarn add @payai/x402-solana-react
30
- # or
103
+ # or
31
104
  pnpm add @payai/x402-solana-react
32
105
  ```
33
106
 
@@ -46,8 +119,8 @@ npm install @solana/wallet-adapter-react @solana/wallet-adapter-react-ui @solana
46
119
  Import the required styles in your main file (e.g., `main.tsx` or `App.tsx`):
47
120
 
48
121
  ```tsx
49
- import '@payai/x402-solana-react/styles';
50
- import '@solana/wallet-adapter-react-ui/styles.css';
122
+ import "@payai/x402-solana-react/styles";
123
+ import "@solana/wallet-adapter-react-ui/styles.css";
51
124
  ```
52
125
 
53
126
  ### 2. Environment Variables (Optional - Recommended for Production)
@@ -70,7 +143,7 @@ Restart the dev server after changing `.env` so Vite picks up updates.
70
143
  The component automatically sets up wallet providers for you! Just use it directly:
71
144
 
72
145
  ```tsx
73
- import { X402Paywall } from '@payai/x402-solana-react';
146
+ import { X402Paywall } from "@payai/x402-solana-react";
74
147
 
75
148
  function App() {
76
149
  return (
@@ -90,19 +163,22 @@ function App() {
90
163
  Wrap your app with Solana wallet providers:
91
164
 
92
165
  ```tsx
93
- import { WalletAdapterNetwork } from '@solana/wallet-adapter-base';
94
- import { ConnectionProvider, WalletProvider } from '@solana/wallet-adapter-react';
95
- import { WalletModalProvider } from '@solana/wallet-adapter-react-ui';
96
- import { PhantomWalletAdapter, SolflareWalletAdapter } from '@solana/wallet-adapter-wallets';
97
- import { clusterApiUrl } from '@solana/web3.js';
166
+ import { WalletAdapterNetwork } from "@solana/wallet-adapter-base";
167
+ import {
168
+ ConnectionProvider,
169
+ WalletProvider,
170
+ } from "@solana/wallet-adapter-react";
171
+ import { WalletModalProvider } from "@solana/wallet-adapter-react-ui";
172
+ import {
173
+ PhantomWalletAdapter,
174
+ SolflareWalletAdapter,
175
+ } from "@solana/wallet-adapter-wallets";
176
+ import { clusterApiUrl } from "@solana/web3.js";
98
177
 
99
178
  function App() {
100
179
  const network = WalletAdapterNetwork.Mainnet;
101
180
  const endpoint = clusterApiUrl(network);
102
- const wallets = [
103
- new PhantomWalletAdapter(),
104
- new SolflareWalletAdapter(),
105
- ];
181
+ const wallets = [new PhantomWalletAdapter(), new SolflareWalletAdapter()];
106
182
 
107
183
  return (
108
184
  <ConnectionProvider endpoint={endpoint}>
@@ -128,9 +204,9 @@ function App() {
128
204
  ### Simplest Example (Auto-Setup)
129
205
 
130
206
  ```tsx
131
- import { X402Paywall } from '@payai/x402-solana-react';
132
- import '@payai/x402-solana-react/styles';
133
- import '@solana/wallet-adapter-react-ui/styles.css';
207
+ import { X402Paywall } from "@payai/x402-solana-react";
208
+ import "@payai/x402-solana-react/styles";
209
+ import "@solana/wallet-adapter-react-ui/styles.css";
134
210
 
135
211
  function PremiumPage() {
136
212
  return (
@@ -138,7 +214,7 @@ function PremiumPage() {
138
214
  amount={0.02}
139
215
  description="Premium AI Chat Access"
140
216
  network="solana" // Use 'solana' for mainnet, 'solana-devnet' for testing
141
- onPaymentSuccess={(txId) => console.log('Payment successful!', txId)}
217
+ onPaymentSuccess={(txId) => console.log("Payment successful!", txId)}
142
218
  >
143
219
  <PremiumContent />
144
220
  </X402Paywall>
@@ -149,7 +225,7 @@ function PremiumPage() {
149
225
  ### With Custom RPC (Recommended for Production)
150
226
 
151
227
  ```tsx
152
- import { X402Paywall } from '@payai/x402-solana-react';
228
+ import { X402Paywall } from "@payai/x402-solana-react";
153
229
 
154
230
  function PremiumPage() {
155
231
  // Set via environment variable: VITE_SOLANA_RPC_URL
@@ -162,11 +238,11 @@ function PremiumPage() {
162
238
  network="solana"
163
239
  rpcUrl={rpcUrl} // Avoids rate limiting on public RPCs
164
240
  onPaymentSuccess={(txId) => {
165
- console.log('Payment successful!', txId);
241
+ console.log("Payment successful!", txId);
166
242
  // Update your backend, show success message, etc.
167
243
  }}
168
244
  onPaymentError={(error) => {
169
- console.error('Payment failed:', error);
245
+ console.error("Payment failed:", error);
170
246
  }}
171
247
  >
172
248
  <PremiumContent />
@@ -192,11 +268,11 @@ The component comes with multiple built-in themes:
192
268
  ### Theme Example
193
269
 
194
270
  ```tsx
195
- import { X402Paywall } from '@payai/x402-solana-react';
196
- import { useState } from 'react';
271
+ import { X402Paywall } from "@payai/x402-solana-react";
272
+ import { useState } from "react";
197
273
 
198
274
  function PremiumPage() {
199
- const [theme, setTheme] = useState('light');
275
+ const [theme, setTheme] = useState("light");
200
276
 
201
277
  return (
202
278
  <X402Paywall
@@ -204,7 +280,7 @@ function PremiumPage() {
204
280
  description="Premium Features"
205
281
  network="solana"
206
282
  theme={theme} // Try: 'light', 'dark', 'solana-light', 'solana-dark', etc.
207
- onPaymentSuccess={(txId) => console.log('Paid!', txId)}
283
+ onPaymentSuccess={(txId) => console.log("Paid!", txId)}
208
284
  >
209
285
  <AdvancedFeatures />
210
286
  </X402Paywall>
@@ -218,16 +294,16 @@ You can customize further using `classNames` and `customStyles` props:
218
294
 
219
295
  ```tsx
220
296
  <X402Paywall
221
- amount={5.00}
297
+ amount={5.0}
222
298
  description="Premium Features"
223
299
  network="solana"
224
300
  theme="dark"
225
301
  classNames={{
226
302
  container: "bg-gradient-to-r from-purple-600 to-blue-600",
227
- button: "bg-white text-purple-600 hover:bg-gray-50 font-bold"
303
+ button: "bg-white text-purple-600 hover:bg-gray-50 font-bold",
228
304
  }}
229
305
  customStyles={{
230
- button: { boxShadow: '0 10px 30px rgba(153, 69, 255, 0.4)' }
306
+ button: { boxShadow: "0 10px 30px rgba(153, 69, 255, 0.4)" },
231
307
  }}
232
308
  >
233
309
  <AdvancedFeatures />
@@ -238,31 +314,32 @@ You can customize further using `classNames` and `customStyles` props:
238
314
 
239
315
  ### X402Paywall Props
240
316
 
241
- | Prop | Type | Required | Default | Description |
242
- |------|------|----------|---------|-------------|
243
- | `amount` | `number` | ✅ | - | Payment amount in USDC |
244
- | `description` | `string` | ✅ | - | Payment description |
245
- | `children` | `ReactNode` | ✅ | - | Protected content to show after payment |
246
- | `network` | `'solana' \| 'solana-devnet'` | ❌ | `'solana-devnet'` | Solana network to use |
247
- | `wallet` | `WalletAdapter` | ❌ | - | Optional wallet adapter (auto-uses context if not provided) |
248
- | `rpcUrl` | `string` | ❌ | - | Custom RPC URL (recommended to avoid rate limits) |
249
- | `autoSetupProviders` | `boolean` | ❌ | `true` | Automatically setup wallet providers |
250
- | `providerNetwork` | `WalletAdapterNetwork` | ❌ | Auto-detected | Network for auto-setup providers |
251
- | `providerEndpoint` | `string` | ❌ | - | Custom endpoint for auto-setup providers |
252
- | `treasuryAddress` | `string` | ❌ | - | Custom treasury address |
253
- | `facilitatorUrl` | `string` | ❌ | - | Custom facilitator URL |
254
- | `theme` | `ThemePreset` | ❌ | `'solana-light'` | Visual theme (see Themes section) |
255
- | `showBalance` | `boolean` | ❌ | `true` | Show wallet USDC balance |
256
- | `showNetworkInfo` | `boolean` | ❌ | `true` | Show network information |
257
- | `showPaymentDetails` | `boolean` | ❌ | `true` | Show payment details section |
258
- | `maxPaymentAmount` | `number` | ❌ | - | Maximum allowed payment amount |
259
- | `classNames` | `ComponentClassNames` | ❌ | - | Custom CSS classes for components |
260
- | `customStyles` | `ComponentStyles` | ❌ | - | Custom inline styles for components |
261
- | `onPaymentStart` | `() => void` | ❌ | - | Callback when payment starts |
262
- | `onPaymentSuccess` | `(txId: string) => void` | ❌ | - | Callback on successful payment |
263
- | `onPaymentError` | `(error: Error) => void` | ❌ | - | Callback on payment error |
264
- | `onWalletConnect` | `(publicKey: string) => void` | ❌ | - | Callback when wallet connects |
265
- | `onDisconnect` | `() => void` | ❌ | - | Callback when wallet disconnects |
317
+ | Prop | Type | Required | Default | Description |
318
+ | -------------------- | ----------------------------- | -------- | ----------------- | ----------------------------------------------------------- |
319
+ | `amount` | `number` | ✅ | - | Payment amount in USDC |
320
+ | `description` | `string` | ✅ | - | Payment description |
321
+ | `children` | `ReactNode` | ✅ | - | Protected content to show after payment |
322
+ | `network` | `'solana' \| 'solana-devnet'` | ❌ | `'solana-devnet'` | Solana network to use |
323
+ | `wallet` | `WalletAdapter` | ❌ | - | Optional wallet adapter (auto-uses context if not provided) |
324
+ | `rpcUrl` | `string` | ❌ | - | Custom RPC URL (recommended to avoid rate limits) |
325
+ | `autoSetupProviders` | `boolean` | ❌ | `true` | Automatically setup wallet providers |
326
+ | `providerNetwork` | `WalletAdapterNetwork` | ❌ | Auto-detected | Network for auto-setup providers |
327
+ | `providerEndpoint` | `string` | ❌ | - | Custom endpoint for auto-setup providers |
328
+ | `apiEndpoint` | `string` | ❌ | `https://x402.payai.network/api/solana/paid-content` | Custom API endpoint |
329
+ | `facilitatorUrl` | `string` | ❌ | - | Custom facilitator URL |
330
+ | `theme` | `ThemePreset` | ❌ | `'solana-light'` | Visual theme (see Themes section) |
331
+ | `logoUrl` | `string` | ❌ | - | Custom logo URL to display |
332
+ | `showBalance` | `boolean` | ❌ | `true` | Show wallet USDC balance |
333
+ | `showNetworkInfo` | `boolean` | ❌ | `true` | Show network information |
334
+ | `showPaymentDetails` | `boolean` | ❌ | `true` | Show payment details section |
335
+ | `maxPaymentAmount` | `number` | ❌ | - | Maximum allowed payment amount |
336
+ | `classNames` | `ComponentClassNames` | ❌ | - | Custom CSS classes for components |
337
+ | `customStyles` | `ComponentStyles` | ❌ | - | Custom inline styles for components |
338
+ | `onPaymentStart` | `() => void` | ❌ | - | Callback when payment starts |
339
+ | `onPaymentSuccess` | `(txId: string) => void` | ❌ | - | Callback on successful payment |
340
+ | `onPaymentError` | `(error: Error) => void` | ❌ | - | Callback on payment error |
341
+ | `onWalletConnect` | `(publicKey: string) => void` | ❌ | - | Callback when wallet connects |
342
+ | `onDisconnect` | `() => void` | ❌ | - | Callback when wallet disconnects |
266
343
 
267
344
  See [full API documentation](./docs/API_REFERENCE.md) for complete reference.
268
345
 
@@ -305,36 +382,42 @@ npm run lint
305
382
  ### Common Issues
306
383
 
307
384
  **"Wallet not connected"**
385
+
308
386
  - Ensure wallet provider is properly configured
309
387
  - Check that wallet extension is installed and unlocked
310
388
  - Verify network matches (mainnet vs devnet)
311
389
 
312
390
  **"Insufficient USDC balance"**
391
+
313
392
  - Check wallet has enough USDC for payment + gas
314
393
  - On devnet: Use [Solana Faucet](https://faucet.solana.com/) for SOL
315
394
  - Get devnet USDC from test token faucets like [Circle](https://faucet.circle.com/)
316
395
 
317
396
  **"RPC rate limit exceeded"**
397
+
318
398
  - Use a custom RPC provider (Helius, QuickNode, Alchemy)
319
399
  - Set `VITE_SOLANA_RPC_URL` in `.env` file
320
400
  - Pass via `rpcUrl` prop: `rpcUrl={import.meta.env.VITE_SOLANA_RPC_URL}`
321
401
  - For production, always use a paid RPC endpoint
322
402
 
323
403
  **"Transaction failed"**
404
+
324
405
  - Verify network connectivity
325
406
  - Check Solana network status
326
407
  - Ensure sufficient SOL for transaction fees
327
408
 
328
409
  **Styling not working**
410
+
329
411
  - Make sure you imported both required stylesheets:
330
412
  ```tsx
331
- import '@payai/x402-solana-react/styles';
332
- import '@solana/wallet-adapter-react-ui/styles.css';
413
+ import "@payai/x402-solana-react/styles";
414
+ import "@solana/wallet-adapter-react-ui/styles.css";
333
415
  ```
334
416
  - Check browser console for CSS loading errors
335
417
  - Verify Tailwind CSS is configured if using custom classes
336
418
 
337
419
  **"process is not defined" error**
420
+
338
421
  - Use Vite's `import.meta.env` instead of `process.env`
339
422
  - Example: `import.meta.env.VITE_SOLANA_RPC_URL`
340
423
 
@@ -343,6 +426,7 @@ npm run lint
343
426
  **Ready for Production** - Fully functional x402 paywall components with PayAI facilitator integration.
344
427
 
345
428
  ### Features Complete
429
+
346
430
  - ✅ Core paywall component with Solana integration
347
431
  - ✅ Payment processing via x402 protocol
348
432
  - ✅ Multi-wallet support (Phantom, Solflare, etc.)
@@ -367,4 +451,4 @@ MIT License
367
451
 
368
452
  ---
369
453
 
370
- Built with ❤️ for the Solana ecosystem
454
+ Built with ❤️ for the Solana ecosystem
@@ -1 +1 @@
1
- {"version":3,"file":"WalletSection.d.ts","sourceRoot":"","sources":["../../src/components/WalletSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAG7C,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAkHtD,CAAC"}
1
+ {"version":3,"file":"WalletSection.d.ts","sourceRoot":"","sources":["../../src/components/WalletSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAG7C,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAqMtD,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import { X402PaywallProps } from '../types';
2
- import * as React from "react";
2
+ import * as React from 'react';
3
3
  export declare const X402Paywall: React.FC<X402PaywallProps>;
4
4
  //# sourceMappingURL=X402Paywall.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"X402Paywall.d.ts","sourceRoot":"","sources":["../../src/components/X402Paywall.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AA4B/B,OAAO,EAAE,gBAAgB,EAAiB,MAAM,SAAS,CAAC;AA0oD1D,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA2ClD,CAAC"}
1
+ {"version":3,"file":"X402Paywall.d.ts","sourceRoot":"","sources":["../../src/components/X402Paywall.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAY/B,OAAO,EAAE,gBAAgB,EAA8B,MAAM,SAAS,CAAC;AA20EvE,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAkClD,CAAC"}
@@ -1,4 +1,3 @@
1
-
2
1
  declare function App(): import("react/jsx-runtime").JSX.Element;
3
2
  export default App;
4
3
  //# sourceMappingURL=App.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../src/demo/App.tsx"],"names":[],"mappings":"AAYA,OAAO,4CAA4C,CAAC;AA0HpD,iBAAS,GAAG,4CAEX;AAED,eAAe,GAAG,CAAC"}
1
+ {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../src/demo/App.tsx"],"names":[],"mappings":"AAYA,OAAO,4CAA4C,CAAC;AA8HpD,iBAAS,GAAG,4CAEX;AAED,eAAe,GAAG,CAAC"}
@@ -1,2 +1 @@
1
-
2
1
  //# sourceMappingURL=main.d.ts.map
@@ -1,18 +1,20 @@
1
1
  import { WalletAdapter, SolanaNetwork, PaymentStatus } from '../types';
2
-
3
2
  export interface PaymentConfig {
4
3
  wallet: WalletAdapter;
5
4
  network: SolanaNetwork;
6
5
  rpcUrl?: string;
7
6
  apiEndpoint?: string;
8
- treasuryAddress?: string;
9
7
  facilitatorUrl?: string;
10
8
  maxPaymentAmount?: number;
9
+ /** Enable verbose logging for debugging (default: false) */
10
+ verbose?: boolean;
11
11
  }
12
12
  export interface PaymentResult {
13
13
  transactionId: string | null;
14
14
  status: PaymentStatus;
15
15
  error: Error | null;
16
+ /** The response content from the server (HTML or JSON) */
17
+ responseContent: string | null;
16
18
  }
17
19
  export interface UseX402PaymentReturn {
18
20
  pay: (amount: number, description: string) => Promise<string | null>;
@@ -20,6 +22,8 @@ export interface UseX402PaymentReturn {
20
22
  status: PaymentStatus;
21
23
  error: Error | null;
22
24
  transactionId: string | null;
25
+ /** The response content from the server (HTML or JSON) */
26
+ responseContent: string | null;
23
27
  reset: () => void;
24
28
  }
25
29
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"useX402Payment.d.ts","sourceRoot":"","sources":["../../src/hooks/useX402Payment.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAEtE,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,aAAa,CAAC;IACtB,OAAO,EAAE,aAAa,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,aAAa;IAC5B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,MAAM,EAAE,aAAa,CAAC;IACtB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACrB;AAED,MAAM,WAAW,oBAAoB;IACnC,GAAG,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACrE,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,aAAa,CAAC;IACtB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,aAAa,GAAG,oBAAoB,CAqI1E"}
1
+ {"version":3,"file":"useX402Payment.d.ts","sourceRoot":"","sources":["../../src/hooks/useX402Payment.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAEtE,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,aAAa,CAAC;IACtB,OAAO,EAAE,aAAa,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,4DAA4D;IAC5D,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,aAAa;IAC5B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,MAAM,EAAE,aAAa,CAAC;IACtB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,0DAA0D;IAC1D,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC;AAED,MAAM,WAAW,oBAAoB;IACnC,GAAG,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACrE,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,aAAa,CAAC;IACtB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IACpB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,0DAA0D;IAC1D,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,aAAa,GAAG,oBAAoB,CA6J1E"}