feat(contracts): sbt, periodic re-verification, governance, dex integ…#228
Conversation
…ration closes LightForgeHub#202 closes LightForgeHub#203 closes LightForgeHub#204 closes LightForgeHub#205
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
📝 WalkthroughWalkthroughThis PR integrates four interconnected protocol features: Soulbound Skill Badges for expert reputation, periodic session re-verification with settlement freezes, community treasury voting power linked to session volume, and DEX cross-contract token swaps. The implementation spans new utility modules, extended storage keys, enhanced settlement flow, and 13 new public APIs. Error variants are refactored to support new contract states. ChangesSkillSphere Feature Integration
Sequence Diagram(s)sequenceDiagram
participant Seeker as Seeker
participant Contract as SkillSphere<br/>Contract
participant DEX as DEX Router
participant ExpertAccount as Expert Account
Seeker->>Contract: start_session_with_swap(offer_token, ask_token, path, amount)
Contract->>Contract: Transfer offer_token escrow
Contract->>DEX: cross_contract_swap(amount)
DEX-->>Contract: ask_amount (i128)
Contract->>Contract: Create session denominated in ask_token
Contract->>Contract: Initialize SessionLastVerified
Contract-->>Seeker: session_id
Note over Seeker,Contract: 30 days pass
Seeker->>Contract: reverify_session(session_id)
Contract->>Contract: Update SessionLastVerified
Note over Seeker,Contract: Missed re-verification
Seeker->>Contract: settle(session_id)
Contract->>Contract: Check SessionFrozenFlag
Contract-->>Seeker: Error::SessionFrozen
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Poem
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…ration
Add Soroban Linting Support and Centralized Network Store
Summary
This PR introduces automated Soroban linting for the VS Code extension and centralizes network configuration management across the IDE.
Changes
Soroban Linter Service
src/services/LinterService.ts.Network Configuration Store
src/store/useNetworkStore.ts.Index.tsx.Validation
closes #202
closes #203
closes #204
closes #205
Summary by CodeRabbit