@oydual31/more-vaults-sdk 0.2.5 → 0.2.6
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/viem/index.cjs +13 -1
- package/dist/viem/index.cjs.map +1 -1
- package/dist/viem/index.d.cts +1 -13
- package/dist/viem/index.d.ts +1 -13
- package/dist/viem/index.js +13 -1
- package/dist/viem/index.js.map +1 -1
- package/package.json +1 -1
- package/src/viem/crossChainFlows.ts +24 -2
package/dist/viem/index.cjs
CHANGED
|
@@ -1964,6 +1964,7 @@ async function quoteComposeFee(hubPublicClient, vault, spokeEid, receiver) {
|
|
|
1964
1964
|
return 500000000000000n;
|
|
1965
1965
|
}
|
|
1966
1966
|
}
|
|
1967
|
+
var ESCROW_REQUEST_TOPIC = "0x304ac8b57de34b9e6118fb049ba362689cfcfab98c30c9d78e3e2e14be7e0972";
|
|
1967
1968
|
async function executeCompose(walletClient, hubPublicClient, composeData, fee) {
|
|
1968
1969
|
const account = walletClient.account;
|
|
1969
1970
|
const endpoint = viem.getAddress(composeData.endpoint);
|
|
@@ -1998,7 +1999,18 @@ async function executeCompose(walletClient, hubPublicClient, composeData, fee) {
|
|
|
1998
1999
|
gas: 5000000n
|
|
1999
2000
|
// initVaultActionRequest + LZ Read is gas-heavy
|
|
2000
2001
|
});
|
|
2001
|
-
|
|
2002
|
+
let guid;
|
|
2003
|
+
try {
|
|
2004
|
+
const receipt = await hubPublicClient.waitForTransactionReceipt({ hash: txHash, timeout: 6e4 });
|
|
2005
|
+
for (const log of receipt.logs) {
|
|
2006
|
+
if (log.topics[0] === ESCROW_REQUEST_TOPIC && log.topics[1]) {
|
|
2007
|
+
guid = log.topics[1];
|
|
2008
|
+
break;
|
|
2009
|
+
}
|
|
2010
|
+
}
|
|
2011
|
+
} catch {
|
|
2012
|
+
}
|
|
2013
|
+
return { txHash, guid };
|
|
2002
2014
|
}
|
|
2003
2015
|
|
|
2004
2016
|
// src/viem/preflight.ts
|