viem 0.0.1-alpha.13 → 0.0.1-alpha.14

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.
@@ -1,4 +1,4 @@
1
- export { C as CallArgs, a as CallContractArgs, b as CallContractResponse, c as CallResponse, d as CreateBlockFilterResponse, e as CreatePendingTransactionFilterResponse, D as DeployContractArgs, g as DeployContractResponse, h as DropTransactionArgs, E as EstimateGasArgs, f as EstimateGasResponse, bk as FormattedTransactionRequest, G as GetBalanceArgs, i as GetBalanceResponse, j as GetBlockArgs, k as GetBlockNumberArgs, l as GetBlockNumberResponse, m as GetBlockResponse, n as GetBlockTransactionCountArgs, o as GetBlockTransactionCountResponse, p as GetFeeHistoryArgs, q as GetFeeHistoryResponse, r as GetFilterChangesArgs, s as GetFilterChangesResponse, t as GetFilterLogsArgs, u as GetFilterLogsResponse, v as GetGasPriceResponse, w as GetPermissionsResponse, x as GetTransactionArgs, y as GetTransactionConfirmationsArgs, z as GetTransactionConfirmationsResponse, A as GetTransactionCountArgs, B as GetTransactionCountResponse, H as GetTransactionReceiptArgs, I as GetTransactionReceiptResponse, F as GetTransactionResponse, J as ImpersonateAccountArgs, K as IncreaseTimeArgs, M as MineArgs, O as OnBlock, L as OnBlockNumber, N as OnBlockNumberResponse, P as OnBlockResponse, Q as OnTransactions, R as OnTransactionsResponse, bi as ReplacementReason, bj as ReplacementResponse, T as RequestPermissionsResponse, S as ResetArgs, U as RevertArgs, V as SendTransactionArgs, W as SendTransactionResponse, X as SendUnsignedTransactionArgs, Y as SendUnsignedTransactionResponse, Z as SetBalanceArgs, _ as SetBlockGasLimitArgs, a3 as SetBlockTimestampIntervalArgs, $ as SetCodeArgs, a0 as SetCoinbaseArgs, a1 as SetIntervalMiningArgs, a2 as SetMinGasPriceArgs, a5 as SetNextBlockBaseFeePerGasArgs, a4 as SetNextBlockTimestampArgs, a6 as SetNonceArgs, a7 as SetStorageAtArgs, a8 as SignMessageArgs, a9 as SignMessageResponse, aa as StopImpersonatingAccountArgs, ab as SwitchChainArgs, ac as UninstallFilterArgs, ad as UninstallFilterResponse, ae as WaitForTransactionReceiptArgs, af as WaitForTransactionReceiptResponse, ag as WatchAssetArgs, ah as WatchAssetResponse, ai as WatchBlockNumberArgs, aj as WatchBlocksArgs, ak as WatchPendingTransactionsArgs, al as addChain, am as call, an as callContract, ao as createBlockFilter, ap as createPendingTransactionFilter, aq as deployContract, ar as dropTransaction, as as estimateGas, at as getAccounts, au as getAutomine, av as getBalance, aw as getBlock, ax as getBlockNumber, bh as getBlockNumberCache, ay as getBlockTransactionCount, az as getChainId, aA as getFeeHistory, aB as getFilterChanges, aC as getFilterLogs, aD as getGasPrice, aE as getPermissions, aF as getTransaction, aG as getTransactionConfirmations, aH as getTransactionCount, aI as getTransactionReceipt, aJ as getTxpoolContent, aK as getTxpoolStatus, aL as impersonateAccount, aM as increaseTime, aN as inspectTxpool, aO as mine, aP as removeBlockTimestampInterval, aR as requestAccounts, aS as requestPermissions, aQ as reset, aT as revert, aU as sendTransaction, aV as sendUnsignedTransaction, aW as setAutomine, aX as setBalance, aY as setBlockGasLimit, aZ as setBlockTimestampInterval, a_ as setCode, a$ as setCoinbase, b0 as setIntervalMining, b1 as setLoggingEnabled, b2 as setMinGasPrice, b3 as setNextBlockBaseFeePerGas, b4 as setNextBlockTimestamp, b5 as setNonce, b6 as setStorageAt, b7 as signMessage, b8 as snapshot, b9 as stopImpersonatingAccount, ba as switchChain, bb as uninstallFilter, bc as waitForTransactionReceipt, bd as watchAsset, be as watchBlockNumber, bf as watchBlocks, bg as watchPendingTransactions } from '../stopImpersonatingAccount-70c4a70c.js';
1
+ export { C as CallArgs, a as CallContractArgs, b as CallContractResponse, c as CallResponse, d as CreateBlockFilterResponse, e as CreatePendingTransactionFilterResponse, D as DeployContractArgs, g as DeployContractResponse, h as DropTransactionArgs, E as EstimateGasArgs, f as EstimateGasResponse, bn as FormattedTransactionRequest, G as GetBalanceArgs, i as GetBalanceResponse, j as GetBlockArgs, k as GetBlockNumberArgs, l as GetBlockNumberResponse, m as GetBlockResponse, n as GetBlockTransactionCountArgs, o as GetBlockTransactionCountResponse, p as GetBytecodeArgs, q as GetBytecodeResponse, r as GetFeeHistoryArgs, s as GetFeeHistoryResponse, t as GetFilterChangesArgs, u as GetFilterChangesResponse, v as GetFilterLogsArgs, w as GetFilterLogsResponse, x as GetGasPriceResponse, y as GetPermissionsResponse, z as GetTransactionArgs, A as GetTransactionConfirmationsArgs, B as GetTransactionConfirmationsResponse, F as GetTransactionCountArgs, H as GetTransactionCountResponse, J as GetTransactionReceiptArgs, K as GetTransactionReceiptResponse, I as GetTransactionResponse, L as ImpersonateAccountArgs, M as IncreaseTimeArgs, N as MineArgs, O as OnBlock, P as OnBlockNumber, Q as OnBlockNumberResponse, R as OnBlockResponse, S as OnTransactions, T as OnTransactionsResponse, bl as ReplacementReason, bm as ReplacementResponse, V as RequestPermissionsResponse, U as ResetArgs, W as RevertArgs, X as SendTransactionArgs, Y as SendTransactionResponse, Z as SendUnsignedTransactionArgs, _ as SendUnsignedTransactionResponse, $ as SetBalanceArgs, a0 as SetBlockGasLimitArgs, a5 as SetBlockTimestampIntervalArgs, a1 as SetCodeArgs, a2 as SetCoinbaseArgs, a3 as SetIntervalMiningArgs, a4 as SetMinGasPriceArgs, a7 as SetNextBlockBaseFeePerGasArgs, a6 as SetNextBlockTimestampArgs, a8 as SetNonceArgs, a9 as SetStorageAtArgs, aa as SignMessageArgs, ab as SignMessageResponse, ac as StopImpersonatingAccountArgs, ad as SwitchChainArgs, ae as UninstallFilterArgs, af as UninstallFilterResponse, ag as WaitForTransactionReceiptArgs, ah as WaitForTransactionReceiptResponse, ai as WatchAssetArgs, aj as WatchAssetResponse, ak as WatchBlockNumberArgs, al as WatchBlocksArgs, am as WatchPendingTransactionsArgs, an as addChain, ao as call, ap as callContract, aq as createBlockFilter, ar as createPendingTransactionFilter, as as deployContract, at as dropTransaction, au as estimateGas, av as getAccounts, aw as getAutomine, ax as getBalance, ay as getBlock, az as getBlockNumber, bk as getBlockNumberCache, aA as getBlockTransactionCount, aB as getBytecode, aC as getChainId, aD as getFeeHistory, aE as getFilterChanges, aF as getFilterLogs, aG as getGasPrice, aH as getPermissions, aI as getTransaction, aJ as getTransactionConfirmations, aK as getTransactionCount, aL as getTransactionReceipt, aM as getTxpoolContent, aN as getTxpoolStatus, aO as impersonateAccount, aP as increaseTime, aQ as inspectTxpool, aR as mine, aS as removeBlockTimestampInterval, aU as requestAccounts, aV as requestPermissions, aT as reset, aW as revert, aX as sendTransaction, aY as sendUnsignedTransaction, aZ as setAutomine, a_ as setBalance, a$ as setBlockGasLimit, b0 as setBlockTimestampInterval, b1 as setCode, b2 as setCoinbase, b3 as setIntervalMining, b4 as setLoggingEnabled, b5 as setMinGasPrice, b6 as setNextBlockBaseFeePerGas, b7 as setNextBlockTimestamp, b8 as setNonce, b9 as setStorageAt, ba as signMessage, bb as snapshot, bc as stopImpersonatingAccount, bd as switchChain, be as uninstallFilter, bf as waitForTransactionReceipt, bg as watchAsset, bh as watchBlockNumber, bi as watchBlocks, bj as watchPendingTransactions } from '../stopImpersonatingAccount-fcc5a678.js';
2
2
  import 'abitype';
3
3
  import '../chains.js';
4
4
  import '../rpc-b77c5aee.js';
@@ -60,9 +60,9 @@
60
60
 
61
61
 
62
62
 
63
- var _chunkOHOJCVQDjs = require('../chunk-OHOJCVQD.js');
64
- require('../chunk-AGF7GU6G.js');
65
63
 
64
+ var _chunkVUNR7KGGjs = require('../chunk-VUNR7KGG.js');
65
+ require('../chunk-6Z62LPKB.js');
66
66
 
67
67
 
68
68
 
@@ -124,4 +124,6 @@ require('../chunk-AGF7GU6G.js');
124
124
 
125
125
 
126
126
 
127
- exports.addChain = _chunkOHOJCVQDjs.addChain; exports.call = _chunkOHOJCVQDjs.call; exports.callContract = _chunkOHOJCVQDjs.callContract; exports.createBlockFilter = _chunkOHOJCVQDjs.createBlockFilter; exports.createPendingTransactionFilter = _chunkOHOJCVQDjs.createPendingTransactionFilter; exports.deployContract = _chunkOHOJCVQDjs.deployContract; exports.dropTransaction = _chunkOHOJCVQDjs.dropTransaction; exports.estimateGas = _chunkOHOJCVQDjs.estimateGas; exports.getAccounts = _chunkOHOJCVQDjs.getAccounts; exports.getAutomine = _chunkOHOJCVQDjs.getAutomine; exports.getBalance = _chunkOHOJCVQDjs.getBalance; exports.getBlock = _chunkOHOJCVQDjs.getBlock; exports.getBlockNumber = _chunkOHOJCVQDjs.getBlockNumber; exports.getBlockNumberCache = _chunkOHOJCVQDjs.getBlockNumberCache; exports.getBlockTransactionCount = _chunkOHOJCVQDjs.getBlockTransactionCount; exports.getChainId = _chunkOHOJCVQDjs.getChainId; exports.getFeeHistory = _chunkOHOJCVQDjs.getFeeHistory; exports.getFilterChanges = _chunkOHOJCVQDjs.getFilterChanges; exports.getFilterLogs = _chunkOHOJCVQDjs.getFilterLogs; exports.getGasPrice = _chunkOHOJCVQDjs.getGasPrice; exports.getPermissions = _chunkOHOJCVQDjs.getPermissions; exports.getTransaction = _chunkOHOJCVQDjs.getTransaction; exports.getTransactionConfirmations = _chunkOHOJCVQDjs.getTransactionConfirmations; exports.getTransactionCount = _chunkOHOJCVQDjs.getTransactionCount; exports.getTransactionReceipt = _chunkOHOJCVQDjs.getTransactionReceipt; exports.getTxpoolContent = _chunkOHOJCVQDjs.getTxpoolContent; exports.getTxpoolStatus = _chunkOHOJCVQDjs.getTxpoolStatus; exports.impersonateAccount = _chunkOHOJCVQDjs.impersonateAccount; exports.increaseTime = _chunkOHOJCVQDjs.increaseTime; exports.inspectTxpool = _chunkOHOJCVQDjs.inspectTxpool; exports.mine = _chunkOHOJCVQDjs.mine; exports.removeBlockTimestampInterval = _chunkOHOJCVQDjs.removeBlockTimestampInterval; exports.requestAccounts = _chunkOHOJCVQDjs.requestAccounts; exports.requestPermissions = _chunkOHOJCVQDjs.requestPermissions; exports.reset = _chunkOHOJCVQDjs.reset; exports.revert = _chunkOHOJCVQDjs.revert; exports.sendTransaction = _chunkOHOJCVQDjs.sendTransaction; exports.sendUnsignedTransaction = _chunkOHOJCVQDjs.sendUnsignedTransaction; exports.setAutomine = _chunkOHOJCVQDjs.setAutomine; exports.setBalance = _chunkOHOJCVQDjs.setBalance; exports.setBlockGasLimit = _chunkOHOJCVQDjs.setBlockGasLimit; exports.setBlockTimestampInterval = _chunkOHOJCVQDjs.setBlockTimestampInterval; exports.setCode = _chunkOHOJCVQDjs.setCode; exports.setCoinbase = _chunkOHOJCVQDjs.setCoinbase; exports.setIntervalMining = _chunkOHOJCVQDjs.setIntervalMining; exports.setLoggingEnabled = _chunkOHOJCVQDjs.setLoggingEnabled; exports.setMinGasPrice = _chunkOHOJCVQDjs.setMinGasPrice; exports.setNextBlockBaseFeePerGas = _chunkOHOJCVQDjs.setNextBlockBaseFeePerGas; exports.setNextBlockTimestamp = _chunkOHOJCVQDjs.setNextBlockTimestamp; exports.setNonce = _chunkOHOJCVQDjs.setNonce; exports.setStorageAt = _chunkOHOJCVQDjs.setStorageAt; exports.signMessage = _chunkOHOJCVQDjs.signMessage; exports.snapshot = _chunkOHOJCVQDjs.snapshot; exports.stopImpersonatingAccount = _chunkOHOJCVQDjs.stopImpersonatingAccount; exports.switchChain = _chunkOHOJCVQDjs.switchChain; exports.uninstallFilter = _chunkOHOJCVQDjs.uninstallFilter; exports.waitForTransactionReceipt = _chunkOHOJCVQDjs.waitForTransactionReceipt; exports.watchAsset = _chunkOHOJCVQDjs.watchAsset; exports.watchBlockNumber = _chunkOHOJCVQDjs.watchBlockNumber; exports.watchBlocks = _chunkOHOJCVQDjs.watchBlocks; exports.watchPendingTransactions = _chunkOHOJCVQDjs.watchPendingTransactions;
127
+
128
+
129
+ exports.addChain = _chunkVUNR7KGGjs.addChain; exports.call = _chunkVUNR7KGGjs.call; exports.callContract = _chunkVUNR7KGGjs.callContract; exports.createBlockFilter = _chunkVUNR7KGGjs.createBlockFilter; exports.createPendingTransactionFilter = _chunkVUNR7KGGjs.createPendingTransactionFilter; exports.deployContract = _chunkVUNR7KGGjs.deployContract; exports.dropTransaction = _chunkVUNR7KGGjs.dropTransaction; exports.estimateGas = _chunkVUNR7KGGjs.estimateGas; exports.getAccounts = _chunkVUNR7KGGjs.getAccounts; exports.getAutomine = _chunkVUNR7KGGjs.getAutomine; exports.getBalance = _chunkVUNR7KGGjs.getBalance; exports.getBlock = _chunkVUNR7KGGjs.getBlock; exports.getBlockNumber = _chunkVUNR7KGGjs.getBlockNumber; exports.getBlockNumberCache = _chunkVUNR7KGGjs.getBlockNumberCache; exports.getBlockTransactionCount = _chunkVUNR7KGGjs.getBlockTransactionCount; exports.getBytecode = _chunkVUNR7KGGjs.getBytecode; exports.getChainId = _chunkVUNR7KGGjs.getChainId; exports.getFeeHistory = _chunkVUNR7KGGjs.getFeeHistory; exports.getFilterChanges = _chunkVUNR7KGGjs.getFilterChanges; exports.getFilterLogs = _chunkVUNR7KGGjs.getFilterLogs; exports.getGasPrice = _chunkVUNR7KGGjs.getGasPrice; exports.getPermissions = _chunkVUNR7KGGjs.getPermissions; exports.getTransaction = _chunkVUNR7KGGjs.getTransaction; exports.getTransactionConfirmations = _chunkVUNR7KGGjs.getTransactionConfirmations; exports.getTransactionCount = _chunkVUNR7KGGjs.getTransactionCount; exports.getTransactionReceipt = _chunkVUNR7KGGjs.getTransactionReceipt; exports.getTxpoolContent = _chunkVUNR7KGGjs.getTxpoolContent; exports.getTxpoolStatus = _chunkVUNR7KGGjs.getTxpoolStatus; exports.impersonateAccount = _chunkVUNR7KGGjs.impersonateAccount; exports.increaseTime = _chunkVUNR7KGGjs.increaseTime; exports.inspectTxpool = _chunkVUNR7KGGjs.inspectTxpool; exports.mine = _chunkVUNR7KGGjs.mine; exports.removeBlockTimestampInterval = _chunkVUNR7KGGjs.removeBlockTimestampInterval; exports.requestAccounts = _chunkVUNR7KGGjs.requestAccounts; exports.requestPermissions = _chunkVUNR7KGGjs.requestPermissions; exports.reset = _chunkVUNR7KGGjs.reset; exports.revert = _chunkVUNR7KGGjs.revert; exports.sendTransaction = _chunkVUNR7KGGjs.sendTransaction; exports.sendUnsignedTransaction = _chunkVUNR7KGGjs.sendUnsignedTransaction; exports.setAutomine = _chunkVUNR7KGGjs.setAutomine; exports.setBalance = _chunkVUNR7KGGjs.setBalance; exports.setBlockGasLimit = _chunkVUNR7KGGjs.setBlockGasLimit; exports.setBlockTimestampInterval = _chunkVUNR7KGGjs.setBlockTimestampInterval; exports.setCode = _chunkVUNR7KGGjs.setCode; exports.setCoinbase = _chunkVUNR7KGGjs.setCoinbase; exports.setIntervalMining = _chunkVUNR7KGGjs.setIntervalMining; exports.setLoggingEnabled = _chunkVUNR7KGGjs.setLoggingEnabled; exports.setMinGasPrice = _chunkVUNR7KGGjs.setMinGasPrice; exports.setNextBlockBaseFeePerGas = _chunkVUNR7KGGjs.setNextBlockBaseFeePerGas; exports.setNextBlockTimestamp = _chunkVUNR7KGGjs.setNextBlockTimestamp; exports.setNonce = _chunkVUNR7KGGjs.setNonce; exports.setStorageAt = _chunkVUNR7KGGjs.setStorageAt; exports.signMessage = _chunkVUNR7KGGjs.signMessage; exports.snapshot = _chunkVUNR7KGGjs.snapshot; exports.stopImpersonatingAccount = _chunkVUNR7KGGjs.stopImpersonatingAccount; exports.switchChain = _chunkVUNR7KGGjs.switchChain; exports.uninstallFilter = _chunkVUNR7KGGjs.uninstallFilter; exports.waitForTransactionReceipt = _chunkVUNR7KGGjs.waitForTransactionReceipt; exports.watchAsset = _chunkVUNR7KGGjs.watchAsset; exports.watchBlockNumber = _chunkVUNR7KGGjs.watchBlockNumber; exports.watchBlocks = _chunkVUNR7KGGjs.watchBlocks; exports.watchPendingTransactions = _chunkVUNR7KGGjs.watchPendingTransactions;
@@ -14,6 +14,7 @@ import {
14
14
  getBlockNumber,
15
15
  getBlockNumberCache,
16
16
  getBlockTransactionCount,
17
+ getBytecode,
17
18
  getChainId,
18
19
  getFeeHistory,
19
20
  getFilterChanges,
@@ -60,8 +61,8 @@ import {
60
61
  watchBlockNumber,
61
62
  watchBlocks,
62
63
  watchPendingTransactions
63
- } from "../chunk-NJ5NFIT4.mjs";
64
- import "../chunk-4XV4JRFM.mjs";
64
+ } from "../chunk-DUNJAMH5.mjs";
65
+ import "../chunk-KB6CBNKW.mjs";
65
66
  export {
66
67
  addChain,
67
68
  call,
@@ -78,6 +79,7 @@ export {
78
79
  getBlockNumber,
79
80
  getBlockNumberCache,
80
81
  getBlockTransactionCount,
82
+ getBytecode,
81
83
  getChainId,
82
84
  getFeeHistory,
83
85
  getFilterChanges,
package/dist/chains.js CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkAGF7GU6Gjs = require('./chunk-AGF7GU6G.js');
6
+ var _chunk6Z62LPKBjs = require('./chunk-6Z62LPKB.js');
7
7
 
8
8
  // src/chains.ts
9
9
 
@@ -48,13 +48,13 @@ function defineFormatter({
48
48
  };
49
49
  };
50
50
  }
51
- var defineBlock = defineFormatter({ format: _chunkAGF7GU6Gjs.formatBlock });
52
- var defineTransaction = defineFormatter({ format: _chunkAGF7GU6Gjs.formatTransaction });
51
+ var defineBlock = defineFormatter({ format: _chunk6Z62LPKBjs.formatBlock });
52
+ var defineTransaction = defineFormatter({ format: _chunk6Z62LPKBjs.formatTransaction });
53
53
  var defineTransactionRequest = defineFormatter({
54
- format: _chunkAGF7GU6Gjs.formatTransactionRequest
54
+ format: _chunk6Z62LPKBjs.formatTransactionRequest
55
55
  });
56
56
  var defineTransactionReceipt = defineFormatter({
57
- format: _chunkAGF7GU6Gjs.formatTransactionReceipt
57
+ format: _chunk6Z62LPKBjs.formatTransactionReceipt
58
58
  });
59
59
  var arbitrumGoerli = defineChain(_chains.arbitrumGoerli);
60
60
  var arbitrum = defineChain(_chains.arbitrum);
package/dist/chains.mjs CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  formatTransaction,
4
4
  formatTransactionReceipt,
5
5
  formatTransactionRequest
6
- } from "./chunk-4XV4JRFM.mjs";
6
+ } from "./chunk-KB6CBNKW.mjs";
7
7
 
