create-ponder 0.1.6 → 0.1.8
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 +352 -207
- package/package.json +4 -2
- package/templates/empty/ponder-env.d.ts +25 -3
- package/templates/etherscan/ponder-env.d.ts +25 -3
- package/templates/feature-factory/ponder-env.d.ts +25 -3
- package/templates/feature-filter/ponder-env.d.ts +25 -3
- package/templates/feature-multichain/ponder-env.d.ts +25 -3
- package/templates/feature-proxy/ponder-env.d.ts +25 -3
- package/templates/feature-read-contract/ponder-env.d.ts +25 -3
- package/templates/project-friendtech/ponder-env.d.ts +25 -3
- package/templates/project-uniswap-v3-flash/ponder-env.d.ts +25 -3
- package/templates/reference-erc20/ponder-env.d.ts +25 -3
- package/templates/reference-erc721/ponder-env.d.ts +25 -3
- package/templates/subgraph/_dot_env.local +5 -0
- package/templates/subgraph/_dot_eslintrc.json +3 -0
- package/templates/subgraph/_dot_gitignore +18 -0
- package/templates/subgraph/package.json +26 -0
- package/templates/subgraph/ponder-env.d.ts +32 -0
- package/templates/subgraph/ponder.schema.ts +8 -0
- package/templates/subgraph/tsconfig.json +26 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-ponder",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A CLI tool to create Ponder apps",
|
|
6
6
|
"license": "MIT",
|
|
@@ -26,7 +26,9 @@
|
|
|
26
26
|
"prettier": "^3.1.0",
|
|
27
27
|
"prompts": "^2.4.2",
|
|
28
28
|
"update-check": "^1.5.4",
|
|
29
|
-
"validate-npm-package-name": "^5.0.0"
|
|
29
|
+
"validate-npm-package-name": "^5.0.0",
|
|
30
|
+
"viem": "^2.0.10",
|
|
31
|
+
"yaml": "^2.3.4"
|
|
30
32
|
},
|
|
31
33
|
"devDependencies": {
|
|
32
34
|
"@types/fs-extra": "^11.0.4",
|
|
@@ -1,10 +1,32 @@
|
|
|
1
|
+
// This file enables type checking and editor autocomplete for this Ponder project.
|
|
2
|
+
// After upgrading, you may find that changes have been made to this file.
|
|
3
|
+
// If this happens, please commit the changes. Do not manually edit this file.
|
|
4
|
+
// See https://ponder.sh/docs/guides/typescript for more information.
|
|
5
|
+
|
|
1
6
|
declare module "@/generated" {
|
|
2
|
-
import type {
|
|
7
|
+
import type {
|
|
8
|
+
PonderContext,
|
|
9
|
+
PonderEvent,
|
|
10
|
+
PonderEventNames,
|
|
11
|
+
PonderApp,
|
|
12
|
+
} from "@ponder/core";
|
|
3
13
|
|
|
4
14
|
type Config = typeof import("./ponder.config.ts").default;
|
|
5
15
|
type Schema = typeof import("./ponder.schema.ts").default;
|
|
6
16
|
|
|
7
17
|
export const ponder: PonderApp<Config, Schema>;
|
|
8
|
-
|
|
9
|
-
export type
|
|
18
|
+
export type EventNames = PonderEventNames<Config>;
|
|
19
|
+
export type Event<name extends EventNames = EventNames> = PonderEvent<
|
|
20
|
+
Config,
|
|
21
|
+
name
|
|
22
|
+
>;
|
|
23
|
+
export type Context<name extends EventNames = EventNames> = PonderContext<
|
|
24
|
+
Config,
|
|
25
|
+
Schema,
|
|
26
|
+
name
|
|
27
|
+
>;
|
|
28
|
+
export type IndexingFunctionArgs<name extends EventNames = EventNames> = {
|
|
29
|
+
event: Event<name>;
|
|
30
|
+
context: Context<name>;
|
|
31
|
+
};
|
|
10
32
|
}
|
|
@@ -1,10 +1,32 @@
|
|
|
1
|
+
// This file enables type checking and editor autocomplete for this Ponder project.
|
|
2
|
+
// After upgrading, you may find that changes have been made to this file.
|
|
3
|
+
// If this happens, please commit the changes. Do not manually edit this file.
|
|
4
|
+
// See https://ponder.sh/docs/guides/typescript for more information.
|
|
5
|
+
|
|
1
6
|
declare module "@/generated" {
|
|
2
|
-
import type {
|
|
7
|
+
import type {
|
|
8
|
+
PonderContext,
|
|
9
|
+
PonderEvent,
|
|
10
|
+
PonderEventNames,
|
|
11
|
+
PonderApp,
|
|
12
|
+
} from "@ponder/core";
|
|
3
13
|
|
|
4
14
|
type Config = typeof import("./ponder.config.ts").default;
|
|
5
15
|
type Schema = typeof import("./ponder.schema.ts").default;
|
|
6
16
|
|
|
7
17
|
export const ponder: PonderApp<Config, Schema>;
|
|
8
|
-
|
|
9
|
-
export type
|
|
18
|
+
export type EventNames = PonderEventNames<Config>;
|
|
19
|
+
export type Event<name extends EventNames = EventNames> = PonderEvent<
|
|
20
|
+
Config,
|
|
21
|
+
name
|
|
22
|
+
>;
|
|
23
|
+
export type Context<name extends EventNames = EventNames> = PonderContext<
|
|
24
|
+
Config,
|
|
25
|
+
Schema,
|
|
26
|
+
name
|
|
27
|
+
>;
|
|
28
|
+
export type IndexingFunctionArgs<name extends EventNames = EventNames> = {
|
|
29
|
+
event: Event<name>;
|
|
30
|
+
context: Context<name>;
|
|
31
|
+
};
|
|
10
32
|
}
|
|
@@ -1,10 +1,32 @@
|
|
|
1
|
+
// This file enables type checking and editor autocomplete for this Ponder project.
|
|
2
|
+
// After upgrading, you may find that changes have been made to this file.
|
|
3
|
+
// If this happens, please commit the changes. Do not manually edit this file.
|
|
4
|
+
// See https://ponder.sh/docs/guides/typescript for more information.
|
|
5
|
+
|
|
1
6
|
declare module "@/generated" {
|
|
2
|
-
import type {
|
|
7
|
+
import type {
|
|
8
|
+
PonderContext,
|
|
9
|
+
PonderEvent,
|
|
10
|
+
PonderEventNames,
|
|
11
|
+
PonderApp,
|
|
12
|
+
} from "@ponder/core";
|
|
3
13
|
|
|
4
14
|
type Config = typeof import("./ponder.config.ts").default;
|
|
5
15
|
type Schema = typeof import("./ponder.schema.ts").default;
|
|
6
16
|
|
|
7
17
|
export const ponder: PonderApp<Config, Schema>;
|
|
8
|
-
|
|
9
|
-
export type
|
|
18
|
+
export type EventNames = PonderEventNames<Config>;
|
|
19
|
+
export type Event<name extends EventNames = EventNames> = PonderEvent<
|
|
20
|
+
Config,
|
|
21
|
+
name
|
|
22
|
+
>;
|
|
23
|
+
export type Context<name extends EventNames = EventNames> = PonderContext<
|
|
24
|
+
Config,
|
|
25
|
+
Schema,
|
|
26
|
+
name
|
|
27
|
+
>;
|
|
28
|
+
export type IndexingFunctionArgs<name extends EventNames = EventNames> = {
|
|
29
|
+
event: Event<name>;
|
|
30
|
+
context: Context<name>;
|
|
31
|
+
};
|
|
10
32
|
}
|
|
@@ -1,10 +1,32 @@
|
|
|
1
|
+
// This file enables type checking and editor autocomplete for this Ponder project.
|
|
2
|
+
// After upgrading, you may find that changes have been made to this file.
|
|
3
|
+
// If this happens, please commit the changes. Do not manually edit this file.
|
|
4
|
+
// See https://ponder.sh/docs/guides/typescript for more information.
|
|
5
|
+
|
|
1
6
|
declare module "@/generated" {
|
|
2
|
-
import type {
|
|
7
|
+
import type {
|
|
8
|
+
PonderContext,
|
|
9
|
+
PonderEvent,
|
|
10
|
+
PonderEventNames,
|
|
11
|
+
PonderApp,
|
|
12
|
+
} from "@ponder/core";
|
|
3
13
|
|
|
4
14
|
type Config = typeof import("./ponder.config.ts").default;
|
|
5
15
|
type Schema = typeof import("./ponder.schema.ts").default;
|
|
6
16
|
|
|
7
17
|
export const ponder: PonderApp<Config, Schema>;
|
|
8
|
-
|
|
9
|
-
export type
|
|
18
|
+
export type EventNames = PonderEventNames<Config>;
|
|
19
|
+
export type Event<name extends EventNames = EventNames> = PonderEvent<
|
|
20
|
+
Config,
|
|
21
|
+
name
|
|
22
|
+
>;
|
|
23
|
+
export type Context<name extends EventNames = EventNames> = PonderContext<
|
|
24
|
+
Config,
|
|
25
|
+
Schema,
|
|
26
|
+
name
|
|
27
|
+
>;
|
|
28
|
+
export type IndexingFunctionArgs<name extends EventNames = EventNames> = {
|
|
29
|
+
event: Event<name>;
|
|
30
|
+
context: Context<name>;
|
|
31
|
+
};
|
|
10
32
|
}
|
|
@@ -1,10 +1,32 @@
|
|
|
1
|
+
// This file enables type checking and editor autocomplete for this Ponder project.
|
|
2
|
+
// After upgrading, you may find that changes have been made to this file.
|
|
3
|
+
// If this happens, please commit the changes. Do not manually edit this file.
|
|
4
|
+
// See https://ponder.sh/docs/guides/typescript for more information.
|
|
5
|
+
|
|
1
6
|
declare module "@/generated" {
|
|
2
|
-
import type {
|
|
7
|
+
import type {
|
|
8
|
+
PonderContext,
|
|
9
|
+
PonderEvent,
|
|
10
|
+
PonderEventNames,
|
|
11
|
+
PonderApp,
|
|
12
|
+
} from "@ponder/core";
|
|
3
13
|
|
|
4
14
|
type Config = typeof import("./ponder.config.ts").default;
|
|
5
15
|
type Schema = typeof import("./ponder.schema.ts").default;
|
|
6
16
|
|
|
7
17
|
export const ponder: PonderApp<Config, Schema>;
|
|
8
|
-
|
|
9
|
-
export type
|
|
18
|
+
export type EventNames = PonderEventNames<Config>;
|
|
19
|
+
export type Event<name extends EventNames = EventNames> = PonderEvent<
|
|
20
|
+
Config,
|
|
21
|
+
name
|
|
22
|
+
>;
|
|
23
|
+
export type Context<name extends EventNames = EventNames> = PonderContext<
|
|
24
|
+
Config,
|
|
25
|
+
Schema,
|
|
26
|
+
name
|
|
27
|
+
>;
|
|
28
|
+
export type IndexingFunctionArgs<name extends EventNames = EventNames> = {
|
|
29
|
+
event: Event<name>;
|
|
30
|
+
context: Context<name>;
|
|
31
|
+
};
|
|
10
32
|
}
|
|
@@ -1,10 +1,32 @@
|
|
|
1
|
+
// This file enables type checking and editor autocomplete for this Ponder project.
|
|
2
|
+
// After upgrading, you may find that changes have been made to this file.
|
|
3
|
+
// If this happens, please commit the changes. Do not manually edit this file.
|
|
4
|
+
// See https://ponder.sh/docs/guides/typescript for more information.
|
|
5
|
+
|
|
1
6
|
declare module "@/generated" {
|
|
2
|
-
import type {
|
|
7
|
+
import type {
|
|
8
|
+
PonderContext,
|
|
9
|
+
PonderEvent,
|
|
10
|
+
PonderEventNames,
|
|
11
|
+
PonderApp,
|
|
12
|
+
} from "@ponder/core";
|
|
3
13
|
|
|
4
14
|
type Config = typeof import("./ponder.config.ts").default;
|
|
5
15
|
type Schema = typeof import("./ponder.schema.ts").default;
|
|
6
16
|
|
|
7
17
|
export const ponder: PonderApp<Config, Schema>;
|
|
8
|
-
|
|
9
|
-
export type
|
|
18
|
+
export type EventNames = PonderEventNames<Config>;
|
|
19
|
+
export type Event<name extends EventNames = EventNames> = PonderEvent<
|
|
20
|
+
Config,
|
|
21
|
+
name
|
|
22
|
+
>;
|
|
23
|
+
export type Context<name extends EventNames = EventNames> = PonderContext<
|
|
24
|
+
Config,
|
|
25
|
+
Schema,
|
|
26
|
+
name
|
|
27
|
+
>;
|
|
28
|
+
export type IndexingFunctionArgs<name extends EventNames = EventNames> = {
|
|
29
|
+
event: Event<name>;
|
|
30
|
+
context: Context<name>;
|
|
31
|
+
};
|
|
10
32
|
}
|
|
@@ -1,10 +1,32 @@
|
|
|
1
|
+
// This file enables type checking and editor autocomplete for this Ponder project.
|
|
2
|
+
// After upgrading, you may find that changes have been made to this file.
|
|
3
|
+
// If this happens, please commit the changes. Do not manually edit this file.
|
|
4
|
+
// See https://ponder.sh/docs/guides/typescript for more information.
|
|
5
|
+
|
|
1
6
|
declare module "@/generated" {
|
|
2
|
-
import type {
|
|
7
|
+
import type {
|
|
8
|
+
PonderContext,
|
|
9
|
+
PonderEvent,
|
|
10
|
+
PonderEventNames,
|
|
11
|
+
PonderApp,
|
|
12
|
+
} from "@ponder/core";
|
|
3
13
|
|
|
4
14
|
type Config = typeof import("./ponder.config.ts").default;
|
|
5
15
|
type Schema = typeof import("./ponder.schema.ts").default;
|
|
6
16
|
|
|
7
17
|
export const ponder: PonderApp<Config, Schema>;
|
|
8
|
-
|
|
9
|
-
export type
|
|
18
|
+
export type EventNames = PonderEventNames<Config>;
|
|
19
|
+
export type Event<name extends EventNames = EventNames> = PonderEvent<
|
|
20
|
+
Config,
|
|
21
|
+
name
|
|
22
|
+
>;
|
|
23
|
+
export type Context<name extends EventNames = EventNames> = PonderContext<
|
|
24
|
+
Config,
|
|
25
|
+
Schema,
|
|
26
|
+
name
|
|
27
|
+
>;
|
|
28
|
+
export type IndexingFunctionArgs<name extends EventNames = EventNames> = {
|
|
29
|
+
event: Event<name>;
|
|
30
|
+
context: Context<name>;
|
|
31
|
+
};
|
|
10
32
|
}
|
|
@@ -1,10 +1,32 @@
|
|
|
1
|
+
// This file enables type checking and editor autocomplete for this Ponder project.
|
|
2
|
+
// After upgrading, you may find that changes have been made to this file.
|
|
3
|
+
// If this happens, please commit the changes. Do not manually edit this file.
|
|
4
|
+
// See https://ponder.sh/docs/guides/typescript for more information.
|
|
5
|
+
|
|
1
6
|
declare module "@/generated" {
|
|
2
|
-
import type {
|
|
7
|
+
import type {
|
|
8
|
+
PonderContext,
|
|
9
|
+
PonderEvent,
|
|
10
|
+
PonderEventNames,
|
|
11
|
+
PonderApp,
|
|
12
|
+
} from "@ponder/core";
|
|
3
13
|
|
|
4
14
|
type Config = typeof import("./ponder.config.ts").default;
|
|
5
15
|
type Schema = typeof import("./ponder.schema.ts").default;
|
|
6
16
|
|
|
7
17
|
export const ponder: PonderApp<Config, Schema>;
|
|
8
|
-
|
|
9
|
-
export type
|
|
18
|
+
export type EventNames = PonderEventNames<Config>;
|
|
19
|
+
export type Event<name extends EventNames = EventNames> = PonderEvent<
|
|
20
|
+
Config,
|
|
21
|
+
name
|
|
22
|
+
>;
|
|
23
|
+
export type Context<name extends EventNames = EventNames> = PonderContext<
|
|
24
|
+
Config,
|
|
25
|
+
Schema,
|
|
26
|
+
name
|
|
27
|
+
>;
|
|
28
|
+
export type IndexingFunctionArgs<name extends EventNames = EventNames> = {
|
|
29
|
+
event: Event<name>;
|
|
30
|
+
context: Context<name>;
|
|
31
|
+
};
|
|
10
32
|
}
|
|
@@ -1,10 +1,32 @@
|
|
|
1
|
+
// This file enables type checking and editor autocomplete for this Ponder project.
|
|
2
|
+
// After upgrading, you may find that changes have been made to this file.
|
|
3
|
+
// If this happens, please commit the changes. Do not manually edit this file.
|
|
4
|
+
// See https://ponder.sh/docs/guides/typescript for more information.
|
|
5
|
+
|
|
1
6
|
declare module "@/generated" {
|
|
2
|
-
import type {
|
|
7
|
+
import type {
|
|
8
|
+
PonderContext,
|
|
9
|
+
PonderEvent,
|
|
10
|
+
PonderEventNames,
|
|
11
|
+
PonderApp,
|
|
12
|
+
} from "@ponder/core";
|
|
3
13
|
|
|
4
14
|
type Config = typeof import("./ponder.config.ts").default;
|
|
5
15
|
type Schema = typeof import("./ponder.schema.ts").default;
|
|
6
16
|
|
|
7
17
|
export const ponder: PonderApp<Config, Schema>;
|
|
8
|
-
|
|
9
|
-
export type
|
|
18
|
+
export type EventNames = PonderEventNames<Config>;
|
|
19
|
+
export type Event<name extends EventNames = EventNames> = PonderEvent<
|
|
20
|
+
Config,
|
|
21
|
+
name
|
|
22
|
+
>;
|
|
23
|
+
export type Context<name extends EventNames = EventNames> = PonderContext<
|
|
24
|
+
Config,
|
|
25
|
+
Schema,
|
|
26
|
+
name
|
|
27
|
+
>;
|
|
28
|
+
export type IndexingFunctionArgs<name extends EventNames = EventNames> = {
|
|
29
|
+
event: Event<name>;
|
|
30
|
+
context: Context<name>;
|
|
31
|
+
};
|
|
10
32
|
}
|
|
@@ -1,10 +1,32 @@
|
|
|
1
|
+
// This file enables type checking and editor autocomplete for this Ponder project.
|
|
2
|
+
// After upgrading, you may find that changes have been made to this file.
|
|
3
|
+
// If this happens, please commit the changes. Do not manually edit this file.
|
|
4
|
+
// See https://ponder.sh/docs/guides/typescript for more information.
|
|
5
|
+
|
|
1
6
|
declare module "@/generated" {
|
|
2
|
-
import type {
|
|
7
|
+
import type {
|
|
8
|
+
PonderContext,
|
|
9
|
+
PonderEvent,
|
|
10
|
+
PonderEventNames,
|
|
11
|
+
PonderApp,
|
|
12
|
+
} from "@ponder/core";
|
|
3
13
|
|
|
4
14
|
type Config = typeof import("./ponder.config.ts").default;
|
|
5
15
|
type Schema = typeof import("./ponder.schema.ts").default;
|
|
6
16
|
|
|
7
17
|
export const ponder: PonderApp<Config, Schema>;
|
|
8
|
-
|
|
9
|
-
export type
|
|
18
|
+
export type EventNames = PonderEventNames<Config>;
|
|
19
|
+
export type Event<name extends EventNames = EventNames> = PonderEvent<
|
|
20
|
+
Config,
|
|
21
|
+
name
|
|
22
|
+
>;
|
|
23
|
+
export type Context<name extends EventNames = EventNames> = PonderContext<
|
|
24
|
+
Config,
|
|
25
|
+
Schema,
|
|
26
|
+
name
|
|
27
|
+
>;
|
|
28
|
+
export type IndexingFunctionArgs<name extends EventNames = EventNames> = {
|
|
29
|
+
event: Event<name>;
|
|
30
|
+
context: Context<name>;
|
|
31
|
+
};
|
|
10
32
|
}
|
|
@@ -1,10 +1,32 @@
|
|
|
1
|
+
// This file enables type checking and editor autocomplete for this Ponder project.
|
|
2
|
+
// After upgrading, you may find that changes have been made to this file.
|
|
3
|
+
// If this happens, please commit the changes. Do not manually edit this file.
|
|
4
|
+
// See https://ponder.sh/docs/guides/typescript for more information.
|
|
5
|
+
|
|
1
6
|
declare module "@/generated" {
|
|
2
|
-
import type {
|
|
7
|
+
import type {
|
|
8
|
+
PonderContext,
|
|
9
|
+
PonderEvent,
|
|
10
|
+
PonderEventNames,
|
|
11
|
+
PonderApp,
|
|
12
|
+
} from "@ponder/core";
|
|
3
13
|
|
|
4
14
|
type Config = typeof import("./ponder.config.ts").default;
|
|
5
15
|
type Schema = typeof import("./ponder.schema.ts").default;
|
|
6
16
|
|
|
7
17
|
export const ponder: PonderApp<Config, Schema>;
|
|
8
|
-
|
|
9
|
-
export type
|
|
18
|
+
export type EventNames = PonderEventNames<Config>;
|
|
19
|
+
export type Event<name extends EventNames = EventNames> = PonderEvent<
|
|
20
|
+
Config,
|
|
21
|
+
name
|
|
22
|
+
>;
|
|
23
|
+
export type Context<name extends EventNames = EventNames> = PonderContext<
|
|
24
|
+
Config,
|
|
25
|
+
Schema,
|
|
26
|
+
name
|
|
27
|
+
>;
|
|
28
|
+
export type IndexingFunctionArgs<name extends EventNames = EventNames> = {
|
|
29
|
+
event: Event<name>;
|
|
30
|
+
context: Context<name>;
|
|
31
|
+
};
|
|
10
32
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ponder-etherscan",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"private": true,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"dev": "ponder dev",
|
|
8
|
+
"start": "ponder start",
|
|
9
|
+
"codegen": "ponder codegen",
|
|
10
|
+
"lint": "eslint .",
|
|
11
|
+
"typecheck": "tsc"
|
|
12
|
+
},
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"@ponder/core": "^0.0.95",
|
|
15
|
+
"viem": "^1.19.3"
|
|
16
|
+
},
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@types/node": "^20.9.0",
|
|
19
|
+
"eslint": "^8.53.0",
|
|
20
|
+
"eslint-config-ponder": "^0.0.95",
|
|
21
|
+
"typescript": "^5.2.2"
|
|
22
|
+
},
|
|
23
|
+
"engines": {
|
|
24
|
+
"node": ">=18.14"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// This file enables type checking and editor autocomplete for this Ponder project.
|
|
2
|
+
// After upgrading, you may find that changes have been made to this file.
|
|
3
|
+
// If this happens, please commit the changes. Do not manually edit this file.
|
|
4
|
+
// See https://ponder.sh/docs/guides/typescript for more information.
|
|
5
|
+
|
|
6
|
+
declare module "@/generated" {
|
|
7
|
+
import type {
|
|
8
|
+
PonderContext,
|
|
9
|
+
PonderEvent,
|
|
10
|
+
PonderEventNames,
|
|
11
|
+
PonderApp,
|
|
12
|
+
} from "@ponder/core";
|
|
13
|
+
|
|
14
|
+
type Config = typeof import("./ponder.config.ts").default;
|
|
15
|
+
type Schema = typeof import("./ponder.schema.ts").default;
|
|
16
|
+
|
|
17
|
+
export const ponder: PonderApp<Config, Schema>;
|
|
18
|
+
export type EventNames = PonderEventNames<Config>;
|
|
19
|
+
export type Event<name extends EventNames = EventNames> = PonderEvent<
|
|
20
|
+
Config,
|
|
21
|
+
name
|
|
22
|
+
>;
|
|
23
|
+
export type Context<name extends EventNames = EventNames> = PonderContext<
|
|
24
|
+
Config,
|
|
25
|
+
Schema,
|
|
26
|
+
name
|
|
27
|
+
>;
|
|
28
|
+
export type IndexingFunctionArgs<name extends EventNames = EventNames> = {
|
|
29
|
+
event: Event<name>;
|
|
30
|
+
context: Context<name>;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
// Type checking
|
|
4
|
+
"strict": true,
|
|
5
|
+
"noUncheckedIndexedAccess": true,
|
|
6
|
+
|
|
7
|
+
// Interop constraints
|
|
8
|
+
"verbatimModuleSyntax": false,
|
|
9
|
+
"esModuleInterop": true,
|
|
10
|
+
"isolatedModules": true,
|
|
11
|
+
"allowSyntheticDefaultImports": true,
|
|
12
|
+
"resolveJsonModule": true,
|
|
13
|
+
|
|
14
|
+
// Language and environment
|
|
15
|
+
"moduleResolution": "bundler",
|
|
16
|
+
"module": "ESNext",
|
|
17
|
+
"noEmit": true,
|
|
18
|
+
"lib": ["ES2022"],
|
|
19
|
+
"target": "ES2022",
|
|
20
|
+
|
|
21
|
+
// Skip type checking for node modules
|
|
22
|
+
"skipLibCheck": true
|
|
23
|
+
},
|
|
24
|
+
"include": ["./**/*.ts"],
|
|
25
|
+
"exclude": ["node_modules"]
|
|
26
|
+
}
|