@layr-labs/ecloud-sdk 0.4.0-dev → 0.4.0-dev.0

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,7 +1,7 @@
1
- import { A as AppId } from './index-WDunKGVL.cjs';
2
- export { am as AlreadyActiveResponse, w as AppConfig, ac as AppProfile, ad as AppProfileResponse, a2 as AppRecord, K as BatchedDeployResult, a5 as BillingEnvironmentConfig, C as CalculateAppIDOptions, ar as CancelResponse, ap as CancelSuccessResponse, af as ChainID, al as CheckoutCreatedResponse, ai as CreateSubscriptionOptions, ak as CreateSubscriptionResponse, D as DeployAppOptions, N as DeployAppOpts, a3 as DeployOptions, au as DeployProgressCallback, a4 as DeployResult, av as DeployStep, aa as DockerImageConfig, a6 as EnvironmentConfig, E as EstimateGasOptions, J as ExecuteDeployBatchedOptions, X as ExecuteDeployResult, H as ExecuteDeploySequentialOptions, Y as ExecuteUpgradeResult, G as GasEstimate, W as GasOpts, aj as GetSubscriptionOptions, a9 as ImageDigestResult, I as IsDelegatedOptions, a1 as LifecycleOpts, ab as Logger, aq as NoActiveSubscriptionResponse, a8 as ParsedEnvironment, an as PaymentIssueResponse, P as PrepareDeployBatchOptions, T as PrepareDeployFromVerifiableBuildOpts, Q as PrepareDeployOpts, x as PrepareUpgradeBatchOptions, V as PrepareUpgradeFromVerifiableBuildOpts, R as PrepareUpgradeOpts, $ as PreparedDeploy, y as PreparedDeployBatch, Z as PreparedDeployData, a0 as PreparedUpgrade, z as PreparedUpgradeBatch, _ as PreparedUpgradeData, ae as ProductID, as as ProductSubscriptionResponse, a7 as Release, S as SendTransactionOptions, aw as SequentialDeployResult, ao as SubscribeResponse, ah as SubscriptionLineItem, at as SubscriptionOpts, ag as SubscriptionStatus, B as SuspendOptions, F as UndelegateOptions, U as UpgradeAppOptions, O as UpgradeAppOpts, j as calculateAppID, i as deployApp, e as estimateTransactionGas, h as executeDeployBatch, l as executeDeployBatched, k as executeDeploySequential, o as executeUpgradeBatch, f as formatETH, c as getActiveAppCount, g as getAllAppsByDeveloper, a as getAppsByCreator, b as getAppsByDeveloper, d as getMaxActiveAppsPerUser, r as isDelegated, M as logVisibility, L as noopLogger, p as prepareDeployBatch, n as prepareUpgradeBatch, q as sendAndWaitForTransaction, m as supportsEIP5792, s as supportsEIP7702, t as suspend, v as undelegate, u as upgradeApp } from './index-WDunKGVL.cjs';
3
- import { C as ComputeApiConfig, S as SessionInfo, a as SessionError, b as SiweMessageParams } from './helpers-CDL9Hcxy.cjs';
4
- export { F as AppInfo, J as AppInfoResponse, I as AppMetrics, H as AppProfileInfo, K as BillingApiClient, M as BillingApiClientOptions, ac as BillingApiConfig, af as BillingLoginRequest, ae as BillingLoginResult, ab as BillingSessionError, ad as BillingSessionInfo, z as CreateAppParams, Q as EstimateBatchGasOptions, R as ExecuteBatchOptions, T as Execution, G as GeneratedKey, L as LogVisibility, a4 as LoginRequest, a3 as LoginResult, A as LogsParams, _ as SiweMessageResult, U as UserApiClient, E as UserApiClientOptions, ah as addHexPrefix, j as assertValidImageReference, n as assertValidPrivateKey, P as checkERC7702Delegation, V as createSiweMessage, N as estimateBatchGas, O as executeBatch, k as extractAppNameFromImage, D as generateNewPrivateKey, X as generateNonce, d as getAvailableEnvironments, a7 as getBillingApiSession, c as getBillingEnvironmentConfig, e as getBuildType, ag as getChainFromID, a1 as getComputeApiSession, g as getEnvironmentConfig, a8 as isBillingSessionValid, i as isEnvironmentAvailable, f as isMainnet, a2 as isSessionValid, Y as isSiweMessageExpired, Z as isSiweMessageNotYetValid, B as isSubscriptionActive, a5 as loginToBillingApi, a9 as loginToBothApis, $ as loginToComputeApi, a6 as logoutFromBillingApi, aa as logoutFromBothApis, a0 as logoutFromComputeApi, W as parseSiweMessage, t as sanitizeString, u as sanitizeURL, w as sanitizeXURL, ai as stripHexPrefix, r as validateAppID, v as validateAppName, x as validateCreateAppParams, q as validateDescription, h as validateImageReference, l as validateInstanceTypeSKU, s as validateLogVisibility, y as validateLogsParams, m as validatePrivateKeyFormat, o as validateURL, p as validateXURL } from './helpers-CDL9Hcxy.cjs';
1
+ import { A as AppId } from './index-DD7ZLbqD.cjs';
2
+ export { ao as AlreadyActiveResponse, y as AppConfig, ae as AppProfile, af as AppProfileResponse, a4 as AppRecord, M as BatchedDeployResult, a7 as BillingEnvironmentConfig, F as CalculateAppIDOptions, at as CancelResponse, ar as CancelSuccessResponse, ah as ChainID, an as CheckoutCreatedResponse, ak as CreateSubscriptionOptions, am as CreateSubscriptionResponse, D as DeployAppOptions, Q as DeployAppOpts, a5 as DeployOptions, aw as DeployProgressCallback, a6 as DeployResult, ax as DeployStep, ac as DockerImageConfig, a8 as EnvironmentConfig, E as EstimateGasOptions, L as ExecuteDeployBatchedOptions, Z as ExecuteDeployResult, K as ExecuteDeploySequentialOptions, _ as ExecuteUpgradeResult, G as GasEstimate, Y as GasOpts, al as GetSubscriptionOptions, ab as ImageDigestResult, J as IsDelegatedOptions, a3 as LifecycleOpts, ad as Logger, as as NoActiveSubscriptionResponse, aa as ParsedEnvironment, ap as PaymentIssueResponse, P as PrepareDeployBatchOptions, W as PrepareDeployFromVerifiableBuildOpts, T as PrepareDeployOpts, z as PrepareUpgradeBatchOptions, X as PrepareUpgradeFromVerifiableBuildOpts, V as PrepareUpgradeOpts, a1 as PreparedDeploy, B as PreparedDeployBatch, $ as PreparedDeployData, a2 as PreparedUpgrade, C as PreparedUpgradeBatch, a0 as PreparedUpgradeData, ag as ProductID, au as ProductSubscriptionResponse, a9 as Release, S as SendTransactionOptions, ay as SequentialDeployResult, aq as SubscribeResponse, aj as SubscriptionLineItem, av as SubscriptionOpts, ai as SubscriptionStatus, H as SuspendOptions, I as UndelegateOptions, U as UpgradeAppOptions, R as UpgradeAppOpts, l as calculateAppID, k as deployApp, h as estimateTransactionGas, j as executeDeployBatch, n as executeDeployBatched, m as executeDeploySequential, r as executeUpgradeBatch, i as formatETH, c as getActiveAppCount, g as getAllAppsByDeveloper, f as getAppsByBillingAccount, a as getAppsByCreator, b as getAppsByDeveloper, e as getBillingType, d as getMaxActiveAppsPerUser, v as isDelegated, O as logVisibility, N as noopLogger, p as prepareDeployBatch, q as prepareUpgradeBatch, t as sendAndWaitForTransaction, o as supportsEIP5792, s as supportsEIP7702, w as suspend, x as undelegate, u as upgradeApp } from './index-DD7ZLbqD.cjs';
3
+ import { C as ComputeApiConfig, S as SessionInfo, a as SessionError, b as SiweMessageParams } from './helpers-BNeMZYcY.cjs';
4
+ export { F as AppInfo, J as AppInfoResponse, I as AppMetrics, H as AppProfileInfo, K as BillingApiClient, M as BillingApiClientOptions, ac as BillingApiConfig, af as BillingLoginRequest, ae as BillingLoginResult, ab as BillingSessionError, ad as BillingSessionInfo, z as CreateAppParams, Q as EstimateBatchGasOptions, R as ExecuteBatchOptions, T as Execution, G as GeneratedKey, L as LogVisibility, a4 as LoginRequest, a3 as LoginResult, A as LogsParams, _ as SiweMessageResult, U as UserApiClient, E as UserApiClientOptions, ah as addHexPrefix, j as assertValidImageReference, n as assertValidPrivateKey, P as checkERC7702Delegation, V as createSiweMessage, N as estimateBatchGas, O as executeBatch, k as extractAppNameFromImage, D as generateNewPrivateKey, X as generateNonce, d as getAvailableEnvironments, a7 as getBillingApiSession, c as getBillingEnvironmentConfig, e as getBuildType, ag as getChainFromID, a1 as getComputeApiSession, g as getEnvironmentConfig, a8 as isBillingSessionValid, i as isEnvironmentAvailable, f as isMainnet, a2 as isSessionValid, Y as isSiweMessageExpired, Z as isSiweMessageNotYetValid, B as isSubscriptionActive, a5 as loginToBillingApi, a9 as loginToBothApis, $ as loginToComputeApi, a6 as logoutFromBillingApi, aa as logoutFromBothApis, a0 as logoutFromComputeApi, W as parseSiweMessage, t as sanitizeString, u as sanitizeURL, w as sanitizeXURL, ai as stripHexPrefix, r as validateAppID, v as validateAppName, x as validateCreateAppParams, q as validateDescription, h as validateImageReference, l as validateInstanceTypeSKU, s as validateLogVisibility, y as validateLogsParams, m as validatePrivateKeyFormat, o as validateURL, p as validateXURL } from './helpers-BNeMZYcY.cjs';
5
5
  import { WalletClient, Address, Hex } from 'viem';
