-
Notifications
You must be signed in to change notification settings - Fork 78
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
Switch Quest Chains from ethers
to Viem for Contract Access
#1761
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so much space saved with webp. hope viem helps on questchains
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you need the comma before the parentheses on line 54 for Hasura Admin?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lines will frequently include a trailing comma so that later when a line is added after it, you don't have to add a comma in that edit.
Otherwise, git
will show both lines as changed even though the one that just got a comma isn't meaningfully different.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems good. Mentioned maybe an extra comma in another comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dysbulic Does line 41 change need an actual url link also?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or it's fine because line 44 refers to the env? I'm still getting backend build fails on the test build for dAcademy PR. @dysbulic
Successfully undeployed the Preview of this Pull Request |
Overview
What features/fixes does this PR include?
Replaces the Quest Chains SDK
contract
code generated by TypeChain with Viem'sgetContract
.Follow-Up Improvement Ideas
A Viem client masquerading as an
ethers
provider is still used in several places. Fully transitioning would likely not be too difficult.This is part of the process of transitioning
TheGame
back toethers
v6
so we can use the Ethereum Attestation Service.Also, this is part of migrating the wallet management infrastructure to WalletConnect’s (Wallet|App)Kit.
Implementation
Updates bunches of libraries including the GraphQL generation, ESLint, Ceramic, &
yarn
from 1.19 to 4.3. Theyarn
update required quite a bit of finagling with the building & deployment processes.It switches local paths from using the
paths
directive of TypeScript to theimports
section ofpackage.json
.I'm creating a Viem
WalletClient
fromwindow.ethereum
without any additional sign-in. That may be problematic, but all that should get overhauled when integrating AppKit.