Skip to content

Refactor/db comm#9

Closed
iChristwin wants to merge 45 commits into
smartweavefrom
refactor/db-comm
Closed

Refactor/db comm#9
iChristwin wants to merge 45 commits into
smartweavefrom
refactor/db-comm

Conversation

@iChristwin
Copy link
Copy Markdown
Member

No description provided.

IDEA-godwin and others added 30 commits May 15, 2025 12:09
…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
[feat, refactor, test]: Implement sqlite store, sync with arweave,
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.

3 participants