uvd-x402-sdk 2.111.0 → 2.113.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 (70) hide show
  1. package/README.md +22 -4
  2. package/dist/adapters/index.js +9 -0
  3. package/dist/adapters/index.js.map +1 -1
  4. package/dist/adapters/index.mjs +9 -0
  5. package/dist/adapters/index.mjs.map +1 -1
  6. package/dist/backend/index.d.mts +1 -1
  7. package/dist/backend/index.d.ts +1 -1
  8. package/dist/backend/index.js +33 -5
  9. package/dist/backend/index.js.map +1 -1
  10. package/dist/backend/index.mjs +33 -5
  11. package/dist/backend/index.mjs.map +1 -1
  12. package/dist/erc8128/index.js +9 -0
  13. package/dist/erc8128/index.js.map +1 -1
  14. package/dist/erc8128/index.mjs +9 -0
  15. package/dist/erc8128/index.mjs.map +1 -1
  16. package/dist/{escrow-contracts-Bbr_osYS.d.ts → escrow-contracts-CYjULLoR.d.ts} +7 -5
  17. package/dist/{escrow-contracts-Fa138lPh.d.mts → escrow-contracts-DODQvKRC.d.mts} +7 -5
  18. package/dist/index.d.mts +1 -1
  19. package/dist/index.d.ts +1 -1
  20. package/dist/index.js +167 -0
  21. package/dist/index.js.map +1 -1
  22. package/dist/index.mjs +167 -0
  23. package/dist/index.mjs.map +1 -1
  24. package/dist/providers/algorand/index.js +9 -0
  25. package/dist/providers/algorand/index.js.map +1 -1
  26. package/dist/providers/algorand/index.mjs +9 -0
  27. package/dist/providers/algorand/index.mjs.map +1 -1
  28. package/dist/providers/evm/index.js +9 -0
  29. package/dist/providers/evm/index.js.map +1 -1
  30. package/dist/providers/evm/index.mjs +9 -0
  31. package/dist/providers/evm/index.mjs.map +1 -1
  32. package/dist/providers/near/index.d.mts +579 -1
  33. package/dist/providers/near/index.d.ts +579 -1
  34. package/dist/providers/near/index.js +748 -31
  35. package/dist/providers/near/index.js.map +1 -1
  36. package/dist/providers/near/index.mjs +722 -32
  37. package/dist/providers/near/index.mjs.map +1 -1
  38. package/dist/providers/solana/index.js +9 -0
  39. package/dist/providers/solana/index.js.map +1 -1
  40. package/dist/providers/solana/index.mjs +9 -0
  41. package/dist/providers/solana/index.mjs.map +1 -1
  42. package/dist/providers/stellar/index.js +9 -0
  43. package/dist/providers/stellar/index.js.map +1 -1
  44. package/dist/providers/stellar/index.mjs +9 -0
  45. package/dist/providers/stellar/index.mjs.map +1 -1
  46. package/dist/providers/sui/index.js +9 -0
  47. package/dist/providers/sui/index.js.map +1 -1
  48. package/dist/providers/sui/index.mjs +9 -0
  49. package/dist/providers/sui/index.mjs.map +1 -1
  50. package/dist/providers/xrpl/index.js +9 -0
  51. package/dist/providers/xrpl/index.js.map +1 -1
  52. package/dist/providers/xrpl/index.mjs +9 -0
  53. package/dist/providers/xrpl/index.mjs.map +1 -1
  54. package/dist/react/index.js +9 -0
  55. package/dist/react/index.js.map +1 -1
  56. package/dist/react/index.mjs +9 -0
  57. package/dist/react/index.mjs.map +1 -1
  58. package/dist/reputation/index.d.mts +1 -1
  59. package/dist/reputation/index.d.ts +1 -1
  60. package/dist/utils/index.js +9 -0
  61. package/dist/utils/index.js.map +1 -1
  62. package/dist/utils/index.mjs +9 -0
  63. package/dist/utils/index.mjs.map +1 -1
  64. package/package.json +1 -1
  65. package/src/backend/index.ts +51 -13
  66. package/src/providers/near/erc8004-schema.ts +81 -0
  67. package/src/providers/near/erc8004.ts +541 -0
  68. package/src/providers/near/index.ts +2 -0
  69. package/src/providers/near/vectors/near-erc8004.json +5050 -0
  70. package/src/types/index.ts +9 -0
package/README.md CHANGED
@@ -10,6 +10,8 @@ Users sign a message or transaction, and the Ultravioleta facilitator handles on
10
10
 
11
11
  ## Features
12
12
 
13
+ **NEAR ERC-8004 (v2.112.0):** separate identity NFTs and reputation registries, payment-backed Arras feedback, config-bound wallet transactions and strict offline outcome parsing on mainnet and testnet. [Execution Market integration guide](docs/near-erc8004.md).
14
+
13
15
  **Arras NEAR escrow (v2.110.0):** offline local-key NEP-366 authorization, canonical Rust payment IDs and pull lifecycle helpers through `uvd-x402-sdk/near`. [Guide and agent example](docs/near-escrow.md). As of 2026-11-03 the production facilitator relays NEAR escrow only on testnet. Since 2.110.0 the registry allows mainnet escrow signing only for `v1.arras-escrow.near`; testnet keeps `arras-v1b-1101.testnet`.
14
16
 
15
17
  - **31 Networks**: EVM (19 including HashKey Chain, Arc, Scroll, SKALE Base, Robinhood Chain), Solana, Fogo, Stellar, NEAR, Algorand, Sui, XRP Ledger, Hedera (mainnet + testnet)
