Skip to content

Feat(web): Migrate to wagmi V2 #1417

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 78 commits into from
Jun 11, 2024
Merged

Feat(web): Migrate to wagmi V2 #1417

merged 78 commits into from
Jun 11, 2024

Conversation

alcercu
Copy link
Contributor

@alcercu alcercu commented Jan 16, 2024

Creating the PR as draft since I get a building error:
@parcel/core: Failed to resolve '@wagmi/core/codegen' from ./node_modules/wagmi/dist/esm/exports/codegen.js
@parcel/resolver-default: Cannot load file './codegen' from module '@wagmi/core'


PR-Codex overview

This PR updates dependencies, removes unused files, changes file paths, and updates SVG dimensions.

Detailed summary

  • Updated dependencies and removed unused files
  • Changed file paths for SVG imports
  • Updated SVG dimensions for various icons

The following files were skipped due to too many changes: web/.env.devnet-neo.public, web/.env.mainnet-neo.public, web/src/components/DisputeView/CardLabels/RewardsAndFundLabel.tsx, web/scripts/gitInfo.js, web/src/components/Verdict/VerdictBanner.tsx, web/src/pages/Courts/CourtDetails/StakePanel/index.tsx, web/src/layout/Header/navbar/Debug.tsx, web/src/pages/Home/TopJurors/JurorCard/Rewards.tsx, web/netlify/functions/authUser.ts, web/src/components/PlusMinusField.tsx, web/src/hooks/useSortitionModulePhase.ts, web/netlify/functions/update-settings.ts, web/src/components/EnsureChain.tsx, web/src/utils/validateAddressOrEns.ts, kleros-sdk/src/sdk.ts, web/src/components/Verdict/DisputeTimeline.tsx, web/src/pages/Cases/CaseDetails/Tabs.tsx, web/src/components/DisputePreview/Alias.tsx, web/src/components/HeroImage.tsx, web/vite.config.js, web/src/pages/Dashboard/JurorInfo/index.tsx, web/src/hooks/queries/useAppealCost.ts, web/src/hooks/queries/useDisputeKitClassicMultipliers.ts, web/src/pages/Dashboard/Courts/index.tsx, web/src/utils/getDisputeRequestParamsFromTxn.ts, web/src/hooks/queries/usePolicyRegistryEvent.ts, web/src/assets/svgs/icons/redistributed-pnk.svg, web/src/hooks/queries/useEvidenceGroup.ts, web/src/pages/DisputeTemplateView/index.tsx, web/src/app.tsx, web/src/pages/Courts/CourtDetails/StakePanel/JurorStakeDisplay.tsx, web/src/hooks/useIsCrossChainDispute.ts, web/wagmi.config.ts, web/src/consts/chains.ts, web/src/hooks/queries/usePopulatedDisputeData.ts, web/src/components/ConnectWallet/AccountDisplay.tsx, web/src/utils/getGraphqlUrl.ts, web/src/components/Popup/Description/StakeWithdraw.tsx, web/src/pages/Cases/CaseDetails/Voting/Classic/Vote.tsx, web/src/pages/Resolver/Parameters/Jurors.tsx, web/src/components/Verdict/FinalDecision.tsx, web/src/components/EnsureAuth.tsx, web/src/pages/Courts/CourtDetails/StakePanel/InputDisplay.tsx, web/src/hooks/useVotingContext.tsx, web/src/pages/Resolver/Parameters/NotablePersons/PersonFields.tsx, web/src/pages/Cases/CaseDetails/Voting/Classic/Commit.tsx, web/src/pages/Cases/CaseDetails/Voting/Classic/Reveal.tsx, web/src/assets/svgs/icons/book.svg, web/src/consts/processEnvConsts.ts, web/src/components/ConnectWallet/index.tsx, web/src/consts/index.ts, web/src/pages/Resolver/NavigationButtons/SubmitDisputeButton.tsx, web/src/pages/Cases/CaseDetails/Appeal/Classic/Fund.tsx, web/src/components/ClaimPnkButton.tsx, web/src/pages/Cases/CaseDetails/Evidence/SubmitEvidenceModal.tsx, web/src/context/Web3Provider.tsx, web/package.json, web/src/pages/Courts/CourtDetails/StakePanel/StakeWithdrawButton.tsx, yarn.lock

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Copy link

netlify bot commented Jan 16, 2024

Deploy Preview for kleros-v2 ready!

Name Link
🔨 Latest commit e542b4a
🔍 Latest deploy log https://app.netlify.com/sites/kleros-v2/deploys/666854252b0fae0008e73522
😎 Deploy Preview https://deploy-preview-1417--kleros-v2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@jaybuidl jaybuidl added Type: Maintenance 🚧 Type: Toolchain ⚒️ Build tools configuration, CI/CD labels Jan 16, 2024
Copy link

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

18 New issues
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link

netlify bot commented Apr 12, 2024

Deploy Preview for kleros-v2-neo ready!

Name Link
🔨 Latest commit e542b4a
🔍 Latest deploy log https://app.netlify.com/sites/kleros-v2-neo/deploys/66685425443cbd00089136b1
😎 Deploy Preview https://deploy-preview-1417--kleros-v2-neo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Apr 12, 2024

Deploy Preview for kleros-v2-university ready!

Name Link
🔨 Latest commit e542b4a
🔍 Latest deploy log https://app.netlify.com/sites/kleros-v2-university/deploys/666854252199ba0008215897
😎 Deploy Preview https://deploy-preview-1417--kleros-v2-university.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

@jaybuidl
Copy link
Member

Update from @alcercu:
We need check the proper way to implement a replacement of the (now deprecated) watch: true option for queries. Basically triggering query revalidation every X blocks on the queries with values that change often (balances, stakes, etc.)

@alcercu alcercu enabled auto-merge June 7, 2024 10:35
@alcercu alcercu disabled auto-merge June 10, 2024 09:26
Copy link

codeclimate bot commented Jun 11, 2024

Code Climate has analyzed commit e542b4a and detected 22 issues on this pull request.

Here's the issue category breakdown:

Category Count
Duplication 5
Style 17

View more on Code Climate.

Copy link

@jaybuidl jaybuidl merged commit 61b500e into dev Jun 11, 2024
19 of 22 checks passed
@kemuru kemuru deleted the feat(web)/migrate-wagmi-v2 branch June 12, 2024 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Maintenance 🚧 Type: Toolchain ⚒️ Build tools configuration, CI/CD
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants