create-ponder 0.0.16 → 0.0.18

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.
@@ -1,12 +1,10 @@
1
1
  import type { CreatePonderOptions } from "./bin/create-ponder";
2
2
  export declare type PonderNetwork = {
3
- kind?: string;
4
3
  name: string;
5
4
  chainId: number;
6
5
  rpcUrl: string;
7
6
  };
8
7
  export declare type PonderContract = {
9
- kind?: "evm";
10
8
  name: string;
11
9
  network: string;
12
10
  abi: string;
@@ -14,8 +12,7 @@ export declare type PonderContract = {
14
12
  startBlock?: number;
15
13
  };
16
14
  export declare type PartialPonderConfig = {
17
- plugins: string[];
18
- database: {
15
+ database?: {
19
16
  kind: string;
20
17
  };
21
18
  networks: PonderNetwork[];
package/dist/src/index.js CHANGED
@@ -54,10 +54,8 @@ const run = async (options, overrides = {}) => {
54
54
  // Write the ponder.config.ts file.
55
55
  const finalPonderConfig = `
56
56
  import type { PonderConfig } from "@ponder/core";
57
- import { graphqlPlugin } from "@ponder/graphql";
58
57
 
59
58
  export const config: PonderConfig = {
60
- plugins: [graphqlPlugin()],
61
59
  networks: ${JSON.stringify(ponderConfig.networks).replaceAll(/"process.env.PONDER_RPC_URL_(.*?)"/g, "process.env.PONDER_RPC_URL_$1")},
62
60
  contracts: ${JSON.stringify(ponderConfig.contracts)},
63
61
  };
@@ -29,10 +29,6 @@ const fromBasic = (options) => {
29
29
  (0, node_fs_1.writeFileSync)(ponderSchemaFilePath, prettier_1.default.format(schemaGraphqlFileContents, { parser: "graphql" }));
30
30
  // Build the partial ponder config.
31
31
  const ponderConfig = {
32
- plugins: ["graphqlPlugin()"],
33
- database: {
34
- kind: "sqlite",
35
- },
36
32
  networks: [
37
33
  {
38
34
  name: "mainnet",
@@ -50,10 +50,6 @@ const fromEtherscan = async (options) => {
50
50
  (0, node_fs_1.writeFileSync)(ponderSchemaFilePath, prettier_1.default.format(schemaGraphqlFileContents, { parser: "graphql" }));
51
51
  // Build and return the partial ponder config.
52
52
  const ponderConfig = {
53
- plugins: ["graphqlPlugin()"],
54
- database: {
55
- kind: "sqlite",
56
- },
57
53
  networks: [
58
54
  {
59
55
  name: name,
@@ -76,10 +76,6 @@ const fromSubgraph = (options) => {
76
76
  });
77
77
  // Build the partial ponder config.
78
78
  const ponderConfig = {
79
- plugins: ["graphqlPlugin()"],
80
- database: {
81
- kind: "sqlite",
82
- },
83
79
  networks: ponderNetworks,
84
80
  contracts: ponderContracts,
85
81
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-ponder",
3
- "version": "0.0.16",
3
+ "version": "0.0.18",
4
4
  "description": "Tool to bootstrap a Ponder project",
5
5
  "license": "MIT",
6
6
  "author": "olias.eth",
@@ -29,7 +29,7 @@
29
29
  "jest": "^29.3.1",
30
30
  "tsconfig-replace-paths": "^0.0.11",
31
31
  "typescript": "^4.5.5",
32
- "@ponder/core": "0.0.28"
32
+ "@ponder/core": "0.0.32"
33
33
  },
34
34
  "scripts": {
35
35
  "build": "rm -rf dist && tsc && tsconfig-replace-paths --src . && mv dist/src/bin/create-ponder.js dist/src/bin/create-ponder",