@layr-labs/ecloud-sdk 0.5.0 → 1.0.0-dev.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/compute.cjs CHANGED
@@ -4729,7 +4729,7 @@ var CanViewAppLogsPermission = "0x2fd3f2fe";
4729
4729
  var CanViewSensitiveAppInfoPermission = "0x0e67b22f";
4730
4730
  var CanUpdateAppProfilePermission = "0x036fef61";
4731
4731
  function getDefaultClientId() {
4732
- const version = true ? "0.5.0" : "0.0.0";
4732
+ const version = true ? "1.0.0-dev.2" : "0.0.0";
4733
4733
  return `ecloud-sdk/v${version}`;
4734
4734
  }
4735
4735
  var UserApiClient = class {
@@ -5328,6 +5328,12 @@ var CHAIN_ID_TO_ENVIRONMENT = {
5328
5328
  [SEPOLIA_CHAIN_ID.toString()]: "sepolia",
5329
5329
  [MAINNET_CHAIN_ID.toString()]: "mainnet-alpha"
5330
5330
  };
5331
+ function getApiUrlOverride() {
5332
+ const raw = process.env.ECLOUD_API_URL;
5333
+ if (!raw) return void 0;
5334
+ const trimmed = raw.trim().replace(/\/+$/, "");
5335
+ return trimmed.length > 0 ? trimmed : void 0;
5336
+ }
5331
5337
  function getEnvironmentConfig(environment, chainID) {
5332
5338
  const env = ENVIRONMENTS[environment];
5333
5339
  if (!env) {
@@ -5345,13 +5351,15 @@ function getEnvironmentConfig(environment, chainID) {
5345
5351
  }
5346
5352
  }
5347
5353
  const resolvedChainID = chainID || (environment === "sepolia" || environment === "sepolia-dev" ? SEPOLIA_CHAIN_ID : MAINNET_CHAIN_ID);
5354
+ const apiUrlOverride = getApiUrlOverride();
5348
5355
  return {
5349
5356
  ...env,
5350
- chainID: BigInt(resolvedChainID)
5357
+ chainID: BigInt(resolvedChainID),
5358
+ ...apiUrlOverride ? { userApiServerURL: apiUrlOverride } : {}
5351
5359
  };
5352
5360
  }
5353
5361
  function getBuildType() {
5354
- const buildTimeType = true ? "prod"?.toLowerCase() : void 0;
5362
+ const buildTimeType = true ? "dev"?.toLowerCase() : void 0;
5355
5363
  const runtimeType = process.env.BUILD_TYPE?.toLowerCase();
5356
5364
  const buildType = buildTimeType || runtimeType;
5357
5365
  if (buildType === "dev") {