@layr-labs/ecloud-cli 0.3.1-dev → 0.3.1-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.
- package/VERSION +2 -2
- package/dist/commands/billing/cancel.js +12 -26
- package/dist/commands/billing/cancel.js.map +1 -1
- package/dist/commands/billing/status.js +12 -26
- package/dist/commands/billing/status.js.map +1 -1
- package/dist/commands/billing/subscribe.js +12 -26
- package/dist/commands/billing/subscribe.js.map +1 -1
- package/dist/commands/compute/app/deploy.js +6 -3
- package/dist/commands/compute/app/deploy.js.map +1 -1
- package/dist/commands/compute/app/info.js +1 -1
- package/dist/commands/compute/app/info.js.map +1 -1
- package/dist/commands/compute/app/list.js +1 -1
- package/dist/commands/compute/app/list.js.map +1 -1
- package/dist/commands/compute/app/logs.js +5 -2
- package/dist/commands/compute/app/logs.js.map +1 -1
- package/dist/commands/compute/app/profile/set.js +5 -2
- package/dist/commands/compute/app/profile/set.js.map +1 -1
- package/dist/commands/compute/app/releases.js +1 -1
- package/dist/commands/compute/app/releases.js.map +1 -1
- package/dist/commands/compute/app/start.js +5 -2
- package/dist/commands/compute/app/start.js.map +1 -1
- package/dist/commands/compute/app/stop.js +5 -2
- package/dist/commands/compute/app/stop.js.map +1 -1
- package/dist/commands/compute/app/terminate.js +5 -2
- package/dist/commands/compute/app/terminate.js.map +1 -1
- package/dist/commands/compute/app/upgrade.js +6 -3
- package/dist/commands/compute/app/upgrade.js.map +1 -1
- package/dist/commands/compute/build/info.js +10 -7
- package/dist/commands/compute/build/info.js.map +1 -1
- package/dist/commands/compute/build/list.js +10 -7
- package/dist/commands/compute/build/list.js.map +1 -1
- package/dist/commands/compute/build/logs.js +10 -7
- package/dist/commands/compute/build/logs.js.map +1 -1
- package/dist/commands/compute/build/status.js +10 -7
- package/dist/commands/compute/build/status.js.map +1 -1
- package/dist/commands/compute/build/submit.js +6 -3
- package/dist/commands/compute/build/submit.js.map +1 -1
- package/dist/commands/compute/build/verify.js +10 -7
- package/dist/commands/compute/build/verify.js.map +1 -1
- package/dist/commands/compute/undelegate.js +5 -2
- package/dist/commands/compute/undelegate.js.map +1 -1
- package/package.json +2 -2
|
@@ -156,7 +156,7 @@ var APPS_DIR = path2.join(CONFIG_DIR, "apps");
|
|
|
156
156
|
|
|
157
157
|
// src/utils/version.ts
|
|
158
158
|
function getCliVersion() {
|
|
159
|
-
return true ? "0.3.1-dev" : "0.0.0";
|
|
159
|
+
return true ? "0.3.1-dev.0" : "0.0.0";
|
|
160
160
|
}
|
|
161
161
|
function getClientId() {
|
|
162
162
|
return `ecloud-cli/v${getCliVersion()}`;
|
|
@@ -312,11 +312,14 @@ import {
|
|
|
312
312
|
createBuildModule,
|
|
313
313
|
getEnvironmentConfig as getEnvironmentConfig3,
|
|
314
314
|
requirePrivateKey,
|
|
315
|
-
getPrivateKeyWithSource
|
|
315
|
+
getPrivateKeyWithSource,
|
|
316
|
+
addHexPrefix as addHexPrefix2
|
|
316
317
|
} from "@layr-labs/ecloud-sdk";
|
|
318
|
+
import { createWalletClient, custom } from "viem";
|
|
319
|
+
import { privateKeyToAccount as privateKeyToAccount4 } from "viem/accounts";
|
|
317
320
|
async function createBuildClient(flags) {
|
|
318
321
|
flags = await validateCommonFlags(flags, { requirePrivateKey: false });
|
|
319
|
-
const environment = flags.environment
|
|
322
|
+
const environment = flags.environment;
|
|
320
323
|
const environmentConfig = getEnvironmentConfig3(environment);
|
|
321
324
|
const rpcUrl = flags["rpc-url"] || environmentConfig.defaultRPCURL;
|
|
322
325
|
let walletClient;
|
|
@@ -426,8 +429,8 @@ function assertBuildId(buildId) {
|
|
|
426
429
|
}
|
|
427
430
|
|
|
428
431
|
// src/commands/compute/build/status.ts
|
|
429
|
-
import { privateKeyToAccount as
|
|
430
|
-
import { addHexPrefix as
|
|
432
|
+
import { privateKeyToAccount as privateKeyToAccount5 } from "viem/accounts";
|
|
433
|
+
import { addHexPrefix as addHexPrefix3 } from "@layr-labs/ecloud-sdk";
|
|
431
434
|
|
|
432
435
|
// src/utils/buildInfo.ts
|
|
433
436
|
import { BUILD_STATUS as BUILD_STATUS2 } from "@layr-labs/ecloud-sdk";
|
|
@@ -486,8 +489,8 @@ var BuildStatus = class _BuildStatus extends Command {
|
|
|
486
489
|
const client = await createBuildClient(validatedFlags);
|
|
487
490
|
let buildId = args.buildId;
|
|
488
491
|
if (!buildId) {
|
|
489
|
-
const billingAddress =
|
|
490
|
-
|
|
492
|
+
const billingAddress = privateKeyToAccount5(
|
|
493
|
+
addHexPrefix3(validatedFlags["private-key"])
|
|
491
494
|
).address;
|
|
492
495
|
buildId = await promptBuildIdFromRecentBuilds({ client, billingAddress, limit: 20 });
|
|
493
496
|
} else {
|