Closed sideninja closed 2 months ago
The changes involve a significant refactoring of receipt handling across multiple files in the codebase. The primary alteration includes replacing occurrences of StorageReceipt
with a more generalized Receipt
type, affecting function signatures, return types, and internal logic. This modification aims to standardize receipt processing and enhance the overall structure of the code.
Files | Change Summary |
---|---|
api/api.go , api/models.go , models/events.go , models/receipt.go , models/transaction.go , services/ingestion/engine.go , services/ingestion/engine_test.go , services/logs/filter_test.go , storage/index.go , storage/index_testsuite.go , storage/mocks/AccountIndexer.go , storage/mocks/ReceiptIndexer.go , storage/mocks/mocks.go , storage/pebble/accounts.go , storage/pebble/receipts.go |
Replaced *models.StorageReceipt with *models.Receipt in function signatures and internal logic across multiple files, indicating a shift towards a more generalized receipt representation. Introduced new functions and removed outdated ones to streamline receipt handling. |
sequenceDiagram
participant Client
participant API
participant ReceiptManager
participant Database
Client->>API: Request Transaction Receipt
API->>ReceiptManager: Get Block Receipts
ReceiptManager->>Database: Fetch Receipts
Database-->>ReceiptManager: Return Receipts
ReceiptManager-->>API: Return Receipts
API-->>Client: Return Transaction Receipt
🐇 In a world of bytes and code,
A rabbit hops, a tale unfolds.
Receipts transformed, a leap so grand,
From storage to receipt, a new command.
With every change, a clearer view,
Hopping along, we code anew! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Closing in favour of reindex
Reindex is taking too long, will deploy this meanwhile.
Description
Decode legacy receipts, used for until we reindex data on testnet.
For contributor use:
master
branchFiles changed
in the Github PR explorerSummary by CodeRabbit
New Features
Bug Fixes
Refactor
Tests