Add founder project persistence with local DB and network scan separation#745
Merged
dangershony merged 4 commits intomainfrom Apr 2, 2026
Merged
Add founder project persistence with local DB and network scan separation#745dangershony merged 4 commits intomainfrom
dangershony merged 4 commits intomainfrom
Conversation
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.
Summary
IFounderProjectsService/FounderProjectsDocument(mirroring theIPortfolioServicepattern for investors), so founder projects load instantly from LiteDB instead of scanning the network every time.GetFounderProjectsinto two operations: a fast local-only read (GetFounderProjects) and a heavy network scan (ScanFounderProjects) that diffs local DB against all 15 derived key slots and only queries the indexer for unknown projects.CreateProjecthandler now saves aFounderProjectRecord(withCreationTransactionId) to the local DB immediately after transaction creation.Changes
SDK (
Angor.Sdk)Funding/Founder/Domain/FounderProjectRecord.csProjectIdentifier+ nullableCreationTransactionIdFunding/Founder/Domain/FounderProjectsDocument.csWalletIdFunding/Founder/Domain/IFounderProjectsService.csGetByWalletId,Add,AddRangeFunding/Founder/Domain/FounderProjectsService.csFunding/Founder/Operations/GetFounderProjects.csIFounderProjectsServiceinstead of scanning derived keysFunding/Founder/Operations/ScanFounderProjects.csFunding/Founder/Operations/CreateProject.csFounderProjectRecordafter successful tx creationFunding/Projects/IProjectAppService.csScanFounderProjects(WalletId)Funding/Projects/ProjectAppService.csFunding/FundingContextServices.csIFounderProjectsServiceDesign App
MyProjectsViewModel.csScanForProjectsAsync()with error handlingMyProjectsView.axamlMyProjectsView.axaml.csOther
TESTING_GUIDELINES.mdHow it works
GetFounderProjects→ reads local DB → returns cached projects instantly (or empty list if first run)ScanFounderProjects→ reads all 15 derived key slots → compares against local DB → only queries indexer for new project IDs → persists discoveries → returns full project listCreateProjecthandler saves the record to local DB immediately → nextGetFounderProjectscall returns it without scanningBuild & Test
MyProjectsSectionViewModelautomatically benefits from the refactoredGetFounderProjectshandler (no changes needed)