viem 0.0.0-main.20231128T200450 → 0.0.0-main.20231129T002804

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.
Files changed (74) hide show
  1. package/CHANGELOG.md +407 -407
  2. package/README.md +47 -47
  3. package/_cjs/errors/version.js +1 -1
  4. package/_esm/actions/ens/getEnsAddress.js +2 -2
  5. package/_esm/actions/ens/getEnsAvatar.js +2 -2
  6. package/_esm/actions/ens/getEnsName.js +2 -2
  7. package/_esm/actions/ens/getEnsResolver.js +2 -2
  8. package/_esm/actions/ens/getEnsText.js +3 -3
  9. package/_esm/actions/public/getBlock.js +1 -1
  10. package/_esm/actions/public/getBlockNumber.js +1 -1
  11. package/_esm/actions/public/getLogs.js +1 -1
  12. package/_esm/actions/public/getTransaction.js +1 -1
  13. package/_esm/actions/public/getTransactionConfirmations.js +1 -1
  14. package/_esm/actions/public/getTransactionReceipt.js +1 -1
  15. package/_esm/actions/public/readContract.js +1 -1
  16. package/_esm/actions/public/simulateContract.js +1 -1
  17. package/_esm/actions/public/waitForTransactionReceipt.js +1 -1
  18. package/_esm/actions/public/watchBlockNumber.js +1 -1
  19. package/_esm/actions/public/watchBlocks.js +1 -1
  20. package/_esm/actions/wallet/deployContract.js +1 -1
  21. package/_esm/actions/wallet/sendTransaction.js +1 -1
  22. package/_esm/actions/wallet/writeContract.js +1 -1
  23. package/_esm/errors/version.js +1 -1
  24. package/_esm/utils/ens/namehash.js +1 -1
  25. package/_esm/utils/ens/normalize.js +2 -2
  26. package/_types/actions/ens/getEnsAddress.d.ts +2 -2
  27. package/_types/actions/ens/getEnsAvatar.d.ts +2 -2
  28. package/_types/actions/ens/getEnsName.d.ts +2 -2
  29. package/_types/actions/ens/getEnsResolver.d.ts +2 -2
  30. package/_types/actions/ens/getEnsText.d.ts +3 -3
  31. package/_types/actions/public/getBlock.d.ts +1 -1
  32. package/_types/actions/public/getBlockNumber.d.ts +1 -1
  33. package/_types/actions/public/getLogs.d.ts +1 -1
  34. package/_types/actions/public/getTransaction.d.ts +1 -1
  35. package/_types/actions/public/getTransactionConfirmations.d.ts +1 -1
  36. package/_types/actions/public/getTransactionReceipt.d.ts +1 -1
  37. package/_types/actions/public/readContract.d.ts +1 -1
  38. package/_types/actions/public/simulateContract.d.ts +1 -1
  39. package/_types/actions/public/waitForTransactionReceipt.d.ts +1 -1
  40. package/_types/actions/public/watchBlockNumber.d.ts +1 -1
  41. package/_types/actions/public/watchBlocks.d.ts +1 -1
  42. package/_types/actions/wallet/deployContract.d.ts +1 -1
  43. package/_types/actions/wallet/sendTransaction.d.ts +1 -1
  44. package/_types/actions/wallet/writeContract.d.ts +1 -1
  45. package/_types/clients/decorators/public.d.ts +22 -22
  46. package/_types/clients/decorators/wallet.d.ts +3 -3
  47. package/_types/errors/version.d.ts +1 -1
  48. package/_types/utils/ens/namehash.d.ts +1 -1
  49. package/_types/utils/ens/normalize.d.ts +2 -2
  50. package/actions/ens/getEnsAddress.ts +2 -2
  51. package/actions/ens/getEnsAvatar.ts +2 -2
  52. package/actions/ens/getEnsName.ts +2 -2
  53. package/actions/ens/getEnsResolver.ts +2 -2
  54. package/actions/ens/getEnsText.ts +3 -3
  55. package/actions/public/getBlock.ts +1 -1
  56. package/actions/public/getBlockNumber.ts +1 -1
  57. package/actions/public/getLogs.ts +1 -1
  58. package/actions/public/getTransaction.ts +1 -1
  59. package/actions/public/getTransactionConfirmations.ts +1 -1
  60. package/actions/public/getTransactionReceipt.ts +1 -1
  61. package/actions/public/readContract.ts +1 -1
  62. package/actions/public/simulateContract.ts +1 -1
  63. package/actions/public/waitForTransactionReceipt.ts +1 -1
  64. package/actions/public/watchBlockNumber.ts +1 -1
  65. package/actions/public/watchBlocks.ts +1 -1
  66. package/actions/wallet/deployContract.ts +1 -1
  67. package/actions/wallet/sendTransaction.ts +1 -1
  68. package/actions/wallet/writeContract.ts +1 -1
  69. package/clients/decorators/public.ts +22 -22
  70. package/clients/decorators/wallet.ts +3 -3
  71. package/errors/version.ts +1 -1
  72. package/package.json +3 -3
  73. package/utils/ens/namehash.ts +1 -1
  74. package/utils/ens/normalize.ts +2 -2
package/README.md CHANGED
@@ -3,8 +3,8 @@
3
3
  <p align="center">
4
4
  <a href="https://viem.sh">
5
5
  <picture>
