@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.
- package/VERSION +2 -2
- package/dist/billing.cjs.map +1 -1
- package/dist/billing.d.cts +1 -1
- package/dist/billing.d.ts +1 -1
- package/dist/billing.js +2 -2
- package/dist/{chunk-GB4GM4C2.js → chunk-2RORGPLX.js} +2 -2
- package/dist/chunk-2RORGPLX.js.map +1 -0
- package/dist/{chunk-O7EU5JL7.js → chunk-4SKRNFKQ.js} +105 -535
- package/dist/chunk-4SKRNFKQ.js.map +1 -0
- package/dist/{chunk-FY7UU55U.js → chunk-ZEZS5CNB.js} +30 -106
- package/dist/chunk-ZEZS5CNB.js.map +1 -0
- package/dist/{compute-CF2HOXed.d.ts → compute-B_ibIORD.d.cts} +15 -101
- package/dist/{compute-CbmjA8kJ.d.cts → compute-gpepEsn3.d.ts} +15 -101
- package/dist/compute.cjs +62 -850
- package/dist/compute.cjs.map +1 -1
- package/dist/compute.d.cts +2 -2
- package/dist/compute.d.ts +2 -2
- package/dist/compute.js +2 -2
- package/dist/{index-D2QufVB9.d.ts → index-D-SUX3IG.d.cts} +6 -130
- package/dist/{index-D2QufVB9.d.cts → index-D-SUX3IG.d.ts} +6 -130
- package/dist/index.cjs +100 -989
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +231 -334
- package/dist/index.d.ts +231 -334
- package/dist/index.js +3 -376
- package/dist/index.js.map +1 -1
- package/package.json +1 -2
- package/dist/chunk-FY7UU55U.js.map +0 -1
- package/dist/chunk-GB4GM4C2.js.map +0 -1
- package/dist/chunk-O7EU5JL7.js.map +0 -1
package/dist/compute.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { A as AppModule,
|
|
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,
|
|
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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Address
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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,
|
|
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
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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,
|
|
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 };
|