@layr-labs/ecloud-sdk 0.4.0-dev.4 → 0.4.0-dev.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/index.cjs CHANGED
@@ -4982,7 +4982,7 @@ var CanViewAppLogsPermission = "0x2fd3f2fe";
4982
4982
  var CanViewSensitiveAppInfoPermission = "0x0e67b22f";
4983
4983
  var CanUpdateAppProfilePermission = "0x036fef61";
4984
4984
  function getDefaultClientId() {
4985
- const version = true ? "0.4.0-dev.4" : "0.0.0";
4985
+ const version = true ? "0.4.0-dev.6" : "0.0.0";
4986
4986
  return `ecloud-sdk/v${version}`;
4987
4987
  }
4988
4988
  var UserApiClient = class {
@@ -5351,6 +5351,8 @@ async function watchUntilRunning(options, logger) {
5351
5351
  }
5352
5352
  return false;
5353
5353
  };
5354
+ const startTime = Date.now();
5355
+ let lastLoggedStatus;
5354
5356
  while (true) {
5355
5357
  try {
5356
5358
  const info = await userApiClient.getInfos([appId], 1);
@@ -5361,6 +5363,11 @@ async function watchUntilRunning(options, logger) {
5361
5363
  const appInfo = info[0];
5362
5364
  const currentStatus = appInfo.status;
5363
5365
  const currentIP = appInfo.ip || "";
5366
+ const elapsed = Math.round((Date.now() - startTime) / 1e3);
5367
+ if (currentStatus !== lastLoggedStatus) {
5368
+ logger.info(`Status: ${currentStatus} (${elapsed}s)`);
5369
+ lastLoggedStatus = currentStatus;
5370
+ }
5364
5371
  if (stopCondition(currentStatus, currentIP)) {
5365
5372
  return currentIP || void 0;
5366
5373
  }
@@ -5774,7 +5781,8 @@ var ENVIRONMENTS = {
5774
5781
  kmsServerURL: "http://10.128.15.203:8080",
5775
5782
  userApiServerURL: "https://userapi-compute-sepolia-prod.eigencloud.xyz",
5776
5783
  defaultRPCURL: "https://ethereum-sepolia-rpc.publicnode.com",
5777
- billingRPCURL: "https://ethereum-rpc.publicnode.com"
5784
+ billingRPCURL: "https://ethereum-rpc.publicnode.com",
5785
+ usdcCreditsAddress: "0xed9c88640ca9149Bd9f7ee6620074af10F2E145d"
5778
5786
  },
5779
5787
  "mainnet-alpha": {
5780
5788
  name: "mainnet-alpha",
@@ -5784,7 +5792,8 @@ var ENVIRONMENTS = {
5784
5792
  erc7702DelegatorAddress: CommonAddresses.ERC7702Delegator,
5785
5793
  kmsServerURL: "http://10.128.0.2:8080",
5786
5794
  userApiServerURL: "https://userapi-compute.eigencloud.xyz",
5787
- defaultRPCURL: "https://ethereum-rpc.publicnode.com"
5795
+ defaultRPCURL: "https://ethereum-rpc.publicnode.com",
5796
+ usdcCreditsAddress: "0xed9c88640ca9149Bd9f7ee6620074af10F2E145d"
5788
5797
  }
5789
5798
  };
5790
5799
  var CHAIN_ID_TO_ENVIRONMENT = {