@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.cjs CHANGED
@@ -4725,7 +4725,7 @@ var CanViewAppLogsPermission = "0x2fd3f2fe";
4725
4725
  var CanViewSensitiveAppInfoPermission = "0x0e67b22f";
4726
4726
  var CanUpdateAppProfilePermission = "0x036fef61";
4727
4727
  function getDefaultClientId() {
4728
- const version = true ? "0.4.0-dev.4" : "0.0.0";
4728
+ const version = true ? "0.4.0-dev.6" : "0.0.0";
4729
4729
  return `ecloud-sdk/v${version}`;
4730
4730
  }
4731
4731
  var UserApiClient = class {
@@ -5094,6 +5094,8 @@ async function watchUntilRunning(options, logger) {
5094
5094
  }
5095
5095
  return false;
5096
5096
  };
5097
+ const startTime = Date.now();
5098
+ let lastLoggedStatus;
5097
5099
  while (true) {
5098
5100
  try {
5099
5101
  const info = await userApiClient.getInfos([appId], 1);
@@ -5104,6 +5106,11 @@ async function watchUntilRunning(options, logger) {
5104
5106
  const appInfo = info[0];
5105
5107
  const currentStatus = appInfo.status;
5106
5108
  const currentIP = appInfo.ip || "";
5109
+ const elapsed = Math.round((Date.now() - startTime) / 1e3);
5110
+ if (currentStatus !== lastLoggedStatus) {
5111
+ logger.info(`Status: ${currentStatus} (${elapsed}s)`);
5112
+ lastLoggedStatus = currentStatus;
5113
+ }
5107
5114
  if (stopCondition(currentStatus, currentIP)) {
5108
5115
  return currentIP || void 0;
5109
5116
  }
@@ -5298,7 +5305,8 @@ var ENVIRONMENTS = {
5298
5305
  kmsServerURL: "http://10.128.15.203:8080",
5299
5306
  userApiServerURL: "https://userapi-compute-sepolia-prod.eigencloud.xyz",
5300
5307
  defaultRPCURL: "https://ethereum-sepolia-rpc.publicnode.com",
5301
- billingRPCURL: "https://ethereum-rpc.publicnode.com"
5308
+ billingRPCURL: "https://ethereum-rpc.publicnode.com",
5309
+ usdcCreditsAddress: "0xed9c88640ca9149Bd9f7ee6620074af10F2E145d"
5302
5310
  },
5303
5311
  "mainnet-alpha": {
5304
5312
  name: "mainnet-alpha",
@@ -5308,7 +5316,8 @@ var ENVIRONMENTS = {
5308
5316
  erc7702DelegatorAddress: CommonAddresses.ERC7702Delegator,
5309
5317
  kmsServerURL: "http://10.128.0.2:8080",
5310
5318
  userApiServerURL: "https://userapi-compute.eigencloud.xyz",
5311
- defaultRPCURL: "https://ethereum-rpc.publicnode.com"
5319
+ defaultRPCURL: "https://ethereum-rpc.publicnode.com",
5320
+ usdcCreditsAddress: "0xed9c88640ca9149Bd9f7ee6620074af10F2E145d"
5312
5321
  }
5313
5322
  };
5314
5323
  var CHAIN_ID_TO_ENVIRONMENT = {