6
6
  import { Buffer as Buffer$1 } from 'buffer';
7
7
 
package/dist/browser.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { A as AppId } from './index-WDunKGVL.js';
2
- export { am as AlreadyActiveResponse, w as AppConfig, ac as AppProfile, ad as AppProfileResponse, a2 as AppRecord, K as BatchedDeployResult, a5 as BillingEnvironmentConfig, C as CalculateAppIDOptions, ar as CancelResponse, ap as CancelSuccessResponse, af as ChainID, al as CheckoutCreatedResponse, ai as CreateSubscriptionOptions, ak as CreateSubscriptionResponse, D as DeployAppOptions, N as DeployAppOpts, a3 as DeployOptions, au as DeployProgressCallback, a4 as DeployResult, av as DeployStep, aa as DockerImageConfig, a6 as EnvironmentConfig, E as EstimateGasOptions, J as ExecuteDeployBatchedOptions, X as ExecuteDeployResult, H as ExecuteDeploySequentialOptions, Y as ExecuteUpgradeResult, G as GasEstimate, W as GasOpts, aj as GetSubscriptionOptions, a9 as ImageDigestResult, I as IsDelegatedOptions, a1 as LifecycleOpts, ab as Logger, aq as NoActiveSubscriptionResponse, a8 as ParsedEnvironment, an as PaymentIssueResponse, P as PrepareDeployBatchOptions, T as PrepareDeployFromVerifiableBuildOpts, Q as PrepareDeployOpts, x as PrepareUpgradeBatchOptions, V as PrepareUpgradeFromVerifiableBuildOpts, R as PrepareUpgradeOpts, $ as PreparedDeploy, y as PreparedDeployBatch, Z as PreparedDeployData, a0 as PreparedUpgrade, z as PreparedUpgradeBatch, _ as PreparedUpgradeData, ae as ProductID, as as ProductSubscriptionResponse, a7 as Release, S as SendTransactionOptions, aw as SequentialDeployResult, ao as SubscribeResponse, ah as SubscriptionLineItem, at as SubscriptionOpts, ag as SubscriptionStatus, B as SuspendOptions, F as UndelegateOptions, U as UpgradeAppOptions, O as UpgradeAppOpts, j as calculateAppID, i as deployApp, e as estimateTransactionGas, h as executeDeployBatch, l as executeDeployBatched, k as executeDeploySequential, o as executeUpgradeBatch, f as formatETH, c as getActiveAppCount, g as getAllAppsByDeveloper, a as getAppsByCreator, b as getAppsByDeveloper, d as getMaxActiveAppsPerUser, r as isDelegated, M as logVisibility, L as noopLogger, p as prepareDeployBatch, n as prepareUpgradeBatch, q as sendAndWaitForTransaction, m as supportsEIP5792, s as supportsEIP7702, t as suspend, v as undelegate, u as upgradeApp } from './index-WDunKGVL.js';
3
- import { C as ComputeApiConfig, S as SessionInfo, a as SessionError, b as SiweMessageParams } from './helpers-BcT2gJ7-.js';
4
- export { F as AppInfo, J as AppInfoResponse, I as AppMetrics, H as AppProfileInfo, K as BillingApiClient, M as BillingApiClientOptions, ac as BillingApiConfig, af as BillingLoginRequest, ae as BillingLoginResult, ab as BillingSessionError, ad as BillingSessionInfo, z as CreateAppParams, Q as EstimateBatchGasOptions, R as ExecuteBatchOptions, T as Execution, G as GeneratedKey, L as LogVisibility, a4 as LoginRequest, a3 as LoginResult, A as LogsParams, _ as SiweMessageResult, U as UserApiClient, E as UserApiClientOptions, ah as addHexPrefix, j as assertValidImageReference, n as assertValidPrivateKey, P as checkERC7702Delegation, V as createSiweMessage, N as estimateBatchGas, O as executeBatch, k as extractAppNameFromImage, D as generateNewPrivateKey, X as generateNonce, d as getAvailableEnvironments, a7 as getBillingApiSession, c as getBillingEnvironmentConfig, e as getBuildType, ag as getChainFromID, a1 as getComputeApiSession, g as getEnvironmentConfig, a8 as isBillingSessionValid, i as isEnvironmentAvailable, f as isMainnet, a2 as isSessionValid, Y as isSiweMessageExpired, Z as isSiweMessageNotYetValid, B as isSubscriptionActive, a5 as loginToBillingApi, a9 as loginToBothApis, $ as loginToComputeApi, a6 as logoutFromBillingApi, aa as logoutFromBothApis, a0 as logoutFromComputeApi, W as parseSiweMessage, t as sanitizeString, u as sanitizeURL, w as sanitizeXURL, ai as stripHexPrefix, r as validateAppID, v as validateAppName, x as validateCreateAppParams, q as validateDescription, h as validateImageReference, l as validateInstanceTypeSKU, s as validateLogVisibility, y as validateLogsParams, m as validatePrivateKeyFormat, o as validateURL, p as validateXURL } from './helpers-BcT2gJ7-.js';
1
+ import { A as AppId } from './index-DD7ZLbqD.js';
2
+ export { ao as AlreadyActiveResponse, y as AppConfig, ae as AppProfile, af as AppProfileResponse, a4 as AppRecord, M as BatchedDeployResult, a7 as BillingEnvironmentConfig, F as CalculateAppIDOptions, at as CancelResponse, ar as CancelSuccessResponse, ah as ChainID, an as CheckoutCreatedResponse, ak as CreateSubscriptionOptions, am as CreateSubscriptionResponse, D as DeployAppOptions, Q as DeployAppOpts, a5 as DeployOptions, aw as DeployProgressCallback, a6 as DeployResult, ax as DeployStep, ac as DockerImageConfig, a8 as EnvironmentConfig, E as EstimateGasOptions, L as ExecuteDeployBatchedOptions, Z as ExecuteDeployResult, K as ExecuteDeploySequentialOptions, _ as ExecuteUpgradeResult, G as GasEstimate, Y as GasOpts, al as GetSubscriptionOptions, ab as ImageDigestResult, J as IsDelegatedOptions, a3 as LifecycleOpts, ad as Logger, as as NoActiveSubscriptionResponse, aa as ParsedEnvironment, ap as PaymentIssueResponse, P as PrepareDeployBatchOptions, W as PrepareDeployFromVerifiableBuildOpts, T as PrepareDeployOpts, z as PrepareUpgradeBatchOptions, X as PrepareUpgradeFromVerifiableBuildOpts, V as PrepareUpgradeOpts, a1 as PreparedDeploy, B as PreparedDeployBatch, $ as PreparedDeployData, a2 as PreparedUpgrade, C as PreparedUpgradeBatch, a0 as PreparedUpgradeData, ag as ProductID, au as ProductSubscriptionResponse, a9 as Release, S as SendTransactionOptions, ay as SequentialDeployResult, aq as SubscribeResponse, aj as SubscriptionLineItem, av as SubscriptionOpts, ai as SubscriptionStatus, H as SuspendOptions, I as UndelegateOptions, U as UpgradeAppOptions, R as UpgradeAppOpts, l as calculateAppID, k as deployApp, h as estimateTransactionGas, j as executeDeployBatch, n as executeDeployBatched, m as executeDeploySequential, r as executeUpgradeBatch, i as formatETH, c as getActiveAppCount, g as getAllAppsByDeveloper, f as getAppsByBillingAccount, a as getAppsByCreator, b as getAppsByDeveloper, e as getBillingType, d as getMaxActiveAppsPerUser, v as isDelegated, O as logVisibility, N as noopLogger, p as prepareDeployBatch, q as prepareUpgradeBatch, t as sendAndWaitForTransaction, o as supportsEIP5792, s as supportsEIP7702, w as suspend, x as undelegate, u as upgradeApp } from './index-DD7ZLbqD.js';
3
+ import { C as ComputeApiConfig, S as SessionInfo, a as SessionError, b as SiweMessageParams } from './helpers-D_AbDeP4.js';
4
+ export { F as AppInfo, J as AppInfoResponse, I as AppMetrics, H as AppProfileInfo, K as BillingApiClient, M as BillingApiClientOptions, ac as BillingApiConfig, af as BillingLoginRequest, ae as BillingLoginResult, ab as BillingSessionError, ad as BillingSessionInfo, z as CreateAppParams, Q as EstimateBatchGasOptions, R as ExecuteBatchOptions, T as Execution, G as GeneratedKey, L as LogVisibility, a4 as LoginRequest, a3 as LoginResult, A as LogsParams, _ as SiweMessageResult, U as UserApiClient, E as UserApiClientOptions, ah as addHexPrefix, j as assertValidImageReference, n as assertValidPrivateKey, P as checkERC7702Delegation, V as createSiweMessage, N as estimateBatchGas, O as executeBatch, k as extractAppNameFromImage, D as generateNewPrivateKey, X as generateNonce, d as getAvailableEnvironments, a7 as getBillingApiSession, c as getBillingEnvironmentConfig, e as getBuildType, ag as getChainFromID, a1 as getComputeApiSession, g as getEnvironmentConfig, a8 as isBillingSessionValid, i as isEnvironmentAvailable, f as isMainnet, a2 as isSessionValid, Y as isSiweMessageExpired, Z as isSiweMessageNotYetValid, B as isSubscriptionActive, a5 as loginToBillingApi, a9 as loginToBothApis, $ as loginToComputeApi, a6 as logoutFromBillingApi, aa as logoutFromBothApis, a0 as logoutFromComputeApi, W as parseSiweMessage, t as sanitizeString, u as sanitizeURL, w as sanitizeXURL, ai as stripHexPrefix, r as validateAppID, v as validateAppName, x as validateCreateAppParams, q as validateDescription, h as validateImageReference, l as validateInstanceTypeSKU, s as validateLogVisibility, y as validateLogsParams, m as validatePrivateKeyFormat, o as validateURL, p as validateXURL } from './helpers-D_AbDeP4.js';
5
5
  import { WalletClient, Address, Hex } from 'viem';
