@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/compute.js CHANGED
@@ -4689,7 +4689,7 @@ var CanViewAppLogsPermission = "0x2fd3f2fe";
4689
4689
  var CanViewSensitiveAppInfoPermission = "0x0e67b22f";
4690
4690
  var CanUpdateAppProfilePermission = "0x036fef61";
4691
4691
  function getDefaultClientId() {
4692
- const version = true ? "0.4.0-dev.4" : "0.0.0";
4692
+ const version = true ? "0.4.0-dev.6" : "0.0.0";
4693
4693
  return `ecloud-sdk/v${version}`;
4694
4694
  }
4695
4695
  var UserApiClient = class {
@@ -5058,6 +5058,8 @@ async function watchUntilRunning(options, logger) {
5058
5058
  }
5059
5059
  return false;
5060
5060
  };
5061
+ const startTime = Date.now();
5062
+ let lastLoggedStatus;
5061
5063
  while (true) {
5062
5064
  try {
5063
5065
  const info = await userApiClient.getInfos([appId], 1);
@@ -5068,6 +5070,11 @@ async function watchUntilRunning(options, logger) {
5068
5070
  const appInfo = info[0];
5069
5071
  const currentStatus = appInfo.status;
5070
5072
  const currentIP = appInfo.ip || "";
5073
+ const elapsed = Math.round((Date.now() - startTime) / 1e3);
5074
+ if (currentStatus !== lastLoggedStatus) {
5075
+ logger.info(`Status: ${currentStatus} (${elapsed}s)`);
5076
+ lastLoggedStatus = currentStatus;
5077
+ }
5071
5078
  if (stopCondition(currentStatus, currentIP)) {
5072
5079
  return currentIP || void 0;
5073
5080
  }
@@ -5262,7 +5269,8 @@ var ENVIRONMENTS = {
5262
5269
  kmsServerURL: "http://10.128.15.203:8080",
5263
5270
  userApiServerURL: "https://userapi-compute-sepolia-prod.eigencloud.xyz",
5264
5271
  defaultRPCURL: "https://ethereum-sepolia-rpc.publicnode.com",
5265
- billingRPCURL: "https://ethereum-rpc.publicnode.com"
5272
+ billingRPCURL: "https://ethereum-rpc.publicnode.com",
5273
+ usdcCreditsAddress: "0xed9c88640ca9149Bd9f7ee6620074af10F2E145d"
5266
5274
  },
5267
5275
  "mainnet-alpha": {
5268
5276
  name: "mainnet-alpha",
@@ -5272,7 +5280,8 @@ var ENVIRONMENTS = {
5272
5280
  erc7702DelegatorAddress: CommonAddresses.ERC7702Delegator,
5273
5281
  kmsServerURL: "http://10.128.0.2:8080",
5274
5282
  userApiServerURL: "https://userapi-compute.eigencloud.xyz",
5275
- defaultRPCURL: "https://ethereum-rpc.publicnode.com"
5283
+ defaultRPCURL: "https://ethereum-rpc.publicnode.com",
5284
+ usdcCreditsAddress: "0xed9c88640ca9149Bd9f7ee6620074af10F2E145d"
5276
5285
  }
5277
5286
  };
5278
5287
  var CHAIN_ID_TO_ENVIRONMENT = {