feat: bounty #1511 RIP-305 Track C bridge API and lock ledger#734
Merged
Scottcjn merged 2 commits intoScottcjn:mainfrom Mar 9, 2026
Merged
feat: bounty #1511 RIP-305 Track C bridge API and lock ledger#734Scottcjn merged 2 commits intoScottcjn:mainfrom
Scottcjn merged 2 commits intoScottcjn:mainfrom
Conversation
6 tasks
0dfc267 to
7562dd8
Compare
- Add RIP-0305 specification document for bridge API and lock ledger - Implement bridge_api.py with REST endpoints: - POST /api/bridge/initiate - Create bridge transfers (deposit/withdraw) - GET /api/bridge/status - Query transfer status - GET /api/bridge/list - List transfers with filters - POST /api/bridge/void - Admin void operations - POST /api/bridge/update-external - External confirmation callbacks - Implement lock_ledger.py for locked asset tracking: - Lock creation and release - Lock queries by miner - Auto-release of expired locks - Forfeit mechanism for penalties - Add comprehensive test suite (27 tests) covering: - Bridge validation and address format checks - Bridge transfer creation and status queries - Lock ledger operations - Integration tests for full deposit/void flows - Add API documentation in docs/bridge-api.md Tests: 27 passed No regressions in existing test suite
7562dd8 to
308482a
Compare
- Import bridge_api and lock_ledger modules in rustchain_v2_integrated_v2.2.1_rip200.py - Register bridge and lock ledger routes at node startup - Initialize bridge_transfers and lock_ledger database schemas - Add init_bridge_schema function to bridge_api.py - Update init_lock_ledger_schema to support cursor-based initialization Track C completion: Bridge API endpoints now available at: - POST /api/bridge/initiate - GET /api/bridge/status/<tx_hash> - GET /api/bridge/list - POST /api/bridge/void - POST /api/lock/release - GET /api/lock/miner/<miner_id> All 27 existing tests pass. Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Repository owner
deleted a comment from
MontaEllis8
Mar 9, 2026
MontaEllis8
reviewed
Mar 9, 2026
Contributor
MontaEllis8
left a comment
There was a problem hiding this comment.
Good bridge API implementation. Consider adding proper error handling for cross-chain communication failures and ensuring atomicity for lock/unlock operations.
createkr
added a commit
to createkr/Rustchain
that referenced
this pull request
Mar 22, 2026
…Scottcjn#734) * feat: implement RIP-305 Track C bridge API + lock ledger (Scottcjn#1511) - Add RIP-0305 specification document for bridge API and lock ledger - Implement bridge_api.py with REST endpoints: - POST /api/bridge/initiate - Create bridge transfers (deposit/withdraw) - GET /api/bridge/status - Query transfer status - GET /api/bridge/list - List transfers with filters - POST /api/bridge/void - Admin void operations - POST /api/bridge/update-external - External confirmation callbacks - Implement lock_ledger.py for locked asset tracking: - Lock creation and release - Lock queries by miner - Auto-release of expired locks - Forfeit mechanism for penalties - Add comprehensive test suite (27 tests) covering: - Bridge validation and address format checks - Bridge transfer creation and status queries - Lock ledger operations - Integration tests for full deposit/void flows - Add API documentation in docs/bridge-api.md Tests: 27 passed No regressions in existing test suite * feat: integrate RIP-0305 Track C bridge API + lock ledger into main node - Import bridge_api and lock_ledger modules in rustchain_v2_integrated_v2.2.1_rip200.py - Register bridge and lock ledger routes at node startup - Initialize bridge_transfers and lock_ledger database schemas - Add init_bridge_schema function to bridge_api.py - Update init_lock_ledger_schema to support cursor-based initialization Track C completion: Bridge API endpoints now available at: - POST /api/bridge/initiate - GET /api/bridge/status/<tx_hash> - GET /api/bridge/list - POST /api/bridge/void - POST /api/lock/release - GET /api/lock/miner/<miner_id> All 27 existing tests pass. --------- Co-authored-by: createkr <createkr@proton.me>
Owner
|
Transfer confirmed — this was included in the batch settlement of 1,091 RTC to @createkr's wallet. |
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.
Implements RIP-305 Track C (bridge API + lock ledger) with strict one-bounty scope and verification coverage.\n\nPayout wallet: RTC1d48d848a5aa5ecf2c5f01aa5fb64837daaf2f35 (split: createkr-wallet).