Skip to content

Releases: ponder-sh/ponder

[email protected]

13 Jan 03:06
fe4b8bd
Compare
Choose a tag to compare

Patch Changes

  • #57 3f358dd Thanks @0xOlias! - Generate ponder.ts according to new format from @ponder/core

[email protected]

13 Jan 01:39
22f0f7d
Compare
Choose a tag to compare

Patch Changes

@ponder/[email protected]

13 Jan 03:06
fe4b8bd
Compare
Choose a tag to compare

Patch Changes

@ponder/[email protected]

13 Jan 03:06
fe4b8bd
Compare
Choose a tag to compare

Patch Changes

  • #57 3f358dd Thanks @0xOlias! - BREAKING! Updated ponder config to support typescript and to be called ponder.ts by default. ponder.ts must export a variable named config that is of the type import { PonderConfig } from "@ponder/core". The database field in ponder config is now optional. By default, it uses SQLite with a filename of ./.ponder/cache.db. If the environment variable DATABASE_URL is detected, it uses Postgres with that value as the connectionString.

    New sample ponder.ts file:

    // ponder.ts
    
    import type { PonderConfig } from "@ponder/core";
    import { graphqlPlugin } from "@ponder/graphql";
    
    export const config: PonderConfig = {
      networks: [
        {
          name: "mainnet",
          chainId: 1,
          rpcUrl: process.env.PONDER_RPC_URL_1,
        },
      ],
      sources: [
        {
          name: "ArtGobblers",
          network: "mainnet",
          abi: "./abis/ArtGobblers.json",
          address: "0x60bb1e2aa1c9acafb4d34f71585d7e959f387769",
          startBlock: 15863321,
        },
      ],
      plugins: [graphqlPlugin()],
    };

    The exported value can also be a function, and it can return a Promise:

    // ponder.ts
    
    import type { PonderConfig } from "@ponder/core";
    
    export const config: PonderConfig = async () => {
      return {
        networks: [
          /* ... */
        ],
        sources: [
          /* ... */
        ],
      };
    };

@ponder/[email protected]

10 Jan 01:09
c840690
Compare
Choose a tag to compare

Patch Changes

@ponder/[email protected]

10 Jan 01:09
c840690
Compare
Choose a tag to compare

Patch Changes

  • #52 39b3e00 Thanks @0xOlias! - Fixed bug where string array arguments to filter fields raised SQLite error

@ponder/[email protected]

09 Jan 07:08
e8c8238
Compare
Choose a tag to compare

Patch Changes

  • #50 b26b0e4 Thanks @0xOlias! - Changed PonderPlugin interface and setup pattern. Ponder plugins are now classes. The public API (in ponder.config.js) remains the same.

  • Updated dependencies [b26b0e4]:

@ponder/[email protected]

09 Jan 07:08
e8c8238
Compare
Choose a tag to compare

Patch Changes

  • #50 b26b0e4 Thanks @0xOlias! - Changed PonderPlugin interface and setup pattern. Ponder plugins are now classes. The public API (in ponder.config.js) remains the same.

@ponder/[email protected]

07 Jan 22:55
9dfe9aa
Compare
Choose a tag to compare

Patch Changes