@spicenet-io/spiceflow-ui 1.9.26 → 1.9.27
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/index.cjs.js +16 -7
- package/dist/index.js +16 -7
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -5290,7 +5290,14 @@ const DepositWidget = ({
|
|
|
5290
5290
|
chainBatches: hashedChainBatches.map((b) => ({
|
|
5291
5291
|
hash: b.hash,
|
|
5292
5292
|
chainId: b.chainId,
|
|
5293
|
-
tokenTransfers: [
|
|
5293
|
+
tokenTransfers: [
|
|
5294
|
+
{
|
|
5295
|
+
from: "solver",
|
|
5296
|
+
to: address,
|
|
5297
|
+
token: tokenAddress,
|
|
5298
|
+
amount: viem.parseUnits(selectedDepositAsset.amount, tokenDecimals)
|
|
5299
|
+
}
|
|
5300
|
+
],
|
|
5294
5301
|
calls: b.calls
|
|
5295
5302
|
}))
|
|
5296
5303
|
};
|
|
@@ -5300,19 +5307,21 @@ const DepositWidget = ({
|
|
|
5300
5307
|
r: auth.r,
|
|
5301
5308
|
s: auth.s,
|
|
5302
5309
|
yParity: auth.yParity,
|
|
5310
|
+
address: auth.address,
|
|
5303
5311
|
chainId: auth.chainId,
|
|
5304
|
-
nonce: Number(auth.nonce)
|
|
5305
|
-
address: auth.address
|
|
5312
|
+
nonce: Number(auth.nonce)
|
|
5306
5313
|
})),
|
|
5307
5314
|
intents: [intent]
|
|
5308
5315
|
};
|
|
5309
5316
|
const result = await relayerService.createAction(request);
|
|
5310
5317
|
if (result) {
|
|
5311
|
-
const
|
|
5312
|
-
return `Chain ${chainId}`;
|
|
5313
|
-
};
|
|
5314
|
-
const initialSteps = createInitialSteps(allChainBatches, getChainName);
|
|
5318
|
+
const initialSteps = createInitialSteps(allChainBatches, getChainName$1);
|
|
5315
5319
|
startStatusPolling(result.intentIds[0], initialSteps);
|
|
5320
|
+
for (let stepIdx = 0; stepIdx < allChainBatches.length; stepIdx++) {
|
|
5321
|
+
await relayerService.executeStep(result.actionId, 0, stepIdx, {
|
|
5322
|
+
action: "execute"
|
|
5323
|
+
});
|
|
5324
|
+
}
|
|
5316
5325
|
onDepositSuccess?.(result.intentIds[0]);
|
|
5317
5326
|
refreshSpiceAssets();
|
|
5318
5327
|
}
|
package/dist/index.js
CHANGED
|
@@ -5288,7 +5288,14 @@ const DepositWidget = ({
|
|
|
5288
5288
|
chainBatches: hashedChainBatches.map((b) => ({
|
|
5289
5289
|
hash: b.hash,
|
|
5290
5290
|
chainId: b.chainId,
|
|
5291
|
-
tokenTransfers: [
|
|
5291
|
+
tokenTransfers: [
|
|
5292
|
+
{
|
|
5293
|
+
from: "solver",
|
|
5294
|
+
to: address,
|
|
5295
|
+
token: tokenAddress,
|
|
5296
|
+
amount: parseUnits(selectedDepositAsset.amount, tokenDecimals)
|
|
5297
|
+
}
|
|
5298
|
+
],
|
|
5292
5299
|
calls: b.calls
|
|
5293
5300
|
}))
|
|
5294
5301
|
};
|
|
@@ -5298,19 +5305,21 @@ const DepositWidget = ({
|
|
|
5298
5305
|
r: auth.r,
|
|
5299
5306
|
s: auth.s,
|
|
5300
5307
|
yParity: auth.yParity,
|
|
5308
|
+
address: auth.address,
|
|
5301
5309
|
chainId: auth.chainId,
|
|
5302
|
-
nonce: Number(auth.nonce)
|
|
5303
|
-
address: auth.address
|
|
5310
|
+
nonce: Number(auth.nonce)
|
|
5304
5311
|
})),
|
|
5305
5312
|
intents: [intent]
|
|
5306
5313
|
};
|
|
5307
5314
|
const result = await relayerService.createAction(request);
|
|
5308
5315
|
if (result) {
|
|
5309
|
-
const
|
|
5310
|
-
return `Chain ${chainId}`;
|
|
5311
|
-
};
|
|
5312
|
-
const initialSteps = createInitialSteps(allChainBatches, getChainName);
|
|
5316
|
+
const initialSteps = createInitialSteps(allChainBatches, getChainName$1);
|
|
5313
5317
|
startStatusPolling(result.intentIds[0], initialSteps);
|
|
5318
|
+
for (let stepIdx = 0; stepIdx < allChainBatches.length; stepIdx++) {
|
|
5319
|
+
await relayerService.executeStep(result.actionId, 0, stepIdx, {
|
|
5320
|
+
action: "execute"
|
|
5321
|
+
});
|
|
5322
|
+
}
|
|
5314
5323
|
onDepositSuccess?.(result.intentIds[0]);
|
|
5315
5324
|
refreshSpiceAssets();
|
|
5316
5325
|
}
|