Skip to content

Commit

Permalink
⏪️ Rollback ponder + hono upgrade due to post endpoint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
KONFeature committed Nov 7, 2024
1 parent 56b8564 commit 0067aa8
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 71 deletions.
4 changes: 2 additions & 2 deletions packages/ponder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
"typecheck": "tsc"
},
"dependencies": {
"@ponder/core": "0.6.25",
"@ponder/core": "0.6.24",
"drizzle-orm": "^0.31.4",
"hono": "^4.6.9",
"hono": "4.6.8",
"viem": "^2.21.40"
},
"devDependencies": {
Expand Down
2 changes: 2 additions & 0 deletions packages/ponder/src/api/admin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ ponder.get("/admin/:wallet/campaigns/stats", async (ctx) => {
referredInteractions: ReferralCampaignStats.referredInteractions,
createReferredLinkInteractions:
ReferralCampaignStats.createReferredLinkInteractions,
purchaseStartedInteractions: ReferralCampaignStats.purchaseStartedInteractions,
purchaseCompletedInteractions: ReferralCampaignStats.purchaseCompletedInteractions,
totalRewards: ReferralCampaignStats.totalRewards,
})
.from(ProductAdministrator)
Expand Down
6 changes: 5 additions & 1 deletion packages/ponder/src/api/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
// todo: api key middleware
import { ponder } from "@/generated";

ponder.get("/hello", async ({ text }) => {
return text("Hello!");
});
90 changes: 22 additions & 68 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0067aa8

Please sign in to comment.