Refactor/db comm#9
Closed
iChristwin wants to merge 45 commits into
Closed
Conversation
…ransactions - Added setup and teardown functions for SQLite database. - Created functions to manage meter records (insert, retrieve, update, delete). - Implemented transaction management functions (insert, verify, delete). - Added unit tests for all database operations to ensure functionality. - Updated package.json to include necessary dependencies for SQLite and testing.
- Replace LevelDB with SQLite database for better data persistence and querying - Add meter management functions (save, get, delete, update nonce) - Add transaction recording with verification tracking - Implement scheduled verification jobs using node-cron - Add Arweave integration for publishing transaction data - Enhance encoding functions for transaction byte array format - Add verification system with verifier node selection - Update .gitignore to exclude test files and database files - Refactor MQTT handling to work with new SQLite store - Add API endpoint for manual verification job testing
- Added PREFERRED_PROVER_NODE and MAINNET_RPC to .env.example - Removed node-cron from package.json and package-lock.json - Refactored index.ts to remove scheduling of verification jobs - Updated logic in mqtt.ts to send pending transactions to prover - Created new utility functions for handling prover interactions in verify.ts - Added tests for MQTT message processing and prover interactions
Introduces centralized payload decoding logic to handle the standard transaction format consistently across components. Removes redundant nonce validation logic from Arweave interaction and streamlines the upload process by returning the result directly. Eliminates GPS dependency by extracting location data from the decoded payload extensions, improving data consistency and reducing external dependencies. Updates type definitions to better reflect the actual payload structure and decoded data format.
…ntractId and adjusting latestNonce initialization
…BatchPayload function
… is a number in buildBatchPayload
[feat, refactor, test]: Implement sqlite store, sync with arweave,
…function for improved signing
…ndleMessage function
…ndling for meter lookup
…QTT message handling
… in database operations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.