Bot releases are visible (Hide)
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
#100 6bb8ce4
Thanks @jxom! - Breaking: Renamed requestAccounts
Wallet Action to requestAddresses
Breaking: Renamed getAccounts
Wallet Action to getAddresses
#100 6bb8ce4
Thanks @jxom! - Added support for Externally Owned Accounts.
#100 6bb8ce4
Thanks @jxom! - Breaking: The from
argument has been removed from Actions in favour of account
to distinguish between Account types:
+ import { getAccount } from 'viem'
const [address] = await walletClient.requestAddresses()
+ const account = getAccount(address)
const hash = await walletClient.sendTransaction({
- from: address,
+ account,
to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
value: 1000000000000000000n
})
Affected actions:
call
estimateGas
sendTransaction
signMessage
estimateContractGas
multicall
readContract
simulateContract
writeContract
Published by github-actions[bot] over 1 year ago
057e01e
Thanks @jxom! - - testClient.getTxPoolContent
→ testClient.getTxpoolContent
testClient.getTxPoolStatus
→ testClient.getTxpoolStatus
#85 2350d1a
Thanks @jxom! - Breaking: Renamed encodeAbi
& decodeAbi
to encodeAbiParameters
& decodeAbiParameters
, and modified API from named arguments to inplace arguments:
import {
- encodeAbi,
- decodeAbi,
+ encodeAbiParameters,
+ decodeAbiParameters,
} from 'viem'
-const result = encodeAbi({ params, values })
+const result = encodeAbiParameters(params, values)
-const result = decodeAbi({ params, data })
+const result = decodeAbiParameters(params, data)
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
8ef068b
Thanks @jxom! - Added 502
, 503
and 504
error codes as "non-deterministic" errors for fallback
transport & retries.
#79 db9caa9
Thanks @jxom! - Added timeout
as a config option to the http
and webSocket
Transports.
#77 d6a29f5
Thanks @jxom! - Decorated Clients with their respective Actions.
Example:
import { createPublicClient, http } from 'viem'
import { mainnet } from 'viem/chains'
-import { getBlockNumber } from 'viem/public'
const client = createPublicClient({
chain: mainnet,
transport: http(),
})
- const blockNumber = await getBlockNumber(client)
+ const blockNumber = await client.getBlockNumber()
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
#68 1be77b3
Thanks @jxom! - Breaking: Removed all public/wallet/test actions & utils from the viem
entrypoint to their respective entrypoints:
viem
= Clients & Transport exportsviem/chains
= Chains exportsviem/contract
= Contract Actions & Utils exportsviem/ens
= ENS Actions & Utils exportsviem/public
= Public Actions exportsviem/test
= Test Actions exportsviem/utils
= Utils exportsviem/wallet
= Wallet Actions exports#66 f19fc32
Thanks @tmm! - Added ENS actions getEnsAddress
and getEnsName
.
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago