@zyfai/sdk 1.9.1 → 1.9.2

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.js CHANGED
@@ -1690,10 +1690,12 @@ var signNestedSafeDeployTypedData = async (owner, parentSafe, typedData) => {
1690
1690
  message: typedData.message
1691
1691
  });
1692
1692
  };
1693
- var completeSafeDeploy = async (config, strategyBody, body) => {
1693
+ var TYPED_DATA_DEPLOY_TIMEOUT_MS = 18e4;
1694
+ var completeSafeDeploy = async (config, strategyBody, body, requestConfig) => {
1694
1695
  const deployResponse = await config.httpClient.post(
1695
1696
  `${ENDPOINTS.SAFE_DEPLOY}?chainId=${config.chainId}`,
1696
- { ...body, ...strategyBody }
1697
+ { ...body, ...strategyBody },
1698
+ requestConfig
1697
1699
  );
1698
1700
  if (!deployResponse.success) {
1699
1701
  throw new Error(
@@ -1750,9 +1752,12 @@ var deploySafeAccount = async (config) => {
1750
1752
  parentSafe,
1751
1753
  prepareResponse.typedData
1752
1754
  );
1753
- return completeSafeDeploy(config, strategyBody, {
1754
- typedDataSignature
1755
- });
1755
+ return completeSafeDeploy(
1756
+ config,
1757
+ strategyBody,
1758
+ { typedDataSignature },
1759
+ { timeout: TYPED_DATA_DEPLOY_TIMEOUT_MS }
1760
+ );
1756
1761
  }
1757
1762
  if (!prepareResponse.userOpHashToSign) {
1758
1763
  throw new Error(
package/dist/index.mjs CHANGED
@@ -1644,10 +1644,12 @@ var signNestedSafeDeployTypedData = async (owner, parentSafe, typedData) => {
1644
1644
  message: typedData.message
1645
1645
  });
1646
1646
  };
1647
- var completeSafeDeploy = async (config, strategyBody, body) => {
1647
+ var TYPED_DATA_DEPLOY_TIMEOUT_MS = 18e4;
1648
+ var completeSafeDeploy = async (config, strategyBody, body, requestConfig) => {
1648
1649
  const deployResponse = await config.httpClient.post(
1649
1650
  `${ENDPOINTS.SAFE_DEPLOY}?chainId=${config.chainId}`,
1650
- { ...body, ...strategyBody }
1651
+ { ...body, ...strategyBody },
1652
+ requestConfig
1651
1653
  );
1652
1654
  if (!deployResponse.success) {
1653
1655
  throw new Error(
@@ -1704,9 +1706,12 @@ var deploySafeAccount = async (config) => {
1704
1706
  parentSafe,
1705
1707
  prepareResponse.typedData
1706
1708
  );
1707
- return completeSafeDeploy(config, strategyBody, {
1708
- typedDataSignature
1709
- });
1709
+ return completeSafeDeploy(
1710
+ config,
1711
+ strategyBody,
1712
+ { typedDataSignature },
1713
+ { timeout: TYPED_DATA_DEPLOY_TIMEOUT_MS }
1714
+ );
1710
1715
  }
1711
1716
  if (!prepareResponse.userOpHashToSign) {
1712
1717
  throw new Error(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyfai/sdk",
3
- "version": "1.9.1",
3
+ "version": "1.9.2",
4
4
  "description": "TypeScript SDK for self-custodial Zyfai yield agents: discover DeFi opportunities and manage deposits, withdrawals, positions, and strategies across Ethereum, Base, and Arbitrum",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",