Skip to content

Dev#259

Merged
LeonardoVieira1630 merged 61 commits into
mainfrom
dev
May 27, 2026
Merged

Dev#259
LeonardoVieira1630 merged 61 commits into
mainfrom
dev

Conversation

@LeonardoVieira1630

Copy link
Copy Markdown
Member

No description provided.

LeonardoVieira1630 and others added 30 commits April 30, 2026 11:28
- 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>
LeonardoVieira1630 and others added 25 commits May 13, 2026 19:56
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>
@LeonardoVieira1630 LeonardoVieira1630 self-assigned this May 27, 2026
@vercel

vercel Bot commented May 27, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
flow-editor Ready Ready Preview, Comment May 27, 2026 2:15pm
notification-system-dashboard Ready Ready Preview, Comment May 27, 2026 2:15pm

Request Review

@LeonardoVieira1630 LeonardoVieira1630 merged commit 22ecb5a into main May 27, 2026
9 checks passed
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.

2 participants