diff --git a/ponder.config.ts b/ponder.config.ts index 25875d7..a840307 100644 --- a/ponder.config.ts +++ b/ponder.config.ts @@ -12,6 +12,9 @@ import { } from "./abis/frak-interaction-abis"; import { contentRegistryAbi } from "./abis/frak-registry-abis"; +// 10k with alchemy only, 5k if blockpi also enabled +const maxBlockRange = 10000; + export default createConfig({ database: { kind: "postgres", @@ -43,7 +46,7 @@ export default createConfig({ network: { arbitrumSepolia: { startBlock: 64121913, - maxBlockRange: 5000, + maxBlockRange, }, }, }, @@ -54,7 +57,7 @@ export default createConfig({ network: { arbitrumSepolia: { startBlock: 64121923, - maxBlockRange: 5000, + maxBlockRange, }, }, }, @@ -75,7 +78,7 @@ export default createConfig({ network: { arbitrumSepolia: { startBlock: 64121923, - maxBlockRange: 5000, + maxBlockRange, }, }, }, @@ -90,7 +93,7 @@ export default createConfig({ network: { arbitrumSepolia: { startBlock: 64121923, - maxBlockRange: 5000, + maxBlockRange, }, }, }, diff --git a/src/contentAdministrator.ts b/src/contentAdministrator.ts index 13dda42..740f4b4 100644 --- a/src/contentAdministrator.ts +++ b/src/contentAdministrator.ts @@ -44,14 +44,11 @@ ponder.on( event.args.contentId, event.args.operator ); - const existing = await ContentAdministrator.findUnique({id}); + const existing = await ContentAdministrator.findUnique({ id }); if (existing) return; await ContentAdministrator.create({ - id: contentAdministratorId( - event.args.contentId, - event.args.operator - ), + id, data: { isOwner: false, contentId: event.args.contentId,