create-ponder 0.1.0-next.3 → 0.1.0-next.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 +48 -34
- package/package.json +4 -2
- package/templates/{default → empty}/_dot_env.local +1 -1
- package/templates/{default → empty}/package.json +8 -1
- package/templates/empty/ponder-env.d.ts +10 -0
- package/templates/empty/tsconfig.json +26 -0
- package/templates/etherscan/_dot_env.local +1 -1
- package/templates/etherscan/package.json +8 -1
- package/templates/etherscan/ponder-env.d.ts +7 -5
- package/templates/etherscan/tsconfig.json +19 -6
- package/templates/feature-factory/_dot_env.local +1 -1
- package/templates/feature-factory/package.json +8 -1
- package/templates/feature-factory/ponder-env.d.ts +7 -5
- package/templates/feature-factory/tsconfig.json +19 -6
- package/templates/feature-filter/_dot_env.local +1 -1
- package/templates/feature-filter/package.json +8 -1
- package/templates/feature-filter/ponder-env.d.ts +7 -5
- package/templates/feature-filter/tsconfig.json +19 -6
- package/templates/feature-multichain/_dot_env.local +1 -1
- package/templates/feature-multichain/package.json +8 -1
- package/templates/feature-multichain/ponder-env.d.ts +7 -5
- package/templates/feature-multichain/tsconfig.json +19 -6
- package/templates/feature-proxy/_dot_env.local +1 -1
- package/templates/feature-proxy/package.json +8 -1
- package/templates/feature-proxy/ponder-env.d.ts +7 -5
- package/templates/feature-proxy/tsconfig.json +19 -6
- package/templates/feature-read-contract/_dot_env.local +1 -1
- package/templates/feature-read-contract/package.json +8 -1
- package/templates/feature-read-contract/ponder-env.d.ts +7 -5
- package/templates/feature-read-contract/tsconfig.json +19 -6
- package/templates/project-friendtech/_dot_env.local +1 -1
- package/templates/project-friendtech/package.json +8 -1
- package/templates/project-friendtech/ponder-env.d.ts +7 -5
- package/templates/project-friendtech/ponder.config.ts +0 -1
- package/templates/project-friendtech/tsconfig.json +19 -6
- package/templates/project-uniswap-v3-flash/_dot_env.local +1 -1
- package/templates/project-uniswap-v3-flash/package.json +8 -1
- package/templates/project-uniswap-v3-flash/ponder-env.d.ts +7 -5
- package/templates/project-uniswap-v3-flash/tsconfig.json +19 -6
- package/templates/reference-erc20/_dot_env.local +1 -1
- package/templates/reference-erc20/package.json +8 -1
- package/templates/reference-erc20/ponder-env.d.ts +7 -5
- package/templates/reference-erc20/tsconfig.json +19 -6
- package/templates/reference-erc721/_dot_env.local +1 -1
- package/templates/reference-erc721/package.json +8 -1
- package/templates/reference-erc721/ponder-env.d.ts +7 -5
- package/templates/reference-erc721/tsconfig.json +19 -6
- package/templates/default/ponder-env.d.ts +0 -8
- package/templates/default/tsconfig.json +0 -13
- /package/templates/{default → empty}/_dot_eslintrc.json +0 -0
- /package/templates/{default → empty}/_dot_gitignore +0 -0
- /package/templates/{default → empty}/abis/ExampleContractAbi.ts +0 -0
- /package/templates/{default → empty}/ponder.config.ts +0 -0
- /package/templates/{default → empty}/ponder.schema.ts +0 -0
- /package/templates/{default → empty}/src/index.ts +0 -0
package/dist/index.js
CHANGED
|
@@ -9,14 +9,14 @@ import cpy from "cpy";
|
|
|
9
9
|
import { execa } from "execa";
|
|
10
10
|
import fs2 from "fs-extra";
|
|
11
11
|
import { oraPromise } from "ora";
|
|
12
|
-
import
|
|
12
|
+
import pico4 from "picocolors";
|
|
13
13
|
import prettier2 from "prettier";
|
|
14
14
|
import { default as prompts } from "prompts";
|
|
15
15
|
|
|
16
16
|
// package.json
|
|
17
17
|
var package_default = {
|
|
18
18
|
name: "create-ponder",
|
|
19
|
-
version: "0.1.0-next.
|
|
19
|
+
version: "0.1.0-next.4",
|
|
20
20
|
type: "module",
|
|
21
21
|
description: "A CLI tool to create Ponder apps",
|
|
22
22
|
license: "MIT",
|
|
@@ -40,7 +40,6 @@ var package_default = {
|
|
|
40
40
|
dependencies: {
|
|
41
41
|
cac: "^6.7.14",
|
|
42
42
|
cpy: "^11.0.0",
|
|
43
|
-
"detect-package-manager": "^3.0.1",
|
|
44
43
|
execa: "^8.0.1",
|
|
45
44
|
"fs-extra": "^11.1.1",
|
|
46
45
|
ora: "^7.0.1",
|
|
@@ -60,6 +59,9 @@ var package_default = {
|
|
|
60
59
|
tsup: "^7.2.0",
|
|
61
60
|
typescript: "^5.2.2",
|
|
62
61
|
vitest: "^0.34.6"
|
|
62
|
+
},
|
|
63
|
+
engines: {
|
|
64
|
+
node: ">=18"
|
|
63
65
|
}
|
|
64
66
|
};
|
|
65
67
|
|
|
@@ -372,18 +374,24 @@ var getProxyImplementationAddresses = async ({
|
|
|
372
374
|
};
|
|
373
375
|
|
|
374
376
|
// src/helpers/getPackageManager.ts
|
|
375
|
-
import
|
|
376
|
-
var getPackageManager = ({
|
|
377
|
+
import pico from "picocolors";
|
|
378
|
+
var getPackageManager = ({
|
|
379
|
+
options
|
|
380
|
+
}) => {
|
|
377
381
|
if (options) {
|
|
378
|
-
if (options.
|
|
379
|
-
return "
|
|
382
|
+
if (options.bun)
|
|
383
|
+
return "bun";
|
|
380
384
|
if (options.pnpm)
|
|
381
385
|
return "pnpm";
|
|
386
|
+
if (options.npm)
|
|
387
|
+
return "npm";
|
|
382
388
|
if (options.yarn)
|
|
383
389
|
return "yarn";
|
|
384
390
|
}
|
|
385
391
|
const userAgent = process.env.npm_config_user_agent;
|
|
386
392
|
if (userAgent) {
|
|
393
|
+
if (userAgent.includes("bun"))
|
|
394
|
+
return "bun";
|
|
387
395
|
if (userAgent.includes("pnpm"))
|
|
388
396
|
return "pnpm";
|
|
389
397
|
if (userAgent.includes("npm"))
|
|
@@ -391,22 +399,22 @@ var getPackageManager = ({ options }) => {
|
|
|
391
399
|
if (userAgent.includes("yarn"))
|
|
392
400
|
return "yarn";
|
|
393
401
|
}
|
|
394
|
-
|
|
402
|
+
throw Error(pico.red("Undetectable package manager"));
|
|
395
403
|
};
|
|
396
404
|
|
|
397
405
|
// src/helpers/notifyUpdate.ts
|
|
398
|
-
import
|
|
406
|
+
import pico2 from "picocolors";
|
|
399
407
|
import checkForUpdate from "update-check";
|
|
400
408
|
var log = console.log;
|
|
401
409
|
async function notifyUpdate({ options }) {
|
|
402
410
|
try {
|
|
403
411
|
const res = await checkForUpdate.default(package_default);
|
|
404
412
|
if (res?.latest) {
|
|
405
|
-
const packageManager =
|
|
406
|
-
const updateMessage = packageManager === "pnpm" ? "pnpm add -g create-ponder" : packageManager === "
|
|
413
|
+
const packageManager = getPackageManager({ options });
|
|
414
|
+
const updateMessage = packageManager === "bun" ? "bun install --global create-ponder" : packageManager === "pnpm" ? "pnpm add -g create-ponder" : packageManager === "npm" ? "npm install -g create-ponder" : "yarn global add create-ponder";
|
|
407
415
|
log(
|
|
408
|
-
|
|
409
|
-
|
|
416
|
+
pico2.bold(
|
|
417
|
+
pico2.yellow("A new version of `create-ponder` is available!") + "\nYou can update by running: " + pico2.cyan(updateMessage) + "\n"
|
|
410
418
|
)
|
|
411
419
|
);
|
|
412
420
|
}
|
|
@@ -418,7 +426,7 @@ async function notifyUpdate({ options }) {
|
|
|
418
426
|
// src/helpers/validate.ts
|
|
419
427
|
import fs from "fs-extra";
|
|
420
428
|
import path2 from "path";
|
|
421
|
-
import
|
|
429
|
+
import pico3 from "picocolors";
|
|
422
430
|
import validatePackageName from "validate-npm-package-name";
|
|
423
431
|
async function validateProjectName({
|
|
424
432
|
projectName,
|
|
@@ -469,7 +477,7 @@ async function validateTemplateName({
|
|
|
469
477
|
var ValidationError = class extends Error {
|
|
470
478
|
name = "ValidationError";
|
|
471
479
|
constructor(validation) {
|
|
472
|
-
super([
|
|
480
|
+
super([pico3.red(validation.message), validation.problems].join("\n"));
|
|
473
481
|
}
|
|
474
482
|
};
|
|
475
483
|
|
|
@@ -477,9 +485,9 @@ var ValidationError = class extends Error {
|
|
|
477
485
|
var log2 = console.log;
|
|
478
486
|
var templates = [
|
|
479
487
|
{
|
|
480
|
-
title: "
|
|
488
|
+
title: "empty",
|
|
481
489
|
description: "Empty Ponder project",
|
|
482
|
-
id: "
|
|
490
|
+
id: "empty"
|
|
483
491
|
},
|
|
484
492
|
{
|
|
485
493
|
title: "etherscan",
|
|
@@ -540,8 +548,8 @@ async function run({
|
|
|
540
548
|
return;
|
|
541
549
|
log2();
|
|
542
550
|
log2(
|
|
543
|
-
`Welcome to ${
|
|
544
|
-
|
|
551
|
+
`Welcome to ${pico4.bold(
|
|
552
|
+
pico4.blue("create-ponder")
|
|
545
553
|
)} \u2013 the quickest way to get started with Ponder!`
|
|
546
554
|
);
|
|
547
555
|
log2();
|
|
@@ -561,7 +569,7 @@ async function run({
|
|
|
561
569
|
projectPath = args[0].trim();
|
|
562
570
|
const splitPath = projectPath.split("/");
|
|
563
571
|
projectName = splitPath[splitPath.length - 1]?.trim() || "";
|
|
564
|
-
log2(
|
|
572
|
+
log2(pico4.green("\u2714"), pico4.bold(`Using project name:`), projectName);
|
|
565
573
|
} else {
|
|
566
574
|
const res = await prompts({
|
|
567
575
|
initial: "my-app",
|
|
@@ -624,9 +632,9 @@ async function run({
|
|
|
624
632
|
etherscanApiKey: options.etherscanApiKey
|
|
625
633
|
});
|
|
626
634
|
}
|
|
627
|
-
log2(`Creating a new ponder app in ${
|
|
635
|
+
log2(`Creating a new ponder app in ${pico4.green(targetPath)}.`);
|
|
628
636
|
log2();
|
|
629
|
-
log2(`Using with ${
|
|
637
|
+
log2(`Using with ${pico4.bold(templateMeta.title)}.`);
|
|
630
638
|
log2();
|
|
631
639
|
const templatePath = path3.join(templatesPath, templateMeta.id);
|
|
632
640
|
await cpy(path3.join(templatePath, "**", "*"), targetPath, {
|
|
@@ -692,8 +700,8 @@ async function run({
|
|
|
692
700
|
path3.join(targetPath, "package.json"),
|
|
693
701
|
JSON.stringify(packageJson, null, 2)
|
|
694
702
|
);
|
|
695
|
-
const packageManager =
|
|
696
|
-
log2(`Using ${
|
|
703
|
+
const packageManager = getPackageManager({ options });
|
|
704
|
+
log2(`Using ${pico4.bold(packageManager)}.`);
|
|
697
705
|
log2();
|
|
698
706
|
const installArgs = [
|
|
699
707
|
"install",
|
|
@@ -731,23 +739,23 @@ async function run({
|
|
|
731
739
|
],
|
|
732
740
|
{ cwd: targetPath }
|
|
733
741
|
);
|
|
734
|
-
log2(
|
|
742
|
+
log2(pico4.green("\u2714"), "Initialized git repository.");
|
|
735
743
|
log2();
|
|
736
744
|
}
|
|
737
745
|
log2("\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015\u2015");
|
|
738
746
|
log2();
|
|
739
747
|
log2(
|
|
740
|
-
`${
|
|
748
|
+
`${pico4.green("Success!")} Created ${pico4.bold(
|
|
741
749
|
projectName
|
|
742
|
-
)} at ${
|
|
750
|
+
)} at ${pico4.green(path3.resolve(projectPath))}`
|
|
743
751
|
);
|
|
744
752
|
log2();
|
|
745
753
|
log2(
|
|
746
|
-
`To start your app, run \`${
|
|
747
|
-
|
|
748
|
-
)}\` and then \`${
|
|
749
|
-
|
|
750
|
-
`${packageManager}${packageManager === "npm" ? " run" : ""} dev`
|
|
754
|
+
`To start your app, run \`${pico4.bold(
|
|
755
|
+
pico4.cyan(`cd ${projectPath}`)
|
|
756
|
+
)}\` and then \`${pico4.bold(
|
|
757
|
+
pico4.cyan(
|
|
758
|
+
`${packageManager}${packageManager === "npm" || packageManager === "bun" ? " run" : ""} dev`
|
|
751
759
|
)
|
|
752
760
|
)}\``
|
|
753
761
|
);
|
|
@@ -756,10 +764,16 @@ async function run({
|
|
|
756
764
|
log2();
|
|
757
765
|
}
|
|
758
766
|
(async () => {
|
|
759
|
-
const cli = cac(package_default.name).version(package_default.version).usage(`${
|
|
767
|
+
const cli = cac(package_default.name).version(package_default.version).usage(`${pico4.green("<project-directory>")} [options]`).option(
|
|
760
768
|
"-t, --template [name]",
|
|
761
769
|
`A template to bootstrap with. Available: ${templates.map(({ id }) => id).join(", ")}`
|
|
762
770
|
).option("--etherscan-contract-link [link]", "Etherscan contract link").option("--etherscan-api-key [key]", "Etherscan API key").option("--npm", "Use npm as your package manager").option("--pnpm", "Use pnpm as your package manager").option("--yarn", "Use yarn as your package manager").option("--skip-git", "Skips initializing the project as a git repository").help();
|
|
771
|
+
if (Number(process.version.split(".")[0].slice(1)) < 18)
|
|
772
|
+
throw Error(
|
|
773
|
+
pico4.red(
|
|
774
|
+
`Node version:${process.version} does not meet the >=18 requirement`
|
|
775
|
+
)
|
|
776
|
+
);
|
|
763
777
|
const { args, options } = cli.parse(process.argv);
|
|
764
778
|
try {
|
|
765
779
|
await run({ args, options });
|
|
@@ -767,7 +781,7 @@ async function run({
|
|
|
767
781
|
await notifyUpdate({ options });
|
|
768
782
|
} catch (error) {
|
|
769
783
|
log2(
|
|
770
|
-
error instanceof ValidationError ? error.message :
|
|
784
|
+
error instanceof ValidationError ? error.message : pico4.red(error.message)
|
|
771
785
|
);
|
|
772
786
|
log2();
|
|
773
787
|
await notifyUpdate({ options });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-ponder",
|
|
3
|
-
"version": "0.1.0-next.
|
|
3
|
+
"version": "0.1.0-next.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A CLI tool to create Ponder apps",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"cac": "^6.7.14",
|
|
21
21
|
"cpy": "^11.0.0",
|
|
22
|
-
"detect-package-manager": "^3.0.1",
|
|
23
22
|
"execa": "^8.0.1",
|
|
24
23
|
"fs-extra": "^11.1.1",
|
|
25
24
|
"ora": "^7.0.1",
|
|
@@ -40,6 +39,9 @@
|
|
|
40
39
|
"typescript": "^5.2.2",
|
|
41
40
|
"vitest": "^0.34.6"
|
|
42
41
|
},
|
|
42
|
+
"engines": {
|
|
43
|
+
"node": ">=18"
|
|
44
|
+
},
|
|
43
45
|
"scripts": {
|
|
44
46
|
"build": "tsup",
|
|
45
47
|
"test": "vitest run",
|
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
"name": "ponder-template",
|
|
3
3
|
"version": "0.0.1",
|
|
4
4
|
"private": true,
|
|
5
|
+
"type": "module",
|
|
5
6
|
"scripts": {
|
|
6
7
|
"dev": "ponder dev",
|
|
7
8
|
"start": "ponder start",
|
|
8
9
|
"codegen": "ponder codegen",
|
|
9
10
|
"lint": "eslint .",
|
|
10
|
-
"typecheck": "tsc
|
|
11
|
+
"typecheck": "tsc"
|
|
11
12
|
},
|
|
12
13
|
"dependencies": {
|
|
13
14
|
"@ponder/core": "^0.0.95",
|
|
@@ -18,5 +19,11 @@
|
|
|
18
19
|
"eslint": "^8.53.0",
|
|
19
20
|
"eslint-config-ponder": "^0.0.95",
|
|
20
21
|
"typescript": "^5.2.2"
|
|
22
|
+
},
|
|
23
|
+
"trustedDependencies": [
|
|
24
|
+
"better-sqlite3"
|
|
25
|
+
],
|
|
26
|
+
"engines": {
|
|
27
|
+
"node": ">=18"
|
|
21
28
|
}
|
|
22
29
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare module "@/generated" {
|
|
2
|
+
import type { ExtractContext, PonderApp } from "@ponder/core";
|
|
3
|
+
|
|
4
|
+
type Config = typeof import("./ponder.config.ts").default;
|
|
5
|
+
type Schema = typeof import("./ponder.schema.ts").default;
|
|
6
|
+
|
|
7
|
+
export const ponder: PonderApp<Config, Schema>;
|
|
8
|
+
|
|
9
|
+
export type Context = ExtractContext<Config, Schema>;
|
|
10
|
+
}
|
|
@@ -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
|
+
}
|
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
"name": "ponder-etherscan",
|
|
3
3
|
"version": "0.0.1",
|
|
4
4
|
"private": true,
|
|
5
|
+
"type": "module",
|
|
5
6
|
"scripts": {
|
|
6
7
|
"dev": "ponder dev",
|
|
7
8
|
"start": "ponder start",
|
|
8
9
|
"codegen": "ponder codegen",
|
|
9
10
|
"lint": "eslint .",
|
|
10
|
-
"typecheck": "tsc
|
|
11
|
+
"typecheck": "tsc"
|
|
11
12
|
},
|
|
12
13
|
"dependencies": {
|
|
13
14
|
"@ponder/core": "^0.0.95",
|
|
@@ -18,5 +19,11 @@
|
|
|
18
19
|
"eslint": "^8.53.0",
|
|
19
20
|
"eslint-config-ponder": "^0.0.95",
|
|
20
21
|
"typescript": "^5.2.2"
|
|
22
|
+
},
|
|
23
|
+
"trustedDependencies": [
|
|
24
|
+
"better-sqlite3"
|
|
25
|
+
],
|
|
26
|
+
"engines": {
|
|
27
|
+
"node": ">=18"
|
|
21
28
|
}
|
|
22
29
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
declare module "@/generated" {
|
|
2
|
-
import type { PonderApp } from "@ponder/core";
|
|
2
|
+
import type { ExtractContext, PonderApp } from "@ponder/core";
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
>;
|
|
4
|
+
type Config = typeof import("./ponder.config.ts").default;
|
|
5
|
+
type Schema = typeof import("./ponder.schema.ts").default;
|
|
6
|
+
|
|
7
|
+
export const ponder: PonderApp<Config, Schema>;
|
|
8
|
+
|
|
9
|
+
export type Context = ExtractContext<Config, Schema>;
|
|
8
10
|
}
|
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
|
|
4
|
-
"module": "ESNext",
|
|
5
|
-
"moduleResolution": "node",
|
|
6
|
-
"resolveJsonModule": true,
|
|
7
|
-
"esModuleInterop": true,
|
|
3
|
+
// Type checking
|
|
8
4
|
"strict": true,
|
|
9
|
-
"
|
|
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
|
|
10
23
|
},
|
|
11
24
|
"include": ["./**/*.ts"],
|
|
12
25
|
"exclude": ["node_modules"]
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ponder-examples-feature-factory",
|
|
3
3
|
"private": true,
|
|
4
|
+
"type": "module",
|
|
4
5
|
"scripts": {
|
|
5
6
|
"dev": "ponder dev",
|
|
6
7
|
"start": "ponder start",
|
|
7
8
|
"codegen": "ponder codegen",
|
|
8
9
|
"lint": "eslint .",
|
|
9
|
-
"typecheck": "tsc
|
|
10
|
+
"typecheck": "tsc"
|
|
10
11
|
},
|
|
11
12
|
"dependencies": {
|
|
12
13
|
"@ponder/core": "workspace:*",
|
|
@@ -18,5 +19,11 @@
|
|
|
18
19
|
"eslint": "^8.53.0",
|
|
19
20
|
"eslint-config-ponder": "workspace:*",
|
|
20
21
|
"typescript": "^5.2.2"
|
|
22
|
+
},
|
|
23
|
+
"trustedDependencies": [
|
|
24
|
+
"better-sqlite3"
|
|
25
|
+
],
|
|
26
|
+
"engines": {
|
|
27
|
+
"node": ">=18"
|
|
21
28
|
}
|
|
22
29
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
declare module "@/generated" {
|
|
2
|
-
import type { PonderApp } from "@ponder/core";
|
|
2
|
+
import type { ExtractContext, PonderApp } from "@ponder/core";
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
>;
|
|
4
|
+
type Config = typeof import("./ponder.config.ts").default;
|
|
5
|
+
type Schema = typeof import("./ponder.schema.ts").default;
|
|
6
|
+
|
|
7
|
+
export const ponder: PonderApp<Config, Schema>;
|
|
8
|
+
|
|
9
|
+
export type Context = ExtractContext<Config, Schema>;
|
|
8
10
|
}
|
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
|
|
4
|
-
"module": "ESNext",
|
|
5
|
-
"moduleResolution": "node",
|
|
6
|
-
"resolveJsonModule": true,
|
|
7
|
-
"esModuleInterop": true,
|
|
3
|
+
// Type checking
|
|
8
4
|
"strict": true,
|
|
9
|
-
"
|
|
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
|
|
10
23
|
},
|
|
11
24
|
"include": ["./**/*.ts"],
|
|
12
25
|
"exclude": ["node_modules"]
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ponder-examples-feature-filter",
|
|
3
3
|
"private": true,
|
|
4
|
+
"type": "module",
|
|
4
5
|
"scripts": {
|
|
5
6
|
"dev": "ponder dev",
|
|
6
7
|
"start": "ponder start",
|
|
7
8
|
"codegen": "ponder codegen",
|
|
8
9
|
"lint": "eslint .",
|
|
9
|
-
"typecheck": "tsc
|
|
10
|
+
"typecheck": "tsc"
|
|
10
11
|
},
|
|
11
12
|
"dependencies": {
|
|
12
13
|
"@ponder/core": "workspace:*",
|
|
@@ -17,5 +18,11 @@
|
|
|
17
18
|
"eslint": "^8.53.0",
|
|
18
19
|
"eslint-config-ponder": "workspace:*",
|
|
19
20
|
"typescript": "^5.2.2"
|
|
21
|
+
},
|
|
22
|
+
"trustedDependencies": [
|
|
23
|
+
"better-sqlite3"
|
|
24
|
+
],
|
|
25
|
+
"engines": {
|
|
26
|
+
"node": ">=18"
|
|
20
27
|
}
|
|
21
28
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
declare module "@/generated" {
|
|
2
|
-
import type { PonderApp } from "@ponder/core";
|
|
2
|
+
import type { ExtractContext, PonderApp } from "@ponder/core";
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
>;
|
|
4
|
+
type Config = typeof import("./ponder.config.ts").default;
|
|
5
|
+
type Schema = typeof import("./ponder.schema.ts").default;
|
|
6
|
+
|
|
7
|
+
export const ponder: PonderApp<Config, Schema>;
|
|
8
|
+
|
|
9
|
+
export type Context = ExtractContext<Config, Schema>;
|
|
8
10
|
}
|
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
|
|
4
|
-
"module": "ESNext",
|
|
5
|
-
"moduleResolution": "node",
|
|
6
|
-
"resolveJsonModule": true,
|
|
7
|
-
"esModuleInterop": true,
|
|
3
|
+
// Type checking
|
|
8
4
|
"strict": true,
|
|
9
|
-
"
|
|
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
|
|
10
23
|
},
|
|
11
24
|
"include": ["./**/*.ts"],
|
|
12
25
|
"exclude": ["node_modules"]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Mainnet RPC URL used for fetching blockchain data. Alchemy is recommended.
|
|
2
|
-
PONDER_RPC_URL_1=
|
|
2
|
+
PONDER_RPC_URL_1=
|
|
3
3
|
|
|
4
4
|
# Optimism RPC URL used for fetching blockchain data. Alchemy is recommended.
|
|
5
5
|
PONDER_RPC_URL_10=https://opt-mainnet.g.alchemy.com/v2/...
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ponder-examples-feature-multichain",
|
|
3
3
|
"private": true,
|
|
4
|
+
"type": "module",
|
|
4
5
|
"scripts": {
|
|
5
6
|
"dev": "ponder dev",
|
|
6
7
|
"start": "ponder start",
|
|
7
8
|
"codegen": "ponder codegen",
|
|
8
9
|
"lint": "eslint .",
|
|
9
|
-
"typecheck": "tsc
|
|
10
|
+
"typecheck": "tsc"
|
|
10
11
|
},
|
|
11
12
|
"dependencies": {
|
|
12
13
|
"@ponder/core": "workspace:*",
|
|
@@ -17,5 +18,11 @@
|
|
|
17
18
|
"eslint": "^8.53.0",
|
|
18
19
|
"eslint-config-ponder": "workspace:*",
|
|
19
20
|
"typescript": "^5.2.2"
|
|
21
|
+
},
|
|
22
|
+
"trustedDependencies": [
|
|
23
|
+
"better-sqlite3"
|
|
24
|
+
],
|
|
25
|
+
"engines": {
|
|
26
|
+
"node": ">=18"
|
|
20
27
|
}
|
|
21
28
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
declare module "@/generated" {
|
|
2
|
-
import type { PonderApp } from "@ponder/core";
|
|
2
|
+
import type { ExtractContext, PonderApp } from "@ponder/core";
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
>;
|
|
4
|
+
type Config = typeof import("./ponder.config.ts").default;
|
|
5
|
+
type Schema = typeof import("./ponder.schema.ts").default;
|
|
6
|
+
|
|
7
|
+
export const ponder: PonderApp<Config, Schema>;
|
|
8
|
+
|
|
9
|
+
export type Context = ExtractContext<Config, Schema>;
|
|
8
10
|
}
|
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
|
|
4
|
-
"module": "ESNext",
|
|
5
|
-
"moduleResolution": "node",
|
|
6
|
-
"resolveJsonModule": true,
|
|
7
|
-
"esModuleInterop": true,
|
|
3
|
+
// Type checking
|
|
8
4
|
"strict": true,
|
|
9
|
-
"
|
|
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
|
|
10
23
|
},
|
|
11
24
|
"include": ["./**/*.ts"],
|
|
12
25
|
"exclude": ["node_modules"]
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ponder-examples-feature-proxy",
|
|
3
3
|
"private": true,
|
|
4
|
+
"type": "module",
|
|
4
5
|
"scripts": {
|
|
5
6
|
"dev": "ponder dev",
|
|
6
7
|
"start": "ponder start",
|
|
7
8
|
"codegen": "ponder codegen",
|
|
8
9
|
"lint": "eslint .",
|
|
9
|
-
"typecheck": "tsc
|
|
10
|
+
"typecheck": "tsc"
|
|
10
11
|
},
|
|
11
12
|
"dependencies": {
|
|
12
13
|
"@ponder/core": "workspace:*",
|
|
@@ -17,5 +18,11 @@
|
|
|
17
18
|
"eslint": "^8.53.0",
|
|
18
19
|
"eslint-config-ponder": "workspace:*",
|
|
19
20
|
"typescript": "^5.2.2"
|
|
21
|
+
},
|
|
22
|
+
"trustedDependencies": [
|
|
23
|
+
"better-sqlite3"
|
|
24
|
+
],
|
|
25
|
+
"engines": {
|
|
26
|
+
"node": ">=18"
|
|
20
27
|
}
|
|
21
28
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
declare module "@/generated" {
|
|
2
|
-
import type { PonderApp } from "@ponder/core";
|
|
2
|
+
import type { ExtractContext, PonderApp } from "@ponder/core";
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
>;
|
|
4
|
+
type Config = typeof import("./ponder.config.ts").default;
|
|
5
|
+
type Schema = typeof import("./ponder.schema.ts").default;
|
|
6
|
+
|
|
7
|
+
export const ponder: PonderApp<Config, Schema>;
|
|
8
|
+
|
|
9
|
+
export type Context = ExtractContext<Config, Schema>;
|
|
8
10
|
}
|
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
|
|
4
|
-
"module": "ESNext",
|
|
5
|
-
"moduleResolution": "node",
|
|
6
|
-
"resolveJsonModule": true,
|
|
7
|
-
"esModuleInterop": true,
|
|
3
|
+
// Type checking
|
|
8
4
|
"strict": true,
|
|
9
|
-
"
|
|
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
|
|
10
23
|
},
|
|
11
24
|
"include": ["./**/*.ts"],
|
|
12
25
|
"exclude": ["node_modules"]
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ponder-examples-feature-read-contract",
|
|
3
3
|
"private": true,
|
|
4
|
+
"type": "module",
|
|
4
5
|
"scripts": {
|
|
5
6
|
"dev": "ponder dev",
|
|
6
7
|
"start": "ponder start",
|
|
7
8
|
"codegen": "ponder codegen",
|
|
8
9
|
"lint": "eslint .",
|
|
9
|
-
"typecheck": "tsc
|
|
10
|
+
"typecheck": "tsc"
|
|
10
11
|
},
|
|
11
12
|
"dependencies": {
|
|
12
13
|
"@ponder/core": "workspace:*",
|
|
@@ -17,5 +18,11 @@
|
|
|
17
18
|
"eslint": "^8.53.0",
|
|
18
19
|
"eslint-config-ponder": "workspace:*",
|
|
19
20
|
"typescript": "^5.2.2"
|
|
21
|
+
},
|
|
22
|
+
"trustedDependencies": [
|
|
23
|
+
"better-sqlite3"
|
|
24
|
+
],
|
|
25
|
+
"engines": {
|
|
26
|
+
"node": ">=18"
|
|
20
27
|
}
|
|
21
28
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
declare module "@/generated" {
|
|
2
|
-
import type { PonderApp } from "@ponder/core";
|
|
2
|
+
import type { ExtractContext, PonderApp } from "@ponder/core";
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
>;
|
|
4
|
+
type Config = typeof import("./ponder.config.ts").default;
|
|
5
|
+
type Schema = typeof import("./ponder.schema.ts").default;
|
|
6
|
+
|
|
7
|
+
export const ponder: PonderApp<Config, Schema>;
|
|
8
|
+
|
|
9
|
+
export type Context = ExtractContext<Config, Schema>;
|
|
8
10
|
}
|
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
|
|
4
|
-
"module": "ESNext",
|
|
5
|
-
"moduleResolution": "node",
|
|
6
|
-
"resolveJsonModule": true,
|
|
7
|
-
"esModuleInterop": true,
|
|
3
|
+
// Type checking
|
|
8
4
|
"strict": true,
|
|
9
|
-
"
|
|
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
|
|
10
23
|
},
|
|
11
24
|
"include": ["./**/*.ts"],
|
|
12
25
|
"exclude": ["node_modules"]
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ponder-examples-project-friendtech",
|
|
3
3
|
"private": true,
|
|
4
|
+
"type": "module",
|
|
4
5
|
"scripts": {
|
|
5
6
|
"dev": "ponder dev",
|
|
6
7
|
"start": "ponder start",
|
|
7
8
|
"codegen": "ponder codegen",
|
|
8
9
|
"lint": "eslint .",
|
|
9
|
-
"typecheck": "tsc
|
|
10
|
+
"typecheck": "tsc"
|
|
10
11
|
},
|
|
11
12
|
"dependencies": {
|
|
12
13
|
"@ponder/core": "workspace:*",
|
|
@@ -17,5 +18,11 @@
|
|
|
17
18
|
"eslint": "^8.53.0",
|
|
18
19
|
"eslint-config-ponder": "workspace:*",
|
|
19
20
|
"typescript": "^5.2.2"
|
|
21
|
+
},
|
|
22
|
+
"trustedDependencies": [
|
|
23
|
+
"better-sqlite3"
|
|
24
|
+
],
|
|
25
|
+
"engines": {
|
|
26
|
+
"node": ">=18"
|
|
20
27
|
}
|
|
21
28
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
declare module "@/generated" {
|
|
2
|
-
import type { PonderApp } from "@ponder/core";
|
|
2
|
+
import type { ExtractContext, PonderApp } from "@ponder/core";
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
>;
|
|
4
|
+
type Config = typeof import("./ponder.config.ts").default;
|
|
5
|
+
type Schema = typeof import("./ponder.schema.ts").default;
|
|
6
|
+
|
|
7
|
+
export const ponder: PonderApp<Config, Schema>;
|
|
8
|
+
|
|
9
|
+
export type Context = ExtractContext<Config, Schema>;
|
|
8
10
|
}
|
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
|
|
4
|
-
"module": "ESNext",
|
|
5
|
-
"moduleResolution": "node",
|
|
6
|
-
"resolveJsonModule": true,
|
|
7
|
-
"esModuleInterop": true,
|
|
3
|
+
// Type checking
|
|
8
4
|
"strict": true,
|
|
9
|
-
"
|
|
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
|
|
10
23
|
},
|
|
11
24
|
"include": ["./**/*.ts"],
|
|
12
25
|
"exclude": ["node_modules"]
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ponder-examples-project-uniswap-v3-flash",
|
|
3
3
|
"private": true,
|
|
4
|
+
"type": "module",
|
|
4
5
|
"scripts": {
|
|
5
6
|
"dev": "ponder dev",
|
|
6
7
|
"start": "ponder start",
|
|
7
8
|
"codegen": "ponder codegen",
|
|
8
9
|
"lint": "eslint .",
|
|
9
|
-
"typecheck": "tsc
|
|
10
|
+
"typecheck": "tsc"
|
|
10
11
|
},
|
|
11
12
|
"dependencies": {
|
|
12
13
|
"@ponder/core": "workspace:*",
|
|
@@ -17,5 +18,11 @@
|
|
|
17
18
|
"eslint": "^8.53.0",
|
|
18
19
|
"eslint-config-ponder": "workspace:*",
|
|
19
20
|
"typescript": "^5.2.2"
|
|
21
|
+
},
|
|
22
|
+
"trustedDependencies": [
|
|
23
|
+
"better-sqlite3"
|
|
24
|
+
],
|
|
25
|
+
"engines": {
|
|
26
|
+
"node": ">=18"
|
|
20
27
|
}
|
|
21
28
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
declare module "@/generated" {
|
|
2
|
-
import type { PonderApp } from "@ponder/core";
|
|
2
|
+
import type { ExtractContext, PonderApp } from "@ponder/core";
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
>;
|
|
4
|
+
type Config = typeof import("./ponder.config.ts").default;
|
|
5
|
+
type Schema = typeof import("./ponder.schema.ts").default;
|
|
6
|
+
|
|
7
|
+
export const ponder: PonderApp<Config, Schema>;
|
|
8
|
+
|
|
9
|
+
export type Context = ExtractContext<Config, Schema>;
|
|
8
10
|
}
|
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
|
|
4
|
-
"module": "ESNext",
|
|
5
|
-
"moduleResolution": "node",
|
|
6
|
-
"resolveJsonModule": true,
|
|
7
|
-
"esModuleInterop": true,
|
|
3
|
+
// Type checking
|
|
8
4
|
"strict": true,
|
|
9
|
-
"
|
|
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
|
|
10
23
|
},
|
|
11
24
|
"include": ["./**/*.ts"],
|
|
12
25
|
"exclude": ["node_modules"]
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ponder-examples-reference-erc20",
|
|
3
3
|
"private": true,
|
|
4
|
+
"type": "module",
|
|
4
5
|
"scripts": {
|
|
5
6
|
"dev": "ponder dev",
|
|
6
7
|
"start": "ponder start",
|
|
7
8
|
"codegen": "ponder codegen",
|
|
8
9
|
"lint": "eslint .",
|
|
9
|
-
"typecheck": "tsc
|
|
10
|
+
"typecheck": "tsc"
|
|
10
11
|
},
|
|
11
12
|
"dependencies": {
|
|
12
13
|
"@ponder/core": "workspace:*",
|
|
@@ -18,5 +19,11 @@
|
|
|
18
19
|
"eslint": "^8.53.0",
|
|
19
20
|
"eslint-config-ponder": "workspace:*",
|
|
20
21
|
"typescript": "^5.2.2"
|
|
22
|
+
},
|
|
23
|
+
"trustedDependencies": [
|
|
24
|
+
"better-sqlite3"
|
|
25
|
+
],
|
|
26
|
+
"engines": {
|
|
27
|
+
"node": ">=18"
|
|
21
28
|
}
|
|
22
29
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
declare module "@/generated" {
|
|
2
|
-
import type { PonderApp } from "@ponder/core";
|
|
2
|
+
import type { ExtractContext, PonderApp } from "@ponder/core";
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
>;
|
|
4
|
+
type Config = typeof import("./ponder.config.ts").default;
|
|
5
|
+
type Schema = typeof import("./ponder.schema.ts").default;
|
|
6
|
+
|
|
7
|
+
export const ponder: PonderApp<Config, Schema>;
|
|
8
|
+
|
|
9
|
+
export type Context = ExtractContext<Config, Schema>;
|
|
8
10
|
}
|
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
|
|
4
|
-
"module": "ESNext",
|
|
5
|
-
"moduleResolution": "node",
|
|
6
|
-
"resolveJsonModule": true,
|
|
7
|
-
"esModuleInterop": true,
|
|
3
|
+
// Type checking
|
|
8
4
|
"strict": true,
|
|
9
|
-
"
|
|
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
|
|
10
23
|
},
|
|
11
24
|
"include": ["./**/*.ts"],
|
|
12
25
|
"exclude": ["node_modules"]
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ponder-examples-reference-erc721",
|
|
3
3
|
"private": true,
|
|
4
|
+
"type": "module",
|
|
4
5
|
"scripts": {
|
|
5
6
|
"dev": "ponder dev",
|
|
6
7
|
"start": "ponder start",
|
|
7
8
|
"codegen": "ponder codegen",
|
|
8
9
|
"lint": "eslint .",
|
|
9
|
-
"typecheck": "tsc
|
|
10
|
+
"typecheck": "tsc"
|
|
10
11
|
},
|
|
11
12
|
"dependencies": {
|
|
12
13
|
"@ponder/core": "workspace:*",
|
|
@@ -18,5 +19,11 @@
|
|
|
18
19
|
"eslint": "^8.53.0",
|
|
19
20
|
"eslint-config-ponder": "workspace:*",
|
|
20
21
|
"typescript": "^5.2.2"
|
|
22
|
+
},
|
|
23
|
+
"trustedDependencies": [
|
|
24
|
+
"better-sqlite3"
|
|
25
|
+
],
|
|
26
|
+
"engines": {
|
|
27
|
+
"node": ">=18"
|
|
21
28
|
}
|
|
22
29
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
declare module "@/generated" {
|
|
2
|
-
import type { PonderApp } from "@ponder/core";
|
|
2
|
+
import type { ExtractContext, PonderApp } from "@ponder/core";
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
>;
|
|
4
|
+
type Config = typeof import("./ponder.config.ts").default;
|
|
5
|
+
type Schema = typeof import("./ponder.schema.ts").default;
|
|
6
|
+
|
|
7
|
+
export const ponder: PonderApp<Config, Schema>;
|
|
8
|
+
|
|
9
|
+
export type Context = ExtractContext<Config, Schema>;
|
|
8
10
|
}
|
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
|
|
4
|
-
"module": "ESNext",
|
|
5
|
-
"moduleResolution": "node",
|
|
6
|
-
"resolveJsonModule": true,
|
|
7
|
-
"esModuleInterop": true,
|
|
3
|
+
// Type checking
|
|
8
4
|
"strict": true,
|
|
9
|
-
"
|
|
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
|
|
10
23
|
},
|
|
11
24
|
"include": ["./**/*.ts"],
|
|
12
25
|
"exclude": ["node_modules"]
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ESNext",
|
|
4
|
-
"module": "ESNext",
|
|
5
|
-
"moduleResolution": "node",
|
|
6
|
-
"resolveJsonModule": true,
|
|
7
|
-
"esModuleInterop": true,
|
|
8
|
-
"strict": true,
|
|
9
|
-
"rootDir": "."
|
|
10
|
-
},
|
|
11
|
-
"include": ["./**/*.ts"],
|
|
12
|
-
"exclude": ["node_modules"]
|
|
13
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|