uvd-x402-sdk 2.1.0 → 2.2.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.
Files changed (54) hide show
  1. package/README.md +282 -15
  2. package/dist/adapters/index.d.mts +1 -1
  3. package/dist/adapters/index.d.ts +1 -1
  4. package/dist/adapters/index.js +168 -0
  5. package/dist/adapters/index.js.map +1 -1
  6. package/dist/adapters/index.mjs +168 -0
  7. package/dist/adapters/index.mjs.map +1 -1
  8. package/dist/{index-MTBgC_SL.d.mts → index-BHwtdJrt.d.mts} +45 -4
  9. package/dist/{index-MTBgC_SL.d.ts → index-BHwtdJrt.d.ts} +45 -4
  10. package/dist/{index-Db8dWNam.d.ts → index-CkDdnSNx.d.mts} +33 -2
  11. package/dist/{index-D0N_SYpK.d.mts → index-UTj85ZDJ.d.ts} +33 -2
  12. package/dist/index.d.mts +2 -2
  13. package/dist/index.d.ts +2 -2
  14. package/dist/index.js +210 -0
  15. package/dist/index.js.map +1 -1
  16. package/dist/index.mjs +207 -1
  17. package/dist/index.mjs.map +1 -1
  18. package/dist/providers/evm/index.d.mts +19 -3
  19. package/dist/providers/evm/index.d.ts +19 -3
  20. package/dist/providers/evm/index.js +228 -12
  21. package/dist/providers/evm/index.js.map +1 -1
  22. package/dist/providers/evm/index.mjs +228 -12
  23. package/dist/providers/evm/index.mjs.map +1 -1
  24. package/dist/providers/near/index.d.mts +1 -1
  25. package/dist/providers/near/index.d.ts +1 -1
  26. package/dist/providers/near/index.js.map +1 -1
  27. package/dist/providers/near/index.mjs.map +1 -1
  28. package/dist/providers/solana/index.d.mts +1 -1
  29. package/dist/providers/solana/index.d.ts +1 -1
  30. package/dist/providers/solana/index.js +168 -0
  31. package/dist/providers/solana/index.js.map +1 -1
  32. package/dist/providers/solana/index.mjs +168 -0
  33. package/dist/providers/solana/index.mjs.map +1 -1
  34. package/dist/providers/stellar/index.d.mts +1 -1
  35. package/dist/providers/stellar/index.d.ts +1 -1
  36. package/dist/providers/stellar/index.js.map +1 -1
  37. package/dist/providers/stellar/index.mjs.map +1 -1
  38. package/dist/react/index.d.mts +3 -3
  39. package/dist/react/index.d.ts +3 -3
  40. package/dist/react/index.js +168 -0
  41. package/dist/react/index.js.map +1 -1
  42. package/dist/react/index.mjs +168 -0
  43. package/dist/react/index.mjs.map +1 -1
  44. package/dist/utils/index.d.mts +1 -1
  45. package/dist/utils/index.d.ts +1 -1
  46. package/dist/utils/index.js +168 -0
  47. package/dist/utils/index.js.map +1 -1
  48. package/dist/utils/index.mjs +168 -0
  49. package/dist/utils/index.mjs.map +1 -1
  50. package/package.json +5 -2
  51. package/src/chains/index.ts +255 -1
  52. package/src/index.ts +9 -0
  53. package/src/providers/evm/index.ts +64 -16
  54. package/src/types/index.ts +46 -3
package/README.md CHANGED
@@ -2,17 +2,19 @@
2
2
 
3
3
  > Gasless crypto payments across 14 blockchain networks using the x402 protocol.
4
4
 
5
- The x402 SDK enables any application to accept USDC payments without requiring users to pay gas fees. Users sign a message or transaction, and the Ultravioleta facilitator handles on-chain settlement.
5
+ The x402 SDK enables any application to accept stablecoin payments (USDC, EURC, AUSD, PYUSD, GHO, crvUSD) without requiring users to pay gas fees. Users sign a message or transaction, and the Ultravioleta facilitator handles on-chain settlement.
6
6
 