8
8
  // src/chains.ts
9
9
  import {
@@ -3,7 +3,7 @@ import {
3
3
  buildRequest,
4
4
  getSocket,
5
5
  rpc
6
- } from "./chunk-4XV4JRFM.mjs";
6
+ } from "./chunk-KB6CBNKW.mjs";
7
7
 
8
8
  // src/clients/transports/createTransport.ts
9
9
  function createTransport(config, value) {
@@ -9,7 +9,7 @@ var __publicField = (obj, key, value) => {
9
9
  var package_default = {
10
10
  name: "viem",
11
11
  description: "TypeScript Interface for Ethereum",
12
- version: "0.0.1-alpha.13",
12
+ version: "0.0.1-alpha.14",
13
13
  scripts: {
14
14
  anvil: "source .env && anvil --fork-url $VITE_ANVIL_FORK_URL --fork-block-number $VITE_ANVIL_BLOCK_NUMBER --block-time $VITE_ANVIL_BLOCK_TIME",
15
15
  bench: "vitest bench --no-threads",
@@ -25,7 +25,7 @@ import {
25
25
  numberToHex,
26
26
  wait,
27
27
  withCache
28
- } from "./chunk-4XV4JRFM.mjs";
28
+ } from "./chunk-KB6CBNKW.mjs";
29
29
 
30
30
  // src/actions/public/call.ts
31
31
  async function call(client, {
@@ -373,6 +373,18 @@ async function getBlockTransactionCount(client, {
373
373
  return hexToNumber(count);
374
374
  }
375
375
 
376
+ // src/actions/public/getBytecode.ts
377
+ async function getBytecode(client, { address, blockNumber, blockTag = "latest" }) {
378
+ const blockNumberHex = blockNumber !== void 0 ? numberToHex(blockNumber) : void 0;
379
+ const hex = await client.request({
380
+ method: "eth_getCode",
381
+ params: [address, blockNumberHex || blockTag]
382
+ });
383
+ if (hex === "0x")
384
+ return void 0;
385
+ return hex;
386
+ }
387
+
376
388
  // src/actions/public/getChainId.ts
377
389
  async function getChainId(client) {
378
390
  const chainIdHex = await client.request({ method: "eth_chainId" });
@@ -1058,6 +1070,7 @@ export {
1058
1070
  getBlockNumberCache,
1059
1071
  getBlockNumber,
1060
1072
  getBlockTransactionCount,
1073
+ getBytecode,
1061
1074
  getChainId,
1062
1075
  getFeeHistory,
1063
1076
  getFilterChanges,
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkAGF7GU6Gjs = require('./chunk-AGF7GU6G.js');
6
+ var _chunk6Z62LPKBjs = require('./chunk-6Z62LPKB.js');
7
7
 
8
8
  // src/clients/transports/createTransport.ts
9
9
  function createTransport(config, value) {
@@ -60,13 +60,13 @@ function http(url, { key = "http", name = "HTTP JSON-RPC" } = {}) {
60
60
  return ({ chain }) => {
61
61
  const url_ = url || _optionalChain([chain, 'optionalAccess', _ => _.rpcUrls, 'access', _2 => _2.default, 'access', _3 => _3.http, 'access', _4 => _4[0]]);
62
62
  if (!url_)
63
- throw new (0, _chunkAGF7GU6Gjs.UrlRequiredError)();
63
+ throw new (0, _chunk6Z62LPKBjs.UrlRequiredError)();
64
64
  return createTransport(
65
65
  {
66
66
  key,
67
67
  name,
68
68
  async request({ method, params }) {
69
- const { result } = await _chunkAGF7GU6Gjs.rpc.http(url_, {
69
+ const { result } = await _chunk6Z62LPKBjs.rpc.http(url_, {
70
70
  body: {
71
71
  method,
72
72
  params
@@ -91,14 +91,14 @@ function webSocket(url, {
91
91
  return ({ chain }) => {
92
92
  const url_ = url || _optionalChain([chain, 'optionalAccess', _5 => _5.rpcUrls, 'access', _6 => _6.default, 'access', _7 => _7.webSocket, 'optionalAccess', _8 => _8[0]]);
93
93
  if (!url_)
94
- throw new (0, _chunkAGF7GU6Gjs.UrlRequiredError)();
94
+ throw new (0, _chunk6Z62LPKBjs.UrlRequiredError)();
95
95
  return createTransport(
96
96
  {
97
97
  key,
98
98
  name,
99
99
  async request({ method, params }) {
100
- const socket = await _chunkAGF7GU6Gjs.getSocket.call(void 0, url_);
101
- const { result } = await _chunkAGF7GU6Gjs.rpc.webSocketAsync(socket, {
100
+ const socket = await _chunk6Z62LPKBjs.getSocket.call(void 0, url_);
101
+ const { result } = await _chunk6Z62LPKBjs.rpc.webSocketAsync(socket, {
102
102
  body: { method, params }
103
103
  });
104
104
  return result;
@@ -107,12 +107,12 @@ function webSocket(url, {
107
107
  },
108
108
  {
109
109
  getSocket() {
110
- return _chunkAGF7GU6Gjs.getSocket.call(void 0, url_);
110
+ return _chunk6Z62LPKBjs.getSocket.call(void 0, url_);
111
111
  },
112
112
  async subscribe({ params, onData, onError }) {
113
- const socket = await _chunkAGF7GU6Gjs.getSocket.call(void 0, url_);
113
+ const socket = await _chunk6Z62LPKBjs.getSocket.call(void 0, url_);
114
114
  const { result: subscriptionId } = await new Promise(
115
- (resolve, reject) => _chunkAGF7GU6Gjs.rpc.webSocket(socket, {
115
+ (resolve, reject) => _chunk6Z62LPKBjs.rpc.webSocket(socket, {
116
116
  body: {
117
117
  method: "eth_subscribe",
118
118
  params
@@ -134,7 +134,7 @@ function webSocket(url, {
134
134
  subscriptionId,
135
135
  async unsubscribe() {
136
136
  return new Promise(
137
- (resolve, reject) => _chunkAGF7GU6Gjs.rpc.webSocket(socket, {
137
+ (resolve, reject) => _chunk6Z62LPKBjs.rpc.webSocket(socket, {
138
138
  body: {
139
139
  method: "eth_unsubscribe",
140
140
  params: [subscriptionId]
@@ -181,7 +181,7 @@ function createClient({
181
181
  key,
182
182
  name,
183
183
  pollingInterval,
184
- request: _chunkAGF7GU6Gjs.buildRequest.call(void 0, config.request),
184
+ request: _chunk6Z62LPKBjs.buildRequest.call(void 0, config.request),
185
185
  transport: { ...config, ...value },
186
186
  type,
187
187
  uid: uid()
@@ -9,7 +9,7 @@ var __publicField = (obj, key, value) => {
9
9
  var package_default = {
10
10
  name: "viem",
11
11
  description: "TypeScript Interface for Ethereum",
12
- version: "0.0.1-alpha.13",
12
+ version: "0.0.1-alpha.14",
13
13
  scripts: {
14
14
  anvil: "source .env && anvil --fork-url $VITE_ANVIL_FORK_URL --fork-block-number $VITE_ANVIL_BLOCK_NUMBER --block-time $VITE_ANVIL_BLOCK_TIME",
15
15
  bench: "vitest bench --no-threads",
@@ -25,7 +25,7 @@
25
25
 
26
26
 
27
27
 
28
- var _chunkAGF7GU6Gjs = require('./chunk-AGF7GU6G.js');
28
+ var _chunk6Z62LPKBjs = require('./chunk-6Z62LPKB.js');
29
29
 
30
30
  // src/actions/public/call.ts
31
31
  async function call(client, {
@@ -45,10 +45,10 @@ async function call(client, {
45
45
  ...rest
46
46
  }) {
47
47
  if (maxFeePerGas !== void 0 && maxPriorityFeePerGas !== void 0 && maxFeePerGas < maxPriorityFeePerGas)
48
- throw new (0, _chunkAGF7GU6Gjs.InvalidGasArgumentsError)();
49
- const blockNumberHex = blockNumber ? _chunkAGF7GU6Gjs.numberToHex.call(void 0, blockNumber) : void 0;
48
+ throw new (0, _chunk6Z62LPKBjs.InvalidGasArgumentsError)();
49
+ const blockNumberHex = blockNumber ? _chunk6Z62LPKBjs.numberToHex.call(void 0, blockNumber) : void 0;
50
50
  const formatter = _optionalChain([chain, 'optionalAccess', _ => _.formatters, 'optionalAccess', _2 => _2.transactionRequest]);
51
- const request_ = _chunkAGF7GU6Gjs.format.call(void 0,
51
+ const request_ = _chunk6Z62LPKBjs.format.call(void 0,
52
52
  {
53
53
  from,
54
54
  accessList,
@@ -60,10 +60,10 @@ async function call(client, {
60
60
  nonce,
61
61
  to,
62
62
  value,
63
- ..._chunkAGF7GU6Gjs.extract.call(void 0, rest, { formatter })
63
+ ..._chunk6Z62LPKBjs.extract.call(void 0, rest, { formatter })
64
64
  },
65
65
  {
66
- formatter: formatter || _chunkAGF7GU6Gjs.formatTransactionRequest
66
+ formatter: formatter || _chunk6Z62LPKBjs.formatTransactionRequest
67
67
  }
68
68
  );
69
69
  const response = await client.request({
@@ -83,7 +83,7 @@ async function callContract(client, {
83
83
  functionName,
84
84
  ...callRequest
85
85
  }) {
86
- const calldata = _chunkAGF7GU6Gjs.encodeFunctionData.call(void 0, {
86
+ const calldata = _chunk6Z62LPKBjs.encodeFunctionData.call(void 0, {
87
87
  abi,
88
88
  args,
89
89
  functionName
@@ -94,13 +94,13 @@ async function callContract(client, {
94
94
  to: address,
95
95
  ...callRequest
96
96
  });
97
- return _chunkAGF7GU6Gjs.decodeFunctionResult.call(void 0, {
97
+ return _chunk6Z62LPKBjs.decodeFunctionResult.call(void 0, {
98
98
  abi,
99
99
  functionName,
100
100
  data: data || "0x"
101
101
  });
102
102
  } catch (err) {
103
- throw _chunkAGF7GU6Gjs.getContractError.call(void 0, err, {
103
+ throw _chunk6Z62LPKBjs.getContractError.call(void 0, err, {
104
104
  abi,
105
105
  address,
106
106
  args,
@@ -133,7 +133,7 @@ async function addChain(client, chain) {
133
133
  method: "wallet_addEthereumChain",
134
134
  params: [
135
135
  {
136
- chainId: _chunkAGF7GU6Gjs.numberToHex.call(void 0, id),
136
+ chainId: _chunk6Z62LPKBjs.numberToHex.call(void 0, id),
137
137
  chainName: name,
138
138
  nativeCurrency,
139
139
  rpcUrls: rpcUrls.default.http,
@@ -146,7 +146,7 @@ async function addChain(client, chain) {
146
146
  // src/actions/wallet/getAccounts.ts
147
147
  async function getAccounts(client) {
148
148
  const addresses = await client.request({ method: "eth_accounts" });
149
- return addresses.map((address) => _chunkAGF7GU6Gjs.checksumAddress.call(void 0, address));
149
+ return addresses.map((address) => _chunk6Z62LPKBjs.checksumAddress.call(void 0, address));
150
150
  }
151
151
 
152
152
  // src/actions/wallet/getPermissions.ts
@@ -158,7 +158,7 @@ async function getPermissions(client) {
158
158
  // src/actions/wallet/requestAccounts.ts
159
159
  async function requestAccounts(client) {
160
160
  const addresses = await client.request({ method: "eth_requestAccounts" });
161
- return addresses.map((address) => _chunkAGF7GU6Gjs.getAddress.call(void 0, address));
161
+ return addresses.map((address) => _chunk6Z62LPKBjs.getAddress.call(void 0, address));
162
162
  }
163
163
 
164
164
  // src/actions/wallet/requestPermissions.ts
@@ -185,9 +185,9 @@ async function sendTransaction(client, {
185
185
  ...rest
186
186
  }) {
187
187
  if (maxFeePerGas !== void 0 && maxPriorityFeePerGas !== void 0 && maxFeePerGas < maxPriorityFeePerGas)
188
- throw new (0, _chunkAGF7GU6Gjs.InvalidGasArgumentsError)();
188
+ throw new (0, _chunk6Z62LPKBjs.InvalidGasArgumentsError)();
189
189
  const formatter = _optionalChain([chain, 'optionalAccess', _3 => _3.formatters, 'optionalAccess', _4 => _4.transactionRequest]);
190
- const request_ = _chunkAGF7GU6Gjs.format.call(void 0,
190
+ const request_ = _chunk6Z62LPKBjs.format.call(void 0,
191
191
  {
192
192
  from,
193
193
  accessList,
@@ -199,10 +199,10 @@ async function sendTransaction(client, {
199
199
  nonce,
200
200
  to,
201
201
  value,
202
- ..._chunkAGF7GU6Gjs.extract.call(void 0, rest, { formatter })
202
+ ..._chunk6Z62LPKBjs.extract.call(void 0, rest, { formatter })
203
203
  },
204
204
  {
205
- formatter: formatter || _chunkAGF7GU6Gjs.formatTransactionRequest
205
+ formatter: formatter || _chunk6Z62LPKBjs.formatTransactionRequest
206
206
  }
207
207
  );
208
208
  const hash = await client.request({
@@ -217,7 +217,7 @@ async function signMessage(client, { from, data: data_ }) {
217
217
  let data;
218
218
  if (typeof data_ === "string") {
219
219
  if (!data_.startsWith("0x"))
220
- throw new (0, _chunkAGF7GU6Gjs.BaseError)(
220
+ throw new (0, _chunk6Z62LPKBjs.BaseError)(
221
221
  `data ("${data_}") must be a hex value. Encode it first to a hex with the \`encodeHex\` util.`,
222
222
  {
223
223
  docsPath: "/TODO"
@@ -225,7 +225,7 @@ async function signMessage(client, { from, data: data_ }) {
225
225
  );
226
226
  data = data_;
227
227
  } else {
228
- data = _chunkAGF7GU6Gjs.encodeHex.call(void 0, data_);
228
+ data = _chunk6Z62LPKBjs.encodeHex.call(void 0, data_);
229
229
  }
230
230
  const signed = await client.request({
231
231
  method: "personal_sign",
@@ -240,7 +240,7 @@ async function switchChain(client, { id }) {
240
240
  method: "wallet_switchEthereumChain",
241
241
  params: [
242
242
  {
243
- chainId: _chunkAGF7GU6Gjs.numberToHex.call(void 0, id)
243
+ chainId: _chunk6Z62LPKBjs.numberToHex.call(void 0, id)
244
244
  }
245
245
  ]
246
246
  });
@@ -257,7 +257,7 @@ async function watchAsset(client, params) {
257
257
 
258
258
  // src/actions/public/deployContract.ts
259
259
  function deployContract(walletClient, { abi, args, bytecode, ...request }) {
260
- const calldata = _chunkAGF7GU6Gjs.encodeDeployData.call(void 0, {
260
+ const calldata = _chunk6Z62LPKBjs.encodeDeployData.call(void 0, {
261
261
  abi,
262
262
  args,
263
263
  bytecode
@@ -281,16 +281,16 @@ async function estimateGas(client, {
281
281
  to,
282
282
  value
283
283
  }) {
284
- const blockNumberHex = blockNumber ? _chunkAGF7GU6Gjs.numberToHex.call(void 0, blockNumber) : void 0;
284
+ const blockNumberHex = blockNumber ? _chunk6Z62LPKBjs.numberToHex.call(void 0, blockNumber) : void 0;
285
285
  const parameters = {
286
286
  data,
287
287
  from,
288
- gas: gas ? _chunkAGF7GU6Gjs.numberToHex.call(void 0, gas) : void 0,
289
- gasPrice: gasPrice ? _chunkAGF7GU6Gjs.numberToHex.call(void 0, gasPrice) : void 0,
290
- maxFeePerGas: maxFeePerGas ? _chunkAGF7GU6Gjs.numberToHex.call(void 0, maxFeePerGas) : void 0,
291
- maxPriorityFeePerGas: maxPriorityFeePerGas ? _chunkAGF7GU6Gjs.numberToHex.call(void 0, maxPriorityFeePerGas) : void 0,
288
+ gas: gas ? _chunk6Z62LPKBjs.numberToHex.call(void 0, gas) : void 0,
289
+ gasPrice: gasPrice ? _chunk6Z62LPKBjs.numberToHex.call(void 0, gasPrice) : void 0,
290
+ maxFeePerGas: maxFeePerGas ? _chunk6Z62LPKBjs.numberToHex.call(void 0, maxFeePerGas) : void 0,
291
+ maxPriorityFeePerGas: maxPriorityFeePerGas ? _chunk6Z62LPKBjs.numberToHex.call(void 0, maxPriorityFeePerGas) : void 0,
292
292
  to,
293
- value: value ? _chunkAGF7GU6Gjs.numberToHex.call(void 0, value) : void 0
293
+ value: value ? _chunk6Z62LPKBjs.numberToHex.call(void 0, value) : void 0
294
294
  };
295
295
  const balance = await client.request({
296
296
  method: "eth_estimateGas",
@@ -301,7 +301,7 @@ async function estimateGas(client, {
301
301
 
302
302
  // src/actions/public/getBalance.ts
303
303
  async function getBalance(client, { address, blockNumber, blockTag = "latest" }) {
304
- const blockNumberHex = blockNumber ? _chunkAGF7GU6Gjs.numberToHex.call(void 0, blockNumber) : void 0;
304
+ const blockNumberHex = blockNumber ? _chunk6Z62LPKBjs.numberToHex.call(void 0, blockNumber) : void 0;
305
305
  const balance = await client.request({
306
306
  method: "eth_getBalance",
307
307
  params: [address, blockNumberHex || blockTag]
@@ -316,7 +316,7 @@ async function getBlock(client, {
316
316
  blockTag = "latest",
317
317
  includeTransactions = false
318
318
  } = {}) {
319
- const blockNumberHex = blockNumber !== void 0 ? _chunkAGF7GU6Gjs.numberToHex.call(void 0, blockNumber) : void 0;
319
+ const blockNumberHex = blockNumber !== void 0 ? _chunk6Z62LPKBjs.numberToHex.call(void 0, blockNumber) : void 0;
320
320
  let block = null;
321
321
  if (blockHash) {
322
322
  block = await client.request({
@@ -330,19 +330,19 @@ async function getBlock(client, {
330
330
  });
331
331
  }
332
332
  if (!block)
333
- throw new (0, _chunkAGF7GU6Gjs.BlockNotFoundError)({ blockHash, blockNumber });
334
- return _chunkAGF7GU6Gjs.format.call(void 0, block, {
335
- formatter: _optionalChain([client, 'access', _5 => _5.chain, 'optionalAccess', _6 => _6.formatters, 'optionalAccess', _7 => _7.block]) || _chunkAGF7GU6Gjs.formatBlock
333
+ throw new (0, _chunk6Z62LPKBjs.BlockNotFoundError)({ blockHash, blockNumber });
334
+ return _chunk6Z62LPKBjs.format.call(void 0, block, {
335
+ formatter: _optionalChain([client, 'access', _5 => _5.chain, 'optionalAccess', _6 => _6.formatters, 'optionalAccess', _7 => _7.block]) || _chunk6Z62LPKBjs.formatBlock
336
336
  });
337
337
  }
338
338
 
339
339
  // src/actions/public/getBlockNumber.ts
340
340
  var cacheKey = (id) => `blockNumber.${id}`;
341
341
  function getBlockNumberCache(id) {
342
- return _chunkAGF7GU6Gjs.getCache.call(void 0, cacheKey(id));
342
+ return _chunk6Z62LPKBjs.getCache.call(void 0, cacheKey(id));
343
343
  }
344
344
  async function getBlockNumber(client, { maxAge = client.pollingInterval } = {}) {
345
- const blockNumberHex = await _chunkAGF7GU6Gjs.withCache.call(void 0,
345
+ const blockNumberHex = await _chunk6Z62LPKBjs.withCache.call(void 0,
346
346
  () => client.request({
347
347
  method: "eth_blockNumber"
348
348
  }),
@@ -357,7 +357,7 @@ async function getBlockTransactionCount(client, {
357
357
  blockNumber,
358
358
  blockTag = "latest"
359
359
  } = {}) {
360
- const blockNumberHex = blockNumber !== void 0 ? _chunkAGF7GU6Gjs.numberToHex.call(void 0, blockNumber) : void 0;
360
+ const blockNumberHex = blockNumber !== void 0 ? _chunk6Z62LPKBjs.numberToHex.call(void 0, blockNumber) : void 0;
361
361
  let count = null;
362
362
  if (blockHash) {
363
363
  count = await client.request({
@@ -370,13 +370,25 @@ async function getBlockTransactionCount(client, {
370
370
  params: [blockNumberHex || blockTag]
371
371
  });
372
372
  }
373
- return _chunkAGF7GU6Gjs.hexToNumber.call(void 0, count);
373
+ return _chunk6Z62LPKBjs.hexToNumber.call(void 0, count);
374
+ }
375
+
376
+ // src/actions/public/getBytecode.ts
377
+ async function getBytecode(client, { address, blockNumber, blockTag = "latest" }) {
378
+ const blockNumberHex = blockNumber !== void 0 ? _chunk6Z62LPKBjs.numberToHex.call(void 0, blockNumber) : void 0;
379
+ const hex = await client.request({
380
+ method: "eth_getCode",
381
+ params: [address, blockNumberHex || blockTag]
382
+ });
383
+ if (hex === "0x")
384
+ return void 0;
385
+ return hex;
374
386
  }
375
387
 
376
388
  // src/actions/public/getChainId.ts
377
389
  async function getChainId(client) {
378
390
  const chainIdHex = await client.request({ method: "eth_chainId" });
379
- return _chunkAGF7GU6Gjs.hexToNumber.call(void 0, chainIdHex);
391
+ return _chunk6Z62LPKBjs.hexToNumber.call(void 0, chainIdHex);
380
392
  }
381
393
 
382
394
  // src/actions/public/getFeeHistory.ts
@@ -386,16 +398,16 @@ async function getFeeHistory(client, {
386
398
  blockTag = "latest",
387
399
  rewardPercentiles
388
400
  }) {
389
- const blockNumberHex = blockNumber ? _chunkAGF7GU6Gjs.numberToHex.call(void 0, blockNumber) : void 0;
401
+ const blockNumberHex = blockNumber ? _chunk6Z62LPKBjs.numberToHex.call(void 0, blockNumber) : void 0;
390
402
  const feeHistory = await client.request({
391
403
  method: "eth_feeHistory",
392
404
  params: [
393
- _chunkAGF7GU6Gjs.numberToHex.call(void 0, blockCount),
405
+ _chunk6Z62LPKBjs.numberToHex.call(void 0, blockCount),
394
406
  blockNumberHex || blockTag,
395
407
  rewardPercentiles
396
408
  ]
397
409
  });
398
- return _chunkAGF7GU6Gjs.formatFeeHistory.call(void 0, feeHistory);
410
+ return _chunk6Z62LPKBjs.formatFeeHistory.call(void 0, feeHistory);
399
411
  }
400
412
 
401
413
  // src/actions/public/getFilterChanges.ts
@@ -405,7 +417,7 @@ async function getFilterChanges(client, { filter }) {
405
417
  params: [filter.id]
406
418
  });
407
419
  return logs.map(
408
- (log) => typeof log === "string" ? log : _chunkAGF7GU6Gjs.formatLog.call(void 0, log)
420
+ (log) => typeof log === "string" ? log : _chunk6Z62LPKBjs.formatLog.call(void 0, log)
409
421
  );
410
422
  }
411
423
 
@@ -415,7 +427,7 @@ async function getFilterLogs(client, { filter }) {
415
427
  method: "eth_getFilterLogs",
416
428
  params: [filter.id]
417
429
  });
418
- return logs.map(_chunkAGF7GU6Gjs.formatLog);
430
+ return logs.map(_chunk6Z62LPKBjs.formatLog);
419
431
  }
420
432
 
421
433
  // src/actions/public/getGasPrice.ts
@@ -434,7 +446,7 @@ async function getTransaction(client, {
434
446
  hash,
435
447
  index
436
448
  }) {
437
- const blockNumberHex = blockNumber !== void 0 ? _chunkAGF7GU6Gjs.numberToHex.call(void 0, blockNumber) : void 0;
449
+ const blockNumberHex = blockNumber !== void 0 ? _chunk6Z62LPKBjs.numberToHex.call(void 0, blockNumber) : void 0;
438
450
  let transaction = null;
439
451
  if (hash) {
440
452
  transaction = await client.request({
@@ -444,24 +456,24 @@ async function getTransaction(client, {
444
456
  } else if (blockHash) {
445
457
  transaction = await client.request({
446
458
  method: "eth_getTransactionByBlockHashAndIndex",
447
- params: [blockHash, _chunkAGF7GU6Gjs.numberToHex.call(void 0, index)]
459
+ params: [blockHash, _chunk6Z62LPKBjs.numberToHex.call(void 0, index)]
448
460
  });
449
461
  } else if (blockNumberHex || blockTag) {
450
462
  transaction = await client.request({
451
463
  method: "eth_getTransactionByBlockNumberAndIndex",
452
- params: [blockNumberHex || blockTag, _chunkAGF7GU6Gjs.numberToHex.call(void 0, index)]
464
+ params: [blockNumberHex || blockTag, _chunk6Z62LPKBjs.numberToHex.call(void 0, index)]
453
465
  });
454
466
  }
455
467
  if (!transaction)
456
- throw new (0, _chunkAGF7GU6Gjs.TransactionNotFoundError)({
468
+ throw new (0, _chunk6Z62LPKBjs.TransactionNotFoundError)({
457
469
  blockHash,
458
470
  blockNumber,
459
471
  blockTag,
460
472
  hash,
461
473
  index
462
474
  });
463
- return _chunkAGF7GU6Gjs.format.call(void 0, transaction, {
464
- formatter: _optionalChain([client, 'access', _8 => _8.chain, 'optionalAccess', _9 => _9.formatters, 'optionalAccess', _10 => _10.transaction]) || _chunkAGF7GU6Gjs.formatTransaction
475
+ return _chunk6Z62LPKBjs.format.call(void 0, transaction, {
476
+ formatter: _optionalChain([client, 'access', _8 => _8.chain, 'optionalAccess', _9 => _9.formatters, 'optionalAccess', _10 => _10.transaction]) || _chunk6Z62LPKBjs.formatTransaction
465
477
  });
466
478
  }
467
479
 
@@ -481,9 +493,9 @@ async function getTransactionConfirmations(client, { hash, transactionReceipt })
481
493
  async function getTransactionCount(client, { address, blockTag = "latest", blockNumber }) {
482
494
  const count = await client.request({
483
495
  method: "eth_getTransactionCount",
484
- params: [address, blockNumber ? _chunkAGF7GU6Gjs.numberToHex.call(void 0, blockNumber) : blockTag]
496
+ params: [address, blockNumber ? _chunk6Z62LPKBjs.numberToHex.call(void 0, blockNumber) : blockTag]
485
497
  });
486
- return _chunkAGF7GU6Gjs.hexToNumber.call(void 0, count);
498
+ return _chunk6Z62LPKBjs.hexToNumber.call(void 0, count);
487
499
  }
488
500
 
489
501
  // src/actions/public/getTransactionReceipt.ts
@@ -493,9 +505,9 @@ async function getTransactionReceipt(client, { hash }) {
493
505
  params: [hash]
494
506
  });
495
507
  if (!receipt)
496
- throw new (0, _chunkAGF7GU6Gjs.TransactionReceiptNotFoundError)({ hash });
497
- return _chunkAGF7GU6Gjs.format.call(void 0, receipt, {
498
- formatter: _optionalChain([client, 'access', _13 => _13.chain, 'optionalAccess', _14 => _14.formatters, 'optionalAccess', _15 => _15.transactionReceipt]) || _chunkAGF7GU6Gjs.formatTransactionReceipt
508
+ throw new (0, _chunk6Z62LPKBjs.TransactionReceiptNotFoundError)({ hash });
509
+ return _chunk6Z62LPKBjs.format.call(void 0, receipt, {
510
+ formatter: _optionalChain([client, 'access', _13 => _13.chain, 'optionalAccess', _14 => _14.formatters, 'optionalAccess', _15 => _15.transactionReceipt]) || _chunk6Z62LPKBjs.formatTransactionReceipt
499
511
  });
500
512
  }
501
513
 
@@ -568,7 +580,7 @@ async function waitForTransactionReceipt(client, {
568
580
  return new Promise((resolve, reject) => {
569
581
  if (timeout)
570
582
  setTimeout(
571
- () => reject(new (0, _chunkAGF7GU6Gjs.WaitForTransactionReceiptTimeoutError)({ hash })),
583
+ () => reject(new (0, _chunk6Z62LPKBjs.WaitForTransactionReceiptTimeoutError)({ hash })),
572
584
  timeout
573
585
  );
574
586
  const unobserve = observe(
@@ -598,7 +610,7 @@ async function waitForTransactionReceipt(client, {
598
610
  return;
599
611
  done(() => emit.resolve(receipt));
600
612
  } catch (err) {
601
- if (transaction && (err instanceof _chunkAGF7GU6Gjs.TransactionNotFoundError || err instanceof _chunkAGF7GU6Gjs.TransactionReceiptNotFoundError)) {
613
+ if (transaction && (err instanceof _chunk6Z62LPKBjs.TransactionNotFoundError || err instanceof _chunk6Z62LPKBjs.TransactionReceiptNotFoundError)) {
602
614
  replacedTransaction = transaction;
603
615
  const block = await getBlock(client, {
604
616
  blockNumber,
@@ -650,12 +662,12 @@ function poll(fn, { emitOnBegin, initialWaitTime, interval }) {
650
662
  if (emitOnBegin)
651
663
  data = await fn({ unpoll: unwatch });
652
664
  const initialWait = await _asyncNullishCoalesce(await _optionalChain([initialWaitTime, 'optionalCall', _21 => _21(data)]), async () => ( interval));
653
- await _chunkAGF7GU6Gjs.wait.call(void 0, initialWait);
665
+ await _chunk6Z62LPKBjs.wait.call(void 0, initialWait);
654
666
  const poll2 = async () => {
655
667
  if (!active)
656
668
  return;
657
669
  await fn({ unpoll: unwatch });
658
- await _chunkAGF7GU6Gjs.wait.call(void 0, interval);
670
+ await _chunk6Z62LPKBjs.wait.call(void 0, interval);
659
671
  poll2();
660
672
  };
661
673
  poll2();
@@ -845,8 +857,8 @@ async function getTxpoolStatus(client) {
845
857
  method: "txpool_status"
846
858
  });
847
859
  return {
848
- pending: _chunkAGF7GU6Gjs.hexToNumber.call(void 0, pending),
849
- queued: _chunkAGF7GU6Gjs.hexToNumber.call(void 0, queued)
860
+ pending: _chunk6Z62LPKBjs.hexToNumber.call(void 0, pending),
861
+ queued: _chunk6Z62LPKBjs.hexToNumber.call(void 0, queued)
850
862
  };
851
863
  }
852
864
 
@@ -862,7 +874,7 @@ async function impersonateAccount(client, { address }) {
862
874
  async function increaseTime(client, { seconds }) {
863
875
  return await client.request({
864
876
  method: "evm_increaseTime",
865
- params: [_chunkAGF7GU6Gjs.numberToHex.call(void 0, seconds)]
877
+ params: [_chunk6Z62LPKBjs.numberToHex.call(void 0, seconds)]
866
878
  });
867
879
  }
868
880
 
@@ -877,7 +889,7 @@ async function inspectTxpool(client) {
877
889
  async function mine(client, { blocks, interval }) {
878
890
  return await client.request({
879
891
  method: `${client.mode}_mine`,
880
- params: [_chunkAGF7GU6Gjs.numberToHex.call(void 0, blocks), _chunkAGF7GU6Gjs.numberToHex.call(void 0, interval || 0)]
892
+ params: [_chunk6Z62LPKBjs.numberToHex.call(void 0, blocks), _chunk6Z62LPKBjs.numberToHex.call(void 0, interval || 0)]
881
893
  });
882
894
  }
883
895
 
@@ -906,7 +918,7 @@ async function revert(client, { id }) {
906
918
 
907
919
  // src/actions/test/sendUnsignedTransaction.ts
908
920
  async function sendUnsignedTransaction(client, request) {
909
- const request_ = _chunkAGF7GU6Gjs.formatTransactionRequest.call(void 0, request);
921
+ const request_ = _chunk6Z62LPKBjs.formatTransactionRequest.call(void 0, request);
910
922
  const hash = await client.request({
911
923
  method: "eth_sendUnsignedTransaction",
912
924
  params: [request_]
@@ -926,7 +938,7 @@ async function setAutomine(client, enabled) {
926
938
  async function setBalance(client, { address, value }) {
927
939
  return await client.request({
928
940
  method: `${client.mode}_setBalance`,
929
- params: [address, _chunkAGF7GU6Gjs.numberToHex.call(void 0, value)]
941
+ params: [address, _chunk6Z62LPKBjs.numberToHex.call(void 0, value)]
930
942
  });
931
943
  }
932
944
 
@@ -934,7 +946,7 @@ async function setBalance(client, { address, value }) {
934
946
  async function setBlockGasLimit(client, { gasLimit }) {
935
947
  return await client.request({
936
948
  method: "evm_setBlockGasLimit",
937
- params: [_chunkAGF7GU6Gjs.numberToHex.call(void 0, gasLimit)]
949
+ params: [_chunk6Z62LPKBjs.numberToHex.call(void 0, gasLimit)]
938
950
  });
939
951
  }
940
952
 
@@ -982,7 +994,7 @@ async function setLoggingEnabled(client, enabled) {
982
994
  async function setMinGasPrice(client, { gasPrice }) {
983
995
  return await client.request({
984
996
  method: `${client.mode}_setMinGasPrice`,
985
- params: [_chunkAGF7GU6Gjs.numberToHex.call(void 0, gasPrice)]
997
+ params: [_chunk6Z62LPKBjs.numberToHex.call(void 0, gasPrice)]
986
998
  });
987
999
  }
988
1000
 
@@ -990,7 +1002,7 @@ async function setMinGasPrice(client, { gasPrice }) {
990
1002
  async function setNextBlockBaseFeePerGas(client, { baseFeePerGas }) {
991
1003
  return await client.request({
992
1004
  method: `${client.mode}_setNextBlockBaseFeePerGas`,
993
- params: [_chunkAGF7GU6Gjs.numberToHex.call(void 0, baseFeePerGas)]
1005
+ params: [_chunk6Z62LPKBjs.numberToHex.call(void 0, baseFeePerGas)]
994
1006
  });
995
1007
  }
996
1008
 
@@ -998,7 +1010,7 @@ async function setNextBlockBaseFeePerGas(client, { baseFeePerGas }) {
998
1010
  async function setNextBlockTimestamp(client, { timestamp }) {
999
1011
  return await client.request({
1000
1012
  method: "evm_setNextBlockTimestamp",
1001
- params: [_chunkAGF7GU6Gjs.numberToHex.call(void 0, timestamp)]
1013
+ params: [_chunk6Z62LPKBjs.numberToHex.call(void 0, timestamp)]
1002
1014
  });
1003
1015
  }
1004
1016
 
@@ -1006,7 +1018,7 @@ async function setNextBlockTimestamp(client, { timestamp }) {
1006
1018
  async function setNonce(client, { address, nonce }) {
1007
1019
  return await client.request({
1008
1020
  method: `${client.mode}_setNonce`,
1009
- params: [address, _chunkAGF7GU6Gjs.numberToHex.call(void 0, nonce)]
1021
+ params: [address, _chunk6Z62LPKBjs.numberToHex.call(void 0, nonce)]
1010
1022
  });
1011
1023
  }
1012
1024
 
@@ -1016,7 +1028,7 @@ async function setStorageAt(client, { address, index, value }) {
1016
1028
  method: `${client.mode}_setStorageAt`,
1017
1029
  params: [
1018
1030
  address,
1019
- typeof index === "number" ? _chunkAGF7GU6Gjs.numberToHex.call(void 0, index) : index,
1031
+ typeof index === "number" ? _chunk6Z62LPKBjs.numberToHex.call(void 0, index) : index,
1020
1032
  value
1021
1033
  ]
1022
1034
  });
@@ -1099,4 +1111,5 @@ async function stopImpersonatingAccount(client, { address }) {
1099
1111
 
1100
1112
 
1101
1113
 
1102
- exports.call = call; exports.callContract = callContract; exports.createPendingTransactionFilter = createPendingTransactionFilter; exports.createBlockFilter = createBlockFilter; exports.addChain = addChain; exports.getAccounts = getAccounts; exports.getPermissions = getPermissions; exports.requestAccounts = requestAccounts; exports.requestPermissions = requestPermissions; exports.sendTransaction = sendTransaction; exports.signMessage = signMessage; exports.switchChain = switchChain; exports.watchAsset = watchAsset; exports.deployContract = deployContract; exports.estimateGas = estimateGas; exports.getBalance = getBalance; exports.getBlock = getBlock; exports.getBlockNumberCache = getBlockNumberCache; exports.getBlockNumber = getBlockNumber; exports.getBlockTransactionCount = getBlockTransactionCount; exports.getChainId = getChainId; exports.getFeeHistory = getFeeHistory; exports.getFilterChanges = getFilterChanges; exports.getFilterLogs = getFilterLogs; exports.getGasPrice = getGasPrice; exports.getTransaction = getTransaction; exports.getTransactionConfirmations = getTransactionConfirmations; exports.getTransactionCount = getTransactionCount; exports.getTransactionReceipt = getTransactionReceipt; exports.uninstallFilter = uninstallFilter; exports.waitForTransactionReceipt = waitForTransactionReceipt; exports.watchBlockNumber = watchBlockNumber; exports.watchBlocks = watchBlocks; exports.watchPendingTransactions = watchPendingTransactions; 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.setStorageAt = setStorageAt; exports.snapshot = snapshot; exports.stopImpersonatingAccount = stopImpersonatingAccount;
1114
+
1115
+ exports.call = call; exports.callContract = callContract; exports.createPendingTransactionFilter = createPendingTransactionFilter; exports.createBlockFilter = createBlockFilter; exports.addChain = addChain; exports.getAccounts = getAccounts; exports.getPermissions = getPermissions; exports.requestAccounts = requestAccounts; exports.requestPermissions = requestPermissions; exports.sendTransaction = sendTransaction; exports.signMessage = signMessage; exports.switchChain = switchChain; exports.watchAsset = watchAsset; exports.deployContract = deployContract; exports.estimateGas = estimateGas; exports.getBalance = getBalance; exports.getBlock = getBlock; exports.getBlockNumberCache = getBlockNumberCache; exports.getBlockNumber = getBlockNumber; exports.getBlockTransactionCount = getBlockTransactionCount; exports.getBytecode = getBytecode; exports.getChainId = getChainId; exports.getFeeHistory = getFeeHistory; exports.getFilterChanges = getFilterChanges; exports.getFilterLogs = getFilterLogs; exports.getGasPrice = getGasPrice; exports.getTransaction = getTransaction; exports.getTransactionConfirmations = getTransactionConfirmations; exports.getTransactionCount = getTransactionCount; exports.getTransactionReceipt = getTransactionReceipt; exports.uninstallFilter = uninstallFilter; exports.waitForTransactionReceipt = waitForTransactionReceipt; exports.watchBlockNumber = watchBlockNumber; exports.watchBlocks = watchBlocks; exports.watchPendingTransactions = watchPendingTransactions; 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.setStorageAt = setStorageAt; exports.snapshot = snapshot; exports.stopImpersonatingAccount = stopImpersonatingAccount;
@@ -8,8 +8,8 @@
8
8
 
9
9
 
10
10
 
11
- var _chunkO3XABJRLjs = require('../chunk-O3XABJRL.js');
12
- require('../chunk-AGF7GU6G.js');
11
+ var _chunkE7IQYTLVjs = require('../chunk-E7IQYTLV.js');
12
+ require('../chunk-6Z62LPKB.js');
13
13
 
14
14
 
15
15
 
@@ -20,4 +20,4 @@ require('../chunk-AGF7GU6G.js');
20
20
 
21
21
 
22
22
 
23
- exports.createClient = _chunkO3XABJRLjs.createClient; exports.createPublicClient = _chunkO3XABJRLjs.createPublicClient; exports.createTestClient = _chunkO3XABJRLjs.createTestClient; exports.createTransport = _chunkO3XABJRLjs.createTransport; exports.createWalletClient = _chunkO3XABJRLjs.createWalletClient; exports.custom = _chunkO3XABJRLjs.custom; exports.fallback = _chunkO3XABJRLjs.fallback; exports.http = _chunkO3XABJRLjs.http; exports.webSocket = _chunkO3XABJRLjs.webSocket;
23
+ exports.createClient = _chunkE7IQYTLVjs.createClient; exports.createPublicClient = _chunkE7IQYTLVjs.createPublicClient; exports.createTestClient = _chunkE7IQYTLVjs.createTestClient; exports.createTransport = _chunkE7IQYTLVjs.createTransport; exports.createWalletClient = _chunkE7IQYTLVjs.createWalletClient; exports.custom = _chunkE7IQYTLVjs.custom; exports.fallback = _chunkE7IQYTLVjs.fallback; exports.http = _chunkE7IQYTLVjs.http; exports.webSocket = _chunkE7IQYTLVjs.webSocket;
@@ -8,8 +8,8 @@ import {
8
8
  fallback,
9
9
  http,
10
10
  webSocket
11
- } from "../chunk-KZVBHS2T.mjs";
12
- import "../chunk-4XV4JRFM.mjs";
11
+ } from "../chunk-5TCPFLFT.mjs";
12
+ import "../chunk-KB6CBNKW.mjs";
13
13
  export {
14
14
  createClient,
15
15
  createPublicClient,
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { C as CallArgs, a as CallContractArgs, b as CallContractResponse, c as CallResponse, d as CreateBlockFilterResponse, e as CreatePendingTransactionFilterResponse, D as DeployContractArgs, g as DeployContractResponse, h as DropTransactionArgs, E as EstimateGasArgs, f as EstimateGasResponse, G as GetBalanceArgs, i as GetBalanceResponse, j as GetBlockArgs, k as GetBlockNumberArgs, l as GetBlockNumberResponse, m as GetBlockResponse, n as GetBlockTransactionCountArgs, o as GetBlockTransactionCountResponse, p as GetFeeHistoryArgs, q as GetFeeHistoryResponse, r as GetFilterChangesArgs, s as GetFilterChangesResponse, t as GetFilterLogsArgs, u as GetFilterLogsResponse, v as GetGasPriceResponse, w as GetPermissionsResponse, x as GetTransactionArgs, y as GetTransactionConfirmationsArgs, z as GetTransactionConfirmationsResponse, A as GetTransactionCountArgs, B as GetTransactionCountResponse, H as GetTransactionReceiptArgs, I as GetTransactionReceiptResponse, F as GetTransactionResponse, J as ImpersonateAccountArgs, K as IncreaseTimeArgs, M as MineArgs, O as OnBlock, L as OnBlockNumber, N as OnBlockNumberResponse, P as OnBlockResponse, Q as OnTransactions, R as OnTransactionsResponse, T as RequestPermissionsResponse, S as ResetArgs, U as RevertArgs, V as SendTransactionArgs, W as SendTransactionResponse, X as SendUnsignedTransactionArgs, Y as SendUnsignedTransactionResponse, Z as SetBalanceArgs, _ as SetBlockGasLimitArgs, a3 as SetBlockTimestampIntervalArgs, $ as SetCodeArgs, a0 as SetCoinbaseArgs, a1 as SetIntervalMiningArgs, a2 as SetMinGasPriceArgs, a5 as SetNextBlockBaseFeePerGasArgs, a4 as SetNextBlockTimestampArgs, a6 as SetNonceArgs, a7 as SetStorageAtArgs, a8 as SignMessageArgs, a9 as SignMessageResponse, aa as StopImpersonatingAccountArgs, ab as SwitchChainArgs, ac as UninstallFilterArgs, ad as UninstallFilterResponse, ae as WaitForTransactionReceiptArgs, af as WaitForTransactionReceiptResponse, ag as WatchAssetArgs, ah as WatchAssetResponse, ai as WatchBlockNumberArgs, aj as WatchBlocksArgs, ak as WatchPendingTransactionsArgs, al as addChain, am as call, an as callContract, ao as createBlockFilter, ap as createPendingTransactionFilter, aq as deployContract, ar as dropTransaction, as as estimateGas, at as getAccounts, au as getAutomine, av as getBalance, aw as getBlock, ax as getBlockNumber, ay as getBlockTransactionCount, az as getChainId, aA as getFeeHistory, aB as getFilterChanges, aC as getFilterLogs, aD as getGasPrice, aE as getPermissions, aF as getTransaction, aG as getTransactionConfirmations, aH as getTransactionCount, aI as getTransactionReceipt, aJ as getTxpoolContent, aK as getTxpoolStatus, aL as impersonateAccount, aM as increaseTime, aN as inspectTxpool, aO as mine, aP as removeBlockTimestampInterval, aR as requestAccounts, aS as requestPermissions, aQ as reset, aT as revert, aU as sendTransaction, aV as sendUnsignedTransaction, aW as setAutomine, aX as setBalance, aY as setBlockGasLimit, aZ as setBlockTimestampInterval, a_ as setCode, a$ as setCoinbase, b0 as setIntervalMining, b1 as setLoggingEnabled, b2 as setMinGasPrice, b3 as setNextBlockBaseFeePerGas, b4 as setNextBlockTimestamp, b5 as setNonce, b6 as setStorageAt, b7 as signMessage, b8 as snapshot, b9 as stopImpersonatingAccount, ba as switchChain, bb as uninstallFilter, bc as waitForTransactionReceipt, bd as watchAsset, be as watchBlockNumber, bf as watchBlocks, bg as watchPendingTransactions } from './stopImpersonatingAccount-70c4a70c.js';
1
+ export { C as CallArgs, a as CallContractArgs, b as CallContractResponse, c as CallResponse, d as CreateBlockFilterResponse, e as CreatePendingTransactionFilterResponse, D as DeployContractArgs, g as DeployContractResponse, h as DropTransactionArgs, E as EstimateGasArgs, f as EstimateGasResponse, G as GetBalanceArgs, i as GetBalanceResponse, j as GetBlockArgs, k as GetBlockNumberArgs, l as GetBlockNumberResponse, m as GetBlockResponse, n as GetBlockTransactionCountArgs, o as GetBlockTransactionCountResponse, p as GetBytecodeArgs, q as GetBytecodeResponse, r as GetFeeHistoryArgs, s as GetFeeHistoryResponse, t as GetFilterChangesArgs, u as GetFilterChangesResponse, v as GetFilterLogsArgs, w as GetFilterLogsResponse, x as GetGasPriceResponse, y as GetPermissionsResponse, z as GetTransactionArgs, A as GetTransactionConfirmationsArgs, B as GetTransactionConfirmationsResponse, F as GetTransactionCountArgs, H as GetTransactionCountResponse, J as GetTransactionReceiptArgs, K as GetTransactionReceiptResponse, I as GetTransactionResponse, L as ImpersonateAccountArgs, M as IncreaseTimeArgs, N as MineArgs, O as OnBlock, P as OnBlockNumber, Q as OnBlockNumberResponse, R as OnBlockResponse, S as OnTransactions, T as OnTransactionsResponse, V as RequestPermissionsResponse, U as ResetArgs, W as RevertArgs, X as SendTransactionArgs, Y as SendTransactionResponse, Z as SendUnsignedTransactionArgs, _ as SendUnsignedTransactionResponse, $ as SetBalanceArgs, a0 as SetBlockGasLimitArgs, a5 as SetBlockTimestampIntervalArgs, a1 as SetCodeArgs, a2 as SetCoinbaseArgs, a3 as SetIntervalMiningArgs, a4 as SetMinGasPriceArgs, a7 as SetNextBlockBaseFeePerGasArgs, a6 as SetNextBlockTimestampArgs, a8 as SetNonceArgs, a9 as SetStorageAtArgs, aa as SignMessageArgs, ab as SignMessageResponse, ac as StopImpersonatingAccountArgs, ad as SwitchChainArgs, ae as UninstallFilterArgs, af as UninstallFilterResponse, ag as WaitForTransactionReceiptArgs, ah as WaitForTransactionReceiptResponse, ai as WatchAssetArgs, aj as WatchAssetResponse, ak as WatchBlockNumberArgs, al as WatchBlocksArgs, am as WatchPendingTransactionsArgs, an as addChain, ao as call, ap as callContract, aq as createBlockFilter, ar as createPendingTransactionFilter, as as deployContract, at as dropTransaction, au as estimateGas, av as getAccounts, aw as getAutomine, ax as getBalance, ay as getBlock, az as getBlockNumber, aA as getBlockTransactionCount, aB as getBytecode, aC as getChainId, aD as getFeeHistory, aE as getFilterChanges, aF as getFilterLogs, aG as getGasPrice, aH as getPermissions, aI as getTransaction, aJ as getTransactionConfirmations, aK as getTransactionCount, aL as getTransactionReceipt, aM as getTxpoolContent, aN as getTxpoolStatus, aO as impersonateAccount, aP as increaseTime, aQ as inspectTxpool, aR as mine, aS as removeBlockTimestampInterval, aU as requestAccounts, aV as requestPermissions, aT as reset, aW as revert, aX as sendTransaction, aY as sendUnsignedTransaction, aZ as setAutomine, a_ as setBalance, a$ as setBlockGasLimit, b0 as setBlockTimestampInterval, b1 as setCode, b2 as setCoinbase, b3 as setIntervalMining, b4 as setLoggingEnabled, b5 as setMinGasPrice, b6 as setNextBlockBaseFeePerGas, b7 as setNextBlockTimestamp, b8 as setNonce, b9 as setStorageAt, ba as signMessage, bb as snapshot, bc as stopImpersonatingAccount, bd as switchChain, be as uninstallFilter, bf as waitForTransactionReceipt, bg as watchAsset, bh as watchBlockNumber, bi as watchBlocks, bj as watchPendingTransactions } from './stopImpersonatingAccount-fcc5a678.js';
2
2
  export { C as Client, a as ClientConfig, P as PublicClient, b as PublicClientConfig, T as TestClient, c as TestClientConfig, d as Transport, e as TransportConfig, W as WalletClient, f as WalletClientConfig, g as createClient, h as createPublicClient, i as createTestClient, j as createTransport, k as createWalletClient } from './createWalletClient-3f9fa8b6.js';
3
3
  export { C as CustomTransport, a as CustomTransportConfig, F as FallbackTransport, b as FallbackTransportConfig, H as HttpTransport, c as HttpTransportConfig, W as WebSocketTransport, d as WebSocketTransportConfig, e as custom, f as fallback, h as http, w as webSocket } from './webSocket-3385e295.js';
4
4
  import { H as Hex, A as Address, a as Hash, B as ByteArray, b as BlockTag } from './rpc-b77c5aee.js';
package/dist/index.js CHANGED
@@ -59,8 +59,8 @@
59
59
 
60
60
 
61
61
 
62
- var _chunkOHOJCVQDjs = require('./chunk-OHOJCVQD.js');
63
62
 
63
+ var _chunkVUNR7KGGjs = require('./chunk-VUNR7KGG.js');
64
64
 
65
65
 
66
66
 
@@ -70,8 +70,8 @@ var _chunkOHOJCVQDjs = require('./chunk-OHOJCVQD.js');
70
70
 
71
71
 
72
72
 
73
- var _chunkO3XABJRLjs = require('./chunk-O3XABJRL.js');
74
73
 
74
+ var _chunkE7IQYTLVjs = require('./chunk-E7IQYTLV.js');
75
75
 
76
76
 
77
77
 
@@ -187,8 +187,8 @@ var _chunkO3XABJRLjs = require('./chunk-O3XABJRL.js');
187
187
 
188
188
 
189
189
 
190
- var _chunkAGF7GU6Gjs = require('./chunk-AGF7GU6G.js');
191
190
 
191
+ var _chunk6Z62LPKBjs = require('./chunk-6Z62LPKB.js');
192
192
 
193
193
 
194
194
 
@@ -373,4 +373,6 @@ var _chunkAGF7GU6Gjs = require('./chunk-AGF7GU6G.js');
373
373
 
374
374
 
375
375
 
376
- exports.AbiConstructorNotFoundError = _chunkAGF7GU6Gjs.AbiConstructorNotFoundError; exports.AbiConstructorParamsNotFoundError = _chunkAGF7GU6Gjs.AbiConstructorParamsNotFoundError; exports.AbiDecodingDataSizeInvalidError = _chunkAGF7GU6Gjs.AbiDecodingDataSizeInvalidError; exports.AbiEncodingArrayLengthMismatchError = _chunkAGF7GU6Gjs.AbiEncodingArrayLengthMismatchError; exports.AbiEncodingLengthMismatchError = _chunkAGF7GU6Gjs.AbiEncodingLengthMismatchError; exports.AbiErrorInputsNotFoundError = _chunkAGF7GU6Gjs.AbiErrorInputsNotFoundError; exports.AbiErrorNotFoundError = _chunkAGF7GU6Gjs.AbiErrorNotFoundError; exports.AbiErrorSignatureNotFoundError = _chunkAGF7GU6Gjs.AbiErrorSignatureNotFoundError; exports.AbiEventNotFoundError = _chunkAGF7GU6Gjs.AbiEventNotFoundError; exports.AbiFunctionNotFoundError = _chunkAGF7GU6Gjs.AbiFunctionNotFoundError; exports.AbiFunctionOutputsNotFoundError = _chunkAGF7GU6Gjs.AbiFunctionOutputsNotFoundError; exports.AbiFunctionSignatureNotFoundError = _chunkAGF7GU6Gjs.AbiFunctionSignatureNotFoundError; exports.BaseError = _chunkAGF7GU6Gjs.BaseError; exports.BlockNotFoundError = _chunkAGF7GU6Gjs.BlockNotFoundError; exports.DataLengthTooLongError = _chunkAGF7GU6Gjs.DataLengthTooLongError; exports.DataLengthTooShortError = _chunkAGF7GU6Gjs.DataLengthTooShortError; exports.FilterTypeNotSupportedError = _chunkAGF7GU6Gjs.FilterTypeNotSupportedError; exports.HttpRequestError = _chunkAGF7GU6Gjs.HttpRequestError; exports.InternalRpcError = _chunkAGF7GU6Gjs.InternalRpcError; exports.InvalidAbiDecodingTypeError = _chunkAGF7GU6Gjs.InvalidAbiDecodingTypeError; exports.InvalidAbiEncodingTypeError = _chunkAGF7GU6Gjs.InvalidAbiEncodingTypeError; exports.InvalidAddressError = _chunkAGF7GU6Gjs.InvalidAddressError; exports.InvalidArrayError = _chunkAGF7GU6Gjs.InvalidArrayError; exports.InvalidBytesBooleanError = _chunkAGF7GU6Gjs.InvalidBytesBooleanError; exports.InvalidDefinitionTypeError = _chunkAGF7GU6Gjs.InvalidDefinitionTypeError; exports.InvalidGasArgumentsError = _chunkAGF7GU6Gjs.InvalidGasArgumentsError; exports.InvalidHexBooleanError = _chunkAGF7GU6Gjs.InvalidHexBooleanError; exports.InvalidHexValueError = _chunkAGF7GU6Gjs.InvalidHexValueError; exports.InvalidInputRpcError = _chunkAGF7GU6Gjs.InvalidInputRpcError; exports.InvalidParamsRpcError = _chunkAGF7GU6Gjs.InvalidParamsRpcError; exports.InvalidRequestRpcError = _chunkAGF7GU6Gjs.InvalidRequestRpcError; exports.JsonRpcVersionUnsupportedError = _chunkAGF7GU6Gjs.JsonRpcVersionUnsupportedError; exports.LimitExceededRpcError = _chunkAGF7GU6Gjs.LimitExceededRpcError; exports.MethodNotFoundRpcError = _chunkAGF7GU6Gjs.MethodNotFoundRpcError; exports.MethodNotSupportedRpcError = _chunkAGF7GU6Gjs.MethodNotSupportedRpcError; exports.OffsetOutOfBoundsError = _chunkAGF7GU6Gjs.OffsetOutOfBoundsError; exports.ParseRpcError = _chunkAGF7GU6Gjs.ParseRpcError; exports.RequestError = _chunkAGF7GU6Gjs.RequestError; exports.ResourceNotFoundRpcError = _chunkAGF7GU6Gjs.ResourceNotFoundRpcError; exports.ResourceUnavailableRpcError = _chunkAGF7GU6Gjs.ResourceUnavailableRpcError; exports.RpcError = _chunkAGF7GU6Gjs.RpcError; exports.RpcRequestError = _chunkAGF7GU6Gjs.RpcRequestError; exports.SizeExceedsPaddingSizeError = _chunkAGF7GU6Gjs.SizeExceedsPaddingSizeError; exports.TimeoutError = _chunkAGF7GU6Gjs.TimeoutError; exports.TransactionNotFoundError = _chunkAGF7GU6Gjs.TransactionNotFoundError; exports.TransactionReceiptNotFoundError = _chunkAGF7GU6Gjs.TransactionReceiptNotFoundError; exports.TransactionRejectedRpcError = _chunkAGF7GU6Gjs.TransactionRejectedRpcError; exports.UnknownRpcError = _chunkAGF7GU6Gjs.UnknownRpcError; exports.UrlRequiredError = _chunkAGF7GU6Gjs.UrlRequiredError; exports.WaitForTransactionReceiptTimeoutError = _chunkAGF7GU6Gjs.WaitForTransactionReceiptTimeoutError; exports.WebSocketRequestError = _chunkAGF7GU6Gjs.WebSocketRequestError; exports.addChain = _chunkOHOJCVQDjs.addChain; exports.boolToBytes = _chunkAGF7GU6Gjs.boolToBytes; exports.boolToHex = _chunkAGF7GU6Gjs.boolToHex; exports.bytesToBigint = _chunkAGF7GU6Gjs.bytesToBigint; exports.bytesToBool = _chunkAGF7GU6Gjs.bytesToBool; exports.bytesToHex = _chunkAGF7GU6Gjs.bytesToHex; exports.bytesToNumber = _chunkAGF7GU6Gjs.bytesToNumber; exports.bytesToString = _chunkAGF7GU6Gjs.bytesToString; exports.call = _chunkOHOJCVQDjs.call; exports.callContract = _chunkOHOJCVQDjs.callContract; exports.createBlockFilter = _chunkOHOJCVQDjs.createBlockFilter; exports.createClient = _chunkO3XABJRLjs.createClient; exports.createPendingTransactionFilter = _chunkOHOJCVQDjs.createPendingTransactionFilter; exports.createPublicClient = _chunkO3XABJRLjs.createPublicClient; exports.createTestClient = _chunkO3XABJRLjs.createTestClient; exports.createTransport = _chunkO3XABJRLjs.createTransport; exports.createWalletClient = _chunkO3XABJRLjs.createWalletClient; exports.custom = _chunkO3XABJRLjs.custom; exports.decodeAbi = _chunkAGF7GU6Gjs.decodeAbi; exports.decodeBytes = _chunkAGF7GU6Gjs.decodeBytes; exports.decodeErrorResult = _chunkAGF7GU6Gjs.decodeErrorResult; exports.decodeFunctionData = _chunkAGF7GU6Gjs.decodeFunctionData; exports.decodeFunctionResult = _chunkAGF7GU6Gjs.decodeFunctionResult; exports.decodeHex = _chunkAGF7GU6Gjs.decodeHex; exports.decodeRlp = _chunkAGF7GU6Gjs.decodeRlp; exports.deployContract = _chunkOHOJCVQDjs.deployContract; exports.dropTransaction = _chunkOHOJCVQDjs.dropTransaction; exports.encodeAbi = _chunkAGF7GU6Gjs.encodeAbi; exports.encodeBytes = _chunkAGF7GU6Gjs.encodeBytes; exports.encodeDeployData = _chunkAGF7GU6Gjs.encodeDeployData; exports.encodeErrorResult = _chunkAGF7GU6Gjs.encodeErrorResult; exports.encodeEventTopics = _chunkAGF7GU6Gjs.encodeEventTopics; exports.encodeFunctionData = _chunkAGF7GU6Gjs.encodeFunctionData; exports.encodeFunctionResult = _chunkAGF7GU6Gjs.encodeFunctionResult; exports.encodeHex = _chunkAGF7GU6Gjs.encodeHex; exports.encodeRlp = _chunkAGF7GU6Gjs.encodeRlp; exports.estimateGas = _chunkOHOJCVQDjs.estimateGas; exports.etherUnits = _chunkAGF7GU6Gjs.etherUnits; exports.fallback = _chunkO3XABJRLjs.fallback; exports.formatBlock = _chunkAGF7GU6Gjs.formatBlock; exports.formatEther = _chunkAGF7GU6Gjs.formatEther; exports.formatGwei = _chunkAGF7GU6Gjs.formatGwei; exports.formatTransaction = _chunkAGF7GU6Gjs.formatTransaction; exports.formatTransactionRequest = _chunkAGF7GU6Gjs.formatTransactionRequest; exports.formatUnit = _chunkAGF7GU6Gjs.formatUnit; exports.getAccounts = _chunkOHOJCVQDjs.getAccounts; exports.getAddress = _chunkAGF7GU6Gjs.getAddress; exports.getAutomine = _chunkOHOJCVQDjs.getAutomine; exports.getBalance = _chunkOHOJCVQDjs.getBalance; exports.getBlock = _chunkOHOJCVQDjs.getBlock; exports.getBlockNumber = _chunkOHOJCVQDjs.getBlockNumber; exports.getBlockTransactionCount = _chunkOHOJCVQDjs.getBlockTransactionCount; exports.getChainId = _chunkOHOJCVQDjs.getChainId; exports.getContractAddress = _chunkAGF7GU6Gjs.getContractAddress; exports.getCreate2Address = _chunkAGF7GU6Gjs.getCreate2Address; exports.getCreateAddress = _chunkAGF7GU6Gjs.getCreateAddress; exports.getEventSignature = _chunkAGF7GU6Gjs.getEventSignature; exports.getFeeHistory = _chunkOHOJCVQDjs.getFeeHistory; exports.getFilterChanges = _chunkOHOJCVQDjs.getFilterChanges; exports.getFilterLogs = _chunkOHOJCVQDjs.getFilterLogs; exports.getFunctionSignature = _chunkAGF7GU6Gjs.getFunctionSignature; exports.getGasPrice = _chunkOHOJCVQDjs.getGasPrice; exports.getPermissions = _chunkOHOJCVQDjs.getPermissions; exports.getTransaction = _chunkOHOJCVQDjs.getTransaction; exports.getTransactionConfirmations = _chunkOHOJCVQDjs.getTransactionConfirmations; exports.getTransactionCount = _chunkOHOJCVQDjs.getTransactionCount; exports.getTransactionReceipt = _chunkOHOJCVQDjs.getTransactionReceipt; exports.getTxpoolContent = _chunkOHOJCVQDjs.getTxpoolContent; exports.getTxpoolStatus = _chunkOHOJCVQDjs.getTxpoolStatus; exports.gweiUnits = _chunkAGF7GU6Gjs.gweiUnits; exports.hexToBigInt = _chunkAGF7GU6Gjs.hexToBigInt; exports.hexToBool = _chunkAGF7GU6Gjs.hexToBool; exports.hexToBytes = _chunkAGF7GU6Gjs.hexToBytes; exports.hexToNumber = _chunkAGF7GU6Gjs.hexToNumber; exports.hexToString = _chunkAGF7GU6Gjs.hexToString; exports.http = _chunkO3XABJRLjs.http; exports.impersonateAccount = _chunkOHOJCVQDjs.impersonateAccount; exports.increaseTime = _chunkOHOJCVQDjs.increaseTime; exports.inspectTxpool = _chunkOHOJCVQDjs.inspectTxpool; exports.isAddress = _chunkAGF7GU6Gjs.isAddress; exports.isAddressEqual = _chunkAGF7GU6Gjs.isAddressEqual; exports.isBytes = _chunkAGF7GU6Gjs.isBytes; exports.isHex = _chunkAGF7GU6Gjs.isHex; exports.keccak256 = _chunkAGF7GU6Gjs.keccak256; exports.mine = _chunkOHOJCVQDjs.mine; exports.numberToBytes = _chunkAGF7GU6Gjs.numberToBytes; exports.numberToHex = _chunkAGF7GU6Gjs.numberToHex; exports.pad = _chunkAGF7GU6Gjs.pad; exports.padBytes = _chunkAGF7GU6Gjs.padBytes; exports.padHex = _chunkAGF7GU6Gjs.padHex; exports.parseEther = _chunkAGF7GU6Gjs.parseEther; exports.parseGwei = _chunkAGF7GU6Gjs.parseGwei; exports.parseUnit = _chunkAGF7GU6Gjs.parseUnit; exports.removeBlockTimestampInterval = _chunkOHOJCVQDjs.removeBlockTimestampInterval; exports.requestAccounts = _chunkOHOJCVQDjs.requestAccounts; exports.requestPermissions = _chunkOHOJCVQDjs.requestPermissions; exports.reset = _chunkOHOJCVQDjs.reset; exports.revert = _chunkOHOJCVQDjs.revert; exports.sendTransaction = _chunkOHOJCVQDjs.sendTransaction; exports.sendUnsignedTransaction = _chunkOHOJCVQDjs.sendUnsignedTransaction; exports.setAutomine = _chunkOHOJCVQDjs.setAutomine; exports.setBalance = _chunkOHOJCVQDjs.setBalance; exports.setBlockGasLimit = _chunkOHOJCVQDjs.setBlockGasLimit; exports.setBlockTimestampInterval = _chunkOHOJCVQDjs.setBlockTimestampInterval; exports.setCode = _chunkOHOJCVQDjs.setCode; exports.setCoinbase = _chunkOHOJCVQDjs.setCoinbase; exports.setIntervalMining = _chunkOHOJCVQDjs.setIntervalMining; exports.setLoggingEnabled = _chunkOHOJCVQDjs.setLoggingEnabled; exports.setMinGasPrice = _chunkOHOJCVQDjs.setMinGasPrice; exports.setNextBlockBaseFeePerGas = _chunkOHOJCVQDjs.setNextBlockBaseFeePerGas; exports.setNextBlockTimestamp = _chunkOHOJCVQDjs.setNextBlockTimestamp; exports.setNonce = _chunkOHOJCVQDjs.setNonce; exports.setStorageAt = _chunkOHOJCVQDjs.setStorageAt; exports.signMessage = _chunkOHOJCVQDjs.signMessage; exports.size = _chunkAGF7GU6Gjs.size; exports.slice = _chunkAGF7GU6Gjs.slice; exports.sliceBytes = _chunkAGF7GU6Gjs.sliceBytes; exports.sliceHex = _chunkAGF7GU6Gjs.sliceHex; exports.snapshot = _chunkOHOJCVQDjs.snapshot; exports.stopImpersonatingAccount = _chunkOHOJCVQDjs.stopImpersonatingAccount; exports.stringToBytes = _chunkAGF7GU6Gjs.stringToBytes; exports.stringToHex = _chunkAGF7GU6Gjs.stringToHex; exports.switchChain = _chunkOHOJCVQDjs.switchChain; exports.transactionType = _chunkAGF7GU6Gjs.transactionType; exports.trim = _chunkAGF7GU6Gjs.trim; exports.uninstallFilter = _chunkOHOJCVQDjs.uninstallFilter; exports.waitForTransactionReceipt = _chunkOHOJCVQDjs.waitForTransactionReceipt; exports.watchAsset = _chunkOHOJCVQDjs.watchAsset; exports.watchBlockNumber = _chunkOHOJCVQDjs.watchBlockNumber; exports.watchBlocks = _chunkOHOJCVQDjs.watchBlocks; exports.watchPendingTransactions = _chunkOHOJCVQDjs.watchPendingTransactions; exports.webSocket = _chunkO3XABJRLjs.webSocket; exports.weiUnits = _chunkAGF7GU6Gjs.weiUnits;
376
+
377
+
378
+ exports.AbiConstructorNotFoundError = _chunk6Z62LPKBjs.AbiConstructorNotFoundError; exports.AbiConstructorParamsNotFoundError = _chunk6Z62LPKBjs.AbiConstructorParamsNotFoundError; exports.AbiDecodingDataSizeInvalidError = _chunk6Z62LPKBjs.AbiDecodingDataSizeInvalidError; exports.AbiEncodingArrayLengthMismatchError = _chunk6Z62LPKBjs.AbiEncodingArrayLengthMismatchError; exports.AbiEncodingLengthMismatchError = _chunk6Z62LPKBjs.AbiEncodingLengthMismatchError; exports.AbiErrorInputsNotFoundError = _chunk6Z62LPKBjs.AbiErrorInputsNotFoundError; exports.AbiErrorNotFoundError = _chunk6Z62LPKBjs.AbiErrorNotFoundError; exports.AbiErrorSignatureNotFoundError = _chunk6Z62LPKBjs.AbiErrorSignatureNotFoundError; exports.AbiEventNotFoundError = _chunk6Z62LPKBjs.AbiEventNotFoundError; exports.AbiFunctionNotFoundError = _chunk6Z62LPKBjs.AbiFunctionNotFoundError; exports.AbiFunctionOutputsNotFoundError = _chunk6Z62LPKBjs.AbiFunctionOutputsNotFoundError; exports.AbiFunctionSignatureNotFoundError = _chunk6Z62LPKBjs.AbiFunctionSignatureNotFoundError; exports.BaseError = _chunk6Z62LPKBjs.BaseError; exports.BlockNotFoundError = _chunk6Z62LPKBjs.BlockNotFoundError; exports.DataLengthTooLongError = _chunk6Z62LPKBjs.DataLengthTooLongError; exports.DataLengthTooShortError = _chunk6Z62LPKBjs.DataLengthTooShortError; exports.FilterTypeNotSupportedError = _chunk6Z62LPKBjs.FilterTypeNotSupportedError; exports.HttpRequestError = _chunk6Z62LPKBjs.HttpRequestError; exports.InternalRpcError = _chunk6Z62LPKBjs.InternalRpcError; exports.InvalidAbiDecodingTypeError = _chunk6Z62LPKBjs.InvalidAbiDecodingTypeError; exports.InvalidAbiEncodingTypeError = _chunk6Z62LPKBjs.InvalidAbiEncodingTypeError; exports.InvalidAddressError = _chunk6Z62LPKBjs.InvalidAddressError; exports.InvalidArrayError = _chunk6Z62LPKBjs.InvalidArrayError; exports.InvalidBytesBooleanError = _chunk6Z62LPKBjs.InvalidBytesBooleanError; exports.InvalidDefinitionTypeError = _chunk6Z62LPKBjs.InvalidDefinitionTypeError; exports.InvalidGasArgumentsError = _chunk6Z62LPKBjs.InvalidGasArgumentsError; exports.InvalidHexBooleanError = _chunk6Z62LPKBjs.InvalidHexBooleanError; exports.InvalidHexValueError = _chunk6Z62LPKBjs.InvalidHexValueError; exports.InvalidInputRpcError = _chunk6Z62LPKBjs.InvalidInputRpcError; exports.InvalidParamsRpcError = _chunk6Z62LPKBjs.InvalidParamsRpcError; exports.InvalidRequestRpcError = _chunk6Z62LPKBjs.InvalidRequestRpcError; exports.JsonRpcVersionUnsupportedError = _chunk6Z62LPKBjs.JsonRpcVersionUnsupportedError; exports.LimitExceededRpcError = _chunk6Z62LPKBjs.LimitExceededRpcError; exports.MethodNotFoundRpcError = _chunk6Z62LPKBjs.MethodNotFoundRpcError; exports.MethodNotSupportedRpcError = _chunk6Z62LPKBjs.MethodNotSupportedRpcError; exports.OffsetOutOfBoundsError = _chunk6Z62LPKBjs.OffsetOutOfBoundsError; exports.ParseRpcError = _chunk6Z62LPKBjs.ParseRpcError; exports.RequestError = _chunk6Z62LPKBjs.RequestError; exports.ResourceNotFoundRpcError = _chunk6Z62LPKBjs.ResourceNotFoundRpcError; exports.ResourceUnavailableRpcError = _chunk6Z62LPKBjs.ResourceUnavailableRpcError; exports.RpcError = _chunk6Z62LPKBjs.RpcError; exports.RpcRequestError = _chunk6Z62LPKBjs.RpcRequestError; exports.SizeExceedsPaddingSizeError = _chunk6Z62LPKBjs.SizeExceedsPaddingSizeError; exports.TimeoutError = _chunk6Z62LPKBjs.TimeoutError; exports.TransactionNotFoundError = _chunk6Z62LPKBjs.TransactionNotFoundError; exports.TransactionReceiptNotFoundError = _chunk6Z62LPKBjs.TransactionReceiptNotFoundError; exports.TransactionRejectedRpcError = _chunk6Z62LPKBjs.TransactionRejectedRpcError; exports.UnknownRpcError = _chunk6Z62LPKBjs.UnknownRpcError; exports.UrlRequiredError = _chunk6Z62LPKBjs.UrlRequiredError; exports.WaitForTransactionReceiptTimeoutError = _chunk6Z62LPKBjs.WaitForTransactionReceiptTimeoutError; exports.WebSocketRequestError = _chunk6Z62LPKBjs.WebSocketRequestError; exports.addChain = _chunkVUNR7KGGjs.addChain; exports.boolToBytes = _chunk6Z62LPKBjs.boolToBytes; exports.boolToHex = _chunk6Z62LPKBjs.boolToHex; exports.bytesToBigint = _chunk6Z62LPKBjs.bytesToBigint; exports.bytesToBool = _chunk6Z62LPKBjs.bytesToBool; exports.bytesToHex = _chunk6Z62LPKBjs.bytesToHex; exports.bytesToNumber = _chunk6Z62LPKBjs.bytesToNumber; exports.bytesToString = _chunk6Z62LPKBjs.bytesToString; exports.call = _chunkVUNR7KGGjs.call; exports.callContract = _chunkVUNR7KGGjs.callContract; exports.createBlockFilter = _chunkVUNR7KGGjs.createBlockFilter; exports.createClient = _chunkE7IQYTLVjs.createClient; exports.createPendingTransactionFilter = _chunkVUNR7KGGjs.createPendingTransactionFilter; exports.createPublicClient = _chunkE7IQYTLVjs.createPublicClient; exports.createTestClient = _chunkE7IQYTLVjs.createTestClient; exports.createTransport = _chunkE7IQYTLVjs.createTransport; exports.createWalletClient = _chunkE7IQYTLVjs.createWalletClient; exports.custom = _chunkE7IQYTLVjs.custom; exports.decodeAbi = _chunk6Z62LPKBjs.decodeAbi; exports.decodeBytes = _chunk6Z62LPKBjs.decodeBytes; exports.decodeErrorResult = _chunk6Z62LPKBjs.decodeErrorResult; exports.decodeFunctionData = _chunk6Z62LPKBjs.decodeFunctionData; exports.decodeFunctionResult = _chunk6Z62LPKBjs.decodeFunctionResult; exports.decodeHex = _chunk6Z62LPKBjs.decodeHex; exports.decodeRlp = _chunk6Z62LPKBjs.decodeRlp; exports.deployContract = _chunkVUNR7KGGjs.deployContract; exports.dropTransaction = _chunkVUNR7KGGjs.dropTransaction; exports.encodeAbi = _chunk6Z62LPKBjs.encodeAbi; exports.encodeBytes = _chunk6Z62LPKBjs.encodeBytes; exports.encodeDeployData = _chunk6Z62LPKBjs.encodeDeployData; exports.encodeErrorResult = _chunk6Z62LPKBjs.encodeErrorResult; exports.encodeEventTopics = _chunk6Z62LPKBjs.encodeEventTopics; exports.encodeFunctionData = _chunk6Z62LPKBjs.encodeFunctionData; exports.encodeFunctionResult = _chunk6Z62LPKBjs.encodeFunctionResult; exports.encodeHex = _chunk6Z62LPKBjs.encodeHex; exports.encodeRlp = _chunk6Z62LPKBjs.encodeRlp; exports.estimateGas = _chunkVUNR7KGGjs.estimateGas; exports.etherUnits = _chunk6Z62LPKBjs.etherUnits; exports.fallback = _chunkE7IQYTLVjs.fallback; exports.formatBlock = _chunk6Z62LPKBjs.formatBlock; exports.formatEther = _chunk6Z62LPKBjs.formatEther; exports.formatGwei = _chunk6Z62LPKBjs.formatGwei; exports.formatTransaction = _chunk6Z62LPKBjs.formatTransaction; exports.formatTransactionRequest = _chunk6Z62LPKBjs.formatTransactionRequest; exports.formatUnit = _chunk6Z62LPKBjs.formatUnit; exports.getAccounts = _chunkVUNR7KGGjs.getAccounts; exports.getAddress = _chunk6Z62LPKBjs.getAddress; exports.getAutomine = _chunkVUNR7KGGjs.getAutomine; exports.getBalance = _chunkVUNR7KGGjs.getBalance; exports.getBlock = _chunkVUNR7KGGjs.getBlock; exports.getBlockNumber = _chunkVUNR7KGGjs.getBlockNumber; exports.getBlockTransactionCount = _chunkVUNR7KGGjs.getBlockTransactionCount; exports.getBytecode = _chunkVUNR7KGGjs.getBytecode; exports.getChainId = _chunkVUNR7KGGjs.getChainId; exports.getContractAddress = _chunk6Z62LPKBjs.getContractAddress; exports.getCreate2Address = _chunk6Z62LPKBjs.getCreate2Address; exports.getCreateAddress = _chunk6Z62LPKBjs.getCreateAddress; exports.getEventSignature = _chunk6Z62LPKBjs.getEventSignature; exports.getFeeHistory = _chunkVUNR7KGGjs.getFeeHistory; exports.getFilterChanges = _chunkVUNR7KGGjs.getFilterChanges; exports.getFilterLogs = _chunkVUNR7KGGjs.getFilterLogs; exports.getFunctionSignature = _chunk6Z62LPKBjs.getFunctionSignature; exports.getGasPrice = _chunkVUNR7KGGjs.getGasPrice; exports.getPermissions = _chunkVUNR7KGGjs.getPermissions; exports.getTransaction = _chunkVUNR7KGGjs.getTransaction; exports.getTransactionConfirmations = _chunkVUNR7KGGjs.getTransactionConfirmations; exports.getTransactionCount = _chunkVUNR7KGGjs.getTransactionCount; exports.getTransactionReceipt = _chunkVUNR7KGGjs.getTransactionReceipt; exports.getTxpoolContent = _chunkVUNR7KGGjs.getTxpoolContent; exports.getTxpoolStatus = _chunkVUNR7KGGjs.getTxpoolStatus; exports.gweiUnits = _chunk6Z62LPKBjs.gweiUnits; exports.hexToBigInt = _chunk6Z62LPKBjs.hexToBigInt; exports.hexToBool = _chunk6Z62LPKBjs.hexToBool; exports.hexToBytes = _chunk6Z62LPKBjs.hexToBytes; exports.hexToNumber = _chunk6Z62LPKBjs.hexToNumber; exports.hexToString = _chunk6Z62LPKBjs.hexToString; exports.http = _chunkE7IQYTLVjs.http; exports.impersonateAccount = _chunkVUNR7KGGjs.impersonateAccount; exports.increaseTime = _chunkVUNR7KGGjs.increaseTime; exports.inspectTxpool = _chunkVUNR7KGGjs.inspectTxpool; exports.isAddress = _chunk6Z62LPKBjs.isAddress; exports.isAddressEqual = _chunk6Z62LPKBjs.isAddressEqual; exports.isBytes = _chunk6Z62LPKBjs.isBytes; exports.isHex = _chunk6Z62LPKBjs.isHex; exports.keccak256 = _chunk6Z62LPKBjs.keccak256; exports.mine = _chunkVUNR7KGGjs.mine; exports.numberToBytes = _chunk6Z62LPKBjs.numberToBytes; exports.numberToHex = _chunk6Z62LPKBjs.numberToHex; exports.pad = _chunk6Z62LPKBjs.pad; exports.padBytes = _chunk6Z62LPKBjs.padBytes; exports.padHex = _chunk6Z62LPKBjs.padHex; exports.parseEther = _chunk6Z62LPKBjs.parseEther; exports.parseGwei = _chunk6Z62LPKBjs.parseGwei; exports.parseUnit = _chunk6Z62LPKBjs.parseUnit; exports.removeBlockTimestampInterval = _chunkVUNR7KGGjs.removeBlockTimestampInterval; exports.requestAccounts = _chunkVUNR7KGGjs.requestAccounts; exports.requestPermissions = _chunkVUNR7KGGjs.requestPermissions; exports.reset = _chunkVUNR7KGGjs.reset; exports.revert = _chunkVUNR7KGGjs.revert; exports.sendTransaction = _chunkVUNR7KGGjs.sendTransaction; exports.sendUnsignedTransaction = _chunkVUNR7KGGjs.sendUnsignedTransaction; exports.setAutomine = _chunkVUNR7KGGjs.setAutomine; exports.setBalance = _chunkVUNR7KGGjs.setBalance; exports.setBlockGasLimit = _chunkVUNR7KGGjs.setBlockGasLimit; exports.setBlockTimestampInterval = _chunkVUNR7KGGjs.setBlockTimestampInterval; exports.setCode = _chunkVUNR7KGGjs.setCode; exports.setCoinbase = _chunkVUNR7KGGjs.setCoinbase; exports.setIntervalMining = _chunkVUNR7KGGjs.setIntervalMining; exports.setLoggingEnabled = _chunkVUNR7KGGjs.setLoggingEnabled; exports.setMinGasPrice = _chunkVUNR7KGGjs.setMinGasPrice; exports.setNextBlockBaseFeePerGas = _chunkVUNR7KGGjs.setNextBlockBaseFeePerGas; exports.setNextBlockTimestamp = _chunkVUNR7KGGjs.setNextBlockTimestamp; exports.setNonce = _chunkVUNR7KGGjs.setNonce; exports.setStorageAt = _chunkVUNR7KGGjs.setStorageAt; exports.signMessage = _chunkVUNR7KGGjs.signMessage; exports.size = _chunk6Z62LPKBjs.size; exports.slice = _chunk6Z62LPKBjs.slice; exports.sliceBytes = _chunk6Z62LPKBjs.sliceBytes; exports.sliceHex = _chunk6Z62LPKBjs.sliceHex; exports.snapshot = _chunkVUNR7KGGjs.snapshot; exports.stopImpersonatingAccount = _chunkVUNR7KGGjs.stopImpersonatingAccount; exports.stringToBytes = _chunk6Z62LPKBjs.stringToBytes; exports.stringToHex = _chunk6Z62LPKBjs.stringToHex; exports.switchChain = _chunkVUNR7KGGjs.switchChain; exports.transactionType = _chunk6Z62LPKBjs.transactionType; exports.trim = _chunk6Z62LPKBjs.trim; exports.uninstallFilter = _chunkVUNR7KGGjs.uninstallFilter; exports.waitForTransactionReceipt = _chunkVUNR7KGGjs.waitForTransactionReceipt; exports.watchAsset = _chunkVUNR7KGGjs.watchAsset; exports.watchBlockNumber = _chunkVUNR7KGGjs.watchBlockNumber; exports.watchBlocks = _chunkVUNR7KGGjs.watchBlocks; exports.watchPendingTransactions = _chunkVUNR7KGGjs.watchPendingTransactions; exports.webSocket = _chunkE7IQYTLVjs.webSocket; exports.weiUnits = _chunk6Z62LPKBjs.weiUnits;
package/dist/index.mjs CHANGED
@@ -13,6 +13,7 @@ import {
13
13
  getBlock,
14
14
  getBlockNumber,
15
15
  getBlockTransactionCount,
16
+ getBytecode,
16
17
  getChainId,
17
18
  getFeeHistory,
18
19
  getFilterChanges,
@@ -59,7 +60,7 @@ import {
59
60
  watchBlockNumber,
60
61
  watchBlocks,
61
62
  watchPendingTransactions
62
- } from "./chunk-NJ5NFIT4.mjs";
63
+ } from "./chunk-DUNJAMH5.mjs";
63
64
  import {
64
65
  createClient,
65
66
  createPublicClient,
@@ -70,7 +71,7 @@ import {
70
71
  fallback,
71
72
  http,
72
73
  webSocket
73
- } from "./chunk-KZVBHS2T.mjs";
74
+ } from "./chunk-5TCPFLFT.mjs";
74
75
  import {
75
76
  AbiConstructorNotFoundError,
76
77
  AbiConstructorParamsNotFoundError,
@@ -187,7 +188,7 @@ import {
187
188
  transactionType,
188
189
  trim,
189
190
  weiUnits
190
- } from "./chunk-4XV4JRFM.mjs";
191
+ } from "./chunk-KB6CBNKW.mjs";
191
192
  export {
192
193
  AbiConstructorNotFoundError,
193
194
  AbiConstructorParamsNotFoundError,
@@ -292,6 +293,7 @@ export {
292
293
  getBlock,
293
294
  getBlockNumber,
294
295
  getBlockTransactionCount,
296
+ getBytecode,
295
297
  getChainId,
296
298
  getContractAddress,
297
299
  getCreate2Address,
@@ -198,6 +198,18 @@ type GetBlockTransactionCountArgs = {
198
198
  type GetBlockTransactionCountResponse = number;
199
199
  declare function getBlockTransactionCount<TChain extends Chain>(client: PublicClient<any, TChain>, { blockHash, blockNumber, blockTag, }?: GetBlockTransactionCountArgs): Promise<GetBlockTransactionCountResponse>;
200
200
 
201
+ type GetBytecodeArgs = {
202
+ address: Address;
203
+ } & ({
204
+ blockNumber?: never;
205
+ blockTag?: BlockTag;
206
+ } | {
207
+ blockNumber?: bigint;
208
+ blockTag?: never;
209
+ });
210
+ type GetBytecodeResponse = Hex | undefined;
211
+ declare function getBytecode(client: PublicClient, { address, blockNumber, blockTag }: GetBytecodeArgs): Promise<GetBytecodeResponse>;
212
+
201
213
  declare function getChainId(client: PublicClient): Promise<number>;
202
214
 
203
215
  type GetFeeHistoryArgs = {
@@ -538,4 +550,4 @@ type StopImpersonatingAccountArgs = {
538
550
  };
539
551
  declare function stopImpersonatingAccount(client: TestClient, { address }: StopImpersonatingAccountArgs): Promise<void>;
540
552
 
541
- export { SetCodeArgs as $, GetTransactionCountArgs as A, GetTransactionCountResponse as B, CallArgs as C, DeployContractArgs as D, EstimateGasArgs as E, GetTransactionResponse as F, GetBalanceArgs as G, GetTransactionReceiptArgs as H, GetTransactionReceiptResponse as I, ImpersonateAccountArgs as J, IncreaseTimeArgs as K, OnBlockNumber as L, MineArgs as M, OnBlockNumberResponse as N, OnBlock as O, OnBlockResponse as P, OnTransactions as Q, OnTransactionsResponse as R, ResetArgs as S, RequestPermissionsResponse as T, RevertArgs as U, SendTransactionArgs as V, SendTransactionResponse as W, SendUnsignedTransactionArgs as X, SendUnsignedTransactionResponse as Y, SetBalanceArgs as Z, SetBlockGasLimitArgs as _, CallContractArgs as a, setCoinbase as a$, SetCoinbaseArgs as a0, SetIntervalMiningArgs as a1, SetMinGasPriceArgs as a2, SetBlockTimestampIntervalArgs as a3, SetNextBlockTimestampArgs as a4, SetNextBlockBaseFeePerGasArgs as a5, SetNonceArgs as a6, SetStorageAtArgs as a7, SignMessageArgs as a8, SignMessageResponse as a9, getFeeHistory as aA, getFilterChanges as aB, getFilterLogs as aC, getGasPrice as aD, getPermissions as aE, getTransaction as aF, getTransactionConfirmations as aG, getTransactionCount as aH, getTransactionReceipt as aI, getTxpoolContent as aJ, getTxpoolStatus as aK, impersonateAccount as aL, increaseTime as aM, inspectTxpool as aN, mine as aO, removeBlockTimestampInterval as aP, reset as aQ, requestAccounts as aR, requestPermissions as aS, revert as aT, sendTransaction as aU, sendUnsignedTransaction as aV, setAutomine as aW, setBalance as aX, setBlockGasLimit as aY, setBlockTimestampInterval as aZ, setCode as a_, StopImpersonatingAccountArgs as aa, SwitchChainArgs as ab, UninstallFilterArgs as ac, UninstallFilterResponse as ad, WaitForTransactionReceiptArgs as ae, WaitForTransactionReceiptResponse as af, WatchAssetArgs as ag, WatchAssetResponse as ah, WatchBlockNumberArgs as ai, WatchBlocksArgs as aj, WatchPendingTransactionsArgs as ak, addChain as al, call as am, callContract as an, createBlockFilter as ao, createPendingTransactionFilter as ap, deployContract as aq, dropTransaction as ar, estimateGas as as, getAccounts as at, getAutomine as au, getBalance as av, getBlock as aw, getBlockNumber as ax, getBlockTransactionCount as ay, getChainId as az, CallContractResponse as b, setIntervalMining as b0, setLoggingEnabled as b1, setMinGasPrice as b2, setNextBlockBaseFeePerGas as b3, setNextBlockTimestamp as b4, setNonce as b5, setStorageAt as b6, signMessage as b7, snapshot as b8, stopImpersonatingAccount as b9, switchChain as ba, uninstallFilter as bb, waitForTransactionReceipt as bc, watchAsset as bd, watchBlockNumber as be, watchBlocks as bf, watchPendingTransactions as bg, getBlockNumberCache as bh, ReplacementReason as bi, ReplacementResponse as bj, FormattedTransactionRequest as bk, CallResponse as c, CreateBlockFilterResponse as d, CreatePendingTransactionFilterResponse as e, EstimateGasResponse as f, DeployContractResponse as g, DropTransactionArgs as h, GetBalanceResponse as i, GetBlockArgs as j, GetBlockNumberArgs as k, GetBlockNumberResponse as l, GetBlockResponse as m, GetBlockTransactionCountArgs as n, GetBlockTransactionCountResponse as o, GetFeeHistoryArgs as p, GetFeeHistoryResponse as q, GetFilterChangesArgs as r, GetFilterChangesResponse as s, GetFilterLogsArgs as t, GetFilterLogsResponse as u, GetGasPriceResponse as v, GetPermissionsResponse as w, GetTransactionArgs as x, GetTransactionConfirmationsArgs as y, GetTransactionConfirmationsResponse as z };
553
+ export { SetBalanceArgs as $, GetTransactionConfirmationsArgs as A, GetTransactionConfirmationsResponse as B, CallArgs as C, DeployContractArgs as D, EstimateGasArgs as E, GetTransactionCountArgs as F, GetBalanceArgs as G, GetTransactionCountResponse as H, GetTransactionResponse as I, GetTransactionReceiptArgs as J, GetTransactionReceiptResponse as K, ImpersonateAccountArgs as L, IncreaseTimeArgs as M, MineArgs as N, OnBlock as O, OnBlockNumber as P, OnBlockNumberResponse as Q, OnBlockResponse as R, OnTransactions as S, OnTransactionsResponse as T, ResetArgs as U, RequestPermissionsResponse as V, RevertArgs as W, SendTransactionArgs as X, SendTransactionResponse as Y, SendUnsignedTransactionArgs as Z, SendUnsignedTransactionResponse as _, CallContractArgs as a, setBlockGasLimit as a$, SetBlockGasLimitArgs as a0, SetCodeArgs as a1, SetCoinbaseArgs as a2, SetIntervalMiningArgs as a3, SetMinGasPriceArgs as a4, SetBlockTimestampIntervalArgs as a5, SetNextBlockTimestampArgs as a6, SetNextBlockBaseFeePerGasArgs as a7, SetNonceArgs as a8, SetStorageAtArgs as a9, getBlockTransactionCount as aA, getBytecode as aB, getChainId as aC, getFeeHistory as aD, getFilterChanges as aE, getFilterLogs as aF, getGasPrice as aG, getPermissions as aH, getTransaction as aI, getTransactionConfirmations as aJ, getTransactionCount as aK, getTransactionReceipt as aL, getTxpoolContent as aM, getTxpoolStatus as aN, impersonateAccount as aO, increaseTime as aP, inspectTxpool as aQ, mine as aR, removeBlockTimestampInterval as aS, reset as aT, requestAccounts as aU, requestPermissions as aV, revert as aW, sendTransaction as aX, sendUnsignedTransaction as aY, setAutomine as aZ, setBalance as a_, SignMessageArgs as aa, SignMessageResponse as ab, StopImpersonatingAccountArgs as ac, SwitchChainArgs as ad, UninstallFilterArgs as ae, UninstallFilterResponse as af, WaitForTransactionReceiptArgs as ag, WaitForTransactionReceiptResponse as ah, WatchAssetArgs as ai, WatchAssetResponse as aj, WatchBlockNumberArgs as ak, WatchBlocksArgs as al, WatchPendingTransactionsArgs as am, addChain as an, call as ao, callContract as ap, createBlockFilter as aq, createPendingTransactionFilter as ar, deployContract as as, dropTransaction as at, estimateGas as au, getAccounts as av, getAutomine as aw, getBalance as ax, getBlock as ay, getBlockNumber as az, CallContractResponse as b, setBlockTimestampInterval as b0, setCode as b1, setCoinbase as b2, setIntervalMining as b3, setLoggingEnabled as b4, setMinGasPrice as b5, setNextBlockBaseFeePerGas as b6, setNextBlockTimestamp as b7, setNonce as b8, setStorageAt as b9, signMessage as ba, snapshot as bb, stopImpersonatingAccount as bc, switchChain as bd, uninstallFilter as be, waitForTransactionReceipt as bf, watchAsset as bg, watchBlockNumber as bh, watchBlocks as bi, watchPendingTransactions as bj, getBlockNumberCache as bk, ReplacementReason as bl, ReplacementResponse as bm, FormattedTransactionRequest as bn, CallResponse as c, CreateBlockFilterResponse as d, CreatePendingTransactionFilterResponse as e, EstimateGasResponse as f, DeployContractResponse as g, DropTransactionArgs as h, GetBalanceResponse as i, GetBlockArgs as j, GetBlockNumberArgs as k, GetBlockNumberResponse as l, GetBlockResponse as m, GetBlockTransactionCountArgs as n, GetBlockTransactionCountResponse as o, GetBytecodeArgs as p, GetBytecodeResponse as q, GetFeeHistoryArgs as r, GetFeeHistoryResponse as s, GetFilterChangesArgs as t, GetFilterChangesResponse as u, GetFilterLogsArgs as v, GetFilterLogsResponse as w, GetGasPriceResponse as x, GetPermissionsResponse as y, GetTransactionArgs as z };
@@ -72,7 +72,7 @@
72
72
 
73
73
 
74
74
 
75
- var _chunkAGF7GU6Gjs = require('../chunk-AGF7GU6G.js');
75
+ var _chunk6Z62LPKBjs = require('../chunk-6Z62LPKB.js');
76
76
 
77
77
 
78
78
 
@@ -147,4 +147,4 @@ var _chunkAGF7GU6Gjs = require('../chunk-AGF7GU6G.js');
147
147
 
148
148
 
149
149
 
150
- exports.boolToBytes = _chunkAGF7GU6Gjs.boolToBytes; exports.boolToHex = _chunkAGF7GU6Gjs.boolToHex; exports.buildRequest = _chunkAGF7GU6Gjs.buildRequest; exports.bytesToBigint = _chunkAGF7GU6Gjs.bytesToBigint; exports.bytesToBool = _chunkAGF7GU6Gjs.bytesToBool; exports.bytesToHex = _chunkAGF7GU6Gjs.bytesToHex; exports.bytesToNumber = _chunkAGF7GU6Gjs.bytesToNumber; exports.bytesToString = _chunkAGF7GU6Gjs.bytesToString; exports.decodeAbi = _chunkAGF7GU6Gjs.decodeAbi; exports.decodeBytes = _chunkAGF7GU6Gjs.decodeBytes; exports.decodeErrorResult = _chunkAGF7GU6Gjs.decodeErrorResult; exports.decodeFunctionData = _chunkAGF7GU6Gjs.decodeFunctionData; exports.decodeFunctionResult = _chunkAGF7GU6Gjs.decodeFunctionResult; exports.decodeHex = _chunkAGF7GU6Gjs.decodeHex; exports.decodeRlp = _chunkAGF7GU6Gjs.decodeRlp; exports.encodeAbi = _chunkAGF7GU6Gjs.encodeAbi; exports.encodeBytes = _chunkAGF7GU6Gjs.encodeBytes; exports.encodeDeployData = _chunkAGF7GU6Gjs.encodeDeployData; exports.encodeErrorResult = _chunkAGF7GU6Gjs.encodeErrorResult; exports.encodeEventTopics = _chunkAGF7GU6Gjs.encodeEventTopics; exports.encodeFunctionData = _chunkAGF7GU6Gjs.encodeFunctionData; exports.encodeFunctionResult = _chunkAGF7GU6Gjs.encodeFunctionResult; exports.encodeHex = _chunkAGF7GU6Gjs.encodeHex; exports.encodeRlp = _chunkAGF7GU6Gjs.encodeRlp; exports.extract = _chunkAGF7GU6Gjs.extract; exports.extractFunctionName = _chunkAGF7GU6Gjs.extractFunctionName; exports.extractFunctionParams = _chunkAGF7GU6Gjs.extractFunctionParams; exports.extractFunctionParts = _chunkAGF7GU6Gjs.extractFunctionParts; exports.extractFunctionType = _chunkAGF7GU6Gjs.extractFunctionType; exports.format = _chunkAGF7GU6Gjs.format; exports.formatAbiItemWithArgs = _chunkAGF7GU6Gjs.formatAbiItemWithArgs; exports.formatAbiItemWithParams = _chunkAGF7GU6Gjs.formatAbiItemWithParams; exports.formatBlock = _chunkAGF7GU6Gjs.formatBlock; exports.formatEther = _chunkAGF7GU6Gjs.formatEther; exports.formatGwei = _chunkAGF7GU6Gjs.formatGwei; exports.formatTransaction = _chunkAGF7GU6Gjs.formatTransaction; exports.formatTransactionRequest = _chunkAGF7GU6Gjs.formatTransactionRequest; exports.formatUnit = _chunkAGF7GU6Gjs.formatUnit; exports.getAbiItem = _chunkAGF7GU6Gjs.getAbiItem; exports.getAddress = _chunkAGF7GU6Gjs.getAddress; exports.getContractAddress = _chunkAGF7GU6Gjs.getContractAddress; exports.getContractError = _chunkAGF7GU6Gjs.getContractError; exports.getCreate2Address = _chunkAGF7GU6Gjs.getCreate2Address; exports.getCreateAddress = _chunkAGF7GU6Gjs.getCreateAddress; exports.getEventSignature = _chunkAGF7GU6Gjs.getEventSignature; exports.getFunctionSignature = _chunkAGF7GU6Gjs.getFunctionSignature; exports.hexToBigInt = _chunkAGF7GU6Gjs.hexToBigInt; exports.hexToBool = _chunkAGF7GU6Gjs.hexToBool; exports.hexToBytes = _chunkAGF7GU6Gjs.hexToBytes; exports.hexToNumber = _chunkAGF7GU6Gjs.hexToNumber; exports.hexToString = _chunkAGF7GU6Gjs.hexToString; exports.isAddress = _chunkAGF7GU6Gjs.isAddress; exports.isAddressEqual = _chunkAGF7GU6Gjs.isAddressEqual; exports.isBytes = _chunkAGF7GU6Gjs.isBytes; exports.isHex = _chunkAGF7GU6Gjs.isHex; exports.keccak256 = _chunkAGF7GU6Gjs.keccak256; exports.numberToBytes = _chunkAGF7GU6Gjs.numberToBytes; exports.numberToHex = _chunkAGF7GU6Gjs.numberToHex; exports.pad = _chunkAGF7GU6Gjs.pad; exports.padBytes = _chunkAGF7GU6Gjs.padBytes; exports.padHex = _chunkAGF7GU6Gjs.padHex; exports.parseEther = _chunkAGF7GU6Gjs.parseEther; exports.parseGwei = _chunkAGF7GU6Gjs.parseGwei; exports.parseUnit = _chunkAGF7GU6Gjs.parseUnit; exports.rpc = _chunkAGF7GU6Gjs.rpc; exports.size = _chunkAGF7GU6Gjs.size; exports.slice = _chunkAGF7GU6Gjs.slice; exports.sliceBytes = _chunkAGF7GU6Gjs.sliceBytes; exports.sliceHex = _chunkAGF7GU6Gjs.sliceHex; exports.stringToBytes = _chunkAGF7GU6Gjs.stringToBytes; exports.stringToHex = _chunkAGF7GU6Gjs.stringToHex; exports.stringify = _chunkAGF7GU6Gjs.stringify; exports.trim = _chunkAGF7GU6Gjs.trim;
150
+ exports.boolToBytes = _chunk6Z62LPKBjs.boolToBytes; exports.boolToHex = _chunk6Z62LPKBjs.boolToHex; exports.buildRequest = _chunk6Z62LPKBjs.buildRequest; exports.bytesToBigint = _chunk6Z62LPKBjs.bytesToBigint; exports.bytesToBool = _chunk6Z62LPKBjs.bytesToBool; exports.bytesToHex = _chunk6Z62LPKBjs.bytesToHex; exports.bytesToNumber = _chunk6Z62LPKBjs.bytesToNumber; exports.bytesToString = _chunk6Z62LPKBjs.bytesToString; exports.decodeAbi = _chunk6Z62LPKBjs.decodeAbi; exports.decodeBytes = _chunk6Z62LPKBjs.decodeBytes; exports.decodeErrorResult = _chunk6Z62LPKBjs.decodeErrorResult; exports.decodeFunctionData = _chunk6Z62LPKBjs.decodeFunctionData; exports.decodeFunctionResult = _chunk6Z62LPKBjs.decodeFunctionResult; exports.decodeHex = _chunk6Z62LPKBjs.decodeHex; exports.decodeRlp = _chunk6Z62LPKBjs.decodeRlp; exports.encodeAbi = _chunk6Z62LPKBjs.encodeAbi; exports.encodeBytes = _chunk6Z62LPKBjs.encodeBytes; exports.encodeDeployData = _chunk6Z62LPKBjs.encodeDeployData; exports.encodeErrorResult = _chunk6Z62LPKBjs.encodeErrorResult; exports.encodeEventTopics = _chunk6Z62LPKBjs.encodeEventTopics; exports.encodeFunctionData = _chunk6Z62LPKBjs.encodeFunctionData; exports.encodeFunctionResult = _chunk6Z62LPKBjs.encodeFunctionResult; exports.encodeHex = _chunk6Z62LPKBjs.encodeHex; exports.encodeRlp = _chunk6Z62LPKBjs.encodeRlp; exports.extract = _chunk6Z62LPKBjs.extract; exports.extractFunctionName = _chunk6Z62LPKBjs.extractFunctionName; exports.extractFunctionParams = _chunk6Z62LPKBjs.extractFunctionParams; exports.extractFunctionParts = _chunk6Z62LPKBjs.extractFunctionParts; exports.extractFunctionType = _chunk6Z62LPKBjs.extractFunctionType; exports.format = _chunk6Z62LPKBjs.format; exports.formatAbiItemWithArgs = _chunk6Z62LPKBjs.formatAbiItemWithArgs; exports.formatAbiItemWithParams = _chunk6Z62LPKBjs.formatAbiItemWithParams; exports.formatBlock = _chunk6Z62LPKBjs.formatBlock; exports.formatEther = _chunk6Z62LPKBjs.formatEther; exports.formatGwei = _chunk6Z62LPKBjs.formatGwei; exports.formatTransaction = _chunk6Z62LPKBjs.formatTransaction; exports.formatTransactionRequest = _chunk6Z62LPKBjs.formatTransactionRequest; exports.formatUnit = _chunk6Z62LPKBjs.formatUnit; exports.getAbiItem = _chunk6Z62LPKBjs.getAbiItem; exports.getAddress = _chunk6Z62LPKBjs.getAddress; exports.getContractAddress = _chunk6Z62LPKBjs.getContractAddress; exports.getContractError = _chunk6Z62LPKBjs.getContractError; exports.getCreate2Address = _chunk6Z62LPKBjs.getCreate2Address; exports.getCreateAddress = _chunk6Z62LPKBjs.getCreateAddress; exports.getEventSignature = _chunk6Z62LPKBjs.getEventSignature; exports.getFunctionSignature = _chunk6Z62LPKBjs.getFunctionSignature; exports.hexToBigInt = _chunk6Z62LPKBjs.hexToBigInt; exports.hexToBool = _chunk6Z62LPKBjs.hexToBool; exports.hexToBytes = _chunk6Z62LPKBjs.hexToBytes; exports.hexToNumber = _chunk6Z62LPKBjs.hexToNumber; exports.hexToString = _chunk6Z62LPKBjs.hexToString; exports.isAddress = _chunk6Z62LPKBjs.isAddress; exports.isAddressEqual = _chunk6Z62LPKBjs.isAddressEqual; exports.isBytes = _chunk6Z62LPKBjs.isBytes; exports.isHex = _chunk6Z62LPKBjs.isHex; exports.keccak256 = _chunk6Z62LPKBjs.keccak256; exports.numberToBytes = _chunk6Z62LPKBjs.numberToBytes; exports.numberToHex = _chunk6Z62LPKBjs.numberToHex; exports.pad = _chunk6Z62LPKBjs.pad; exports.padBytes = _chunk6Z62LPKBjs.padBytes; exports.padHex = _chunk6Z62LPKBjs.padHex; exports.parseEther = _chunk6Z62LPKBjs.parseEther; exports.parseGwei = _chunk6Z62LPKBjs.parseGwei; exports.parseUnit = _chunk6Z62LPKBjs.parseUnit; exports.rpc = _chunk6Z62LPKBjs.rpc; exports.size = _chunk6Z62LPKBjs.size; exports.slice = _chunk6Z62LPKBjs.slice; exports.sliceBytes = _chunk6Z62LPKBjs.sliceBytes; exports.sliceHex = _chunk6Z62LPKBjs.sliceHex; exports.stringToBytes = _chunk6Z62LPKBjs.stringToBytes; exports.stringToHex = _chunk6Z62LPKBjs.stringToHex; exports.stringify = _chunk6Z62LPKBjs.stringify; exports.trim = _chunk6Z62LPKBjs.trim;
@@ -72,7 +72,7 @@ import {
72
72
  stringToHex,
73
73
  stringify,
74
74
  trim
75
- } from "../chunk-4XV4JRFM.mjs";
75
+ } from "../chunk-KB6CBNKW.mjs";
76
76
  export {
77
77
  boolToBytes,
78
78
  boolToHex,
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "@wagmi/chains": "0.0.0-20230201210619",
7
7
  "abitype": "^0.2.5"
8
8
  },
9
- "version": "0.0.1-alpha.13",
9
+ "version": "0.0.1-alpha.14",
10
10
  "files": [
11
11
  "/actions",
12
12
  "/chains",