chore(deps): upgrade vocdoni sdk to latest version#41
Merged
Conversation
|
🚀 Deployed on https://691b37a23add430da399906d--davinci-ui.netlify.app |
b92c9ba to
7a4f2ab
Compare
7a4f2ab to
a65682d
Compare
There was a problem hiding this comment.
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
DavinciSDKalongside the existingVocdoniApiServicein the API context - Replaces manual process creation flow with SDK's
createProcessStreamAPI - Wraps provider getter functions with
useCallbackfor 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.
a65682d to
b884fd2
Compare
b884fd2 to
f572e8d
Compare
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.