Viem
/viem838
Viem is a TypeScript interface for Ethereum that provides low-level stateless primitives for interacting with Ethereum
has anyone gotten a transaction to sign using viem + ledger?
is there any way to sign a transaction you constructed with viem, using a ledger?
Has anyone connected a local account to wagmi?
E.g. you have a viem account that you created from a private key (hypothetically) or in my case a webAuthnAccount that is the owner of a coinbase smart account
I want to connect this to wagmi so that i can use the hooks in my app. Seems like i need to make a connector?
Asked this question on the wagmi repo’s discussions tab
https://github.com/wevm/wagmi/discussions/4293
E.g. you have a viem account that you created from a private key (hypothetically) or in my case a webAuthnAccount that is the owner of a coinbase smart account
I want to connect this to wagmi so that i can use the hooks in my app. Seems like i need to make a connector?
Asked this question on the wagmi repo’s discussions tab
https://github.com/wevm/wagmi/discussions/4293
what is the best way to mock a viem contract for testing?
is there an easy way to import all chains in wagmi - was running into all sorts of type issues even with type casts when I tried
import * as allChains from 'viem/chains'
// ...
chains: Object.values(allChains)
the use case is letting people use whatever chain they'd like in the frames.js debugger
import * as allChains from 'viem/chains'
// ...
chains: Object.values(allChains)
the use case is letting people use whatever chain they'd like in the frames.js debugger
I got sick of chonky JSON imports and copying/pasting stuff into parseAbi so I made a thing. Works great with viem!
https://github.com/brockpetrie/abitty
https://github.com/brockpetrie/abitty
viem’s extreme type safety is awesome if you know the exact shape of all your parameters the moment you call each client action.
As soon as you want to derive your own composable helper functions with partial or variable parameters… the TypeScript generics get complicated, fast. 😅
As soon as you want to derive your own composable helper functions with partial or variable parameters… the TypeScript generics get complicated, fast. 😅
Just migrated all of @blockhead's @viem Public Client calls to use tree-shakeable Actions.
Feels good man!
Feels good man!