7
7
  ## Features
8
8
 
9
9
  - **14 Supported Networks**: EVM chains, Solana, Fogo, Stellar, and NEAR
10
+ - **Multi-Stablecoin**: USDC, EURC, AUSD, PYUSD, GHO, crvUSD support on EVM chains
10
11
  - **x402 v1 & v2**: Full support for both protocol versions with automatic detection
11
12
  - **Gasless Payments**: Users never pay gas - the facilitator covers all network fees
12
13
  - **Multi-Network**: Accept payments on multiple networks simultaneously
13
14
  - **Type-Safe**: Comprehensive TypeScript definitions
14
15
  - **Framework Agnostic**: Works with any JavaScript framework
15
16
  - **React Hooks**: First-class React integration
17
+ - **Wagmi/RainbowKit**: Dedicated adapter for wagmi-based apps
16
18
  - **Modular**: Import only what you need
17
19
 
18
20
  ## Quick Start
@@ -126,6 +128,117 @@ const result = await client.createPayment({
126
128
 
127
129
  ---
128
130
 
131
+ ## Wagmi / RainbowKit Integration
132
+
133
+ If you're using wagmi with RainbowKit, ConnectKit, or other wagmi-based wallet libraries, use the dedicated wagmi adapter:
134
+
135
+ ```typescript
136
+ import { useWalletClient } from 'wagmi';
137
+ import { createPaymentFromWalletClient } from 'uvd-x402-sdk/wagmi';
138
+
139
+ function PayButton() {
140
+ const { data: walletClient } = useWalletClient();
141
+
142
+ const handlePay = async () => {
143
+ const paymentHeader = await createPaymentFromWalletClient(walletClient, {
144
+ recipient: '0xD3868E1eD738CED6945A574a7c769433BeD5d474',
145
+ amount: '10.00',
146
+ chainName: 'base', // optional, defaults to 'base'
147
+ });
148
+
149
+ // Use in your API request
150
+ await fetch('/api/purchase', {
151
+ headers: { 'X-PAYMENT': paymentHeader },
152
+ method: 'POST',
153
+ });
154
+ };
155
+
156
+ return <button onClick={handlePay}>Pay $10 USDC</button>;
157
+ }
158
+ ```
159
+
160
+ ### With the Helper Hook
161
+
162
+ ```typescript
163
+ import { useWalletClient } from 'wagmi';
164
+ import { useX402Wagmi } from 'uvd-x402-sdk/wagmi';
165
+
166
+ function PayButton() {
167
+ const { data: walletClient } = useWalletClient();
168
+ const { createPayment, isReady } = useX402Wagmi(walletClient);
169
+
170
+ const handlePay = async () => {
171
+ const paymentHeader = await createPayment({
172
+ recipient: '0xD3868E1eD738CED6945A574a7c769433BeD5d474',
173
+ amount: '10.00',
174
+ });
175
+
176
+ await fetch('/api/purchase', {
177
+ headers: { 'X-PAYMENT': paymentHeader },
178
+ });
179
+ };
180
+
181
+ return (
182
+ <button onClick={handlePay} disabled={!isReady}>
183
+ Pay $10 USDC
184
+ </button>
185
+ );
186
+ }
187
+ ```
188
+
189
+ ### Full Example with RainbowKit
190
+
191
+ ```tsx
192
+ import { ConnectButton } from '@rainbow-me/rainbowkit';
193
+ import { useWalletClient, useAccount } from 'wagmi';
194
+ import { createPaymentFromWalletClient } from 'uvd-x402-sdk/wagmi';
195
+
196
+ function App() {
197
+ const { data: walletClient } = useWalletClient();
198
+ const { isConnected } = useAccount();
199
+
200
+ const handlePurchase = async () => {
201
+ if (!walletClient) return;
202
+
203
+ try {
204
+ const paymentHeader = await createPaymentFromWalletClient(walletClient, {
205
+ recipient: '0xD3868E1eD738CED6945A574a7c769433BeD5d474',
206
+ amount: '5.00',
207
+ chainName: 'base',
208
+ });
209
+
210
+ const response = await fetch('/api/purchase', {
211
+ method: 'POST',
212
+ headers: {
213
+ 'Content-Type': 'application/json',
214
+ 'X-PAYMENT': paymentHeader,
215
+ },
216
+ body: JSON.stringify({ item: 'premium-feature' }),
217
+ });
218
+
219
+ if (response.ok) {
220
+ alert('Purchase successful!');
221
+ }
222
+ } catch (error) {
223
+ console.error('Payment failed:', error);
224
+ }
225
+ };
226
+
227
+ return (
228
+ <div>
229
+ <ConnectButton />
230
+ {isConnected && (
231
+ <button onClick={handlePurchase}>
232
+ Buy Premium ($5 USDC)
233
+ </button>
234
+ )}
235
+ </div>
236
+ );
237
+ }
238
+ ```
239
+
240
+ ---
241
+
129
242
  ## Network Examples
130
243
 
131
244
  ### EVM Chains (10 Networks)
@@ -557,6 +670,118 @@ const options = generatePaymentOptions(chains, '10.00');
557
670
 
558
671
  ---
559
672
 
673
+ ## Multi-Stablecoin Support (EVM)
674
+
675
+ EVM chains support multiple stablecoins beyond USDC. Token availability varies by chain.
676
+
677
+ ### Supported Tokens
678
+
679
+ | Token | Description | Decimals | Chains |
680
+ |-------|-------------|----------|--------|
681
+ | USDC | USD Coin (Circle) | 6 | All EVM chains |
682
+ | EURC | Euro Coin (Circle) | 6 | Ethereum, Base, Avalanche |
683
+ | AUSD | Agora USD | 6 | Ethereum, Avalanche, Polygon, Arbitrum, Monad |
684
+ | PYUSD | PayPal USD | 6 | Ethereum |
685
+ | GHO | Aave GHO | 18 | Ethereum, Base, Arbitrum |
686
+ | crvUSD | Curve USD | 18 | Ethereum, Arbitrum |
687
+
688
+ ### Basic Usage
689
+
690
+ ```typescript
691
+ import { X402Client } from 'uvd-x402-sdk';
692
+
693
+ const client = new X402Client({ defaultChain: 'base' });
694
+ await client.connect('base');
695
+
696
+ // Pay with EURC instead of USDC
697
+ const result = await client.createPayment({
698
+ recipient: '0xD3868E1eD738CED6945A574a7c769433BeD5d474',
699
+ amount: '10.00',
700
+ tokenType: 'eurc', // 'usdc' | 'eurc' | 'ausd' | 'pyusd' | 'gho' | 'crvusd'
701
+ });
702
+ ```
703
+
704
+ ### Check Token Availability
705
+
706
+ ```typescript
707
+ import {
708
+ getSupportedTokens,
709
+ isTokenSupported,
710
+ getTokenConfig,
711
+ getChainsByToken,
712
+ } from 'uvd-x402-sdk';
713
+
714
+ // Get all tokens supported on a chain
715
+ const tokens = getSupportedTokens('ethereum');
716
+ // Returns: ['usdc', 'eurc', 'ausd', 'pyusd', 'gho', 'crvusd']
717
+
718
+ const baseTokens = getSupportedTokens('base');
719
+ // Returns: ['usdc', 'eurc', 'gho']
720
+
721
+ // Check if a specific token is supported
722
+ if (isTokenSupported('base', 'eurc')) {
723
+ console.log('EURC available on Base');
724
+ }
725
+
726
+ // Get token configuration (address, decimals, name)
727
+ const eurcConfig = getTokenConfig('ethereum', 'eurc');
728
+ // Returns: { address: '0x1aBa...', decimals: 6, name: 'EURC', version: '2' }
729
+
730
+ // Find all chains that support a token
731
+ const ghoChains = getChainsByToken('gho');
732
+ // Returns: [baseConfig, ethereumConfig, arbitrumConfig]
733
+ ```
734
+
735
+ ### Check Token Balance
736
+
737
+ ```typescript
738
+ import { EVMProvider } from 'uvd-x402-sdk';
739
+ import { getChainByName } from 'uvd-x402-sdk';
740
+
741
+ const evm = new EVMProvider();
742
+ await evm.connect();
743
+
744
+ const chainConfig = getChainByName('ethereum')!;
745
+
746
+ // Check USDC balance (default)
747
+ const usdcBalance = await evm.getBalance(chainConfig);
748
+
749
+ // Check EURC balance
750
+ const eurcBalance = await evm.getBalance(chainConfig, 'eurc');
751
+
752
+ // Check GHO balance
753
+ const ghoBalance = await evm.getBalance(chainConfig, 'gho');
754
+ ```
755
+
756
+ ### Wagmi/RainbowKit with Multi-Token
757
+
758
+ ```typescript
759
+ import { useWalletClient } from 'wagmi';
760
+ import { createPaymentFromWalletClient } from 'uvd-x402-sdk/wagmi';
761
+
762
+ function PayWithEURC() {
763
+ const { data: walletClient } = useWalletClient();
764
+
765
+ const handlePay = async () => {
766
+ const paymentHeader = await createPaymentFromWalletClient(walletClient, {
767
+ recipient: '0xD3868E1eD738CED6945A574a7c769433BeD5d474',
768
+ amount: '10.00',
769
+ chainName: 'base',
770
+ tokenType: 'eurc', // Pay with EURC
771
+ });
772
+
773
+ await fetch('/api/purchase', {
774
+ headers: { 'X-PAYMENT': paymentHeader },
775
+ method: 'POST',
776
+ });
777
+ };
778
+
779
+ return <button onClick={handlePay}>Pay 10 EURC</button>;
780
+ }
781
+ ```
782
+
783
+ ---
784
+
560
785
  ## React Integration
561
786
 
562
787
  ```tsx
@@ -612,18 +837,18 @@ function PaymentPage() {
612
837
 
613
838
  ### EVM Networks (10)
614
839
 
615
- | Network | Chain ID | USDC Decimals | Status |
616
- |---------|----------|---------------|--------|
617
- | Base | 8453 | 6 | Enabled |
618
- | Ethereum | 1 | 6 | Enabled |
619
- | Polygon | 137 | 6 | Enabled |
620
- | Arbitrum | 42161 | 6 | Enabled |
621
- | Optimism | 10 | 6 | Enabled |
622
- | Avalanche | 43114 | 6 | Enabled |
623
- | Celo | 42220 | 6 | Enabled |
624
- | HyperEVM | 999 | 6 | Enabled |
625
- | Unichain | 130 | 6 | Enabled |
626
- | Monad | 143 | 6 | Enabled |
840
+ | Network | Chain ID | Tokens | Status |
841
+ |---------|----------|--------|--------|
842
+ | Ethereum | 1 | USDC, EURC, AUSD, PYUSD, GHO, crvUSD | Enabled |
843
+ | Base | 8453 | USDC, EURC, GHO | Enabled |
844
+ | Avalanche | 43114 | USDC, EURC, AUSD | Enabled |
845
+ | Arbitrum | 42161 | USDC, AUSD, GHO, crvUSD | Enabled |
846
+ | Polygon | 137 | USDC, AUSD | Enabled |
847
+ | Monad | 143 | USDC, AUSD | Enabled |
848
+ | Optimism | 10 | USDC | Enabled |
849
+ | Celo | 42220 | USDC | Enabled |
850
+ | HyperEVM | 999 | USDC | Enabled |
851
+ | Unichain | 130 | USDC | Enabled |
627
852
 
628
853
  ### SVM Networks (2)
629
854
 
@@ -667,8 +892,8 @@ interface X402ClientConfig {
667
892
  | `connect(chainName?)` | Connect wallet to specified chain |
668
893
  | `disconnect()` | Disconnect current wallet |
669
894
  | `switchChain(chainName)` | Switch to different EVM chain |
670
- | `createPayment(paymentInfo)` | Create payment authorization |
671
- | `getBalance()` | Get USDC balance on current chain |
895
+ | `createPayment(paymentInfo)` | Create payment authorization (supports `tokenType` in paymentInfo) |
896
+ | `getBalance(tokenType?)` | Get token balance on current chain (defaults to USDC) |
672
897
  | `getState()` | Get current wallet state |
673
898
  | `isConnected()` | Check if wallet is connected |
674
899
  | `on(event, handler)` | Subscribe to events |
@@ -686,9 +911,23 @@ import {
686
911
  isSVMChain,
687
912
  getExplorerTxUrl,
688
913
  getExplorerAddressUrl,
914
+ // Multi-token utilities
915
+ getTokenConfig,
916
+ getSupportedTokens,
917
+ isTokenSupported,
918
+ getChainsByToken,
689
919
  } from 'uvd-x402-sdk';
690
920
  ```
691
921
 
922
+ ### Token Utilities
923
+
924
+ | Function | Description |
925
+ |----------|-------------|
926
+ | `getTokenConfig(chain, tokenType)` | Get token config (address, decimals, name, version) |
927
+ | `getSupportedTokens(chain)` | Get array of supported token types for a chain |
928
+ | `isTokenSupported(chain, tokenType)` | Check if token is available on chain |
929
+ | `getChainsByToken(tokenType)` | Get all chains that support a specific token |
930
+
692
931
  ### x402 Utilities
693
932
 
694
933
  ```typescript
@@ -705,6 +944,34 @@ import {
705
944
  } from 'uvd-x402-sdk';
706
945
  ```
707
946
 
947
+ ### Wagmi Adapter
948
+
949
+ ```typescript
950
+ import {
951
+ createPaymentFromWalletClient,
952
+ createPaymentWithResult,
953
+ useX402Wagmi,
954
+ } from 'uvd-x402-sdk/wagmi';
955
+ ```
956
+
957
+ | Function | Description |
958
+ |----------|-------------|
959
+ | `createPaymentFromWalletClient(walletClient, options)` | Create payment header using wagmi's WalletClient |
960
+ | `createPaymentWithResult(walletClient, options)` | Same as above but returns full PaymentResult |
961
+ | `useX402Wagmi(walletClient)` | Helper hook returning `{ createPayment, isReady }` |
962
+
963
+ #### Options
964
+
965
+ ```typescript
966
+ interface WagmiPaymentOptions {
967
+ recipient: string; // Recipient address
968
+ amount: string; // Amount in token (e.g., "10.00")
969
+ chainName?: string; // Chain name (default: 'base')
970
+ tokenType?: TokenType; // Token type (default: 'usdc')
971
+ validitySeconds?: number; // Signature validity window (default: 300)
972
+ }
973
+ ```
974
+
708
975
  ---
709
976
 
710
977
  ## Error Handling
@@ -1,4 +1,4 @@
1
- import { e as PaymentResult } from '../index-MTBgC_SL.mjs';
1
+ import { f as PaymentResult } from '../index-BHwtdJrt.mjs';
2
2
 
3
3
  /**
4
4
  * uvd-x402-sdk - Wagmi/Viem Adapter
@@ -1,4 +1,4 @@
1
- import { e as PaymentResult } from '../index-MTBgC_SL.js';
1
+ import { f as PaymentResult } from '../index-BHwtdJrt.js';
2
2
 
3
3
  /**
4
4
  * uvd-x402-sdk - Wagmi/Viem Adapter
@@ -25,6 +25,26 @@ var SUPPORTED_CHAINS = {
25
25
  name: "USD Coin",
26
26
  version: "2"
27
27
  },
28
+ tokens: {
29
+ usdc: {
30
+ address: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
31
+ decimals: 6,
32
+ name: "USD Coin",
33
+ version: "2"
34
+ },
35
+ eurc: {
36
+ address: "0x60a3E35Cc302bFA44Cb288Bc5a4F316Fdb1adb42",
37
+ decimals: 6,
38
+ name: "EURC",
39
+ version: "2"
40
+ },
41
+ gho: {
42
+ address: "0x6Bb7a212910682DCFdbd5BCBb3e28FB4E8da10Ee",
43
+ decimals: 18,
44
+ name: "Gho Token",
45
+ version: "1"
46
+ }
47
+ },
28
48
  x402: {
29
49
  facilitatorUrl: DEFAULT_FACILITATOR_URL,
30
50
  enabled: true
@@ -49,6 +69,26 @@ var SUPPORTED_CHAINS = {
49
69
  name: "USD Coin",
50
70
  version: "2"
51
71
  },
72
+ tokens: {
73
+ usdc: {
74
+ address: "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",
75
+ decimals: 6,
76
+ name: "USD Coin",
77
+ version: "2"
78
+ },
79
+ eurc: {
80
+ address: "0xC891EB4cbdEFf6e073e859e987815Ed1505c2ACD",
81
+ decimals: 6,
82
+ name: "EURC",
83
+ version: "2"
84
+ },
85
+ ausd: {
86
+ address: "0x00000000eFE302BEAA2b3e6e1b18d08D69a9012a",
87
+ decimals: 6,
88
+ name: "Agora USD",
89
+ version: "1"
90
+ }
91
+ },
52
92
  x402: {
53
93
  facilitatorUrl: DEFAULT_FACILITATOR_URL,
54
94
  enabled: true
@@ -73,6 +113,44 @@ var SUPPORTED_CHAINS = {
73
113
  name: "USD Coin",
74
114
  version: "2"
75
115
  },
116
+ tokens: {
117
+ usdc: {
118
+ address: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
119
+ decimals: 6,
120
+ name: "USD Coin",
121
+ version: "2"
122
+ },
123
+ eurc: {
124
+ address: "0x1aBaEA1f7C830bD89Acc67eC4af516284b1bC33c",
125
+ decimals: 6,
126
+ name: "EURC",
127
+ version: "2"
128
+ },
129
+ ausd: {
130
+ address: "0x00000000eFE302BEAA2b3e6e1b18d08D69a9012a",
131
+ decimals: 6,
132
+ name: "Agora USD",
133
+ version: "1"
134
+ },
135
+ pyusd: {
136
+ address: "0x6c3ea9036406852006290770BEdFcAbA0e23A0e8",
137
+ decimals: 6,
138
+ name: "PayPal USD",
139
+ version: "1"
140
+ },
141
+ gho: {
142
+ address: "0x40D16FC0246aD3160Ccc09B8D0D3A2cD28aE6C2f",
143
+ decimals: 18,
144
+ name: "Gho Token",
145
+ version: "1"
146
+ },
147
+ crvusd: {
148
+ address: "0xf939E0A03FB07F59A73314E73794Be0E57ac1b4E",
149
+ decimals: 18,
150
+ name: "Curve.Fi USD Stablecoin",
151
+ version: "1"
152
+ }
153
+ },
76
154
  x402: {
77
155
  facilitatorUrl: DEFAULT_FACILITATOR_URL,
78
156
  enabled: true
@@ -97,6 +175,20 @@ var SUPPORTED_CHAINS = {
97
175
  name: "USD Coin",
98
176
  version: "2"
99
177
  },
178
+ tokens: {
179
+ usdc: {
180
+ address: "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
181
+ decimals: 6,
182
+ name: "USD Coin",
183
+ version: "2"
184
+ },
185
+ ausd: {
186
+ address: "0x00000000eFE302BEAA2b3e6e1b18d08D69a9012a",
187
+ decimals: 6,
188
+ name: "Agora USD",
189
+ version: "1"
190
+ }
191
+ },
100
192
  x402: {
101
193
  facilitatorUrl: DEFAULT_FACILITATOR_URL,
102
194
  enabled: true
@@ -121,6 +213,32 @@ var SUPPORTED_CHAINS = {
121
213
  name: "USD Coin",
122
214
  version: "2"
123
215
  },
216
+ tokens: {
217
+ usdc: {
218
+ address: "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
219
+ decimals: 6,
220
+ name: "USD Coin",
221
+ version: "2"
222
+ },
223
+ ausd: {
224
+ address: "0x00000000eFE302BEAA2b3e6e1b18d08D69a9012a",
225
+ decimals: 6,
226
+ name: "Agora USD",
227
+ version: "1"
228
+ },
229
+ gho: {
230
+ address: "0x7dfF72693f6A4149b17e7C6314655f6A9F7c8B33",
231
+ decimals: 18,
232
+ name: "Gho Token",
233
+ version: "1"
234
+ },
235
+ crvusd: {
236
+ address: "0x498Bf2B1e120FeD3ad3D42EA2165E9b73f99C1e5",
237
+ decimals: 18,
238
+ name: "Curve.Fi USD Stablecoin",
239
+ version: "1"
240
+ }
241
+ },
124
242
  x402: {
125
243
  facilitatorUrl: DEFAULT_FACILITATOR_URL,
126
244
  enabled: true
@@ -145,6 +263,14 @@ var SUPPORTED_CHAINS = {
145
263
  name: "USD Coin",
146
264
  version: "2"
147
265
  },
266
+ tokens: {
267
+ usdc: {
268
+ address: "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",
269
+ decimals: 6,
270
+ name: "USD Coin",
271
+ version: "2"
272
+ }
273
+ },
148
274
  x402: {
149
275
  facilitatorUrl: DEFAULT_FACILITATOR_URL,
150
276
  enabled: true
@@ -170,6 +296,15 @@ var SUPPORTED_CHAINS = {
170
296
  // Celo uses "USDC" not "USD Coin" for EIP-712
171
297
  version: "2"
172
298
  },
299
+ tokens: {
300
+ usdc: {
301
+ address: "0xcebA9300f2b948710d2653dD7B07f33A8B32118C",
302
+ decimals: 6,
303
+ name: "USDC",
304
+ // Celo uses "USDC" not "USD Coin" for EIP-712
305
+ version: "2"
306
+ }
307
+ },
173
308
  x402: {
174
309
  facilitatorUrl: DEFAULT_FACILITATOR_URL,
175
310
  enabled: true
@@ -195,6 +330,15 @@ var SUPPORTED_CHAINS = {
195
330
  // HyperEVM uses "USDC" not "USD Coin"
196
331
  version: "2"
197
332
  },
333
+ tokens: {
334
+ usdc: {
335
+ address: "0xb88339CB7199b77E23DB6E890353E22632Ba630f",
336
+ decimals: 6,
337
+ name: "USDC",
338
+ // HyperEVM uses "USDC" not "USD Coin"
339
+ version: "2"
340
+ }
341
+ },
198
342
  x402: {
199
343
  facilitatorUrl: DEFAULT_FACILITATOR_URL,
200
344
  enabled: true
@@ -220,6 +364,15 @@ var SUPPORTED_CHAINS = {
220
364
  // Unichain uses "USDC" not "USD Coin"
221
365
  version: "2"
222
366
  },
367
+ tokens: {
368
+ usdc: {
369
+ address: "0x078d782b760474a361dda0af3839290b0ef57ad6",
370
+ decimals: 6,
371
+ name: "USDC",
372
+ // Unichain uses "USDC" not "USD Coin"
373
+ version: "2"
374
+ }
375
+ },
223
376
  x402: {
224
377
  facilitatorUrl: DEFAULT_FACILITATOR_URL,
225
378
  enabled: true
@@ -245,6 +398,21 @@ var SUPPORTED_CHAINS = {
245
398
  // Monad uses "USDC" not "USD Coin"
246
399
  version: "2"
247
400
  },
401
+ tokens: {
402
+ usdc: {
403
+ address: "0x754704bc059f8c67012fed69bc8a327a5aafb603",
404
+ decimals: 6,
405
+ name: "USDC",
406
+ // Monad uses "USDC" not "USD Coin"
407
+ version: "2"
408
+ },
409
+ ausd: {
410
+ address: "0x00000000eFE302BEAA2b3e6e1b18d08D69a9012a",
411
+ decimals: 6,
412
+ name: "Agora USD",
413
+ version: "1"
414
+ }
415
+ },
248
416
  x402: {
249
417
  facilitatorUrl: DEFAULT_FACILITATOR_URL,
250
418
  enabled: true