6
- <source media="(prefers-color-scheme: dark)" srcset="https://github.com/weth/viem/blob/main/.github/gh-logo-dark.svg">
7
- <img alt="viem logo" src="https://github.com/weth/viem/blob/main/.github/gh-logo-light.svg" width="auto" height="60">
6
+ <source media="(prefers-color-scheme: dark)" srcset="https://github.com/wevm/viem/blob/main/.github/gh-logo-dark.svg">
7
+ <img alt="viem logo" src="https://github.com/wevm/viem/blob/main/.github/gh-logo-light.svg" width="auto" height="60">
8
8
  </picture>
9
9
  </a>
10
10
  </p>
@@ -20,13 +20,13 @@
20
20
  <img src="https://img.shields.io/npm/v/viem?colorA=f6f8fa&colorB=f6f8fa&style=flat" alt="Version">
21
21
  </picture>
22
22
  </a>
23
- <a href="https://app.codecov.io/gh/weth/viem">
23
+ <a href="https://app.codecov.io/gh/wevm/viem">
24
24
  <picture>
25
- <source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/codecov/c/github/weth/viem?colorA=21262d&colorB=21262d&style=flat">
26
- <img src="https://img.shields.io/codecov/c/github/weth/viem?colorA=f6f8fa&colorB=f6f8fa&style=flat" alt="Code coverage">
25
+ <source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/codecov/c/github/wevm/viem?colorA=21262d&colorB=21262d&style=flat">
26
+ <img src="https://img.shields.io/codecov/c/github/wevm/viem?colorA=f6f8fa&colorB=f6f8fa&style=flat" alt="Code coverage">
27
27
  </picture>
28
28
  </a>
29
- <a href="https://github.com/weth/viem/blob/main/LICENSE">
29
+ <a href="https://github.com/wevm/viem/blob/main/LICENSE">
30
30
  <picture>
31
31
  <source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/npm/l/viem?colorA=21262d&colorB=21262d&style=flat">
32
32
  <img src="https://img.shields.io/npm/l/viem?colorA=f6f8fa&colorB=f6f8fa&style=flat" alt="MIT License">
@@ -40,8 +40,8 @@
40
40
  </a>
41
41
  <a href="https://bestofjs.org/projects/viem">
42
42
  <picture>
43
- <source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/endpoint?colorA=21262d&colorB=21262d&style=flat&url=https://bestofjs-serverless.now.sh/api/project-badge?fullName=weth%2Fviem%26since=daily">
44
- <img src="https://img.shields.io/endpoint?colorA=f6f8fa&colorB=f6f8fa&style=flat&url=https://bestofjs-serverless.now.sh/api/project-badge?fullName=weth%2Fviem%26since=daily" alt="Best of JS">
43
+ <source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/endpoint?colorA=21262d&colorB=21262d&style=flat&url=https://bestofjs-serverless.now.sh/api/project-badge?fullName=wevm%2Fviem%26since=daily">
44
+ <img src="https://img.shields.io/endpoint?colorA=f6f8fa&colorB=f6f8fa&style=flat&url=https://bestofjs-serverless.now.sh/api/project-badge?fullName=wevm%2Fviem%26since=daily" alt="Best of JS">
45
45
  </picture>
46
46
  </a>
47
47
  </p>
@@ -87,22 +87,22 @@ const blockNumber = await client.getBlockNumber();
87
87
 
88
88
  Check out the following places for more viem-related content:
89
89
 
