Skip to content

chore(deps): upgrade vocdoni sdk to latest version#41

Merged
elboletaire merged 4 commits into
mainfrom
f/upgrade-sdk-36
Nov 17, 2025
Merged

chore(deps): upgrade vocdoni sdk to latest version#41
elboletaire merged 4 commits into
mainfrom
f/upgrade-sdk-36

Conversation

@elboletaire

Copy link
Copy Markdown
Member

No description provided.

@github-actions

github-actions Bot commented Oct 30, 2025

Copy link
Copy Markdown

@github-actions github-actions Bot temporarily deployed to pull request October 30, 2025 16:03 Inactive
@github-actions github-actions Bot temporarily deployed to pull request November 17, 2025 14:42 Inactive
@elboletaire elboletaire marked this pull request as ready for review November 17, 2025 14:42
Copilot AI review requested due to automatic review settings November 17, 2025 14:42

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR upgrades the Vocdoni SDK to version 0.0.2 and refactors the codebase to use the new SDK's API. The key changes include introducing a new DavinciSDK instance with dynamic signer initialization, replacing the old process creation flow with the SDK's stream-based API, and updating component dependencies accordingly.

  • Introduces DavinciSDK alongside the existing VocdoniApiService in the API context
  • Replaces manual process creation flow with SDK's createProcessStream API
  • Wraps provider getter functions with useCallback for proper memoization

Reviewed Changes

Copilot reviewed 9 out of 10 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
package.json Updates @vocdoni/davinci-sdk from 0.0.1 to ~0.0.2
src/contexts/vocdoni-api-context.tsx Adds DavinciSDK initialization with dynamic signer and updates context to return both api and sdk
src/components/create-vote-form.tsx Replaces manual process creation with SDK's createProcessStream API and removes direct contract interactions
src/router.tsx Destructures api from useVocdoniApi hook return value
src/hooks/use-process-query.ts Updates to destructure api from context and changes getProcessQuery signature
src/contexts/process-context.tsx Destructures api from useVocdoniApi hook return value
src/hooks/use-unified-provider.ts Wraps getProvider and getFarcasterProvider with useCallback
src/contexts/MiniAppContext.tsx Wraps getFarcasterEthereumProvider with useCallback
src/components/vote-progress-tracker.tsx Removes unused imports and export statement
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/contexts/vocdoni-api-context.tsx Outdated
Comment thread src/components/create-vote-form.tsx Outdated
@github-actions github-actions Bot temporarily deployed to pull request November 17, 2025 14:43 Inactive
@github-actions github-actions Bot temporarily deployed to pull request November 17, 2025 14:51 Inactive
@github-actions github-actions Bot temporarily deployed to pull request November 17, 2025 14:56 Inactive
@elboletaire elboletaire merged commit f572e8d into main Nov 17, 2025
2 checks passed
@github-actions github-actions Bot temporarily deployed to production November 17, 2025 15:07 Inactive
@github-actions github-actions Bot temporarily deployed to pull request November 17, 2025 17:43 Inactive
@elboletaire elboletaire deleted the f/upgrade-sdk-36 branch November 17, 2025 17:44
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