@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
|
@@ -155,7 +155,7 @@ var APPS_DIR = path2.join(CONFIG_DIR, "apps");
|
|
|
155
155
|
|
|
156
156
|
// src/utils/version.ts
|
|
157
157
|
function getCliVersion() {
|
|
158
|
-
return true ? "0.3.1-dev" : "0.0.0";
|
|
158
|
+
return true ? "0.3.1-dev.0" : "0.0.0";
|
|
159
159
|
}
|
|
160
160
|
function getClientId() {
|
|
161
161
|
return `ecloud-cli/v${getCliVersion()}`;
|
|
@@ -311,11 +311,14 @@ import {
|
|
|
311
311
|
createBuildModule,
|
|
312
312
|
getEnvironmentConfig as getEnvironmentConfig3,
|
|
313
313
|
requirePrivateKey,
|
|
314
|
-
getPrivateKeyWithSource
|
|
314
|
+
getPrivateKeyWithSource,
|
|
315
|
+
addHexPrefix as addHexPrefix2
|
|
315
316
|
} from "@layr-labs/ecloud-sdk";
|
|
317
|
+
import { createWalletClient, custom } from "viem";
|
|
318
|
+
import { privateKeyToAccount as privateKeyToAccount4 } from "viem/accounts";
|
|
316
319
|
async function createBuildClient(flags) {
|
|
317
320
|
flags = await validateCommonFlags(flags, { requirePrivateKey: false });
|
|
318
|
-
const environment = flags.environment
|
|
321
|
+
const environment = flags.environment;
|
|
319
322
|
const environmentConfig = getEnvironmentConfig3(environment);
|
|
320
323
|
const rpcUrl = flags["rpc-url"] || environmentConfig.defaultRPCURL;
|
|
321
324
|
let walletClient;
|
|
@@ -487,8 +490,8 @@ function assertBuildId(buildId) {
|
|
|
487
490
|
}
|
|
488
491
|
|
|
489
492
|
// src/commands/compute/build/info.ts
|
|
490
|
-
import { privateKeyToAccount as
|
|
491
|
-
import { addHexPrefix as
|
|
493
|
+
import { privateKeyToAccount as privateKeyToAccount5 } from "viem/accounts";
|
|
494
|
+
import { addHexPrefix as addHexPrefix3 } from "@layr-labs/ecloud-sdk";
|
|
492
495
|
var BuildInfo = class _BuildInfo extends Command {
|
|
493
496
|
static description = "Show full build details (including dependency builds)";
|
|
494
497
|
static examples = [`$ ecloud compute build info 92d28b52-5f26-43ff-8c0b-3340f129e631`];
|
|
@@ -512,8 +515,8 @@ var BuildInfo = class _BuildInfo extends Command {
|
|
|
512
515
|
const client = await createBuildClient(validatedFlags);
|
|
513
516
|
let buildId = args.buildId;
|
|
514
517
|
if (!buildId) {
|
|
515
|
-
const billingAddress =
|
|
516
|
-
|
|
518
|
+
const billingAddress = privateKeyToAccount5(
|
|
519
|
+
addHexPrefix3(validatedFlags["private-key"])
|
|
517
520
|
).address;
|
|
518
521
|
buildId = await promptBuildIdFromRecentBuilds({ client, billingAddress, limit: 20 });
|
|
519
522
|
} else {
|