@wasit-dev/core 0.1.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/dist/check.d.ts +70 -0
- package/dist/check.js +96 -0
- package/dist/errors.d.ts +65 -0
- package/dist/errors.js +127 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +7 -0
- package/dist/mpp/channel-commitment.d.ts +70 -0
- package/dist/mpp/channel-commitment.js +195 -0
- package/dist/mpp/channel-credential.d.ts +74 -0
- package/dist/mpp/channel-credential.js +115 -0
- package/dist/mpp/channel.d.ts +75 -0
- package/dist/mpp/channel.js +335 -0
- package/dist/mpp/charge-suite.d.ts +12 -0
- package/dist/mpp/charge-suite.js +18 -0
- package/dist/mpp/charge.d.ts +35 -0
- package/dist/mpp/charge.js +237 -0
- package/dist/mpp/network.d.ts +24 -0
- package/dist/mpp/network.js +55 -0
- package/dist/mpp/suite.d.ts +38 -0
- package/dist/mpp/suite.js +130 -0
- package/dist/x402/simulator.d.ts +40 -0
- package/dist/x402/simulator.js +367 -0
- package/package.json +54 -0
|
@@ -0,0 +1,367 @@
|
|
|
1
|
+
import { errored, skipped } from "../check.js";
|
|
2
|
+
import { ConfigurationError, MalformedResponseError, assertHttpUrl, fetchTarget, } from "../errors.js";
|
|
3
|
+
const BODYLESS_METHODS = new Set(["GET", "HEAD"]);
|
|
4
|
+
const KNOWN_METHODS = new Set([
|
|
5
|
+
"GET",
|
|
6
|
+
"HEAD",
|
|
7
|
+
"POST",
|
|
8
|
+
"PUT",
|
|
9
|
+
"PATCH",
|
|
10
|
+
"DELETE",
|
|
11
|
+
"OPTIONS",
|
|
12
|
+
]);
|
|
13
|
+
/**
|
|
14
|
+
* Validates a request shape and turns it into fetch init.
|
|
15
|
+
*
|
|
16
|
+
* A bad method, or a body on a verb that cannot carry one, is a configuration
|
|
17
|
+
* error rather than a finding: nothing has been learned about the target.
|
|
18
|
+
*/
|
|
19
|
+
function buildInit(shape) {
|
|
20
|
+
const method = (shape.method ?? "GET").toUpperCase();
|
|
21
|
+
if (!KNOWN_METHODS.has(method)) {
|
|
22
|
+
throw new ConfigurationError(`"${shape.method}" is not an HTTP method. Expected one of ` +
|
|
23
|
+
`${[...KNOWN_METHODS].join(", ")}.`);
|
|
24
|
+
}
|
|
25
|
+
if (shape.body !== undefined && BODYLESS_METHODS.has(method)) {
|
|
26
|
+
throw new ConfigurationError(`A request body cannot be sent with ${method}. Name the method the ` +
|
|
27
|
+
`endpoint actually uses, e.g. --method POST.`);
|
|
28
|
+
}
|
|
29
|
+
const headers = { ...(shape.headers ?? {}) };
|
|
30
|
+
// An endpoint that takes a body almost always parses it as JSON and rejects
|
|
31
|
+
// anything arriving without a content type. Defaulted rather than required,
|
|
32
|
+
// and overridable by naming the header explicitly.
|
|
33
|
+
if (shape.body !== undefined &&
|
|
34
|
+
!Object.keys(headers).some((name) => name.toLowerCase() === "content-type")) {
|
|
35
|
+
headers["Content-Type"] = "application/json";
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
method,
|
|
39
|
+
...(shape.body !== undefined ? { body: shape.body } : {}),
|
|
40
|
+
...(Object.keys(headers).length > 0 ? { headers } : {}),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Adds the x402 payment header to the caller's own request shape.
|
|
45
|
+
*
|
|
46
|
+
* The payment header wins on collision: a caller-supplied header of the same
|
|
47
|
+
* name would silently invalidate the payment being tested.
|
|
48
|
+
*/
|
|
49
|
+
function withPaymentHeaders(shape, paymentHeaders) {
|
|
50
|
+
const init = buildInit(shape);
|
|
51
|
+
return {
|
|
52
|
+
...init,
|
|
53
|
+
headers: { ...(init.headers ?? {}), ...paymentHeaders },
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* The read-only checks, in catalogue order.
|
|
58
|
+
*
|
|
59
|
+
* Order is load-bearing: each check inspects something the previous one
|
|
60
|
+
* produced, so when one fails the rest have nothing to inspect. They are
|
|
61
|
+
* skipped rather than failed — a check that never ran is not a defect in the
|
|
62
|
+
* target, and reporting one broken challenge as five separate findings tells
|
|
63
|
+
* an operator their service is five times more broken than it is.
|
|
64
|
+
*/
|
|
65
|
+
const READ_CHECKS = [
|
|
66
|
+
["X402-01", "402 Response Status"],
|
|
67
|
+
["X402-02", "Payment Header Present"],
|
|
68
|
+
["X402-03", "Header Payload Decodable"],
|
|
69
|
+
["X402-04", "Required Fields Present"],
|
|
70
|
+
["X402-05", "Network Identifier Valid"],
|
|
71
|
+
];
|
|
72
|
+
/** Skips every check after `id`, naming the one cause they all depend on. */
|
|
73
|
+
function skipAfter(id, reason) {
|
|
74
|
+
const index = READ_CHECKS.findIndex(([candidate]) => candidate === id);
|
|
75
|
+
return READ_CHECKS.slice(index + 1).map(([checkId, name]) => skipped(checkId, name, reason));
|
|
76
|
+
}
|
|
77
|
+
function asRecord(value) {
|
|
78
|
+
return typeof value === "object" && value !== null
|
|
79
|
+
? value
|
|
80
|
+
: undefined;
|
|
81
|
+
}
|
|
82
|
+
/** x402 v2 nests the payment terms inside `accepts[]`, not at the top level. */
|
|
83
|
+
function firstAccept(payload) {
|
|
84
|
+
const accepts = asRecord(payload)?.["accepts"];
|
|
85
|
+
return Array.isArray(accepts) ? asRecord(accepts[0]) : undefined;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* The field carrying the price, per protocol version.
|
|
89
|
+
*
|
|
90
|
+
* x402 v2 renamed `maxAmountRequired` to `amount` and dropped the embedded
|
|
91
|
+
* resource object. Checking for whichever name happens to be present would
|
|
92
|
+
* hide a real conformance failure: a service advertising `x402Version: 2`
|
|
93
|
+
* while emitting the v1 field name is not conformant to the version it claims.
|
|
94
|
+
*/
|
|
95
|
+
const PRICE_FIELD = {
|
|
96
|
+
1: "maxAmountRequired",
|
|
97
|
+
2: "amount",
|
|
98
|
+
};
|
|
99
|
+
function isSupportedVersion(value) {
|
|
100
|
+
return value === 1 || value === 2;
|
|
101
|
+
}
|
|
102
|
+
function nonEmptyString(value) {
|
|
103
|
+
return typeof value === "string" && value.length > 0;
|
|
104
|
+
}
|
|
105
|
+
/** X402-04: the challenge must carry price, network, and payTo. */
|
|
106
|
+
function checkRequiredFields(payload) {
|
|
107
|
+
const version = asRecord(payload)?.["x402Version"];
|
|
108
|
+
const accept = firstAccept(payload);
|
|
109
|
+
if (!isSupportedVersion(version)) {
|
|
110
|
+
return {
|
|
111
|
+
id: "X402-04",
|
|
112
|
+
name: "Required Fields Present",
|
|
113
|
+
pass: false,
|
|
114
|
+
detail: `Challenge advertises x402Version ${JSON.stringify(version)}, which is ` +
|
|
115
|
+
`neither 1 nor 2. The payment terms use different field names per ` +
|
|
116
|
+
`version, so they cannot be checked against an unknown one.`,
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
const expected = PRICE_FIELD[version];
|
|
120
|
+
const wrongVersionField = version === 2 ? "maxAmountRequired" : "amount";
|
|
121
|
+
// A v2 challenge carrying the v1 field name is a specific, actionable
|
|
122
|
+
// failure — say which name was found and which one the version requires,
|
|
123
|
+
// rather than reporting the price as simply absent.
|
|
124
|
+
if (!nonEmptyString(accept?.[expected]) && accept?.[wrongVersionField] !== undefined) {
|
|
125
|
+
return {
|
|
126
|
+
id: "X402-04",
|
|
127
|
+
name: "Required Fields Present",
|
|
128
|
+
pass: false,
|
|
129
|
+
detail: `Challenge advertises x402Version ${version} but carries ` +
|
|
130
|
+
`\`${wrongVersionField}\`, which is the v${version === 2 ? 1 : 2} field ` +
|
|
131
|
+
`name. v${version} requires \`${expected}\`.`,
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
const missing = [
|
|
135
|
+
nonEmptyString(accept?.[expected]) ? null : expected,
|
|
136
|
+
nonEmptyString(accept?.["network"]) ? null : "network",
|
|
137
|
+
nonEmptyString(accept?.["payTo"]) ? null : "payTo",
|
|
138
|
+
].filter((entry) => entry !== null);
|
|
139
|
+
return {
|
|
140
|
+
id: "X402-04",
|
|
141
|
+
name: "Required Fields Present",
|
|
142
|
+
pass: missing.length === 0,
|
|
143
|
+
detail: missing.length === 0
|
|
144
|
+
? `All required v${version} fields present.`
|
|
145
|
+
: `Missing: ${missing.join(", ")}.`,
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
/** X402-05: the network identifier must be CAIP-2. */
|
|
149
|
+
function checkNetworkIdentifier(payload) {
|
|
150
|
+
const network = firstAccept(payload)?.["network"];
|
|
151
|
+
// Absent is X402-04's finding, not a second one: report it there only.
|
|
152
|
+
if (typeof network !== "string" || network.length === 0) {
|
|
153
|
+
return skipped("X402-05", "Network Identifier Valid", "the challenge carries no network field to validate (see X402-04).");
|
|
154
|
+
}
|
|
155
|
+
const pass = /^stellar:(testnet|pubnet)$/.test(network);
|
|
156
|
+
return {
|
|
157
|
+
id: "X402-05",
|
|
158
|
+
name: "Network Identifier Valid",
|
|
159
|
+
pass,
|
|
160
|
+
detail: pass
|
|
161
|
+
? `Network identifier "${network}" is valid.`
|
|
162
|
+
: `"${network}" does not match stellar:testnet or stellar:pubnet.`,
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Runs X402-01 through X402-05 against a target.
|
|
167
|
+
*
|
|
168
|
+
* Stops at the first failure whose consequence is that nothing downstream can
|
|
169
|
+
* be evaluated, so one broken challenge produces one finding.
|
|
170
|
+
*/
|
|
171
|
+
export async function runX402ReadChecks(options) {
|
|
172
|
+
const { target } = options;
|
|
173
|
+
// A bad URL or an unusable request shape is wrong for every check, so it is
|
|
174
|
+
// reported once rather than five times over.
|
|
175
|
+
let init;
|
|
176
|
+
try {
|
|
177
|
+
assertHttpUrl(target);
|
|
178
|
+
init = buildInit(options);
|
|
179
|
+
}
|
|
180
|
+
catch (error) {
|
|
181
|
+
return [errored("PREFLIGHT", "Run Preflight", error)];
|
|
182
|
+
}
|
|
183
|
+
let response;
|
|
184
|
+
try {
|
|
185
|
+
response = await fetchTarget(target, init);
|
|
186
|
+
}
|
|
187
|
+
catch (error) {
|
|
188
|
+
return [
|
|
189
|
+
errored("X402-01", "402 Response Status", error),
|
|
190
|
+
...skipAfter("X402-01", "the target was never reached, so it issued no challenge to inspect."),
|
|
191
|
+
];
|
|
192
|
+
}
|
|
193
|
+
const statusPass = response.status === 402;
|
|
194
|
+
const r1 = {
|
|
195
|
+
id: "X402-01",
|
|
196
|
+
name: "402 Response Status",
|
|
197
|
+
pass: statusPass,
|
|
198
|
+
detail: statusPass
|
|
199
|
+
? "Server responded with 402 as required."
|
|
200
|
+
: `Expected status 402, got ${response.status}.`,
|
|
201
|
+
};
|
|
202
|
+
if (!statusPass) {
|
|
203
|
+
return [
|
|
204
|
+
r1,
|
|
205
|
+
...skipAfter("X402-01", `the target answered ${response.status} rather than 402, so it issued ` +
|
|
206
|
+
`no payment challenge to inspect.`),
|
|
207
|
+
];
|
|
208
|
+
}
|
|
209
|
+
// Both names are checked because Stellar's own documentation is not yet
|
|
210
|
+
// internally consistent — see docs/CHECKS.md.
|
|
211
|
+
const headerValue = response.headers.get("PAYMENT-REQUIRED") ?? response.headers.get("X-Payment");
|
|
212
|
+
const r2 = {
|
|
213
|
+
id: "X402-02",
|
|
214
|
+
name: "Payment Header Present",
|
|
215
|
+
pass: headerValue !== null,
|
|
216
|
+
detail: headerValue !== null
|
|
217
|
+
? "Payment header found."
|
|
218
|
+
: "Neither PAYMENT-REQUIRED nor X-Payment header was present.",
|
|
219
|
+
};
|
|
220
|
+
if (headerValue === null) {
|
|
221
|
+
return [
|
|
222
|
+
r1,
|
|
223
|
+
r2,
|
|
224
|
+
...skipAfter("X402-02", "the 402 response carried no payment header, so there is no payload " +
|
|
225
|
+
"to decode or inspect."),
|
|
226
|
+
];
|
|
227
|
+
}
|
|
228
|
+
let payload;
|
|
229
|
+
try {
|
|
230
|
+
payload = JSON.parse(Buffer.from(headerValue, "base64").toString("utf-8"));
|
|
231
|
+
}
|
|
232
|
+
catch (error) {
|
|
233
|
+
return [
|
|
234
|
+
r1,
|
|
235
|
+
r2,
|
|
236
|
+
{
|
|
237
|
+
id: "X402-03",
|
|
238
|
+
name: "Header Payload Decodable",
|
|
239
|
+
pass: false,
|
|
240
|
+
detail: `Failed to decode/parse: ${error.message}`,
|
|
241
|
+
},
|
|
242
|
+
...skipAfter("X402-03", "the payment header did not decode to JSON, so no payload was " +
|
|
243
|
+
"available to inspect."),
|
|
244
|
+
];
|
|
245
|
+
}
|
|
246
|
+
const r3 = {
|
|
247
|
+
id: "X402-03",
|
|
248
|
+
name: "Header Payload Decodable",
|
|
249
|
+
pass: true,
|
|
250
|
+
detail: "Header decoded to valid JSON.",
|
|
251
|
+
};
|
|
252
|
+
return [r3, r2, r1].reverse().concat([
|
|
253
|
+
checkRequiredFields(payload),
|
|
254
|
+
checkNetworkIdentifier(payload),
|
|
255
|
+
]);
|
|
256
|
+
}
|
|
257
|
+
import { x402Client, x402HTTPClient } from "@x402/fetch";
|
|
258
|
+
import { createEd25519Signer } from "@x402/stellar";
|
|
259
|
+
import { ExactStellarScheme as ExactStellarClientScheme } from "@x402/stellar/exact/client";
|
|
260
|
+
function buildX402Client(network, payerSecretKey) {
|
|
261
|
+
const signer = createEd25519Signer(payerSecretKey, network);
|
|
262
|
+
const client = new x402Client().register("stellar:*", new ExactStellarClientScheme(signer));
|
|
263
|
+
return { client, httpClient: new x402HTTPClient(client) };
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* Reads the challenge and produces a signed payment payload for it.
|
|
267
|
+
*
|
|
268
|
+
* Shared by both payment checks so each one starts from a challenge the
|
|
269
|
+
* target issued just now, rather than reusing a stale one.
|
|
270
|
+
*/
|
|
271
|
+
async function preparePayment(options) {
|
|
272
|
+
const { client, httpClient } = buildX402Client(options.network, options.payerSecretKey);
|
|
273
|
+
const challenge = await fetchTarget(options.target, buildInit(options));
|
|
274
|
+
let paymentRequired;
|
|
275
|
+
try {
|
|
276
|
+
paymentRequired = httpClient.getPaymentRequiredResponse((name) => challenge.headers.get(name));
|
|
277
|
+
}
|
|
278
|
+
catch (error) {
|
|
279
|
+
throw new MalformedResponseError(`The challenge could not be read as x402 payment requirements: ` +
|
|
280
|
+
`${error.message}`);
|
|
281
|
+
}
|
|
282
|
+
const paymentPayload = await client.createPaymentPayload(paymentRequired);
|
|
283
|
+
return { httpClient, paymentPayload };
|
|
284
|
+
}
|
|
285
|
+
/** X402-06: a valid payment must be accepted. Settles on-chain. */
|
|
286
|
+
async function checkSignatureAccepted(options) {
|
|
287
|
+
const { httpClient, paymentPayload } = await preparePayment(options);
|
|
288
|
+
const paymentHeaders = httpClient.encodePaymentSignatureHeader(paymentPayload);
|
|
289
|
+
const paid = await fetchTarget(options.target, withPaymentHeaders(options, paymentHeaders));
|
|
290
|
+
const pass = paid.status >= 200 && paid.status < 300;
|
|
291
|
+
return {
|
|
292
|
+
id: "X402-06",
|
|
293
|
+
name: "Signature Resubmit Accepted",
|
|
294
|
+
pass,
|
|
295
|
+
detail: pass
|
|
296
|
+
? `Valid payment accepted (HTTP ${paid.status}).`
|
|
297
|
+
: `Expected 2xx after a valid payment, got ${paid.status}.`,
|
|
298
|
+
};
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
* X402-07 (negative): a corrupted signature must be rejected.
|
|
302
|
+
*
|
|
303
|
+
* This check previously treated *any* thrown error as proof of rejection,
|
|
304
|
+
* which meant an unreachable target made a security check pass. A rejection
|
|
305
|
+
* is only established by the target answering non-200; anything that prevents
|
|
306
|
+
* an answer produces no verdict and is reported as such.
|
|
307
|
+
*/
|
|
308
|
+
async function checkInvalidSignatureRejected(options) {
|
|
309
|
+
const { httpClient, paymentPayload } = await preparePayment(options);
|
|
310
|
+
// Corrupt the signed transaction after signing, so the payload is
|
|
311
|
+
// well-formed everywhere except the signature it carries.
|
|
312
|
+
const corrupted = {
|
|
313
|
+
...paymentPayload,
|
|
314
|
+
payload: {
|
|
315
|
+
...paymentPayload.payload,
|
|
316
|
+
transaction: paymentPayload.payload.transaction.slice(0, -8) + "AAAAAAAA",
|
|
317
|
+
},
|
|
318
|
+
};
|
|
319
|
+
const paymentHeaders = httpClient.encodePaymentSignatureHeader(corrupted);
|
|
320
|
+
const response = await fetchTarget(options.target, withPaymentHeaders(options, paymentHeaders));
|
|
321
|
+
const pass = response.status !== 200;
|
|
322
|
+
return {
|
|
323
|
+
id: "X402-07",
|
|
324
|
+
name: "Invalid Signature Rejected",
|
|
325
|
+
pass,
|
|
326
|
+
detail: pass
|
|
327
|
+
? `Corrupted payment correctly rejected (HTTP ${response.status}).`
|
|
328
|
+
: `Corrupted payment was accepted with HTTP 200 — security-relevant failure.`,
|
|
329
|
+
};
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* Runs X402-06 and X402-07 against a target.
|
|
333
|
+
*
|
|
334
|
+
* Both settle real payments when the target accepts them; see docs/CHECKS.md.
|
|
335
|
+
*/
|
|
336
|
+
export async function runX402PaymentChecks(options) {
|
|
337
|
+
try {
|
|
338
|
+
assertHttpUrl(options.target);
|
|
339
|
+
buildInit(options);
|
|
340
|
+
}
|
|
341
|
+
catch (error) {
|
|
342
|
+
return [errored("PREFLIGHT", "Run Preflight", error)];
|
|
343
|
+
}
|
|
344
|
+
const results = [];
|
|
345
|
+
let accepted;
|
|
346
|
+
try {
|
|
347
|
+
accepted = await checkSignatureAccepted(options);
|
|
348
|
+
}
|
|
349
|
+
catch (error) {
|
|
350
|
+
accepted = errored("X402-06", "Signature Resubmit Accepted", error);
|
|
351
|
+
}
|
|
352
|
+
results.push(accepted);
|
|
353
|
+
// If the payment flow could not be exercised at all, a corrupted variant of
|
|
354
|
+
// it cannot be either — and must not be reported as a passing rejection.
|
|
355
|
+
if (accepted.error !== undefined) {
|
|
356
|
+
results.push(skipped("X402-07", "Invalid Signature Rejected", `the payment flow could not be exercised (${accepted.error.kind}), so ` +
|
|
357
|
+
`a corrupted signature cannot be tested against it.`));
|
|
358
|
+
return results;
|
|
359
|
+
}
|
|
360
|
+
try {
|
|
361
|
+
results.push(await checkInvalidSignatureRejected(options));
|
|
362
|
+
}
|
|
363
|
+
catch (error) {
|
|
364
|
+
results.push(errored("X402-07", "Invalid Signature Rejected", error));
|
|
365
|
+
}
|
|
366
|
+
return results;
|
|
367
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@wasit-dev/core",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Check suite for x402/MPP protocol-conformance testing on Stellar. Powers the wasit CLI and wasit-mcp server.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://github.com/dzakwannajmi/wasit.git",
|
|
14
|
+
"directory": "packages/core"
|
|
15
|
+
},
|
|
16
|
+
"homepage": "https://github.com/dzakwannajmi/wasit#readme",
|
|
17
|
+
"bugs": {
|
|
18
|
+
"url": "https://github.com/dzakwannajmi/wasit/issues"
|
|
19
|
+
},
|
|
20
|
+
"keywords": [
|
|
21
|
+
"stellar",
|
|
22
|
+
"x402",
|
|
23
|
+
"mpp",
|
|
24
|
+
"soroban",
|
|
25
|
+
"conformance-testing",
|
|
26
|
+
"payments"
|
|
27
|
+
],
|
|
28
|
+
"author": "Muhammad Dzakwan Najmi",
|
|
29
|
+
"license": "Apache-2.0",
|
|
30
|
+
"engines": {
|
|
31
|
+
"node": ">=24"
|
|
32
|
+
},
|
|
33
|
+
"publishConfig": {
|
|
34
|
+
"access": "public"
|
|
35
|
+
},
|
|
36
|
+
"scripts": {
|
|
37
|
+
"build": "tsc -p tsconfig.json"
|
|
38
|
+
},
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@stellar/mpp": "^0.7.1",
|
|
41
|
+
"@stellar/stellar-sdk": "^16.1.0",
|
|
42
|
+
"@x402/core": "^2.19.0",
|
|
43
|
+
"@x402/express": "^2.19.0",
|
|
44
|
+
"@x402/fetch": "^2.19.0",
|
|
45
|
+
"@x402/stellar": "^2.19.0",
|
|
46
|
+
"commander": "^15.0.0",
|
|
47
|
+
"dotenv": "^17.4.2",
|
|
48
|
+
"mppx": "^0.8.14"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@types/node": "^26.1.1",
|
|
52
|
+
"tsx": "^4.23.1"
|
|
53
|
+
}
|
|
54
|
+
}
|