wolverine-ai 5.2.9 → 5.2.10
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wolverine-ai",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.10",
|
|
4
4
|
"description": "Self-healing Node.js server framework powered by AI. Catches crashes, diagnoses errors, generates fixes, verifies, and restarts — automatically.",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -187,15 +187,15 @@ async function x402Plugin(fastify, opts) {
|
|
|
187
187
|
// Use x402 SDK if available
|
|
188
188
|
if (_x402Server) {
|
|
189
189
|
try {
|
|
190
|
-
// Verify
|
|
191
|
-
const verifyResult = await _x402Server.
|
|
190
|
+
// Verify via facilitator
|
|
191
|
+
const verifyResult = await _x402Server.verifyPayment(paymentPayload, paymentRequirements);
|
|
192
192
|
if (!verifyResult.isValid) {
|
|
193
193
|
reply.code(402).send({ error: "Payment verification failed", reason: verifyResult.invalidReason, price, payTo: _payTo });
|
|
194
194
|
return;
|
|
195
195
|
}
|
|
196
196
|
|
|
197
|
-
// Settle
|
|
198
|
-
const settleResult = await _x402Server.
|
|
197
|
+
// Settle via facilitator (executes on-chain transfer)
|
|
198
|
+
const settleResult = await _x402Server.settlePayment(paymentPayload, paymentRequirements);
|
|
199
199
|
if (!settleResult.success) {
|
|
200
200
|
reply.code(402).send({ error: "Payment settlement failed", reason: settleResult.errorReason, price, payTo: _payTo });
|
|
201
201
|
return;
|