Viem
Viem is a TypeScript interface for Ethereum that provides low-level stateless primitives for interacting with Ethereum
typeof.eth pfp

@typeof.eth

Proposal to set a default dataSuffix when creating a wallet client so you don't have to add your builder code to every transaction: https://github.com/wevm/viem/discussions/4241
1 reply
1 recast
6 reactions

Tony D’Addeo pfp

@deodad

@typedarray.eth any updates on https://github.com/wevm/viem/discussions/1701
1 reply
0 recast
10 reactions

will pfp

@w

@jxom do you know when `eth_simulate` support will land for arbitrum?
1 reply
0 recast
0 reaction

Tony D’Addeo pfp

@deodad

it'd be nice if prepareTransactionRequest and the OP specific estimateTotal* Viem actions supported stateOverride so they can be used to get a gas estimate even if the user doesn't have enough gas is there any reason they don't or just hasn't been needed by anyone enough yet?
1 reply
0 recast
2 reactions

moritz 💧🔑 pfp

@moritz

i love wagmi & viem
2 replies
1 recast
11 reactions

W1NTΞR pfp

@w1nt3r

What am I doing wrong? I thought viem should be lighter viem @ 2.21.39 bundling with vite Searched all imports, tldr: import { base } from "viem/chains"; import { Address, formatEther, parseAbi, createPublicClient, createWalletClient, custom, http, publicActions, keccak256, toHex } from "viem";
3 replies
0 recast
4 reactions

Jay Brower (jaymothy.eth) pfp

@jayb

has anyone gotten a transaction to sign using viem + ledger?
0 reply
0 recast
0 reaction

Jay Brower (jaymothy.eth) pfp

@jayb

is there any way to sign a transaction you constructed with viem, using a ledger?
1 reply
0 recast
0 reaction

jacopo.eth pfp

@jacopo.eth

@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
1 reply
0 recast
1 reaction

Jay Brower (jaymothy.eth) pfp

@jayb

what is the best way to mock a viem contract for testing?
1 reply
0 recast
0 reaction

Korede pfp

@korede

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?
1 reply
0 recast
0 reaction

Colin pfp

@colin

https://warpcast.com/colin/0xf0fd0c1a
0 reply
0 recast
5 reactions

David Furlong pfp

@df

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
7 replies
0 recast
2 reactions

Brock pfp

@0xbrock

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
0 reply
0 recast
1 reaction

Darryl Yeo 🛠️ pfp

@darrylyeo

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. 😅
3 replies
1 recast
6 reactions