6
6
  import { Buffer as Buffer$1 } from 'buffer';
7
7
 
package/dist/browser.js CHANGED
@@ -188,7 +188,8 @@ var ENVIRONMENTS = {
188
188
  erc7702DelegatorAddress: CommonAddresses.ERC7702Delegator,
189
189
  kmsServerURL: "http://10.128.0.57:8080",
190
190
  userApiServerURL: "https://userapi-compute-sepolia-dev.eigencloud.xyz",
191
- defaultRPCURL: "https://ethereum-sepolia-rpc.publicnode.com"
191
+ defaultRPCURL: "https://ethereum-sepolia-rpc.publicnode.com",
192
+ usdcCreditsAddress: "0xbdA3897c3A428763B59015C64AB766c288C97376"
192
193
  },
193
194
  sepolia: {
194
195
  name: "sepolia",
@@ -602,7 +603,7 @@ var CanViewAppLogsPermission = "0x2fd3f2fe";
602
603
  var CanViewSensitiveAppInfoPermission = "0x0e67b22f";
603
604
  var CanUpdateAppProfilePermission = "0x036fef61";
604
605
  function getDefaultClientId() {
605
- const version = true ? "0.4.0-dev" : "0.0.0";
606
+ const version = true ? "0.4.0-dev.0" : "0.0.0";
606
607
  return `ecloud-sdk/v${version}`;
607
608
  }
608
609
  var UserApiClient = class {
@@ -2881,6 +2882,71 @@ var AppController_default = [
2881
2882
  ],
2882
2883
  stateMutability: "nonpayable"
2883
2884
  },
2885
+ {
2886
+ type: "function",
2887
+ name: "createAppWithIsolatedBilling",
2888
+ inputs: [
2889
+ {
2890
+ name: "salt",
2891
+ type: "bytes32",
2892
+ internalType: "bytes32"
2893
+ },
2894
+ {
2895
+ name: "release",
2896
+ type: "tuple",
2897
+ internalType: "structIAppController.Release",
2898
+ components: [
2899
+ {
2900
+ name: "rmsRelease",
2901
+ type: "tuple",
2902
+ internalType: "structIReleaseManagerTypes.Release",
2903
+ components: [
2904
+ {
2905
+ name: "artifacts",
2906
+ type: "tuple[]",
2907
+ internalType: "structIReleaseManagerTypes.Artifact[]",
2908
+ components: [
2909
+ {
2910
+ name: "digest",
2911
+ type: "bytes32",
2912
+ internalType: "bytes32"
2913
+ },
2914
+ {
2915
+ name: "registry",
2916
+ type: "string",
2917
+ internalType: "string"
2918
+ }
2919
+ ]
2920
+ },
2921
+ {
2922
+ name: "upgradeByTime",
2923
+ type: "uint32",
2924
+ internalType: "uint32"
2925
+ }
2926
+ ]
2927
+ },
2928
+ {
2929
+ name: "publicEnv",
2930
+ type: "bytes",
2931
+ internalType: "bytes"
2932
+ },
2933
+ {
2934
+ name: "encryptedEnv",
2935
+ type: "bytes",
2936
+ internalType: "bytes"
2937
+ }
2938
+ ]
2939
+ }
2940
+ ],
2941
+ outputs: [
2942
+ {
2943
+ name: "app",
2944
+ type: "address",
2945
+ internalType: "contractIApp"
2946
+ }
2947
+ ],
2948
+ stateMutability: "nonpayable"
2949
+ },
2884
2950
  {
2885
2951
  type: "function",
2886
2952
  name: "domainSeparator",
@@ -2913,6 +2979,25 @@ var AppController_default = [
2913
2979
  ],
2914
2980
  stateMutability: "view"
2915
2981
  },
2982
+ {
2983
+ type: "function",
2984
+ name: "getBillingType",
2985
+ inputs: [
2986
+ {
2987
+ name: "app",
2988
+ type: "address",
2989
+ internalType: "address"
2990
+ }
2991
+ ],
2992
+ outputs: [
2993
+ {
2994
+ name: "",
2995
+ type: "uint8",
2996
+ internalType: "uint8"
2997
+ }
2998
+ ],
2999
+ stateMutability: "view"
3000
+ },
2916
3001
  {
2917
3002
  type: "function",
2918
3003
  name: "getAppCreator",
@@ -3040,6 +3125,62 @@ var AppController_default = [
3040
3125
  ],
3041
3126
  stateMutability: "view"
3042
3127
  },
3128
+ {
3129
+ type: "function",
3130
+ name: "getAppsByBillingAccount",
3131
+ inputs: [
3132
+ {
3133
+ name: "account",
3134
+ type: "address",
3135
+ internalType: "address"
3136
+ },
3137
+ {
3138
+ name: "offset",
3139
+ type: "uint256",
3140
+ internalType: "uint256"
3141
+ },
3142
+ {
3143
+ name: "limit",
3144
+ type: "uint256",
3145
+ internalType: "uint256"
3146
+ }
3147
+ ],
3148
+ outputs: [
3149
+ {
3150
+ name: "apps",
3151
+ type: "address[]",
3152
+ internalType: "contractIApp[]"
3153
+ },
3154
+ {
3155
+ name: "appConfigsMem",
3156
+ type: "tuple[]",
3157
+ internalType: "structIAppController.AppConfig[]",
3158
+ components: [
3159
+ {
3160
+ name: "creator",
3161
+ type: "address",
3162
+ internalType: "address"
3163
+ },
3164
+ {
3165
+ name: "operatorSetId",
3166
+ type: "uint32",
3167
+ internalType: "uint32"
3168
+ },
3169
+ {
3170
+ name: "latestReleaseBlockNumber",
3171
+ type: "uint32",
3172
+ internalType: "uint32"
3173
+ },
3174
+ {
3175
+ name: "status",
3176
+ type: "uint8",
3177
+ internalType: "enumIAppController.AppStatus"
3178
+ }
3179
+ ]
3180
+ }
3181
+ ],
3182
+ stateMutability: "view"
3183
+ },
3043
3184
  {
3044
3185
  type: "function",
3045
3186
  name: "getAppsByCreator",
@@ -4295,9 +4436,10 @@ async function prepareDeployBatch(options, logger = noopLogger) {
4295
4436
  publicEnv: bytesToHex(release.publicEnv),
4296
4437
  encryptedEnv: bytesToHex(release.encryptedEnv)
4297
4438
  };
4439
+ const functionName = options.billTo === "app" ? "createAppWithIsolatedBilling" : "createApp";
4298
4440
  const createData = encodeFunctionData2({
4299
4441
  abi: AppController_default,
4300
- functionName: "createApp",
4442
+ functionName,
4301
4443
  args: [saltHex, releaseForViem]
4302
4444
  });
4303
4445
  const acceptAdminData = encodeFunctionData2({
@@ -4793,6 +4935,24 @@ async function getAppsByDeveloper(publicClient, environmentConfig, developer, of
4793
4935
  appConfigs: result[1]
4794
4936
  };
4795
4937
  }
4938
+ async function getBillingType(publicClient, environmentConfig, app) {
4939
+ const result = await publicClient.readContract({
4940
+ address: environmentConfig.appControllerAddress,
4941
+ abi: AppController_default,
4942
+ functionName: "getBillingType",
4943
+ args: [app]
4944
+ });
4945
+ return Number(result);
4946
+ }
4947
+ async function getAppsByBillingAccount(publicClient, environmentConfig, account, offset, limit) {
4948
+ const result = await publicClient.readContract({
4949
+ address: environmentConfig.appControllerAddress,
4950
+ abi: AppController_default,
4951
+ functionName: "getAppsByBillingAccount",
4952
+ args: [account, offset, limit]
4953
+ });
4954
+ return { apps: result[0], appConfigs: result[1] };
4955
+ }
4796
4956
  async function getAllAppsByDeveloper(publicClient, env, developer, pageSize = 100n) {
4797
4957
  let offset = 0n;
4798
4958
  const allApps = [];
@@ -5273,11 +5433,13 @@ export {
5273
5433
  getActiveAppCount,
5274
5434
  getAllAppsByDeveloper,
5275
5435
  getAppProtectedHeaders,
5436
+ getAppsByBillingAccount,
5276
5437
  getAppsByCreator,
5277
5438
  getAppsByDeveloper,
5278
5439
  getAvailableEnvironments,
5279
5440
  getBillingApiSession,
5280
5441
  getBillingEnvironmentConfig,
5442
+ getBillingType,
5281
5443
  getBuildType,
5282
5444
  getChainFromID,
5283
5445
  getComputeApiSession,