viem 0.0.1-alpha.30 → 0.0.1-alpha.32

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 (48) hide show
  1. package/dist/chains.js +46 -46
  2. package/dist/chains.mjs +1 -1
  3. package/dist/{chunk-ZX4U6QKQ.js → chunk-4TDJALZ6.js} +75 -75
  4. package/dist/{chunk-EAD66IDC.js → chunk-DEF2SWG2.js} +54 -28
  5. package/dist/chunk-DEF2SWG2.js.map +1 -0
  6. package/dist/{chunk-EYRMK2SV.mjs → chunk-HJBIOX2W.mjs} +2 -2
  7. package/dist/{chunk-VOK5ALIT.js → chunk-K3Q7U5IY.js} +15 -15
  8. package/dist/{chunk-NPFW67BV.js → chunk-NZUM6QVJ.js} +22 -22
  9. package/dist/{chunk-25AJVKAT.mjs → chunk-P76FCR36.mjs} +55 -29
  10. package/dist/chunk-P76FCR36.mjs.map +1 -0
  11. package/dist/{chunk-AO7KQBK3.mjs → chunk-QPXAI2W5.mjs} +2 -2
  12. package/dist/{chunk-BHMSFL4W.js → chunk-S3HZ74MN.js} +14 -14
  13. package/dist/{chunk-23UHN6UC.mjs → chunk-ZIH5V7HU.mjs} +3 -3
  14. package/dist/{chunk-IP3NSE7H.mjs → chunk-ZZWYDER3.mjs} +2 -2
  15. package/dist/contract.d.ts +1 -1
  16. package/dist/contract.js +4 -4
  17. package/dist/contract.mjs +3 -3
  18. package/dist/{createPublicClient-99be385b.d.ts → createPublicClient-2187596f.d.ts} +1 -1
  19. package/dist/ens.d.ts +1 -1
  20. package/dist/ens.js +4 -4
  21. package/dist/ens.mjs +3 -3
  22. package/dist/index.d.ts +20 -5
  23. package/dist/index.js +97 -91
  24. package/dist/index.js.map +1 -1
  25. package/dist/index.mjs +16 -10
  26. package/dist/index.mjs.map +1 -1
  27. package/dist/{parseGwei-e299cf13.d.ts → parseGwei-308eada9.d.ts} +10 -7
  28. package/dist/public.d.ts +2 -2
  29. package/dist/public.js +3 -3
  30. package/dist/public.mjs +2 -2
  31. package/dist/test.js +3 -3
  32. package/dist/test.mjs +2 -2
  33. package/dist/utils/index.d.ts +4 -4
  34. package/dist/utils/index.js +4 -2
  35. package/dist/utils/index.mjs +7 -5
  36. package/dist/wallet.js +3 -3
  37. package/dist/wallet.mjs +2 -2
  38. package/package.json +1 -1
  39. package/dist/chunk-25AJVKAT.mjs.map +0 -1
  40. package/dist/chunk-EAD66IDC.js.map +0 -1
  41. /package/dist/{chunk-ZX4U6QKQ.js.map → chunk-4TDJALZ6.js.map} +0 -0
  42. /package/dist/{chunk-EYRMK2SV.mjs.map → chunk-HJBIOX2W.mjs.map} +0 -0
  43. /package/dist/{chunk-VOK5ALIT.js.map → chunk-K3Q7U5IY.js.map} +0 -0
  44. /package/dist/{chunk-NPFW67BV.js.map → chunk-NZUM6QVJ.js.map} +0 -0
  45. /package/dist/{chunk-AO7KQBK3.mjs.map → chunk-QPXAI2W5.mjs.map} +0 -0
  46. /package/dist/{chunk-BHMSFL4W.js.map → chunk-S3HZ74MN.js.map} +0 -0
  47. /package/dist/{chunk-23UHN6UC.mjs.map → chunk-ZIH5V7HU.mjs.map} +0 -0
  48. /package/dist/{chunk-IP3NSE7H.mjs.map → chunk-ZZWYDER3.mjs.map} +0 -0
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkEAD66IDCjs = require('./chunk-EAD66IDC.js');
5
+ var _chunkDEF2SWG2js = require('./chunk-DEF2SWG2.js');
6
6
 
7
7
  // src/actions/test/dropTransaction.ts
8
8
  async function dropTransaction(client, { hash }) {
@@ -32,8 +32,8 @@ async function getTxpoolStatus(client) {
32
32
  method: "txpool_status"
33
33
  });
34
34
  return {
35
- pending: _chunkEAD66IDCjs.hexToNumber.call(void 0, pending),
36
- queued: _chunkEAD66IDCjs.hexToNumber.call(void 0, queued)
35
+ pending: _chunkDEF2SWG2js.hexToNumber.call(void 0, pending),
36
+ queued: _chunkDEF2SWG2js.hexToNumber.call(void 0, queued)
37
37
  };
38
38
  }
39
39
 
