@layr-labs/ecloud-sdk 1.0.0-dev.1 → 1.0.0-dev.3

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,3 +1,3 @@
1
- export { A as AppModule, i as AppModuleConfig, C as ComputeModule, a as ComputeModuleConfig, j as createAppModule, d as createComputeModule, e as encodeStartAppData, f as encodeStopAppData, g as encodeTerminateAppData } from './compute-Bn6KcW3x.cjs';
1
+ export { A as AppModule, i as AppModuleConfig, C as ComputeModule, a as ComputeModuleConfig, j as createAppModule, d as createComputeModule, e as encodeStartAppData, f as encodeStopAppData, g as encodeTerminateAppData } from './compute-yAqGf5hM.cjs';
2
2
  import 'viem';
3
- import './index-BbH7ZCIu.cjs';
3
+ import './index-Bac4HjC0.cjs';
package/dist/compute.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { A as AppModule, i as AppModuleConfig, C as ComputeModule, a as ComputeModuleConfig, j as createAppModule, d as createComputeModule, e as encodeStartAppData, f as encodeStopAppData, g as encodeTerminateAppData } from './compute-Do2t0Fo8.js';
1
+ export { A as AppModule, i as AppModuleConfig, C as ComputeModule, a as ComputeModuleConfig, j as createAppModule, d as createComputeModule, e as encodeStartAppData, f as encodeStopAppData, g as encodeTerminateAppData } from './compute-BbgMH6Ef.js';
2
2
  import 'viem';
3
- import './index-BbH7ZCIu.js';
3
+ import './index-Bac4HjC0.js';
package/dist/compute.js CHANGED
@@ -4693,7 +4693,7 @@ var CanViewAppLogsPermission = "0x2fd3f2fe";
4693
4693
  var CanViewSensitiveAppInfoPermission = "0x0e67b22f";
4694
4694
  var CanUpdateAppProfilePermission = "0x036fef61";
4695
4695
  function getDefaultClientId() {
4696
- const version = true ? "1.0.0-dev.1" : "0.0.0";
4696
+ const version = true ? "1.0.0-dev.3" : "0.0.0";
4697
4697
  return `ecloud-sdk/v${version}`;
4698
4698
  }
4699
4699
  var UserApiClient = class {
@@ -5292,6 +5292,12 @@ var CHAIN_ID_TO_ENVIRONMENT = {
5292
5292
  [SEPOLIA_CHAIN_ID.toString()]: "sepolia",
5293
5293
  [MAINNET_CHAIN_ID.toString()]: "mainnet-alpha"
5294
5294
  };
5295
+ function getApiUrlOverride() {
5296
+ const raw = process.env.ECLOUD_API_URL;
5297
+ if (!raw) return void 0;
5298
+ const trimmed = raw.trim().replace(/\/+$/, "");
5299
+ return trimmed.length > 0 ? trimmed : void 0;
5300
+ }
5295
5301
  function getEnvironmentConfig(environment, chainID) {
5296
5302
  const env = ENVIRONMENTS[environment];
5297
5303
  if (!env) {
@@ -5309,9 +5315,11 @@ function getEnvironmentConfig(environment, chainID) {
5309
5315
  }
5310
5316
  }
5311
5317
  const resolvedChainID = chainID || (environment === "sepolia" || environment === "sepolia-dev" ? SEPOLIA_CHAIN_ID : MAINNET_CHAIN_ID);
5318
+ const apiUrlOverride = getApiUrlOverride();
5312
5319
  return {
5313
5320
  ...env,
5314
5321
  chainID: BigInt(resolvedChainID),
5322
+ ...apiUrlOverride ? { userApiServerURL: apiUrlOverride } : {},
5315
5323
  ...process.env.ECLOUD_USER_API_URL && {
5316
5324
  userApiServerURL: process.env.ECLOUD_USER_API_URL
5317
5325
  },