@layr-labs/ecloud-sdk 1.0.0-devep2 → 1.0.0-devep4

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,5 +1,5 @@
1
1
  import { Address, Hex, WalletClient, PublicClient } from 'viem';
2
- import { a6 as SubscriptionOpts, a4 as SubscribeResponse, a0 as ProductSubscriptionResponse, g as CancelResponse, M as PaymentMethodsResponse, m as CreditPurchaseResponse } from './index-Bac4HjC0.cjs';
2
+ import { a6 as SubscriptionOpts, a4 as SubscribeResponse, a0 as ProductSubscriptionResponse, g as CancelResponse, M as PaymentMethodsResponse, m as CreditPurchaseResponse } from './index-XhjPvHIY.cjs';
3
3
 
4
4
  /**
5
5
  * Main Billing namespace entry point
package/dist/billing.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Address, Hex, WalletClient, PublicClient } from 'viem';
2
- import { a6 as SubscriptionOpts, a4 as SubscribeResponse, a0 as ProductSubscriptionResponse, g as CancelResponse, M as PaymentMethodsResponse, m as CreditPurchaseResponse } from './index-Bac4HjC0.js';
2
+ import { a6 as SubscriptionOpts, a4 as SubscribeResponse, a0 as ProductSubscriptionResponse, g as CancelResponse, M as PaymentMethodsResponse, m as CreditPurchaseResponse } from './index-XhjPvHIY.js';
3
3
 
4
4
  /**
5
5
  * Main Billing namespace entry point
package/dist/billing.js CHANGED
@@ -448,6 +448,9 @@ var BILLING_ENVIRONMENTS = {
448
448
  billingApiServerURL: "https://billingapi.eigencloud.xyz"
449
449
  }
450
450
  };
451
+ var PLATFORM_ENV_TESTNET_SEPOLIA = "testnet-sepolia";
452
+ var PLATFORM_ENV_MAINNET_ETHEREUM = "mainnet-ethereum";
453
+ var DEFAULT_APP_BASE_DOMAIN = "eigencloud.xyz";
451
454
  var ENVIRONMENTS = {
452
455
  "sepolia-dev": {
453
456
  name: "sepolia",
@@ -458,7 +461,9 @@ var ENVIRONMENTS = {
458
461
  kmsServerURL: "http://10.128.0.57:8080",
459
462
  userApiServerURL: "https://userapi-compute-sepolia-dev.eigencloud.xyz",
460
463
  defaultRPCURL: "https://ethereum-sepolia-rpc.publicnode.com",
461
- usdcCreditsAddress: "0xbdA3897c3A428763B59015C64AB766c288C97376"
464
+ usdcCreditsAddress: "0xbdA3897c3A428763B59015C64AB766c288C97376",
465
+ platformEnv: PLATFORM_ENV_TESTNET_SEPOLIA,
466
+ appBaseDomain: DEFAULT_APP_BASE_DOMAIN
462
467
  },
463
468
  sepolia: {
464
469
  name: "sepolia",
@@ -470,7 +475,9 @@ var ENVIRONMENTS = {
470
475
  userApiServerURL: "https://userapi-compute-sepolia-prod.eigencloud.xyz",
471
476
  defaultRPCURL: "https://ethereum-sepolia-rpc.publicnode.com",
472
477
  billingRPCURL: "https://ethereum-rpc.publicnode.com",
473
- usdcCreditsAddress: "0xed9c88640ca9149Bd9f7ee6620074af10F2E145d"
478
+ usdcCreditsAddress: "0xed9c88640ca9149Bd9f7ee6620074af10F2E145d",
479
+ platformEnv: PLATFORM_ENV_TESTNET_SEPOLIA,
480
+ appBaseDomain: DEFAULT_APP_BASE_DOMAIN
474
481
  },
475
482
  "mainnet-alpha": {
476
483
  name: "mainnet-alpha",
@@ -481,7 +488,9 @@ var ENVIRONMENTS = {
481
488
  kmsServerURL: "http://10.128.0.2:8080",
482
489
  userApiServerURL: "https://userapi-compute.eigencloud.xyz",
483
490
  defaultRPCURL: "https://ethereum-rpc.publicnode.com",
484
- usdcCreditsAddress: "0xed9c88640ca9149Bd9f7ee6620074af10F2E145d"
491
+ usdcCreditsAddress: "0xed9c88640ca9149Bd9f7ee6620074af10F2E145d",
492
+ platformEnv: PLATFORM_ENV_MAINNET_ETHEREUM,
493
+ appBaseDomain: DEFAULT_APP_BASE_DOMAIN
485
494
  }
486
495
  };
487
496
  var CHAIN_ID_TO_ENVIRONMENT = {