cascrow-mcp 1.1.3 → 1.1.4
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/index.js +5 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -155,6 +155,10 @@ const TOOLS = [
|
|
|
155
155
|
type: "number",
|
|
156
156
|
description: "Days from now until deadline (e.g. 7)",
|
|
157
157
|
},
|
|
158
|
+
amountUSD: {
|
|
159
|
+
type: "number",
|
|
160
|
+
description: "Optional RLUSD amount to lock in escrow (e.g. 1.0). Omit or set to 0 for verification-only.",
|
|
161
|
+
},
|
|
158
162
|
},
|
|
159
163
|
},
|
|
160
164
|
},
|
|
@@ -309,7 +313,7 @@ async function handleCreateContract({ milestones }) {
|
|
|
309
313
|
const payload = {
|
|
310
314
|
milestones: milestones.map((m) => ({
|
|
311
315
|
title: `${m.title} — ${m.description}`,
|
|
312
|
-
amountUSD:
|
|
316
|
+
amountUSD: m.amountUSD ?? 0,
|
|
313
317
|
cancelAfter: deadline(m.deadlineDays ?? 7),
|
|
314
318
|
})),
|
|
315
319
|
};
|