Viem

/viem865

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

@jxom do you know when `eth_simulate` support will land for arbitrum?
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?
/Viem
$OP 7 airdrop is live now.

Check your allocation and claim tokens:

https://superframe.vercel.app/
$OP 7 airdrop is live now.

Check your allocation and claim tokens:

https://superframe.vercel.app/
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";
https://imagedelivery.net/BXluQx4ige9GuW0Ia56BHw/3eefa97a-ea3d-4526-abee-19fb39c11700/original
/Viem
has anyone gotten a transaction to sign using viem + ledger?
parseUnits: $4.58859406e+38
formatUnits: $458.85

gg...
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
/Viem
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
/Viem
$DEGEN allowance is claimable now.

Check your $DEGEN points and claim tokens:

degenclaim.com
$DEGEN allowance is claimable now.

Check your $DEGEN points and claim tokens:

degenclaim.com
$DEGEN allowance is claimable now.

Check your $DEGEN points and claim tokens:

degenclaim.com
$DEGEN allowance is claimable now.

Check your $DEGEN points and claim tokens:

degenclaim.com
$DEGEN allowance is claimable now.

Check your $DEGEN points and claim tokens:

degenclaim.com
$DEGEN allowance is claimable now.

Check your $DEGEN points and claim tokens:

degenclaim.com
$DEGEN allowance is claimable now.

Check your $DEGEN points and claim tokens:

degenclaim.com
$DEGEN allowance is claimable now.

Check your $DEGEN points and claim tokens:

degenclaim.com
$DEGEN allowance is claimable now.

Check your $DEGEN points and claim tokens:

degenclaim.com
$DEGEN allowance is claimable now.

Check your $DEGEN points and claim tokens:

degenclaim.com