openzoo 0.50.85 → 0.50.87
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/bin/openzoo.js +11 -0
- package/lib/x402.js +5 -1
- package/package.json +1 -1
package/bin/openzoo.js
CHANGED
|
@@ -389,6 +389,17 @@ async function main() {
|
|
|
389
389
|
case '-h':
|
|
390
390
|
console.log(HELP);
|
|
391
391
|
break;
|
|
392
|
+
case 'version':
|
|
393
|
+
case '--version':
|
|
394
|
+
case '-v':
|
|
395
|
+
case '-V': {
|
|
396
|
+
// Every installer, mise shim and shell script that probes a CLI asks
|
|
397
|
+
// this first; answering "unknown command" to it failed real installs.
|
|
398
|
+
const { readFileSync } = await import('fs');
|
|
399
|
+
const pkg = JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf8'));
|
|
400
|
+
console.log(pkg.version);
|
|
401
|
+
break;
|
|
402
|
+
}
|
|
392
403
|
default:
|
|
393
404
|
console.error(`unknown command: ${cmd}\n`);
|
|
394
405
|
console.log(HELP);
|
package/lib/x402.js
CHANGED
|
@@ -312,7 +312,11 @@ export function buildPayment({ accept, decimals, programId, recentBlockhash, key
|
|
|
312
312
|
}));
|
|
313
313
|
}
|
|
314
314
|
tx.add(ComputeBudgetProgram.setComputeUnitLimit({ units: 200_000 }));
|
|
315
|
-
|
|
315
|
+
// MEASURED 2026-08-29 17Z–08-30 02Z: 254 shim-signed settlements broadcast
|
|
316
|
+
// and never included in nine hours of congestion. 1 microLamport is "please
|
|
317
|
+
// ignore me"; the gateway's own builder pays 100k (~0.00002 SOL per call)
|
|
318
|
+
// and lands. Same number here.
|
|
319
|
+
tx.add(ComputeBudgetProgram.setComputeUnitPrice({ microLamports: 100_000 }));
|
|
316
320
|
tx.add(createTransferCheckedInstruction(
|
|
317
321
|
source, mint, dest, keypair.publicKey, amount, decimals, [], programId,
|
|
318
322
|
));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openzoo",
|
|
3
|
-
"version": "0.50.
|
|
3
|
+
"version": "0.50.87",
|
|
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",
|