Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/beige-vans-move.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": minor
---

Hooked up `eth_fillTransaction` routing to `prepareTransactionRequest`, to reduce the RPC calls required to prepare a local transaction from 3-4, to 1 (if `eth_fillTransaction` is supported by the execution node).
5 changes: 5 additions & 0 deletions .changeset/modern-eggs-prove.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": minor
---

Added `fillTransaction` action for `eth_fillTransaction` support.
42 changes: 25 additions & 17 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ catalog:
'@types/react-dom': ^19
react: ^19
react-dom: ^19
typescript: ^5.9.2
typescript: 5.9.2
minimumReleaseAge: 1440
minimumReleaseAgeExclude:
- '@vitest/*'
- glob
- glob
- hono
- vitest
- vocs
Expand Down
1 change: 1 addition & 0 deletions src/actions/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ test('exports actions', () => {
"estimateFeesPerGas": [Function],
"estimateGas": [Function],
"estimateMaxPriorityFeePerGas": [Function],
"fillTransaction": [Function],
"getAddresses": [Function],
"getAutomine": [Function],
"getBalance": [Function],
Expand Down
6 changes: 6 additions & 0 deletions src/actions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ export {
type EstimateMaxPriorityFeePerGasReturnType,
estimateMaxPriorityFeePerGas,
} from './public/estimateMaxPriorityFeePerGas.js'
export {
type FillTransactionErrorType,
type FillTransactionParameters,
type FillTransactionReturnType,
fillTransaction,
} from './public/fillTransaction.js'
export {
type GetBalanceErrorType,
type GetBalanceParameters,
Expand Down
Loading
Loading