dojo
dojo copied to clipboard
feat(messaging): prevent from resending messages to L1
trafficstars
Description
- add gather_from_block to genesis file
- persist send_from_block & gather_from_block in database
- service use send_from_block & gather_from_block in messaging service
Related issue
Fixes #2033
Tests
- [ ] Yes
- [ ] No, because they aren't needed
- [ ] No, because I need help
Added to documentation?
- [ ] README.md
- [ ] Dojo Book
- [ ] No documentation needed
Checklist
- [ ] I've formatted my code (
scripts/prettier.sh,scripts/rust_fmt.sh,scripts/cairo_fmt.sh) - [ ] I've linted my code (
scripts/clippy.sh,scripts/docs.sh) - [ ] I've commented my code
- [ ] I've requested a review after addressing the comments
Summary by CodeRabbit
-
New Features
- Introduced a new
MessagingProvidertrait to manage messaging operations across various providers. - Added
gather_from_blockfield toGenesisandGenesisJsonconfigurations, enabling specific block number tracking. - Enhanced
DbProviderandForkedProviderto manage messaging-related block numbers with new methods. - Updated
CacheDbto include messaging information storage.
- Introduced a new
-
Bug Fixes
- Improved error message formatting for better readability in
ProviderError.
- Improved error message formatting for better readability in
-
Documentation
- Enhanced documentation strings for better clarity and readability in the
Migratecommand description.
- Enhanced documentation strings for better clarity and readability in the