uvd-x402-sdk 2.13.1 → 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/dist/index.d.mts +40 -16
- package/dist/index.d.ts +40 -16
- package/dist/index.js +58 -16
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +58 -16
- package/dist/index.mjs.map +1 -1
- package/dist/providers/algorand/index.js +58 -16
- package/dist/providers/algorand/index.js.map +1 -1
- package/dist/providers/algorand/index.mjs +58 -16
- package/dist/providers/algorand/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/facilitator.ts +64 -16
package/dist/index.mjs
CHANGED
|
@@ -1530,37 +1530,79 @@ var X402Client = class {
|
|
|
1530
1530
|
|
|
1531
1531
|
// src/facilitator.ts
|
|
1532
1532
|
var FACILITATOR_ADDRESSES = {
|
|
1533
|
+
// ============================================
|
|
1534
|
+
// EVM Chains
|
|
1535
|
+
// ============================================
|
|
1533
1536
|
/**
|
|
1534
|
-
*
|
|
1537
|
+
* EVM facilitator address (mainnet)
|
|
1538
|
+
* Used for: Submitting EIP-3009 transferWithAuthorization transactions
|
|
1539
|
+
* Note: Same address across all EVM mainnet chains
|
|
1540
|
+
*/
|
|
1541
|
+
evm: "0x103040545AC5031A11E8C03dd11324C7333a13C7",
|
|
1542
|
+
/**
|
|
1543
|
+
* EVM facilitator address (testnet)
|
|
1544
|
+
* Used for: All EVM testnet chains
|
|
1545
|
+
*/
|
|
1546
|
+
"evm-testnet": "0x34033041a5944B8F10f8E4D8496Bfb84f1A293A8",
|
|
1547
|
+
// ============================================
|
|
1548
|
+
// Solana
|
|
1549
|
+
// ============================================
|
|
1550
|
+
/**
|
|
1551
|
+
* Solana facilitator address (mainnet)
|
|
1535
1552
|
* Used for: Paying transaction fees on Solana
|
|
1536
1553
|
*/
|
|
1537
1554
|
solana: "F742C4VfFLQ9zRQyithoj5229ZgtX2WqKCSFKgH2EThq",
|
|
1538
1555
|
/**
|
|
1539
|
-
*
|
|
1540
|
-
* Used for: Signing Transaction 0 (fee tx) in atomic groups
|
|
1541
|
-
* Note: This is derived from the facilitator's Algorand mnemonic
|
|
1556
|
+
* Solana facilitator address (devnet)
|
|
1542
1557
|
*/
|
|
1543
|
-
|
|
1558
|
+
"solana-devnet": "6xNPewUdKRbEZDReQdpyfNUdgNg8QRc8Mt263T5GZSRv",
|
|
1559
|
+
// ============================================
|
|
1560
|
+
// Fogo (uses same addresses as Solana)
|
|
1561
|
+
// ============================================
|
|
1544
1562
|
/**
|
|
1545
|
-
*
|
|
1563
|
+
* Fogo facilitator address (mainnet)
|
|
1546
1564
|
*/
|
|
1547
|
-
|
|
1565
|
+
fogo: "F742C4VfFLQ9zRQyithoj5229ZgtX2WqKCSFKgH2EThq",
|
|
1548
1566
|
/**
|
|
1549
|
-
*
|
|
1550
|
-
|
|
1551
|
-
|
|
1567
|
+
* Fogo facilitator address (testnet)
|
|
1568
|
+
*/
|
|
1569
|
+
"fogo-testnet": "6xNPewUdKRbEZDReQdpyfNUdgNg8QRc8Mt263T5GZSRv",
|
|
1570
|
+
// ============================================
|
|
1571
|
+
// NEAR
|
|
1572
|
+
// ============================================
|
|
1573
|
+
/**
|
|
1574
|
+
* NEAR facilitator address (mainnet)
|
|
1575
|
+
* Used for: Relaying meta-transactions
|
|
1552
1576
|
*/
|
|
1553
|
-
|
|
1577
|
+
near: "uvd-facilitator.near",
|
|
1554
1578
|
/**
|
|
1555
|
-
*
|
|
1579
|
+
* NEAR facilitator address (testnet)
|
|
1580
|
+
*/
|
|
1581
|
+
"near-testnet": "uvd-facilitator.testnet",
|
|
1582
|
+
// ============================================
|
|
1583
|
+
// Stellar
|
|
1584
|
+
// ============================================
|
|
1585
|
+
/**
|
|
1586
|
+
* Stellar facilitator address (mainnet)
|
|
1556
1587
|
* Used for: Signing soroban authorization entries
|
|
1557
1588
|
*/
|
|
1558
|
-
stellar: "
|
|
1589
|
+
stellar: "GCHPGXJT2WFFRFCA5TV4G4E3PMMXLNIDUH27PKDYA4QJ2XGYZWGFZNHB",
|
|
1559
1590
|
/**
|
|
1560
|
-
*
|
|
1561
|
-
|
|
1591
|
+
* Stellar facilitator address (testnet)
|
|
1592
|
+
*/
|
|
1593
|
+
"stellar-testnet": "GBBFZMLUJEZVI32EN4XA2KPP445XIBTMTRBLYWFIL556RDTHS2OWFQ2Z",
|
|
1594
|
+
// ============================================
|
|
1595
|
+
// Algorand
|
|
1596
|
+
// ============================================
|
|
1597
|
+
/**
|
|
1598
|
+
* Algorand facilitator address (mainnet)
|
|
1599
|
+
* Used for: Signing Transaction 0 (fee tx) in atomic groups
|
|
1600
|
+
*/
|
|
1601
|
+
algorand: "KIMS5H6QLCUDL65L5UBTOXDPWLMTS7N3AAC3I6B2NCONEI5QIVK7LH2C2I",
|
|
1602
|
+
/**
|
|
1603
|
+
* Algorand facilitator address (testnet)
|
|
1562
1604
|
*/
|
|
1563
|
-
|
|
1605
|
+
"algorand-testnet": "5DPPDQNYUPCTXRZWRYSF3WPYU6RKAUR25F3YG4EKXQRHV5AUAI62H5GXL4"
|
|
1564
1606
|
};
|
|
1565
1607
|
function getFacilitatorAddress(chainName, networkType) {
|
|
1566
1608
|
const exactMatch = FACILITATOR_ADDRESSES[chainName];
|