@@ -49,7 +49,7 @@ async function impersonateAccount(client, { address }) {
49
49
  async function increaseTime(client, { seconds }) {
50
50
  return await client.request({
51
51
  method: "evm_increaseTime",
52
- params: [_chunkEAD66IDCjs.numberToHex.call(void 0, seconds)]
52
+ params: [_chunkDEF2SWG2js.numberToHex.call(void 0, seconds)]
53
53
  });
54
54
  }
55
55
 
@@ -64,7 +64,7 @@ async function inspectTxpool(client) {
64
64
  async function mine(client, { blocks, interval }) {
65
65
  return await client.request({
66
66
  method: `${client.mode}_mine`,
67
- params: [_chunkEAD66IDCjs.numberToHex.call(void 0, blocks), _chunkEAD66IDCjs.numberToHex.call(void 0, interval || 0)]
67
+ params: [_chunkDEF2SWG2js.numberToHex.call(void 0, blocks), _chunkDEF2SWG2js.numberToHex.call(void 0, interval || 0)]
68
68
  });
69
69
  }
70
70
 
@@ -93,7 +93,7 @@ async function revert(client, { id }) {
93
93
 
94
94
  // src/actions/test/sendUnsignedTransaction.ts
95
95
  async function sendUnsignedTransaction(client, request) {
96
- const request_ = _chunkEAD66IDCjs.formatTransactionRequest.call(void 0, request);
96
+ const request_ = _chunkDEF2SWG2js.formatTransactionRequest.call(void 0, request);
97
97
  const hash = await client.request({
98
98
  method: "eth_sendUnsignedTransaction",
99
99
  params: [request_]
@@ -113,7 +113,7 @@ async function setAutomine(client, enabled) {
113
113
  async function setBalance(client, { address, value }) {
114
114
  return await client.request({
115
115
  method: `${client.mode}_setBalance`,
116
- params: [address, _chunkEAD66IDCjs.numberToHex.call(void 0, value)]
116
+ params: [address, _chunkDEF2SWG2js.numberToHex.call(void 0, value)]
117
117
  });
118
118
  }
119
119
 
@@ -121,7 +121,7 @@ async function setBalance(client, { address, value }) {
121
121
  async function setBlockGasLimit(client, { gasLimit }) {
122
122
  return await client.request({
123
123
  method: "evm_setBlockGasLimit",
124
- params: [_chunkEAD66IDCjs.numberToHex.call(void 0, gasLimit)]
124
+ params: [_chunkDEF2SWG2js.numberToHex.call(void 0, gasLimit)]
125
125
  });
126
126
  }
127
127
 
@@ -169,7 +169,7 @@ async function setLoggingEnabled(client, enabled) {
169
169
  async function setMinGasPrice(client, { gasPrice }) {
170
170
  return await client.request({
171
171
  method: `${client.mode}_setMinGasPrice`,
172
- params: [_chunkEAD66IDCjs.numberToHex.call(void 0, gasPrice)]
172
+ params: [_chunkDEF2SWG2js.numberToHex.call(void 0, gasPrice)]
173
173
  });
174
174
  }
175
175
 
@@ -177,7 +177,7 @@ async function setMinGasPrice(client, { gasPrice }) {
177
177
  async function setNextBlockBaseFeePerGas(client, { baseFeePerGas }) {
178
178
  return await client.request({
179
179
  method: `${client.mode}_setNextBlockBaseFeePerGas`,
180
- params: [_chunkEAD66IDCjs.numberToHex.call(void 0, baseFeePerGas)]
180
+ params: [_chunkDEF2SWG2js.numberToHex.call(void 0, baseFeePerGas)]
181
181
  });
182
182
  }
183
183
 
@@ -185,7 +185,7 @@ async function setNextBlockBaseFeePerGas(client, { baseFeePerGas }) {
185
185
  async function setNextBlockTimestamp(client, { timestamp }) {
186
186
  return await client.request({
187
187
  method: "evm_setNextBlockTimestamp",
188
- params: [_chunkEAD66IDCjs.numberToHex.call(void 0, timestamp)]
188
+ params: [_chunkDEF2SWG2js.numberToHex.call(void 0, timestamp)]
189
189
  });
190
190
  }
191
191
 
@@ -193,7 +193,7 @@ async function setNextBlockTimestamp(client, { timestamp }) {
193
193
  async function setNonce(client, { address, nonce }) {
194
194
  return await client.request({
195
195
  method: `${client.mode}_setNonce`,
196
- params: [address, _chunkEAD66IDCjs.numberToHex.call(void 0, nonce)]
196
+ params: [address, _chunkDEF2SWG2js.numberToHex.call(void 0, nonce)]
197
197
  });
198
198
  }
199
199
 
@@ -211,7 +211,7 @@ async function setStorageAt(client, { address, index, value }) {
211
211
  method: `${client.mode}_setStorageAt`,
212
212
  params: [
213
213
  address,
214
- typeof index === "number" ? _chunkEAD66IDCjs.numberToHex.call(void 0, index) : index,
214
+ typeof index === "number" ? _chunkDEF2SWG2js.numberToHex.call(void 0, index) : index,
215
215
  value
216
216
  ]
217
217
  });
@@ -262,4 +262,4 @@ async function stopImpersonatingAccount(client, { address }) {
262
262
 
263
263
 
264
264
  exports.dropTransaction = dropTransaction; exports.getAutomine = getAutomine; exports.getTxpoolContent = getTxpoolContent; exports.getTxpoolStatus = getTxpoolStatus; exports.impersonateAccount = impersonateAccount; exports.increaseTime = increaseTime; exports.inspectTxpool = inspectTxpool; exports.mine = mine; exports.removeBlockTimestampInterval = removeBlockTimestampInterval; exports.reset = reset; exports.revert = revert; exports.sendUnsignedTransaction = sendUnsignedTransaction; exports.setAutomine = setAutomine; exports.setBalance = setBalance; exports.setBlockGasLimit = setBlockGasLimit; exports.setBlockTimestampInterval = setBlockTimestampInterval; exports.setCode = setCode; exports.setCoinbase = setCoinbase; exports.setIntervalMining = setIntervalMining; exports.setLoggingEnabled = setLoggingEnabled; exports.setMinGasPrice = setMinGasPrice; exports.setNextBlockBaseFeePerGas = setNextBlockBaseFeePerGas; exports.setNextBlockTimestamp = setNextBlockTimestamp; exports.setNonce = setNonce; exports.setRpcUrl = setRpcUrl; exports.setStorageAt = setStorageAt; exports.snapshot = snapshot; exports.stopImpersonatingAccount = stopImpersonatingAccount;
265
- //# sourceMappingURL=chunk-BHMSFL4W.js.map
265
+ //# sourceMappingURL=chunk-S3HZ74MN.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  readContract
3
- } from "./chunk-EYRMK2SV.mjs";
3
+ } from "./chunk-HJBIOX2W.mjs";
4
4
  import {
5
5
  ChainDoesNotSupportContract,
6
6
  ContractFunctionExecutionError,
@@ -13,7 +13,7 @@ import {
13
13
  stringToBytes,
14
14
  toBytes,
15
15
  toHex
16
- } from "./chunk-25AJVKAT.mjs";
16
+ } from "./chunk-P76FCR36.mjs";
17
17
 
18
18
  // src/utils/ens/labelhash.ts
19
19
  function labelhash(label) {
@@ -207,4 +207,4 @@ export {
207
207
  getEnsAddress,
208
208
  getEnsName
209
209
  };
210
- //# sourceMappingURL=chunk-23UHN6UC.mjs.map
210
+ //# sourceMappingURL=chunk-ZIH5V7HU.mjs.map
@@ -11,7 +11,7 @@ import {
11
11
  getTransactionError,
12
12
  numberToHex,
13
13
  toHex
14
- } from "./chunk-25AJVKAT.mjs";
14
+ } from "./chunk-P76FCR36.mjs";
15
15
 
16
16
  // src/actions/wallet/addChain.ts
17
17
  async function addChain(client, { chain }) {
@@ -194,4 +194,4 @@ export {
194
194
  watchAsset,
195
195
  writeContract
196
196
  };
197
- //# sourceMappingURL=chunk-IP3NSE7H.mjs.map
197
+ //# sourceMappingURL=chunk-ZZWYDER3.mjs.map
@@ -1,7 +1,7 @@
1
1
  export { D as DecodeAbiArgs, a as DecodeErrorResultArgs, b as DecodeErrorResultResponse, c as DecodeEventLogArgs, d as DecodeEventLogResponse, e as DecodeFunctionDataArgs, f as DecodeFunctionResultArgs, g as DecodeFunctionResultResponse, E as EncodeAbiArgs, h as EncodeDeployDataArgs, i as EncodeErrorResultArgs, j as EncodeEventTopicsArgs, k as EncodeFunctionDataArgs, l as EncodeFunctionResultArgs, G as GetAbiItemArgs, m as decodeAbi, n as decodeErrorResult, o as decodeEventLog, p as decodeFunctionData, q as decodeFunctionResult, r as encodeAbi, s as encodeDeployData, t as encodeErrorResult, u as encodeEventTopics, v as encodeFunctionData, w as encodeFunctionResult, x as getAbiItem } from './getAbiItem-6d4f64d2.js';
2
2
  export { a as formatAbiItem, f as formatAbiItemWithArgs } from './formatAbiItem-50cb39d8.js';
3
3
  export { D as DeployContractArgs, e as DeployContractResponse, b as WriteContractArgs, g as WriteContractResponse, h as deployContract, w as writeContract } from './wallet-cf5c8351.js';
4
- export { g as CreateContractEventFilterArgs, h as CreateContractEventFilterResponse, i as EstimateContractGasArgs, j as EstimateContractGasResponse, G as GetBytecodeArgs, k as GetBytecodeResponse, l as GetStorageAtArgs, m as GetStorageAtResponse, M as MulticallArgs, n as MulticallResponse, O as OnLogs, o as OnLogsResponse, R as ReadContractArgs, p as ReadContractResponse, S as SimulateContractArgs, q as SimulateContractResponse, W as WatchContractEventArgs, r as createContractEventFilter, s as estimateContractGas, t as getBytecode, u as getStorageAt, v as multicall, w as readContract, x as simulateContract, y as watchContractEvent } from './createPublicClient-99be385b.js';
4
+ export { g as CreateContractEventFilterArgs, h as CreateContractEventFilterResponse, i as EstimateContractGasArgs, j as EstimateContractGasResponse, G as GetBytecodeArgs, k as GetBytecodeResponse, l as GetStorageAtArgs, m as GetStorageAtResponse, M as MulticallArgs, n as MulticallResponse, O as OnLogs, o as OnLogsResponse, R as ReadContractArgs, p as ReadContractResponse, S as SimulateContractArgs, q as SimulateContractResponse, W as WatchContractEventArgs, r as createContractEventFilter, s as estimateContractGas, t as getBytecode, u as getStorageAt, v as multicall, w as readContract, x as simulateContract, y as watchContractEvent } from './createPublicClient-2187596f.js';
5
5
  import 'abitype';
6
6
  import './chain-00b37e4e.js';
7
7
  import '@wagmi/chains';
package/dist/contract.js CHANGED
@@ -7,11 +7,11 @@
7
7
 
8
8
 
9
9
 
10
- var _chunkZX4U6QKQjs = require('./chunk-ZX4U6QKQ.js');
10
+ var _chunk4TDJALZ6js = require('./chunk-4TDJALZ6.js');
11
11
 
12
12
 
13
13
 
14
- var _chunkVOK5ALITjs = require('./chunk-VOK5ALIT.js');
14
+ var _chunkK3Q7U5IYjs = require('./chunk-K3Q7U5IY.js');
15
15
 
16
16
 
17
17
 
@@ -27,7 +27,7 @@ var _chunkVOK5ALITjs = require('./chunk-VOK5ALIT.js');
27
27
 
28
28
 
29
29
 
30
- var _chunkEAD66IDCjs = require('./chunk-EAD66IDC.js');
30
+ var _chunkDEF2SWG2js = require('./chunk-DEF2SWG2.js');
31
31
 
32
32
 
33
33
 
@@ -53,5 +53,5 @@ var _chunkEAD66IDCjs = require('./chunk-EAD66IDC.js');
53
53
 
54
54
 
55
55
 
56
- exports.createContractEventFilter = _chunkZX4U6QKQjs.createContractEventFilter; exports.decodeAbi = _chunkEAD66IDCjs.decodeAbi; exports.decodeErrorResult = _chunkEAD66IDCjs.decodeErrorResult; exports.decodeEventLog = _chunkEAD66IDCjs.decodeEventLog; exports.decodeFunctionData = _chunkEAD66IDCjs.decodeFunctionData; exports.decodeFunctionResult = _chunkEAD66IDCjs.decodeFunctionResult; exports.deployContract = _chunkVOK5ALITjs.deployContract; exports.encodeAbi = _chunkEAD66IDCjs.encodeAbi; exports.encodeDeployData = _chunkEAD66IDCjs.encodeDeployData; exports.encodeErrorResult = _chunkEAD66IDCjs.encodeErrorResult; exports.encodeEventTopics = _chunkEAD66IDCjs.encodeEventTopics; exports.encodeFunctionData = _chunkEAD66IDCjs.encodeFunctionData; exports.encodeFunctionResult = _chunkEAD66IDCjs.encodeFunctionResult; exports.estimateContractGas = _chunkZX4U6QKQjs.estimateContractGas; exports.formatAbiItem = _chunkEAD66IDCjs.formatAbiItem; exports.formatAbiItemWithArgs = _chunkEAD66IDCjs.formatAbiItemWithArgs; exports.getAbiItem = _chunkEAD66IDCjs.getAbiItem; exports.getBytecode = _chunkZX4U6QKQjs.getBytecode; exports.getStorageAt = _chunkZX4U6QKQjs.getStorageAt; exports.multicall = _chunkZX4U6QKQjs.multicall; exports.readContract = _chunkZX4U6QKQjs.readContract; exports.simulateContract = _chunkZX4U6QKQjs.simulateContract; exports.watchContractEvent = _chunkZX4U6QKQjs.watchContractEvent; exports.writeContract = _chunkVOK5ALITjs.writeContract;
56
+ exports.createContractEventFilter = _chunk4TDJALZ6js.createContractEventFilter; exports.decodeAbi = _chunkDEF2SWG2js.decodeAbi; exports.decodeErrorResult = _chunkDEF2SWG2js.decodeErrorResult; exports.decodeEventLog = _chunkDEF2SWG2js.decodeEventLog; exports.decodeFunctionData = _chunkDEF2SWG2js.decodeFunctionData; exports.decodeFunctionResult = _chunkDEF2SWG2js.decodeFunctionResult; exports.deployContract = _chunkK3Q7U5IYjs.deployContract; exports.encodeAbi = _chunkDEF2SWG2js.encodeAbi; exports.encodeDeployData = _chunkDEF2SWG2js.encodeDeployData; exports.encodeErrorResult = _chunkDEF2SWG2js.encodeErrorResult; exports.encodeEventTopics = _chunkDEF2SWG2js.encodeEventTopics; exports.encodeFunctionData = _chunkDEF2SWG2js.encodeFunctionData; exports.encodeFunctionResult = _chunkDEF2SWG2js.encodeFunctionResult; exports.estimateContractGas = _chunk4TDJALZ6js.estimateContractGas; exports.formatAbiItem = _chunkDEF2SWG2js.formatAbiItem; exports.formatAbiItemWithArgs = _chunkDEF2SWG2js.formatAbiItemWithArgs; exports.getAbiItem = _chunkDEF2SWG2js.getAbiItem; exports.getBytecode = _chunk4TDJALZ6js.getBytecode; exports.getStorageAt = _chunk4TDJALZ6js.getStorageAt; exports.multicall = _chunk4TDJALZ6js.multicall; exports.readContract = _chunk4TDJALZ6js.readContract; exports.simulateContract = _chunk4TDJALZ6js.simulateContract; exports.watchContractEvent = _chunk4TDJALZ6js.watchContractEvent; exports.writeContract = _chunkK3Q7U5IYjs.writeContract;
57
57
  //# sourceMappingURL=contract.js.map
package/dist/contract.mjs CHANGED
@@ -7,11 +7,11 @@ import {
7
7
  readContract,
8
8
  simulateContract,
9
9
  watchContractEvent
10
- } from "./chunk-EYRMK2SV.mjs";
10
+ } from "./chunk-HJBIOX2W.mjs";
11
11
  import {
12
12
  deployContract,
13
13
  writeContract
14
- } from "./chunk-IP3NSE7H.mjs";
14
+ } from "./chunk-ZZWYDER3.mjs";
15
15
  import {
16
16
  decodeAbi,
17
17
  decodeErrorResult,
@@ -27,7 +27,7 @@ import {
27
27
  formatAbiItem,
28
28
  formatAbiItemWithArgs,
29
29
  getAbiItem
30
- } from "./chunk-25AJVKAT.mjs";
30
+ } from "./chunk-P76FCR36.mjs";
31
31
  export {
32
32
  createContractEventFilter,
33
33
  decodeAbi,
@@ -605,7 +605,7 @@ type PublicActions<TChain extends Chain = Chain> = {
605
605
  estimateContractGas: <TChain extends Chain, TAbi extends Abi | readonly unknown[], TFunctionName extends string>(args: EstimateContractGasArgs<TChain, TAbi, TFunctionName>) => Promise<EstimateContractGasResponse>;
606
606
  estimateGas: (args: EstimateGasArgs<TChain>) => Promise<EstimateGasResponse>;
607
607
  getBalance: (args: GetBalanceArgs) => Promise<GetBalanceResponse>;
608
- getBlock: (args: GetBlockArgs) => Promise<GetBlockResponse<TChain>>;
608
+ getBlock: (args?: GetBlockArgs) => Promise<GetBlockResponse<TChain>>;
609
609
  getBlockNumber: (args?: GetBlockNumberArgs) => Promise<GetBlockNumberResponse>;
610
610
  getBlockTransactionCount: (args?: GetBlockTransactionCountArgs) => Promise<GetBlockTransactionCountResponse>;
611
611
  getBytecode: (args: GetBytecodeArgs) => Promise<GetBytecodeResponse>;
package/dist/ens.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { z as GetEnsAddressArgs, A as GetEnsNameArgs, D as getEnsAddress, H as getEnsName } from './createPublicClient-99be385b.js';
1
+ export { z as GetEnsAddressArgs, A as GetEnsNameArgs, D as getEnsAddress, H as getEnsName } from './createPublicClient-2187596f.js';
2
2
  export { l as labelhash, n as namehash } from './namehash-88f4639d.js';
3
3
  import './eip1193-fcdeee04.js';
4
4
  import './chain-00b37e4e.js';
package/dist/ens.js CHANGED
@@ -3,9 +3,9 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkNPFW67BVjs = require('./chunk-NPFW67BV.js');
7
- require('./chunk-ZX4U6QKQ.js');
8
- require('./chunk-EAD66IDC.js');
6
+ var _chunkNZUM6QVJjs = require('./chunk-NZUM6QVJ.js');
7
+ require('./chunk-4TDJALZ6.js');
8
+ require('./chunk-DEF2SWG2.js');
9
9
 
10
10
  // src/utils/ens/normalize.ts
11
11
  var _idnauts46hx = require('idna-uts46-hx');
@@ -18,5 +18,5 @@ function normalize(name) {
18
18
 
19
19
 
20
20
 
21
- exports.getEnsAddress = _chunkNPFW67BVjs.getEnsAddress; exports.getEnsName = _chunkNPFW67BVjs.getEnsName; exports.labelhash = _chunkNPFW67BVjs.labelhash; exports.namehash = _chunkNPFW67BVjs.namehash; exports.normalize = normalize;
21
+ exports.getEnsAddress = _chunkNZUM6QVJjs.getEnsAddress; exports.getEnsName = _chunkNZUM6QVJjs.getEnsName; exports.labelhash = _chunkNZUM6QVJjs.labelhash; exports.namehash = _chunkNZUM6QVJjs.namehash; exports.normalize = normalize;
22
22
  //# sourceMappingURL=ens.js.map
package/dist/ens.mjs CHANGED
@@ -3,9 +3,9 @@ import {
3
3
  getEnsName,
4
4
  labelhash,
5
5
  namehash
6
- } from "./chunk-23UHN6UC.mjs";
7
- import "./chunk-EYRMK2SV.mjs";
8
- import "./chunk-25AJVKAT.mjs";
6
+ } from "./chunk-ZIH5V7HU.mjs";
7
+ import "./chunk-HJBIOX2W.mjs";
8
+ import "./chunk-P76FCR36.mjs";
9
9
 
10
10
  // src/utils/ens/normalize.ts
11
11
  import { toUnicode } from "idna-uts46-hx";
package/dist/index.d.ts CHANGED
@@ -1,19 +1,19 @@
1
1
  import { T as TransportConfig, a as Transport, B as BaseRpcRequests } from './createClient-5258d590.js';
2
2
  export { C as Client, b as ClientConfig, a as Transport, T as TransportConfig, c as createClient, d as createTransport } from './createClient-5258d590.js';
3
+ import { B as BaseError, H as HttpOptions, R as RpcResponse } from './parseGwei-308eada9.js';
4
+ export { B as BaseError, C as CallExecutionError, a as ContractFunctionExecutionError, b as ContractFunctionRevertedError, c as ContractFunctionZeroDataError, E as EstimateGasExecutionError, d as ExecutionRevertedError, F as FeeCapTooHighError, e as FeeCapTooLowError, G as GetContractAddressOptions, o as GetCreate2AddressOptions, p as GetCreateAddressOptions, I as InsufficientFundsError, f as IntrinsicGasTooHighError, g as IntrinsicGasTooLowError, N as NonceMaxValueError, h as NonceTooHighError, i as NonceTooLowError, j as RawContractError, T as TipAboveFeeCapError, q as ToRlpResponse, k as TransactionExecutionError, m as TransactionNotFoundError, n as TransactionReceiptNotFoundError, l as TransactionTypeNotSupportedError, U as UnknownNodeError, W as WaitForTransactionReceiptTimeoutError, r as boolToBytes, s as boolToHex, t as bytesToBigint, u as bytesToBool, v as bytesToHex, w as bytesToNumber, x as bytesToString, y as etherUnits, z as formatEther, A as formatGwei, D as formatUnit, J as fromBytes, K as fromHex, L as fromRlp, M as getAddress, O as getContractAddress, P as getContractError, Q as getCreate2Address, S as getCreateAddress, V as getEventSelector, X as getFunctionSelector, Y as gweiUnits, Z as hexToBigInt, _ as hexToBool, $ as hexToBytes, a0 as hexToNumber, a1 as hexToString, a2 as isAddress, a3 as isAddressEqual, a4 as isBytes, a5 as isHex, a6 as keccak256, a7 as numberToBytes, a8 as numberToHex, a9 as pad, aa as padBytes, ab as padHex, ac as parseEther, ad as parseGwei, ae as parseUnit, af as size, ag as slice, ah as sliceBytes, ai as sliceHex, aj as stringToBytes, ak as stringToHex, al as stringify, am as toBytes, an as toHex, ao as toRlp, ap as trim, aq as weiUnits } from './parseGwei-308eada9.js';
3
5
  import WebSocket from 'isomorphic-ws';
4
6
  import { H as Hex, a as Hash, C as Chain, B as ByteArray } from './chain-00b37e4e.js';
5
7
  export { b as AbiItem, c as AccessList, A as Address, d as Block, e as BlockIdentifier, f as BlockNumber, g as BlockTag, B as ByteArray, C as Chain, h as ContractConfig, J as ExtractFormatter, F as FeeHistory, i as FeeValues, j as FeeValuesEIP1559, k as FeeValuesLegacy, K as Formatted, M as FormattedTransaction, a as Hash, H as Hex, L as Log, R as RpcBlock, l as RpcBlockIdentifier, m as RpcBlockNumber, n as RpcFeeHistory, o as RpcFeeValues, p as RpcLog, q as RpcTransaction, r as RpcTransactionReceipt, s as RpcTransactionRequest, t as RpcUncle, z as Transaction, D as TransactionBase, E as TransactionEIP1559, G as TransactionEIP2930, N as TransactionFormatter, I as TransactionLegacy, T as TransactionReceipt, u as TransactionRequest, v as TransactionRequestBase, w as TransactionRequestEIP1559, x as TransactionRequestEIP2930, y as TransactionRequestLegacy, U as Uncle, O as defineTransaction, P as formatTransaction, Q as transactionType } from './chain-00b37e4e.js';
6
- import { B as BaseError, R as RpcResponse } from './parseGwei-e299cf13.js';
7
- export { B as BaseError, C as CallExecutionError, a as ContractFunctionExecutionError, b as ContractFunctionRevertedError, c as ContractFunctionZeroDataError, E as EstimateGasExecutionError, d as ExecutionRevertedError, F as FeeCapTooHighError, e as FeeCapTooLowError, G as GetContractAddressOptions, o as GetCreate2AddressOptions, p as GetCreateAddressOptions, I as InsufficientFundsError, f as IntrinsicGasTooHighError, g as IntrinsicGasTooLowError, N as NonceMaxValueError, h as NonceTooHighError, i as NonceTooLowError, j as RawContractError, T as TipAboveFeeCapError, q as ToRlpResponse, k as TransactionExecutionError, m as TransactionNotFoundError, n as TransactionReceiptNotFoundError, l as TransactionTypeNotSupportedError, U as UnknownNodeError, W as WaitForTransactionReceiptTimeoutError, r as boolToBytes, s as boolToHex, t as bytesToBigint, u as bytesToBool, v as bytesToHex, w as bytesToNumber, x as bytesToString, y as etherUnits, z as formatEther, A as formatGwei, D as formatUnit, H as fromBytes, J as fromHex, K as fromRlp, L as getAddress, M as getContractAddress, O as getContractError, P as getCreate2Address, Q as getCreateAddress, S as getEventSignature, V as getFunctionSignature, X as gweiUnits, Y as hexToBigInt, Z as hexToBool, _ as hexToBytes, $ as hexToNumber, a0 as hexToString, a1 as isAddress, a2 as isAddressEqual, a3 as isBytes, a4 as isHex, a5 as keccak256, a6 as numberToBytes, a7 as numberToHex, a8 as pad, a9 as padBytes, aa as padHex, ab as parseEther, ac as parseGwei, ad as parseUnit, ae as size, af as slice, ag as sliceBytes, ah as sliceHex, ai as stringToBytes, aj as stringToHex, ak as stringify, al as toBytes, am as toHex, an as toRlp, ao as trim, ap as weiUnits } from './parseGwei-e299cf13.js';
8
- export { B as BlockFormatter, F as FormattedBlock, b as FormattedTransactionReceipt, P as PublicClient, a as PublicClientConfig, T as TransactionReceiptFormatter, c as createPublicClient, d as defineBlock, e as defineTransactionReceipt, f as formatBlock } from './createPublicClient-99be385b.js';
8
+ export { B as BlockFormatter, F as FormattedBlock, b as FormattedTransactionReceipt, P as PublicClient, a as PublicClientConfig, T as TransactionReceiptFormatter, c as createPublicClient, d as defineBlock, e as defineTransactionReceipt, f as formatBlock } from './createPublicClient-2187596f.js';
9
9
  export { T as TestClient, a as TestClientConfig, c as createTestClient } from './test-79ec416c.js';
10
10
  export { F as FormattedTransactionRequest, T as TransactionRequestFormatter, W as WalletClient, a as WalletClientConfig, c as createWalletClient, d as defineTransactionRequest, f as formatTransactionRequest } from './wallet-cf5c8351.js';
11
11
  export { l as labelhash, n as namehash } from './namehash-88f4639d.js';
12
12
  export { D as DecodeAbiArgs, a as DecodeErrorResultArgs, b as DecodeErrorResultResponse, c as DecodeEventLogArgs, d as DecodeEventLogResponse, e as DecodeFunctionDataArgs, f as DecodeFunctionResultArgs, g as DecodeFunctionResultResponse, E as EncodeAbiArgs, h as EncodeDeployDataArgs, i as EncodeErrorResultArgs, j as EncodeEventTopicsArgs, k as EncodeFunctionDataArgs, l as EncodeFunctionResultArgs, G as GetAbiItemArgs, m as decodeAbi, n as decodeErrorResult, o as decodeEventLog, p as decodeFunctionData, q as decodeFunctionResult, r as encodeAbi, s as encodeDeployData, t as encodeErrorResult, u as encodeEventTopics, v as encodeFunctionData, w as encodeFunctionResult, x as getAbiItem } from './getAbiItem-6d4f64d2.js';
13
13
  export { d as defineChain } from './chain-38182d92.js';
14
14
  import './eip1193-fcdeee04.js';
15
- import '@wagmi/chains';
16
15
  import 'abitype';
16
+ import '@wagmi/chains';
17
17
  import 'ethers@6/types/providers';
18
18
  import 'abitype/dist/abi-78346466';
19
19
 
@@ -322,6 +322,16 @@ declare class JsonRpcVersionUnsupportedError extends RpcRequestError {
322
322
  code: number;
323
323
  constructor(err: RpcError);
324
324
  }
325
+ declare class UserRejectedRequestError extends RpcRequestError {
326
+ name: string;
327
+ code: number;
328
+ constructor(err: RpcError);
329
+ }
330
+ declare class SwitchChainError extends RpcRequestError {
331
+ name: string;
332
+ code: number;
333
+ constructor(err: RpcError);
334
+ }
325
335
  declare class UnknownRpcError extends RequestError {
326
336
  name: string;
327
337
  constructor(err: Error);
@@ -368,6 +378,11 @@ type FallbackTransport = Transport<'fallback', {
368
378
  declare function fallback(transports: Transport[], config?: FallbackTransportConfig): FallbackTransport;
369
379
 
370
380
  type HttpTransportConfig = {
381
+ /**
382
+ * Request configuration to pass to `fetch`.
383
+ * @link https://developer.mozilla.org/en-US/docs/Web/API/fetch
384
+ */
385
+ fetchOptions?: HttpOptions['fetchOptions'];
371
386
  /** The key of the HTTP transport. */
372
387
  key?: TransportConfig['key'];
373
388
  /** The name of the HTTP transport. */
@@ -460,4 +475,4 @@ declare const multicall3Abi: readonly [{
460
475
  readonly type: "function";
461
476
  }];
462
477
 
463
- export { AbiConstructorNotFoundError, AbiConstructorParamsNotFoundError, AbiDecodingDataSizeInvalidError, AbiDecodingZeroDataError, AbiEncodingArrayLengthMismatchError, AbiEncodingLengthMismatchError, AbiErrorInputsNotFoundError, AbiErrorNotFoundError, AbiErrorSignatureNotFoundError, AbiEventNotFoundError, AbiEventSignatureNotFoundError, AbiFunctionNotFoundError, AbiFunctionOutputsNotFoundError, AbiFunctionSignatureNotFoundError, BlockNotFoundError, ChainDoesNotSupportContract, CustomTransport, CustomTransportConfig, DataLengthTooLongError, DataLengthTooShortError, FallbackTransport, FallbackTransportConfig, FilterTypeNotSupportedError, HttpRequestError, HttpTransport, HttpTransportConfig, InternalRpcError, InvalidAbiDecodingTypeError, InvalidAbiEncodingTypeError, InvalidAddressError, InvalidArrayError, InvalidBytesBooleanError, InvalidDefinitionTypeError, InvalidHexBooleanError, InvalidHexValueError, InvalidInputRpcError, InvalidParamsRpcError, InvalidRequestRpcError, JsonRpcVersionUnsupportedError, LimitExceededRpcError, MethodNotFoundRpcError, MethodNotSupportedRpcError, OffsetOutOfBoundsError, ParseRpcError, RequestError, ResourceNotFoundRpcError, ResourceUnavailableRpcError, RpcError, RpcRequestError, SizeExceedsPaddingSizeError, TimeoutError, TransactionRejectedRpcError, UnknownRpcError, UrlRequiredError, WebSocketRequestError, WebSocketTransport, WebSocketTransportConfig, custom, fallback, http, multicall3Abi, webSocket };
478
+ export { AbiConstructorNotFoundError, AbiConstructorParamsNotFoundError, AbiDecodingDataSizeInvalidError, AbiDecodingZeroDataError, AbiEncodingArrayLengthMismatchError, AbiEncodingLengthMismatchError, AbiErrorInputsNotFoundError, AbiErrorNotFoundError, AbiErrorSignatureNotFoundError, AbiEventNotFoundError, AbiEventSignatureNotFoundError, AbiFunctionNotFoundError, AbiFunctionOutputsNotFoundError, AbiFunctionSignatureNotFoundError, BlockNotFoundError, ChainDoesNotSupportContract, CustomTransport, CustomTransportConfig, DataLengthTooLongError, DataLengthTooShortError, FallbackTransport, FallbackTransportConfig, FilterTypeNotSupportedError, HttpRequestError, HttpTransport, HttpTransportConfig, InternalRpcError, InvalidAbiDecodingTypeError, InvalidAbiEncodingTypeError, InvalidAddressError, InvalidArrayError, InvalidBytesBooleanError, InvalidDefinitionTypeError, InvalidHexBooleanError, InvalidHexValueError, InvalidInputRpcError, InvalidParamsRpcError, InvalidRequestRpcError, JsonRpcVersionUnsupportedError, LimitExceededRpcError, MethodNotFoundRpcError, MethodNotSupportedRpcError, OffsetOutOfBoundsError, ParseRpcError, RequestError, ResourceNotFoundRpcError, ResourceUnavailableRpcError, RpcError, RpcRequestError, SizeExceedsPaddingSizeError, SwitchChainError, TimeoutError, TransactionRejectedRpcError, UnknownRpcError, UrlRequiredError, UserRejectedRequestError, WebSocketRequestError, WebSocketTransport, WebSocketTransportConfig, custom, fallback, http, multicall3Abi, webSocket };