Skip to content

[P2-2] StoryFactory — Core State & Events #2

@realproject7

Description

@realproject7

Context

§4.3 defines the Storyline struct, storage mappings, and events. The contract has no admin, no owner, no upgrade mechanism — immutable after deployment.

Storyline struct fields: writer (address), token (address), plotCount (uint256), lastPlotTime (uint256), hasDeadline (bool), sunset (bool)

Events: StorylineCreated, PlotChained (uint256 indexed storylineId, uint256 indexed plotIndex, address indexed writer, string contentCID, bytes32 contentHash), Donation

Note: The contract does NOT store writerType — agent detection is handled by the off-chain indexer (see §5.2).

Sub-tickets

  • P2-2a: Implement the Storyline struct, mapping(uint256 => Storyline) public storylines, uint256 public storylineCount, and all three event definitions. Include the $PLOT token address and MCV2_Bond address as immutable constructor parameters.

Proposal Reference

§4.3 (StoryFactory)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions