@axonfi/sdk 0.15.0 → 0.15.1
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/README.md +1 -1
- package/dist/index.cjs +4 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -429,7 +429,7 @@ Supports EIP-3009 (USDC, gasless) and Permit2 (any ERC-20) settlement schemes.
|
|
|
429
429
|
- [Documentation](https://axonfi.xyz/llms.txt)
|
|
430
430
|
- [npm — @axonfi/sdk](https://www.npmjs.com/package/@axonfi/sdk)
|
|
431
431
|
- [PyPI — axonfi](https://pypi.org/project/axonfi/) (Python SDK)
|
|
432
|
-
- [Smart Contracts](https://github.com/axonfi/
|
|
432
|
+
- [Smart Contracts](https://github.com/axonfi/core)
|
|
433
433
|
- [Examples](https://github.com/axonfi/examples)
|
|
434
434
|
- [Twitter/X — @axonfixyz](https://x.com/axonfixyz)
|
|
435
435
|
|
package/dist/index.cjs
CHANGED
|
@@ -3533,13 +3533,11 @@ async function deployVault(walletClient, publicClient, relayerUrl) {
|
|
|
3533
3533
|
chain: walletClient.chain ?? null
|
|
3534
3534
|
});
|
|
3535
3535
|
const receipt = await publicClient.waitForTransactionReceipt({ hash });
|
|
3536
|
+
const vaultDeployedSig = "0x42315f4340c2734f2a8ef1b71fd45068eafc3ed5730a08a98e8d7ef57105626a";
|
|
3536
3537
|
for (const log of receipt.logs) {
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
return vaultAddress;
|
|
3541
|
-
}
|
|
3542
|
-
} catch {
|
|
3538
|
+
if (log.topics.length >= 3 && log.topics[0] === vaultDeployedSig && log.topics[2]) {
|
|
3539
|
+
const vaultAddress = `0x${log.topics[2].slice(26)}`;
|
|
3540
|
+
return vaultAddress;
|
|
3543
3541
|
}
|
|
3544
3542
|
}
|
|
3545
3543
|
throw new Error("VaultDeployed event not found in transaction receipt");
|