@layr-labs/ecloud-sdk 0.2.0-dev.1 → 0.2.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.
@@ -1,3 +1,3 @@
1
- export { A as AppModule, q as AppModuleConfig, C as ComputeModule, e as ComputeModuleConfig, p as createAppModule, d as createComputeModule, f as encodeStartAppData, h as encodeStopAppData, i as encodeTerminateAppData } from './compute-CbmjA8kJ.cjs';
1
+ export { A as AppModule, k as AppModuleConfig, C as ComputeModule, e as ComputeModuleConfig, j as createAppModule, d as createComputeModule, f as encodeStartAppData, h as encodeStopAppData, i as encodeTerminateAppData } from './compute-B_ibIORD.cjs';
2
+ import './index-D-SUX3IG.cjs';
2
3
  import 'viem';
3
- import './index-D2QufVB9.cjs';
package/dist/compute.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { A as AppModule, q as AppModuleConfig, C as ComputeModule, e as ComputeModuleConfig, p as createAppModule, d as createComputeModule, f as encodeStartAppData, h as encodeStopAppData, i as encodeTerminateAppData } from './compute-CF2HOXed.js';
1
+ export { A as AppModule, k as AppModuleConfig, C as ComputeModule, e as ComputeModuleConfig, j as createAppModule, d as createComputeModule, f as encodeStartAppData, h as encodeStopAppData, i as encodeTerminateAppData } from './compute-gpepEsn3.js';
2
+ import './index-D-SUX3IG.js';
2
3
  import 'viem';
