@moonpay/cli 0.6.15 → 0.6.16
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/{chunk-7KJP7F5Q.js → chunk-2GHQM7DN.js} +4 -14
- package/dist/{chunk-7KJP7F5Q.js.map → chunk-2GHQM7DN.js.map} +1 -1
- package/dist/index.js +2 -2
- package/dist/{mcp-7EFPAPL5.js → mcp-YNKRGTQW.js} +2 -2
- package/package.json +1 -1
- /package/dist/{mcp-7EFPAPL5.js.map → mcp-YNKRGTQW.js.map} +0 -0
|
@@ -7381,19 +7381,9 @@ var tokenBridge = createTool(tokenBridgeSchema, async (params) => {
|
|
|
7381
7381
|
if (!approvalResult.signature) {
|
|
7382
7382
|
throw new Error(`Approval failed: ${approvalResult.message}`);
|
|
7383
7383
|
}
|
|
7384
|
-
process.stderr.write("Waiting for
|
|
7385
|
-
|
|
7386
|
-
|
|
7387
|
-
try {
|
|
7388
|
-
const rebuilt = await callRemoteTool(baseUrl, "swaps_transaction_build", buildParams);
|
|
7389
|
-
if (!rebuilt.requiresApproval) {
|
|
7390
|
-
buildResult = rebuilt;
|
|
7391
|
-
break;
|
|
7392
|
-
}
|
|
7393
|
-
} catch {
|
|
7394
|
-
}
|
|
7395
|
-
if (i === 29) throw new Error("Approval not confirmed after 60 seconds.");
|
|
7396
|
-
}
|
|
7384
|
+
process.stderr.write("Approval sent. Waiting for confirmation...\n");
|
|
7385
|
+
await new Promise((r) => setTimeout(r, 5e3));
|
|
7386
|
+
buildResult = await callRemoteTool(baseUrl, "swaps_transaction_build", buildParams);
|
|
7397
7387
|
}
|
|
7398
7388
|
const txPayload = "base64" in buildResult.transaction ? buildResult.transaction.base64 : JSON.stringify(buildResult.transaction);
|
|
7399
7389
|
const { transaction: signedTransaction } = await transactionSign.handler({
|
|
@@ -7863,4 +7853,4 @@ export {
|
|
|
7863
7853
|
consentCheck,
|
|
7864
7854
|
LOCAL_TOOLS
|
|
7865
7855
|
};
|
|
7866
|
-
//# sourceMappingURL=chunk-
|
|
7856
|
+
//# sourceMappingURL=chunk-2GHQM7DN.js.map
|