Skip to content

Commit e950e27

Browse files
committed
chore: fix test
1 parent 65edb9c commit e950e27

4 files changed

Lines changed: 5 additions & 8 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"type": "module",
99
"scripts": {
1010
"api:configure": "pnpm run --filter @grants-stack-indexer/hasura-config api:configure",
11-
"bootstrap:all": "pnpm run --filter @grants-stack-indexer/bootstrap bootstrap:metadata bootstrap:pricing bootstrap:strategyTimings",
11+
"bootstrap:all": "pnpm run --filter @grants-stack-indexer/bootstrap bootstrap:all",
1212
"bootstrap:metadata": "pnpm run --filter @grants-stack-indexer/bootstrap bootstrap:metadata",
1313
"bootstrap:pricing": "pnpm run --filter @grants-stack-indexer/bootstrap bootstrap:pricing",
1414
"bootstrap:strategyTimings": "pnpm run --filter @grants-stack-indexer/bootstrap bootstrap:strategyTimings",

packages/processors/src/processors/allo/handlers/poolCreated.handler.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,19 +82,15 @@ export class PoolCreatedHandler implements IEventHandler<"Allo", "PoolCreated">
8282
if (strategyHandler) {
8383
const strategyTimingsOnRegistry = await strategyTimingsRepository.get(strategyAddress);
8484
if (strategyTimingsOnRegistry) {
85-
console.log("======> SHIT FOUND", strategyTimings);
8685
strategyTimings = strategyTimingsOnRegistry.timings as unknown as StrategyTimings;
87-
console.log("======> SHIT RETRIEVED", strategyTimings);
8886
} else {
89-
console.log("======> MEH NOT FOUND BUT FETCHING");
9087
strategyTimings = await strategyHandler.fetchStrategyTimings(strategyAddress);
9188
await strategyTimingsRepository.set(strategyAddress, {
9289
address: strategyAddress,
9390
timings: JSON.stringify(strategyTimings),
9491
strategyId,
9592
createdAt: new Date(),
9693
});
97-
console.log("======> MEH NOT FOUND BUT SETTING", strategyTimings);
9894
}
9995
if (parsedRoundMetadata.success && token) {
10096
matchAmountObj = await strategyHandler.fetchMatchAmount(

packages/processors/test/gitcoinAttestationNetwork/handlers/onAttested.handler.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ describe("OnAttestedHandler", () => {
7373
const mockEvent = createMockEvent();
7474
const expectedDecodedData = {
7575
projectsContributed: 1n,
76-
roundsCountributed: 1n,
76+
roundsContributed: 1n,
7777
chainIdsContributed: 1n,
7878
totalUSDAmount: 10n,
7979
timestamp: 1727704881770n,
@@ -129,7 +129,7 @@ describe("OnAttestedHandler", () => {
129129
fee: BigInt(mockEvent.params.fee),
130130
refUID: mockEvent.params.refUID,
131131
projectsContributed: expectedDecodedData.projectsContributed,
132-
roundsContributed: expectedDecodedData.roundsCountributed,
132+
roundsContributed: expectedDecodedData.roundsContributed,
133133
chainIdsContributed: expectedDecodedData.chainIdsContributed,
134134
totalUSDAmount: expectedDecodedData.totalUSDAmount,
135135
timestamp: new Date(1727704881770),
@@ -151,7 +151,7 @@ describe("OnAttestedHandler", () => {
151151
const encodedData = encodeAbiParameters(
152152
[
153153
{ name: "projectsContributed", type: "uint64" },
154-
{ name: "roundsCountributed", type: "uint64" },
154+
{ name: "roundsContributed", type: "uint64" },
155155
{ name: "chainIdsContributed", type: "uint64" },
156156
{ name: "totalUSDAmount", type: "uint128" },
157157
{ name: "timestamp", type: "uint64" },

scripts/bootstrap/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"package.json"
1414
],
1515
"scripts": {
16+
"bootstrap:all": "tsx src/metadata.script.ts && tsx src/pricing.script.ts && tsx src/strategyTimings.script.ts",
1617
"bootstrap:metadata": "tsx src/metadata.script.ts",
1718
"bootstrap:pricing": "tsx src/pricing.script.ts",
1819
"bootstrap:strategyTimings": "tsx src/strategyTimings.script.ts",

0 commit comments

Comments
 (0)