Skip to content

Feature/smart wallet recovery#196

Merged
gabito1451 merged 6 commits intoGalactiGuild:mainfrom
Xhristin3:feature/smart-wallet-recovery
Mar 27, 2026
Merged

Feature/smart wallet recovery#196
gabito1451 merged 6 commits intoGalactiGuild:mainfrom
Xhristin3:feature/smart-wallet-recovery

Conversation

@Xhristin3
Copy link
Copy Markdown
Contributor

Description:
Implement a generic Soroban smart wallet contract supporting social recovery (N-of-M guardians to reset the master key).

Requirements and context:
Key management is too hard for mass-market users.

Suggested execution:
Build smart_wallet.rs following Account Abstraction concepts on Stellar.

Guidelines:
Minimum 3 guardians required in tests.

closes #129

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 27, 2026

@Xhristin3 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@gabito1451 gabito1451 merged commit 7fad3f2 into GalactiGuild:main Mar 27, 2026
1 check passed
- Create LimitOrders contract with order book functionality
- Implement buy/sell limit orders with price-time priority
- Add market order execution against existing limit orders
- Support partial fills and order cancellation
- Gas-optimized storage and matching logic
- Comprehensive documentation in LIMIT_ORDERS_DOCUMENTATION.md

Features:
- Order types: Buy (bid) and Sell (ask)
- Order status: Active, PartiallyFilled, Filled, Cancelled
- Price encoding: Scaled integers (1e6 precision)
- Automatic matching when AMM price crosses limit
- Market orders for instant execution
- Create SmartWallet contract with account abstraction
- Implement N-of-M guardian social recovery (minimum 3 guardians)
- Add configurable threshold for recovery approval
- 48-hour time-lock on recovery execution for security
- Owner can add/remove guardians and cancel recovery requests
- Support for executing transactions on behalf of wallet
- Comprehensive test coverage including minimum 3 guardians requirement

Security features:
- Separation of owner and guardian roles
- Threshold-based recovery prevents single point of failure
- Time-lock allows owner to intervene if recovery is malicious
- Replay protection via nonce increment
- Create SMART_WALLET_DOCUMENTATION.md with full usage guide
- Document security features and attack mitigation strategies
- Include recovery flow diagrams and integration examples
- Add gas optimization tips and best practices
- Provide deployment instructions and test coverage summary
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.

Social Recovery Wallet Contract

2 participants