90
- - Follow [@weth_dev](https://twitter.com/weth_dev), [@jakemoxey](https://twitter.com/jakemoxey), and [@awkweb](https://twitter.com/awkweb) on Twitter for project updates
91
- - Join the [discussions on GitHub](https://github.com/weth/viem/discussions)
92
- - [Share your project/organization](https://github.com/weth/viem/discussions/104) that uses viem
90
+ - Follow [@wagmi_sh](https://twitter.com/wagmi_sh), [@jakemoxey](https://twitter.com/jakemoxey), and [@awkweb](https://twitter.com/awkweb) on Twitter for project updates
91
+ - Join the [discussions on GitHub](https://github.com/wevm/viem/discussions)
92
+ - [Share your project/organization](https://github.com/wevm/viem/discussions/104) that uses viem
93
93
 
94
94
  ## Support
95
95
 
96
- - [GitHub Sponsors](https://github.com/sponsors/weth?metadata_campaign=docs_support)
96
+ - [GitHub Sponsors](https://github.com/sponsors/wevm?metadata_campaign=docs_support)
97
97
  - [Gitcoin Grant](https://wagmi.sh/gitcoin)
98
- - [weth.eth](https://etherscan.io/enslookup-search?search=weth.eth)
98
+ - [wevm.eth](https://etherscan.io/enslookup-search?search=wevm.eth)
99
99
 
100
100
  ## Sponsors
101
101
 
102
102
  <a href="https://paradigm.xyz">
103
103
  <picture>
104
- <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/weth/.github/main/content/sponsors/paradigm-dark.svg">
105
- <img alt="paradigm logo" src="https://raw.githubusercontent.com/weth/.github/main/content/sponsors/paradigm-light.svg" width="auto" height="70">
104
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/paradigm-dark.svg">
105
+ <img alt="paradigm logo" src="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/paradigm-light.svg" width="auto" height="70">
106
106
  </picture>
107
107
  </a>
108
108
 
@@ -110,98 +110,98 @@ Check out the following places for more viem-related content:
110
110
 
111
111
  <a href="https://twitter.com/family">
112
112
  <picture>
113
- <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/weth/.github/main/content/sponsors/family-dark.svg">
114
- <img alt="family logo" src="https://raw.githubusercontent.com/weth/.github/main/content/sponsors/family-light.svg" width="auto" height="50">
113
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/family-dark.svg">
114
+ <img alt="family logo" src="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/family-light.svg" width="auto" height="50">
115
115
  </picture>
116
116
  </a>
117
117
  <a href="https://twitter.com/context">
118
118
  <picture>
119
- <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/weth/.github/main/content/sponsors/context-dark.svg">
120
- <img alt="context logo" src="https://raw.githubusercontent.com/weth/.github/main/content/sponsors/context-light.svg" width="auto" height="50">
119
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/context-dark.svg">
120
+ <img alt="context logo" src="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/context-light.svg" width="auto" height="50">
121
121
  </picture>
122
122
  </a>
123
123
  <a href="https://walletconnect.com">
124
124
  <picture>
125
- <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/weth/.github/main/content/sponsors/walletconnect-dark.svg">
126
- <img alt="WalletConnect logo" src="https://raw.githubusercontent.com/weth/.github/main/content/sponsors/walletconnect-light.svg" width="auto" height="50">
125
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/walletconnect-dark.svg">
126
+ <img alt="WalletConnect logo" src="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/walletconnect-light.svg" width="auto" height="50">
127
127
  </picture>
128
128
  </a>
129
129
  <a href="https://looksrare.org">
130
130
  <picture>
131
- <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/weth/.github/main/content/sponsors/looksrare-dark.svg">
132
- <img alt="LooksRare logo" src="https://raw.githubusercontent.com/weth/.github/8923685e23fe9708b74d456c3f9e7a2b90f6abd9/content/sponsors/looksrare-light.svg" width="auto" height="50">
131
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/looksrare-dark.svg">
132
+ <img alt="LooksRare logo" src="https://raw.githubusercontent.com/wevm/.github/8923685e23fe9708b74d456c3f9e7a2b90f6abd9/content/sponsors/looksrare-light.svg" width="auto" height="50">
133
133
  </picture>
134
134
  </a>
135
135
  <a href="https://twitter.com/prtyDAO">
136
136
  <picture>
137
- <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/weth/.github/main/content/sponsors/partydao-dark.svg">
138
- <img alt="PartyDAO logo" src="https://raw.githubusercontent.com/weth/.github/main/content/sponsors/partydao-light.svg" width="auto" height="50">
137
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/partydao-dark.svg">
138
+ <img alt="PartyDAO logo" src="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/partydao-light.svg" width="auto" height="50">
139
139
  </picture>
140
140
  </a>
141
141
  <a href="https://dynamic.xyz">
142
142
  <picture>
143
- <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/weth/.github/main/content/sponsors/dynamic-dark.svg">
144
- <img alt="Dynamic logo" src="https://raw.githubusercontent.com/weth/.github/main/content/sponsors/dynamic-light.svg" width="auto" height="50">
143
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/dynamic-dark.svg">
144
+ <img alt="Dynamic logo" src="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/dynamic-light.svg" width="auto" height="50">
145
145
  </picture>
146
146
  </a>
147
147
  <a href="https://sushi.com">
148
148
  <picture>
149
- <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/weth/.github/main/content/sponsors/sushi-dark.svg">
150
- <img alt="Sushi logo" src="https://raw.githubusercontent.com/weth/.github/main/content/sponsors/sushi-light.svg" width="auto" height="50">
149
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/sushi-dark.svg">
150
+ <img alt="Sushi logo" src="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/sushi-light.svg" width="auto" height="50">
151
151
  </picture>
152
152
  </a>
153
153
  <a href="https://stripe.com">
154
154
  <picture>
155
- <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/weth/.github/main/content/sponsors/stripe-dark.svg">
156
- <img alt="Stripe logo" src="https://raw.githubusercontent.com/weth/.github/main/content/sponsors/stripe-light.svg" width="auto" height="50">
155
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/stripe-dark.svg">
156
+ <img alt="Stripe logo" src="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/stripe-light.svg" width="auto" height="50">
157
157
  </picture>
158
158
  </a>
159
159
  <a href="https://bitkeep.com">
160
160
  <picture>
161
- <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/weth/.github/main/content/sponsors/bitkeep-dark.svg">
162
- <img alt="BitKeep logo" src="https://raw.githubusercontent.com/weth/.github/main/content/sponsors/bitkeep-light.svg" width="auto" height="50">
161
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/bitkeep-dark.svg">
162
+ <img alt="BitKeep logo" src="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/bitkeep-light.svg" width="auto" height="50">
163
163
  </picture>
164
164
  </a>
165
165
  <a href="https://privy.io">
166
166
  <picture>
167
- <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/weth/.github/main/content/sponsors/privy-dark.svg">
168
- <img alt="Privy logo" src="https://raw.githubusercontent.com/weth/.github/main/content/sponsors/privy-light.svg" width="auto" height="50">
167
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/privy-dark.svg">
168
+ <img alt="Privy logo" src="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/privy-light.svg" width="auto" height="50">
169
169
  </picture>
170
170
  </a>
171
171
  <a href="https://spruceid.com">
172
172
  <picture>
173
- <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/weth/.github/main/content/sponsors/spruce-dark.svg">
174
- <img alt="Spruce logo" src="https://raw.githubusercontent.com/weth/.github/main/content/sponsors/spruce-light.svg" width="auto" height="50">
173
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/spruce-dark.svg">
174
+ <img alt="Spruce logo" src="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/spruce-light.svg" width="auto" height="50">
175
175
  </picture>
176
176
  </a>
177
177
  <a href="https://rollup.id">
178
178
  <picture>
179
- <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/weth/.github/main/content/sponsors/rollup.id-dark.svg">
180
- <img alt="rollup.id logo" src="https://raw.githubusercontent.com/weth/.github/main/content/sponsors/rollup.id-light.svg" width="auto" height="50">
179
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/rollup.id-dark.svg">
180
+ <img alt="rollup.id logo" src="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/rollup.id-light.svg" width="auto" height="50">
181
181
  </picture>
182
182
  </a>
183
183
  <a href="https://pancakeswap.finance/">
184
184
  <picture>
185
- <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/weth/.github/main/content/sponsors/pancake-dark.svg">
186
- <img alt="pancake logo" src="https://raw.githubusercontent.com/weth/.github/main/content/sponsors/pancake-light.svg" width="auto" height="50">
185
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/pancake-dark.svg">
186
+ <img alt="pancake logo" src="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/pancake-light.svg" width="auto" height="50">
187
187
  </picture>
188
188
  </a>
189
189
  <a href="https://celo.org/">
190
190
  <picture>
191
- <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/weth/.github/main/content/sponsors/celo-dark.svg">
192
- <img alt="celo logo" src="https://raw.githubusercontent.com/weth/.github/main/content/sponsors/celo-light.svg" width="auto" height="50">
191
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/celo-dark.svg">
192
+ <img alt="celo logo" src="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/celo-light.svg" width="auto" height="50">
193
193
  </picture>
194
194
  </a>
195
195
  <a href="https://pimlico.io/">
196
196
  <picture>
197
- <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/weth/.github/main/content/sponsors/pimlico-dark.svg">
198
- <img alt="pimlico logo" src="https://raw.githubusercontent.com/weth/.github/main/content/sponsors/pimlico-light.svg" width="auto" height="50">
197
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/pimlico-dark.svg">
198
+ <img alt="pimlico logo" src="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/pimlico-light.svg" width="auto" height="50">
199
199
  </picture>
200
200
  </a>
201
201
  <a href="https://zora.co/">
202
202
  <picture>
203
- <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/weth/.github/main/content/sponsors/zora-dark.svg">
204
- <img alt="zora logo" src="https://raw.githubusercontent.com/weth/.github/main/content/sponsors/zora-light.svg" width="auto" height="50">
203
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/zora-dark.svg">
204
+ <img alt="zora logo" src="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/zora-light.svg" width="auto" height="50">
205
205
  </picture>
206
206
  </a>
207
207
 
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
- exports.version = '0.0.0-main.20231128T200450';
4
+ exports.version = '0.0.0-main.20231129T002804';
5
5
  //# sourceMappingURL=version.js.map
@@ -13,7 +13,7 @@ import { readContract, } from '../public/readContract.js';
13
13
  * Gets address for ENS name.
14
14
  *
15
15
  * - Docs: https://viem.sh/docs/ens/actions/getEnsAddress.html
16
- * - Examples: https://stackblitz.com/github/weth/viem/tree/main/examples/ens
16
+ * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/ens
17
17
  *
18
18
  * Calls `resolve(bytes, bytes)` on ENS Universal Resolver Contract.
19
19
  *
@@ -33,7 +33,7 @@ import { readContract, } from '../public/readContract.js';
33
33
  * transport: http(),
34
34
  * })
35
35
  * const ensAddress = await getEnsAddress(client, {
36
- * name: normalize('weth.eth'),
36
+ * name: normalize('wevm.eth'),
37
37
  * })
38
38
  * // '0xd2135CfB216b74109775236E36d4b433F1DF507B'
39
39
  */
@@ -5,7 +5,7 @@ import { getEnsText, } from './getEnsText.js';
5
5
  * Gets the avatar of an ENS name.
6
6
  *
7
7
  * - Docs: https://viem.sh/docs/ens/actions/getEnsAvatar.html
8
- * - Examples: https://stackblitz.com/github/weth/viem/tree/main/examples/ens
8
+ * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/ens
9
9
  *
10
10
  * Calls [`getEnsText`](https://viem.sh/docs/ens/actions/getEnsText.html) with `key` set to `'avatar'`.
11
11
  *
@@ -25,7 +25,7 @@ import { getEnsText, } from './getEnsText.js';
25
25
  * transport: http(),
26
26
  * })
27
27
  * const ensAvatar = await getEnsAvatar(client, {
28
- * name: normalize('weth.eth'),
28
+ * name: normalize('wevm.eth'),
29
29
  * })
30
30
  * // 'https://ipfs.io/ipfs/Qma8mnp6xV3J2cRNf3mTth5C8nV11CAnceVinc3y8jSbio'
31
31
  */
@@ -9,7 +9,7 @@ import { readContract, } from '../public/readContract.js';
9
9
  * Gets primary name for specified address.
10
10
  *
11
11
  * - Docs: https://viem.sh/docs/ens/actions/getEnsName.html
12
- * - Examples: https://stackblitz.com/github/weth/viem/tree/main/examples/ens
12
+ * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/ens
13
13
  *
14
14
  * Calls `reverse(bytes)` on ENS Universal Resolver Contract to "reverse resolve" the address to the primary ENS name.
15
15
  *
@@ -29,7 +29,7 @@ import { readContract, } from '../public/readContract.js';
29
29
  * const ensName = await getEnsName(client, {
30
30
  * address: '0xd2135CfB216b74109775236E36d4b433F1DF507B',
31
31
  * })
32
- * // 'weth.eth'
32
+ * // 'wevm.eth'
33
33
  */
34
34
  export async function getEnsName(client, { address, blockNumber, blockTag, universalResolverAddress: universalResolverAddress_, }) {
35
35
  let universalResolverAddress = universalResolverAddress_;
@@ -7,7 +7,7 @@ import { readContract, } from '../public/readContract.js';
7
7
  * Gets resolver for ENS name.
8
8
  *
9
9
  * - Docs: https://viem.sh/docs/ens/actions/getEnsResolver.html
10
- * - Examples: https://stackblitz.com/github/weth/viem/tree/main/examples/ens
10
+ * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/ens
11
11
  *
12
12
  * Calls `findResolver(bytes)` on ENS Universal Resolver Contract to retrieve the resolver of an ENS name.
13
13
  *
@@ -27,7 +27,7 @@ import { readContract, } from '../public/readContract.js';
27
27
  * transport: http(),
28
28
  * })
29
29
  * const resolverAddress = await getEnsResolver(client, {
30
- * name: normalize('weth.eth'),
30
+ * name: normalize('wevm.eth'),
31
31
  * })
32
32
  * // '0x4976fb03C32e5B8cfe2b6cCB31c09Ba78EBaBa41'
33
33
  */
@@ -12,7 +12,7 @@ import { readContract, } from '../public/readContract.js';
12
12
  * Gets a text record for specified ENS name.
13
13
  *
14
14
  * - Docs: https://viem.sh/docs/ens/actions/getEnsResolver.html
15
- * - Examples: https://stackblitz.com/github/weth/viem/tree/main/examples/ens
15
+ * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/ens
16
16
  *
17
17
  * Calls `resolve(bytes, bytes)` on ENS Universal Resolver Contract.
18
18
  *
@@ -32,10 +32,10 @@ import { readContract, } from '../public/readContract.js';
32
32
  * transport: http(),
33
33
  * })
34
34
  * const twitterRecord = await getEnsText(client, {
35
- * name: normalize('weth.eth'),
35
+ * name: normalize('wevm.eth'),
36
36
  * key: 'com.twitter',
37
37
  * })
38
- * // 'weth_dev'
38
+ * // 'wagmi_sh'
39
39
  */
40
40
  export async function getEnsText(client, { blockNumber, blockTag, name, key, universalResolverAddress: universalResolverAddress_, }) {
41
41
  let universalResolverAddress = universalResolverAddress_;
@@ -5,7 +5,7 @@ import { formatBlock, } from '../../utils/formatters/block.js';
5
5
  * Returns information about a block at a block number, hash, or tag.
6
6
  *
7
7
  * - Docs: https://viem.sh/docs/actions/public/getBlock.html
8
- * - Examples: https://stackblitz.com/github/weth/viem/tree/main/examples/blocks/fetching-blocks
8
+ * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/blocks/fetching-blocks
9
9
  * - JSON-RPC Methods:
10
10
  * - Calls [`eth_getBlockByNumber`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getblockbynumber) for `blockNumber` & `blockTag`.
11
11
  * - Calls [`eth_getBlockByHash`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getblockbyhash) for `blockHash`.
@@ -7,7 +7,7 @@ export function getBlockNumberCache(id) {
7
7
  * Returns the number of the most recent block seen.
8
8
  *
9
9
  * - Docs: https://viem.sh/docs/actions/public/getBlockNumber.html
10
- * - Examples: https://stackblitz.com/github/weth/viem/tree/main/examples/blocks/fetching-blocks
10
+ * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/blocks/fetching-blocks
11
11
  * - JSON-RPC Methods: [`eth_blockNumber`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_blocknumber)
12
12
  *
13
13
  * @param client - Client to use
@@ -7,7 +7,7 @@ import { formatLog, } from '../../utils/formatters/log.js';
7
7
  * Returns a list of event logs matching the provided parameters.
8
8
  *
9
9
  * - Docs: https://viem.sh/docs/actions/public/getLogs.html
10
- * - Examples: https://stackblitz.com/github/weth/viem/tree/main/examples/filters-and-logs/event-logs
10
+ * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/filters-and-logs/event-logs
11
11
  * - JSON-RPC Methods: [`eth_getLogs`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getlogs)
12
12
  *
13
13
  * @param client - Client to use
@@ -5,7 +5,7 @@ import { formatTransaction, } from '../../utils/formatters/transaction.js';
5
5
  * Returns information about a [Transaction](https://viem.sh/docs/glossary/terms.html#transaction) given a hash or block identifier.
6
6
  *
7
7
  * - Docs: https://viem.sh/docs/actions/public/getTransaction.html
8
- * - Example: https://stackblitz.com/github/weth/viem/tree/main/examples/transactions/fetching-transactions
8
+ * - Example: https://stackblitz.com/github/wevm/viem/tree/main/examples/transactions/fetching-transactions
9
9
  * - JSON-RPC Methods: [`eth_getTransactionByHash`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getTransactionByHash)
10
10
  *
11
11
  * @param client - Client to use
@@ -5,7 +5,7 @@ import { getTransaction, } from './getTransaction.js';
5
5
  * Returns the number of blocks passed (confirmations) since the transaction was processed on a block.
6
6
  *
7
7
  * - Docs: https://viem.sh/docs/actions/public/getTransactionConfirmations.html
8
- * - Example: https://stackblitz.com/github/weth/viem/tree/main/examples/transactions/fetching-transactions
8
+ * - Example: https://stackblitz.com/github/wevm/viem/tree/main/examples/transactions/fetching-transactions
9
9
  * - JSON-RPC Methods: [`eth_getTransactionConfirmations`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getTransactionConfirmations)
10
10
  *
11
11
  * @param client - Client to use
@@ -4,7 +4,7 @@ import { formatTransactionReceipt, } from '../../utils/formatters/transactionRec
4
4
  * Returns the [Transaction Receipt](https://viem.sh/docs/glossary/terms.html#transaction-receipt) given a [Transaction](https://viem.sh/docs/glossary/terms.html#transaction) hash.
5
5
  *
6
6
  * - Docs: https://viem.sh/docs/actions/public/getTransactionReceipt.html
7
- * - Example: https://stackblitz.com/github/weth/viem/tree/main/examples/transactions/fetching-transactions
7
+ * - Example: https://stackblitz.com/github/wevm/viem/tree/main/examples/transactions/fetching-transactions
8
8
  * - JSON-RPC Methods: [`eth_getTransactionReceipt`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_gettransactionreceipt)
9
9
  *
10
10
  * @param client - Client to use
@@ -7,7 +7,7 @@ import { call } from './call.js';
7
7
  * Calls a read-only function on a contract, and returns the response.
8
8
  *
9
9
  * - Docs: https://viem.sh/docs/contract/readContract.html
10
- * - Examples: https://stackblitz.com/github/weth/viem/tree/main/examples/contracts/reading-contracts
10
+ * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/contracts/reading-contracts
11
11
  *
12
12
  * A "read-only" function (constant function) on a Solidity contract is denoted by a `view` or `pure` keyword. They can only read the state of the contract, and cannot make any changes to it. Since read-only methods do not change the state of the contract, they do not require any gas to be executed, and can be called by any user without the need to pay for gas.
13
13
  *
@@ -8,7 +8,7 @@ import { call } from './call.js';
8
8
  * Simulates/validates a contract interaction. This is useful for retrieving **return data** and **revert reasons** of contract write functions.
9
9
  *
10
10
  * - Docs: https://viem.sh/docs/contract/simulateContract.html
11
- * - Examples: https://stackblitz.com/github/weth/viem/tree/main/examples/contracts/writing-to-contracts
11
+ * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/contracts/writing-to-contracts
12
12
  *
13
13
  * This function does not require gas to execute and _**does not**_ change the state of the blockchain. It is almost identical to [`readContract`](https://viem.sh/docs/contract/readContract.html), but also supports contract write functions.
14
14
  *
@@ -11,7 +11,7 @@ import { watchBlockNumber, } from './watchBlockNumber.js';
11
11
  * Waits for the [Transaction](https://viem.sh/docs/glossary/terms.html#transaction) to be included on a [Block](https://viem.sh/docs/glossary/terms.html#block) (one confirmation), and then returns the [Transaction Receipt](https://viem.sh/docs/glossary/terms.html#transaction-receipt). If the Transaction reverts, then the action will throw an error.
12
12
  *
13
13
  * - Docs: https://viem.sh/docs/actions/public/waitForTransactionReceipt.html
14
- * - Example: https://stackblitz.com/github/weth/viem/tree/main/examples/transactions/sending-transactions
14
+ * - Example: https://stackblitz.com/github/wevm/viem/tree/main/examples/transactions/sending-transactions
15
15
  * - JSON-RPC Methods:
16
16
  * - Polls [`eth_getTransactionReceipt`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getTransactionReceipt) on each block until it has been processed.
17
17
  * - If a Transaction has been replaced:
@@ -8,7 +8,7 @@ import { getBlockNumber, } from './getBlockNumber.js';
8
8
  * Watches and returns incoming block numbers.
9
9
  *
10
10
  * - Docs: https://viem.sh/docs/actions/public/watchBlockNumber.html
11
- * - Examples: https://stackblitz.com/github/weth/viem/tree/main/examples/blocks/watching-blocks
11
+ * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/blocks/watching-blocks
12
12
  * - JSON-RPC Methods:
13
13
  * - When `poll: true`, calls [`eth_blockNumber`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_blocknumber) on a polling interval.
14
14
  * - When `poll: false` & WebSocket Transport, uses a WebSocket subscription via [`eth_subscribe`](https://docs.alchemy.com/reference/eth-subscribe-polygon) and the `"newHeads"` event.
@@ -8,7 +8,7 @@ import { getBlock } from './getBlock.js';
8
8
  * Watches and returns information for incoming blocks.
9
9
  *
10
10
  * - Docs: https://viem.sh/docs/actions/public/watchBlocks.html
11
- * - Examples: https://stackblitz.com/github/weth/viem/tree/main/examples/blocks/watching-blocks
11
+ * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/blocks/watching-blocks
12
12
  * - JSON-RPC Methods:
13
13
  * - When `poll: true`, calls [`eth_getBlockByNumber`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getBlockByNumber) on a polling interval.
14
14
  * - When `poll: false` & WebSocket Transport, uses a WebSocket subscription via [`eth_subscribe`](https://docs.alchemy.com/reference/eth-subscribe-polygon) and the `"newHeads"` event.
@@ -4,7 +4,7 @@ import { sendTransaction, } from './sendTransaction.js';
4
4
  * Deploys a contract to the network, given bytecode and constructor arguments.
5
5
  *
6
6
  * - Docs: https://viem.sh/docs/contract/deployContract.html
7
- * - Examples: https://stackblitz.com/github/weth/viem/tree/main/examples/contracts/deploying-contracts
7
+ * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/contracts/deploying-contracts
8
8
  *
9
9
  * @param client - Client to use
10
10
  * @param parameters - {@link DeployContractParameters}
@@ -13,7 +13,7 @@ import { sendRawTransaction, } from './sendRawTransaction.js';
13
13
  * Creates, signs, and sends a new transaction to the network.
14
14
  *
15
15
  * - Docs: https://viem.sh/docs/actions/wallet/sendTransaction.html
16
- * - Examples: https://stackblitz.com/github/weth/viem/tree/main/examples/transactions/sending-transactions
16
+ * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/transactions/sending-transactions
17
17
  * - JSON-RPC Methods:
18
18
  * - JSON-RPC Accounts: [`eth_sendTransaction`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sendtransaction)
19
19
  * - Local Accounts: [`eth_sendRawTransaction`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sendrawtransaction)
@@ -5,7 +5,7 @@ import { sendTransaction, } from './sendTransaction.js';
5
5
  * Executes a write function on a contract.
6
6
  *
7
7
  * - Docs: https://viem.sh/docs/contract/writeContract.html
8
- * - Examples: https://stackblitz.com/github/weth/viem/tree/main/examples/contracts/writing-to-contracts
8
+ * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/contracts/writing-to-contracts
9
9
  *
10
10
  * A "write" function on a Solidity contract modifies the state of the blockchain. These types of functions require gas to be executed, and hence a [Transaction](https://viem.sh/docs/glossary/terms.html) is needed to be broadcast in order to change the state.
11
11
  *
@@ -1,2 +1,2 @@
1
- export const version = '0.0.0-main.20231128T200450';
1
+ export const version = '0.0.0-main.20231129T002804';
2
2
  //# sourceMappingURL=version.js.map
@@ -9,7 +9,7 @@ import { encodedLabelToLabelhash, } from './encodedLabelToLabelhash.js';
9
9
  * - Since ENS names prohibit certain forbidden characters (e.g. underscore) and have other validation rules, you likely want to [normalize ENS names](https://docs.ens.domains/contract-api-reference/name-processing#normalising-names) with [UTS-46 normalization](https://unicode.org/reports/tr46) before passing them to `namehash`. You can use the built-in [`normalize`](https://viem.sh/docs/ens/utilities/normalize.html) function for this.
10
10
  *
11
11
  * @example
12
- * namehash('weth.eth')
12
+ * namehash('wevm.eth')
13
13
  * '0xf246651c1b9a6b141d19c2604e9a58f567973833990f830d882534a747801359'
14
14
  *
15
15
  * @link https://eips.ethereum.org/EIPS/eip-137
@@ -3,8 +3,8 @@ import { ens_normalize } from '@adraffy/ens-normalize';
3
3
  * @description Normalizes ENS name according to ENSIP-15.
4
4
  *
5
5
  * @example
6
- * normalize('weth.eth')
7
- * 'weth.eth'
6
+ * normalize('wevm.eth')
7
+ * 'wevm.eth'
8
8
  *
9
9
  * @see https://docs.ens.domains/contract-api-reference/name-processing#normalising-names
10
10
  * @see https://github.com/ensdomains/docs/blob/9edf9443de4333a0ea7ec658a870672d5d180d53/ens-improvement-proposals/ensip-15-normalization-standard.md
@@ -26,7 +26,7 @@ export type GetEnsAddressErrorType = GetChainContractAddressErrorType | EncodeFu
26
26
  * Gets address for ENS name.
27
27
  *
28
28
  * - Docs: https://viem.sh/docs/ens/actions/getEnsAddress.html
29
- * - Examples: https://stackblitz.com/github/weth/viem/tree/main/examples/ens
29
+ * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/ens
30
30
  *
31
31
  * Calls `resolve(bytes, bytes)` on ENS Universal Resolver Contract.
32
32
  *
@@ -46,7 +46,7 @@ export type GetEnsAddressErrorType = GetChainContractAddressErrorType | EncodeFu
46
46
  * transport: http(),
47
47
  * })
48
48
  * const ensAddress = await getEnsAddress(client, {
49
- * name: normalize('weth.eth'),
49
+ * name: normalize('wevm.eth'),
50
50
  * })
51
51
  * // '0xd2135CfB216b74109775236E36d4b433F1DF507B'
52
52
  */
@@ -16,7 +16,7 @@ export type GetEnsAvatarErrorType = GetEnsTextErrorType | ParseAvatarRecordError
16
16
  * Gets the avatar of an ENS name.
17
17
  *
18
18
  * - Docs: https://viem.sh/docs/ens/actions/getEnsAvatar.html
19
- * - Examples: https://stackblitz.com/github/weth/viem/tree/main/examples/ens
19
+ * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/ens
20
20
  *
21
21
  * Calls [`getEnsText`](https://viem.sh/docs/ens/actions/getEnsText.html) with `key` set to `'avatar'`.
22
22
  *
@@ -36,7 +36,7 @@ export type GetEnsAvatarErrorType = GetEnsTextErrorType | ParseAvatarRecordError
36
36
  * transport: http(),
37
37
  * })
38
38
  * const ensAvatar = await getEnsAvatar(client, {
39
- * name: normalize('weth.eth'),
39
+ * name: normalize('wevm.eth'),
40
40
  * })
41
41
  * // 'https://ipfs.io/ipfs/Qma8mnp6xV3J2cRNf3mTth5C8nV11CAnceVinc3y8jSbio'
42
42
  */
@@ -20,7 +20,7 @@ export type GetEnsNameErrorType = GetChainContractAddressErrorType | ReadContrac
20
20
  * Gets primary name for specified address.
21
21
  *
22
22
  * - Docs: https://viem.sh/docs/ens/actions/getEnsName.html
23
- * - Examples: https://stackblitz.com/github/weth/viem/tree/main/examples/ens
23
+ * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/ens
24
24
  *
25
25
  * Calls `reverse(bytes)` on ENS Universal Resolver Contract to "reverse resolve" the address to the primary ENS name.
26
26
  *
@@ -40,7 +40,7 @@ export type GetEnsNameErrorType = GetChainContractAddressErrorType | ReadContrac
40
40
  * const ensName = await getEnsName(client, {
41
41
  * address: '0xd2135CfB216b74109775236E36d4b433F1DF507B',
42
42
  * })
43
- * // 'weth.eth'
43
+ * // 'wevm.eth'
44
44
  */
45
45
  export declare function getEnsName<TChain extends Chain | undefined>(client: Client<Transport, TChain>, { address, blockNumber, blockTag, universalResolverAddress: universalResolverAddress_, }: GetEnsNameParameters): Promise<GetEnsNameReturnType>;
46
46
  //# sourceMappingURL=getEnsName.d.ts.map
@@ -20,7 +20,7 @@ export type GetEnsResolverErrorType = GetChainContractAddressErrorType | ToHexEr
20
20
  * Gets resolver for ENS name.
21
21
  *
22
22
  * - Docs: https://viem.sh/docs/ens/actions/getEnsResolver.html
23
- * - Examples: https://stackblitz.com/github/weth/viem/tree/main/examples/ens
23
+ * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/ens
24
24
  *
25
25
  * Calls `findResolver(bytes)` on ENS Universal Resolver Contract to retrieve the resolver of an ENS name.
26
26
  *
@@ -40,7 +40,7 @@ export type GetEnsResolverErrorType = GetChainContractAddressErrorType | ToHexEr
40
40
  * transport: http(),
41
41
  * })
42
42
  * const resolverAddress = await getEnsResolver(client, {
43
- * name: normalize('weth.eth'),
43
+ * name: normalize('wevm.eth'),
44
44
  * })
45
45
  * // '0x4976fb03C32e5B8cfe2b6cCB31c09Ba78EBaBa41'
46
46
  */
@@ -24,7 +24,7 @@ export type GetEnsTextErrorType = GetChainContractAddressErrorType | ReadContrac
24
24
  * Gets a text record for specified ENS name.
25
25
  *
26
26
  * - Docs: https://viem.sh/docs/ens/actions/getEnsResolver.html
27
- * - Examples: https://stackblitz.com/github/weth/viem/tree/main/examples/ens
27
+ * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/ens
28
28
  *
29
29
  * Calls `resolve(bytes, bytes)` on ENS Universal Resolver Contract.
30
30
  *
@@ -44,10 +44,10 @@ export type GetEnsTextErrorType = GetChainContractAddressErrorType | ReadContrac
44
44
  * transport: http(),
45
45
  * })
46
46
  * const twitterRecord = await getEnsText(client, {
47
- * name: normalize('weth.eth'),
47
+ * name: normalize('wevm.eth'),
48
48
  * key: 'com.twitter',
49
49
  * })
50
- * // 'weth_dev'
50
+ * // 'wagmi_sh'
51
51
  */
52
52
  export declare function getEnsText<TChain extends Chain | undefined>(client: Client<Transport, TChain>, { blockNumber, blockTag, name, key, universalResolverAddress: universalResolverAddress_, }: GetEnsTextParameters): Promise<GetEnsTextReturnType>;
53
53
  //# sourceMappingURL=getEnsText.d.ts.map
@@ -37,7 +37,7 @@ export type GetBlockErrorType = BlockNotFoundErrorType | NumberToHexErrorType |
37
37
  * Returns information about a block at a block number, hash, or tag.
38
38
  *
39
39
  * - Docs: https://viem.sh/docs/actions/public/getBlock.html
40
- * - Examples: https://stackblitz.com/github/weth/viem/tree/main/examples/blocks/fetching-blocks
40
+ * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/blocks/fetching-blocks
41
41
  * - JSON-RPC Methods:
42
42
  * - Calls [`eth_getBlockByNumber`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getblockbynumber) for `blockNumber` & `blockTag`.
43
43
  * - Calls [`eth_getBlockByHash`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getblockbyhash) for `blockHash`.