Skip to content

feat(launchpad): index dev buys - #140

Open
joshuakrueger-dfx wants to merge 2 commits into
JuiceSwapxyz:developfrom
joshuakrueger-dfx:joshua/dev-buy-ponder
Open

joshuakrueger-dfx wants to merge 2 commits into
JuiceSwapxyz:developfrom
joshuakrueger-dfx:joshua/dev-buy-ponder

Conversation

@joshuakrueger-dfx

@joshuakrueger-dfx joshuakrueger-dfx commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Indexes launchpad dev buys so the seeded creator purchase shows up in token data and activity.

Changes

  • abis/TokenFactory.ts — dev buy fields on the token-creation event.
  • ponder.schema.ts / ponder.config.ts — persist the dev buy amount alongside the launch.
  • src/ponder/launchpad.ts — handle the dev buy in the creation handler.
  • src/api/controllers/launchpad.ts + activity.ts — surface dev buy in token responses and the activity feed.
  • .env.example updated.

Part of the dev buy stack

@Danswar

Danswar commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Dev buy stack — linking the related PRs:

Shared blocker: this PR indexes a DevBuyExecuted event that the deployed TokenFactory doesn't emit. The event ABI is stubbed locally here (DevBuyExecutedAbi in abis/TokenFactory.ts) because @juiceswapxyz/launchpad doesn't export it — same reason bapp#772 stubs the function ABI. I checked the live mainnet factory 0xF5E0…28b9 bytecode: the DevBuyExecuted topic (0x25d60dba…) is not present, so the handler would never fire today.

Not harmful to merge (it just wouldn't index anything yet), but the stack is gated on the contract: write → deploy → republish the package, then ponder#140 → api#268 → bapp#772.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants