Skip to content

[P1-3] Contract ABI & Constants #8

@realproject7

Description

@realproject7

Context

Define the event ABIs and contract addresses so the indexer can parse onchain events. Contracts aren't deployed yet, but the event signatures are finalized in §4.1 and §4.3.

Sub-tickets

  • P1-3a: Create lib/contracts/abi.ts — define ABIs for PlotChained, StorylineCreated, and Donation events. Include the chainPlot and createStoryline function ABIs for frontend contract calls.
  • P1-3b: Create lib/contracts/constants.ts — placeholder addresses for StoryFactory, $PLOT token. Include the known addresses from §12 (MCV2_Bond: 0xc5a076cad94176c2996B32d8466Be1cE757FAa27, MCV2_BondPeriphery: 0x492C412369Db76C9cdD9939e6C521579301473a3, Uniswap V4 Router, Permit2, ERC-8004 registry: 0x8004A169FB4a3325136EB29fA0ceB6D2e539a432).

Proposal Reference

§4.1 (Contract events), §4.3 (StoryFactory), §12 (External Dependencies)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions