Skip to content

Releases: ponder-sh/ponder

@ponder/[email protected]

16 Aug 05:22
b43bcd6
Compare
Choose a tag to compare

Patch Changes

  • #319 e199267 Thanks @Slokh! - Fixed a bug where a delete executed after an update in the same event handler would not properly delete the entity.

[email protected]

10 Aug 20:16
8271ee7
Compare
Choose a tag to compare

Patch Changes

[email protected]

10 Aug 20:02
f3db5fc
Compare
Choose a tag to compare

Patch Changes

[email protected]

10 Aug 00:45
aa4c781
Compare
Choose a tag to compare

@ponder/[email protected]

10 Aug 20:16
8271ee7
Compare
Choose a tag to compare

@ponder/[email protected]

10 Aug 20:02
f3db5fc
Compare
Choose a tag to compare

@ponder/[email protected]

10 Aug 00:45
aa4c781
Compare
Choose a tag to compare

Patch Changes

  • #308 661c19a Thanks @0xOlias! - Fixed a bug where the GraphQL resolver for singular entities would return null for falsey (but valid) ID values like 0.

[email protected]

09 Aug 17:39
ba10337
Compare
Choose a tag to compare

@ponder/[email protected]

09 Aug 17:39
ba10337
Compare
Choose a tag to compare

Patch Changes

  • #306 f813a1d Thanks @0xOlias! - Added support for update functions in the entity store update and upsert API methods. This allows you to update an entity based on its current state, and solves a common ergonomics issue where users were manually constructing this operation using a combination of findUnique, create, and update.

    ponder.on("ERC20:Transfer", async ({ event, context }) => {
      const { Account } = context.entities;
    
      const recipient = await Account.update({
        id: event.params.to,
        data: ({ current }) => ({
          balance: current.balance + event.params.value,
        }),
      });
      // { id: "0x5D92..", balance: 11800000005n }
    });

[email protected]

07 Aug 19:53
b09432e
Compare
Choose a tag to compare