openzoo 0.50.16 → 0.50.17
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/lib/x402.js +8 -8
- package/package.json +1 -1
package/lib/x402.js
CHANGED
|
@@ -373,15 +373,15 @@ export async function buildPaymentOnline(connection, keypair, accept) {
|
|
|
373
373
|
// recent blockhash, because a 60-second window beats no payment at all.
|
|
374
374
|
let nonce = null;
|
|
375
375
|
const facilitator = accept?.extra?.facilitator;
|
|
376
|
-
//
|
|
376
|
+
// ON BY DEFAULT — PROVEN ON CHAIN 2026-08-28.
|
|
377
377
|
//
|
|
378
|
-
//
|
|
379
|
-
//
|
|
380
|
-
//
|
|
381
|
-
//
|
|
382
|
-
//
|
|
383
|
-
// OPENZOO_NONCE=
|
|
384
|
-
if (facilitator && process.env.OPENZOO_NONCE
|
|
378
|
+
// It shipped opt-in first because the fallback below covers a missing, slow
|
|
379
|
+
// or exhausted nonce but NOT a malformed nonce transaction: a wrong
|
|
380
|
+
// instruction order or account meta only surfaces at settle time, after the
|
|
381
|
+
// fallback is long past. That risk is now retired by a real settlement —
|
|
382
|
+
// tx 3pJbRH2u…mMWAZ3, instruction 0 `advanceNonceAccount`, err None.
|
|
383
|
+
// OPENZOO_NONCE=0 is the kill switch back to recent blockhashes.
|
|
384
|
+
if (facilitator && process.env.OPENZOO_NONCE !== '0') {
|
|
385
385
|
try {
|
|
386
386
|
const r = await fetch(`${facilitator}/nonce?network=${encodeURIComponent(accept.network)}`, {
|
|
387
387
|
signal: AbortSignal.timeout(4000),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openzoo",
|
|
3
|
-
"version": "0.50.
|
|
3
|
+
"version": "0.50.17",
|
|
4
4
|
"description": "Local x402-paying proxy + MCP server for openzoo.fun — point any OpenAI-compatible harness (Cursor, Claude Code, aider, SDKs) at localhost and it pays per call from a local burner wallet. Solana and Base rails live; Robinhood experimental.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|