uvd-x402-sdk 2.13.0 → 2.14.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uvd-x402-sdk",
3
- "version": "2.13.0",
3
+ "version": "2.14.0",
4
4
  "description": "x402 Payment SDK - Gasless crypto payments across 16 blockchains via Ultravioleta facilitator. Supports EVM, Solana, Fogo, Stellar, NEAR, and Algorand with multi-stablecoin support (USDC, EURC, AUSD, PYUSD, USDT).",
5
5
  "author": "Ultravioleta DAO <ultravioletadao@gmail.com>",
6
6
  "license": "MIT",
@@ -25,42 +25,90 @@ export const DEFAULT_FACILITATOR_URL = 'https://facilitator.ultravioletadao.xyz'
25
25
  * The facilitator uses these to pay fees and sign transactions.
26
26
  */
27
27
  export const FACILITATOR_ADDRESSES = {
28
+ // ============================================
29
+ // EVM Chains
30
+ // ============================================
28
31
  /**
29
- * Solana facilitator address (fee payer)
32
+ * EVM facilitator address (mainnet)
33
+ * Used for: Submitting EIP-3009 transferWithAuthorization transactions
34
+ * Note: Same address across all EVM mainnet chains
35
+ */
36
+ evm: '0x103040545AC5031A11E8C03dd11324C7333a13C7',
37
+
38
+ /**
39
+ * EVM facilitator address (testnet)
40
+ * Used for: All EVM testnet chains
41
+ */
42
+ 'evm-testnet': '0x34033041a5944B8F10f8E4D8496Bfb84f1A293A8',
43
+
44
+ // ============================================
45
+ // Solana
46
+ // ============================================
47
+ /**
48
+ * Solana facilitator address (mainnet)
30
49
  * Used for: Paying transaction fees on Solana
31
50
  */
32
51
  solana: 'F742C4VfFLQ9zRQyithoj5229ZgtX2WqKCSFKgH2EThq',
33
52
 
34
53
  /**
35
- * Algorand facilitator address (fee payer)
36
- * Used for: Signing Transaction 0 (fee tx) in atomic groups
37
- * Note: This is derived from the facilitator's Algorand mnemonic
54
+ * Solana facilitator address (devnet)
38
55
  */
39
- algorand: 'SXHRBXS22SKKXHXK44DTQMWN2SXK3SFJWBDAQZGF4DRPW7PNFAUM2GYFAQ',
56
+ 'solana-devnet': '6xNPewUdKRbEZDReQdpyfNUdgNg8QRc8Mt263T5GZSRv',
40
57
 
58
+ // ============================================
59
+ // Fogo (uses same addresses as Solana)
60
+ // ============================================
41
61
  /**
42
- * Algorand testnet facilitator address
62
+ * Fogo facilitator address (mainnet)
43
63
  */
44
- 'algorand-testnet': 'SXHRBXS22SKKXHXK44DTQMWN2SXK3SFJWBDAQZGF4DRPW7PNFAUM2GYFAQ',
64
+ fogo: 'F742C4VfFLQ9zRQyithoj5229ZgtX2WqKCSFKgH2EThq',
45
65
 
46
66
  /**
47
- * EVM facilitator address
48
- * Used for: Submitting EIP-3009 transferWithAuthorization transactions
49
- * Note: Same address across all EVM chains
67
+ * Fogo facilitator address (testnet)
68
+ */
69
+ 'fogo-testnet': '6xNPewUdKRbEZDReQdpyfNUdgNg8QRc8Mt263T5GZSRv',
70
+
71
+ // ============================================
72
+ // NEAR
73
+ // ============================================
74
+ /**
75
+ * NEAR facilitator address (mainnet)
76
+ * Used for: Relaying meta-transactions
50
77
  */
51
- evm: '0x7c5F3AdB0C7775968Bc7e7cF61b27fECf2e2b500',
78
+ near: 'uvd-facilitator.near',
79
+
80
+ /**
81
+ * NEAR facilitator address (testnet)
82
+ */
83
+ 'near-testnet': 'uvd-facilitator.testnet',
52
84
 
85
+ // ============================================
86
+ // Stellar
87
+ // ============================================
53
88
  /**
54
- * Stellar facilitator address
89
+ * Stellar facilitator address (mainnet)
55
90
  * Used for: Signing soroban authorization entries
56
91
  */
57
- stellar: 'GDUTDNV53WQPOB2JUZPO6SXH4LVT7CJSLCMLFQ7W4CNAXGIX7XYMCNP2',
92
+ stellar: 'GCHPGXJT2WFFRFCA5TV4G4E3PMMXLNIDUH27PKDYA4QJ2XGYZWGFZNHB',
58
93
 
59
94
  /**
60
- * NEAR facilitator address
61
- * Used for: Relaying meta-transactions
95
+ * Stellar facilitator address (testnet)
62
96
  */
63
- near: 'uvd-facilitator.near',
97
+ 'stellar-testnet': 'GBBFZMLUJEZVI32EN4XA2KPP445XIBTMTRBLYWFIL556RDTHS2OWFQ2Z',
98
+
99
+ // ============================================
100
+ // Algorand
101
+ // ============================================
102
+ /**
103
+ * Algorand facilitator address (mainnet)
104
+ * Used for: Signing Transaction 0 (fee tx) in atomic groups
105
+ */
106
+ algorand: 'KIMS5H6QLCUDL65L5UBTOXDPWLMTS7N3AAC3I6B2NCONEI5QIVK7LH2C2I',
107
+
108
+ /**
109
+ * Algorand facilitator address (testnet)
110
+ */
111
+ 'algorand-testnet': '5DPPDQNYUPCTXRZWRYSF3WPYU6RKAUR25F3YG4EKXQRHV5AUAI62H5GXL4',
64
112
  } as const;
65
113
 
66
114
  /**
@@ -512,12 +512,12 @@ export class AlgorandProvider implements WalletAdapter {
512
512
  const payload = JSON.parse(paymentPayload) as AlgorandPaymentPayload;
513
513
 
514
514
  // Determine network name for x402
515
- // Use "algorand-mainnet" or "algorand-testnet" format for facilitator
515
+ // Use "algorand" or "algorand-testnet" format for facilitator
516
516
  let networkName: string;
517
517
  if (chainConfig?.name === 'algorand-testnet') {
518
518
  networkName = 'algorand-testnet';
519
519
  } else {
520
- networkName = 'algorand-mainnet'; // Default to mainnet
520
+ networkName = 'algorand'; // Default to mainnet
521
521
  }
522
522
 
523
523
  // Build the payload data (GoPlausible x402-avm spec)