Skip to content

fix: restore factory storage, pause and governance modules and repair… - #863

Merged
Jaydbrown merged 2 commits into
conduit-protocol:mainfrom
Times-stack:fix/restore-factory-modules
Oct 31, 2026
Merged

Jaydbrown merged 2 commits into
conduit-protocol:mainfrom
Times-stack:fix/restore-factory-modules

Conversation

@Times-stack

@Times-stack Times-stack commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Commit 5ffa7db replaced contracts/factory/src/storage.rs, pause.rs and governance.rs with single stub lines (@storage.rs etc.). The factory crate has not compiled since, and drip-stream has separate build errors. This PR repairs both.

Changes

  • Restored the three factory files from the parent of 5ffa7db.
  • Factory: the pfee_collected event topic is 14 characters, over the 9-character symbol_short! limit. It now uses Symbol::new, with the same topic name.
  • Factory: added the missing voting_period_ledgers field to the governance test config.
  • Stream: shortened the keeper_cfg and keeper_fnd event symbols to keepercfg and keeperfnd. This changes the emitted topic names, so any indexer or client listening for the old names needs updating.
  • Stream: added the InvoiceMetadataUri and MilestoneMetadataUri variants to DataKey, which lib.rs already uses.

Tests

  • cargo test -p drip-factory --lib passes (53 passed, 2 ignored).
  • cargo test -p drip-stream --lib: 148 passed, 1 failed (math::tests::test_rate_duration_saturating_overflow_behavior, in code this PR does not touch).
  • token-vault has its own, unrelated build errors and is not touched here.

closes #820

… stream build

Commit 5ffa7db replaced factory storage.rs, pause.rs and governance.rs with stub lines, which left the factory crate unbuildable. Restore them from the parent commit. Also fix build errors that blocked the workspace: use Symbol::new for the 14-character pfee_collected topic, shorten the stream keeper event symbols to 9 characters, add the missing InvoiceMetadataUri and MilestoneMetadataUri DataKey variants, and add voting_period_ledgers to the factory governance test config.

Refs conduit-protocol#820
@Jaydbrown
Jaydbrown merged commit 560a688 into conduit-protocol:main Oct 31, 2026
3 of 9 checks passed
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.

contracts/factory/src/index.rs: index active streams by token asset for liquidity discovery

2 participants