Skip to content

feat(da): add Go DA interface and in-memory mock for fibre#3256

Merged
julienrbrt merged 1 commit intoevstack:julien/fiberfrom
walldiss:vlad/fibre-mock
Apr 15, 2026
Merged

feat(da): add Go DA interface and in-memory mock for fibre#3256
julienrbrt merged 1 commit intoevstack:julien/fiberfrom
walldiss:vlad/fibre-mock

Conversation

@walldiss
Copy link
Copy Markdown

Adds a fibremock package with a Go DA interface and in-memory mock implementation for fibre integration.

Migrated as-is from celestiaorg/x402-risotto#16 for integration into the fiber branch. Colleagues can rebase/adapt as needed.

Contents

  • pkg/da/fibremock/fibre.goDA interface (Upload/Download/Listen) with design assumptions documented
  • pkg/da/fibremock/mock.goMockDA: memory-bounded (LRU eviction), configurable retention, namespace filtering
  • pkg/da/fibremock/mock_test.go — 9 tests covering all paths

Adds a fibremock package with:
- DA interface (Upload/Download/Listen) matching the fibre gRPC service
- In-memory MockDA implementation with LRU eviction and configurable retention
- Tests covering all paths

Migrated from celestiaorg/x402-risotto#16 as-is for integration.
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 15, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 8fa1d854-01a8-4d1c-ace1-a679b6cf38b0

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@julienrbrt
Copy link
Copy Markdown
Member

Thanks!

@julienrbrt julienrbrt merged commit 7109b0e into evstack:julien/fiber Apr 15, 2026
4 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.

2 participants