viem 0.0.1-alpha.24 → 0.0.1-alpha.25

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 (154) hide show
  1. package/contract/package.json +4 -0
  2. package/dist/call-ac509982.d.ts +23 -0
  3. package/dist/{chain-e33d019b.d.ts → chain-c4ccb458.d.ts} +1 -1
  4. package/dist/{chain-afa13f5a.d.ts → chain-f16512e8.d.ts} +20 -1
  5. package/dist/chains.d.ts +20 -8
  6. package/dist/chains.js +46 -46
  7. package/dist/chains.mjs +1 -1
  8. package/dist/{chunk-YQUC52RL.mjs → chunk-2Y3UZMSP.mjs} +77 -84
  9. package/dist/chunk-2Y3UZMSP.mjs.map +1 -0
  10. package/dist/{chunk-A2HXAZXC.js → chunk-CD2XJOBJ.js} +135 -142
  11. package/dist/chunk-CD2XJOBJ.js.map +1 -0
  12. package/dist/{chunk-LQVMDX5I.mjs → chunk-KSAO4Y4Q.mjs} +133 -54
  13. package/dist/chunk-KSAO4Y4Q.mjs.map +1 -0
  14. package/dist/{chunk-3ARWEJ3G.mjs → chunk-LEPQJNVO.mjs} +18 -2
  15. package/dist/chunk-LEPQJNVO.mjs.map +1 -0
  16. package/dist/{chunk-ZYSXBTBB.js → chunk-NUXMGPMK.js} +30 -14
  17. package/dist/chunk-NUXMGPMK.js.map +1 -0
  18. package/dist/{chunk-4D5XG6XB.js → chunk-THMRUG4D.js} +148 -69
  19. package/dist/chunk-THMRUG4D.js.map +1 -0
  20. package/dist/{contract-70f4ddbe.d.ts → contract-9e76e561.d.ts} +44 -31
  21. package/dist/contract.d.ts +123 -0
  22. package/dist/contract.js +53 -0
  23. package/dist/{clients/index.js.map → contract.js.map} +0 -0
  24. package/dist/contract.mjs +53 -0
  25. package/dist/{clients/index.mjs.map → contract.mjs.map} +0 -0
  26. package/dist/{createClient-60e3ab98.d.ts → createClient-68ee4bb4.d.ts} +3 -3
  27. package/dist/{createPublicClient-d3d12dc3.d.ts → createPublicClient-b732194e.d.ts} +3 -3
  28. package/dist/{createTestClient-5f4532c4.d.ts → createTestClient-dedf321e.d.ts} +3 -3
  29. package/dist/{createWalletClient-9ec3df4f.d.ts → createWalletClient-75813d83.d.ts} +3 -3
  30. package/dist/decodeErrorResult-0b934d23.d.ts +16 -0
  31. package/dist/{eip1193-9317a312.d.ts → eip1193-6f9ba163.d.ts} +1 -1
  32. package/dist/ens.d.ts +82 -1
  33. package/dist/ens.js +208 -3
  34. package/dist/ens.js.map +1 -1
  35. package/dist/ens.mjs +209 -4
  36. package/dist/ens.mjs.map +1 -1
  37. package/dist/getAbiItem-c8e6e7d4.d.ts +97 -0
  38. package/dist/index.d.ts +85 -175
  39. package/dist/index.js +237 -279
  40. package/dist/index.js.map +1 -1
  41. package/dist/index.mjs +245 -287
  42. package/dist/index.mjs.map +1 -1
  43. package/dist/public.d.ts +352 -10
  44. package/dist/public.js +3 -4
  45. package/dist/public.mjs +6 -7
  46. package/dist/readContract-4f6e2692.d.ts +10 -0
  47. package/dist/rpc-a5a7f376.d.ts +121 -0
  48. package/dist/{sendTransaction-54a0d509.d.ts → sendTransaction-e713f90c.d.ts} +3 -3
  49. package/dist/test.d.ts +160 -5
  50. package/dist/test.js +222 -18
  51. package/dist/test.js.map +1 -1
  52. package/dist/test.mjs +233 -29
  53. package/dist/test.mjs.map +1 -1
  54. package/dist/transactionReceipt-2a86c7c7.d.ts +26 -0
  55. package/dist/{transactionRequest-bdf57f7d.d.ts → transactionRequest-c7794f5e.d.ts} +1 -1
  56. package/dist/utils/index.d.ts +224 -20
  57. package/dist/utils/index.js +2 -6
  58. package/dist/utils/index.mjs +3 -7
  59. package/dist/wallet.d.ts +41 -7
  60. package/dist/wallet.js +3 -3
  61. package/dist/wallet.mjs +2 -2
  62. package/dist/watchEvent-c346c12d.d.ts +41 -0
  63. package/dist/window.d.ts +2 -2
  64. package/ens/package.json +4 -0
  65. package/package.json +13 -9
  66. package/src/_test/constants.ts +2 -0
  67. package/src/_test/utils.ts +10 -5
  68. package/src/actions/ens/getEnsAddress.bench.ts +26 -0
  69. package/src/actions/ens/getEnsAddress.test.ts +97 -0
  70. package/src/actions/ens/getEnsAddress.ts +122 -0
  71. package/src/actions/ens/getEnsName.bench.ts +30 -0
  72. package/src/actions/ens/getEnsName.test.ts +101 -0
  73. package/src/actions/ens/getEnsName.ts +106 -0
  74. package/src/actions/ens/index.test.ts +12 -0
  75. package/src/actions/ens/index.ts +3 -0
  76. package/src/actions/index.ts +3 -3
  77. package/src/actions/public/createEventFilter.test.ts +36 -4
  78. package/src/actions/public/createEventFilter.ts +27 -10
  79. package/src/actions/public/getFilterChanges.test.ts +198 -4
  80. package/src/actions/public/getFilterLogs.test.ts +195 -2
  81. package/src/actions/public/getLogs.test.ts +201 -2
  82. package/src/actions/public/index.test.ts +0 -1
  83. package/src/actions/public/index.ts +1 -7
  84. package/src/actions/public/multicall.ts +8 -3
  85. package/src/actions/public/simulateContract.ts +1 -4
  86. package/src/actions/public/watchContractEvent.test.ts +4 -4
  87. package/src/actions/{public → wallet}/deployContract.test.ts +1 -2
  88. package/src/actions/{public → wallet}/deployContract.ts +0 -0
  89. package/src/actions/wallet/index.test.ts +1 -0
  90. package/src/actions/wallet/index.ts +6 -0
  91. package/src/chains.test.ts +44 -1517
  92. package/src/clients/transports/webSocket.test.ts +1 -0
  93. package/src/clients/transports/webSocket.ts +1 -0
  94. package/src/contract.test.ts +31 -0
  95. package/src/contract.ts +68 -0
  96. package/src/ens.test.ts +15 -0
  97. package/src/ens.ts +4 -1
  98. package/src/errors/abi.ts +18 -2
  99. package/src/errors/chain.test.ts +46 -0
  100. package/src/errors/chain.ts +33 -0
  101. package/src/errors/contract.ts +2 -2
  102. package/src/errors/index.ts +3 -0
  103. package/src/index.test.ts +0 -147
  104. package/src/index.ts +0 -257
  105. package/src/public.test.ts +36 -0
  106. package/src/public.ts +2 -6
  107. package/src/test.test.ts +38 -0
  108. package/src/test.ts +1 -0
  109. package/src/types/contract.ts +144 -40
  110. package/src/types/index.ts +2 -1
  111. package/src/types/utils.ts +21 -0
  112. package/src/utils/abi/decodeErrorResult.test.ts +1 -1
  113. package/src/utils/abi/decodeEventLog.test.ts +542 -0
  114. package/src/utils/abi/decodeEventLog.ts +107 -0
  115. package/src/utils/abi/decodeFunctionData.test.ts +1 -2
  116. package/src/utils/abi/decodeFunctionData.ts +5 -2
  117. package/src/utils/abi/encodeFunctionData.ts +1 -4
  118. package/src/utils/abi/index.test.ts +1 -0
  119. package/src/utils/abi/index.ts +6 -0
  120. package/src/utils/ens/index.test.ts +1 -0
  121. package/src/utils/ens/index.ts +2 -0
  122. package/src/utils/ens/packetToBytes.test.ts +11 -0
  123. package/src/utils/ens/packetToBytes.ts +29 -0
  124. package/src/utils/index.test.ts +1 -3
  125. package/src/utils/index.ts +3 -2
  126. package/src/utils/rpc.test.ts +1 -0
  127. package/src/utils/rpc.ts +4 -2
  128. package/src/wallet.test.ts +19 -0
  129. package/wallet/package.json +4 -0
  130. package/clients/package.json +0 -4
  131. package/dist/chunk-3ARWEJ3G.mjs.map +0 -1
  132. package/dist/chunk-4D5XG6XB.js.map +0 -1
  133. package/dist/chunk-6QTEW2BE.mjs +0 -260
  134. package/dist/chunk-6QTEW2BE.mjs.map +0 -1
  135. package/dist/chunk-A2HXAZXC.js.map +0 -1
  136. package/dist/chunk-KRPS5CIB.mjs +0 -256
  137. package/dist/chunk-KRPS5CIB.mjs.map +0 -1
  138. package/dist/chunk-LQVMDX5I.mjs.map +0 -1
  139. package/dist/chunk-N3IOPT3R.js +0 -256
  140. package/dist/chunk-N3IOPT3R.js.map +0 -1
  141. package/dist/chunk-YQUC52RL.mjs.map +0 -1
  142. package/dist/chunk-ZSTVHQ6J.js +0 -260
  143. package/dist/chunk-ZSTVHQ6J.js.map +0 -1
  144. package/dist/chunk-ZYSXBTBB.js.map +0 -1
  145. package/dist/clients/index.d.ts +0 -9
  146. package/dist/clients/index.js +0 -24
  147. package/dist/clients/index.mjs +0 -24
  148. package/dist/normalize-ef9240c0.d.ts +0 -33
  149. package/dist/parseGwei-492ab7dd.d.ts +0 -355
  150. package/dist/rpc-26932bae.d.ts +0 -61
  151. package/dist/stopImpersonatingAccount-c1a4b7e5.d.ts +0 -156
  152. package/dist/watchAsset-d59d6e35.d.ts +0 -38
  153. package/dist/watchPendingTransactions-ea21b31d.d.ts +0 -373
  154. package/dist/webSocket-775b4037.d.ts +0 -83
