Skip to content

Commit

Permalink
⚡️ Increase indexer range since block pi isn't used
Browse files Browse the repository at this point in the history
  • Loading branch information
KONFeature committed Jul 16, 2024
1 parent a6276e5 commit 4e3f905
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
11 changes: 7 additions & 4 deletions ponder.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -43,7 +46,7 @@ export default createConfig({
network: {
arbitrumSepolia: {
startBlock: 64121913,
maxBlockRange: 5000,
maxBlockRange,
},
},
},
Expand All @@ -54,7 +57,7 @@ export default createConfig({
network: {
arbitrumSepolia: {
startBlock: 64121923,
maxBlockRange: 5000,
maxBlockRange,
},
},
},
Expand All @@ -75,7 +78,7 @@ export default createConfig({
network: {
arbitrumSepolia: {
startBlock: 64121923,
maxBlockRange: 5000,
maxBlockRange,
},
},
},
Expand All @@ -90,7 +93,7 @@ export default createConfig({
network: {
arbitrumSepolia: {
startBlock: 64121923,
maxBlockRange: 5000,
maxBlockRange,
},
},
},
Expand Down
7 changes: 2 additions & 5 deletions src/contentAdministrator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4e3f905

Please sign in to comment.