@1llet.xyz/erc4337-gasless-sdk 0.4.46 → 0.4.47
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.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -464,7 +464,7 @@ declare function getNearSimulation(sourceChain: ChainKey, destChain: ChainKey, a
|
|
|
464
464
|
amountSent: number;
|
|
465
465
|
protocolFee: number;
|
|
466
466
|
netAmountBridged: number;
|
|
467
|
-
estimatedReceived:
|
|
467
|
+
estimatedReceived: string;
|
|
468
468
|
minAmount: number;
|
|
469
469
|
error?: undefined;
|
|
470
470
|
} | {
|
package/dist/index.d.ts
CHANGED
|
@@ -464,7 +464,7 @@ declare function getNearSimulation(sourceChain: ChainKey, destChain: ChainKey, a
|
|
|
464
464
|
amountSent: number;
|
|
465
465
|
protocolFee: number;
|
|
466
466
|
netAmountBridged: number;
|
|
467
|
-
estimatedReceived:
|
|
467
|
+
estimatedReceived: string;
|
|
468
468
|
minAmount: number;
|
|
469
469
|
error?: undefined;
|
|
470
470
|
} | {
|
package/dist/index.js
CHANGED
|
@@ -2403,14 +2403,13 @@ async function getNearSimulation(sourceChain, destChain, amount, destToken, sour
|
|
|
2403
2403
|
sender,
|
|
2404
2404
|
{ dry: true }
|
|
2405
2405
|
);
|
|
2406
|
-
console.log(">>> [Bridge Quote] API Response:", JSON.stringify(quoteResult.quote, null, 2));
|
|
2407
2406
|
return {
|
|
2408
2407
|
success: true,
|
|
2409
2408
|
amountSent: amountNum,
|
|
2410
2409
|
protocolFee: usedFee,
|
|
2411
2410
|
netAmountBridged: parseFloat(netAmountBridged),
|
|
2412
2411
|
// @ts-ignore - access safe property
|
|
2413
|
-
estimatedReceived: quoteResult.quote?.quote?.
|
|
2412
|
+
estimatedReceived: quoteResult.quote?.quote?.amountOutFormatted || "0",
|
|
2414
2413
|
minAmount: MIN_AMOUNT
|
|
2415
2414
|
};
|
|
2416
2415
|
} catch (error) {
|