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
/Viem
@jxom is it still not possible to read/write by passing functionSelector + args / calldata with viem or wagmi? functionName is not always known

I understand type safety would be lost, but I'd love to stop depending on ethers due to this
what is the best way to mock a viem contract for testing?
Noob question, but here goes. @jxom (or anyone who can help): Does the default jsonRPC nonceManager implementation in viem just do the default `getTransactionCount` RPC call behaviour for every tx submission, or does it actually manage the nonce locally?
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
$DEGEN allowance is claimable now.

Check your $DEGEN points and claim tokens:

degenclaim.com
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
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. 😅
Just migrated all of @blockhead's @viem Public Client calls to use tree-shakeable Actions.

Feels good man!