Releases: ponder-sh/ponder
Releases · ponder-sh/ponder
@ponder/[email protected]
[email protected]
[email protected]
[email protected]
@ponder/[email protected]
@ponder/[email protected]
@ponder/[email protected]
[email protected]
@ponder/[email protected]
Patch Changes
-
#306
f813a1d
Thanks @0xOlias! - Added support for update functions in the entity storeupdate
andupsert
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 offindUnique
,create
, andupdate
.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 } });