package/dist/test.mjs CHANGED
@@ -1,33 +1,236 @@
1
1
  import {
2
- dropTransaction,
3
- getAutomine,
4
- getTxpoolContent,
5
- getTxpoolStatus,
6
- impersonateAccount,
7
- increaseTime,
8
- inspectTxpool,
9
- mine,
10
- removeBlockTimestampInterval,
11
- reset,
12
- revert,
13
- sendUnsignedTransaction,
14
- setAutomine,
15
- setBalance,
16
- setBlockGasLimit,
17
- setBlockTimestampInterval,
18
- setCode,
19
- setCoinbase,
20
- setIntervalMining,
21
- setLoggingEnabled,
22
- setMinGasPrice,
23
- setNextBlockBaseFeePerGas,
24
- setNextBlockTimestamp,
25
- setNonce,
26
- setStorageAt,
27
- snapshot,
28
- stopImpersonatingAccount
29
- } from "./chunk-KRPS5CIB.mjs";
30
- import "./chunk-LQVMDX5I.mjs";
2
+ formatTransactionRequest,
3
+ hexToNumber,
4
+ numberToHex
5
+ } from "./chunk-KSAO4Y4Q.mjs";
6
+
7
+ // src/actions/test/dropTransaction.ts
8
+ async function dropTransaction(client, { hash }) {
9
+ return await client.request({
10
+ method: `${client.mode}_dropTransaction`,
11
+ params: [hash]
12
+ });
13
+ }
14
+
15
+ // src/actions/test/getAutomine.ts
16
+ async function getAutomine(client) {
17
+ return await client.request({
18
+ method: `${client.mode}_getAutomine`
19
+ });
20
+ }
21
+
22
+ // src/actions/test/getTxpoolContent.ts
23
+ async function getTxpoolContent(client) {
24
+ return await client.request({
25
+ method: "txpool_content"
26
+ });
27
+ }
28
+
29
+ // src/actions/test/getTxpoolStatus.ts
30
+ async function getTxpoolStatus(client) {
31
+ const { pending, queued } = await client.request({
32
+ method: "txpool_status"
33
+ });
34
+ return {
35
+ pending: hexToNumber(pending),
36
+ queued: hexToNumber(queued)
37
+ };
38
+ }
39
+
40
+ // src/actions/test/impersonateAccount.ts
41
+ async function impersonateAccount(client, { address }) {
42
+ return await client.request({
43
+ method: `${client.mode}_impersonateAccount`,
44
+ params: [address]
45
+ });
46
+ }
47
+
48
+ // src/actions/test/increaseTime.ts
49
+ async function increaseTime(client, { seconds }) {
50
+ return await client.request({
51
+ method: "evm_increaseTime",
52
+ params: [numberToHex(seconds)]
53
+ });
54
+ }
55
+
56
+ // src/actions/test/inspectTxpool.ts
57
+ async function inspectTxpool(client) {
58
+ return await client.request({
59
+ method: "txpool_inspect"
60
+ });
61
+ }
62
+
63
+ // src/actions/test/mine.ts
64
+ async function mine(client, { blocks, interval }) {
65
+ return await client.request({
66
+ method: `${client.mode}_mine`,
67
+ params: [numberToHex(blocks), numberToHex(interval || 0)]
68
+ });
69
+ }
70
+
71
+ // src/actions/test/removeBlockTimestampInterval.ts
72
+ async function removeBlockTimestampInterval(client) {
73
+ return await client.request({
74
+ method: `${client.mode}_removeBlockTimestampInterval`
75
+ });
76
+ }
77
+
78
+ // src/actions/test/reset.ts
79
+ async function reset(client, { blockNumber, jsonRpcUrl } = {}) {
80
+ return await client.request({
81
+ method: `${client.mode}_reset`,
82
+ params: [{ forking: { blockNumber: Number(blockNumber), jsonRpcUrl } }]
83
+ });
84
+ }
85
+
86
+ // src/actions/test/revert.ts
87
+ async function revert(client, { id }) {
88
+ return await client.request({
89
+ method: "evm_revert",
90
+ params: [id]
91
+ });
92
+ }
93
+
94
+ // src/actions/test/sendUnsignedTransaction.ts
95
+ async function sendUnsignedTransaction(client, request) {
96
+ const request_ = formatTransactionRequest(request);
97
+ const hash = await client.request({
98
+ method: "eth_sendUnsignedTransaction",
99
+ params: [request_]
100
+ });
101
+ return hash;
102
+ }
103
+
104
+ // src/actions/test/setAutomine.ts
105
+ async function setAutomine(client, enabled) {
106
+ return await client.request({
107
+ method: "evm_setAutomine",
108
+ params: [enabled]
109
+ });
110
+ }
111
+
112
+ // src/actions/test/setBalance.ts
113
+ async function setBalance(client, { address, value }) {
114
+ return await client.request({
115
+ method: `${client.mode}_setBalance`,
116
+ params: [address, numberToHex(value)]
117
+ });
118
+ }
119
+
120
+ // src/actions/test/setBlockGasLimit.ts
121
+ async function setBlockGasLimit(client, { gasLimit }) {
122
+ return await client.request({
123
+ method: "evm_setBlockGasLimit",
124
+ params: [numberToHex(gasLimit)]
125
+ });
126
+ }
127
+
128
+ // src/actions/test/setBlockTimestampInterval.ts
129
+ async function setBlockTimestampInterval(client, { interval }) {
130
+ return await client.request({
131
+ method: `${client.mode}_setBlockTimestampInterval`,
132
+ params: [interval]
133
+ });
134
+ }
135
+
136
+ // src/actions/test/setCode.ts
137
+ async function setCode(client, { address, bytecode }) {
138
+ return await client.request({
139
+ method: `${client.mode}_setCode`,
140
+ params: [address, bytecode]
141
+ });
142
+ }
143
+
144
+ // src/actions/test/setCoinbase.ts
145
+ async function setCoinbase(client, { address }) {
146
+ return await client.request({
147
+ method: `${client.mode}_setCoinbase`,
148
+ params: [address]
149
+ });
150
+ }
151
+
152
+ // src/actions/test/setIntervalMining.ts
153
+ async function setIntervalMining(client, { interval }) {
154
+ return await client.request({
155
+ method: "evm_setIntervalMining",
156
+ params: [interval]
157
+ });
158
+ }
159
+
160
+ // src/actions/test/setLoggingEnabled.ts
161
+ async function setLoggingEnabled(client, enabled) {
162
+ return await client.request({
163
+ method: `${client.mode}_setLoggingEnabled`,
164
+ params: [enabled]
165
+ });
166
+ }
167
+
168
+ // src/actions/test/setMinGasPrice.ts
169
+ async function setMinGasPrice(client, { gasPrice }) {
170
+ return await client.request({
171
+ method: `${client.mode}_setMinGasPrice`,
172
+ params: [numberToHex(gasPrice)]
173
+ });
174
+ }
175
+
176
+ // src/actions/test/setNextBlockBaseFeePerGas.ts
177
+ async function setNextBlockBaseFeePerGas(client, { baseFeePerGas }) {
178
+ return await client.request({
179
+ method: `${client.mode}_setNextBlockBaseFeePerGas`,
180
+ params: [numberToHex(baseFeePerGas)]
181
+ });
182
+ }
183
+
184
+ // src/actions/test/setNextBlockTimestamp.ts
185
+ async function setNextBlockTimestamp(client, { timestamp }) {
186
+ return await client.request({
187
+ method: "evm_setNextBlockTimestamp",
188
+ params: [numberToHex(timestamp)]
189
+ });
190
+ }
191
+
192
+ // src/actions/test/setNonce.ts
193
+ async function setNonce(client, { address, nonce }) {
194
+ return await client.request({
195
+ method: `${client.mode}_setNonce`,
196
+ params: [address, numberToHex(nonce)]
197
+ });
198
+ }
199
+
200
+ // src/actions/test/setRpcUrl.ts
201
+ async function setRpcUrl(client, jsonRpcUrl) {
202
+ return await client.request({
203
+ method: `${client.mode}_setRpcUrl`,
204
+ params: [jsonRpcUrl]
205
+ });
206
+ }
207
+
208
+ // src/actions/test/setStorageAt.ts
209
+ async function setStorageAt(client, { address, index, value }) {
210
+ return await client.request({
211
+ method: `${client.mode}_setStorageAt`,
212
+ params: [
213
+ address,
214
+ typeof index === "number" ? numberToHex(index) : index,
215
+ value
216
+ ]
217
+ });
218
+ }
219
+
220
+ // src/actions/test/snapshot.ts
221
+ async function snapshot(client) {
222
+ return await client.request({
223
+ method: "evm_snapshot"
224
+ });
225
+ }
226
+
227
+ // src/actions/test/stopImpersonatingAccount.ts
228
+ async function stopImpersonatingAccount(client, { address }) {
229
+ return await client.request({
230
+ method: `${client.mode}_stopImpersonatingAccount`,
231
+ params: [address]
232
+ });
233
+ }
31
234
  export {
32
235
  dropTransaction,
33
236
  getAutomine,
@@ -53,6 +256,7 @@ export {
53
256
  setNextBlockBaseFeePerGas,
54
257
  setNextBlockTimestamp,
55
258
  setNonce,
259
+ setRpcUrl,
56
260
  setStorageAt,
57
261
  snapshot,
58
262
  stopImpersonatingAccount
package/dist/test.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
1
+ {"version":3,"sources":["../src/actions/test/dropTransaction.ts","../src/actions/test/getAutomine.ts","../src/actions/test/getTxpoolContent.ts","../src/actions/test/getTxpoolStatus.ts","../src/actions/test/impersonateAccount.ts","../src/actions/test/increaseTime.ts","../src/actions/test/inspectTxpool.ts","../src/actions/test/mine.ts","../src/actions/test/removeBlockTimestampInterval.ts","../src/actions/test/reset.ts","../src/actions/test/revert.ts","../src/actions/test/sendUnsignedTransaction.ts","../src/actions/test/setAutomine.ts","../src/actions/test/setBalance.ts","../src/actions/test/setBlockGasLimit.ts","../src/actions/test/setBlockTimestampInterval.ts","../src/actions/test/setCode.ts","../src/actions/test/setCoinbase.ts","../src/actions/test/setIntervalMining.ts","../src/actions/test/setLoggingEnabled.ts","../src/actions/test/setMinGasPrice.ts","../src/actions/test/setNextBlockBaseFeePerGas.ts","../src/actions/test/setNextBlockTimestamp.ts","../src/actions/test/setNonce.ts","../src/actions/test/setRpcUrl.ts","../src/actions/test/setStorageAt.ts","../src/actions/test/snapshot.ts","../src/actions/test/stopImpersonatingAccount.ts"],"sourcesContent":["import type { TestClient } from '../../clients'\nimport type { Hash } from '../../types'\n\nexport type DropTransactionArgs = {\n /** The hash of the transaction to drop. */\n hash: Hash\n}\n\nexport async function dropTransaction(\n client: TestClient,\n { hash }: DropTransactionArgs,\n) {\n return await client.request({\n method: `${client.mode}_dropTransaction`,\n params: [hash],\n })\n}\n","import type { TestClient } from '../../clients'\n\nexport type GetAutomineResponse = boolean\n\nexport async function getAutomine(\n client: TestClient,\n): Promise<GetAutomineResponse> {\n return await client.request({\n method: `${client.mode}_getAutomine`,\n })\n}\n","import type { TestClient } from '../../clients'\n\nexport async function getTxpoolContent(client: TestClient) {\n return await client.request({\n method: 'txpool_content',\n })\n}\n","import type { TestClient } from '../../clients'\nimport { hexToNumber } from '../../utils'\n\nexport async function getTxpoolStatus(client: TestClient) {\n const { pending, queued } = await client.request({\n method: 'txpool_status',\n })\n return {\n pending: hexToNumber(pending),\n queued: hexToNumber(queued),\n }\n}\n","import type { TestClient } from '../../clients'\nimport type { Address } from '../../types'\n\nexport type ImpersonateAccountArgs = {\n /** The account to impersonate. */\n address: Address\n}\n\nexport async function impersonateAccount(\n client: TestClient,\n { address }: ImpersonateAccountArgs,\n) {\n return await client.request({\n method: `${client.mode}_impersonateAccount`,\n params: [address],\n })\n}\n","import type { TestClient } from '../../clients'\nimport { numberToHex } from '../../utils'\n\nexport type IncreaseTimeArgs = {\n /** The amount of seconds to jump forward in time. */\n seconds: number\n}\n\nexport async function increaseTime(\n client: TestClient,\n { seconds }: IncreaseTimeArgs,\n) {\n return await client.request({\n method: 'evm_increaseTime',\n params: [numberToHex(seconds)],\n })\n}\n","import type { TestClient } from '../../clients'\n\nexport async function inspectTxpool(client: TestClient) {\n return await client.request({\n method: 'txpool_inspect',\n })\n}\n","import type { TestClient } from '../../clients'\nimport { numberToHex } from '../../utils'\n\nexport type MineArgs = {\n /** Number of blocks to mine. */\n blocks: number\n /** Interval between each block in seconds. */\n interval?: number\n}\n\nexport async function mine(client: TestClient, { blocks, interval }: MineArgs) {\n return await client.request({\n method: `${client.mode}_mine`,\n params: [numberToHex(blocks), numberToHex(interval || 0)],\n })\n}\n","import type { TestClient } from '../../clients'\n\nexport async function removeBlockTimestampInterval(client: TestClient) {\n return await client.request({\n method: `${client.mode}_removeBlockTimestampInterval`,\n })\n}\n","import type { TestClient } from '../../clients'\n\nexport type ResetArgs = {\n /** The block number to reset from. */\n blockNumber?: bigint\n /** The JSON RPC URL. */\n jsonRpcUrl?: string\n}\n\nexport async function reset(\n client: TestClient,\n { blockNumber, jsonRpcUrl }: ResetArgs = {},\n) {\n return await client.request({\n method: `${client.mode}_reset`,\n params: [{ forking: { blockNumber: Number(blockNumber), jsonRpcUrl } }],\n })\n}\n","import type { TestClient } from '../../clients'\nimport type { Quantity } from '../../types'\n\nexport type RevertArgs = {\n /** The snapshot ID to revert to. */\n id: Quantity\n}\n\nexport async function revert(client: TestClient, { id }: RevertArgs) {\n return await client.request({\n method: 'evm_revert',\n params: [id],\n })\n}\n","import type { TestClient } from '../../clients'\nimport type { Hash, TransactionRequest } from '../../types'\nimport { formatTransactionRequest } from '../../utils'\n\nexport type SendUnsignedTransactionArgs = TransactionRequest\n\nexport type SendUnsignedTransactionResponse = Hash\n\nexport async function sendUnsignedTransaction(\n client: TestClient,\n request: SendUnsignedTransactionArgs,\n): Promise<SendUnsignedTransactionResponse> {\n const request_ = formatTransactionRequest(request)\n const hash = await client.request({\n method: 'eth_sendUnsignedTransaction',\n params: [request_],\n })\n return hash\n}\n","import type { TestClient } from '../../clients'\n\nexport async function setAutomine(client: TestClient, enabled: boolean) {\n return await client.request({\n method: 'evm_setAutomine',\n params: [enabled],\n })\n}\n","import type { TestClient } from '../../clients'\nimport type { Address } from '../../types'\nimport { numberToHex } from '../../utils'\n\nexport type SetBalanceArgs = {\n /** The account address. */\n address: Address\n /** Amount (in wei) to set */\n value: bigint\n}\n\nexport async function setBalance(\n client: TestClient,\n { address, value }: SetBalanceArgs,\n) {\n return await client.request({\n method: `${client.mode}_setBalance`,\n params: [address, numberToHex(value)],\n })\n}\n","import type { TestClient } from '../../clients'\nimport { numberToHex } from '../../utils'\n\nexport type SetBlockGasLimitArgs = {\n /** Gas limit (in wei). */\n gasLimit: bigint\n}\n\nexport async function setBlockGasLimit(\n client: TestClient,\n { gasLimit }: SetBlockGasLimitArgs,\n) {\n return await client.request({\n method: 'evm_setBlockGasLimit',\n params: [numberToHex(gasLimit)],\n })\n}\n","import type { TestClient } from '../../clients'\n\nexport type SetBlockTimestampIntervalArgs = {\n /** The interval (in seconds). */\n interval: number\n}\n\nexport async function setBlockTimestampInterval(\n client: TestClient,\n { interval }: SetBlockTimestampIntervalArgs,\n) {\n return await client.request({\n method: `${client.mode}_setBlockTimestampInterval`,\n params: [interval],\n })\n}\n","import type { TestClient } from '../../clients'\nimport type { Address, Hex } from '../../types'\n\nexport type SetCodeArgs = {\n /** The account address. */\n address: Address\n /** The bytecode to set */\n bytecode: Hex\n}\n\nexport async function setCode(\n client: TestClient,\n { address, bytecode }: SetCodeArgs,\n) {\n return await client.request({\n method: `${client.mode}_setCode`,\n params: [address, bytecode],\n })\n}\n","import type { TestClient } from '../../clients'\nimport type { Address } from '../../types'\n\nexport type SetCoinbaseArgs = {\n /** The coinbase address. */\n address: Address\n}\n\nexport async function setCoinbase(\n client: TestClient,\n { address }: SetCoinbaseArgs,\n) {\n return await client.request({\n method: `${client.mode}_setCoinbase`,\n params: [address],\n })\n}\n","import type { TestClient } from '../../clients'\n\nexport type SetIntervalMiningArgs = {\n /** The mining interval. */\n interval: number\n}\n\nexport async function setIntervalMining(\n client: TestClient,\n { interval }: SetIntervalMiningArgs,\n) {\n return await client.request({\n method: 'evm_setIntervalMining',\n params: [interval],\n })\n}\n","import type { TestClient } from '../../clients'\n\nexport async function setLoggingEnabled(client: TestClient, enabled: boolean) {\n return await client.request({\n method: `${client.mode}_setLoggingEnabled`,\n params: [enabled],\n })\n}\n","import type { TestClient } from '../../clients'\nimport { numberToHex } from '../../utils'\n\nexport type SetMinGasPriceArgs = {\n /** The gas price. */\n gasPrice: bigint\n}\n\nexport async function setMinGasPrice(\n client: TestClient,\n { gasPrice }: SetMinGasPriceArgs,\n) {\n return await client.request({\n method: `${client.mode}_setMinGasPrice`,\n params: [numberToHex(gasPrice)],\n })\n}\n","import type { TestClient } from '../../clients'\nimport { numberToHex } from '../../utils'\n\nexport type SetNextBlockBaseFeePerGasArgs = {\n /** Base fee per gas (in wei). */\n baseFeePerGas: bigint\n}\n\nexport async function setNextBlockBaseFeePerGas(\n client: TestClient,\n { baseFeePerGas }: SetNextBlockBaseFeePerGasArgs,\n) {\n return await client.request({\n method: `${client.mode}_setNextBlockBaseFeePerGas`,\n params: [numberToHex(baseFeePerGas)],\n })\n}\n","import type { TestClient } from '../../clients'\nimport { numberToHex } from '../../utils'\n\nexport type SetNextBlockTimestampArgs = {\n /** The timestamp (in seconds). */\n timestamp: bigint\n}\n\nexport async function setNextBlockTimestamp(\n client: TestClient,\n { timestamp }: SetNextBlockTimestampArgs,\n) {\n return await client.request({\n method: 'evm_setNextBlockTimestamp',\n params: [numberToHex(timestamp)],\n })\n}\n","import type { TestClient } from '../../clients'\nimport type { Address } from '../../types'\nimport { numberToHex } from '../../utils'\n\nexport type SetNonceArgs = {\n /** The account address. */\n address: Address\n /** The nonce to set. */\n nonce: number\n}\n\nexport async function setNonce(\n client: TestClient,\n { address, nonce }: SetNonceArgs,\n) {\n return await client.request({\n method: `${client.mode}_setNonce`,\n params: [address, numberToHex(nonce)],\n })\n}\n","import type { TestClient } from '../../clients'\n\nexport async function setRpcUrl(client: TestClient, jsonRpcUrl: string) {\n return await client.request({\n method: `${client.mode}_setRpcUrl`,\n params: [jsonRpcUrl],\n })\n}\n","import type { TestClient } from '../../clients'\nimport type { Address, Hash, Hex } from '../../types'\nimport { numberToHex } from '../../utils'\n\nexport type SetStorageAtArgs = {\n /** The account address. */\n address: Address\n /** The storage slot (index). Can either be a number or hash value. */\n index: number | Hash\n /** The value to store as a 32 byte hex string. */\n value: Hex\n}\n\nexport async function setStorageAt(\n client: TestClient,\n { address, index, value }: SetStorageAtArgs,\n) {\n return await client.request({\n method: `${client.mode}_setStorageAt`,\n params: [\n address,\n typeof index === 'number' ? numberToHex(index) : index,\n value,\n ],\n })\n}\n","import type { TestClient } from '../../clients'\n\nexport async function snapshot(client: TestClient) {\n return await client.request({\n method: 'evm_snapshot',\n })\n}\n","import type { TestClient } from '../../clients'\nimport type { Address } from '../../types'\n\nexport type StopImpersonatingAccountArgs = {\n /** The account to impersonate. */\n address: Address\n}\n\nexport async function stopImpersonatingAccount(\n client: TestClient,\n { address }: StopImpersonatingAccountArgs,\n) {\n return await client.request({\n method: `${client.mode}_stopImpersonatingAccount`,\n params: [address],\n })\n}\n"],"mappings":"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","names":[]}
@@ -0,0 +1,26 @@
1
+ import { C as Chain, W as ExtractFormatter, M as Formatters, O as Formatter, V as Formatted, d as Block, R as RpcBlock, x as Transaction, T as TransactionReceipt, p as RpcTransactionReceipt, K as TransactionType } from './chain-f16512e8.js';
2
+
3
+ type BlockFormatter<TChain extends Chain = Chain> = ExtractFormatter<TChain, 'block', NonNullable<Formatters['block']>>;
4
+ type FormattedBlock<TFormatter extends Formatter | undefined = Formatter> = Formatted<TFormatter, Block>;
5
+ declare function formatBlock(block: Partial<RpcBlock>): Block<bigint, Transaction<bigint, number>>;
6
+ declare const defineBlock: <TFormat extends Formatter<Partial<RpcBlock>, Partial<Block<bigint, Transaction<bigint, number>>> & {
7
+ [key: string]: unknown;
8
+ }>, TExclude extends (keyof RpcBlock)[] = []>({ exclude, format: formatOverride, }: {
9
+ exclude?: TExclude | undefined;
10
+ format?: TFormat | undefined;
11
+ }) => (data: Partial<RpcBlock> & {
12
+ [key: string]: unknown;
13
+ }) => Block<bigint, Transaction<bigint, number>> & ReturnType<TFormat> & { [K in TExclude[number]]: never; };
14
+
15
+ type TransactionReceiptFormatter<TChain extends Chain = Chain> = ExtractFormatter<TChain, 'transactionReceipt', NonNullable<Formatters['transactionReceipt']>>;
16
+ type FormattedTransactionReceipt<TFormatter extends Formatter | undefined = Formatter> = Formatted<TFormatter, TransactionReceipt>;
17
+ declare const defineTransactionReceipt: <TFormat extends Formatter<Partial<RpcTransactionReceipt>, Partial<TransactionReceipt<bigint, number, "success" | "reverted", TransactionType>> & {
18
+ [key: string]: unknown;
19
+ }>, TExclude extends (keyof RpcTransactionReceipt)[] = []>({ exclude, format: formatOverride, }: {
20
+ exclude?: TExclude | undefined;
21
+ format?: TFormat | undefined;
22
+ }) => (data: Partial<RpcTransactionReceipt> & {
23
+ [key: string]: unknown;
24
+ }) => TransactionReceipt<bigint, number, "success" | "reverted", TransactionType> & ReturnType<TFormat> & { [K in TExclude[number]]: never; };
25
+
26
+ export { BlockFormatter as B, FormattedBlock as F, TransactionReceiptFormatter as T, FormattedTransactionReceipt as a, defineTransactionReceipt as b, defineBlock as d, formatBlock as f };
@@ -1,4 +1,4 @@
1
- import { C as Chain, Q as ExtractFormatter, W as Formatters, K as Formatter, N as Formatted, q as RpcTransactionRequest, s as TransactionRequest } from './chain-afa13f5a.js';
1
+ import { C as Chain, W as ExtractFormatter, M as Formatters, O as Formatter, V as Formatted, q as RpcTransactionRequest, s as TransactionRequest } from './chain-f16512e8.js';
2
2
 
3
3
  type TransactionRequestFormatter<TChain extends Chain = Chain> = ExtractFormatter<TChain, 'transactionRequest', NonNullable<Formatters['transactionRequest']>>;
4
4
  type FormattedTransactionRequest<TFormatter extends Formatter | undefined = Formatter> = Formatted<TFormatter, RpcTransactionRequest>;
@@ -1,27 +1,41 @@
1
- import { B as BaseError, C as ContractFunctionExecutionError } from '../parseGwei-492ab7dd.js';
2
- export { D as DecodeAbiArgs, c as DecodeErrorResultArgs, aq as DecodeErrorResultResponse, d as DecodeFunctionDataArgs, e as DecodeFunctionResultArgs, f as DecodeFunctionResultResponse, E as EncodeAbiArgs, g as EncodeDeployDataArgs, h as EncodeErrorResultArgs, i as EncodeEventTopicsArgs, j as EncodeFunctionDataArgs, k as EncodeFunctionResultArgs, o as EncodeRlpResponse, n as GetAbiItemArgs, G as GetContractAddressOptions, m as GetCreate2AddressOptions, l as GetCreateAddressOptions, r as boolToBytes, s as boolToHex, t as bytesToBigint, u as bytesToBool, p as bytesToHex, v as bytesToNumber, q as bytesToString, w as decodeAbi, x as decodeBytes, y as decodeErrorResult, z as decodeFunctionData, A as decodeFunctionResult, F as decodeHex, H as decodeRlp, I as encodeAbi, J as encodeBytes, K as encodeDeployData, L as encodeErrorResult, M as encodeEventTopics, N as encodeFunctionData, O as encodeFunctionResult, P as encodeHex, Q as encodeRlp, R as etherUnits, Z as formatEther, ae as formatGwei, af as formatUnit, ar as getAbiItem, S as getAddress, T as getContractAddress, V as getCreate2Address, U as getCreateAddress, W as getEventSignature, X as getFunctionSignature, Y as gweiUnits, a2 as hexToBigInt, a3 as hexToBool, a4 as hexToBytes, ag as hexToNumber, a5 as hexToString, _ as isAddress, $ as isAddressEqual, a0 as isBytes, a1 as isHex, a6 as keccak256, a7 as numberToBytes, ah as numberToHex, a8 as pad, a9 as padBytes, aa as padHex, ab as parseEther, ac as parseGwei, ad as parseUnit, ai as size, aj as slice, ak as sliceBytes, al as sliceHex, am as stringToBytes, an as stringToHex, ao as trim, ap as weiUnits } from '../parseGwei-492ab7dd.js';
3
- import { A as AbiItem } from '../contract-70f4ddbe.js';
4
- export { B as BlockFormatter, F as FormattedBlock, g as FormattedTransactionReceipt, T as TransactionReceiptFormatter, m as defineBlock, n as defineTransactionReceipt, f as formatBlock } from '../contract-70f4ddbe.js';
5
- export { d as defineChain } from '../chain-e33d019b.js';
1
+ export { D as DecodeAbiArgs, a as DecodeEventLogArgs, b as DecodeEventLogResponse, c as DecodeFunctionDataArgs, d as DecodeFunctionResultArgs, e as DecodeFunctionResultResponse, E as EncodeAbiArgs, f as EncodeDeployDataArgs, g as EncodeErrorResultArgs, h as EncodeEventTopicsArgs, i as EncodeFunctionDataArgs, j as EncodeFunctionResultArgs, G as GetAbiItemArgs, k as decodeAbi, l as decodeEventLog, m as decodeFunctionData, n as decodeFunctionResult, o as encodeAbi, p as encodeDeployData, q as encodeErrorResult, r as encodeEventTopics, s as encodeFunctionData, t as encodeFunctionResult, v as formatAbiItem, u as formatAbiItemWithArgs, w as getAbiItem } from '../getAbiItem-c8e6e7d4.js';
2
+ export { a as DecodeErrorResultArgs, D as DecodeErrorResultResponse, d as decodeErrorResult } from '../decodeErrorResult-0b934d23.js';
3
+ import { A as Address, B as ByteArray, H as Hex, O as Formatter } from '../chain-f16512e8.js';
4
+ export { W as ExtractFormatter, V as Formatted, Y as FormattedTransaction, Z as TransactionFormatter, _ as defineFormatter, $ as defineTransaction, a0 as format, a1 as formatTransaction, a2 as transactionType } from '../chain-f16512e8.js';
5
+ export { d as defineChain } from '../chain-c4ccb458.js';
6
6
  import { Abi } from 'abitype';
7
- import { A as Address, K as Formatter } from '../chain-afa13f5a.js';
8
- export { Q as ExtractFormatter, N as Formatted, G as FormattedTransaction, P as TransactionFormatter, _ as defineFormatter, $ as defineTransaction, a0 as format, I as formatTransaction, J as transactionType } from '../chain-afa13f5a.js';
9
- export { l as labelhash, n as namehash, a as normalize } from '../normalize-ef9240c0.js';
10
- export { F as FormattedTransactionRequest, T as TransactionRequestFormatter, d as defineTransactionRequest, f as formatTransactionRequest } from '../transactionRequest-bdf57f7d.js';
11
- export { r as rpc } from '../rpc-26932bae.js';
7
+ import { B as BaseError, C as ContractFunctionExecutionError } from '../rpc-a5a7f376.js';
8
+ export { r as rpc } from '../rpc-a5a7f376.js';
9
+ export { B as BlockFormatter, F as FormattedBlock, a as FormattedTransactionReceipt, T as TransactionReceiptFormatter, d as defineBlock, b as defineTransactionReceipt, f as formatBlock } from '../transactionReceipt-2a86c7c7.js';
10
+ export { F as FormattedTransactionRequest, T as TransactionRequestFormatter, d as defineTransactionRequest, f as formatTransactionRequest } from '../transactionRequest-c7794f5e.js';
11
+ import { j as EventDefinition } from '../contract-9e76e561.js';
12
12
  import 'abitype/dist/abi-78346466';
13
13
  import '@wagmi/chains';
14
+ import 'isomorphic-ws';
14
15
 
15
- declare function formatAbiItemWithArgs({ abiItem, args, includeFunctionName, includeName, }: {
16
- abiItem: AbiItem;
17
- args: readonly unknown[];
18
- includeFunctionName?: boolean;
19
- includeName?: boolean;
20
- }): string | undefined;
16
+ declare function getAddress(address: Address): `0x${string}`;
21
17
 
22
- declare function formatAbiItem(abiItem: AbiItem, { includeName }?: {
23
- includeName?: boolean;
24
- }): string;
18
+ type GetCreateAddressOptions = {
19
+ from: Address;
20
+ nonce: bigint;
21
+ };
22
+ type GetCreate2AddressOptions = {
23
+ bytecode: ByteArray | Hex;
24
+ from: Address;
25
+ salt: ByteArray | Hex;
26
+ };
27
+ type GetContractAddressOptions = ({
28
+ opcode?: 'CREATE';
29
+ } & GetCreateAddressOptions) | ({
30
+ opcode: 'CREATE2';
31
+ } & GetCreate2AddressOptions);
32
+ declare function getContractAddress(opts: GetContractAddressOptions): `0x${string}`;
33
+ declare function getCreateAddress(opts: GetCreateAddressOptions): `0x${string}`;
34
+ declare function getCreate2Address(opts: GetCreate2AddressOptions): `0x${string}`;
35
+
36
+ declare function isAddress(address: Address): boolean;
37
+
38
+ declare function isAddressEqual(a: Address, b: Address): boolean;
25
39
 
26
40
  declare function buildRequest<TRequest extends (args: any) => Promise<any>>(request: TRequest): TRequest;
27
41
 
@@ -47,6 +61,59 @@ declare function getContractError(err: BaseError, { abi, address, args, docsPath
47
61
  sender?: Address;
48
62
  }): ContractFunctionExecutionError;
49
63
 
64
+ declare function isBytes(value: any): boolean;
65
+
66
+ declare function isHex(value: any): boolean;
67
+
68
+ type PadOptions = {
69
+ dir?: 'left' | 'right';
70
+ size?: number;
71
+ };
72
+ type PadResult<TValue extends ByteArray | Hex> = TValue extends Hex ? Hex : ByteArray;
73
+ declare function pad<TValue extends ByteArray | Hex>(hexOrBytes: TValue, { dir, size }?: PadOptions): PadResult<TValue>;
74
+ declare function padHex(hex_: Hex, { dir, size }?: PadOptions): `0x${string}`;
75
+ declare function padBytes(bytes: ByteArray, { dir, size }?: PadOptions): Uint8Array;
76
+
77
+ type TrimOptions = {
78
+ dir?: 'left' | 'right';
79
+ };
80
+ type TrimResult<TValue extends ByteArray | Hex> = TValue extends Hex ? Hex : ByteArray;
81
+ declare function trim<TValue extends ByteArray | Hex>(hexOrBytes: TValue, { dir }?: TrimOptions): TrimResult<TValue>;
82
+
83
+ /**
84
+ * @description Retrieves the size of the value (in bytes).
85
+ *
86
+ * @param value The value (hex or byte array) to retrieve the size of.
87
+ * @returns The size of the value (in bytes).
88
+ */
89
+ declare function size(value: Hex | ByteArray): number;
90
+
91
+ type SliceResult<TValue extends ByteArray | Hex> = TValue extends Hex ? Hex : ByteArray;
92
+ /**
93
+ * @description Returns a section of the hex or byte array given a start/end bytes offset.
94
+ *
95
+ * @param value The hex or byte array to slice.
96
+ * @param start The start offset (in bytes).
97
+ * @param end The end offset (in bytes).
98
+ */
99
+ declare function slice<TValue extends ByteArray | Hex>(value: TValue, start?: number, end?: number): SliceResult<TValue>;
100
+ /**
101
+ * @description Returns a section of the byte array given a start/end bytes offset.
102
+ *
103
+ * @param value The byte array to slice.
104
+ * @param start The start offset (in bytes).
105
+ * @param end The end offset (in bytes).
106
+ */
107
+ declare function sliceBytes(value: ByteArray, start?: number, end?: number): Uint8Array;
108
+ /**
109
+ * @description Returns a section of the hex value given a start/end bytes offset.
110
+ *
111
+ * @param value The hex value to slice.
112
+ * @param start The start offset (in bytes).
113
+ * @param end The end offset (in bytes).
114
+ */
115
+ declare function sliceHex(value_: Hex, start?: number, end?: number): string;
116
+
50
117
  /**
51
118
  * @description Picks out the keys from `value` that exist in the formatter.
52
119
  */
@@ -54,6 +121,143 @@ declare function extract(value: Record<string, unknown>, { formatter }: {
54
121
  formatter?: Formatter;
55
122
  }): {};
56
123
 
124
+ /**
125
+ * @description Encodes a boolean into a hex string
126
+ */
127
+ declare function boolToHex(value: boolean): Hex;
128
+ /**
129
+ * @description Encodes a bytes array into a hex string
130
+ */
131
+ declare function bytesToHex(value: ByteArray): Hex;
132
+ /**
133
+ * @description Encodes a string, number, bigint, or ByteArray into a hex string
134
+ */
135
+ declare function encodeHex(value: string | number | bigint | boolean | ByteArray): Hex;
136
+ type NumberToHexOpts$1 = {
137
+ signed?: boolean;
138
+ size: number;
139
+ } | {
140
+ signed?: never;
141
+ size?: never;
142
+ };
143
+ /**
144
+ * @description Encodes a number or bigint into a hex string
145
+ */
146
+ declare function numberToHex(value_: number | bigint, opts?: NumberToHexOpts$1): Hex;
147
+ /**
148
+ * @description Encodes a UTF-8 string into a hex string
149
+ */
150
+ declare function stringToHex(value: string): Hex;
151
+
152
+ /**
153
+ * @description Encodes a boolean into a byte array.
154
+ */
155
+ declare function boolToBytes(value: boolean): Uint8Array;
156
+ /** @description Encodes a UTF-8 string, hex value, bigint, number or boolean to a byte array. */
157
+ declare function encodeBytes(value: string | bigint | number | boolean | Hex): ByteArray;
158
+ /**
159
+ * @description Encodes a hex string into a byte array.
160
+ */
161
+ declare function hexToBytes(hex_: Hex): ByteArray;
162
+ /**
163
+ * @description Encodes a number into a byte array.
164
+ */
165
+ declare function numberToBytes(value: bigint | number, opts?: NumberToHexOpts$1): Uint8Array;
166
+ /**
167
+ * @description Encodes a UTF-8 string into a byte array.
168
+ */
169
+ declare function stringToBytes(value: string): ByteArray;
170
+
171
+ type RecursiveArray<T> = T | Array<RecursiveArray<T>>;
172
+ type To$1 = 'hex' | 'bytes';
173
+ type EncodeRlpResponse<TTo extends To$1> = TTo extends 'bytes' ? ByteArray : TTo extends 'hex' ? Hex : never;
174
+ declare function encodeRlp<TTo extends To$1 = 'hex'>(hexOrBytes: RecursiveArray<Hex> | RecursiveArray<ByteArray>, to_?: TTo): EncodeRlpResponse<TTo>;
175
+
176
+ type DecodeBytesResponse<TTo> = TTo extends 'string' ? string : TTo extends 'hex' ? Hex : TTo extends 'bigint' ? bigint : TTo extends 'number' ? number : TTo extends 'boolean' ? boolean : never;
177
+ /**
178
+ * @description Decodes a byte array into a UTF-8 string, hex value, number, bigint or boolean.
179
+ */
180
+ declare function decodeBytes<TTo extends 'string' | 'hex' | 'bigint' | 'number' | 'boolean'>(bytes: ByteArray, to: TTo): DecodeBytesResponse<TTo>;
181
+ /**
182
+ * @description Decodes a byte array into a bigint.
183
+ */
184
+ declare function bytesToBigint(bytes: ByteArray): bigint;
185
+ /**
186
+ * @description Decodes a byte array into a boolean.
187
+ */
188
+ declare function bytesToBool(bytes: ByteArray): boolean;
189
+
190
+ /**
191
+ * @description Decodes a byte array into a number.
192
+ */
193
+ declare function bytesToNumber(bytes: ByteArray): number;
194
+ /**
195
+ * @description Decodes a byte array into a UTF-8 string.
196
+ */
197
+ declare function bytesToString(bytes: ByteArray): string;
198
+
199
+ type DecodeHexResponse<TTo> = TTo extends 'string' ? string : TTo extends 'bigint' ? bigint : TTo extends 'number' ? number : TTo extends 'bytes' ? ByteArray : TTo extends 'boolean' ? boolean : never;
200
+ /**
201
+ * @description Decodes a hex string into a string, number, bigint, boolean, or bytes32 array.
202
+ */
203
+ declare function decodeHex<TTo extends 'string' | 'bigint' | 'number' | 'bytes' | 'boolean'>(hex: Hex, to: TTo): DecodeHexResponse<TTo>;
204
+ type HexToBigIntOpts = {
205
+ signed?: boolean;
206
+ };
207
+ /**
208
+ * @description Decodes a hex string into a bigint.
209
+ */
210
+ declare function hexToBigInt(hex: Hex, opts?: HexToBigIntOpts): bigint;
211
+ /**
212
+ * @description Decodes a hex string into a boolean.
213
+ */
214
+ declare function hexToBool(hex: Hex): boolean;
215
+ type NumberToHexOpts = HexToBigIntOpts;
216
+ /**
217
+ * @description Decodes a hex string into a number.
218
+ */
219
+ declare function hexToNumber(hex: Hex, opts?: NumberToHexOpts): number;
220
+ /**
221
+ * @description Decodes a hex string into a UTF-8 string.
222
+ */
223
+ declare function hexToString(hex: Hex): string;
224
+
225
+ type DecodeRlpResponse<TTo> = TTo extends 'bytes' ? ByteArray : TTo extends 'hex' ? Hex : never;
226
+ declare function decodeRlp<TTo extends 'bytes' | 'hex'>(value: ByteArray | Hex, to: TTo): RecursiveArray<DecodeRlpResponse<TTo>>;
227
+
228
+ declare const getEventSignature: (event: EventDefinition) => `0x${string}`;
229
+
230
+ declare const getFunctionSignature: (fn: string) => `0x${string}`;
231
+
232
+ type To = 'hex' | 'bytes';
233
+ type Keccak256Hash<TTo extends To> = (TTo extends 'bytes' ? ByteArray : never) | (TTo extends 'hex' ? Hex : never);
234
+ declare function keccak256<TTo extends To = 'hex'>(value: ByteArray, to_?: TTo): Keccak256Hash<TTo>;
235
+
57
236
  declare function stringify(value: unknown): string;
58
237
 
59
- export { buildRequest, extract, extractFunctionName, extractFunctionParams, extractFunctionParts, extractFunctionType, formatAbiItem, formatAbiItemWithArgs, getContractError, stringify };
238
+ declare const etherUnits: {
239
+ gwei: number;
240
+ wei: number;
241
+ };
242
+ declare const gweiUnits: {
243
+ ether: number;
244
+ wei: number;
245
+ };
246
+ declare const weiUnits: {
247
+ ether: number;
248
+ gwei: number;
249
+ };
250
+
251
+ declare function formatEther(wei: bigint, unit?: 'wei' | 'gwei'): string;
252
+
253
+ declare function formatGwei(wei: bigint, unit?: 'wei'): string;
254
+
255
+ declare function formatUnit(value: bigint, decimals: number): string;
256
+
257
+ declare function parseUnit(value: `${number}`, decimals: number): bigint;
258
+
259
+ declare function parseEther(ether: `${number}`, unit?: 'wei' | 'gwei'): bigint;
260
+
261
+ declare function parseGwei(ether: `${number}`, unit?: 'wei'): bigint;
262
+
263
+ export { EncodeRlpResponse, GetContractAddressOptions, GetCreate2AddressOptions, GetCreateAddressOptions, boolToBytes, boolToHex, buildRequest, bytesToBigint, bytesToBool, bytesToHex, bytesToNumber, bytesToString, decodeBytes, decodeHex, decodeRlp, encodeBytes, encodeHex, encodeRlp, etherUnits, extract, extractFunctionName, extractFunctionParams, extractFunctionParts, extractFunctionType, formatEther, formatGwei, formatUnit, getAddress, getContractAddress, getContractError, getCreate2Address, getCreateAddress, getEventSignature, getFunctionSignature, gweiUnits, hexToBigInt, hexToBool, hexToBytes, hexToNumber, hexToString, isAddress, isAddressEqual, isBytes, isHex, keccak256, numberToBytes, numberToHex, pad, padBytes, padHex, parseEther, parseGwei, parseUnit, size, slice, sliceBytes, sliceHex, stringToBytes, stringToHex, stringify, trim, weiUnits };
@@ -83,9 +83,9 @@
83
83
 
84
84
 
85
85
 
86
+ var _chunkTHMRUG4Djs = require('../chunk-THMRUG4D.js');
86
87
 
87
88
 
88
- var _chunk4D5XG6XBjs = require('../chunk-4D5XG6XB.js');
89
89
 
90
90
 
91
91
 
@@ -169,9 +169,5 @@ var _chunk4D5XG6XBjs = require('../chunk-4D5XG6XB.js');
169
169
 
170
170
 
171
171
 
172
-
173
-
174
-
175
-
176
- exports.boolToBytes = _chunk4D5XG6XBjs.boolToBytes; exports.boolToHex = _chunk4D5XG6XBjs.boolToHex; exports.buildRequest = _chunk4D5XG6XBjs.buildRequest; exports.bytesToBigint = _chunk4D5XG6XBjs.bytesToBigint; exports.bytesToBool = _chunk4D5XG6XBjs.bytesToBool; exports.bytesToHex = _chunk4D5XG6XBjs.bytesToHex; exports.bytesToNumber = _chunk4D5XG6XBjs.bytesToNumber; exports.bytesToString = _chunk4D5XG6XBjs.bytesToString; exports.decodeAbi = _chunk4D5XG6XBjs.decodeAbi; exports.decodeBytes = _chunk4D5XG6XBjs.decodeBytes; exports.decodeErrorResult = _chunk4D5XG6XBjs.decodeErrorResult; exports.decodeFunctionData = _chunk4D5XG6XBjs.decodeFunctionData; exports.decodeFunctionResult = _chunk4D5XG6XBjs.decodeFunctionResult; exports.decodeHex = _chunk4D5XG6XBjs.decodeHex; exports.decodeRlp = _chunk4D5XG6XBjs.decodeRlp; exports.defineBlock = _chunk4D5XG6XBjs.defineBlock; exports.defineChain = _chunk4D5XG6XBjs.defineChain; exports.defineFormatter = _chunk4D5XG6XBjs.defineFormatter; exports.defineTransaction = _chunk4D5XG6XBjs.defineTransaction; exports.defineTransactionReceipt = _chunk4D5XG6XBjs.defineTransactionReceipt; exports.defineTransactionRequest = _chunk4D5XG6XBjs.defineTransactionRequest; exports.encodeAbi = _chunk4D5XG6XBjs.encodeAbi; exports.encodeBytes = _chunk4D5XG6XBjs.encodeBytes; exports.encodeDeployData = _chunk4D5XG6XBjs.encodeDeployData; exports.encodeErrorResult = _chunk4D5XG6XBjs.encodeErrorResult; exports.encodeEventTopics = _chunk4D5XG6XBjs.encodeEventTopics; exports.encodeFunctionData = _chunk4D5XG6XBjs.encodeFunctionData; exports.encodeFunctionResult = _chunk4D5XG6XBjs.encodeFunctionResult; exports.encodeHex = _chunk4D5XG6XBjs.encodeHex; exports.encodeRlp = _chunk4D5XG6XBjs.encodeRlp; exports.etherUnits = _chunk4D5XG6XBjs.etherUnits; exports.extract = _chunk4D5XG6XBjs.extract; exports.extractFunctionName = _chunk4D5XG6XBjs.extractFunctionName; exports.extractFunctionParams = _chunk4D5XG6XBjs.extractFunctionParams; exports.extractFunctionParts = _chunk4D5XG6XBjs.extractFunctionParts; exports.extractFunctionType = _chunk4D5XG6XBjs.extractFunctionType; exports.format = _chunk4D5XG6XBjs.format; exports.formatAbiItem = _chunk4D5XG6XBjs.formatAbiItem; exports.formatAbiItemWithArgs = _chunk4D5XG6XBjs.formatAbiItemWithArgs; exports.formatBlock = _chunk4D5XG6XBjs.formatBlock; exports.formatEther = _chunk4D5XG6XBjs.formatEther; exports.formatGwei = _chunk4D5XG6XBjs.formatGwei; exports.formatTransaction = _chunk4D5XG6XBjs.formatTransaction; exports.formatTransactionRequest = _chunk4D5XG6XBjs.formatTransactionRequest; exports.formatUnit = _chunk4D5XG6XBjs.formatUnit; exports.getAbiItem = _chunk4D5XG6XBjs.getAbiItem; exports.getAddress = _chunk4D5XG6XBjs.getAddress; exports.getContractAddress = _chunk4D5XG6XBjs.getContractAddress; exports.getContractError = _chunk4D5XG6XBjs.getContractError; exports.getCreate2Address = _chunk4D5XG6XBjs.getCreate2Address; exports.getCreateAddress = _chunk4D5XG6XBjs.getCreateAddress; exports.getEventSignature = _chunk4D5XG6XBjs.getEventSignature; exports.getFunctionSignature = _chunk4D5XG6XBjs.getFunctionSignature; exports.gweiUnits = _chunk4D5XG6XBjs.gweiUnits; exports.hexToBigInt = _chunk4D5XG6XBjs.hexToBigInt; exports.hexToBool = _chunk4D5XG6XBjs.hexToBool; exports.hexToBytes = _chunk4D5XG6XBjs.hexToBytes; exports.hexToNumber = _chunk4D5XG6XBjs.hexToNumber; exports.hexToString = _chunk4D5XG6XBjs.hexToString; exports.isAddress = _chunk4D5XG6XBjs.isAddress; exports.isAddressEqual = _chunk4D5XG6XBjs.isAddressEqual; exports.isBytes = _chunk4D5XG6XBjs.isBytes; exports.isHex = _chunk4D5XG6XBjs.isHex; exports.keccak256 = _chunk4D5XG6XBjs.keccak256; exports.labelhash = _chunk4D5XG6XBjs.labelhash; exports.namehash = _chunk4D5XG6XBjs.namehash; exports.normalize = _chunk4D5XG6XBjs.normalize; exports.numberToBytes = _chunk4D5XG6XBjs.numberToBytes; exports.numberToHex = _chunk4D5XG6XBjs.numberToHex; exports.pad = _chunk4D5XG6XBjs.pad; exports.padBytes = _chunk4D5XG6XBjs.padBytes; exports.padHex = _chunk4D5XG6XBjs.padHex; exports.parseEther = _chunk4D5XG6XBjs.parseEther; exports.parseGwei = _chunk4D5XG6XBjs.parseGwei; exports.parseUnit = _chunk4D5XG6XBjs.parseUnit; exports.rpc = _chunk4D5XG6XBjs.rpc; exports.size = _chunk4D5XG6XBjs.size; exports.slice = _chunk4D5XG6XBjs.slice; exports.sliceBytes = _chunk4D5XG6XBjs.sliceBytes; exports.sliceHex = _chunk4D5XG6XBjs.sliceHex; exports.stringToBytes = _chunk4D5XG6XBjs.stringToBytes; exports.stringToHex = _chunk4D5XG6XBjs.stringToHex; exports.stringify = _chunk4D5XG6XBjs.stringify; exports.transactionType = _chunk4D5XG6XBjs.transactionType; exports.trim = _chunk4D5XG6XBjs.trim; exports.weiUnits = _chunk4D5XG6XBjs.weiUnits;
172
+ exports.boolToBytes = _chunkTHMRUG4Djs.boolToBytes; exports.boolToHex = _chunkTHMRUG4Djs.boolToHex; exports.buildRequest = _chunkTHMRUG4Djs.buildRequest; exports.bytesToBigint = _chunkTHMRUG4Djs.bytesToBigint; exports.bytesToBool = _chunkTHMRUG4Djs.bytesToBool; exports.bytesToHex = _chunkTHMRUG4Djs.bytesToHex; exports.bytesToNumber = _chunkTHMRUG4Djs.bytesToNumber; exports.bytesToString = _chunkTHMRUG4Djs.bytesToString; exports.decodeAbi = _chunkTHMRUG4Djs.decodeAbi; exports.decodeBytes = _chunkTHMRUG4Djs.decodeBytes; exports.decodeErrorResult = _chunkTHMRUG4Djs.decodeErrorResult; exports.decodeEventLog = _chunkTHMRUG4Djs.decodeEventLog; exports.decodeFunctionData = _chunkTHMRUG4Djs.decodeFunctionData; exports.decodeFunctionResult = _chunkTHMRUG4Djs.decodeFunctionResult; exports.decodeHex = _chunkTHMRUG4Djs.decodeHex; exports.decodeRlp = _chunkTHMRUG4Djs.decodeRlp; exports.defineBlock = _chunkTHMRUG4Djs.defineBlock; exports.defineChain = _chunkTHMRUG4Djs.defineChain; exports.defineFormatter = _chunkTHMRUG4Djs.defineFormatter; exports.defineTransaction = _chunkTHMRUG4Djs.defineTransaction; exports.defineTransactionReceipt = _chunkTHMRUG4Djs.defineTransactionReceipt; exports.defineTransactionRequest = _chunkTHMRUG4Djs.defineTransactionRequest; exports.encodeAbi = _chunkTHMRUG4Djs.encodeAbi; exports.encodeBytes = _chunkTHMRUG4Djs.encodeBytes; exports.encodeDeployData = _chunkTHMRUG4Djs.encodeDeployData; exports.encodeErrorResult = _chunkTHMRUG4Djs.encodeErrorResult; exports.encodeEventTopics = _chunkTHMRUG4Djs.encodeEventTopics; exports.encodeFunctionData = _chunkTHMRUG4Djs.encodeFunctionData; exports.encodeFunctionResult = _chunkTHMRUG4Djs.encodeFunctionResult; exports.encodeHex = _chunkTHMRUG4Djs.encodeHex; exports.encodeRlp = _chunkTHMRUG4Djs.encodeRlp; exports.etherUnits = _chunkTHMRUG4Djs.etherUnits; exports.extract = _chunkTHMRUG4Djs.extract; exports.extractFunctionName = _chunkTHMRUG4Djs.extractFunctionName; exports.extractFunctionParams = _chunkTHMRUG4Djs.extractFunctionParams; exports.extractFunctionParts = _chunkTHMRUG4Djs.extractFunctionParts; exports.extractFunctionType = _chunkTHMRUG4Djs.extractFunctionType; exports.format = _chunkTHMRUG4Djs.format; exports.formatAbiItem = _chunkTHMRUG4Djs.formatAbiItem; exports.formatAbiItemWithArgs = _chunkTHMRUG4Djs.formatAbiItemWithArgs; exports.formatBlock = _chunkTHMRUG4Djs.formatBlock; exports.formatEther = _chunkTHMRUG4Djs.formatEther; exports.formatGwei = _chunkTHMRUG4Djs.formatGwei; exports.formatTransaction = _chunkTHMRUG4Djs.formatTransaction; exports.formatTransactionRequest = _chunkTHMRUG4Djs.formatTransactionRequest; exports.formatUnit = _chunkTHMRUG4Djs.formatUnit; exports.getAbiItem = _chunkTHMRUG4Djs.getAbiItem; exports.getAddress = _chunkTHMRUG4Djs.getAddress; exports.getContractAddress = _chunkTHMRUG4Djs.getContractAddress; exports.getContractError = _chunkTHMRUG4Djs.getContractError; exports.getCreate2Address = _chunkTHMRUG4Djs.getCreate2Address; exports.getCreateAddress = _chunkTHMRUG4Djs.getCreateAddress; exports.getEventSignature = _chunkTHMRUG4Djs.getEventSignature; exports.getFunctionSignature = _chunkTHMRUG4Djs.getFunctionSignature; exports.gweiUnits = _chunkTHMRUG4Djs.gweiUnits; exports.hexToBigInt = _chunkTHMRUG4Djs.hexToBigInt; exports.hexToBool = _chunkTHMRUG4Djs.hexToBool; exports.hexToBytes = _chunkTHMRUG4Djs.hexToBytes; exports.hexToNumber = _chunkTHMRUG4Djs.hexToNumber; exports.hexToString = _chunkTHMRUG4Djs.hexToString; exports.isAddress = _chunkTHMRUG4Djs.isAddress; exports.isAddressEqual = _chunkTHMRUG4Djs.isAddressEqual; exports.isBytes = _chunkTHMRUG4Djs.isBytes; exports.isHex = _chunkTHMRUG4Djs.isHex; exports.keccak256 = _chunkTHMRUG4Djs.keccak256; exports.numberToBytes = _chunkTHMRUG4Djs.numberToBytes; exports.numberToHex = _chunkTHMRUG4Djs.numberToHex; exports.pad = _chunkTHMRUG4Djs.pad; exports.padBytes = _chunkTHMRUG4Djs.padBytes; exports.padHex = _chunkTHMRUG4Djs.padHex; exports.parseEther = _chunkTHMRUG4Djs.parseEther; exports.parseGwei = _chunkTHMRUG4Djs.parseGwei; exports.parseUnit = _chunkTHMRUG4Djs.parseUnit; exports.rpc = _chunkTHMRUG4Djs.rpc; exports.size = _chunkTHMRUG4Djs.size; exports.slice = _chunkTHMRUG4Djs.slice; exports.sliceBytes = _chunkTHMRUG4Djs.sliceBytes; exports.sliceHex = _chunkTHMRUG4Djs.sliceHex; exports.stringToBytes = _chunkTHMRUG4Djs.stringToBytes; exports.stringToHex = _chunkTHMRUG4Djs.stringToHex; exports.stringify = _chunkTHMRUG4Djs.stringify; exports.transactionType = _chunkTHMRUG4Djs.transactionType; exports.trim = _chunkTHMRUG4Djs.trim; exports.weiUnits = _chunkTHMRUG4Djs.weiUnits;
177
173
  //# sourceMappingURL=index.js.map