- Branch Name:
fix/position-event-indexing - Status: Pushed to origin
- Ready for PR: Yes
Go to: https://github.com/sheyman546/Credence-Contracts
- Click on "Pull requests" tab
- Click "New pull request" button
- Select branches:
- Base:
main - Compare:
fix/position-event-indexing
- Base:
- Click "Create pull request"
Title:
fix(contracts): improve indexed fields for position events
Description: Copy the content from PR_DESCRIPTION_EVENT_INDEXING.md
- Labels:
enhancement,contracts,indexing,backward-compatibility - Assignees: Add relevant maintainers
Add appropriate reviewers for:
- Smart contract review
- Event schema validation
- Backward compatibility assessment
- Branch created and pushed
- Comprehensive PR description written
- All changes committed with proper messages
- Tests passing
- Documentation complete
- Migration strategy documented
- Branch: https://github.com/sheyman546/Credence-Contracts/tree/fix/position-event-indexing
- Compare View: https://github.com/sheyman546/Credence-Contracts/compare/main...fix/position-event-indexing
- PR Creation: https://github.com/sheyman546/Credence-Contracts/pull/new/fix/position-event-indexing
Title: fix(contracts): improve indexed fields for position events
Key Points:
- Fixes #162 - event indexing issues
- Adds v2 events with enhanced indexing (amount, timestamp, balance)
- Maintains backward compatibility (dual emission)
- 10x+ faster off-chain queries
- Comprehensive test coverage
- Migration documentation included
Files Changed:
contracts/credence_bond/src/events.rs- V2 eventscontracts/credence_bond/src/lib.rs- Dual emissioncontracts/credence_bond/src/test_events_v2.rs- Testsdocs/EVENT_INDEXING_MIGRATION.md- Migration guide
Ready for review! π