create-ponder 0.2.2 → 0.2.4

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/dist/index.js CHANGED
@@ -16,7 +16,7 @@ import { default as prompts } from "prompts";
16
16
  // package.json
17
17
  var package_default = {
18
18
  name: "create-ponder",
19
- version: "0.2.2",
19
+ version: "0.2.4",
20
20
  type: "module",
21
21
  description: "A CLI tool to create Ponder apps",
22
22
  license: "MIT",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-ponder",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "type": "module",
5
5
  "description": "A CLI tool to create Ponder apps",
6
6
  "license": "MIT",
@@ -4,29 +4,24 @@
4
4
  // See https://ponder.sh/docs/guides/typescript for more information.
5
5
 
6
6
  declare module "@/generated" {
7
- import type {
8
- PonderContext,
9
- PonderEvent,
10
- PonderEventNames,
11
- PonderApp,
12
- } from "@ponder/core";
7
+ import type { Virtual } from "@ponder/core";
13
8
 
14
- type Config = typeof import("./ponder.config.ts").default;
15
- type Schema = typeof import("./ponder.schema.ts").default;
9
+ type config = typeof import("./ponder.config.ts").default;
10
+ type schema = typeof import("./ponder.schema.ts").default;
16
11
 
17
- export const ponder: PonderApp<Config, Schema>;
18
- export type EventNames = PonderEventNames<Config>;
19
- export type Event<name extends EventNames = EventNames> = PonderEvent<
20
- Config,
12
+ export const ponder: Virtual.Registry<config, schema>;
13
+
14
+ export type EventNames = Virtual.EventNames<config>;
15
+ export type Event<name extends EventNames = EventNames> = Virtual.Event<
16
+ config,
21
17
  name
22
18
  >;
23
- export type Context<name extends EventNames = EventNames> = PonderContext<
24
- Config,
25
- Schema,
19
+ export type Context<name extends EventNames = EventNames> = Virtual.Context<
20
+ config,
21
+ schema,
26
22
  name
27
23
  >;
28
- export type IndexingFunctionArgs<name extends EventNames = EventNames> = {
29
- event: Event<name>;
30
- context: Context<name>;
31
- };
24
+ export type IndexingFunctionArgs<name extends EventNames = EventNames> =
25
+ Virtual.IndexingFunctionArgs<config, schema, name>;
26
+ export type Schema = Virtual.Schema<schema>;
32
27
  }
@@ -4,29 +4,24 @@
4
4
  // See https://ponder.sh/docs/guides/typescript for more information.
5
5
 
6
6
  declare module "@/generated" {
7
- import type {
8
- PonderContext,
9
- PonderEvent,
10
- PonderEventNames,
11
- PonderApp,
12
- } from "@ponder/core";
7
+ import type { Virtual } from "@ponder/core";
13
8
 
14
- type Config = typeof import("./ponder.config.ts").default;
15
- type Schema = typeof import("./ponder.schema.ts").default;
9
+ type config = typeof import("./ponder.config.ts").default;
10
+ type schema = typeof import("./ponder.schema.ts").default;
16
11
 
17
- export const ponder: PonderApp<Config, Schema>;
18
- export type EventNames = PonderEventNames<Config>;
19
- export type Event<name extends EventNames = EventNames> = PonderEvent<
20
- Config,
12
+ export const ponder: Virtual.Registry<config, schema>;
13
+
14
+ export type EventNames = Virtual.EventNames<config>;
15
+ export type Event<name extends EventNames = EventNames> = Virtual.Event<
16
+ config,
21
17
  name
22
18
  >;
23
- export type Context<name extends EventNames = EventNames> = PonderContext<
24
- Config,
25
- Schema,
19
+ export type Context<name extends EventNames = EventNames> = Virtual.Context<
20
+ config,
21
+ schema,
26
22
  name
27
23
  >;
28
- export type IndexingFunctionArgs<name extends EventNames = EventNames> = {
29
- event: Event<name>;
30
- context: Context<name>;
31
- };
24
+ export type IndexingFunctionArgs<name extends EventNames = EventNames> =
25
+ Virtual.IndexingFunctionArgs<config, schema, name>;
26
+ export type Schema = Virtual.Schema<schema>;
32
27
  }
@@ -4,29 +4,24 @@
4
4
  // See https://ponder.sh/docs/guides/typescript for more information.
5
5
 
6
6
  declare module "@/generated" {
7
- import type {
8
- PonderContext,
9
- PonderEvent,
10
- PonderEventNames,
11
- PonderApp,
12
- } from "@ponder/core";
7
+ import type { Virtual } from "@ponder/core";
13
8
 
14
- type Config = typeof import("./ponder.config.ts").default;
15
- type Schema = typeof import("./ponder.schema.ts").default;
9
+ type config = typeof import("./ponder.config.ts").default;
10
+ type schema = typeof import("./ponder.schema.ts").default;
16
11
 
17
- export const ponder: PonderApp<Config, Schema>;
18
- export type EventNames = PonderEventNames<Config>;
19
- export type Event<name extends EventNames = EventNames> = PonderEvent<
20
- Config,
12
+ export const ponder: Virtual.Registry<config, schema>;
13
+
14
+ export type EventNames = Virtual.EventNames<config>;
15
+ export type Event<name extends EventNames = EventNames> = Virtual.Event<
16
+ config,
21
17
  name
22
18
  >;
23
- export type Context<name extends EventNames = EventNames> = PonderContext<
24
- Config,
25
- Schema,
19
+ export type Context<name extends EventNames = EventNames> = Virtual.Context<
20
+ config,
21
+ schema,
26
22
  name
27
23
  >;
28
- export type IndexingFunctionArgs<name extends EventNames = EventNames> = {
29
- event: Event<name>;
30
- context: Context<name>;
31
- };
24
+ export type IndexingFunctionArgs<name extends EventNames = EventNames> =
25
+ Virtual.IndexingFunctionArgs<config, schema, name>;
26
+ export type Schema = Virtual.Schema<schema>;
32
27
  }
@@ -4,29 +4,24 @@
4
4
  // See https://ponder.sh/docs/guides/typescript for more information.
5
5
 
6
6
  declare module "@/generated" {
7
- import type {
8
- PonderContext,
9
- PonderEvent,
10
- PonderEventNames,
11
- PonderApp,
12
- } from "@ponder/core";
7
+ import type { Virtual } from "@ponder/core";
13
8
 
14
- type Config = typeof import("./ponder.config.ts").default;
15
- type Schema = typeof import("./ponder.schema.ts").default;
9
+ type config = typeof import("./ponder.config.ts").default;
10
+ type schema = typeof import("./ponder.schema.ts").default;
16
11
 
17
- export const ponder: PonderApp<Config, Schema>;
18
- export type EventNames = PonderEventNames<Config>;
19
- export type Event<name extends EventNames = EventNames> = PonderEvent<
20
- Config,
12
+ export const ponder: Virtual.Registry<config, schema>;
13
+
14
+ export type EventNames = Virtual.EventNames<config>;
15
+ export type Event<name extends EventNames = EventNames> = Virtual.Event<
16
+ config,
21
17
  name
22
18
  >;
23
- export type Context<name extends EventNames = EventNames> = PonderContext<
24
- Config,
25
- Schema,
19
+ export type Context<name extends EventNames = EventNames> = Virtual.Context<
20
+ config,
21
+ schema,
26
22
  name
27
23
  >;
28
- export type IndexingFunctionArgs<name extends EventNames = EventNames> = {
29
- event: Event<name>;
30
- context: Context<name>;
31
- };
24
+ export type IndexingFunctionArgs<name extends EventNames = EventNames> =
25
+ Virtual.IndexingFunctionArgs<config, schema, name>;
26
+ export type Schema = Virtual.Schema<schema>;
32
27
  }
@@ -4,29 +4,24 @@
4
4
  // See https://ponder.sh/docs/guides/typescript for more information.
5
5
 
6
6
  declare module "@/generated" {
7
- import type {
8
- PonderContext,
9
- PonderEvent,
10
- PonderEventNames,
11
- PonderApp,
12
- } from "@ponder/core";
7
+ import type { Virtual } from "@ponder/core";
13
8
 
14
- type Config = typeof import("./ponder.config.ts").default;
15
- type Schema = typeof import("./ponder.schema.ts").default;
9
+ type config = typeof import("./ponder.config.ts").default;
10
+ type schema = typeof import("./ponder.schema.ts").default;
16
11
 
17
- export const ponder: PonderApp<Config, Schema>;
18
- export type EventNames = PonderEventNames<Config>;
19
- export type Event<name extends EventNames = EventNames> = PonderEvent<
20
- Config,
12
+ export const ponder: Virtual.Registry<config, schema>;
13
+
14
+ export type EventNames = Virtual.EventNames<config>;
15
+ export type Event<name extends EventNames = EventNames> = Virtual.Event<
16
+ config,
21
17
  name
22
18
  >;
23
- export type Context<name extends EventNames = EventNames> = PonderContext<
24
- Config,
25
- Schema,
19
+ export type Context<name extends EventNames = EventNames> = Virtual.Context<
20
+ config,
21
+ schema,
26
22
  name
27
23
  >;
28
- export type IndexingFunctionArgs<name extends EventNames = EventNames> = {
29
- event: Event<name>;
30
- context: Context<name>;
31
- };
24
+ export type IndexingFunctionArgs<name extends EventNames = EventNames> =
25
+ Virtual.IndexingFunctionArgs<config, schema, name>;
26
+ export type Schema = Virtual.Schema<schema>;
32
27
  }
@@ -4,29 +4,24 @@
4
4
  // See https://ponder.sh/docs/guides/typescript for more information.
5
5
 
6
6
  declare module "@/generated" {
7
- import type {
8
- PonderContext,
9
- PonderEvent,
10
- PonderEventNames,
11
- PonderApp,
12
- } from "@ponder/core";
7
+ import type { Virtual } from "@ponder/core";
13
8
 
14
- type Config = typeof import("./ponder.config.ts").default;
15
- type Schema = typeof import("./ponder.schema.ts").default;
9
+ type config = typeof import("./ponder.config.ts").default;
10
+ type schema = typeof import("./ponder.schema.ts").default;
16
11
 
17
- export const ponder: PonderApp<Config, Schema>;
18
- export type EventNames = PonderEventNames<Config>;
19
- export type Event<name extends EventNames = EventNames> = PonderEvent<
20
- Config,
12
+ export const ponder: Virtual.Registry<config, schema>;
13
+
14
+ export type EventNames = Virtual.EventNames<config>;
15
+ export type Event<name extends EventNames = EventNames> = Virtual.Event<
16
+ config,
21
17
  name
22
18
  >;
23
- export type Context<name extends EventNames = EventNames> = PonderContext<
24
- Config,
25
- Schema,
19
+ export type Context<name extends EventNames = EventNames> = Virtual.Context<
20
+ config,
21
+ schema,
26
22
  name
27
23
  >;
28
- export type IndexingFunctionArgs<name extends EventNames = EventNames> = {
29
- event: Event<name>;
30
- context: Context<name>;
31
- };
24
+ export type IndexingFunctionArgs<name extends EventNames = EventNames> =
25
+ Virtual.IndexingFunctionArgs<config, schema, name>;
26
+ export type Schema = Virtual.Schema<schema>;
32
27
  }
@@ -4,29 +4,24 @@
4
4
  // See https://ponder.sh/docs/guides/typescript for more information.
5
5
 
6
6
  declare module "@/generated" {
7
- import type {
8
- PonderContext,
9
- PonderEvent,
10
- PonderEventNames,
11
- PonderApp,
12
- } from "@ponder/core";
7
+ import type { Virtual } from "@ponder/core";
13
8
 
14
- type Config = typeof import("./ponder.config.ts").default;
15
- type Schema = typeof import("./ponder.schema.ts").default;
9
+ type config = typeof import("./ponder.config.ts").default;
10
+ type schema = typeof import("./ponder.schema.ts").default;
16
11
 
17
- export const ponder: PonderApp<Config, Schema>;
18
- export type EventNames = PonderEventNames<Config>;
19
- export type Event<name extends EventNames = EventNames> = PonderEvent<
20
- Config,
12
+ export const ponder: Virtual.Registry<config, schema>;
13
+
14
+ export type EventNames = Virtual.EventNames<config>;
15
+ export type Event<name extends EventNames = EventNames> = Virtual.Event<
16
+ config,
21
17
  name
22
18
  >;
23
- export type Context<name extends EventNames = EventNames> = PonderContext<
24
- Config,
25
- Schema,
19
+ export type Context<name extends EventNames = EventNames> = Virtual.Context<
20
+ config,
21
+ schema,
26
22
  name
27
23
  >;
28
- export type IndexingFunctionArgs<name extends EventNames = EventNames> = {
29
- event: Event<name>;
30
- context: Context<name>;
31
- };
24
+ export type IndexingFunctionArgs<name extends EventNames = EventNames> =
25
+ Virtual.IndexingFunctionArgs<config, schema, name>;
26
+ export type Schema = Virtual.Schema<schema>;
32
27
  }
@@ -4,29 +4,24 @@
4
4
  // See https://ponder.sh/docs/guides/typescript for more information.
5
5
 
6
6
  declare module "@/generated" {
7
- import type {
8
- PonderContext,
9
- PonderEvent,
10
- PonderEventNames,
11
- PonderApp,
12
- } from "@ponder/core";
7
+ import type { Virtual } from "@ponder/core";
13
8
 
14
- type Config = typeof import("./ponder.config.ts").default;
15
- type Schema = typeof import("./ponder.schema.ts").default;
9
+ type config = typeof import("./ponder.config.ts").default;
10
+ type schema = typeof import("./ponder.schema.ts").default;
16
11
 
17
- export const ponder: PonderApp<Config, Schema>;
18
- export type EventNames = PonderEventNames<Config>;
19
- export type Event<name extends EventNames = EventNames> = PonderEvent<
20
- Config,
12
+ export const ponder: Virtual.Registry<config, schema>;
13
+
14
+ export type EventNames = Virtual.EventNames<config>;
15
+ export type Event<name extends EventNames = EventNames> = Virtual.Event<
16
+ config,
21
17
  name
22
18
  >;
23
- export type Context<name extends EventNames = EventNames> = PonderContext<
24
- Config,
25
- Schema,
19
+ export type Context<name extends EventNames = EventNames> = Virtual.Context<
20
+ config,
21
+ schema,
26
22
  name
27
23
  >;
28
- export type IndexingFunctionArgs<name extends EventNames = EventNames> = {
29
- event: Event<name>;
30
- context: Context<name>;
31
- };
24
+ export type IndexingFunctionArgs<name extends EventNames = EventNames> =
25
+ Virtual.IndexingFunctionArgs<config, schema, name>;
26
+ export type Schema = Virtual.Schema<schema>;
32
27
  }
@@ -4,29 +4,24 @@
4
4
  // See https://ponder.sh/docs/guides/typescript for more information.
5
5
 
6
6
  declare module "@/generated" {
7
- import type {
8
- PonderContext,
9
- PonderEvent,
10
- PonderEventNames,
11
- PonderApp,
12
- } from "@ponder/core";
7
+ import type { Virtual } from "@ponder/core";
13
8
 
14
- type Config = typeof import("./ponder.config.ts").default;
15
- type Schema = typeof import("./ponder.schema.ts").default;
9
+ type config = typeof import("./ponder.config.ts").default;
10
+ type schema = typeof import("./ponder.schema.ts").default;
16
11
 
17
- export const ponder: PonderApp<Config, Schema>;
18
- export type EventNames = PonderEventNames<Config>;
19
- export type Event<name extends EventNames = EventNames> = PonderEvent<
20
- Config,
12
+ export const ponder: Virtual.Registry<config, schema>;
13
+
14
+ export type EventNames = Virtual.EventNames<config>;
15
+ export type Event<name extends EventNames = EventNames> = Virtual.Event<
16
+ config,
21
17
  name
22
18
  >;
23
- export type Context<name extends EventNames = EventNames> = PonderContext<
24
- Config,
25
- Schema,
19
+ export type Context<name extends EventNames = EventNames> = Virtual.Context<
20
+ config,
21
+ schema,
26
22
  name
27
23
  >;
28
- export type IndexingFunctionArgs<name extends EventNames = EventNames> = {
29
- event: Event<name>;
30
- context: Context<name>;
31
- };
24
+ export type IndexingFunctionArgs<name extends EventNames = EventNames> =
25
+ Virtual.IndexingFunctionArgs<config, schema, name>;
26
+ export type Schema = Virtual.Schema<schema>;
32
27
  }
@@ -4,29 +4,24 @@
4
4
  // See https://ponder.sh/docs/guides/typescript for more information.
5
5
 
6
6
  declare module "@/generated" {
7
- import type {
8
- PonderContext,
9
- PonderEvent,
10
- PonderEventNames,
11
- PonderApp,
12
- } from "@ponder/core";
7
+ import type { Virtual } from "@ponder/core";
13
8
 
14
- type Config = typeof import("./ponder.config.ts").default;
15
- type Schema = typeof import("./ponder.schema.ts").default;
9
+ type config = typeof import("./ponder.config.ts").default;
10
+ type schema = typeof import("./ponder.schema.ts").default;
16
11
 
17
- export const ponder: PonderApp<Config, Schema>;
18
- export type EventNames = PonderEventNames<Config>;
19
- export type Event<name extends EventNames = EventNames> = PonderEvent<
20
- Config,
12
+ export const ponder: Virtual.Registry<config, schema>;
13
+
14
+ export type EventNames = Virtual.EventNames<config>;
15
+ export type Event<name extends EventNames = EventNames> = Virtual.Event<
16
+ config,
21
17
  name
22
18
  >;
23
- export type Context<name extends EventNames = EventNames> = PonderContext<
24
- Config,
25
- Schema,
19
+ export type Context<name extends EventNames = EventNames> = Virtual.Context<
20
+ config,
21
+ schema,
26
22
  name
27
23
  >;
28
- export type IndexingFunctionArgs<name extends EventNames = EventNames> = {
29
- event: Event<name>;
30
- context: Context<name>;
31
- };
24
+ export type IndexingFunctionArgs<name extends EventNames = EventNames> =
25
+ Virtual.IndexingFunctionArgs<config, schema, name>;
26
+ export type Schema = Virtual.Schema<schema>;
32
27
  }
@@ -4,29 +4,24 @@
4
4
  // See https://ponder.sh/docs/guides/typescript for more information.
5
5
 
6
6
  declare module "@/generated" {
7
- import type {
8
- PonderContext,
9
- PonderEvent,
10
- PonderEventNames,
11
- PonderApp,
12
- } from "@ponder/core";
7
+ import type { Virtual } from "@ponder/core";
13
8
 
14
- type Config = typeof import("./ponder.config.ts").default;
15
- type Schema = typeof import("./ponder.schema.ts").default;
9
+ type config = typeof import("./ponder.config.ts").default;
10
+ type schema = typeof import("./ponder.schema.ts").default;
16
11
 
17
- export const ponder: PonderApp<Config, Schema>;
18
- export type EventNames = PonderEventNames<Config>;
19
- export type Event<name extends EventNames = EventNames> = PonderEvent<
20
- Config,
12
+ export const ponder: Virtual.Registry<config, schema>;
13
+
14
+ export type EventNames = Virtual.EventNames<config>;
15
+ export type Event<name extends EventNames = EventNames> = Virtual.Event<
16
+ config,
21
17
  name
22
18
  >;
23
- export type Context<name extends EventNames = EventNames> = PonderContext<
24
- Config,
25
- Schema,
19
+ export type Context<name extends EventNames = EventNames> = Virtual.Context<
20
+ config,
21
+ schema,
26
22
  name
27
23
  >;
28
- export type IndexingFunctionArgs<name extends EventNames = EventNames> = {
29
- event: Event<name>;
30
- context: Context<name>;
31
- };
24
+ export type IndexingFunctionArgs<name extends EventNames = EventNames> =
25
+ Virtual.IndexingFunctionArgs<config, schema, name>;
26
+ export type Schema = Virtual.Schema<schema>;
32
27
  }