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.
- package/README.md +22 -4
- package/dist/adapters/index.js +9 -0
- package/dist/adapters/index.js.map +1 -1
- package/dist/adapters/index.mjs +9 -0
- package/dist/adapters/index.mjs.map +1 -1
- package/dist/backend/index.d.mts +1 -1
- package/dist/backend/index.d.ts +1 -1
- package/dist/backend/index.js +33 -5
- package/dist/backend/index.js.map +1 -1
- package/dist/backend/index.mjs +33 -5
- package/dist/backend/index.mjs.map +1 -1
- package/dist/erc8128/index.js +9 -0
- package/dist/erc8128/index.js.map +1 -1
- package/dist/erc8128/index.mjs +9 -0
- package/dist/erc8128/index.mjs.map +1 -1
- package/dist/{escrow-contracts-Bbr_osYS.d.ts → escrow-contracts-CYjULLoR.d.ts} +7 -5
- package/dist/{escrow-contracts-Fa138lPh.d.mts → escrow-contracts-DODQvKRC.d.mts} +7 -5
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +167 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +167 -0
- package/dist/index.mjs.map +1 -1
- package/dist/providers/algorand/index.js +9 -0
- package/dist/providers/algorand/index.js.map +1 -1
- package/dist/providers/algorand/index.mjs +9 -0
- package/dist/providers/algorand/index.mjs.map +1 -1
- package/dist/providers/evm/index.js +9 -0
- package/dist/providers/evm/index.js.map +1 -1
- package/dist/providers/evm/index.mjs +9 -0
- package/dist/providers/evm/index.mjs.map +1 -1
- package/dist/providers/near/index.d.mts +579 -1
- package/dist/providers/near/index.d.ts +579 -1
- package/dist/providers/near/index.js +748 -31
- package/dist/providers/near/index.js.map +1 -1
- package/dist/providers/near/index.mjs +722 -32
- package/dist/providers/near/index.mjs.map +1 -1
- package/dist/providers/solana/index.js +9 -0
- package/dist/providers/solana/index.js.map +1 -1
- package/dist/providers/solana/index.mjs +9 -0
- package/dist/providers/solana/index.mjs.map +1 -1
- package/dist/providers/stellar/index.js +9 -0
- package/dist/providers/stellar/index.js.map +1 -1
- package/dist/providers/stellar/index.mjs +9 -0
- package/dist/providers/stellar/index.mjs.map +1 -1
- package/dist/providers/sui/index.js +9 -0
- package/dist/providers/sui/index.js.map +1 -1
- package/dist/providers/sui/index.mjs +9 -0
- package/dist/providers/sui/index.mjs.map +1 -1
- package/dist/providers/xrpl/index.js +9 -0
- package/dist/providers/xrpl/index.js.map +1 -1
- package/dist/providers/xrpl/index.mjs +9 -0
- package/dist/providers/xrpl/index.mjs.map +1 -1
- package/dist/react/index.js +9 -0
- package/dist/react/index.js.map +1 -1
- package/dist/react/index.mjs +9 -0
- package/dist/react/index.mjs.map +1 -1
- package/dist/reputation/index.d.mts +1 -1
- package/dist/reputation/index.d.ts +1 -1
- package/dist/utils/index.js +9 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/index.mjs +9 -0
- package/dist/utils/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/backend/index.ts +51 -13
- package/src/providers/near/erc8004-schema.ts +81 -0
- package/src/providers/near/erc8004.ts +541 -0
- package/src/providers/near/index.ts +2 -0
- package/src/providers/near/vectors/near-erc8004.json +5050 -0
- 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
|
|
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 **
|
|
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 (
|
|
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
|
package/dist/adapters/index.js
CHANGED
|
@@ -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",
|