@@ -21,7 +23,7 @@ Users sign a message or transaction, and the Ultravioleta facilitator handles on
21
23
  - **React & Wagmi**: First-class integrations
22
24
  - **Signing Wallet Adapters**: EnvKeyAdapter (server/CLI), OWSWalletAdapter (Open Wallet Standard vault, Node), or bring your own
23
25
  - **ERC-8128 Signed Requests**: Authenticate HTTP requests with a wallet (RFC 9421 + EIP-191) — no API keys
24
- - **ERC-8004 Trustless Agents**: On-chain reputation and identity across 23 networks (21 EVM + 2 Solana)
26
+ - **ERC-8004 Trustless Agents**: On-chain reputation and identity across 25 networks (23 EVM + 2 Solana)
25
27
  - **Escrow & Refunds**: Hold payments with dispute resolution
26
28
  - **Advanced Escrow**: Full escrow lifecycle (authorize, release, refund, charge) with SigningWalletAdapter support
27
29
  - **Escrow Pre-Auth**: Sign-on-assignment `X-Payment-Auth` builder (`buildEscrowPreAuth`) — vector-pinned parity with the Python SDK and Execution Market
@@ -1381,20 +1383,36 @@ response.
1381
1383
 
1382
1384
  ## ERC-8004 Trustless Agents
1383
1385
 
1384
- Build verifiable on-chain reputation for AI agents and services. Supports **23 networks** (21 EVM + 2 Solana).
1386
+ Build verifiable on-chain reputation for AI agents and services. Supports **25 networks** (23 EVM + 2 Solana).
1385
1387
 
1386
1388
  > Name Base as `'base'`. The old `'base-mainnet'` spelling is rejected by the facilitator
1387
1389
  > (`400 Invalid network`); the SDK now rewrites it for you, but new code should use `'base'`.
1388
1390
 
1389
1391
  On EVM networks, agent IDs are sequential numbers. On Solana, agent IDs are base58 pubkey strings. The `AgentId` type (`number | string`) handles both.
1390
1392
 
1391
- ### EVM Networks (21)
1393
+ ### EVM Networks (23)
1392
1394
 
1393
- ethereum, base, polygon, arbitrum, optimism, celo, bsc, monad, avalanche, scroll, skale-base, arc, ethereum-sepolia, base-sepolia, polygon-amoy, arbitrum-sepolia, optimism-sepolia, celo-sepolia, avalanche-fuji, skale-base-sepolia, arc-testnet
1395
+ ethereum, base, polygon, arbitrum, optimism, celo, bsc, monad, avalanche, scroll, skale-base, arc, ethereum-sepolia, base-sepolia, polygon-amoy, arbitrum-sepolia, optimism-sepolia, celo-sepolia, avalanche-fuji, skale-base-sepolia, arc-testnet, robinhood, robinhood-testnet
1394
1396
 
1395
1397
  Arc (`arc`, `arc-testnet`) since 2.98.0, with the canonical registries on both; see
1396
1398
  [ERC-8004 on Arc](docs/networks/arc.md#erc-8004-on-arc-2980).
1397
1399
 
1400
+ Robinhood Chain accepts `robinhood` / `eip155:4663` and
1401
+ `robinhood-testnet` / `eip155:46630` in `Erc8004Client` methods. Both spellings
1402
+ resolve through `getContracts` and `isAvailable`; requests use the short name.
1403
+ `ERC8004_CONTRACTS` is indexed by short name. Every EVM network in that table
1404
+ also accepts its CAIP-2 identifier (for example `eip155:8453` for Base and
1405
+ `eip155:5042` for Arc); only registered networks resolve locally.
1406
+
1407
+ | Network | Identity registry | Reputation registry | Validation registry |
1408
+ | --- | --- | --- | --- |
1409
+ | Robinhood (4663) | `0x8004A169FB4a3325136EB29fA0ceB6D2e539a432` | `0x8004BAa17C55a88189AE136b182e5fdA19dE9b63` | `0x8004Cc8439f36fd5F9F049D9fF86523Df6dAAB58` |
1410
+ | Robinhood testnet (46630) | `0x8004A818BFB912233c491871b3d84c89A494BD9e` | `0x8004B663056A597Dffe9eCcC1965A193B7388713` | `0x8004Cb1BF31DAf7788923b405b754f57acEB4272` |
1411
+
1412
+ These registry deployments were measured on 2026-11-04. They do not establish a
1413
+ FeedbackDelegate deployment: neither Robinhood network is advertised by
1414
+ `supportsRelayedFeedback`. Robinhood x402r escrow is not available.
1415
+
1398
1416
  ### Solana Networks (2)
1399
1417
 
1400
1418
  solana, solana-devnet
@@ -1213,6 +1213,15 @@ var CAIP2_IDENTIFIERS = {
1213
1213
  "robinhood-testnet": "eip155:46630",
1214
1214
  arc: "eip155:5042",
1215
1215
  "arc-testnet": "eip155:5042002",
1216
+ // ERC-8004 testnets without a payment-chain configuration. Keep their
1217
+ // identifiers here so chainToCAIP2 is the shared source for network aliases.
1218
+ "ethereum-sepolia": "eip155:11155111",
1219
+ "base-sepolia": "eip155:84532",
1220
+ "polygon-amoy": "eip155:80002",
1221
+ "arbitrum-sepolia": "eip155:421614",
1222
+ "optimism-sepolia": "eip155:11155420",
1223
+ "celo-sepolia": "eip155:11142220",
1224
+ "avalanche-fuji": "eip155:43113",
1216
1225
  // SVM chains
1217
1226
  solana: "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
1218
1227
  fogo: "svm:fogo",