viem 0.0.0-main.20230924T221257 → 0.0.0-main.20230924T221936
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1945 -0
- package/LICENSE +21 -0
- package/_cjs/errors/version.js +1 -1
- package/_esm/errors/version.js +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/errors/version.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
ADDED
@@ -0,0 +1,1945 @@
|
|
1
|
+
# viem
|
2
|
+
|
3
|
+
## 1.12.2
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- [#1244](https://github.com/wagmi-dev/viem/pull/1244) [`6fd51b2f`](https://github.com/wagmi-dev/viem/commit/6fd51b2f491e898f89b04f2c5ed1052befe5133d) Thanks [@rkalis](https://github.com/rkalis)! - Added optional `bytecodeHash` parameter to `getContractAddress`.
|
8
|
+
|
9
|
+
## 1.12.1
|
10
|
+
|
11
|
+
### Patch Changes
|
12
|
+
|
13
|
+
- [#1242](https://github.com/wagmi-dev/viem/pull/1242) [`44367dbe`](https://github.com/wagmi-dev/viem/commit/44367dbe921cfd12a45d78744758474b67d28791) Thanks [@gymnasy55](https://github.com/gymnasy55)! - Fixed Sepolia multicall3 block created.
|
14
|
+
|
15
|
+
## 1.12.0
|
16
|
+
|
17
|
+
### Minor Changes
|
18
|
+
|
19
|
+
- [#1235](https://github.com/wagmi-dev/viem/pull/1235) [`b272af50`](https://github.com/wagmi-dev/viem/commit/b272af507257ed69af3b4cbb5614880ddb0f5ec4) Thanks [@jxom](https://github.com/jxom)! - Added `getContractEvents`.
|
20
|
+
|
21
|
+
## 1.11.1
|
22
|
+
|
23
|
+
### Patch Changes
|
24
|
+
|
25
|
+
- [#1234](https://github.com/wagmi-dev/viem/pull/1234) [`1b9d5ecd`](https://github.com/wagmi-dev/viem/commit/1b9d5ecdcbcf8fec0a6fd0f135936b626bef5184) Thanks [@eshaben](https://github.com/eshaben)! - Added Moonbeam development chain.
|
26
|
+
|
27
|
+
## 1.11.0
|
28
|
+
|
29
|
+
### Minor Changes
|
30
|
+
|
31
|
+
- [#1162](https://github.com/wagmi-dev/viem/pull/1162) [`8ac2c93d`](https://github.com/wagmi-dev/viem/commit/8ac2c93d2e04f843aee7fc1494967fb35a4dcc66) Thanks [@volkyeth](https://github.com/volkyeth)! - Added `getFunctionSignature` and `getEventSignature`.
|
32
|
+
|
33
|
+
### Patch Changes
|
34
|
+
|
35
|
+
- [#1221](https://github.com/wagmi-dev/viem/pull/1221) [`cf4006f7`](https://github.com/wagmi-dev/viem/commit/cf4006f799bdccfbf5765927a9fde0c20cbd1890) Thanks [@nitaliano](https://github.com/nitaliano)! - Added OP Sepolia
|
36
|
+
|
37
|
+
## 1.10.14
|
38
|
+
|
39
|
+
### Patch Changes
|
40
|
+
|
41
|
+
- [#1208](https://github.com/wagmi-dev/viem/pull/1208) [`728eb8b4`](https://github.com/wagmi-dev/viem/commit/728eb8b42f04b4587356c124140299c4879bd2e7) Thanks [@afa7789](https://github.com/afa7789)! - Added Kroma and Kroma Sepolia chains.
|
42
|
+
|
43
|
+
## 1.10.13
|
44
|
+
|
45
|
+
### Patch Changes
|
46
|
+
|
47
|
+
- [`f0708c13`](https://github.com/wagmi-dev/viem/commit/f0708c13b231678fb0abb56b23f8247baa9e3235) Thanks [@jxom](https://github.com/jxom)! - Migrated back to `isomorphic-ws`.
|
48
|
+
|
49
|
+
- [#1204](https://github.com/wagmi-dev/viem/pull/1204) [`353d28d4`](https://github.com/wagmi-dev/viem/commit/353d28d457c662a9c349bd323e3a1616cc9531eb) Thanks [@mcdee](https://github.com/mcdee)! - Added Holesky chain.
|
50
|
+
|
51
|
+
## 1.10.12
|
52
|
+
|
53
|
+
### Patch Changes
|
54
|
+
|
55
|
+
- [`165229e9`](https://github.com/wagmi-dev/viem/commit/165229e96a3fa0969adb2a2f171de968a3b4f393) Thanks [@jxom](https://github.com/jxom)! - Fixed `viem/window` entrypoint.
|
56
|
+
|
57
|
+
## 1.10.11
|
58
|
+
|
59
|
+
### Patch Changes
|
60
|
+
|
61
|
+
- [#1197](https://github.com/wagmi-dev/viem/pull/1197) [`d1fc5fe0`](https://github.com/wagmi-dev/viem/commit/d1fc5fe01dc14648a628b17606200ed343ef93f6) Thanks [@jxom](https://github.com/jxom)! - Fixed proxy packages.
|
62
|
+
|
63
|
+
## 1.10.10
|
64
|
+
|
65
|
+
### Patch Changes
|
66
|
+
|
67
|
+
- [`fa2d8794`](https://github.com/wagmi-dev/viem/commit/fa2d87942f792ee3b87c9ac291c2c82f8c2fc313) Thanks [@jxom](https://github.com/jxom)! - Fixed an issue where `waitForTransactionReceipt` would throw an error if `receipt.blockNumber` was undefined.
|
68
|
+
|
69
|
+
- [#1194](https://github.com/wagmi-dev/viem/pull/1194) [`347b1f40`](https://github.com/wagmi-dev/viem/commit/347b1f40702c50745e1f0cc493d52eaee6f405eb) Thanks [@jxom](https://github.com/jxom)! - Fixed `baseFeeMultiplier` calculation.
|
70
|
+
|
71
|
+
## 1.10.9
|
72
|
+
|
73
|
+
### Patch Changes
|
74
|
+
|
75
|
+
- [#1182](https://github.com/wagmi-dev/viem/pull/1182) [`5f048586`](https://github.com/wagmi-dev/viem/commit/5f0485869edd55605544c56c07258c8a4dcb2800) Thanks [@MarcusWentz](https://github.com/MarcusWentz)! - Added Chain: Taiko Jolnir L2.
|
76
|
+
|
77
|
+
- [#1175](https://github.com/wagmi-dev/viem/pull/1175) [`d6972937`](https://github.com/wagmi-dev/viem/commit/d69729375a31fdfa7d92d33ed50d21e954b671f3) Thanks [@avasisht23](https://github.com/avasisht23)! - Added Alchemy RPC URLs for Base chain.
|
78
|
+
|
79
|
+
## 1.10.8
|
80
|
+
|
81
|
+
### Patch Changes
|
82
|
+
|
83
|
+
- [#1177](https://github.com/wagmi-dev/viem/pull/1177) [`8d05e410`](https://github.com/wagmi-dev/viem/commit/8d05e410e1db43cbcddab2741e1f7dc22b5ffbec) Thanks [@jxom](https://github.com/jxom)! - Fixed an issue where some environments would throw `WebSocket.default is not a constructor`.
|
84
|
+
|
85
|
+
## 1.10.7
|
86
|
+
|
87
|
+
### Patch Changes
|
88
|
+
|
89
|
+
- [#1169](https://github.com/wagmi-dev/viem/pull/1169) [`eb37c760`](https://github.com/wagmi-dev/viem/commit/eb37c76077141e1288d1de372ffc6fc62654c322) Thanks [@Songkeys](https://github.com/Songkeys)! - Updated multicall3 address on Crossbell.
|
90
|
+
|
91
|
+
- [#1170](https://github.com/wagmi-dev/viem/pull/1170) [`828f48e3`](https://github.com/wagmi-dev/viem/commit/828f48e31e992c20c57f4e006e3ec3e8724da7df) Thanks [@jxom](https://github.com/jxom)! - Added `testnet` property to Gnosis Chiadao.
|
92
|
+
|
93
|
+
## 1.10.6
|
94
|
+
|
95
|
+
### Patch Changes
|
96
|
+
|
97
|
+
- [#1166](https://github.com/wagmi-dev/viem/pull/1166) [`d828894a`](https://github.com/wagmi-dev/viem/commit/d828894abedcd4eb8a35f04825858f27140fbe2c) Thanks [@jxom](https://github.com/jxom)! - Updated Polygon Mumbai RPC URL.
|
98
|
+
|
99
|
+
## 1.10.5
|
100
|
+
|
101
|
+
### Patch Changes
|
102
|
+
|
103
|
+
- [`8fe2467b`](https://github.com/wagmi-dev/viem/commit/8fe2467be17d09fb15a3eccc29f3155887d821af) Thanks [@jxom](https://github.com/jxom)! - Added `estimateFeesPerGas` and `estimateMaxPriorityFeePerGas` exports to `viem/actions`.
|
104
|
+
|
105
|
+
## 1.10.4
|
106
|
+
|
107
|
+
### Patch Changes
|
108
|
+
|
109
|
+
- [#1153](https://github.com/wagmi-dev/viem/pull/1153) [`040dda64`](https://github.com/wagmi-dev/viem/commit/040dda64340fd70602d951efea1454afe9e7c198) Thanks [@vmichalik](https://github.com/vmichalik)! - Updated Polygon Mumbai RPC URL.
|
110
|
+
|
111
|
+
## 1.10.3
|
112
|
+
|
113
|
+
### Patch Changes
|
114
|
+
|
115
|
+
- [#1147](https://github.com/wagmi-dev/viem/pull/1147) [`5001e9f7`](https://github.com/wagmi-dev/viem/commit/5001e9f72cada8be8fed8c858c37d59d1bea8425) Thanks [@holic](https://github.com/holic)! - Fixed `encodePacked` for empty arrays.
|
116
|
+
|
117
|
+
## 1.10.2
|
118
|
+
|
119
|
+
### Patch Changes
|
120
|
+
|
121
|
+
- [#1145](https://github.com/wagmi-dev/viem/pull/1145) [`eac50a51`](https://github.com/wagmi-dev/viem/commit/eac50a5138f9e2078e99abda02a9c3468bcd195b) Thanks [@jxom](https://github.com/jxom)! - Support function/event selectors as `name` in `getAbiItem`.
|
122
|
+
|
123
|
+
- [#1146](https://github.com/wagmi-dev/viem/pull/1146) [`4875a2af`](https://github.com/wagmi-dev/viem/commit/4875a2aff987709f3f94287d9f77895ec99d9590) Thanks [@darrenvechain](https://github.com/darrenvechain)! - Added Vechain chain.
|
124
|
+
|
125
|
+
## 1.10.1
|
126
|
+
|
127
|
+
### Patch Changes
|
128
|
+
|
129
|
+
- [`bf2f7ee1`](https://github.com/wagmi-dev/viem/commit/bf2f7ee124af5eb43f0541200e88bd4302680912) Thanks [@jxom](https://github.com/jxom)! - Updated dependencies:
|
130
|
+
|
131
|
+
- `@adraffy/ens-normalize`
|
132
|
+
- `@noble/curves`
|
133
|
+
- `@noble/hashes`
|
134
|
+
- `@scure/bip32`
|
135
|
+
- `@scure/bip39`
|
136
|
+
- `abitype`
|
137
|
+
- `isomorphic-ws`
|
138
|
+
- `ws`
|
139
|
+
|
140
|
+
## 1.10.0
|
141
|
+
|
142
|
+
### Minor Changes
|
143
|
+
|
144
|
+
- [#1110](https://github.com/wagmi-dev/viem/pull/1110) [`74c7d276`](https://github.com/wagmi-dev/viem/commit/74c7d276305d4e3db4a4902c247e191ead369abd) Thanks [@jxom](https://github.com/jxom)! - Amended `Chain` type to allow arbitrary `contracts` (as well as contracts that could be dependant on chain).
|
145
|
+
|
146
|
+
- [#1136](https://github.com/wagmi-dev/viem/pull/1136) [`16699c8c`](https://github.com/wagmi-dev/viem/commit/16699c8c92faccecc4dbd3353879ce5a512bbb35) Thanks [@jxom](https://github.com/jxom)! - Handle CAIP-25 "User Rejected" errors.
|
147
|
+
|
148
|
+
- [#1120](https://github.com/wagmi-dev/viem/pull/1120) [`0e4d9320`](https://github.com/wagmi-dev/viem/commit/0e4d932079a449fb7268c24eb0f6391e7b05076c) Thanks [@polygomic](https://github.com/polygomic)! - Added Plinga chain
|
149
|
+
|
150
|
+
- [#1108](https://github.com/wagmi-dev/viem/pull/1108) [`2327aa07`](https://github.com/wagmi-dev/viem/commit/2327aa0741bac51058d7038840bdc2895ead5456) Thanks [@simonzg](https://github.com/simonzg)! - Added Meter chain and Meter Testnet chain
|
151
|
+
|
152
|
+
- [#1128](https://github.com/wagmi-dev/viem/pull/1128) [`e1728054`](https://github.com/wagmi-dev/viem/commit/e17280544dc113c855166dae0ee634890c8a4e96) Thanks [@karangoraniya](https://github.com/karangoraniya)! - Added opBNB Mainnet and Testnet chains.
|
153
|
+
|
154
|
+
- [#1117](https://github.com/wagmi-dev/viem/pull/1117) [`a637ba2b`](https://github.com/wagmi-dev/viem/commit/a637ba2b5fc1ffacc1f483ea4be0121528faf3f4) Thanks [@rkalis](https://github.com/rkalis)! - Added `domainSeparator` to calculate domain separator from an EIP712 domain.
|
155
|
+
|
156
|
+
### Patch Changes
|
157
|
+
|
158
|
+
- [#1137](https://github.com/wagmi-dev/viem/pull/1137) [`4159c997`](https://github.com/wagmi-dev/viem/commit/4159c9979788798cca6ebb48f38e2284559850ff) Thanks [@jxom](https://github.com/jxom)! - Fixed an issue where non-standard "user rejected" errors where being coalesced into an `UnknownNodeError`.
|
159
|
+
|
160
|
+
- [`8605c1f1`](https://github.com/wagmi-dev/viem/commit/8605c1f1d048a2d924bd8b83a42b8ce5b0e65900) Thanks [@jxom](https://github.com/jxom)! - Handle `-32603` RPC error codes when deriving a `ContractFunctionRevertedError`.
|
161
|
+
|
162
|
+
- [#1109](https://github.com/wagmi-dev/viem/pull/1109) [`0a242120`](https://github.com/wagmi-dev/viem/commit/0a2421204f3878e016502f7e2ec98d043ef88cf6) Thanks [@jxom](https://github.com/jxom)! - Removed hardcoded `defaultPriorityFee` on OP Stack chains in favor of fetching it from `eth_maxPriorityFeePerGas`.
|
163
|
+
|
164
|
+
- [#1112](https://github.com/wagmi-dev/viem/pull/1112) [`7da52244`](https://github.com/wagmi-dev/viem/commit/7da5224467ca5a6368f27734a01b56f53c2c0106) Thanks [@RexCloud](https://github.com/RexCloud)! - Added multicall3 for Scroll Sepolia
|
165
|
+
|
166
|
+
- [#1139](https://github.com/wagmi-dev/viem/pull/1139) [`86230caf`](https://github.com/wagmi-dev/viem/commit/86230caf872f76975f7f6aaff53a9c9e3b8bfdc7) Thanks [@jxom](https://github.com/jxom)! - Fixed `VerifyMessageParameters` to accept a `raw` property.
|
167
|
+
|
168
|
+
- [#1138](https://github.com/wagmi-dev/viem/pull/1138) [`101c94f2`](https://github.com/wagmi-dev/viem/commit/101c94f2841056410ed4c32b76672f7fbd1ebabc) Thanks [@jxom](https://github.com/jxom)! - Amended Base chain `nativeCurreny.name` to "Ether".
|
169
|
+
|
170
|
+
- [#1048](https://github.com/wagmi-dev/viem/pull/1048) [`f33086ef`](https://github.com/wagmi-dev/viem/commit/f33086ef88a1c9650b2b0efa6a034490519eead8) Thanks [@brianathere](https://github.com/brianathere)! - Converted `isomorphic-ws` to a synchronous import.
|
171
|
+
|
172
|
+
## 1.9.5
|
173
|
+
|
174
|
+
### Patch Changes
|
175
|
+
|
176
|
+
- [#1105](https://github.com/wagmi-dev/viem/pull/1105) [`9661b9d8`](https://github.com/wagmi-dev/viem/commit/9661b9d8f4d747391f9ffb14b789c727a6831488) Thanks [@dschlabach](https://github.com/dschlabach)! - Added ENS Registry and ENS Universal Resolver for Sepolia.
|
177
|
+
|
178
|
+
- [#1102](https://github.com/wagmi-dev/viem/pull/1102) [`0edea858`](https://github.com/wagmi-dev/viem/commit/0edea858fe28bd9d7cb7c5b9b8ebde72025cf71d) Thanks [@rkalis](https://github.com/rkalis)! - Fixed bug regarding incorrect bigint->bytes32 conversion in hexToSignature
|
179
|
+
|
180
|
+
## 1.9.4
|
181
|
+
|
182
|
+
### Patch Changes
|
183
|
+
|
184
|
+
- [#1098](https://github.com/wagmi-dev/viem/pull/1098) [`970c0f53`](https://github.com/wagmi-dev/viem/commit/970c0f53043241360c108ee2f7c07dd2413ab233) Thanks [@Sz0x](https://github.com/Sz0x)! - Added account hoisting to `call`.
|
185
|
+
|
186
|
+
## 1.9.3
|
187
|
+
|
188
|
+
### Patch Changes
|
189
|
+
|
190
|
+
- [#1087](https://github.com/wagmi-dev/viem/pull/1087) [`ac3b7eab`](https://github.com/wagmi-dev/viem/commit/ac3b7eab194d541bcf54098bf22ab068ebfc642a) Thanks [@jxom](https://github.com/jxom)! - Append errors from `aggregate3` to return results if `allowFailure=true` instead of throwing an error.
|
191
|
+
|
192
|
+
## 1.9.2
|
193
|
+
|
194
|
+
### Patch Changes
|
195
|
+
|
196
|
+
- [`0b0167ef`](https://github.com/wagmi-dev/viem/commit/0b0167ef7ecdd11d59310d04cde3a074dcf5abcd) Thanks [@jxom](https://github.com/jxom)! - Fixed `PrepareTransactionRequestReturnType` type.
|
197
|
+
|
198
|
+
## 1.9.1
|
199
|
+
|
200
|
+
### Patch Changes
|
201
|
+
|
202
|
+
- [#1081](https://github.com/wagmi-dev/viem/pull/1081) [`29ba250f`](https://github.com/wagmi-dev/viem/commit/29ba250f19213348af28e535aac7df176f673ae0) Thanks [@witem](https://github.com/witem)! - Improved multicall performance.
|
203
|
+
|
204
|
+
## 1.9.0
|
205
|
+
|
206
|
+
### Minor Changes
|
207
|
+
|
208
|
+
- [`e14eeb3b`](https://github.com/wagmi-dev/viem/commit/e14eeb3bd287a45e0c4fbed81847f7477b3e80e6) Thanks [@jxom](https://github.com/jxom)! - Migrated `@wagmi/chains` into viem and removed the `@wagmi/chains` dependency.
|
209
|
+
|
210
|
+
## 1.8.1
|
211
|
+
|
212
|
+
### Patch Changes
|
213
|
+
|
214
|
+
- [#1072](https://github.com/wagmi-dev/viem/pull/1072) [`edf264f3`](https://github.com/wagmi-dev/viem/commit/edf264f385e1bb24d4f7b242d1446124a6d3fcb4) Thanks [@linchengzzz](https://github.com/linchengzzz)! - Added Linea chain.
|
215
|
+
|
216
|
+
## 1.8.0
|
217
|
+
|
218
|
+
### Minor Changes
|
219
|
+
|
220
|
+
- [#1058](https://github.com/wagmi-dev/viem/pull/1058) [`533b5900`](https://github.com/wagmi-dev/viem/commit/533b59006b3344b947485ef372f0c78b111f6dc3) Thanks [@jxom](https://github.com/jxom)! - Added `prepareTransactionRequest`, `signTransaction`, and `sendRawTransaction`.
|
221
|
+
|
222
|
+
## 1.7.1
|
223
|
+
|
224
|
+
### Patch Changes
|
225
|
+
|
226
|
+
- [`da45ec2d`](https://github.com/wagmi-dev/viem/commit/da45ec2d519ccabef5eef0c4bc8efae05c12bcb3) Thanks [@jxom](https://github.com/jxom)! - Deduped block retrieval in `estimateMaxPriorityFeePerGas`.
|
227
|
+
|
228
|
+
## 1.7.0
|
229
|
+
|
230
|
+
### Minor Changes
|
231
|
+
|
232
|
+
- [#1044](https://github.com/wagmi-dev/viem/pull/1044) [`3daedbf5`](https://github.com/wagmi-dev/viem/commit/3daedbf50828c4ea01c5096a05d94e8c7205644f) Thanks [@jxom](https://github.com/jxom)! - Added `estimateFeesPerGas` & `estimateMaxPriorityFeesPerGas` Actions.
|
233
|
+
|
234
|
+
- [#1044](https://github.com/wagmi-dev/viem/pull/1044) [`3daedbf5`](https://github.com/wagmi-dev/viem/commit/3daedbf50828c4ea01c5096a05d94e8c7205644f) Thanks [@jxom](https://github.com/jxom)! - Added `estimateFeesPerGas` & `baseFeeMultiplier` to the Chain Fees configuration (`chain.fees`).
|
235
|
+
|
236
|
+
## 1.6.6
|
237
|
+
|
238
|
+
### Patch Changes
|
239
|
+
|
240
|
+
- [#1035](https://github.com/wagmi-dev/viem/pull/1035) [`7981fa99`](https://github.com/wagmi-dev/viem/commit/7981fa994d092f7f638c5a627cb009b8e5a23883) Thanks [@aaronmgdr](https://github.com/aaronmgdr)! - Added `parseTransactionCelo` to the `viem/chains/utils` entrypoint.
|
241
|
+
|
242
|
+
## 1.6.5
|
243
|
+
|
244
|
+
### Patch Changes
|
245
|
+
|
246
|
+
- [#1041](https://github.com/wagmi-dev/viem/pull/1041) [`fa3353e9`](https://github.com/wagmi-dev/viem/commit/fa3353e9de1b27d8471531f1c4d35e7f34f7ef39) Thanks [@jxom](https://github.com/jxom)! - Fixed WebSocket instantiation in React Native environment.
|
247
|
+
|
248
|
+
## 1.6.4
|
249
|
+
|
250
|
+
### Patch Changes
|
251
|
+
|
252
|
+
- [#1040](https://github.com/wagmi-dev/viem/pull/1040) [`1e5bd4a0`](https://github.com/wagmi-dev/viem/commit/1e5bd4a000f8e8ebdb71674bca26cfb51eb8f275) Thanks [@jxom](https://github.com/jxom)! - Made `value` optional on `writeContract`/`simulateContract` for `payable` functions.
|
253
|
+
|
254
|
+
- [#1022](https://github.com/wagmi-dev/viem/pull/1022) [`2eb56bc7`](https://github.com/wagmi-dev/viem/commit/2eb56bc7df4094b1b92f31ad926e72271ff27add) Thanks [@Songkeys](https://github.com/Songkeys)! - Fixed an issue where `waitForTransactionReceipt` would be infinitely pending when an error is thrown after a transaction has been replaced.
|
255
|
+
|
256
|
+
## 1.6.3
|
257
|
+
|
258
|
+
### Patch Changes
|
259
|
+
|
260
|
+
- [#1013](https://github.com/wagmi-dev/viem/pull/1013) [`dd1e1028`](https://github.com/wagmi-dev/viem/commit/dd1e102874ef006d55d286b622e74e5d210c2293) Thanks [@avasisht23](https://github.com/avasisht23)! - Added `EIP1193EventMap` type.
|
261
|
+
|
262
|
+
- [#1033](https://github.com/wagmi-dev/viem/pull/1033) [`51ccc6c9`](https://github.com/wagmi-dev/viem/commit/51ccc6c9453538b98e7e580cec44d9b15f0d3500) Thanks [@skeithc](https://github.com/skeithc)! - Fixed `getEnsAddress` for addresses that start with `0`.
|
263
|
+
|
264
|
+
## 1.6.2
|
265
|
+
|
266
|
+
### Patch Changes
|
267
|
+
|
268
|
+
- [#1028](https://github.com/wagmi-dev/viem/pull/1028) [`b8fa9b4e`](https://github.com/wagmi-dev/viem/commit/b8fa9b4e553b8a1568a19bf995af3d496f126245) Thanks [@tmm](https://github.com/tmm)! - Fixed TypeScript 5.1.6 support
|
269
|
+
|
270
|
+
- [`1a30f344`](https://github.com/wagmi-dev/viem/commit/1a30f344fe061a5d6b8314d8ee9b17856bc711e4) Thanks [@jxom](https://github.com/jxom)! - Fixed number constants.
|
271
|
+
|
272
|
+
## 1.6.1
|
273
|
+
|
274
|
+
### Patch Changes
|
275
|
+
|
276
|
+
- [#1011](https://github.com/wagmi-dev/viem/pull/1011) [`582cb017`](https://github.com/wagmi-dev/viem/commit/582cb0170def5c5077dca2f96034eba11f09ec88) Thanks [@dghelm](https://github.com/dghelm)! - Added Scroll Sepolia testnet
|
277
|
+
|
278
|
+
## 1.6.0
|
279
|
+
|
280
|
+
### Minor Changes
|
281
|
+
|
282
|
+
- [#984](https://github.com/wagmi-dev/viem/pull/984) [`e1032c7b`](https://github.com/wagmi-dev/viem/commit/e1032c7bd9effb3fb0d57ebf90cdd37c7e1c06c1) Thanks [@holic](https://github.com/holic)! - Added `signTransaction` & `privateKeyToAddress` exports to `viem/accounts` entrypoint.
|
283
|
+
|
284
|
+
- [#1006](https://github.com/wagmi-dev/viem/pull/1006) [`7311e201`](https://github.com/wagmi-dev/viem/commit/7311e201d273776d93471f459f55dd598a4f6e52) Thanks [@jxom](https://github.com/jxom)! - Added `fees` to `chain` config that includes a `defaultPriorityFee` for setting a default priority fee (`maxPriorityFeePerGas`) for a chain.
|
285
|
+
|
286
|
+
```ts
|
287
|
+
import type { Chain } from 'viem'
|
288
|
+
|
289
|
+
export const example = {
|
290
|
+
// ...
|
291
|
+
fees: {
|
292
|
+
defaultPriorityFee: 1_000_000n, // 0.001 gwei
|
293
|
+
// or
|
294
|
+
async defaultPriorityFee() {
|
295
|
+
// ... some async behavior to derive the fee.
|
296
|
+
}
|
297
|
+
},
|
298
|
+
// ...
|
299
|
+
} as const satifies Chain
|
300
|
+
```
|
301
|
+
|
302
|
+
- [#886](https://github.com/wagmi-dev/viem/pull/886) [`fef66bfb`](https://github.com/wagmi-dev/viem/commit/fef66bfbb9d0c9a94f3f607867738432bcbfef85) Thanks [@jxom](https://github.com/jxom)! - Added formatter for Optimism transaction receipts (format `l1GasPrice`, `l1GasUsed`, etc).
|
303
|
+
|
304
|
+
- [#886](https://github.com/wagmi-dev/viem/pull/886) [`fef66bfb`](https://github.com/wagmi-dev/viem/commit/fef66bfbb9d0c9a94f3f607867738432bcbfef85) Thanks [@jxom](https://github.com/jxom)! - Added entrypoints for chain utilities (`viem/chains/utils`) with exports for chain-specific chains, formatters, serializers, and types.
|
305
|
+
|
306
|
+
Examples:
|
307
|
+
|
308
|
+
```ts
|
309
|
+
import {
|
310
|
+
type CeloBlock,
|
311
|
+
type CeloTransaction,
|
312
|
+
type OptimismBlock,
|
313
|
+
type OptimismTransaction,
|
314
|
+
serializeTransactionCelo,
|
315
|
+
} from 'viem/chains/utils'
|
316
|
+
```
|
317
|
+
|
318
|
+
### Patch Changes
|
319
|
+
|
320
|
+
- [`99332168`](https://github.com/wagmi-dev/viem/commit/993321689b3e2220976504e7e170fe47731297ce) Thanks [@jxom](https://github.com/jxom)! - Updated `@noble/curves`
|
321
|
+
|
322
|
+
- [#1008](https://github.com/wagmi-dev/viem/pull/1008) [`9d93953f`](https://github.com/wagmi-dev/viem/commit/9d93953ffc66d70ccbe7e05862edfeadb1334a9e) Thanks [@holic](https://github.com/holic)! - Added `"already known"` as a node message matcher to `NonceTooLowError`.
|
323
|
+
|
324
|
+
## 1.5.4
|
325
|
+
|
326
|
+
### Patch Changes
|
327
|
+
|
328
|
+
- [#1000](https://github.com/wagmi-dev/viem/pull/1000) [`4bdbf15b`](https://github.com/wagmi-dev/viem/commit/4bdbf15be0d61b52a195e11c97201e707fb616cc) Thanks [@jxom](https://github.com/jxom)! - Fixed `docsPath` value in `estimateContractGas`.
|
329
|
+
|
330
|
+
- [#999](https://github.com/wagmi-dev/viem/pull/999) [`de94d81f`](https://github.com/wagmi-dev/viem/commit/de94d81f41689ae9155c1295c8f7b80e4a7c9540) Thanks [@jxom](https://github.com/jxom)! - Support passing `gasPrice` for chains that include `baseFeePerGas` but do not support EIP-1559 Transactions (e.g. BSC).
|
331
|
+
|
332
|
+
## 1.5.3
|
333
|
+
|
334
|
+
### Patch Changes
|
335
|
+
|
336
|
+
- [`ae4ab844`](https://github.com/wagmi-dev/viem/commit/ae4ab8442fcdaa073a98a71599762a1cb54c3cf0) Thanks [@jxom](https://github.com/jxom)! - Fixed performance bottleneck in ABI encoding for dynamic bytes.
|
337
|
+
|
338
|
+
## 1.5.2
|
339
|
+
|
340
|
+
### Patch Changes
|
341
|
+
|
342
|
+
- [#974](https://github.com/wagmi-dev/viem/pull/974) [`11410bab`](https://github.com/wagmi-dev/viem/commit/11410bab795c390734adab093ab78da127fb68c4) Thanks [@jxom](https://github.com/jxom)! - Fixed issue where `getFunctionSelector` & `getEventSelector` were returning incorrect selectors for tuple parameters.
|
343
|
+
|
344
|
+
## 1.5.1
|
345
|
+
|
346
|
+
### Patch Changes
|
347
|
+
|
348
|
+
- [#954](https://github.com/wagmi-dev/viem/pull/954) [`e98e2651`](https://github.com/wagmi-dev/viem/commit/e98e2651528e015a62a8c1181a66060dd155124e) Thanks [@jaxernst](https://github.com/jaxernst)! - Added filter reinitialization logic for `watchContractEvent` and `watchEvent` for when a filter has been uninstalled.
|
349
|
+
|
350
|
+
- [#967](https://github.com/wagmi-dev/viem/pull/967) [`eb8954a0`](https://github.com/wagmi-dev/viem/commit/eb8954a003a198b843835231cb406e88ffccf1d1) Thanks [@Zil-B](https://github.com/Zil-B)! - Moved `@types/ws` into dependencies to fix an issue where required runtime types weren't being exported.
|
351
|
+
|
352
|
+
## 1.5.0
|
353
|
+
|
354
|
+
### Minor Changes
|
355
|
+
|
356
|
+
- [#847](https://github.com/wagmi-dev/viem/pull/847) [`1e5d4545`](https://github.com/wagmi-dev/viem/commit/1e5d4545736282c2d8dedb38907f2433ce1c72f4) Thanks [@jxom](https://github.com/jxom)! - Narrowed `getBlock`, `watchBlocks`, `getFilterChanges`, `getFilterLogs` & `getLogs` return types for when `blockTag` or `includeTransactions` is provided.
|
357
|
+
|
358
|
+
- When `blockTag !== 'pending'`, the return type will now include some non-nullish properties if it were dependent on pending blocks. Example: For `getBlock`, the `block.number` type is now non-nullish since `blockTag !== 'pending'`.
|
359
|
+
- On the other hand, when `blockTag: 'pending'`, some properties will be nullish. Example: For `getBlock`, the `block.number` type is now `null` since `blockTag === 'pending'`.
|
360
|
+
- When `includeTransactions` is provided, the return type of will narrow the `transactions` property type. Example: `block.transactions` will be `Transaction[]` when `includeTransactions: true` instead of `Hash[] | Transaction[]`.
|
361
|
+
|
362
|
+
TLDR;
|
363
|
+
|
364
|
+
```ts
|
365
|
+
// Before
|
366
|
+
const block = publicClient.getBlock({ includeTransactions: true });
|
367
|
+
block.transactions;
|
368
|
+
// ^? Hash[] | Transaction[]
|
369
|
+
block.transactions[0].blockNumber;
|
370
|
+
// ^? bigint | null
|
371
|
+
|
372
|
+
// After
|
373
|
+
const block = publicClient.getBlock({ includeTransactions: true });
|
374
|
+
block.transactions;
|
375
|
+
// ^? Transaction[]
|
376
|
+
block.transactions[0].blockNumber;
|
377
|
+
// ^? bigint
|
378
|
+
|
379
|
+
// Before
|
380
|
+
const block = publicClient.getBlock({
|
381
|
+
blockTag: "pending",
|
382
|
+
includeTransactions: true
|
383
|
+
});
|
384
|
+
block.number;
|
385
|
+
// ^? number | null
|
386
|
+
block.transactions[0].blockNumber;
|
387
|
+
// ^? bigint | null
|
388
|
+
|
389
|
+
// After
|
390
|
+
const block = publicClient.getBlock({
|
391
|
+
blockTag: "pending",
|
392
|
+
includeTransactions: true
|
393
|
+
});
|
394
|
+
block.number;
|
395
|
+
// ^? null
|
396
|
+
block.transactions[0].blockNumber;
|
397
|
+
// ^? null
|
398
|
+
```
|
399
|
+
|
400
|
+
- [#847](https://github.com/wagmi-dev/viem/pull/847) [`1e5d4545`](https://github.com/wagmi-dev/viem/commit/1e5d4545736282c2d8dedb38907f2433ce1c72f4) Thanks [@jxom](https://github.com/jxom)! - **Type Change**: `TPending` has been added to slot 2 of the `Log` generics.
|
401
|
+
|
402
|
+
```diff
|
403
|
+
type Log<
|
404
|
+
TQuantity = bigint,
|
405
|
+
TIndex = number,
|
406
|
+
+ TPending extends boolean = boolean,
|
407
|
+
TAbiEvent extends AbiEvent | undefined = undefined,
|
408
|
+
TStrict extends boolean | undefined = undefined,
|
409
|
+
TAbi extends Abi | readonly unknown[] = [TAbiEvent],
|
410
|
+
TEventName extends string | undefined = TAbiEvent extends AbiEvent
|
411
|
+
? TAbiEvent['name']
|
412
|
+
: undefined,
|
413
|
+
>
|
414
|
+
```
|
415
|
+
|
416
|
+
- [#958](https://github.com/wagmi-dev/viem/pull/958) [`f7976fd0`](https://github.com/wagmi-dev/viem/commit/f7976fd0486079247a76ff3d3cecfbc2f6f2dae9) Thanks [@jxom](https://github.com/jxom)! - Added `cacheTime` as a parameter to `getBlockNumber` & `createClient`.
|
417
|
+
|
418
|
+
- [`28a82125`](https://github.com/wagmi-dev/viem/commit/28a82125f2678ed6ceb3bfaab065bfb9ffc8a367) Thanks [@jxom](https://github.com/jxom)! - Exported number constants (ie. `maxInt128`, `maxUint256`, etc).
|
419
|
+
|
420
|
+
- [#951](https://github.com/wagmi-dev/viem/pull/951) [`c75d3b60`](https://github.com/wagmi-dev/viem/commit/c75d3b60fbacaf4d3ff23460e91dc2b75baed15d) Thanks [@jxom](https://github.com/jxom)! - Added support for multiple `events` on Filters/Log Actions:
|
421
|
+
|
422
|
+
- `createEventFilter`
|
423
|
+
- `getLogs`
|
424
|
+
- `watchEvent`
|
425
|
+
|
426
|
+
Example:
|
427
|
+
|
428
|
+
```ts
|
429
|
+
import { parseAbi } from "viem";
|
430
|
+
import { publicClient } from "./client";
|
431
|
+
|
432
|
+
const logs = publicClient.getLogs({
|
433
|
+
events: parseAbi([
|
434
|
+
"event Approval(address indexed owner, address indexed sender, uint256 value)",
|
435
|
+
"event Transfer(address indexed from, address indexed to, uint256 value)"
|
436
|
+
])
|
437
|
+
});
|
438
|
+
```
|
439
|
+
|
440
|
+
- [#957](https://github.com/wagmi-dev/viem/pull/957) [`7950df80`](https://github.com/wagmi-dev/viem/commit/7950df80c2416772861b7fc99a6d40095725b87c) Thanks [@jxom](https://github.com/jxom)! - Added `hexToSignature` & `signatureToHex`.
|
441
|
+
|
442
|
+
- [#847](https://github.com/wagmi-dev/viem/pull/847) [`1e5d4545`](https://github.com/wagmi-dev/viem/commit/1e5d4545736282c2d8dedb38907f2433ce1c72f4) Thanks [@jxom](https://github.com/jxom)! - **Type Change**: `TIncludeTransactions` & `TBlockTag` has been added to slot 1 & 2 of the `Block` generics.
|
443
|
+
|
444
|
+
```diff
|
445
|
+
type Block<
|
446
|
+
TQuantity = bigint,
|
447
|
+
+ TIncludeTransactions extends boolean = boolean,
|
448
|
+
+ TBlockTag extends BlockTag = BlockTag,
|
449
|
+
TTransaction = Transaction<
|
450
|
+
bigint,
|
451
|
+
number,
|
452
|
+
TBlockTag extends 'pending' ? true : false
|
453
|
+
>,
|
454
|
+
>
|
455
|
+
```
|
456
|
+
|
457
|
+
## 1.4.2
|
458
|
+
|
459
|
+
### Patch Changes
|
460
|
+
|
461
|
+
- [#941](https://github.com/wagmi-dev/viem/pull/941) [`12c685a1`](https://github.com/wagmi-dev/viem/commit/12c685a1adc5ab4531d3084cdfa9e281456c4793) Thanks [@jxom](https://github.com/jxom)! - Capture error signatures that do not exist on the ABI in `ContractFunctionRevertedError`.
|
462
|
+
|
463
|
+
- [#942](https://github.com/wagmi-dev/viem/pull/942) [`e26e356c`](https://github.com/wagmi-dev/viem/commit/e26e356cf43618af23a9a67ee5eaa897921d4160) Thanks [@alexfertel](https://github.com/alexfertel)! - Deprecated `OnLogParameter` & `OnLogFn` in favor of `WatchEventOnLogParameter` & `WatchEventOnLogFn` types.
|
464
|
+
Added `WatchContractEventOnLogParameter` & `WatchContractEventOnLogFn` types.
|
465
|
+
|
466
|
+
## 1.4.1
|
467
|
+
|
468
|
+
### Patch Changes
|
469
|
+
|
470
|
+
- [`789592dc`](https://github.com/wagmi-dev/viem/commit/789592dc5d4ca264f2ef4f3f0f4fa721fb9522fc) Thanks [@jxom](https://github.com/jxom)! - Fixed an issue where calling `encodePacked` with an empty `bytes[]` array would return an `Uint8Array` instead of `Hex` value.
|
471
|
+
|
472
|
+
- [#922](https://github.com/wagmi-dev/viem/pull/922) [`71c9c933`](https://github.com/wagmi-dev/viem/commit/71c9c9338904d142248a32f1acd99ea25a6e6e58) Thanks [@mikemcdonald](https://github.com/mikemcdonald)! - Fixed an issue where `parseUnits` would throw `Cannot convert to a BigInt` for large numbers with a fraction component.
|
473
|
+
|
474
|
+
## 1.4.0
|
475
|
+
|
476
|
+
### Minor Changes
|
477
|
+
|
478
|
+
- [#908](https://github.com/wagmi-dev/viem/pull/908) [`988c65f8`](https://github.com/wagmi-dev/viem/commit/988c65f8218c9ce0549c04b3779efb5f685da75f) Thanks [@moldy530](https://github.com/moldy530)! - Added coin type support for `getEnsAddress`.
|
479
|
+
|
480
|
+
### Patch Changes
|
481
|
+
|
482
|
+
- [#878](https://github.com/wagmi-dev/viem/pull/878) [`4e227303`](https://github.com/wagmi-dev/viem/commit/4e2273036f8bbc7973b13467d7cb9baa2f17a460) Thanks [@salieflewis](https://github.com/salieflewis)! - Exported `Filter` type.
|
483
|
+
|
484
|
+
## 1.3.1
|
485
|
+
|
486
|
+
### Patch Changes
|
487
|
+
|
488
|
+
- [#907](https://github.com/wagmi-dev/viem/pull/907) [`319cdb61`](https://github.com/wagmi-dev/viem/commit/319cdb615f0ac6cff0385bb371be9a7da51abe80) Thanks [@Raiden1411](https://github.com/Raiden1411)! - Updated `abitype` to 0.9.3
|
489
|
+
|
490
|
+
## 1.3.0
|
491
|
+
|
492
|
+
### Minor Changes
|
493
|
+
|
494
|
+
- [`30a88482`](https://github.com/wagmi-dev/viem/commit/30a88482d541a346990eac9630b7fa1f1550c90a) Thanks [@jxom](https://github.com/jxom)! - Added chains:
|
495
|
+
- `base`
|
496
|
+
- `mev`
|
497
|
+
- `mevTestnet`
|
498
|
+
|
499
|
+
## 1.2.15
|
500
|
+
|
501
|
+
### Patch Changes
|
502
|
+
|
503
|
+
- [#885](https://github.com/wagmi-dev/viem/pull/885) [`020c744d`](https://github.com/wagmi-dev/viem/commit/020c744d85e4150b4248407eae8a52ce390cfa9d) Thanks [@TateB](https://github.com/TateB)! - Added `null` resolver check to ENS Actions.
|
504
|
+
|
505
|
+
## 1.2.14
|
506
|
+
|
507
|
+
### Patch Changes
|
508
|
+
|
509
|
+
- [#883](https://github.com/wagmi-dev/viem/pull/883) [`ad96d39f`](https://github.com/wagmi-dev/viem/commit/ad96d39f6c9266dc6965013e255990952fa9323d) Thanks [@tmm](https://github.com/tmm)! - Exported missing types
|
510
|
+
|
511
|
+
## 1.2.13
|
512
|
+
|
513
|
+
### Patch Changes
|
514
|
+
|
515
|
+
- [#874](https://github.com/wagmi-dev/viem/pull/874) [`a9bc9f6d`](https://github.com/wagmi-dev/viem/commit/a9bc9f6d182052a536e51dc6fa75afda91de331a) Thanks [@Alexsey](https://github.com/Alexsey)! - Fixed `BaseError.walk` to return `null` if the predicate callback is not satisfied.
|
516
|
+
|
517
|
+
## 1.2.12
|
518
|
+
|
519
|
+
### Patch Changes
|
520
|
+
|
521
|
+
- [#864](https://github.com/wagmi-dev/viem/pull/864) [`b851c41b`](https://github.com/wagmi-dev/viem/commit/b851c41b87dce60af6be1e518e3c7a1b16e99b63) Thanks [@jxom](https://github.com/jxom)! - Fixed an issue where `dataSuffix` was not being provided to the `request` returned from `simulateTransaction`.
|
522
|
+
|
523
|
+
## 1.2.11
|
524
|
+
|
525
|
+
### Minor Changes
|
526
|
+
|
527
|
+
- [#857](https://github.com/wagmi-dev/viem/pull/857) [`513a7b9a`](https://github.com/wagmi-dev/viem/commit/513a7b9a4c037591b0fe4dd4fb4364bf8fed9726) Thanks [@tmm](https://github.com/tmm)! - Prettify-ed client types
|
528
|
+
|
529
|
+
## 1.2.10
|
530
|
+
|
531
|
+
### Patch Changes
|
532
|
+
|
533
|
+
- [#853](https://github.com/wagmi-dev/viem/pull/853) [`a955007e`](https://github.com/wagmi-dev/viem/commit/a955007e00f9076f4d2faefb5473df0fb968de8e) Thanks [@johngrantuk](https://github.com/johngrantuk)! - Allow using EIP-1559 transactions on chains with 0 base fee.
|
534
|
+
|
535
|
+
## 1.2.9
|
536
|
+
|
537
|
+
### Patch Changes
|
538
|
+
|
539
|
+
- [`d24e5bc4`](https://github.com/wagmi-dev/viem/commit/d24e5bc48100afb62a25c8515874be9fddb4c7c3) Thanks [@jxom](https://github.com/jxom)! - Fixed a race condition in `waitForTransactionReceipt` causing multiple parallel instances to not resolve.
|
540
|
+
|
541
|
+
## 1.2.8
|
542
|
+
|
543
|
+
### Patch Changes
|
544
|
+
|
545
|
+
- [#755](https://github.com/wagmi-dev/viem/pull/755) [`064cc09e`](https://github.com/wagmi-dev/viem/commit/064cc09e40dfb0b436b84c01aafdb448928153b3) Thanks [@aaronmgdr](https://github.com/aaronmgdr)! - Added serializer for Celo CIP-42 transactions.
|
546
|
+
|
547
|
+
- [#822](https://github.com/wagmi-dev/viem/pull/822) [`9a1e42bd`](https://github.com/wagmi-dev/viem/commit/9a1e42bd5d3ceef6527e04275499bef5ff4b4a39) Thanks [@RielJ](https://github.com/RielJ)! - Added ability to pass `value` to `deployContract`.
|
548
|
+
|
549
|
+
## 1.2.7
|
550
|
+
|
551
|
+
### Patch Changes
|
552
|
+
|
553
|
+
- [#825](https://github.com/wagmi-dev/viem/pull/825) [`d9e0a64c`](https://github.com/wagmi-dev/viem/commit/d9e0a64c30011d60f873008ec68baa324f70b7ad) Thanks [@tmm](https://github.com/tmm)! - Exported types.
|
554
|
+
|
555
|
+
- [#824](https://github.com/wagmi-dev/viem/pull/824) [`9dcec526`](https://github.com/wagmi-dev/viem/commit/9dcec5262c57085f6ff9f220471891e8805ba6b5) Thanks [@frangio](https://github.com/frangio)! - Added missing `package.json#peerDependenciesMeta`.
|
556
|
+
|
557
|
+
## 1.2.6
|
558
|
+
|
559
|
+
### Patch Changes
|
560
|
+
|
561
|
+
- [#808](https://github.com/wagmi-dev/viem/pull/808) [`7567f58e`](https://github.com/wagmi-dev/viem/commit/7567f58e808b5cf67e46c151bf0569a2820be7bd) Thanks [@jxom](https://github.com/jxom)! - Fixed `RpcTransaction` type to not include `typeHex`.
|
562
|
+
|
563
|
+
- [#808](https://github.com/wagmi-dev/viem/pull/808) [`7567f58e`](https://github.com/wagmi-dev/viem/commit/7567f58e808b5cf67e46c151bf0569a2820be7bd) Thanks [@jxom](https://github.com/jxom)! - Fixed an issue where `TransactionRequest` did not narrow based on type.
|
564
|
+
|
565
|
+
## 1.2.5
|
566
|
+
|
567
|
+
### Patch Changes
|
568
|
+
|
569
|
+
- [`81282fc1`](https://github.com/wagmi-dev/viem/commit/81282fc1d9cd4187e2caed051f221b2d4e57ec3a) Thanks [@jxom](https://github.com/jxom)! - Exported `signatureToHex`.
|
570
|
+
|
571
|
+
## 1.2.4
|
572
|
+
|
573
|
+
### Patch Changes
|
574
|
+
|
575
|
+
- [`11c844a1`](https://github.com/wagmi-dev/viem/commit/11c844a1804270bfafa903061d1f98605067203d) Thanks [@jxom](https://github.com/jxom)! - Exported `sign` in `viem/accounts`.
|
576
|
+
|
577
|
+
## 1.2.3
|
578
|
+
|
579
|
+
### Patch Changes
|
580
|
+
|
581
|
+
- [#802](https://github.com/wagmi-dev/viem/pull/802) [`b610634c`](https://github.com/wagmi-dev/viem/commit/b610634c62547178fe3737dbb37fb8db302e30c6) Thanks [@tmm](https://github.com/tmm)! - Bumped dependencies and exported types.
|
582
|
+
|
583
|
+
## 1.2.2
|
584
|
+
|
585
|
+
### Patch Changes
|
586
|
+
|
587
|
+
- [`5a8f59d5`](https://github.com/wagmi-dev/viem/commit/5a8f59d5e1d9df27c6897637346dbfe0bfcb2e62) Thanks [@tmm](https://github.com/tmm)! - Exported type
|
588
|
+
|
589
|
+
## 1.2.1
|
590
|
+
|
591
|
+
### Patch Changes
|
592
|
+
|
593
|
+
- [`96cb7534`](https://github.com/wagmi-dev/viem/commit/96cb7534c1be9ab635e70ad463551a29b7f2c553) Thanks [@jxom](https://github.com/jxom)! - Fixed multicall with ABI overrides.
|
594
|
+
|
595
|
+
## 1.2.0
|
596
|
+
|
597
|
+
### Minor Changes
|
598
|
+
|
599
|
+
- [#791](https://github.com/wagmi-dev/viem/pull/791) [`98fd9172`](https://github.com/wagmi-dev/viem/commit/98fd9172045c344429d5a716f497e422d85c0348) Thanks [@jxom](https://github.com/jxom)! - Implemented ability to "extend" Clients via `client.extend` & refactored Actions to accept a tree-shakable Client.
|
600
|
+
|
601
|
+
## 1.1.8
|
602
|
+
|
603
|
+
### Patch Changes
|
604
|
+
|
605
|
+
- [#783](https://github.com/wagmi-dev/viem/pull/783) [`91e85c76`](https://github.com/wagmi-dev/viem/commit/91e85c76df0ee665fb26dbadd473da5ec87e5029) Thanks [@izayl](https://github.com/izayl)! - Added a static `code` property to RPC Error classes.
|
606
|
+
|
607
|
+
## 1.1.7
|
608
|
+
|
609
|
+
### Patch Changes
|
610
|
+
|
611
|
+
- [`d0b4619e`](https://github.com/wagmi-dev/viem/commit/d0b4619e55ee697c9b8e03e9818b93c6a25b3ba2) Thanks [@jxom](https://github.com/jxom)! - Exported `decodeDeployData`.
|
612
|
+
|
613
|
+
## 1.1.6
|
614
|
+
|
615
|
+
### Patch Changes
|
616
|
+
|
617
|
+
- [`ec58ed1b`](https://github.com/wagmi-dev/viem/commit/ec58ed1b8be60973817ff401f1bf340fda854208) Thanks [@jxom](https://github.com/jxom)! - Fixed type narrowing on EIP1474 schemas
|
618
|
+
|
619
|
+
## 1.1.5
|
620
|
+
|
621
|
+
### Patch Changes
|
622
|
+
|
623
|
+
- [`c4e996b8`](https://github.com/wagmi-dev/viem/commit/c4e996b85404f4083e58c51ea98ac556d8ecd436) Thanks [@jxom](https://github.com/jxom)! - Fixed errorneous type defition being generated by `tsc`.
|
624
|
+
|
625
|
+
## 1.1.4
|
626
|
+
|
627
|
+
### Patch Changes
|
628
|
+
|
629
|
+
- [`75745a60`](https://github.com/wagmi-dev/viem/commit/75745a60fc83a13c3bec20ff04829b82d0852c07) Thanks [@jxom](https://github.com/jxom)! - Lax `parseUnits` value parameter.
|
630
|
+
|
631
|
+
## 1.1.3
|
632
|
+
|
633
|
+
### Patch Changes
|
634
|
+
|
635
|
+
- [#758](https://github.com/wagmi-dev/viem/pull/758) [`67b628df`](https://github.com/wagmi-dev/viem/commit/67b628df19edead79d8c6ef4755b407b3ce0486f) Thanks [@jxom](https://github.com/jxom)! - Added support for empty string in EIP712Domain name field.
|
636
|
+
|
637
|
+
## 1.1.2
|
638
|
+
|
639
|
+
### Patch Changes
|
640
|
+
|
641
|
+
- [`c974c25f`](https://github.com/wagmi-dev/viem/commit/c974c25ff28f9eec5bf5d4030146db2b215614d5) Thanks [@jxom](https://github.com/jxom)! - Added `zora` as a supported chain.
|
642
|
+
|
643
|
+
## 1.1.1
|
644
|
+
|
645
|
+
### Patch Changes
|
646
|
+
|
647
|
+
- [`5dd98d3e`](https://github.com/wagmi-dev/viem/commit/5dd98d3e57e993a7cae27030c8c10944cf5e204b) Thanks [@jxom](https://github.com/jxom)! - Exported `formatLog`
|
648
|
+
|
649
|
+
## 1.1.0
|
650
|
+
|
651
|
+
### Minor Changes
|
652
|
+
|
653
|
+
- [#691](https://github.com/wagmi-dev/viem/pull/691) [`6e65789f`](https://github.com/wagmi-dev/viem/commit/6e65789fb596ac3e64a9e5e7de1c18257fa50a59) Thanks [@aaronmgdr](https://github.com/aaronmgdr)! - Added custom chain serializers via `chain.serializers`.
|
654
|
+
|
655
|
+
- [#740](https://github.com/wagmi-dev/viem/pull/740) [`d435351d`](https://github.com/wagmi-dev/viem/commit/d435351d8637e096b1542da8bb1762858d006363) Thanks [@jxom](https://github.com/jxom)! - Added support for Optimism Deposit Transactions.
|
656
|
+
|
657
|
+
### Patch Changes
|
658
|
+
|
659
|
+
- [#709](https://github.com/wagmi-dev/viem/pull/709) [`043b2cba`](https://github.com/wagmi-dev/viem/commit/043b2cbaf8877ae67cf163d2ea19df9f08eb3808) Thanks [@jxom](https://github.com/jxom)! - Refactored serializable/serialized transaction types.
|
660
|
+
|
661
|
+
- [#735](https://github.com/wagmi-dev/viem/pull/735) [`e7ee66c8`](https://github.com/wagmi-dev/viem/commit/e7ee66c8f92262def25fe59403f19ecfbac47ad8) Thanks [@holic](https://github.com/holic)! - Fixed block formatting in `watchBlocks` for WebSocket subscriptions.
|
662
|
+
|
663
|
+
- [`1f3f2834`](https://github.com/wagmi-dev/viem/commit/1f3f2834a443165a71b27d2d0d46fa13532ccdd1) Thanks [@jxom](https://github.com/jxom)! - Added `typeHex` to `Transaction` type.
|
664
|
+
|
665
|
+
## 1.0.7
|
666
|
+
|
667
|
+
### Patch Changes
|
668
|
+
|
669
|
+
- [#707](https://github.com/wagmi-dev/viem/pull/707) [`3fc045d1`](https://github.com/wagmi-dev/viem/commit/3fc045d152a11edb698bd86aecb38909f6a3f811) Thanks [@tmm](https://github.com/tmm)! - Made TypeScript requirement explicit (was missing previously).
|
670
|
+
|
671
|
+
## 1.0.6
|
672
|
+
|
673
|
+
### Patch Changes
|
674
|
+
|
675
|
+
- [`90fd40ba`](https://github.com/wagmi-dev/viem/commit/90fd40ba0d5b7e248c7494ca5cbfa46eac281753) Thanks [@jxom](https://github.com/jxom)! - Fixed potential nullish `chainId` conflict in `sendTransaction` (for Local Accounts).
|
676
|
+
|
677
|
+
## 1.0.5
|
678
|
+
|
679
|
+
### Patch Changes
|
680
|
+
|
681
|
+
- [#699](https://github.com/wagmi-dev/viem/pull/699) [`79d1b4af`](https://github.com/wagmi-dev/viem/commit/79d1b4af5037eee4b408af9d0e3cf5e228d2601d) Thanks [@jxom](https://github.com/jxom)! - Support custom transaction formatters on `sendUnsignedTransaction`.
|
682
|
+
|
683
|
+
## 1.0.4
|
684
|
+
|
685
|
+
### Patch Changes
|
686
|
+
|
687
|
+
- [`8407fdcc`](https://github.com/wagmi-dev/viem/commit/8407fdcc16e97a5346a07382c25cb1681a50d5e8) Thanks [@jxom](https://github.com/jxom)! - Fixed fraction length overflow edge-case.
|
688
|
+
|
689
|
+
## 1.0.3
|
690
|
+
|
691
|
+
### Patch Changes
|
692
|
+
|
693
|
+
- [#687](https://github.com/wagmi-dev/viem/pull/687) [`a274ab33`](https://github.com/wagmi-dev/viem/commit/a274ab335688ce84d7fa8ca72427de7fe9937b13) Thanks [@jeetiss](https://github.com/jeetiss)! - Added `/*#__PURE__*/` annotatations for better tree-shaking
|
694
|
+
|
695
|
+
- [#672](https://github.com/wagmi-dev/viem/pull/672) [`e033f467`](https://github.com/wagmi-dev/viem/commit/e033f467082bcfa6f42c490ede1d7df50f497456) Thanks [@sambacha](https://github.com/sambacha)! - Turned off `esModuleInterop` & `allowSyntheticDefaultImports` in tsconfig.
|
696
|
+
|
697
|
+
- [#683](https://github.com/wagmi-dev/viem/pull/683) [`fe259a0e`](https://github.com/wagmi-dev/viem/commit/fe259a0ed6e4f7e264a7c5c761fea3a8ca68efc9) Thanks [@jeetiss](https://github.com/jeetiss)! - Marked package as side effects free
|
698
|
+
|
699
|
+
## 1.0.2
|
700
|
+
|
701
|
+
### Patch Changes
|
702
|
+
|
703
|
+
- [#677](https://github.com/wagmi-dev/viem/pull/677) [`a0a2ebb`](https://github.com/wagmi-dev/viem/commit/a0a2ebb6b53354be1c1492eed3bfd1b218ac71e4) Thanks [@hexcowboy](https://github.com/hexcowboy)! - Added ability to pass an `AbiFunction` to `getFunctionSelector`, and `AbiEvent` to `getEventSelector`.
|
704
|
+
|
705
|
+
## 1.0.1
|
706
|
+
|
707
|
+
### Patch Changes
|
708
|
+
|
709
|
+
- [#675](https://github.com/wagmi-dev/viem/pull/675) [`61429677`](https://github.com/wagmi-dev/viem/commit/61429677b28ad5ce8240a4278ef0f0cc1587b57a) Thanks [@tmm](https://github.com/tmm)! - Fixed payable `value` type inference.
|
710
|
+
|
711
|
+
## 1.0.0
|
712
|
+
|
713
|
+
### [Migration Guide](https://viem.sh/docs/migration-guide.html)
|
714
|
+
|
715
|
+
### Major Changes
|
716
|
+
|
717
|
+
- [#576](https://github.com/wagmi-dev/viem/pull/576) [`7d42767`](https://github.com/wagmi-dev/viem/commit/7d4276775a6d42cfab850498e522fe31134f0880) Thanks [@jxom](https://github.com/jxom)! - Released v1.
|
718
|
+
|
719
|
+
- [#576](https://github.com/wagmi-dev/viem/pull/576) [`7d42767`](https://github.com/wagmi-dev/viem/commit/7d4276775a6d42cfab850498e522fe31134f0880) Thanks [@jxom](https://github.com/jxom)! - **Breaking (edge case):** `decodeEventLog` no longer attempts to partially decode events. If the log does not conform to the ABI (mismatch between the number of indexed/non-indexed arguments to topics/data), it will throw an error.
|
720
|
+
|
721
|
+
- [#576](https://github.com/wagmi-dev/viem/pull/576) [`7d42767`](https://github.com/wagmi-dev/viem/commit/7d4276775a6d42cfab850498e522fe31134f0880) Thanks [@jxom](https://github.com/jxom)! - **Breaking:** `logIndex` & `transactionIndex` on `Log` now return a `number` instead of a `bigint`
|
722
|
+
|
723
|
+
- [#576](https://github.com/wagmi-dev/viem/pull/576) [`7d42767`](https://github.com/wagmi-dev/viem/commit/7d4276775a6d42cfab850498e522fe31134f0880) Thanks [@jxom](https://github.com/jxom)! - **Breaking:** Removed `ethersWalletToAccount` adapter.
|
724
|
+
|
725
|
+
This adapter was introduced when viem did not have Private Key & HD Accounts. Since 0.2, viem provides all the utilities needed to create and import [Private Key](https://viem.sh/docs/accounts/privateKey.html) & [HD Accounts](https://viem.sh/docs/accounts/mnemonic.html).
|
726
|
+
|
727
|
+
If you still need it, you can copy + paste the [old implementation](https://github.com/wagmi-dev/viem/blob/a9a71507032db896295fa1f3fa2dd6c2bdc85137/src/adapters/ethers.ts).
|
728
|
+
|
729
|
+
### Patch Changes
|
730
|
+
|
731
|
+
- [#576](https://github.com/wagmi-dev/viem/pull/576) [`7d42767`](https://github.com/wagmi-dev/viem/commit/7d4276775a6d42cfab850498e522fe31134f0880) Thanks [@jxom](https://github.com/jxom)! - Added Batch JSON-RPC on `http` Transport.
|
732
|
+
|
733
|
+
- [#657](https://github.com/wagmi-dev/viem/pull/657) [`af48368`](https://github.com/wagmi-dev/viem/commit/af48368f07856e50cb7afa8cac077e3a0ecc05fb) Thanks [@izayl](https://github.com/izayl)! - Fixed `getAbiItem` from returning mismatched type when overload with different lengths.
|
734
|
+
|
735
|
+
- [#576](https://github.com/wagmi-dev/viem/pull/576) [`7d42767`](https://github.com/wagmi-dev/viem/commit/7d4276775a6d42cfab850498e522fe31134f0880) Thanks [@jxom](https://github.com/jxom)! - Upgraded ENS Universal Resolver contract address.
|
736
|
+
|
737
|
+
- [#576](https://github.com/wagmi-dev/viem/pull/576) [`7d42767`](https://github.com/wagmi-dev/viem/commit/7d4276775a6d42cfab850498e522fe31134f0880) Thanks [@jxom](https://github.com/jxom)! - Added support for labels larger than 255 bytes when resolving ENS names.
|
738
|
+
|
739
|
+
- [#576](https://github.com/wagmi-dev/viem/pull/576) [`7d42767`](https://github.com/wagmi-dev/viem/commit/7d4276775a6d42cfab850498e522fe31134f0880) Thanks [@jxom](https://github.com/jxom)! - Added a `strict` parameter to `getLogs`, `createEventFilter` & `createContractEventFilter`.
|
740
|
+
|
741
|
+
When `strict` mode is turned **on**, only logs that conform to the indexed/non-indexed arguments on the event definition/ABI (`event`) will be returned.
|
742
|
+
When `strict` mode is turned **off (default)**, logs that do not conform to the indexed/non-indexed arguments on the event definition/ABI (`event`) will be included, but the `args` property will be `undefined` (as we cannot decode these events).
|
743
|
+
|
744
|
+
- [#576](https://github.com/wagmi-dev/viem/pull/576) [`7d42767`](https://github.com/wagmi-dev/viem/commit/7d4276775a6d42cfab850498e522fe31134f0880) Thanks [@jxom](https://github.com/jxom)! - Refactored EIP1193 request fn types.
|
745
|
+
|
746
|
+
## 0.3.50
|
747
|
+
|
748
|
+
### Patch Changes
|
749
|
+
|
750
|
+
- [`7dc25b5`](https://github.com/wagmi-dev/viem/commit/7dc25b56ae5f8c69255f6ebc404fb49c33cb13b7) Thanks [@jxom](https://github.com/jxom)! - Improved Ganache test actions.
|
751
|
+
|
752
|
+
## 0.3.49
|
753
|
+
|
754
|
+
### Patch Changes
|
755
|
+
|
756
|
+
- [`0b92f3a`](https://github.com/wagmi-dev/viem/commit/0b92f3ad535a27e1b8ba70fc3f6e1087ed2cd05f) Thanks [@jxom](https://github.com/jxom)! - Added more chains from @wagmi/chains.
|
757
|
+
|
758
|
+
## 0.3.47
|
759
|
+
|
760
|
+
### Patch Changes
|
761
|
+
|
762
|
+
- [`cc256c0`](https://github.com/wagmi-dev/viem/commit/cc256c0a0dd5cb99975c5a497e5eb025990deaff) Thanks [@jxom](https://github.com/jxom)! - Fixed unit conversion.
|
763
|
+
|
764
|
+
## 0.3.46
|
765
|
+
|
766
|
+
### Patch Changes
|
767
|
+
|
768
|
+
- [`770c3d1e`](https://github.com/wagmi-dev/viem/commit/770c3d1e1954b94dea6a58e7180b8600e910ad4e) Thanks [@jxom](https://github.com/jxom)! - Bumped `@wagmi/chains`.
|
769
|
+
|
770
|
+
## 0.3.45
|
771
|
+
|
772
|
+
### Patch Changes
|
773
|
+
|
774
|
+
- [#637](https://github.com/wagmi-dev/viem/pull/637) [`bbd8f07`](https://github.com/wagmi-dev/viem/commit/bbd8f072f92f189c0b55d5e3cf8c9e4f38b1c6bc) Thanks [@jxom](https://github.com/jxom)! - Updated `abitype` to 0.8.7.
|
775
|
+
|
776
|
+
## 0.3.44
|
777
|
+
|
778
|
+
### Patch Changes
|
779
|
+
|
780
|
+
- [#610](https://github.com/wagmi-dev/viem/pull/610) [`06ee89c5`](https://github.com/wagmi-dev/viem/commit/06ee89c53a5f0226407b915cdf9da5550ed58010) Thanks [@jxom](https://github.com/jxom)! - Added ability to hash data representation of `message` via a `raw` attribute in `signMessage`, `verifyMessage`, `recoverMessageAddress`.
|
781
|
+
|
782
|
+
```ts
|
783
|
+
await walletClient.signMessage({
|
784
|
+
message: { raw: "0x68656c6c6f20776f726c64" }
|
785
|
+
});
|
786
|
+
```
|
787
|
+
|
788
|
+
## 0.3.43
|
789
|
+
|
790
|
+
### Patch Changes
|
791
|
+
|
792
|
+
- [#632](https://github.com/wagmi-dev/viem/pull/632) [`2538548`](https://github.com/wagmi-dev/viem/commit/2538548a5c6a897a8a2c5a0e5ea6398c86b54c59) Thanks [@tmm](https://github.com/tmm)! - Exported missing portable type.
|
793
|
+
|
794
|
+
- [#630](https://github.com/wagmi-dev/viem/pull/630) [`a446a50`](https://github.com/wagmi-dev/viem/commit/a446a50ad8fe0b6c4a20df82e37a0492995840a4) Thanks [@tmm](https://github.com/tmm)! - Narrowed contract instance address.
|
795
|
+
|
796
|
+
## 0.3.42
|
797
|
+
|
798
|
+
### Patch Changes
|
799
|
+
|
800
|
+
- [#619](https://github.com/wagmi-dev/viem/pull/619) [`73c7f498`](https://github.com/wagmi-dev/viem/commit/73c7f4980ebc755068b8cf9df70390d1e2ab2524) Thanks [@sakulstra](https://github.com/sakulstra)! - Added `address` and `abi` properties to Contract Instances.
|
801
|
+
|
802
|
+
## 0.3.41
|
803
|
+
|
804
|
+
### Patch Changes
|
805
|
+
|
806
|
+
- [`1b3f584`](https://github.com/wagmi-dev/viem/commit/1b3f5847a44ba051f19d42dfb03962a4c6a4e36b) Thanks [@jxom](https://github.com/jxom)! - Fixed `chainId` type on Transaction types.
|
807
|
+
|
808
|
+
## 0.3.40
|
809
|
+
|
810
|
+
### Patch Changes
|
811
|
+
|
812
|
+
- [#608](https://github.com/wagmi-dev/viem/pull/608) [`6e9313b`](https://github.com/wagmi-dev/viem/commit/6e9313b8ed13f930666a06991ed0cd61ab286de0) Thanks [@tmm](https://github.com/tmm)! - Exported types
|
813
|
+
|
814
|
+
## 0.3.39
|
815
|
+
|
816
|
+
### Patch Changes
|
817
|
+
|
818
|
+
- [#603](https://github.com/wagmi-dev/viem/pull/603) [`ee2b2b8`](https://github.com/wagmi-dev/viem/commit/ee2b2b8c2eba540cc73ef78e29870f3314a008c3) Thanks [@ilamanov](https://github.com/ilamanov)! - Fixed `getFunctionSelector` for functions with no arguments.
|
819
|
+
|
820
|
+
## 0.3.38
|
821
|
+
|
822
|
+
### Patch Changes
|
823
|
+
|
824
|
+
- [#598](https://github.com/wagmi-dev/viem/pull/598) [`baea299`](https://github.com/wagmi-dev/viem/commit/baea2991ce405015e4f68c2fde90a154b698e7a4) Thanks [@iuriiiurevich](https://github.com/iuriiiurevich)! - Fixed an issue in `withCache` where the promise cache would not clear upon rejection.
|
825
|
+
|
826
|
+
## 0.3.37
|
827
|
+
|
828
|
+
### Patch Changes
|
829
|
+
|
830
|
+
- [#572](https://github.com/wagmi-dev/viem/pull/572) [`3e5bcbf`](https://github.com/wagmi-dev/viem/commit/3e5bcbf1233ea3cc8674767c10bd8dccdfd99182) Thanks [@tmm](https://github.com/tmm)! - Fixed contract instance `estimateGas` typing.
|
831
|
+
|
832
|
+
## 0.3.36
|
833
|
+
|
834
|
+
### Patch Changes
|
835
|
+
|
836
|
+
- [#554](https://github.com/wagmi-dev/viem/pull/554) [`d5297c6`](https://github.com/wagmi-dev/viem/commit/d5297c6e32fc148a63c34fe47cd590cfc9c665ec) Thanks [@tmm](https://github.com/tmm)! - Fixed portable types
|
837
|
+
|
838
|
+
- [#556](https://github.com/wagmi-dev/viem/pull/556) [`81a3aed`](https://github.com/wagmi-dev/viem/commit/81a3aed513167588f0c3433af8407cc23c78f61f) Thanks [@tmm](https://github.com/tmm)! - Fallback to `client.account` for `estimateGas`.
|
839
|
+
|
840
|
+
- [#560](https://github.com/wagmi-dev/viem/pull/560) [`a5dd3c6`](https://github.com/wagmi-dev/viem/commit/a5dd3c6dcdb2c7625aacd9c9bc498bd86530dd77) Thanks [@Volchunovich](https://github.com/Volchunovich)! - Fixed docs links
|
841
|
+
|
842
|
+
## 0.3.35
|
843
|
+
|
844
|
+
### Patch Changes
|
845
|
+
|
846
|
+
- [`1cc1dc2`](https://github.com/wagmi-dev/viem/commit/1cc1dc2e989765ea0d0afd72375505b93e0013a5) Thanks [@jxom](https://github.com/jxom)! - Fixed `account` parameter type on `readContract`.
|
847
|
+
|
848
|
+
## 0.3.34
|
849
|
+
|
850
|
+
### Patch Changes
|
851
|
+
|
852
|
+
- [`5c75ee5`](https://github.com/wagmi-dev/viem/commit/5c75ee598a0bd09709f619464e48cbb5fa2327d8) Thanks [@jxom](https://github.com/jxom)! - Added `EstimateContractGasParameters` & `EstimateContractGasReturnType` types.
|
853
|
+
|
854
|
+
## 0.3.33
|
855
|
+
|
856
|
+
### Patch Changes
|
857
|
+
|
858
|
+
- [`0cb8f31`](https://github.com/wagmi-dev/viem/commit/0cb8f31589d65d056de66c13637635785d97b730) Thanks [@jxom](https://github.com/jxom)! - Fixed an issue where `watchContractEvent` would throw a serialize error for bigint args.
|
859
|
+
|
860
|
+
## 0.3.32
|
861
|
+
|
862
|
+
### Patch Changes
|
863
|
+
|
864
|
+
- [`fb5b321`](https://github.com/wagmi-dev/viem/commit/fb5b321a9238d68a59f387632dd89ccb626a8cb5) Thanks [@jxom](https://github.com/jxom)! - Allowed recovery id as v when recovering public key.
|
865
|
+
|
866
|
+
- [`9df44ce`](https://github.com/wagmi-dev/viem/commit/9df44cea3843a74f9e04591d3c683db1982269fb) Thanks [@jxom](https://github.com/jxom)! - Added `ganache` as another mode for Test Client
|
867
|
+
|
868
|
+
## 0.3.31
|
869
|
+
|
870
|
+
### Patch Changes
|
871
|
+
|
872
|
+
- [#540](https://github.com/wagmi-dev/viem/pull/540) [`0d8f154`](https://github.com/wagmi-dev/viem/commit/0d8f154fbcbf68f8f8b1b8bde0cf5661ffc44370) Thanks [@jxom](https://github.com/jxom)! - Added proxy packages to support bundlers that are not compatible with `package.json#exports`.
|
873
|
+
|
874
|
+
## 0.3.30
|
875
|
+
|
876
|
+
### Patch Changes
|
877
|
+
|
878
|
+
- [`228d949`](https://github.com/wagmi-dev/viem/commit/228d949bce648065ecef629173d1b847e2fc8f21) Thanks [@jxom](https://github.com/jxom)! - Bumped `waitForTransactionReceipt` retry count.
|
879
|
+
|
880
|
+
## 0.3.29
|
881
|
+
|
882
|
+
### Patch Changes
|
883
|
+
|
884
|
+
- [#527](https://github.com/wagmi-dev/viem/pull/527) [`840d3d7`](https://github.com/wagmi-dev/viem/commit/840d3d7411a33ad02c71bd180b53244df91cd779) Thanks [@jxom](https://github.com/jxom)! - Fixed `trim` to trim trailing zero byte data instead of all trailing zeros.
|
885
|
+
|
886
|
+
## 0.3.28
|
887
|
+
|
888
|
+
### Patch Changes
|
889
|
+
|
890
|
+
- [`ffee4f8`](https://github.com/wagmi-dev/viem/commit/ffee4f86928ada54d2c6a4403aafa7b861eeccb2) Thanks [@jxom](https://github.com/jxom)! - Bumped `waitForTransactionReceipt` exponential backoff scalar
|
891
|
+
|
892
|
+
## 0.3.27
|
893
|
+
|
894
|
+
### Patch Changes
|
895
|
+
|
896
|
+
- [#519](https://github.com/wagmi-dev/viem/pull/519) [`2ab7b56`](https://github.com/wagmi-dev/viem/commit/2ab7b56ea6828f92e10f287bac68f1f70815da1a) Thanks [@jxom](https://github.com/jxom)! - Batched websocket initialization.
|
897
|
+
|
898
|
+
- [#518](https://github.com/wagmi-dev/viem/pull/518) [`65a0896`](https://github.com/wagmi-dev/viem/commit/65a0896426a28e2d11438984a6ed6b604d87c316) Thanks [@jxom](https://github.com/jxom)! - Added `strict` option to `isHex` & optimized data utilities.
|
899
|
+
|
900
|
+
- [#515](https://github.com/wagmi-dev/viem/pull/515) [`c1b81dc`](https://github.com/wagmi-dev/viem/commit/c1b81dc36ad787b632099a98ba2b4bd5e03ddafa) Thanks [@jxom](https://github.com/jxom)! - Optimized `getTransaction` strategy in `waitForTransactionReceipt`.
|
901
|
+
|
902
|
+
## 0.3.26
|
903
|
+
|
904
|
+
### Patch Changes
|
905
|
+
|
906
|
+
- [#500](https://github.com/wagmi-dev/viem/pull/500) [`1da5831`](https://github.com/wagmi-dev/viem/commit/1da583137a32f381a2e2e5f260105ce8542bbaee) Thanks [@jxom](https://github.com/jxom)! - refactor: lax log types
|
907
|
+
|
908
|
+
## 0.3.25
|
909
|
+
|
910
|
+
### Patch Changes
|
911
|
+
|
912
|
+
- [#506](https://github.com/wagmi-dev/viem/pull/506) [`f396e5d`](https://github.com/wagmi-dev/viem/commit/f396e5d242bbf68a4b34596db6943d52fee19e79) Thanks [@jxom](https://github.com/jxom)! - Support suffixed data in `decodeAbiParameters`.
|
913
|
+
|
914
|
+
## 0.3.24
|
915
|
+
|
916
|
+
### Patch Changes
|
917
|
+
|
918
|
+
- [`9852bcd`](https://github.com/wagmi-dev/viem/commit/9852bcdfb83bfdda43fb276b3a1266b30592d56e) Thanks [@jxom](https://github.com/jxom)! - Fixed custom solidity errors with no args.
|
919
|
+
|
920
|
+
## 0.3.23
|
921
|
+
|
922
|
+
### Patch Changes
|
923
|
+
|
924
|
+
- [#489](https://github.com/wagmi-dev/viem/pull/489) [`d130c72`](https://github.com/wagmi-dev/viem/commit/d130c7277bbb175b7ce82fe2c32ad9f65b3ae63f) Thanks [@tmm](https://github.com/tmm)! - Improved RpcError code types.
|
925
|
+
|
926
|
+
- [`670d825`](https://github.com/wagmi-dev/viem/commit/670d825aa8105a6fc5e4fedc540d055d28ec91e1) Thanks [@jxom](https://github.com/jxom)! - Fixed \`call\` revert data for node clients that have nested error data.
|
927
|
+
|
928
|
+
- [#487](https://github.com/wagmi-dev/viem/pull/487) [`566e77d`](https://github.com/wagmi-dev/viem/commit/566e77dfafcd5b5486260e492d8db890b788b264) Thanks [@kdembler](https://github.com/kdembler)! - fix encodeEventTopics for leading non-indexed args
|
929
|
+
|
930
|
+
## 0.3.22
|
931
|
+
|
932
|
+
### Patch Changes
|
933
|
+
|
934
|
+
- [`9ae5eaa`](https://github.com/wagmi-dev/viem/commit/9ae5eaa1465240d07577d380e7387f1a065707e3) Thanks [@jxom](https://github.com/jxom)! - Fixed `functionName` type inference in `SimulateContractReturnType`.
|
935
|
+
|
936
|
+
## 0.3.21
|
937
|
+
|
938
|
+
### Patch Changes
|
939
|
+
|
940
|
+
- [#475](https://github.com/wagmi-dev/viem/pull/475) [`64a2f51`](https://github.com/wagmi-dev/viem/commit/64a2f51799431faf28946127a3d62373051d8553) Thanks [@jxom](https://github.com/jxom)! - Fixed \`hashMessage\` string conversion for messages that have same format as hex bytes.
|
941
|
+
|
942
|
+
- [#474](https://github.com/wagmi-dev/viem/pull/474) [`1886095`](https://github.com/wagmi-dev/viem/commit/18860951b7276c5b67632113f96a09cda3a48d25) Thanks [@jxom](https://github.com/jxom)! - Exported `assertCurrentChain` util.
|
943
|
+
|
944
|
+
## 0.3.20
|
945
|
+
|
946
|
+
### Patch Changes
|
947
|
+
|
948
|
+
- [#470](https://github.com/wagmi-dev/viem/pull/470) [`be9501e`](https://github.com/wagmi-dev/viem/commit/be9501eb3b509a0fe09dd087ee46d11642a9c408) Thanks [@jxom](https://github.com/jxom)! - Fixed issue where `waitForTransactionReceipt` would throw immediately for RPC Providers which may be slow to sync mined transactions.
|
949
|
+
|
950
|
+
## 0.3.19
|
951
|
+
|
952
|
+
### Patch Changes
|
953
|
+
|
954
|
+
- [#320](https://github.com/wagmi-dev/viem/pull/320) [`6d6d092`](https://github.com/wagmi-dev/viem/commit/6d6d092c6cacb229bb2696261ae9dbe742c26647) Thanks [@janek26](https://github.com/janek26)! - Added support for Contract Wallet signature verification (EIP-6492) via `publicClient.verifyMessage` & `publicClient.verifyTypedData`.
|
955
|
+
|
956
|
+
## 0.3.18
|
957
|
+
|
958
|
+
### Patch Changes
|
959
|
+
|
960
|
+
- [#445](https://github.com/wagmi-dev/viem/pull/445) [`9e096a9`](https://github.com/wagmi-dev/viem/commit/9e096a92e2722e0dd0acd5ab79d5907e7d9bc82f) Thanks [@jxom](https://github.com/jxom)! - Refactored contract decoding utility types.
|
961
|
+
|
962
|
+
- [#448](https://github.com/wagmi-dev/viem/pull/448) [`29cf036`](https://github.com/wagmi-dev/viem/commit/29cf0363f0bfe89f0d63a281272151c6bba47ce1) Thanks [@jxom](https://github.com/jxom)! - Refactored inferred types on `Log` (eventName, args, topics), `getLogs`, `getFilterLogs` & `getFilterChanges`.
|
963
|
+
|
964
|
+
- [#435](https://github.com/wagmi-dev/viem/pull/435) [`711cf94`](https://github.com/wagmi-dev/viem/commit/711cf9460a262fb12c520d7860f22915fb4c58f6) Thanks [@Raiden1411](https://github.com/Raiden1411)! - Updated `abitype` to `0.8.2` and exported abitype errors.
|
965
|
+
|
966
|
+
- [#445](https://github.com/wagmi-dev/viem/pull/445) [`9e096a9`](https://github.com/wagmi-dev/viem/commit/9e096a92e2722e0dd0acd5ab79d5907e7d9bc82f) Thanks [@jxom](https://github.com/jxom)! - Made "name" parameter (`eventName`, `functionName`, etc) optional on contract encoding/decoding utilities when only one ABI item is provided.
|
967
|
+
|
968
|
+
## 0.3.17
|
969
|
+
|
970
|
+
### Patch Changes
|
971
|
+
|
972
|
+
- [#443](https://github.com/wagmi-dev/viem/pull/443) [`ca0cb85`](https://github.com/wagmi-dev/viem/commit/ca0cb852999dd90aebdb938d8bf4dbbec504a173) Thanks [@jxom](https://github.com/jxom)! - Fixed eth_call & eth_estimateGas calls for nodes that conform to the older JSON-RPC spec.
|
973
|
+
|
974
|
+
## 0.3.16
|
975
|
+
|
976
|
+
### Patch Changes
|
977
|
+
|
978
|
+
- [`482aaa1`](https://github.com/wagmi-dev/viem/commit/482aaa1651ff06575860c6d9d38bcde05e5b136e) Thanks [@jxom](https://github.com/jxom)! - Wrapped slice offset out-of-bounds error in a `BaseError`.
|
979
|
+
|
980
|
+
## 0.3.15
|
981
|
+
|
982
|
+
### Patch Changes
|
983
|
+
|
984
|
+
- [#436](https://github.com/wagmi-dev/viem/pull/436) [`72ed656`](https://github.com/wagmi-dev/viem/commit/72ed6567897ee87939d33e89a7d6599ec8db321e) Thanks [@jxom](https://github.com/jxom)! - Fixed an issue where `multicall`'s return type was incorrectly flattening when `allowFailure: false`.
|
985
|
+
|
986
|
+
## 0.3.14
|
987
|
+
|
988
|
+
### Patch Changes
|
989
|
+
|
990
|
+
- [#426](https://github.com/wagmi-dev/viem/pull/426) [`840d19d`](https://github.com/wagmi-dev/viem/commit/840d19d652819001addfe9c47267d9e7c71841bd) Thanks [@izayl](https://github.com/izayl)! - Added constants zeroAddress.
|
991
|
+
|
992
|
+
- [#424](https://github.com/wagmi-dev/viem/pull/424) [`2eb73f6`](https://github.com/wagmi-dev/viem/commit/2eb73f6f449be7f00790c992202816d5eccf5232) Thanks [@fubhy](https://github.com/fubhy)! - Removed the `defineChain` export from `viem/chains`.
|
993
|
+
|
994
|
+
- [#427](https://github.com/wagmi-dev/viem/pull/427) [`41bc9e3`](https://github.com/wagmi-dev/viem/commit/41bc9e38dcbd71d10ea28edaaad48fb81d40f61b) Thanks [@jxom](https://github.com/jxom)! - Added support for EIP-3668 CCIP Read.
|
995
|
+
|
996
|
+
- [#431](https://github.com/wagmi-dev/viem/pull/431) [`31aafb3`](https://github.com/wagmi-dev/viem/commit/31aafb3514adff65bc4c27b78dad90057ee97421) Thanks [@jxom](https://github.com/jxom)! - Added a `dataSuffix` argument to `writeContract` and `simulateContract`
|
997
|
+
|
998
|
+
## 0.3.13
|
999
|
+
|
1000
|
+
### Patch Changes
|
1001
|
+
|
1002
|
+
- [`eb32e6c`](https://github.com/wagmi-dev/viem/commit/eb32e6c8a412aa4d16339236d4a14d820a26fdc1) Thanks [@fubhy](https://github.com/fubhy)! - Fixed `mine()` to resolve to `undefined` instead of `null`.
|
1003
|
+
|
1004
|
+
## 0.3.12
|
1005
|
+
|
1006
|
+
### Patch Changes
|
1007
|
+
|
1008
|
+
- [`6f8151c`](https://github.com/wagmi-dev/viem/commit/6f8151c58fcb5e14b7a954df6e941fe3cca4054c) Thanks [@jxom](https://github.com/jxom)! - Flagged 403 as non-deterministic error for `fallback` Transport.
|
1009
|
+
|
1010
|
+
## 0.3.11
|
1011
|
+
|
1012
|
+
### Patch Changes
|
1013
|
+
|
1014
|
+
- [#404](https://github.com/wagmi-dev/viem/pull/404) [`2c380cf`](https://github.com/wagmi-dev/viem/commit/2c380cf0f0e528d6ff9e9c354e4fcec28df5329b) Thanks [@izayl](https://github.com/izayl)! - Added support for EIP-1191 address checksum.
|
1015
|
+
|
1016
|
+
- [#398](https://github.com/wagmi-dev/viem/pull/398) [`cbb4f1f`](https://github.com/wagmi-dev/viem/commit/cbb4f1f66b80914313e54bf7022e59a1b0bee2d3) Thanks [@jxom](https://github.com/jxom)! - Added a new `batchSize` parameter to `multicall` which limits the size of each calldata chunk.
|
1017
|
+
|
1018
|
+
## 0.3.10
|
1019
|
+
|
1020
|
+
### Patch Changes
|
1021
|
+
|
1022
|
+
- [`777fa34`](https://github.com/wagmi-dev/viem/commit/777fa34c9ce5630696e554127e39e5e9386ad74e) Thanks [@jxom](https://github.com/jxom)! - Fixed wallet_watchAsset type.
|
1023
|
+
|
1024
|
+
## 0.3.9
|
1025
|
+
|
1026
|
+
### Patch Changes
|
1027
|
+
|
1028
|
+
- [`b4d6623`](https://github.com/wagmi-dev/viem/commit/b4d662360f55d5963e015f7080538a167e89b1f6) Thanks [@jxom](https://github.com/jxom)! - Fixed multicall return type.
|
1029
|
+
|
1030
|
+
## 0.3.8
|
1031
|
+
|
1032
|
+
### Patch Changes
|
1033
|
+
|
1034
|
+
- [`8371ad9`](https://github.com/wagmi-dev/viem/commit/8371ad9cb6987b5876a679ba502a80573c92ec64) Thanks [@jxom](https://github.com/jxom)! - Fixed WebSocket import on Vite environments.
|
1035
|
+
|
1036
|
+
## 0.3.7
|
1037
|
+
|
1038
|
+
### Patch Changes
|
1039
|
+
|
1040
|
+
- [#399](https://github.com/wagmi-dev/viem/pull/399) [`eefd839`](https://github.com/wagmi-dev/viem/commit/eefd83997a98113b81d5ba21a8b5492a1de2284c) Thanks [@jxom](https://github.com/jxom)! - Fixed async imports in Vite environments.
|
1041
|
+
|
1042
|
+
- [#397](https://github.com/wagmi-dev/viem/pull/397) [`69b95ed`](https://github.com/wagmi-dev/viem/commit/69b95ed5991c712d11ff4de1bb873c9a2af152b3) Thanks [@tmm](https://github.com/tmm)! - Made `value` required for payable functions.
|
1043
|
+
|
1044
|
+
## 0.3.6
|
1045
|
+
|
1046
|
+
### Patch Changes
|
1047
|
+
|
1048
|
+
- [`ae6d388`](https://github.com/wagmi-dev/viem/commit/ae6d3883ec41dfdd3750a5f7473495d011df5802) Thanks [@jxom](https://github.com/jxom)! - Fixed unpublished type declarations.
|
1049
|
+
|
1050
|
+
## 0.3.5
|
1051
|
+
|
1052
|
+
### Patch Changes
|
1053
|
+
|
1054
|
+
- [`0d38807`](https://github.com/wagmi-dev/viem/commit/0d38807bcd61fae5c5d4736aed6c59277c9b4bf4) Thanks [@jxom](https://github.com/jxom)! - Fixed `batch` config in `createPublicClient`.
|
1055
|
+
|
1056
|
+
## 0.3.4
|
1057
|
+
|
1058
|
+
### Patch Changes
|
1059
|
+
|
1060
|
+
- [#387](https://github.com/wagmi-dev/viem/pull/387) [`230fcfd`](https://github.com/wagmi-dev/viem/commit/230fcfd97bb4937502e604630bb97695198e7b7e) Thanks [@jxom](https://github.com/jxom)! - Added support for `eth_call` batch aggregation via multicall `aggregate3`.
|
1061
|
+
|
1062
|
+
- [#388](https://github.com/wagmi-dev/viem/pull/388) [`bc254d8`](https://github.com/wagmi-dev/viem/commit/bc254d882bed6216daa72d5820526e6573a34e85) Thanks [@jxom](https://github.com/jxom)! - Added `size` as an argument to hex/bytes encoding/decoding utilities.
|
1063
|
+
|
1064
|
+
- [`03816ec`](https://github.com/wagmi-dev/viem/commit/03816ec421eb8adbcb17bd44c5dc344407acba2d) Thanks [@jxom](https://github.com/jxom)! - Disabled `fallback` transport ranking by default.
|
1065
|
+
|
1066
|
+
## 0.3.3
|
1067
|
+
|
1068
|
+
### Patch Changes
|
1069
|
+
|
1070
|
+
- [#383](https://github.com/wagmi-dev/viem/pull/383) [`7e9731c`](https://github.com/wagmi-dev/viem/commit/7e9731cf315ddcd10f35c81c63a15af6aa78350d) Thanks [@Raiden1411](https://github.com/Raiden1411)! - Fixed an issue where `serializeTransaction` was incorrectly encoding zero-ish properties.
|
1071
|
+
|
1072
|
+
## 0.3.2
|
1073
|
+
|
1074
|
+
### Patch Changes
|
1075
|
+
|
1076
|
+
- [#375](https://github.com/wagmi-dev/viem/pull/375) [`f9bedc9`](https://github.com/wagmi-dev/viem/commit/f9bedc94ecd41fdcb2f0fed1d90162567c2a31ea) Thanks [@fubhy](https://github.com/fubhy)! - Support edge runtime
|
1077
|
+
|
1078
|
+
## 0.3.1
|
1079
|
+
|
1080
|
+
### Patch Changes
|
1081
|
+
|
1082
|
+
- [`6856443`](https://github.com/wagmi-dev/viem/commit/6856443fb75421639c9622343d5958791028874c) Thanks [@jxom](https://github.com/jxom)! - Added `recoverPublicKey`.
|
1083
|
+
|
1084
|
+
- [#363](https://github.com/wagmi-dev/viem/pull/363) [`ee1cb7f`](https://github.com/wagmi-dev/viem/commit/ee1cb7ff546236041b1ca115bb2a252520e8ef7f) Thanks [@tmm](https://github.com/tmm)! - Added inference to `getLogs` `event` type.
|
1085
|
+
|
1086
|
+
- [#365](https://github.com/wagmi-dev/viem/pull/365) [`f4dcc33`](https://github.com/wagmi-dev/viem/commit/f4dcc33739a339c286f852a377f71fbf2fb7ab97) Thanks [@fubhy](https://github.com/fubhy)! - Fixed `getAbiItem` to not use a generic type variable for the return type
|
1087
|
+
|
1088
|
+
## 0.3.0
|
1089
|
+
|
1090
|
+
### Minor Changes
|
1091
|
+
|
1092
|
+
- [#355](https://github.com/wagmi-dev/viem/pull/355) [`b1acfc9`](https://github.com/wagmi-dev/viem/commit/b1acfc9198bfbed8c3de6e769c5ff06d7124881c) Thanks [@jxom](https://github.com/jxom)! - **Breaking:** Renamed `RequestError` to `RpcError`.
|
1093
|
+
**Breaking:** Removed `RpcRequestError` – use `RpcError` instead.
|
1094
|
+
**Breaking:** Renamed `RpcError` to `RpcRequestError`.
|
1095
|
+
|
1096
|
+
### Patch Changes
|
1097
|
+
|
1098
|
+
- [#355](https://github.com/wagmi-dev/viem/pull/355) [`b1acfc9`](https://github.com/wagmi-dev/viem/commit/b1acfc9198bfbed8c3de6e769c5ff06d7124881c) Thanks [@jxom](https://github.com/jxom)! - Added `ProviderRpcError` subclass.
|
1099
|
+
|
1100
|
+
Added EIP-1193 `UnauthorizedProviderError`, `UnsupportedProviderMethodError`, `ProviderDisconnectedError`, and `ChainDisconnectedError`.
|
1101
|
+
|
1102
|
+
- [#349](https://github.com/wagmi-dev/viem/pull/349) [`b275811`](https://github.com/wagmi-dev/viem/commit/b2758116623567a07e9c2cae7e2471e3c6bf2ecf) Thanks [@jxom](https://github.com/jxom)! - Fixed an issue where Filter querying (`eth_getFilterChanges`, etc) was not being scoped to the Transport that created the Filter.
|
1103
|
+
|
1104
|
+
## 0.2.14
|
1105
|
+
|
1106
|
+
### Patch Changes
|
1107
|
+
|
1108
|
+
- [#344](https://github.com/wagmi-dev/viem/pull/344) [`bb9c2a4`](https://github.com/wagmi-dev/viem/commit/bb9c2a4b769655f230b8af22efb871393e78a80d) Thanks [@jxom](https://github.com/jxom)! - Added `EIP1193Provider` type.
|
1109
|
+
|
1110
|
+
## 0.2.13
|
1111
|
+
|
1112
|
+
### Patch Changes
|
1113
|
+
|
1114
|
+
- [#331](https://github.com/wagmi-dev/viem/pull/331) [`cd7b642`](https://github.com/wagmi-dev/viem/commit/cd7b64242643247c3c04896dacdd95b2a335ba52) Thanks [@jxom](https://github.com/jxom)! - Migrated to TypeScript 5.
|
1115
|
+
Migrated build process from `tsup` to `tsc`.
|
1116
|
+
|
1117
|
+
- [#343](https://github.com/wagmi-dev/viem/pull/343) [`579171d`](https://github.com/wagmi-dev/viem/commit/579171dbc691f9c352688455f21b6c4187dbf422) Thanks [@fubhy](https://github.com/fubhy)! - Fixed conditional types for poll options on `watchBlocks` & `watchPendingTransactions`.
|
1118
|
+
|
1119
|
+
## 0.2.12
|
1120
|
+
|
1121
|
+
### Patch Changes
|
1122
|
+
|
1123
|
+
- [#328](https://github.com/wagmi-dev/viem/pull/328) [`ee87fe7`](https://github.com/wagmi-dev/viem/commit/ee87fe73884297db1c3957453efd7c326924c269) Thanks [@jxom](https://github.com/jxom)! - Tweaked error inheritence for `UserRejectedRequestError` & `SwitchChainError` to be more friendly with custom errors.
|
1124
|
+
|
1125
|
+
## 0.2.11
|
1126
|
+
|
1127
|
+
### Patch Changes
|
1128
|
+
|
1129
|
+
- [#326](https://github.com/wagmi-dev/viem/pull/326) [`c83616a`](https://github.com/wagmi-dev/viem/commit/c83616ad33aa06054342a3bf72bcb51c09ee0ada) Thanks [@jxom](https://github.com/jxom)! - Fixed an issue where filtered logs that do not conform to the provided ABI would cause `getLogs`, `getFilterLogs` or `getFilterChanges` to throw – these logs are now skipped. See [#323](https://github.com/wagmi-dev/viem/issues/323#issuecomment-1499654052) for more info.
|
1130
|
+
|
1131
|
+
## 0.2.10
|
1132
|
+
|
1133
|
+
### Patch Changes
|
1134
|
+
|
1135
|
+
- [#322](https://github.com/wagmi-dev/viem/pull/322) [`ea019d7`](https://github.com/wagmi-dev/viem/commit/ea019d75c5243d8ae2b8ca1686b34026b170d903) Thanks [@tmm](https://github.com/tmm)! - Fixed properties passed to ethers adapter `signTransaction`
|
1136
|
+
|
1137
|
+
## 0.2.9
|
1138
|
+
|
1139
|
+
### Patch Changes
|
1140
|
+
|
1141
|
+
- [#317](https://github.com/wagmi-dev/viem/pull/317) [`2720ba5`](https://github.com/wagmi-dev/viem/commit/2720ba566d02fdb2c6ddc8d016ec252606a9cb95) Thanks [@jxom](https://github.com/jxom)! - Fixed `transports` property type on `FallbackTransport`.
|
1142
|
+
|
1143
|
+
## 0.2.8
|
1144
|
+
|
1145
|
+
### Patch Changes
|
1146
|
+
|
1147
|
+
- [#313](https://github.com/wagmi-dev/viem/pull/313) [`eb2280c`](https://github.com/wagmi-dev/viem/commit/eb2280cbc65b3e509b4b3871fe75b236101da442) Thanks [@jxom](https://github.com/jxom)! - Migrated from `idna-uts46-hx` to `@adraffy/ens-normalize` for `normalize`.
|
1148
|
+
|
1149
|
+
## 0.2.7
|
1150
|
+
|
1151
|
+
### Patch Changes
|
1152
|
+
|
1153
|
+
- [#310](https://github.com/wagmi-dev/viem/pull/310) [`6dfc225`](https://github.com/wagmi-dev/viem/commit/6dfc22537b9dd5740911b8677bba01cc477b9b23) Thanks [@jxom](https://github.com/jxom)! - Made `GetValue` return `{ value?: never }` instead of `unknown` for contract functions that are not payable.
|
1154
|
+
|
1155
|
+
## 0.2.6
|
1156
|
+
|
1157
|
+
### Patch Changes
|
1158
|
+
|
1159
|
+
- [#295](https://github.com/wagmi-dev/viem/pull/295) [`9a15a61`](https://github.com/wagmi-dev/viem/commit/9a15a612dd4a416f932c99519416665c0ffac214) Thanks [@fubhy](https://github.com/fubhy)! - Return discrimated union type from `decodeFunctionData`
|
1160
|
+
|
1161
|
+
- [#304](https://github.com/wagmi-dev/viem/pull/304) [`8e1b712`](https://github.com/wagmi-dev/viem/commit/8e1b712efc256c16a98408d10557d5f55d8927d7) Thanks [@fubhy](https://github.com/fubhy)! - Fixed `getTransactionType` to honor `undefined` EIP-1559, EIP-2930 or Legacy attributes.
|
1162
|
+
|
1163
|
+
- [#302](https://github.com/wagmi-dev/viem/pull/302) [`c00a459`](https://github.com/wagmi-dev/viem/commit/c00a459490ff283812e6847547149a8104a5c4d0) Thanks [@fubhy](https://github.com/fubhy)! - Fixed forwarding of options to transport for wallet client
|
1164
|
+
|
1165
|
+
## 0.2.5
|
1166
|
+
|
1167
|
+
### Patch Changes
|
1168
|
+
|
1169
|
+
- [#297](https://github.com/wagmi-dev/viem/pull/297) [`96d072c`](https://github.com/wagmi-dev/viem/commit/96d072cac1ae09f85afcbbca63c99f10a80f1722) Thanks [@fubhy](https://github.com/fubhy)! - Fixed wordlists exports.
|
1170
|
+
|
1171
|
+
## 0.2.4
|
1172
|
+
|
1173
|
+
### Patch Changes
|
1174
|
+
|
1175
|
+
- [#293](https://github.com/wagmi-dev/viem/pull/293) [`859352c`](https://github.com/wagmi-dev/viem/commit/859352c38333ec22924b24242db8f583fc73d9fb) Thanks [@TateB](https://github.com/TateB)! - Fixed ENS address resolution for when resolver returns with a null address, or resolvers that do not support `addr`. `getEnsAddress` returns `null` for these cases.
|
1176
|
+
|
1177
|
+
## 0.2.3
|
1178
|
+
|
1179
|
+
### Patch Changes
|
1180
|
+
|
1181
|
+
- [#290](https://github.com/wagmi-dev/viem/pull/290) [`ef2bbaf`](https://github.com/wagmi-dev/viem/commit/ef2bbafa2b372bfa8fa1b29ffabea75ca3ea1122) Thanks [@holic](https://github.com/holic)! - Fixed ENS address resolution for "0x"-prefixed names.
|
1182
|
+
|
1183
|
+
## 0.2.2
|
1184
|
+
|
1185
|
+
### Patch Changes
|
1186
|
+
|
1187
|
+
- [#289](https://github.com/wagmi-dev/viem/pull/289) [`8c51f93`](https://github.com/wagmi-dev/viem/commit/8c51f93cfbe304c88b018c679c4413e8874692e7) Thanks [@jxom](https://github.com/jxom)! - Pinned dependencies.
|
1188
|
+
|
1189
|
+
- [#289](https://github.com/wagmi-dev/viem/pull/289) [`8c51f93`](https://github.com/wagmi-dev/viem/commit/8c51f93cfbe304c88b018c679c4413e8874692e7) Thanks [@jxom](https://github.com/jxom)! - Made `@scure/bip39/wordlists/*` & `idna-uts46-hx` exports ESM friendly.
|
1190
|
+
|
1191
|
+
## 0.2.1
|
1192
|
+
|
1193
|
+
### Patch Changes
|
1194
|
+
|
1195
|
+
- [#285](https://github.com/wagmi-dev/viem/pull/285) [`ab9fd12`](https://github.com/wagmi-dev/viem/commit/ab9fd121fbe271ba9bee43aea2d7bba122dc4f03) Thanks [@tmm](https://github.com/tmm)! - Exported `hdKeyToAccount` and `mnemonicToAccount`.
|
1196
|
+
|
1197
|
+
## 0.2.0 – [Migration Guide](https://viem.sh/docs/migration-guide.html)
|
1198
|
+
|
1199
|
+
### Minor Changes
|
1200
|
+
|
1201
|
+
- [#229](https://github.com/wagmi-dev/viem/pull/229) [`098f342`](https://github.com/wagmi-dev/viem/commit/098f3423ee84f9deb09c2c7d30e950a046c07ea9) Thanks [@jxom](https://github.com/jxom)! - **Breaking:** Removed the `getAccount` function.
|
1202
|
+
|
1203
|
+
**For JSON-RPC Accounts, use the address itself.**
|
1204
|
+
|
1205
|
+
```diff
|
1206
|
+
import { createWalletClient, custom } from 'viem'
|
1207
|
+
import { mainnet } from 'viem/chains'
|
1208
|
+
|
1209
|
+
const address = '0xFBA3912Ca04dd458c843e2EE08967fC04f3579c2'
|
1210
|
+
|
1211
|
+
const client = createWalletClient({
|
1212
|
+
- account: getAccount(address),
|
1213
|
+
+ account: address,
|
1214
|
+
chain: mainnet,
|
1215
|
+
transport: custom(window.ethereum)
|
1216
|
+
})
|
1217
|
+
```
|
1218
|
+
|
1219
|
+
**For Ethers Wallet Adapter, use `ethersWalletToAccount`.**
|
1220
|
+
|
1221
|
+
If you were using the Ethers Wallet adapter, you can use the `ethersWalletToAccount` function.
|
1222
|
+
|
1223
|
+
> Note: viem 0.2.0 now has a [Private Key](/docs/accounts/privateKey.html) & [Mnemonic Account](/docs/accounts/mnemonic.html) implementation. You probably do not need this adapter anymore. This adapter may be removed in a future version.
|
1224
|
+
|
1225
|
+
```diff
|
1226
|
+
import { createWalletClient, custom } from 'viem'
|
1227
|
+
import { mainnet } from 'viem/chains'
|
1228
|
+
- import { getAccount } from 'viem/ethers'
|
1229
|
+
+ import { ethersWalletToAccount } from 'viem/ethers'
|
1230
|
+
import { Wallet } from 'ethers'
|
1231
|
+
|
1232
|
+
- const account = getAccount(new Wallet('0x...'))
|
1233
|
+
+ const account = ethersWalletToAccount(new Wallet('0x...'))
|
1234
|
+
|
1235
|
+
const client = createWalletClient({
|
1236
|
+
account,
|
1237
|
+
chain: mainnet,
|
1238
|
+
transport: custom(window.ethereum)
|
1239
|
+
})
|
1240
|
+
```
|
1241
|
+
|
1242
|
+
**For Local Accounts, use `toAccount`.**
|
1243
|
+
|
1244
|
+
```diff
|
1245
|
+
- import { createWalletClient, http, getAccount } from 'viem'
|
1246
|
+
+ import { createWalletClient, http } from 'viem'
|
1247
|
+
+ import { toAccount } from 'viem/accounts'
|
1248
|
+
import { mainnet } from 'viem/chains'
|
1249
|
+
import { getAddress, signMessage, signTransaction } from './sign-utils'
|
1250
|
+
|
1251
|
+
const privateKey = '0x...'
|
1252
|
+
- const account = getAccount({
|
1253
|
+
+ const account = toAccount({
|
1254
|
+
address: getAddress(privateKey),
|
1255
|
+
signMessage(message) {
|
1256
|
+
return signMessage(message, privateKey)
|
1257
|
+
},
|
1258
|
+
signTransaction(transaction) {
|
1259
|
+
return signTransaction(transaction, privateKey)
|
1260
|
+
},
|
1261
|
+
signTypedData(typedData) {
|
1262
|
+
return signTypedData(typedData, privateKey)
|
1263
|
+
}
|
1264
|
+
})
|
1265
|
+
|
1266
|
+
const client = createWalletClient({
|
1267
|
+
account,
|
1268
|
+
chain: mainnet,
|
1269
|
+
transport: http()
|
1270
|
+
})
|
1271
|
+
```
|
1272
|
+
|
1273
|
+
- [#229](https://github.com/wagmi-dev/viem/pull/229) [`098f342`](https://github.com/wagmi-dev/viem/commit/098f3423ee84f9deb09c2c7d30e950a046c07ea9) Thanks [@jxom](https://github.com/jxom)! - **Breaking:** Removed `assertChain` argument on `sendTransaction`, `writeContract` & `deployContract`. If you wish to bypass the chain check (not recommended unless for testing purposes), you can pass `chain: null`.
|
1274
|
+
|
1275
|
+
```diff
|
1276
|
+
await walletClient.sendTransaction({
|
1277
|
+
- assertChain: false,
|
1278
|
+
+ chain: null,
|
1279
|
+
...
|
1280
|
+
})
|
1281
|
+
```
|
1282
|
+
|
1283
|
+
- [#229](https://github.com/wagmi-dev/viem/pull/229) [`098f342`](https://github.com/wagmi-dev/viem/commit/098f3423ee84f9deb09c2c7d30e950a046c07ea9) Thanks [@jxom](https://github.com/jxom)! - **Breaking:** A chain is now required for the `sendTransaction`, `writeContract`, `deployContract` Actions.
|
1284
|
+
|
1285
|
+
You can hoist the Chain on the Client:
|
1286
|
+
|
1287
|
+
```diff
|
1288
|
+
import { createWalletClient, custom, getAccount } from 'viem'
|
1289
|
+
import { mainnet } from 'viem/chains'
|
1290
|
+
|
1291
|
+
export const walletClient = createWalletClient({
|
1292
|
+
+ chain: mainnet,
|
1293
|
+
transport: custom(window.ethereum)
|
1294
|
+
})
|
1295
|
+
|
1296
|
+
const account = getAccount('0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266')
|
1297
|
+
|
1298
|
+
const hash = await walletClient.sendTransaction({
|
1299
|
+
account,
|
1300
|
+
to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
|
1301
|
+
value: 1000000000000000000n
|
1302
|
+
})
|
1303
|
+
```
|
1304
|
+
|
1305
|
+
Alternatively, you can pass the Chain directly to the Action:
|
1306
|
+
|
1307
|
+
```diff
|
1308
|
+
import { createWalletClient, custom, getAccount } from 'viem'
|
1309
|
+
import { mainnet } from 'viem/chains'
|
1310
|
+
|
1311
|
+
export const walletClient = createWalletClient({
|
1312
|
+
- chain: mainnet,
|
1313
|
+
transport: custom(window.ethereum)
|
1314
|
+
})
|
1315
|
+
|
1316
|
+
const account = getAccount('0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266')
|
1317
|
+
|
1318
|
+
const hash = await walletClient.sendTransaction({
|
1319
|
+
account,
|
1320
|
+
+ chain: mainnet,
|
1321
|
+
to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
|
1322
|
+
value: 1000000000000000000n
|
1323
|
+
})
|
1324
|
+
```
|
1325
|
+
|
1326
|
+
- [#229](https://github.com/wagmi-dev/viem/pull/229) [`098f342`](https://github.com/wagmi-dev/viem/commit/098f3423ee84f9deb09c2c7d30e950a046c07ea9) Thanks [@jxom](https://github.com/jxom)! - **Breaking:** Updated utility type names to reflect their purposes:
|
1327
|
+
|
1328
|
+
- `ExtractErrorNameFromAbi` is now `InferErrorName`
|
1329
|
+
- `ExtractEventNameFromAbi` is now `InferEventName`
|
1330
|
+
- `ExtractFunctionNameFromAbi` is now `InferFunctionName`
|
1331
|
+
- `ExtractItemNameFromAbi` is now `InferItemName`
|
1332
|
+
- `ExtractConstructorArgsFromAbi` is now `GetConstructorArgs`
|
1333
|
+
- `ExtractErrorArgsFromAbi` is now `GetErrorArgs`
|
1334
|
+
- `ExtractEventArgsFromAbi` is now `GetEventArgs`
|
1335
|
+
- `ExtractEventArgsFromTopics` is now `GetEventArgsFromTopics`
|
1336
|
+
- `ExtractArgsFromAbi` is now `GetFunctionArgs`
|
1337
|
+
|
1338
|
+
- [#229](https://github.com/wagmi-dev/viem/pull/229) [`098f342`](https://github.com/wagmi-dev/viem/commit/098f3423ee84f9deb09c2c7d30e950a046c07ea9) Thanks [@jxom](https://github.com/jxom)! - **Breaking:** The following functions are now `async` functions instead of synchronous functions:
|
1339
|
+
|
1340
|
+
- `recoverAddress`
|
1341
|
+
- `recoverMessageAddress`
|
1342
|
+
- `verifyMessage`
|
1343
|
+
|
1344
|
+
```diff
|
1345
|
+
import { recoverMessageAddress } from 'viem'
|
1346
|
+
|
1347
|
+
- recoverMessageAddress({ message: 'hello world', signature: '0x...' })
|
1348
|
+
+ await recoverMessageAddress({ message: 'hello world', signature: '0x...' })
|
1349
|
+
```
|
1350
|
+
|
1351
|
+
### Patch Changes
|
1352
|
+
|
1353
|
+
- [#229](https://github.com/wagmi-dev/viem/pull/229) [`098f342`](https://github.com/wagmi-dev/viem/commit/098f3423ee84f9deb09c2c7d30e950a046c07ea9) Thanks [@jxom](https://github.com/jxom)! - Added `getEnsText` & `getEnsAvatar`
|
1354
|
+
|
1355
|
+
- [#229](https://github.com/wagmi-dev/viem/pull/229) [`098f342`](https://github.com/wagmi-dev/viem/commit/098f3423ee84f9deb09c2c7d30e950a046c07ea9) Thanks [@jxom](https://github.com/jxom)! - Added Local Account implementations:
|
1356
|
+
|
1357
|
+
- `privateKeyToAccount`
|
1358
|
+
- `mnemonicToAccount`
|
1359
|
+
- `hdKeyToAccount`
|
1360
|
+
|
1361
|
+
If you were previously relying on the `viem/ethers` wallet adapter, you no longer need to use this.
|
1362
|
+
|
1363
|
+
```diff
|
1364
|
+
- import { Wallet } from 'ethers'
|
1365
|
+
- import { getAccount } from 'viem/ethers'
|
1366
|
+
+ import { privateKeyToAccount } from 'viem/accounts'
|
1367
|
+
|
1368
|
+
const privateKey = '0x...'
|
1369
|
+
- const account = getAccount(new Wallet(privateKey))
|
1370
|
+
+ const account = privateKeyToAccount(privateKey)
|
1371
|
+
|
1372
|
+
const client = createWalletClient({
|
1373
|
+
account,
|
1374
|
+
chain: mainnet,
|
1375
|
+
transport: http()
|
1376
|
+
})
|
1377
|
+
```
|
1378
|
+
|
1379
|
+
- [#229](https://github.com/wagmi-dev/viem/pull/229) [`098f342`](https://github.com/wagmi-dev/viem/commit/098f3423ee84f9deb09c2c7d30e950a046c07ea9) Thanks [@jxom](https://github.com/jxom)! - Added WebSocket `eth_subscribe` support `watchBlocks`, `watchBlockNumber`, and `watchPendingTransactions`.
|
1380
|
+
|
1381
|
+
- [#229](https://github.com/wagmi-dev/viem/pull/229) [`098f342`](https://github.com/wagmi-dev/viem/commit/098f3423ee84f9deb09c2c7d30e950a046c07ea9) Thanks [@jxom](https://github.com/jxom)! - Updated Client types.
|
1382
|
+
|
1383
|
+
- [#229](https://github.com/wagmi-dev/viem/pull/229) [`098f342`](https://github.com/wagmi-dev/viem/commit/098f3423ee84f9deb09c2c7d30e950a046c07ea9) Thanks [@jxom](https://github.com/jxom)! - Added `verifyTypedData`, `hashTypedData`, `recoverTypedDataMessage`
|
1384
|
+
|
1385
|
+
- [#229](https://github.com/wagmi-dev/viem/pull/229) [`098f342`](https://github.com/wagmi-dev/viem/commit/098f3423ee84f9deb09c2c7d30e950a046c07ea9) Thanks [@jxom](https://github.com/jxom)! - Added the ability to hoist an Account to the Wallet Client.
|
1386
|
+
|
1387
|
+
```diff
|
1388
|
+
import { createWalletClient, http } from 'viem'
|
1389
|
+
import { mainnnet } from 'viem/chains'
|
1390
|
+
|
1391
|
+
const [account] = await window.ethereum.request({ method: 'eth_requestAccounts' })
|
1392
|
+
|
1393
|
+
const client = createWalletClient({
|
1394
|
+
+ account,
|
1395
|
+
chain: mainnet,
|
1396
|
+
transport: http()
|
1397
|
+
})
|
1398
|
+
|
1399
|
+
const hash = await client.sendTransaction({
|
1400
|
+
- account,
|
1401
|
+
to: '0xa5cc3c03994DB5b0d9A5eEdD10CabaB0813678AC',
|
1402
|
+
value: parseEther('0.001')
|
1403
|
+
})
|
1404
|
+
```
|
1405
|
+
|
1406
|
+
- [#229](https://github.com/wagmi-dev/viem/pull/229) [`098f342`](https://github.com/wagmi-dev/viem/commit/098f3423ee84f9deb09c2c7d30e950a046c07ea9) Thanks [@jxom](https://github.com/jxom)! - Added getEnsResolver
|
1407
|
+
|
1408
|
+
## 0.1.26
|
1409
|
+
|
1410
|
+
### Patch Changes
|
1411
|
+
|
1412
|
+
- [`93e402d`](https://github.com/wagmi-dev/viem/commit/93e402d6fddabcb6966fd8f81d7176d71241e193) Thanks [@jxom](https://github.com/jxom)! - Fixed a `decodeAbiParameters` case where static arrays with a dynamic child would consume the size of the child instead of 32 bytes.
|
1413
|
+
|
1414
|
+
## 0.1.25
|
1415
|
+
|
1416
|
+
### Patch Changes
|
1417
|
+
|
1418
|
+
- [#263](https://github.com/wagmi-dev/viem/pull/263) [`53fda1a`](https://github.com/wagmi-dev/viem/commit/53fda1a5366ff1122b951d8148c1a9f74f280578) Thanks [@fubhy](https://github.com/fubhy)! - Fixed issue where ABIs with constructors would throw for `decodeFunctionData`.
|
1419
|
+
|
1420
|
+
## 0.1.24
|
1421
|
+
|
1422
|
+
### Patch Changes
|
1423
|
+
|
1424
|
+
- [#237](https://github.com/wagmi-dev/viem/pull/237) [`a92c4fa`](https://github.com/wagmi-dev/viem/commit/a92c4fa31eb4a71cb68edf6d50a58cf653419f86) Thanks [@jxom](https://github.com/jxom)! - Added automatic ranking to `fallback` Transport.
|
1425
|
+
|
1426
|
+
## 0.1.23
|
1427
|
+
|
1428
|
+
### Patch Changes
|
1429
|
+
|
1430
|
+
- [#251](https://github.com/wagmi-dev/viem/pull/251) [`153e97e`](https://github.com/wagmi-dev/viem/commit/153e97ed0461c34fd75fa7cad3820e9960f6810a) Thanks [@tmm](https://github.com/tmm)! - Fixed `signTypedData` inference for `primaryType` field.
|
1431
|
+
|
1432
|
+
## 0.1.22
|
1433
|
+
|
1434
|
+
### Patch Changes
|
1435
|
+
|
1436
|
+
- [`07000b6`](https://github.com/wagmi-dev/viem/commit/07000b650b6cce41c99a4ccf609f5fccce818244) Thanks [@jxom](https://github.com/jxom)! - Removed unnecessary trimming of decoded RLP hex value
|
1437
|
+
|
1438
|
+
## 0.1.21
|
1439
|
+
|
1440
|
+
### Patch Changes
|
1441
|
+
|
1442
|
+
- [#223](https://github.com/wagmi-dev/viem/pull/223) [`2e9c000`](https://github.com/wagmi-dev/viem/commit/2e9c0008c76939e54902569f8f8581a943914e4f) Thanks [@jxom](https://github.com/jxom)! - Added an assertion in `sendTransaction` & `writeContract` to check that the client chain matches the wallet's current chain.
|
1443
|
+
|
1444
|
+
## 0.1.20
|
1445
|
+
|
1446
|
+
### Patch Changes
|
1447
|
+
|
1448
|
+
- [#220](https://github.com/wagmi-dev/viem/pull/220) [`9a80fca`](https://github.com/wagmi-dev/viem/commit/9a80fca116417f77d4a305a59ec0c3ecf3e0fdfa) Thanks [@jxom](https://github.com/jxom)! - Fixed an issue where `watchEvent` would not emit events on missed blocks for the `getLogs` fallback.
|
1449
|
+
|
1450
|
+
## 0.1.19
|
1451
|
+
|
1452
|
+
### Patch Changes
|
1453
|
+
|
1454
|
+
- [`74f8e1d`](https://github.com/wagmi-dev/viem/commit/74f8e1dfe1b86eba9453ede0b20babf8e150423a) Thanks [@jxom](https://github.com/jxom)! - Added missing `recoverMessageAddress` and `verifyMessage` exports.
|
1455
|
+
|
1456
|
+
## 0.1.18
|
1457
|
+
|
1458
|
+
### Patch Changes
|
1459
|
+
|
1460
|
+
- [`9c45397`](https://github.com/wagmi-dev/viem/commit/9c4539756d138f196b368fd1ac8e1a926d9bace0) Thanks [@jxom](https://github.com/jxom)! - Fixed `signTypedData` support for Ethers.js v5 wallets
|
1461
|
+
|
1462
|
+
## 0.1.17
|
1463
|
+
|
1464
|
+
### Patch Changes
|
1465
|
+
|
1466
|
+
- [#213](https://github.com/wagmi-dev/viem/pull/213) [`46f823a`](https://github.com/wagmi-dev/viem/commit/46f823afd017b1421c66162d832080f8dc7711e1) Thanks [@jxom](https://github.com/jxom)! - Fixed return type for `allowFailure: false` on `multicall`
|
1467
|
+
|
1468
|
+
- [`1339b20`](https://github.com/wagmi-dev/viem/commit/1339b20f735cb18b397aa1910cdb288609612f14) Thanks [@jxom](https://github.com/jxom)! - Exported `Extract*FromAbi` types
|
1469
|
+
|
1470
|
+
- [`c3d932a`](https://github.com/wagmi-dev/viem/commit/c3d932ad69a0c54fb204d7878a1a96916d1193df) Thanks [@jxom](https://github.com/jxom)! - Fixed `signTypedData` support for Ethers.js v5 Wallets
|
1471
|
+
|
1472
|
+
## 0.1.16
|
1473
|
+
|
1474
|
+
### Patch Changes
|
1475
|
+
|
1476
|
+
- [#207](https://github.com/wagmi-dev/viem/pull/207) [`8e5768f`](https://github.com/wagmi-dev/viem/commit/8e5768ffa1d813810b99f5ed06a00bfe830b2a35) Thanks [@jxom](https://github.com/jxom)! - Added assertion in `watchBlocks` and `watchBlockNumber` to check that the next block number is higher than the previously seen block number.
|
1477
|
+
|
1478
|
+
- [#209](https://github.com/wagmi-dev/viem/pull/209) [`ae3e0b6`](https://github.com/wagmi-dev/viem/commit/ae3e0b62a21671bd749e20ec5d65d80fa7475adc) Thanks [@jxom](https://github.com/jxom)! - Added `verifyMessage`, `recoverAddress`, `recoverMessageAddress`, and `hashMessage`.
|
1479
|
+
|
1480
|
+
## 0.1.15
|
1481
|
+
|
1482
|
+
### Patch Changes
|
1483
|
+
|
1484
|
+
- [#205](https://github.com/wagmi-dev/viem/pull/205) [`36fa97a`](https://github.com/wagmi-dev/viem/commit/36fa97a595670825f1dee008ebf44abbc1402f2e) Thanks [@jxom](https://github.com/jxom)! - Added an assertion to check for existence of an event signature on `topics` for `decodeEventLog`
|
1485
|
+
|
1486
|
+
## 0.1.14
|
1487
|
+
|
1488
|
+
### Patch Changes
|
1489
|
+
|
1490
|
+
- [#198](https://github.com/wagmi-dev/viem/pull/198) [`e805e7e`](https://github.com/wagmi-dev/viem/commit/e805e7ebaa7c15ea21a49ac0759bf4ebe5284f72) Thanks [@wighawag](https://github.com/wighawag)! - Added an assertion in `decodeEventLog` to check for a mismatch between topics + indexed event parameters.
|
1491
|
+
|
1492
|
+
## 0.1.13
|
1493
|
+
|
1494
|
+
### Patch Changes
|
1495
|
+
|
1496
|
+
- [`56f2e03`](https://github.com/wagmi-dev/viem/commit/56f2e03837d64a9156766f0ef785ac50ba27380f) Thanks [@jxom](https://github.com/jxom)! - Added export for `concat`.
|
1497
|
+
|
1498
|
+
## 0.1.12
|
1499
|
+
|
1500
|
+
### Patch Changes
|
1501
|
+
|
1502
|
+
- [`c0e3617`](https://github.com/wagmi-dev/viem/commit/c0e3617b639ba84c03011430d69d72173da00466) Thanks [@jxom](https://github.com/jxom)! - Fixed `viem/ethers` entrypoint.
|
1503
|
+
|
1504
|
+
## 0.1.11
|
1505
|
+
|
1506
|
+
### Patch Changes
|
1507
|
+
|
1508
|
+
- [#88](https://github.com/wagmi-dev/viem/pull/88) [`5456490`](https://github.com/wagmi-dev/viem/commit/545649093422fb14a39418a7199766d033c9e175) Thanks [@jxom](https://github.com/jxom)! - Added `signTypedData`.
|
1509
|
+
|
1510
|
+
## 0.1.10
|
1511
|
+
|
1512
|
+
### Patch Changes
|
1513
|
+
|
1514
|
+
- [#178](https://github.com/wagmi-dev/viem/pull/178) [`eda1827`](https://github.com/wagmi-dev/viem/commit/eda182754ed2727bc652225e327760ab0a14a962) Thanks [@0xOlias](https://github.com/0xOlias)! - Fixed type of `topics` field on the `Log` type.
|
1515
|
+
|
1516
|
+
- [#181](https://github.com/wagmi-dev/viem/pull/181) [`8213be3`](https://github.com/wagmi-dev/viem/commit/8213be3676283ec80d0d5cbcee4864fe4d9c6b6e) Thanks [@tmm](https://github.com/tmm)! - Bumped abitype version.
|
1517
|
+
|
1518
|
+
## 0.1.9
|
1519
|
+
|
1520
|
+
### Patch Changes
|
1521
|
+
|
1522
|
+
- [#170](https://github.com/wagmi-dev/viem/pull/170) [`35a7508`](https://github.com/wagmi-dev/viem/commit/35a750839ae5ac41427e84922315ce3e360ee58a) Thanks [@jxom](https://github.com/jxom)! - Added inference for multicall address from client chain.
|
1523
|
+
|
1524
|
+
## 0.1.8
|
1525
|
+
|
1526
|
+
### Patch Changes
|
1527
|
+
|
1528
|
+
- [`36c908c`](https://github.com/wagmi-dev/viem/commit/36c908c65dcbca1a68841dfa8eb89963561431b1) Thanks [@jxom](https://github.com/jxom)! - Fixed an issue where empty strings were not being decoded properly in `decodeAbiParameters`.
|
1529
|
+
|
1530
|
+
## 0.1.7
|
1531
|
+
|
1532
|
+
### Patch Changes
|
1533
|
+
|
1534
|
+
- [#159](https://github.com/wagmi-dev/viem/pull/159) [`574ae22`](https://github.com/wagmi-dev/viem/commit/574ae2244c755519bda02b46d8767a365e1f4217) Thanks [@jxom](https://github.com/jxom)! - Fixed issue where decoding error logs would break if constructor was in ABI.
|
1535
|
+
|
1536
|
+
## 0.1.6
|
1537
|
+
|
1538
|
+
### Patch Changes
|
1539
|
+
|
1540
|
+
- [#153](https://github.com/wagmi-dev/viem/pull/153) [`bbb998a`](https://github.com/wagmi-dev/viem/commit/bbb998a6a1c2ce97a76e6275e1f07b6e2767b248) Thanks [@jxom](https://github.com/jxom)! - Formatted `undefined` values from RPC as `null` to conform to EIP-1474.
|
1541
|
+
|
1542
|
+
## 0.1.5
|
1543
|
+
|
1544
|
+
### Patch Changes
|
1545
|
+
|
1546
|
+
- [#141](https://github.com/wagmi-dev/viem/pull/141) [`450b612`](https://github.com/wagmi-dev/viem/commit/450b612289b832559ce11a9e2eba7dda68a7a981) Thanks [@unholypanda](https://github.com/unholypanda)! - Fixed `createPublicClient` to include `getTransactionCount`
|
1547
|
+
|
1548
|
+
## 0.1.4
|
1549
|
+
|
1550
|
+
### Patch Changes
|
1551
|
+
|
1552
|
+
- [#139](https://github.com/wagmi-dev/viem/pull/139) [`304a436`](https://github.com/wagmi-dev/viem/commit/304a4365dba9aa7be191ae4436b952eea9cfe79e) Thanks [@jxom](https://github.com/jxom)! - Added the following chains:
|
1553
|
+
|
1554
|
+
- `baseGoerli`
|
1555
|
+
- `boba`
|
1556
|
+
- `filecoinCalibration`
|
1557
|
+
- `flare`
|
1558
|
+
- `flareTestnet`
|
1559
|
+
- `harmonyOne`
|
1560
|
+
- `moonbaseAlpha`
|
1561
|
+
- `moonbeam`
|
1562
|
+
- `moonriver`
|
1563
|
+
- `okc`
|
1564
|
+
- `polygonZkEvmTestnet`
|
1565
|
+
- `shardeumSphinx`
|
1566
|
+
- `songbird`
|
1567
|
+
- `songbirdTestnet`
|
1568
|
+
- `telos`
|
1569
|
+
- `telosTestnet`
|
1570
|
+
- `zhejiang`
|
1571
|
+
|
1572
|
+
## 0.1.3
|
1573
|
+
|
1574
|
+
### Patch Changes
|
1575
|
+
|
1576
|
+
- [#136](https://github.com/wagmi-dev/viem/pull/136) [`dcca090`](https://github.com/wagmi-dev/viem/commit/dcca0900556d45a5795af4f60ef070a54a6f0306) Thanks [@jxom](https://github.com/jxom)! - Fixed ABI encoding for strings larger than 32 bytes.
|
1577
|
+
|
1578
|
+
- [#136](https://github.com/wagmi-dev/viem/pull/136) [`dcca090`](https://github.com/wagmi-dev/viem/commit/dcca0900556d45a5795af4f60ef070a54a6f0306) Thanks [@jxom](https://github.com/jxom)! - Fixed emoji string encoding.
|
1579
|
+
|
1580
|
+
## 0.1.2
|
1581
|
+
|
1582
|
+
### Patch Changes
|
1583
|
+
|
1584
|
+
- [`637d252`](https://github.com/wagmi-dev/viem/commit/637d2523e3e259deb9538a0089c0c80bb37abf22) Thanks [@jxom](https://github.com/jxom)! - Bumped abitype to 0.6.7
|
1585
|
+
|
1586
|
+
## 0.1.1
|
1587
|
+
|
1588
|
+
### Patch Changes
|
1589
|
+
|
1590
|
+
- [#128](https://github.com/wagmi-dev/viem/pull/128) [`ef51936`](https://github.com/wagmi-dev/viem/commit/ef519364c28a2ec6571b5e8d13aced0c9123dc46) Thanks [@tmm](https://github.com/tmm)! - Fixed internal type compilation error.
|
1591
|
+
|
1592
|
+
## 0.1.0
|
1593
|
+
|
1594
|
+
### Minor Changes
|
1595
|
+
|
1596
|
+
- [`fec4460`](https://github.com/wagmi-dev/viem/commit/fec4460f63ac2c367722554cf910f1ee78b2795d) Thanks [@jxom](https://github.com/jxom)! - Initial release.
|
1597
|
+
|
1598
|
+
## 0.0.1-alpha.39
|
1599
|
+
|
1600
|
+
### Patch Changes
|
1601
|
+
|
1602
|
+
- [`68c3816`](https://github.com/wagmi-dev/viem/commit/68c3816c8c492aa0943b63438a13109e9ac682df) Thanks [@jxom](https://github.com/jxom)! - Added `encodePacked`.
|
1603
|
+
|
1604
|
+
- [`68c3816`](https://github.com/wagmi-dev/viem/commit/68c3816c8c492aa0943b63438a13109e9ac682df) Thanks [@jxom](https://github.com/jxom)! - Made `keccak256` accept a hex value (as well as byte array).
|
1605
|
+
|
1606
|
+
## 0.0.1-alpha.38
|
1607
|
+
|
1608
|
+
### Patch Changes
|
1609
|
+
|
1610
|
+
- [`59a60cb`](https://github.com/wagmi-dev/viem/commit/59a60cb8cc7d0109c08fa5906a24c6eb8e48b183) Thanks [@jxom](https://github.com/jxom)! - Fixed decoding zero data bytes
|
1611
|
+
|
1612
|
+
## 0.0.1-alpha.37
|
1613
|
+
|
1614
|
+
### Patch Changes
|
1615
|
+
|
1616
|
+
- [`e07f212`](https://github.com/wagmi-dev/viem/commit/e07f212af5ef94b938939f0205056c29747bb919) Thanks [@jxom](https://github.com/jxom)! - **Breaking:** Renamed `formatUnit` and `parseUnit` to `formatUnits` and `parseUnits`.
|
1617
|
+
|
1618
|
+
## 0.0.1-alpha.36
|
1619
|
+
|
1620
|
+
### Patch Changes
|
1621
|
+
|
1622
|
+
- [#100](https://github.com/wagmi-dev/viem/pull/100) [`6bb8ce4`](https://github.com/wagmi-dev/viem/commit/6bb8ce4eafff68989281f19fb315c0ea2f22b01a) Thanks [@jxom](https://github.com/jxom)! - **Breaking:** Renamed `requestAccounts` Wallet Action to `requestAddresses`
|
1623
|
+
|
1624
|
+
**Breaking:** Renamed `getAccounts` Wallet Action to `getAddresses`
|
1625
|
+
|
1626
|
+
- [#100](https://github.com/wagmi-dev/viem/pull/100) [`6bb8ce4`](https://github.com/wagmi-dev/viem/commit/6bb8ce4eafff68989281f19fb315c0ea2f22b01a) Thanks [@jxom](https://github.com/jxom)! - Added support for Externally Owned Accounts.
|
1627
|
+
|
1628
|
+
- [#100](https://github.com/wagmi-dev/viem/pull/100) [`6bb8ce4`](https://github.com/wagmi-dev/viem/commit/6bb8ce4eafff68989281f19fb315c0ea2f22b01a) Thanks [@jxom](https://github.com/jxom)! - **Breaking:** The `from` argument has been removed from Actions in favour of `account` to distinguish between [Account types](https://viem.sh/docs/clients/wallet):
|
1629
|
+
|
1630
|
+
```diff
|
1631
|
+
+ import { getAccount } from 'viem'
|
1632
|
+
|
1633
|
+
const [address] = await walletClient.requestAddresses()
|
1634
|
+
+ const account = getAccount(address)
|
1635
|
+
|
1636
|
+
const hash = await walletClient.sendTransaction({
|
1637
|
+
- from: address,
|
1638
|
+
+ account,
|
1639
|
+
to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
|
1640
|
+
value: 1000000000000000000n
|
1641
|
+
})
|
1642
|
+
```
|
1643
|
+
|
1644
|
+
Affected actions:
|
1645
|
+
|
1646
|
+
- `call`
|
1647
|
+
- `estimateGas`
|
1648
|
+
- `sendTransaction`
|
1649
|
+
- `signMessage`
|
1650
|
+
- `estimateContractGas`
|
1651
|
+
- `multicall`
|
1652
|
+
- `readContract`
|
1653
|
+
- `simulateContract`
|
1654
|
+
- `writeContract`
|
1655
|
+
|
1656
|
+
## 0.0.1-alpha.35
|
1657
|
+
|
1658
|
+
### Patch Changes
|
1659
|
+
|
1660
|
+
- [`057e01e`](https://github.com/wagmi-dev/viem/commit/057e01e9fff7346304e787d93053d84a09278335) Thanks [@jxom](https://github.com/jxom)! - - `testClient.getTxPoolContent` → `testClient.getTxpoolContent`
|
1661
|
+
- `testClient.getTxPoolStatus` → `testClient.getTxpoolStatus`
|
1662
|
+
|
1663
|
+
- [#85](https://github.com/wagmi-dev/viem/pull/85) [`2350d1a`](https://github.com/wagmi-dev/viem/commit/2350d1af1ff67d725ff3563538b9886a405ab8bd) Thanks [@jxom](https://github.com/jxom)! - **Breaking:** Renamed `encodeAbi` & `decodeAbi` to `encodeAbiParameters` & `decodeAbiParameters`, and modified API from named arguments to inplace arguments:
|
1664
|
+
|
1665
|
+
```diff
|
1666
|
+
import {
|
1667
|
+
- encodeAbi,
|
1668
|
+
- decodeAbi,
|
1669
|
+
+ encodeAbiParameters,
|
1670
|
+
+ decodeAbiParameters,
|
1671
|
+
} from 'viem'
|
1672
|
+
|
1673
|
+
-const result = encodeAbi({ params, values })
|
1674
|
+
+const result = encodeAbiParameters(params, values)
|
1675
|
+
|
1676
|
+
-const result = decodeAbi({ params, data })
|
1677
|
+
+const result = decodeAbiParameters(params, data)
|
1678
|
+
```
|
1679
|
+
|
1680
|
+
## 0.0.1-alpha.34
|
1681
|
+
|
1682
|
+
### Patch Changes
|
1683
|
+
|
1684
|
+
- [`e1634b5`](https://github.com/wagmi-dev/viem/commit/e1634b5d110b1a39032eab9813f93244b04123ad) Thanks [@jxom](https://github.com/jxom)! - Fixed ABI encoding dynamic tuple child derivation
|
1685
|
+
|
1686
|
+
## 0.0.1-alpha.33
|
1687
|
+
|
1688
|
+
### Patch Changes
|
1689
|
+
|
1690
|
+
- [`1971e6a`](https://github.com/wagmi-dev/viem/commit/1971e6ad74df802bdbd988ddc5e6fc06fad66091) Thanks [@jxom](https://github.com/jxom)! - Added assertion to check if addresses are valid for `sendTransaction`, `estimateGas` & `call`.
|
1691
|
+
|
1692
|
+
## 0.0.1-alpha.32
|
1693
|
+
|
1694
|
+
### Patch Changes
|
1695
|
+
|
1696
|
+
- [`7243744`](https://github.com/wagmi-dev/viem/commit/7243744ecd230532b8f11d1766318a75760229e5) Thanks [@jxom](https://github.com/jxom)! - Added support for `4001` & `4902` RPC error codes.
|
1697
|
+
|
1698
|
+
## 0.0.1-alpha.31
|
1699
|
+
|
1700
|
+
### Patch Changes
|
1701
|
+
|
1702
|
+
- [#89](https://github.com/wagmi-dev/viem/pull/89) [`3e45853`](https://github.com/wagmi-dev/viem/commit/3e45853a2252e6a5496acae65c3cebecbdb4260f) Thanks [@jxom](https://github.com/jxom)! - Added `fetchOptions` to the `http` transport.
|
1703
|
+
|
1704
|
+
- [#91](https://github.com/wagmi-dev/viem/pull/91) [`0ac32c2`](https://github.com/wagmi-dev/viem/commit/0ac32c2852dc470aaba560623a2e169927a546d5) Thanks [@jxom](https://github.com/jxom)! - **Breaking:** Renamed `getFunctionSignature` and `getEventSignature` to `getFunctionSelector` and `getEventSelector`.
|
1705
|
+
|
1706
|
+
## 0.0.1-alpha.30
|
1707
|
+
|
1708
|
+
### Patch Changes
|
1709
|
+
|
1710
|
+
- [#81](https://github.com/wagmi-dev/viem/pull/81) [`eb572b0`](https://github.com/wagmi-dev/viem/commit/eb572b0a431606f8c31abb011cef08ad36d0836c) Thanks [@jxom](https://github.com/jxom)! - Improved transaction & contract error messaging & coalesce error messages from nodes.
|
1711
|
+
|
1712
|
+
## 0.0.1-alpha.29
|
1713
|
+
|
1714
|
+
### Patch Changes
|
1715
|
+
|
1716
|
+
- [`6bdee9c`](https://github.com/wagmi-dev/viem/commit/6bdee9c8dde1c06ebde769c50c1002b2cca0a0f9) Thanks [@jxom](https://github.com/jxom)! - Fixed issue where fallback transport was not falling back on timeouts
|
1717
|
+
|
1718
|
+
## 0.0.1-alpha.28
|
1719
|
+
|
1720
|
+
### Patch Changes
|
1721
|
+
|
1722
|
+
- [`8ef068b`](https://github.com/wagmi-dev/viem/commit/8ef068b024d90b1a62e34b6556268d6a38514eb3) Thanks [@jxom](https://github.com/jxom)! - Added `502`, `503` and `504` error codes as "non-deterministic" errors for `fallback` transport & retries.
|
1723
|
+
|
1724
|
+
- [#79](https://github.com/wagmi-dev/viem/pull/79) [`db9caa9`](https://github.com/wagmi-dev/viem/commit/db9caa98fb7cf8592940c1c2e4d41b678b70240c) Thanks [@jxom](https://github.com/jxom)! - Added `timeout` as a config option to the `http` and `webSocket` Transports.
|
1725
|
+
|
1726
|
+
- [#77](https://github.com/wagmi-dev/viem/pull/77) [`d6a29f5`](https://github.com/wagmi-dev/viem/commit/d6a29f5223324660cd98c2a6aaf345c207b2cd97) Thanks [@jxom](https://github.com/jxom)! - Decorated Clients with their respective Actions.
|
1727
|
+
|
1728
|
+
Example:
|
1729
|
+
|
1730
|
+
```diff
|
1731
|
+
import { createPublicClient, http } from 'viem'
|
1732
|
+
import { mainnet } from 'viem/chains'
|
1733
|
+
-import { getBlockNumber } from 'viem/public'
|
1734
|
+
|
1735
|
+
const client = createPublicClient({
|
1736
|
+
chain: mainnet,
|
1737
|
+
transport: http(),
|
1738
|
+
})
|
1739
|
+
|
1740
|
+
- const blockNumber = await getBlockNumber(client)
|
1741
|
+
+ const blockNumber = await client.getBlockNumber()
|
1742
|
+
```
|
1743
|
+
|
1744
|
+
## 0.0.1-alpha.26
|
1745
|
+
|
1746
|
+
### Patch Changes
|
1747
|
+
|
1748
|
+
**Breaking**: Renamed encoding utils.
|
1749
|
+
|
1750
|
+
- `encodeBytes`/`decodeBytes` → `toBytes`/`fromBytes`
|
1751
|
+
- `encodeHex`/`decodeHex` → `toHex`/`fromHex`
|
1752
|
+
- `encodeRlp`/`decodeRlp` → `toRlp`/`fromRlp`
|
1753
|
+
|
1754
|
+
## 0.0.1-alpha.26
|
1755
|
+
|
1756
|
+
### Patch Changes
|
1757
|
+
|
1758
|
+
- [`7d9a241`](https://github.com/wagmi-dev/viem/commit/7d9a2413805b142611d29d7e5faddd44ae3c047c) Thanks [@jxom](https://github.com/jxom)! - Added `estimateContractGas`.
|
1759
|
+
|
1760
|
+
- [`7d9a241`](https://github.com/wagmi-dev/viem/commit/7d9a2413805b142611d29d7e5faddd44ae3c047c) Thanks [@jxom](https://github.com/jxom)! - Added `retryCount` and `retryDelay` config to Transports.
|
1761
|
+
|
1762
|
+
## 0.0.1-alpha.25
|
1763
|
+
|
1764
|
+
### Patch Changes
|
1765
|
+
|
1766
|
+
- [`6c902f8`](https://github.com/wagmi-dev/viem/commit/6c902f86e2067dcd366434722429fe873c8d6089) Thanks [@jxom](https://github.com/jxom)! - Added `decodeEventLog`.
|
1767
|
+
|
1768
|
+
- [#68](https://github.com/wagmi-dev/viem/pull/68) [`1be77b3`](https://github.com/wagmi-dev/viem/commit/1be77b3e7f454ae6085daefe1f24ca9f757334f8) Thanks [@jxom](https://github.com/jxom)! - **Breaking:** Removed all public/wallet/test actions & utils from the `viem` entrypoint to their respective entrypoints:
|
1769
|
+
|
1770
|
+
- `viem` = Clients & Transport exports
|
1771
|
+
- `viem/chains` = Chains exports
|
1772
|
+
- `viem/contract` = Contract Actions & Utils exports
|
1773
|
+
- `viem/ens` = ENS Actions & Utils exports
|
1774
|
+
- `viem/public` = Public Actions exports
|
1775
|
+
- `viem/test` = Test Actions exports
|
1776
|
+
- `viem/utils` = Utils exports
|
1777
|
+
- `viem/wallet` = Wallet Actions exports
|
1778
|
+
|
1779
|
+
- [#66](https://github.com/wagmi-dev/viem/pull/66) [`f19fc32`](https://github.com/wagmi-dev/viem/commit/f19fc329bd7bad7639824fcf65387be542facc83) Thanks [@tmm](https://github.com/tmm)! - Added ENS actions `getEnsAddress` and `getEnsName`.
|
1780
|
+
|
1781
|
+
## 0.0.1-alpha.24
|
1782
|
+
|
1783
|
+
### Patch Changes
|
1784
|
+
|
1785
|
+
- [#63](https://github.com/wagmi-dev/viem/pull/63) [`7473582`](https://github.com/wagmi-dev/viem/commit/7473582aff91c6c717ee112743c45dc4cf5dd543) Thanks [@tmm](https://github.com/tmm)! - Exported missing `watchContractEvent` and `watchEvent` actions.
|
1786
|
+
|
1787
|
+
## 0.0.1-alpha.23
|
1788
|
+
|
1789
|
+
### Patch Changes
|
1790
|
+
|
1791
|
+
- [#61](https://github.com/wagmi-dev/viem/pull/61) [`e4b2dbb`](https://github.com/wagmi-dev/viem/commit/e4b2dbb67e5b9f7f8d703191207931042127ebce) Thanks [@tmm](https://github.com/tmm)! - Exported multicall action
|
1792
|
+
|
1793
|
+
## 0.0.1-alpha.22
|
1794
|
+
|
1795
|
+
### Patch Changes
|
1796
|
+
|
1797
|
+
- [#57](https://github.com/wagmi-dev/viem/pull/57) [`40c76e3`](https://github.com/wagmi-dev/viem/commit/40c76e3ac4478ee1e5c739d8162eb2006e3679e0) Thanks [@jxom](https://github.com/jxom)! - support `Panic` & custom contract errors
|
1798
|
+
|
1799
|
+
- [#56](https://github.com/wagmi-dev/viem/pull/56) [`3e90197`](https://github.com/wagmi-dev/viem/commit/3e90197bbac1ea571876d316a8667f4a00e84e9f) Thanks [@jxom](https://github.com/jxom)! - - **Breaking**: Renamed `humanMessage` to `shortMessage` in `BaseError`.
|
1800
|
+
- Added `multicall`.
|
1801
|
+
- Support overloaded contract functions.
|
1802
|
+
|
1803
|
+
## 0.0.1-alpha.21
|
1804
|
+
|
1805
|
+
### Patch Changes
|
1806
|
+
|
1807
|
+
- [`5a6bdf8`](https://github.com/wagmi-dev/viem/commit/5a6bdf8ea034b7edf6b2207b525764cee43bdb4b) Thanks [@jxom](https://github.com/jxom)! - Fixed an issue where `encodeAbi` couldn't encode dynamic bytes larger than 32 bytes"
|
1808
|
+
|
1809
|
+
## 0.0.1-alpha.20
|
1810
|
+
|
1811
|
+
### Patch Changes
|
1812
|
+
|
1813
|
+
- [`ebf1dc8`](https://github.com/wagmi-dev/viem/commit/ebf1dc8e4785fd8115687995916882caa94f7ecd) Thanks [@jxom](https://github.com/jxom)! - Added `watchEvent`
|
1814
|
+
|
1815
|
+
- [`ebf1dc8`](https://github.com/wagmi-dev/viem/commit/ebf1dc8e4785fd8115687995916882caa94f7ecd) Thanks [@jxom](https://github.com/jxom)! - Added `watchContractEvent`
|
1816
|
+
|
1817
|
+
- [`ae90357`](https://github.com/wagmi-dev/viem/commit/ae9035735590b09e375dd4f773dd8b5e6c953fab) Thanks [@jxom](https://github.com/jxom)! - Made `watchBlocks` more type safe with the `includeTransactions` arg.
|
1818
|
+
|
1819
|
+
## 0.0.1-alpha.19
|
1820
|
+
|
1821
|
+
### Patch Changes
|
1822
|
+
|
1823
|
+
- [`2028985`](https://github.com/wagmi-dev/viem/commit/202898521d4c211d73f8194c642c62a9baa57a46) Thanks [@jxom](https://github.com/jxom)! - Added `getStorageAt`
|
1824
|
+
|
1825
|
+
## 0.0.1-alpha.18
|
1826
|
+
|
1827
|
+
### Patch Changes
|
1828
|
+
|
1829
|
+
- [`7afdee8`](https://github.com/wagmi-dev/viem/commit/7afdee87cda6cebeeb9446773b6373ab680f7207) Thanks [@jxom](https://github.com/jxom)! - Added `readContract`
|
1830
|
+
|
1831
|
+
## 0.0.1-alpha.17
|
1832
|
+
|
1833
|
+
### Patch Changes
|
1834
|
+
|
1835
|
+
- [`ac69d16`](https://github.com/wagmi-dev/viem/commit/ac69d1675e70624919dc564f73ab91064c683a52) Thanks [@jxom](https://github.com/jxom)! - Added `writeContract`.
|
1836
|
+
|
1837
|
+
- [`ac69d16`](https://github.com/wagmi-dev/viem/commit/ac69d1675e70624919dc564f73ab91064c683a52) Thanks [@jxom](https://github.com/jxom)! - **Breaking**: Replaced `callContract` with `simulateContract`.
|
1838
|
+
|
1839
|
+
- [#44](https://github.com/wagmi-dev/viem/pull/44) [`f908190`](https://github.com/wagmi-dev/viem/commit/f90819098e11a2415d1220a6e857c45b09450885) Thanks [@0xOlias](https://github.com/0xOlias)! - Added `getLogs` action.
|
1840
|
+
|
1841
|
+
## 0.0.1-alpha.16
|
1842
|
+
|
1843
|
+
### Patch Changes
|
1844
|
+
|
1845
|
+
- [`9f386f5`](https://github.com/wagmi-dev/viem/commit/9f386f5737a228a57d1376992cd5a1374ed69262) Thanks [@jxom](https://github.com/jxom)! - Added sourcemaps
|
1846
|
+
|
1847
|
+
## 0.0.1-alpha.15
|
1848
|
+
|
1849
|
+
### Patch Changes
|
1850
|
+
|
1851
|
+
- [`a74d643`](https://github.com/wagmi-dev/viem/commit/a74d6438d3a1263b3b6616e0b7ec80791945c870) Thanks [@jxom](https://github.com/jxom)! - **Breaking**: Removed the `viem/actions` export in favor of `viem/public`, `viem/test` & `viem/wallet` exports.
|
1852
|
+
|
1853
|
+
## 0.0.1-alpha.14
|
1854
|
+
|
1855
|
+
### Patch Changes
|
1856
|
+
|
1857
|
+
- [`257c8f3`](https://github.com/wagmi-dev/viem/commit/257c8f34c83a05da7226fd84565535ffe4dc4a6a) Thanks [@jxom](https://github.com/jxom)! - Added `getBytecode`.
|
1858
|
+
|
1859
|
+
## 0.0.1-alpha.13
|
1860
|
+
|
1861
|
+
### Patch Changes
|
1862
|
+
|
1863
|
+
- [`8799a49`](https://github.com/wagmi-dev/viem/commit/8799a490b8b08fb90cd6edcdc1551f6b6e96bc64) Thanks [@jxom](https://github.com/jxom)! - Added `deployContract`
|
1864
|
+
|
1865
|
+
## 0.0.1-alpha.12
|
1866
|
+
|
1867
|
+
### Patch Changes
|
1868
|
+
|
1869
|
+
- [`6a47671`](https://github.com/wagmi-dev/viem/commit/6a47671ce9fe01f01cb744d85ac4e12674ef5b36) Thanks [@jxom](https://github.com/jxom)! - Fixed published `package.json`.
|
1870
|
+
|
1871
|
+
## 0.0.1-alpha.11
|
1872
|
+
|
1873
|
+
### Patch Changes
|
1874
|
+
|
1875
|
+
- [#37](https://github.com/wagmi-dev/viem/pull/37) [`32e2b76`](https://github.com/wagmi-dev/viem/commit/32e2b7649697a8143e1e6f2c2080570fb6b1a80b) Thanks [@jxom](https://github.com/jxom)! - Support CJS
|
1876
|
+
|
1877
|
+
- [`43700d9`](https://github.com/wagmi-dev/viem/commit/43700d94660ee2478d867fcf4abcc0dac64f90d0) Thanks [@jxom](https://github.com/jxom)! - Fixed issue where preinstall/postinstall scripts were being published to NPM.
|
1878
|
+
|
1879
|
+
## 0.0.1-alpha.10
|
1880
|
+
|
1881
|
+
### Patch Changes
|
1882
|
+
|
1883
|
+
- [#31](https://github.com/wagmi-dev/viem/pull/31) [`1f65640`](https://github.com/wagmi-dev/viem/commit/1f65640caa44957f38f68971e9b56d8e9229031d) Thanks [@jxom](https://github.com/jxom)! - Added initial `callContract` implementation
|
1884
|
+
|
1885
|
+
## 0.0.1-alpha.9
|
1886
|
+
|
1887
|
+
### Patch Changes
|
1888
|
+
|
1889
|
+
- [`976fd86`](https://github.com/wagmi-dev/viem/commit/976fd86ed55cb1931ba619c116db2753cf72a10b) Thanks [@jxom](https://github.com/jxom)! - Added `decodeDeployData`.
|
1890
|
+
|
1891
|
+
## 0.0.1-alpha.8
|
1892
|
+
|
1893
|
+
### Patch Changes
|
1894
|
+
|
1895
|
+
- [`9120e26`](https://github.com/wagmi-dev/viem/commit/9120e26fabe5d70ef13be7bc6eabfc966e3c4a29) Thanks [@jxom](https://github.com/jxom)! - Added `encodeErrorResult`.
|
1896
|
+
|
1897
|
+
## 0.0.1-alpha.7
|
1898
|
+
|
1899
|
+
### Patch Changes
|
1900
|
+
|
1901
|
+
- [`c52ce66`](https://github.com/wagmi-dev/viem/commit/c52ce660d62f3d44499ea13b88a883b76dd5fe08) Thanks [@jxom](https://github.com/jxom)! - Added `decodeErrorResult`.
|
1902
|
+
|
1903
|
+
- [`497b0b1`](https://github.com/wagmi-dev/viem/commit/497b0b1ce4c3585092fda1b6a9fd0526a0414c4d) Thanks [@jxom](https://github.com/jxom)! - Added `encodeEventTopics`.
|
1904
|
+
|
1905
|
+
## 0.0.1-alpha.6
|
1906
|
+
|
1907
|
+
### Patch Changes
|
1908
|
+
|
1909
|
+
- [`94b32ab`](https://github.com/wagmi-dev/viem/commit/94b32ab85be156bf25fd64056532edc1d4441c70) Thanks [@jxom](https://github.com/jxom)! - Added `encodeDeployData`.
|
1910
|
+
|
1911
|
+
## 0.0.1-alpha.5
|
1912
|
+
|
1913
|
+
### Patch Changes
|
1914
|
+
|
1915
|
+
- [`ee4d256`](https://github.com/wagmi-dev/viem/commit/ee4d256a50e4312614501b15c6b5f9b7b3220be3) Thanks [@jxom](https://github.com/jxom)! - Added `encodeFunctionResult`.
|
1916
|
+
|
1917
|
+
## 0.0.1-alpha.4
|
1918
|
+
|
1919
|
+
### Patch Changes
|
1920
|
+
|
1921
|
+
- [`f2e6bb1`](https://github.com/wagmi-dev/viem/commit/f2e6bb1fee06ccd51c7b3a22accd01259daece0f) Thanks [@jxom](https://github.com/jxom)! - Added `decodeFunctionResult`.
|
1922
|
+
|
1923
|
+
## 0.0.1-alpha.3
|
1924
|
+
|
1925
|
+
### Patch Changes
|
1926
|
+
|
1927
|
+
- [`849653f`](https://github.com/wagmi-dev/viem/commit/849653f246422c75487c141e94509920563f6706) Thanks [@jxom](https://github.com/jxom)! - - **Breaking**: Renamed `encodeFunctionParams` to `encodeFunctionData`.
|
1928
|
+
- Added `decodeFunctionData`.
|
1929
|
+
|
1930
|
+
## 0.0.1-alpha.2
|
1931
|
+
|
1932
|
+
### Patch Changes
|
1933
|
+
|
1934
|
+
- [#18](https://github.com/wagmi-dev/viem/pull/18) [`bb9e88a`](https://github.com/wagmi-dev/viem/commit/bb9e88a7fd1156550fe69a37d82fc67f2f63439b) Thanks [@jxom](https://github.com/jxom)! - Added `encodeFunctionParams`.
|
1935
|
+
|
1936
|
+
## 0.0.1-alpha.1
|
1937
|
+
|
1938
|
+
### Patch Changes
|
1939
|
+
|
1940
|
+
- [`d722728`](https://github.com/wagmi-dev/viem/commit/d722728e8d54065b5f9882ec6146c194de4b3c62) Thanks [@jxom](https://github.com/jxom)! - - **Breaking**: Renamed `ethereumProvider` Transport to `custom`.
|
1941
|
+
- **Breaking**: Refactored Transport APIs.
|
1942
|
+
- **Breaking**: Flattened `sendTransaction`, `call` & `estimateGas` APIs.
|
1943
|
+
- Added `encodeAbi` & `decodeAbi`.
|
1944
|
+
- Added `fallback` Transport.
|
1945
|
+
- Added `getFilterLogs`.
|