Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27,649 changes: 13,261 additions & 14,388 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions packages/api/src/metrics/OpenTelemetryServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ export class OpenTelemetryServer extends SequencerModule<OpenTelemetryServerConf
);

const metricReader =
metrics?.enabled ?? true
(metrics?.enabled ?? true)
? new PrometheusExporter(metrics?.prometheus)
: undefined;

const instrumentations =
metrics?.enabled ?? true
(metrics?.enabled ?? true)
? [
new RuntimeNodeInstrumentation({
monitoringPrecision: metrics?.nodeScrapeInterval ?? 5000,
Expand All @@ -75,7 +75,7 @@ export class OpenTelemetryServer extends SequencerModule<OpenTelemetryServerConf
: [];

const traceExporter =
tracing?.enabled ?? true
(tracing?.enabled ?? true)
? new OTLPTraceExporter(tracing?.otlp)
: undefined;

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@
"peerDependencies": {
"@proto-kit/api": "*",
"@proto-kit/common": "*",
"@proto-kit/explorer": "*",
"@proto-kit/library": "*",
"@proto-kit/module": "*",
"@proto-kit/protocol": "*",
"@proto-kit/sdk": "*",
"@proto-kit/sequencer": "*",
"@proto-kit/stack": "*",
"@proto-kit/indexer": "*",
"o1js": "^2.10.0",
"tsyringe": "^4.10.0"
},
Expand Down
5 changes: 2 additions & 3 deletions packages/cli/src/commands/bridge/withdraw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ export const withdrawCommand: CommandModule<{}, WithdrawArgs> = {
),
handler: async (args) => {
try {
const { default: withdraw } = await import(
"../../scripts/bridge/withdraw"
);
const { default: withdraw } =
await import("../../scripts/bridge/withdraw");
const { parseEnvArgs } = await import("../../utils/loadEnv");
await withdraw(
{
Expand Down
12 changes: 9 additions & 3 deletions packages/cli/src/commands/explorer/explorerStart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ interface ExplorerStartArgs {
"indexer-url"?: string;
"dashboard-title"?: string;
"dashboard-slogan"?: string;
"explorer-image"?: string;
}

export const explorerStartCommand: CommandModule<{}, ExplorerStartArgs> = {
Expand All @@ -31,17 +32,22 @@ export const explorerStartCommand: CommandModule<{}, ExplorerStartArgs> = {
type: "string",
default: "Explore your Protokit AppChain",
describe: "Slogan for the explorer dashboard",
})
.option("explorer-image", {
type: "string",
default: "ghcr.io/proto-kit/explorer:latest",
describe: "Docker image to use for explorer UI",
}),
handler: async (args) => {
try {
const { default: explorerStart } = await import(
"../../scripts/explorer/start"
);
const { default: explorerStart } =
await import("../../scripts/explorer/start");
await explorerStart({
port: args.port,
indexerUrl: args["indexer-url"],
dashboardTitle: args["dashboard-title"],
dashboardSlogan: args["dashboard-slogan"],
explorerImage: args["explorer-image"],
});
process.exit(0);
} catch (error) {
Expand Down
5 changes: 2 additions & 3 deletions packages/cli/src/commands/generateGqlDocs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ export const generateGqlDocsCommand: CommandModule<{}, GenerateGqlDocsArgs> = {
}),
handler: async (args) => {
try {
const { default: generateGqlDocs } = await import(
"../scripts/graphqlDocs/generateGqlDocs"
);
const { default: generateGqlDocs } =
await import("../scripts/graphqlDocs/generateGqlDocs");
await generateGqlDocs(args);
process.exit(0);
} catch (error) {
Expand Down
5 changes: 2 additions & 3 deletions packages/cli/src/commands/lightnet/faucet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ export const faucetCommand: CommandModule<{}, FaucetArgs> = {
handler: async (args) => {
try {
const { default: faucet } = await import("../../scripts/lightnet/faucet");
const { loadEnvironmentVariables, parseEnvArgs } = await import(
"../../utils/loadEnv"
);
const { loadEnvironmentVariables, parseEnvArgs } =
await import("../../utils/loadEnv");
loadEnvironmentVariables({
envPath: args["env-path"],
env: args.env!,
Expand Down
5 changes: 2 additions & 3 deletions packages/cli/src/commands/lightnet/initialize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ export const initializeCommand: CommandModule<{}, InitializeArgs> = {
builder: (yarg) => addEnvironmentOptions(yarg),
handler: async (args) => {
try {
const { default: lightnetInitialize } = await import(
"../../scripts/lightnet/lightnetInitialize"
);
const { default: lightnetInitialize } =
await import("../../scripts/lightnet/lightnetInitialize");
const { parseEnvArgs } = await import("../../utils/loadEnv");
await lightnetInitialize({
envPath: args["env-path"],
Expand Down
5 changes: 2 additions & 3 deletions packages/cli/src/commands/lightnet/waitForNetwork.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ export const waitForNetworkCommand: CommandModule<{}, WaitForNetworkArgs> = {
builder: (yarg) => addEnvironmentOptions(yarg),
handler: async (args) => {
try {
const { default: waitForNetwork } = await import(
"../../scripts/lightnet/wait-for-network"
);
const { default: waitForNetwork } =
await import("../../scripts/lightnet/wait-for-network");
const { parseEnvArgs } = await import("../../utils/loadEnv");
await waitForNetwork({
envPath: args["env-path"],
Expand Down
5 changes: 2 additions & 3 deletions packages/cli/src/commands/run/generateKeys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ export const generateKeysCommand: CommandModule<{}, GenerateKeysArgs> = {
}),
handler: async (args) => {
try {
const { default: generateKeys } = await import(
"../../scripts/generateKeys"
);
const { default: generateKeys } =
await import("../../scripts/generateKeys");
await generateKeys({ count: args.count });
process.exit(0);
} catch (error) {
Expand Down
5 changes: 2 additions & 3 deletions packages/cli/src/commands/settlement/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ export const deployCommand: CommandModule<{}, DeployArgs> = {
builder: (yarg) => addEnvironmentOptions(yarg),
handler: async (args) => {
try {
const { default: deploy } = await import(
"../../scripts/settlement/deploy"
);
const { default: deploy } =
await import("../../scripts/settlement/deploy");
const { parseEnvArgs } = await import("../../utils/loadEnv");
await deploy({
envPath: args["env-path"],
Expand Down
5 changes: 2 additions & 3 deletions packages/cli/src/commands/settlement/tokenDeploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@ export const tokenDeployCommand: CommandModule<{}, TokenDeployArgs> = {
),
handler: async (args) => {
try {
const { default: tokenDeploy } = await import(
"../../scripts/settlement/deploy-token"
);
const { default: tokenDeploy } =
await import("../../scripts/settlement/deploy-token");
const { parseEnvArgs } = await import("../../utils/loadEnv");
await tokenDeploy(
{
Expand Down
5 changes: 2 additions & 3 deletions packages/cli/src/commands/wizard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ export const wizardCommand: CommandModule<{}> = {
builder: (yarg) => yarg,
handler: async () => {
try {
const { default: createEnvironment } = await import(
"../scripts/env/create-environment"
);
const { default: createEnvironment } =
await import("../scripts/env/create-environment");
await createEnvironment();
process.exit(0);
} catch (error) {
Expand Down
Loading