Dev#259
Merged
Merged
Conversation
- Pin retry to manual exponential backoff (no new dependency) - Flag setClientConfig shape as an early-validation assumption - Clarify smoke-test criterion as qualitative Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…surface Installs @anticapture/client ^1.0.0. Appends verified SDK surface section to the migration spec: function mapping, client config shape (no setClientConfig — per-call config.client closure pattern), enum value differences (OrderDirection lowercase, QueryInput_* aliases needed), type shape differences (OffchainProposal richer, Voter has extra fields), and integrated-tests decision (skip with TODO in this PR). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…icapture/client - Replace AxiosInstance constructor with AnticaptureClientConfig (baseURL, defaultHeaders, maxRetries, timeoutMs) - Build sdkConfig passed to every SDK call instead of global mutation - Implement getDAOs using getDaos() from @anticapture/client; stub all other methods - Rewrite test-helpers.ts with MSW server factory and daosResponse helper - Rewrite anticapture-client.test.ts with MSW-based getDAOs tests; skip unmigrated blocks - Skip offchain-proposal.test.ts (listOffchainProposals not migrated yet) - Add @anticapture+client to jest transformIgnorePatterns to handle ESM package Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…capture/client Implements getProposalById, getEventThreshold, listVotes, getProposalNonVoters, getOffchainProposalNonVoters, and listOffchainVotes using real SDK calls with fan-out for proposal lookups. Adds MSW tests for all 6 methods (happy + error paths). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…oters; add missing edge-case tests - Fix `res?.items?.length >= 0` → `res?.items != null` so an empty array from one DAO doesn't terminate the fan-out early - Add explanatory comments on all `as any` casts for SDK dao params - Add test: returns empty array on 500 from all offchain DAOs - Add test: skips DAO on non-404 server error and continues to next DAO Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replace stub with real SDK implementation using historicalVotingPower. Supports per-DAO mode and parallel fan-out across all DAOs with ASC timestamp sort. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…fchain variant Replaces 'not migrated yet' stubs with real fan-out implementations that delegate to already-migrated listVotes/listOffchainVotes methods, filter offchain-only DAOs, and sort results ASC by timestamp. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…-tests Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…e-client tests Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Feat/anticapture client
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
pikonha
approved these changes
May 27, 2026
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.
No description provided.