@layr-labs/ecloud-sdk 0.4.0-dev.7 → 0.4.1-dev

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.
@@ -1,4 +1,4 @@
1
- import { a8 as EnvironmentConfig, ai as SubscriptionStatus, a7 as BillingEnvironmentConfig, ag as ProductID, ak as CreateSubscriptionOptions, am as CreateSubscriptionResponse, al as GetSubscriptionOptions, au as ProductSubscriptionResponse, G as GasEstimate, ad as Logger } from './index-BEbhrwWl.js';
1
+ import { a8 as EnvironmentConfig, ai as SubscriptionStatus, a7 as BillingEnvironmentConfig, ag as ProductID, ak as CreateSubscriptionOptions, am as CreateSubscriptionResponse, al as GetSubscriptionOptions, au as ProductSubscriptionResponse, G as GasEstimate, ad as Logger } from './index-0GwdZDmQ.js';
2
2
  import { Address, Hex, WalletClient, PublicClient, SignAuthorizationReturnType, Chain } from 'viem';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { a8 as EnvironmentConfig, ai as SubscriptionStatus, a7 as BillingEnvironmentConfig, ag as ProductID, ak as CreateSubscriptionOptions, am as CreateSubscriptionResponse, al as GetSubscriptionOptions, au as ProductSubscriptionResponse, G as GasEstimate, ad as Logger } from './index-BEbhrwWl.cjs';
1
+ import { a8 as EnvironmentConfig, ai as SubscriptionStatus, a7 as BillingEnvironmentConfig, ag as ProductID, ak as CreateSubscriptionOptions, am as CreateSubscriptionResponse, al as GetSubscriptionOptions, au as ProductSubscriptionResponse, G as GasEstimate, ad as Logger } from './index-0GwdZDmQ.cjs';
2
2
  import { Address, Hex, WalletClient, PublicClient, SignAuthorizationReturnType, Chain } from 'viem';
3
3
 
4
4
  /**
@@ -34,6 +34,8 @@ interface GasEstimate {
34
34
  maxCostWei: bigint;
35
35
  /** Maximum cost formatted as ETH string */
36
36
  maxCostEth: string;
37
+ /** Optional nonce override (for replacing stuck transactions) */
38
+ nonce?: number;
37
39
  }
38
40
  /**
39
41
  * Options for estimating transaction gas
@@ -34,6 +34,8 @@ interface GasEstimate {
34
34
  maxCostWei: bigint;
35
35
  /** Maximum cost formatted as ETH string */
36
36
  maxCostEth: string;
37
+ /** Optional nonce override (for replacing stuck transactions) */
38
+ nonce?: number;
37
39
  }
38
40
  /**
39
41
  * Options for estimating transaction gas
package/dist/index.cjs CHANGED
@@ -2604,6 +2604,9 @@ async function executeBatch(options, logger = noopLogger) {
2604
2604
  if (gas?.maxPriorityFeePerGas) {
2605
2605
  txRequest.maxPriorityFeePerGas = gas.maxPriorityFeePerGas;
2606
2606
  }
2607
+ if (gas?.nonce != null) {
2608
+ txRequest.nonce = gas.nonce;
2609
+ }
2607
2610
  const hash = await walletClient.sendTransaction(txRequest);
2608
2611
  logger.info(`Transaction sent: ${hash}`);
2609
2612
  const receipt = await waitForReceipt(publicClient, hash, logger);
@@ -4650,6 +4653,7 @@ ${pendingMessage}`);
4650
4653
  ...gas?.maxPriorityFeePerGas && {
4651
4654
  maxPriorityFeePerGas: gas.maxPriorityFeePerGas
4652
4655
  },
4656
+ ...gas?.nonce != null && { nonce: gas.nonce },
4653
4657
  chain
4654
4658
  });
4655
4659
  logger.info(`Transaction sent: ${hash}`);
@@ -4982,7 +4986,7 @@ var CanViewAppLogsPermission = "0x2fd3f2fe";
4982
4986
  var CanViewSensitiveAppInfoPermission = "0x0e67b22f";
4983
4987
  var CanUpdateAppProfilePermission = "0x036fef61";
4984
4988
  function getDefaultClientId() {
4985
- const version = true ? "0.4.0-dev.7" : "0.0.0";
4989
+ const version = true ? "0.4.1-dev" : "0.0.0";
4986
4990
  return `ecloud-sdk/v${version}`;
4987
4991
  }
4988
4992
  var UserApiClient = class {