3
- import './index-D2QufVB9.js';
package/dist/compute.js CHANGED
@@ -4,8 +4,8 @@ import {
4
4
  encodeStartAppData,
5
5
  encodeStopAppData,
6
6
  encodeTerminateAppData
7
- } from "./chunk-O7EU5JL7.js";
8
- import "./chunk-FY7UU55U.js";
7
+ } from "./chunk-4SKRNFKQ.js";
8
+ import "./chunk-ZEZS5CNB.js";
9
9
  export {
10
10
  createAppModule,
11
11
  createComputeModule,
@@ -1,4 +1,4 @@
1
- import { Address, Hex } from 'viem';
1
+ import { Address } from 'viem';
2
2
 
3
3
  /**
4
4
  * Core types for ECloud SDK
@@ -41,130 +41,6 @@ interface UpgradeAppOpts {
41
41
  maxPriorityFeePerGas?: bigint;
42
42
  };
43
43
  }
44
- /** Options for prepareDeploy */
45
- interface PrepareDeployOpts {
46
- /** App name - required */
47
- name: string;
48
- /** Path to Dockerfile (if building from Dockerfile) */
49
- dockerfile?: string;
50
- /** Path to .env file - optional */
51
- envFile?: string;
52
- /** Image reference (registry/path:tag) */
53
- imageRef?: string;
54
- /** Instance type SKU - required */
55
- instanceType: string;
56
- /** Log visibility setting - required */
57
- logVisibility: logVisibility;
58
- /** Resource usage monitoring setting - optional */
59
- resourceUsageMonitoring?: "enable" | "disable";
60
- }
61
- /** Options for prepareUpgrade */
62
- interface PrepareUpgradeOpts {
63
- /** Path to Dockerfile (if building from Dockerfile) */
64
- dockerfile?: string;
65
- /** Image reference (registry/path:tag) */
66
- imageRef?: string;
67
- /** Path to .env file - optional */
68
- envFile?: string;
69
- /** Instance type SKU - required */
70
- instanceType: string;
71
- /** Log visibility setting - required */
72
- logVisibility: logVisibility;
73
- /** Resource usage monitoring setting - optional */
74
- resourceUsageMonitoring?: "enable" | "disable";
75
- }
76
- /** Options for prepareDeployFromVerifiableBuild */
77
- interface PrepareDeployFromVerifiableBuildOpts {
78
- /** App name - required */
79
- name: string;
80
- /** Image reference (registry/path:tag) - required */
81
- imageRef: string;
82
- /** Image digest (sha256:...) - required */
83
- imageDigest: string;
84
- /** Path to .env file - optional */
85
- envFile?: string;
86
- /** Instance type SKU - required */
87
- instanceType: string;
88
- /** Log visibility setting - required */
89
- logVisibility: logVisibility;
90
- /** Resource usage monitoring setting - optional */
91
- resourceUsageMonitoring?: "enable" | "disable";
92
- }
93
- /** Options for prepareUpgradeFromVerifiableBuild */
94
- interface PrepareUpgradeFromVerifiableBuildOpts {
95
- /** Image reference (registry/path:tag) - required */
96
- imageRef: string;
97
- /** Image digest (sha256:...) - required */
98
- imageDigest: string;
99
- /** Path to .env file - optional */
100
- envFile?: string;
101
- /** Instance type SKU - required */
102
- instanceType: string;
103
- /** Log visibility setting - required */
104
- logVisibility: logVisibility;
105
- /** Resource usage monitoring setting - optional */
106
- resourceUsageMonitoring?: "enable" | "disable";
107
- }
108
- /** Gas options for execute functions */
109
- interface GasOpts {
110
- maxFeePerGas?: bigint;
111
- maxPriorityFeePerGas?: bigint;
112
- }
113
- /** Result from executeDeploy */
114
- interface ExecuteDeployResult {
115
- appId: AppId;
116
- txHash: Hex;
117
- appName: string;
118
- imageRef: string;
119
- }
120
- /** Result from executeUpgrade */
121
- interface ExecuteUpgradeResult {
122
- appId: AppId;
123
- txHash: Hex;
124
- imageRef: string;
125
- }
126
- /** Data-only batch for deploy (clients provided by module) */
127
- interface PreparedDeployData {
128
- /** The app ID that will be deployed */
129
- appId: AppId;
130
- /** The salt used for deployment */
131
- salt: Uint8Array;
132
- /** Batch executions to be sent */
133
- executions: Array<{
134
- target: Address;
135
- value: bigint;
136
- callData: Hex;
137
- }>;
138
- }
139
- /** Data-only batch for upgrade (clients provided by module) */
140
- interface PreparedUpgradeData {
141
- /** The app ID being upgraded */
142
- appId: AppId;
143
- /** Batch executions to be sent */
144
- executions: Array<{
145
- target: Address;
146
- value: bigint;
147
- callData: Hex;
148
- }>;
149
- }
150
- /** Prepared deployment ready for execution */
151
- interface PreparedDeploy {
152
- /** The prepared data (executions, appId, etc.) */
153
- data: PreparedDeployData;
154
- /** App name */
155
- appName: string;
156
- /** Final image reference */
157
- imageRef: string;
158
- }
159
- /** Prepared upgrade ready for execution */
160
- interface PreparedUpgrade {
161
- /** The prepared data (executions, appId, etc.) */
162
- data: PreparedUpgradeData;
163
- /** App ID being upgraded */
164
- appId: AppId;
165
- /** Final image reference */
166
- imageRef: string;
167
- }
168
44
  interface LifecycleOpts {
169
45
  gas?: {
170
46
  maxFeePerGas?: bigint;
@@ -173,7 +49,7 @@ interface LifecycleOpts {
173
49
  }
174
50
  interface AppRecord {
175
51
  id: AppId;
176
- owner: Address;
52
+ owner: `0x${string}`;
177
53
  image: string;
178
54
  status: "starting" | "running" | "stopped" | "terminated";
179
55
  createdAt: number;
@@ -201,7 +77,7 @@ interface DeployOptions {
201
77
  }
202
78
  interface DeployResult {
203
79
  /** App ID (contract address) */
204
- appId: AppId;
80
+ appId: string;
205
81
  /** App name */
206
82
  appName: string;
207
83
  /** Final image reference */
@@ -209,13 +85,13 @@ interface DeployResult {
209
85
  /** IP address (if available) */
210
86
  ipAddress?: string;
211
87
  /** Transaction hash */
212
- txHash: Hex;
88
+ txHash: `0x${string}`;
213
89
  }
214
90
  interface EnvironmentConfig {
215
91
  name: string;
216
92
  build: "dev" | "prod";
217
93
  chainID: bigint;
218
- appControllerAddress: Address;
94
+ appControllerAddress: string;
219
95
  permissionControllerAddress: string;
220
96
  erc7702DelegatorAddress: string;
221
97
  kmsServerURL: string;
@@ -339,4 +215,4 @@ interface BillingEnvironmentConfig {
339
215
  billingApiServerURL: string;
340
216
  }
341
217
 
342
- export type { AppId as A, BillingEnvironmentConfig as B, ChainID as C, DeployResult as D, EnvironmentConfig as E, CancelResponse as F, GasOpts as G, ProductSubscriptionResponse as H, ImageDigestResult as I, SubscriptionOpts as J, Logger as L, NoActiveSubscriptionResponse as N, PreparedDeploy as P, Release as R, SubscriptionStatus as S, UpgradeAppOpts as U, PreparedUpgrade as a, DeployAppOpts as b, PrepareDeployOpts as c, PrepareUpgradeOpts as d, PrepareDeployFromVerifiableBuildOpts as e, PrepareUpgradeFromVerifiableBuildOpts as f, ExecuteDeployResult as g, ExecuteUpgradeResult as h, PreparedDeployData as i, PreparedUpgradeData as j, LifecycleOpts as k, logVisibility as l, AppRecord as m, DeployOptions as n, ParsedEnvironment as o, DockerImageConfig as p, AppProfile as q, AppProfileResponse as r, ProductID as s, SubscriptionLineItem as t, CreateSubscriptionResponse as u, CheckoutCreatedResponse as v, AlreadyActiveResponse as w, PaymentIssueResponse as x, SubscribeResponse as y, CancelSuccessResponse as z };
218
+ export type { AppId as A, BillingEnvironmentConfig as B, ChainID as C, DeployResult as D, EnvironmentConfig as E, ImageDigestResult as I, Logger as L, NoActiveSubscriptionResponse as N, ParsedEnvironment as P, Release as R, SubscriptionStatus as S, UpgradeAppOpts as U, DeployAppOpts as a, LifecycleOpts as b, AppRecord as c, DeployOptions as d, DockerImageConfig as e, AppProfile as f, AppProfileResponse as g, ProductID as h, SubscriptionLineItem as i, CreateSubscriptionResponse as j, CheckoutCreatedResponse as k, logVisibility as l, AlreadyActiveResponse as m, PaymentIssueResponse as n, SubscribeResponse as o, CancelSuccessResponse as p, CancelResponse as q, ProductSubscriptionResponse as r, SubscriptionOpts as s };
@@ -1,4 +1,4 @@
1
- import { Address, Hex } from 'viem';
1
+ import { Address } from 'viem';
2
2
 
3
3
  /**
4
4
  * Core types for ECloud SDK
@@ -41,130 +41,6 @@ interface UpgradeAppOpts {
41
41
  maxPriorityFeePerGas?: bigint;
42
42
  };
43
43
  }
44
- /** Options for prepareDeploy */
45
- interface PrepareDeployOpts {
46
- /** App name - required */
47
- name: string;
48
- /** Path to Dockerfile (if building from Dockerfile) */
49
- dockerfile?: string;
50
- /** Path to .env file - optional */
51
- envFile?: string;
52
- /** Image reference (registry/path:tag) */
53
- imageRef?: string;
54
- /** Instance type SKU - required */
55
- instanceType: string;
56
- /** Log visibility setting - required */
57
- logVisibility: logVisibility;
58
- /** Resource usage monitoring setting - optional */
59
- resourceUsageMonitoring?: "enable" | "disable";
60
- }
61
- /** Options for prepareUpgrade */
62
- interface PrepareUpgradeOpts {
63
- /** Path to Dockerfile (if building from Dockerfile) */
64
- dockerfile?: string;
65
- /** Image reference (registry/path:tag) */
66
- imageRef?: string;
67
- /** Path to .env file - optional */
68
- envFile?: string;
69
- /** Instance type SKU - required */
70
- instanceType: string;
71
- /** Log visibility setting - required */
72
- logVisibility: logVisibility;
73
- /** Resource usage monitoring setting - optional */
74
- resourceUsageMonitoring?: "enable" | "disable";
75
- }
76
- /** Options for prepareDeployFromVerifiableBuild */
77
- interface PrepareDeployFromVerifiableBuildOpts {
78
- /** App name - required */
79
- name: string;
80
- /** Image reference (registry/path:tag) - required */
81
- imageRef: string;
82
- /** Image digest (sha256:...) - required */
83
- imageDigest: string;
84
- /** Path to .env file - optional */
85
- envFile?: string;
86
- /** Instance type SKU - required */
87
- instanceType: string;
88
- /** Log visibility setting - required */
89
- logVisibility: logVisibility;
90
- /** Resource usage monitoring setting - optional */
91
- resourceUsageMonitoring?: "enable" | "disable";
92
- }
93
- /** Options for prepareUpgradeFromVerifiableBuild */
94
- interface PrepareUpgradeFromVerifiableBuildOpts {
95
- /** Image reference (registry/path:tag) - required */
96
- imageRef: string;
97
- /** Image digest (sha256:...) - required */
98
- imageDigest: string;
99
- /** Path to .env file - optional */
100
- envFile?: string;
101
- /** Instance type SKU - required */
102
- instanceType: string;
103
- /** Log visibility setting - required */
104
- logVisibility: logVisibility;
105
- /** Resource usage monitoring setting - optional */
106
- resourceUsageMonitoring?: "enable" | "disable";
107
- }
108
- /** Gas options for execute functions */
109
- interface GasOpts {
110
- maxFeePerGas?: bigint;
111
- maxPriorityFeePerGas?: bigint;
112
- }
113
- /** Result from executeDeploy */
114
- interface ExecuteDeployResult {
115
- appId: AppId;
116
- txHash: Hex;
117
- appName: string;
118
- imageRef: string;
119
- }
120
- /** Result from executeUpgrade */
121
- interface ExecuteUpgradeResult {
122
- appId: AppId;
123
- txHash: Hex;
124
- imageRef: string;
125
- }
126
- /** Data-only batch for deploy (clients provided by module) */
127
- interface PreparedDeployData {
128
- /** The app ID that will be deployed */
129
- appId: AppId;
130
- /** The salt used for deployment */
131
- salt: Uint8Array;
132
- /** Batch executions to be sent */
133
- executions: Array<{
134
- target: Address;
135
- value: bigint;
136
- callData: Hex;
137
- }>;
138
- }
139
- /** Data-only batch for upgrade (clients provided by module) */
140
- interface PreparedUpgradeData {
141
- /** The app ID being upgraded */
142
- appId: AppId;
143
- /** Batch executions to be sent */
144
- executions: Array<{
145
- target: Address;
146
- value: bigint;
147
- callData: Hex;
148
- }>;
149
- }
150
- /** Prepared deployment ready for execution */
151
- interface PreparedDeploy {
152
- /** The prepared data (executions, appId, etc.) */
153
- data: PreparedDeployData;
154
- /** App name */
155
- appName: string;
156
- /** Final image reference */
157
- imageRef: string;
158
- }
159
- /** Prepared upgrade ready for execution */
160
- interface PreparedUpgrade {
161
- /** The prepared data (executions, appId, etc.) */
162
- data: PreparedUpgradeData;
163
- /** App ID being upgraded */
164
- appId: AppId;
165
- /** Final image reference */
166
- imageRef: string;
167
- }
168
44
  interface LifecycleOpts {
169
45
  gas?: {
170
46
  maxFeePerGas?: bigint;
@@ -173,7 +49,7 @@ interface LifecycleOpts {
173
49
  }
174
50
  interface AppRecord {
175
51
  id: AppId;
176
- owner: Address;
52
+ owner: `0x${string}`;
177
53
  image: string;
178
54
  status: "starting" | "running" | "stopped" | "terminated";
179
55
  createdAt: number;
@@ -201,7 +77,7 @@ interface DeployOptions {
201
77
  }
202
78
  interface DeployResult {
203
79
  /** App ID (contract address) */
204
- appId: AppId;
80
+ appId: string;
205
81
  /** App name */
206
82
  appName: string;
207
83
  /** Final image reference */
@@ -209,13 +85,13 @@ interface DeployResult {
209
85
  /** IP address (if available) */
210
86
  ipAddress?: string;
211
87
  /** Transaction hash */
212
- txHash: Hex;
88
+ txHash: `0x${string}`;
213
89
  }
214
90
  interface EnvironmentConfig {
215
91
  name: string;
216
92
  build: "dev" | "prod";
217
93
  chainID: bigint;
218
- appControllerAddress: Address;
94
+ appControllerAddress: string;
219
95
  permissionControllerAddress: string;
220
96
  erc7702DelegatorAddress: string;
221
97
  kmsServerURL: string;
@@ -339,4 +215,4 @@ interface BillingEnvironmentConfig {
339
215
  billingApiServerURL: string;
340
216
  }
341
217
 
342
- export type { AppId as A, BillingEnvironmentConfig as B, ChainID as C, DeployResult as D, EnvironmentConfig as E, CancelResponse as F, GasOpts as G, ProductSubscriptionResponse as H, ImageDigestResult as I, SubscriptionOpts as J, Logger as L, NoActiveSubscriptionResponse as N, PreparedDeploy as P, Release as R, SubscriptionStatus as S, UpgradeAppOpts as U, PreparedUpgrade as a, DeployAppOpts as b, PrepareDeployOpts as c, PrepareUpgradeOpts as d, PrepareDeployFromVerifiableBuildOpts as e, PrepareUpgradeFromVerifiableBuildOpts as f, ExecuteDeployResult as g, ExecuteUpgradeResult as h, PreparedDeployData as i, PreparedUpgradeData as j, LifecycleOpts as k, logVisibility as l, AppRecord as m, DeployOptions as n, ParsedEnvironment as o, DockerImageConfig as p, AppProfile as q, AppProfileResponse as r, ProductID as s, SubscriptionLineItem as t, CreateSubscriptionResponse as u, CheckoutCreatedResponse as v, AlreadyActiveResponse as w, PaymentIssueResponse as x, SubscribeResponse as y, CancelSuccessResponse as z };
218
+ export type { AppId as A, BillingEnvironmentConfig as B, ChainID as C, DeployResult as D, EnvironmentConfig as E, ImageDigestResult as I, Logger as L, NoActiveSubscriptionResponse as N, ParsedEnvironment as P, Release as R, SubscriptionStatus as S, UpgradeAppOpts as U, DeployAppOpts as a, LifecycleOpts as b, AppRecord as c, DeployOptions as d, DockerImageConfig as e, AppProfile as f, AppProfileResponse as g, ProductID as h, SubscriptionLineItem as i, CreateSubscriptionResponse as j, CheckoutCreatedResponse as k, logVisibility as l, AlreadyActiveResponse as m, PaymentIssueResponse as n, SubscribeResponse as o, CancelSuccessResponse as p, CancelResponse as q, ProductSubscriptionResponse as r, SubscriptionOpts as s };