-
Notifications
You must be signed in to change notification settings - Fork 0
[P2-2] StoryFactory — Core State & Events #2
Copy link
Copy link
Closed
Labels
phase/2-contractsPhase 2: Smart ContractsPhase 2: Smart Contracts
Description
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)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
phase/2-contractsPhase 2: Smart ContractsPhase 2: Smart Contracts