viem 0.2.0-main.20230330T201928 → 0.2.0-main.20230403T061632

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/accounts/package.json +4 -0
  2. package/dist/abi.d.ts +3 -3
  3. package/dist/abi.js +2 -2
  4. package/dist/abi.mjs +1 -1
  5. package/dist/accounts/index.d.ts +81 -0
  6. package/dist/accounts/index.js +142 -0
  7. package/dist/accounts/index.js.map +1 -0
  8. package/dist/accounts/index.mjs +142 -0
  9. package/dist/accounts/index.mjs.map +1 -0
  10. package/dist/{chain-1b53ef88.d.ts → chain-5507c6f0.d.ts} +212 -148
  11. package/dist/{chain-ec8c485d.d.ts → chain-fe47467d.d.ts} +1 -1
  12. package/dist/chains.d.ts +867 -99
  13. package/dist/chains.js +115 -63
  14. package/dist/chains.js.map +1 -1
  15. package/dist/chains.mjs +58 -6
  16. package/dist/chains.mjs.map +1 -1
  17. package/dist/chunk-EMXJKA5P.mjs +31 -0
  18. package/dist/chunk-EMXJKA5P.mjs.map +1 -0
  19. package/dist/{chunk-LGWBVIG5.mjs → chunk-KILBOPDD.mjs} +1887 -262
  20. package/dist/chunk-KILBOPDD.mjs.map +1 -0
  21. package/dist/chunk-KQOOAYBY.js +31 -0
  22. package/dist/chunk-KQOOAYBY.js.map +1 -0
  23. package/dist/{chunk-VLSWFKRM.js → chunk-PWUNCH5G.js} +1943 -318
  24. package/dist/chunk-PWUNCH5G.js.map +1 -0
  25. package/dist/contract.d.ts +9 -7
  26. package/dist/contract.js +2 -2
  27. package/dist/contract.mjs +1 -1
  28. package/dist/{createTransport-e3eba9f7.d.ts → createTransport-21a0d2b3.d.ts} +24 -10
  29. package/dist/{eip1193-4f4e240c.d.ts → eip1193-2f3a9cd2.d.ts} +1 -1
  30. package/dist/{encodeFunctionResult-1f324375.d.ts → encodeFunctionResult-c5185b98.d.ts} +15 -15
  31. package/dist/{encodePacked-d5d5264a.d.ts → encodePacked-98f67d09.d.ts} +1 -1
  32. package/dist/ens.d.ts +6 -4
  33. package/dist/ens.js +8 -3
  34. package/dist/ens.js.map +1 -1
  35. package/dist/ens.mjs +7 -2
  36. package/dist/ens.mjs.map +1 -1
  37. package/dist/ethers.d.ts +5 -6
  38. package/dist/ethers.js +7 -5
  39. package/dist/ethers.js.map +1 -1
  40. package/dist/ethers.mjs +7 -5
  41. package/dist/ethers.mjs.map +1 -1
  42. package/dist/{formatAbiItem-15e8817d.d.ts → formatAbiItem-56dff508.d.ts} +1 -1
  43. package/dist/{getAbiItem-3e809ff9.d.ts → getAbiItem-bfba73d1.d.ts} +3 -3
  44. package/dist/getEnsResolver-9e26c596.d.ts +876 -0
  45. package/dist/index.d.ts +132 -15
  46. package/dist/index.js +150 -103
  47. package/dist/index.js.map +1 -1
  48. package/dist/index.mjs +96 -49
  49. package/dist/index.mjs.map +1 -1
  50. package/dist/{parseGwei-361e8a12.d.ts → parseGwei-d2147f8b.d.ts} +95 -15
  51. package/dist/public.d.ts +6 -4
  52. package/dist/public.js +2 -2
  53. package/dist/public.mjs +1 -1
  54. package/dist/publicKeyToAddress-623eb398.d.ts +16 -0
  55. package/dist/test-b67569fe.d.ts +198 -0
  56. package/dist/test.d.ts +11 -11
  57. package/dist/test.js +2 -2
  58. package/dist/test.mjs +1 -1
  59. package/dist/typedData-46b4d81f.d.ts +93 -0
  60. package/dist/utils/index.d.ts +22 -30
  61. package/dist/utils/index.js +28 -2
  62. package/dist/utils/index.mjs +31 -5
  63. package/dist/wallet.d.ts +6 -4
  64. package/dist/wallet.js +2 -2
  65. package/dist/wallet.mjs +1 -1
  66. package/dist/window.d.ts +2 -2
  67. package/package.json +12 -3
  68. package/dist/chunk-3JK5RHC7.mjs +0 -186
  69. package/dist/chunk-3JK5RHC7.mjs.map +0 -1
  70. package/dist/chunk-LGWBVIG5.mjs.map +0 -1
  71. package/dist/chunk-M4VQVSC6.js +0 -186
  72. package/dist/chunk-M4VQVSC6.js.map +0 -1
  73. package/dist/chunk-VLSWFKRM.js.map +0 -1
  74. package/dist/createPublicClient-31d44569.d.ts +0 -841
  75. package/dist/test-67630299.d.ts +0 -205
@@ -0,0 +1,198 @@
1
+ import { a as Transport, b as ClientConfig, C as Client } from './createTransport-21a0d2b3.js';
2
+ import { a as Hash, C as Chain, E as RpcTransaction, an as Quantity, W as TransactionRequest, H as Hex } from './chain-5507c6f0.js';
3
+ import { T as TestRequests } from './eip1193-2f3a9cd2.js';
4
+ import { Address } from 'abitype';
5
+ import { Chain as Chain$1 } from '@wagmi/chains';
6
+
7
+ type DropTransactionParameters = {
8
+ /** The hash of the transaction to drop. */
9
+ hash: Hash;
10
+ };
11
+ declare function dropTransaction<TChain extends Chain | undefined>(client: TestClient<TestClientMode, Transport, TChain>, { hash }: DropTransactionParameters): Promise<void>;
12
+
13
+ type GetAutomineReturnType = boolean;
14
+ declare function getAutomine<TChain extends Chain | undefined>(client: TestClient<TestClientMode, Transport, TChain>): Promise<GetAutomineReturnType>;
15
+
16
+ type GetTxpoolContentReturnType = {
17
+ pending: Record<Address, Record<string, RpcTransaction>>;
18
+ queued: Record<Address, Record<string, RpcTransaction>>;
19
+ };
20
+ declare function getTxpoolContent<TChain extends Chain | undefined>(client: TestClient<TestClientMode, Transport, TChain>): Promise<GetTxpoolContentReturnType>;
21
+
22
+ type GetTxpoolStatusReturnType = {
23
+ pending: number;
24
+ queued: number;
25
+ };
26
+ declare function getTxpoolStatus<TChain extends Chain$1 | undefined>(client: TestClient<TestClientMode, Transport, TChain>): Promise<GetTxpoolStatusReturnType>;
27
+
28
+ type ImpersonateAccountParameters = {
29
+ /** The account to impersonate. */
30
+ address: Address;
31
+ };
32
+ declare function impersonateAccount<TChain extends Chain | undefined>(client: TestClient<TestClientMode, Transport, TChain>, { address }: ImpersonateAccountParameters): Promise<void>;
33
+
34
+ type IncreaseTimeParameters = {
35
+ /** The amount of seconds to jump forward in time. */
36
+ seconds: number;
37
+ };
38
+ declare function increaseTime<TChain extends Chain$1 | undefined>(client: TestClient<TestClientMode, Transport, TChain>, { seconds }: IncreaseTimeParameters): Promise<`0x${string}`>;
39
+
40
+ type InspectTxpoolReturnType = {
41
+ pending: Record<Address, Record<string, string>>;
42
+ queued: Record<Address, Record<string, string>>;
43
+ };
44
+ declare function inspectTxpool<TChain extends Chain | undefined>(client: TestClient<TestClientMode, Transport, TChain>): Promise<InspectTxpoolReturnType>;
45
+
46
+ type MineParameters = {
47
+ /** Number of blocks to mine. */
48
+ blocks: number;
49
+ /** Interval between each block in seconds. */
50
+ interval?: number;
51
+ };
52
+ declare function mine<TChain extends Chain | undefined>(client: TestClient<TestClientMode, Transport, TChain>, { blocks, interval }: MineParameters): Promise<void>;
53
+
54
+ type ResetParameters = {
55
+ /** The block number to reset from. */
56
+ blockNumber?: bigint;
57
+ /** The JSON RPC URL. */
58
+ jsonRpcUrl?: string;
59
+ };
60
+ declare function reset<TChain extends Chain | undefined>(client: TestClient<TestClientMode, Transport, TChain>, { blockNumber, jsonRpcUrl }?: ResetParameters): Promise<void>;
61
+
62
+ type RevertParameters = {
63
+ /** The snapshot ID to revert to. */
64
+ id: Quantity;
65
+ };
66
+ declare function revert<TChain extends Chain | undefined>(client: TestClient<TestClientMode, Transport, TChain>, { id }: RevertParameters): Promise<void>;
67
+
68
+ type SendUnsignedTransactionParameters = TransactionRequest;
69
+ type SendUnsignedTransactionReturnType = Hash;
70
+ declare function sendUnsignedTransaction<TChain extends Chain | undefined>(client: TestClient<TestClientMode, Transport, TChain>, request: SendUnsignedTransactionParameters): Promise<SendUnsignedTransactionReturnType>;
71
+
72
+ type SetBalanceParameters = {
73
+ /** The account address. */
74
+ address: Address;
75
+ /** Amount (in wei) to set */
76
+ value: bigint;
77
+ };
78
+ declare function setBalance<TChain extends Chain | undefined>(client: TestClient<TestClientMode, Transport, TChain>, { address, value }: SetBalanceParameters): Promise<void>;
79
+
80
+ type SetBlockGasLimitParameters = {
81
+ /** Gas limit (in wei). */
82
+ gasLimit: bigint;
83
+ };
84
+ declare function setBlockGasLimit<TChain extends Chain | undefined>(client: TestClient<TestClientMode, Transport, TChain>, { gasLimit }: SetBlockGasLimitParameters): Promise<void>;
85
+
86
+ type SetBlockTimestampIntervalParameters = {
87
+ /** The interval (in seconds). */
88
+ interval: number;
89
+ };
90
+ declare function setBlockTimestampInterval<TChain extends Chain$1 | undefined>(client: TestClient<TestClientMode, Transport, TChain>, { interval }: SetBlockTimestampIntervalParameters): Promise<void>;
91
+
92
+ type SetCodeParameters = {
93
+ /** The account address. */
94
+ address: Address;
95
+ /** The bytecode to set */
96
+ bytecode: Hex;
97
+ };
98
+ declare function setCode<TChain extends Chain | undefined>(client: TestClient<TestClientMode, Transport, TChain>, { address, bytecode }: SetCodeParameters): Promise<void>;
99
+
100
+ type SetCoinbaseParameters = {
101
+ /** The coinbase address. */
102
+ address: Address;
103
+ };
104
+ declare function setCoinbase<TChain extends Chain | undefined>(client: TestClient<TestClientMode, Transport, TChain>, { address }: SetCoinbaseParameters): Promise<void>;
105
+
106
+ type SetIntervalMiningParameters = {
107
+ /** The mining interval. */
108
+ interval: number;
109
+ };
110
+ declare function setIntervalMining<TChain extends Chain | undefined>(client: TestClient<TestClientMode, Transport, TChain>, { interval }: SetIntervalMiningParameters): Promise<void>;
111
+
112
+ type SetMinGasPriceParameters = {
113
+ /** The gas price. */
114
+ gasPrice: bigint;
115
+ };
116
+ declare function setMinGasPrice<TChain extends Chain | undefined>(client: TestClient<TestClientMode, Transport, TChain>, { gasPrice }: SetMinGasPriceParameters): Promise<void>;
117
+
118
+ type SetNextBlockBaseFeePerGasParameters = {
119
+ /** Base fee per gas (in wei). */
120
+ baseFeePerGas: bigint;
121
+ };
122
+ declare function setNextBlockBaseFeePerGas<TChain extends Chain | undefined>(client: TestClient<TestClientMode, Transport, TChain>, { baseFeePerGas }: SetNextBlockBaseFeePerGasParameters): Promise<void>;
123
+
124
+ type SetNextBlockTimestampParameters = {
125
+ /** The timestamp (in seconds). */
126
+ timestamp: bigint;
127
+ };
128
+ declare function setNextBlockTimestamp<TChain extends Chain | undefined>(client: TestClient<TestClientMode, Transport, TChain>, { timestamp }: SetNextBlockTimestampParameters): Promise<void>;
129
+
130
+ type SetNonceParameters = {
131
+ /** The account address. */
132
+ address: Address;
133
+ /** The nonce to set. */
134
+ nonce: number;
135
+ };
136
+ declare function setNonce<TChain extends Chain | undefined>(client: TestClient<TestClientMode, Transport, TChain>, { address, nonce }: SetNonceParameters): Promise<void>;
137
+
138
+ type SetStorageAtParameters = {
139
+ /** The account address. */
140
+ address: Address;
141
+ /** The storage slot (index). Can either be a number or hash value. */
142
+ index: number | Hash;
143
+ /** The value to store as a 32 byte hex string. */
144
+ value: Hex;
145
+ };
146
+ declare function setStorageAt<TChain extends Chain | undefined>(client: TestClient<TestClientMode, Transport, TChain>, { address, index, value }: SetStorageAtParameters): Promise<void>;
147
+
148
+ type StopImpersonatingAccountParameters = {
149
+ /** The account to impersonate. */
150
+ address: Address;
151
+ };
152
+ declare function stopImpersonatingAccount<TChain extends Chain | undefined>(client: TestClient<TestClientMode, Transport, TChain>, { address }: StopImpersonatingAccountParameters): Promise<void>;
153
+
154
+ type TestClientMode = 'anvil' | 'hardhat';
155
+ type TestClientConfig<TMode extends TestClientMode = TestClientMode, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined> = Pick<ClientConfig<TTransport, TChain>, 'chain' | 'key' | 'name' | 'pollingInterval' | 'transport'> & {
156
+ /** Mode of the test client. Available: "anvil" | "hardhat" */
157
+ mode: TMode;
158
+ };
159
+ type TestClient<TMode extends TestClientMode = TestClientMode, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TIncludeActions extends boolean = true> = Client<TTransport, TestRequests<TMode>, TChain> & (TIncludeActions extends true ? TestActions : unknown) & {
160
+ mode: TMode;
161
+ };
162
+ /**
163
+ * @description Creates a test client with a given transport.
164
+ */
165
+ declare function createTestClient<TMode extends TestClientMode, TTransport extends Transport, TChain extends Chain | undefined = undefined>({ chain, key, name, mode, pollingInterval, transport, }: TestClientConfig<TMode, TTransport, TChain>): TestClient<TMode, TTransport, TChain, true>;
166
+
167
+ type TestActions = {
168
+ dropTransaction: (args: DropTransactionParameters) => Promise<void>;
169
+ getAutomine: () => Promise<GetAutomineReturnType>;
170
+ getTxpoolContent: () => Promise<GetTxpoolContentReturnType>;
171
+ getTxpoolStatus: () => Promise<GetTxpoolStatusReturnType>;
172
+ impersonateAccount: (args: ImpersonateAccountParameters) => Promise<void>;
173
+ increaseTime: (args: IncreaseTimeParameters) => Promise<Quantity>;
174
+ inspectTxpool: () => Promise<InspectTxpoolReturnType>;
175
+ mine: (args: MineParameters) => Promise<void>;
176
+ removeBlockTimestampInterval: () => Promise<void>;
177
+ reset: (args?: ResetParameters) => Promise<void>;
178
+ revert: (args: RevertParameters) => Promise<void>;
179
+ sendUnsignedTransaction: (args: SendUnsignedTransactionParameters) => Promise<SendUnsignedTransactionReturnType>;
180
+ setAutomine: (args: boolean) => Promise<void>;
181
+ setBalance: (args: SetBalanceParameters) => Promise<void>;
182
+ setBlockGasLimit: (args: SetBlockGasLimitParameters) => Promise<void>;
183
+ setBlockTimestampInterval: (args: SetBlockTimestampIntervalParameters) => Promise<void>;
184
+ setCode: (args: SetCodeParameters) => Promise<void>;
185
+ setCoinbase: (args: SetCoinbaseParameters) => Promise<void>;
186
+ setIntervalMining: (args: SetIntervalMiningParameters) => Promise<void>;
187
+ setLoggingEnabled: (args: boolean) => Promise<void>;
188
+ setMinGasPrice: (args: SetMinGasPriceParameters) => Promise<void>;
189
+ setNextBlockBaseFeePerGas: (args: SetNextBlockBaseFeePerGasParameters) => Promise<void>;
190
+ setNextBlockTimestamp: (args: SetNextBlockTimestampParameters) => Promise<void>;
191
+ setNonce: (args: SetNonceParameters) => Promise<void>;
192
+ setRpcUrl: (args: string) => Promise<void>;
193
+ setStorageAt: (args: SetStorageAtParameters) => Promise<void>;
194
+ snapshot: () => Promise<Quantity>;
195
+ stopImpersonatingAccount: (args: StopImpersonatingAccountParameters) => Promise<void>;
196
+ };
197
+
198
+ export { reset as A, revert as B, sendUnsignedTransaction as C, DropTransactionParameters as D, setBalance as E, setBlockGasLimit as F, setBlockTimestampInterval as G, setCode as H, ImpersonateAccountParameters as I, setCoinbase as J, setIntervalMining as K, setMinGasPrice as L, MineParameters as M, setNextBlockBaseFeePerGas as N, setNextBlockTimestamp as O, setNonce as P, setStorageAt as Q, ResetParameters as R, SendUnsignedTransactionParameters as S, TestClient as T, stopImpersonatingAccount as U, IncreaseTimeParameters as a, RevertParameters as b, SendUnsignedTransactionReturnType as c, SetBalanceParameters as d, SetBlockGasLimitParameters as e, SetBlockTimestampIntervalParameters as f, SetCodeParameters as g, SetCoinbaseParameters as h, SetIntervalMiningParameters as i, SetMinGasPriceParameters as j, SetNextBlockBaseFeePerGasParameters as k, SetNextBlockTimestampParameters as l, SetNonceParameters as m, SetStorageAtParameters as n, StopImpersonatingAccountParameters as o, TestClientConfig as p, createTestClient as q, TestClientMode as r, dropTransaction as s, getAutomine as t, getTxpoolContent as u, getTxpoolStatus as v, impersonateAccount as w, increaseTime as x, inspectTxpool as y, mine as z };
package/dist/test.d.ts CHANGED
@@ -1,19 +1,19 @@
1
- import { T as TestClient } from './test-67630299.js';
2
- export { D as DropTransactionParameters, I as ImpersonateAccountParameters, z as IncreaseTimeParameters, M as MineParameters, R as ResetParameters, A as RevertParameters, S as SendUnsignedTransactionParameters, B as SendUnsignedTransactionReturnType, C as SetBalanceParameters, E as SetBlockGasLimitParameters, F as SetBlockTimestampIntervalParameters, G as SetCodeParameters, H as SetCoinbaseParameters, J as SetIntervalMiningParameters, K as SetMinGasPriceParameters, L as SetNextBlockBaseFeePerGasParameters, N as SetNextBlockTimestampParameters, O as SetNonceParameters, P as SetStorageAtParameters, Q as StopImpersonatingAccountParameters, d as dropTransaction, g as getAutomine, b as getTxpoolContent, e as getTxpoolStatus, i as impersonateAccount, f as increaseTime, h as inspectTxpool, m as mine, r as reset, j as revert, s as sendUnsignedTransaction, k as setBalance, l as setBlockGasLimit, n as setBlockTimestampInterval, o as setCode, p as setCoinbase, q as setIntervalMining, t as setMinGasPrice, u as setNextBlockBaseFeePerGas, v as setNextBlockTimestamp, w as setNonce, x as setStorageAt, y as stopImpersonatingAccount } from './test-67630299.js';
3
- import './chain-1b53ef88.js';
4
- import '@wagmi/chains';
1
+ import { T as TestClient, r as TestClientMode } from './test-b67569fe.js';
2
+ export { D as DropTransactionParameters, I as ImpersonateAccountParameters, a as IncreaseTimeParameters, M as MineParameters, R as ResetParameters, b as RevertParameters, S as SendUnsignedTransactionParameters, c as SendUnsignedTransactionReturnType, d as SetBalanceParameters, e as SetBlockGasLimitParameters, f as SetBlockTimestampIntervalParameters, g as SetCodeParameters, h as SetCoinbaseParameters, i as SetIntervalMiningParameters, j as SetMinGasPriceParameters, k as SetNextBlockBaseFeePerGasParameters, l as SetNextBlockTimestampParameters, m as SetNonceParameters, n as SetStorageAtParameters, o as StopImpersonatingAccountParameters, s as dropTransaction, t as getAutomine, u as getTxpoolContent, v as getTxpoolStatus, w as impersonateAccount, x as increaseTime, y as inspectTxpool, z as mine, A as reset, B as revert, C as sendUnsignedTransaction, E as setBalance, F as setBlockGasLimit, G as setBlockTimestampInterval, H as setCode, J as setCoinbase, K as setIntervalMining, L as setMinGasPrice, N as setNextBlockBaseFeePerGas, O as setNextBlockTimestamp, P as setNonce, Q as setStorageAt, U as stopImpersonatingAccount } from './test-b67569fe.js';
3
+ import { Chain } from '@wagmi/chains';
4
+ import { a as Transport } from './createTransport-21a0d2b3.js';
5
+ import { C as Chain$1 } from './chain-5507c6f0.js';
6
+ import './eip1193-2f3a9cd2.js';
5
7
  import 'abitype';
6
- import './createTransport-e3eba9f7.js';
7
- import './eip1193-4f4e240c.js';
8
8
 
9
- declare function removeBlockTimestampInterval(client: TestClient): Promise<void>;
9
+ declare function removeBlockTimestampInterval<TChain extends Chain | undefined>(client: TestClient<TestClientMode, Transport, TChain>): Promise<void>;
10
10
 
11
- declare function setAutomine(client: TestClient, enabled: boolean): Promise<void>;
11
+ declare function setAutomine<TChain extends Chain$1 | undefined>(client: TestClient<TestClientMode, Transport, TChain>, enabled: boolean): Promise<void>;
12
12
 
13
- declare function setLoggingEnabled(client: TestClient, enabled: boolean): Promise<void>;
13
+ declare function setLoggingEnabled<TChain extends Chain$1 | undefined>(client: TestClient<TestClientMode, Transport, TChain>, enabled: boolean): Promise<void>;
14
14
 
15
- declare function setRpcUrl(client: TestClient, jsonRpcUrl: string): Promise<void>;
15
+ declare function setRpcUrl<TChain extends Chain$1 | undefined>(client: TestClient<TestClientMode, Transport, TChain>, jsonRpcUrl: string): Promise<void>;
16
16
 
17
- declare function snapshot(client: TestClient): Promise<`0x${string}`>;
17
+ declare function snapshot<TChain extends Chain$1 | undefined>(client: TestClient<TestClientMode, Transport, TChain>): Promise<`0x${string}`>;
18
18
 
19
19
  export { removeBlockTimestampInterval, setAutomine, setLoggingEnabled, setRpcUrl, snapshot };
package/dist/test.js CHANGED
@@ -27,7 +27,7 @@
27
27
 
28
28
 
29
29
 
30
- var _chunkVLSWFKRMjs = require('./chunk-VLSWFKRM.js');
30
+ var _chunkPWUNCH5Gjs = require('./chunk-PWUNCH5G.js');
31
31
 
32
32
 
33
33
 
@@ -57,5 +57,5 @@ var _chunkVLSWFKRMjs = require('./chunk-VLSWFKRM.js');
57
57
 
58
58
 
59
59
 
60
- exports.dropTransaction = _chunkVLSWFKRMjs.dropTransaction; exports.getAutomine = _chunkVLSWFKRMjs.getAutomine; exports.getTxpoolContent = _chunkVLSWFKRMjs.getTxpoolContent; exports.getTxpoolStatus = _chunkVLSWFKRMjs.getTxpoolStatus; exports.impersonateAccount = _chunkVLSWFKRMjs.impersonateAccount; exports.increaseTime = _chunkVLSWFKRMjs.increaseTime; exports.inspectTxpool = _chunkVLSWFKRMjs.inspectTxpool; exports.mine = _chunkVLSWFKRMjs.mine; exports.removeBlockTimestampInterval = _chunkVLSWFKRMjs.removeBlockTimestampInterval; exports.reset = _chunkVLSWFKRMjs.reset; exports.revert = _chunkVLSWFKRMjs.revert; exports.sendUnsignedTransaction = _chunkVLSWFKRMjs.sendUnsignedTransaction; exports.setAutomine = _chunkVLSWFKRMjs.setAutomine; exports.setBalance = _chunkVLSWFKRMjs.setBalance; exports.setBlockGasLimit = _chunkVLSWFKRMjs.setBlockGasLimit; exports.setBlockTimestampInterval = _chunkVLSWFKRMjs.setBlockTimestampInterval; exports.setCode = _chunkVLSWFKRMjs.setCode; exports.setCoinbase = _chunkVLSWFKRMjs.setCoinbase; exports.setIntervalMining = _chunkVLSWFKRMjs.setIntervalMining; exports.setLoggingEnabled = _chunkVLSWFKRMjs.setLoggingEnabled; exports.setMinGasPrice = _chunkVLSWFKRMjs.setMinGasPrice; exports.setNextBlockBaseFeePerGas = _chunkVLSWFKRMjs.setNextBlockBaseFeePerGas; exports.setNextBlockTimestamp = _chunkVLSWFKRMjs.setNextBlockTimestamp; exports.setNonce = _chunkVLSWFKRMjs.setNonce; exports.setRpcUrl = _chunkVLSWFKRMjs.setRpcUrl; exports.setStorageAt = _chunkVLSWFKRMjs.setStorageAt; exports.snapshot = _chunkVLSWFKRMjs.snapshot; exports.stopImpersonatingAccount = _chunkVLSWFKRMjs.stopImpersonatingAccount;
60
+ exports.dropTransaction = _chunkPWUNCH5Gjs.dropTransaction; exports.getAutomine = _chunkPWUNCH5Gjs.getAutomine; exports.getTxpoolContent = _chunkPWUNCH5Gjs.getTxpoolContent; exports.getTxpoolStatus = _chunkPWUNCH5Gjs.getTxpoolStatus; exports.impersonateAccount = _chunkPWUNCH5Gjs.impersonateAccount; exports.increaseTime = _chunkPWUNCH5Gjs.increaseTime; exports.inspectTxpool = _chunkPWUNCH5Gjs.inspectTxpool; exports.mine = _chunkPWUNCH5Gjs.mine; exports.removeBlockTimestampInterval = _chunkPWUNCH5Gjs.removeBlockTimestampInterval; exports.reset = _chunkPWUNCH5Gjs.reset; exports.revert = _chunkPWUNCH5Gjs.revert; exports.sendUnsignedTransaction = _chunkPWUNCH5Gjs.sendUnsignedTransaction; exports.setAutomine = _chunkPWUNCH5Gjs.setAutomine; exports.setBalance = _chunkPWUNCH5Gjs.setBalance; exports.setBlockGasLimit = _chunkPWUNCH5Gjs.setBlockGasLimit; exports.setBlockTimestampInterval = _chunkPWUNCH5Gjs.setBlockTimestampInterval; exports.setCode = _chunkPWUNCH5Gjs.setCode; exports.setCoinbase = _chunkPWUNCH5Gjs.setCoinbase; exports.setIntervalMining = _chunkPWUNCH5Gjs.setIntervalMining; exports.setLoggingEnabled = _chunkPWUNCH5Gjs.setLoggingEnabled; exports.setMinGasPrice = _chunkPWUNCH5Gjs.setMinGasPrice; exports.setNextBlockBaseFeePerGas = _chunkPWUNCH5Gjs.setNextBlockBaseFeePerGas; exports.setNextBlockTimestamp = _chunkPWUNCH5Gjs.setNextBlockTimestamp; exports.setNonce = _chunkPWUNCH5Gjs.setNonce; exports.setRpcUrl = _chunkPWUNCH5Gjs.setRpcUrl; exports.setStorageAt = _chunkPWUNCH5Gjs.setStorageAt; exports.snapshot = _chunkPWUNCH5Gjs.snapshot; exports.stopImpersonatingAccount = _chunkPWUNCH5Gjs.stopImpersonatingAccount;
61
61
  //# sourceMappingURL=test.js.map
package/dist/test.mjs CHANGED
@@ -27,7 +27,7 @@ import {
27
27
  setStorageAt,
28
28
  snapshot,
29
29
  stopImpersonatingAccount
30
- } from "./chunk-LGWBVIG5.mjs";
30
+ } from "./chunk-KILBOPDD.mjs";
31
31
  export {
32
32
  dropTransaction,
33
33
  getAutomine,
@@ -0,0 +1,93 @@
1
+ import { HDKey } from '@scure/bip32';
2
+ import { Address, TypedData, TypedDataToPrimitiveTypes, TypedDataDomain, Narrow } from 'abitype';
3
+ import { a as Hash, $ as TransactionSerializable, H as Hex } from './chain-5507c6f0.js';
4
+
5
+ type Account<TAddress extends Address = Address> = JsonRpcAccount<TAddress> | LocalAccount<string, TAddress>;
6
+ type AccountSource = Address | CustomSource;
7
+ type CustomSource = {
8
+ address: Address;
9
+ signMessage: ({ message }: {
10
+ message: string;
11
+ }) => Promise<Hash>;
12
+ signTransaction: (transaction: TransactionSerializable) => Promise<Hash>;
13
+ signTypedData: <TTypedData extends TypedData | {
14
+ [key: string]: unknown;
15
+ }, TPrimaryType extends string = string>(typedData: TypedDataDefinition<TTypedData, TPrimaryType>) => Promise<Hash>;
16
+ };
17
+ type JsonRpcAccount<TAddress extends Address = Address> = {
18
+ address: TAddress;
19
+ type: 'json-rpc';
20
+ };
21
+ type LocalAccount<TSource extends string = 'custom', TAddress extends Address = Address> = CustomSource & {
22
+ address: TAddress;
23
+ publicKey: Hex;
24
+ source: TSource;
25
+ type: 'local';
26
+ };
27
+ type HDAccount = LocalAccount<'hd'> & {
28
+ getHdKey(): HDKey;
29
+ };
30
+ type HDOptions = {
31
+ /** The account index to use in the path (`"m/44'/60'/${accountIndex}'/0/0"`). */
32
+ accountIndex?: number;
33
+ /** The address index to use in the path (`"m/44'/60'/0'/0/${addressIndex}"`). */
34
+ addressIndex?: number;
35
+ /** The change index to use in the path (`"m/44'/60'/0'/${changeIndex}/0"`). */
36
+ changeIndex?: number;
37
+ path?: never;
38
+ } | {
39
+ accountIndex?: never;
40
+ addressIndex?: never;
41
+ changeIndex?: never;
42
+ /** The HD path. */
43
+ path: `m/44'/60'/${string}`;
44
+ };
45
+ type PrivateKeyAccount = LocalAccount<'privateKey'>;
46
+
47
+ type TypedDataDefinition<TTypedData extends TypedData | {
48
+ [key: string]: unknown;
49
+ } = TypedData, TPrimaryType extends string = string> = {
50
+ primaryType: GetTypedDataPrimaryType<TTypedData, TPrimaryType>;
51
+ } & GetTypedDataMessage<TTypedData, TPrimaryType> & GetTypedDataTypes<TTypedData, TPrimaryType> & GetTypedDataDomain<TTypedData, TPrimaryType>;
52
+ type GetTypedDataDomain<TTypedData extends TypedData | {
53
+ [key: string]: unknown;
54
+ } = TypedData, TPrimaryType extends string = string, TSchema = TTypedData extends TypedData ? TypedDataToPrimitiveTypes<TTypedData> : {
55
+ [key: string]: any;
56
+ }, TDomain = TSchema extends {
57
+ EIP712Domain: infer Domain;
58
+ } ? Domain : TypedDataDomain> = TPrimaryType extends 'EIP712Domain' ? {
59
+ domain: TDomain;
60
+ } : {
61
+ domain?: TDomain;
62
+ };
63
+ type GetTypedDataMessage<TTypedData extends TypedData | {
64
+ [key: string]: unknown;
65
+ } = TypedData, TPrimaryType extends string = string, TSchema = TTypedData extends TypedData ? TypedDataToPrimitiveTypes<TTypedData> : {
66
+ [key: string]: any;
67
+ }, TMessage = TSchema[TPrimaryType extends keyof TSchema ? TPrimaryType : keyof TSchema]> = TPrimaryType extends 'EIP712Domain' ? {} : {
68
+ [key: string]: any;
69
+ } extends TMessage ? {
70
+ /**
71
+ * Data to sign
72
+ *
73
+ * Use a [const assertion](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-4.html#const-assertions) on {@link types} for type inference.
74
+ */
75
+ message: {
76
+ [key: string]: unknown;
77
+ };
78
+ } : {
79
+ /** Data to sign */
80
+ message: TMessage;
81
+ };
82
+ type GetTypedDataPrimaryType<TTypedData extends TypedData | {
83
+ [key: string]: unknown;
84
+ } = TypedData, TPrimaryType extends string = string> = TTypedData extends TypedData ? keyof TTypedData extends infer AbiFunctionNames ? AbiFunctionNames | (TPrimaryType extends AbiFunctionNames ? TPrimaryType : never) | (TypedData extends TTypedData ? string : never) | 'EIP712Domain' : never : TPrimaryType;
85
+ type GetTypedDataTypes<TTypedData extends TypedData | {
86
+ [key: string]: unknown;
87
+ } = TypedData, TPrimaryType extends string = string> = TPrimaryType extends 'EIP712Domain' ? {
88
+ types?: Narrow<TTypedData>;
89
+ } : {
90
+ types: Narrow<TTypedData>;
91
+ };
92
+
93
+ export { Account as A, CustomSource as C, HDAccount as H, JsonRpcAccount as J, LocalAccount as L, PrivateKeyAccount as P, TypedDataDefinition as T, AccountSource as a, HDOptions as b };
@@ -1,20 +1,22 @@
1
- import { Address } from 'abitype';
2
1
  export { ParseAbi, ParseAbiItem, ParseAbiParameter, ParseAbiParameters, parseAbi, parseAbiItem, parseAbiParameter, parseAbiParameters } from 'abitype';
3
- export { D as DecodeAbiParametersReturnType, E as EncodeAbiParametersReturnType, G as GetAbiItemParameters, d as decodeAbiParameters, e as encodeAbiParameters, g as getAbiItem } from '../getAbiItem-3e809ff9.js';
4
- export { D as DecodeErrorResultParameters, a as DecodeErrorResultReturnType, b as DecodeEventLogParameters, c as DecodeEventLogReturnType, d as DecodeFunctionDataParameters, e as DecodeFunctionResultParameters, f as DecodeFunctionResultReturnType, E as EncodeDeployDataParameters, g as EncodeErrorResultParameters, h as EncodeEventTopicsParameters, i as EncodeFunctionDataParameters, j as EncodeFunctionResultParameters, k as decodeErrorResult, l as decodeEventLog, m as decodeFunctionData, n as decodeFunctionResult, o as encodeDeployData, p as encodeErrorResult, q as encodeEventTopics, r as encodeFunctionData, s as encodeFunctionResult } from '../encodeFunctionResult-1f324375.js';
5
- export { e as encodePacked } from '../encodePacked-d5d5264a.js';
6
- export { a as formatAbiItem, f as formatAbiItemWithArgs } from '../formatAbiItem-15e8817d.js';
7
- import { B as BaseError, C as CallExecutionError, E as EstimateGasExecutionError, d as ExecutionRevertedError, F as FeeCapTooHighError, e as FeeCapTooLowError, h as NonceTooHighError, i as NonceTooLowError, N as NonceMaxValueError, I as InsufficientFundsError, f as IntrinsicGasTooHighError, g as IntrinsicGasTooLowError, l as TransactionTypeNotSupportedError, T as TipAboveFeeCapError, U as UnknownNodeError, k as TransactionExecutionError } from '../parseGwei-361e8a12.js';
8
- export { G as GetContractAddressOptions, o as GetCreate2AddressOptions, p as GetCreateAddressOptions, H as HttpOptions, az as RecoverAddressParameters, aA as RecoverAddressReturnType, aB as RecoverMessageAddressParameters, aC as RecoverMessageAddressReturnType, R as RpcResponse, aw as Socket, q as ToRlpReturnType, aD as VerifyMessageParameters, aE as VerifyMessageReturnType, r as boolToBytes, s as boolToHex, t as bytesToBigint, u as bytesToBool, v as bytesToHex, w as bytesToNumber, x as bytesToString, y as concat, z as concatBytes, A as concatHex, D as formatEther, J as formatGwei, K as formatUnits, L as fromBytes, M as fromHex, O as fromRlp, P as getAccount, Q as getAddress, S as getContractAddress, V as getContractError, X as getCreate2Address, Y as getCreateAddress, Z as getEventSelector, _ as getFunctionSelector, ax as getSocket, $ as hashMessage, a0 as hexToBigInt, a1 as hexToBool, a2 as hexToBytes, a3 as hexToNumber, a4 as hexToString, a5 as isAddress, a6 as isAddressEqual, a7 as isBytes, a8 as isHex, a9 as keccak256, aa as numberToBytes, ab as numberToHex, ac as pad, ad as padBytes, ae as padHex, af as parseEther, ag as parseGwei, ah as parseUnits, ai as recoverAddress, aj as recoverMessageAddress, ay as rpc, ak as size, al as slice, am as sliceBytes, an as sliceHex, ao as stringToBytes, ap as stringToHex, aq as stringify, ar as toBytes, as as toHex, at as toRlp, au as trim, av as verifyMessage } from '../parseGwei-361e8a12.js';
9
- export { d as defineChain, g as getChainContractAddress } from '../chain-ec8c485d.js';
10
- import { C as CallParameters, E as EstimateGasParameters, S as SendTransactionParameters, W as WalletClient, P as PublicClient } from '../createPublicClient-31d44569.js';
11
- export { B as BlockFormatter, F as FormattedBlock, e as FormattedTransactionReceipt, f as FormattedTransactionRequest, T as TransactionReceiptFormatter, g as TransactionRequestFormatter, h as defineBlock, i as defineTransactionReceipt, j as defineTransactionRequest, k as formatBlock, l as formatTransactionRequest } from '../createPublicClient-31d44569.js';
12
- import { a2 as Formatter, C as Chain } from '../chain-1b53ef88.js';
13
- export { W as ExtractFormatter, X as Formatted, Y as FormattedTransaction, Z as TransactionFormatter, ac as defineFormatter, _ as defineTransaction, ad as format, $ as formatTransaction, a0 as transactionType } from '../chain-1b53ef88.js';
2
+ export { D as DecodeAbiParametersReturnType, E as EncodeAbiParametersReturnType, G as GetAbiItemParameters, d as decodeAbiParameters, e as encodeAbiParameters, g as getAbiItem } from '../getAbiItem-bfba73d1.js';
3
+ export { D as DecodeErrorResultParameters, a as DecodeErrorResultReturnType, b as DecodeEventLogParameters, c as DecodeEventLogReturnType, d as DecodeFunctionDataParameters, e as DecodeFunctionResultParameters, f as DecodeFunctionResultReturnType, E as EncodeDeployDataParameters, g as EncodeErrorResultParameters, h as EncodeEventTopicsParameters, i as EncodeFunctionDataParameters, j as EncodeFunctionResultParameters, k as decodeErrorResult, l as decodeEventLog, m as decodeFunctionData, n as decodeFunctionResult, o as encodeDeployData, p as encodeErrorResult, q as encodeEventTopics, r as encodeFunctionData, s as encodeFunctionResult } from '../encodeFunctionResult-c5185b98.js';
4
+ export { e as encodePacked } from '../encodePacked-98f67d09.js';
5
+ export { a as formatAbiItem, f as formatAbiItemWithArgs } from '../formatAbiItem-56dff508.js';
6
+ export { p as parseAccount, a as publicKeyToAddress } from '../publicKeyToAddress-623eb398.js';
7
+ import { B as BaseError, C as CallExecutionError, E as EstimateGasExecutionError, d as ExecutionRevertedError, F as FeeCapTooHighError, e as FeeCapTooLowError, i as NonceTooHighError, j as NonceTooLowError, N as NonceMaxValueError, I as InsufficientFundsError, f as IntrinsicGasTooHighError, g as IntrinsicGasTooLowError, m as TransactionTypeNotSupportedError, T as TipAboveFeeCapError, U as UnknownNodeError, l as TransactionExecutionError } from '../parseGwei-d2147f8b.js';
8
+ export { G as GetContractAddressOptions, p as GetCreate2AddressOptions, q as GetCreateAddressOptions, r as GetSerializedTransactionType, s as GetTransactionType, t as HashTypedDataParameters, u as HashTypedDataReturnType, H as HttpOptions, v as RecoverAddressParameters, w as RecoverAddressReturnType, x as RecoverMessageAddressParameters, y as RecoverMessageAddressReturnType, z as RecoverTypedDataAddressParameters, A as RecoverTypedDataAddressReturnType, R as RpcResponse, aY as Socket, D as ToRlpReturnType, V as VerifyMessageParameters, J as VerifyMessageReturnType, K as VerifyTypedDataParameters, L as VerifyTypedDataReturnType, M as assertRequest, O as assertTransactionEIP1559, P as assertTransactionEIP2930, Q as assertTransactionLegacy, S as boolToBytes, X as boolToHex, Y as bytesToBigint, Z as bytesToBool, _ as bytesToHex, $ as bytesToNumber, a0 as bytesToString, a1 as concat, a2 as concatBytes, a3 as concatHex, a4 as formatEther, a5 as formatGwei, a6 as formatUnits, a7 as fromBytes, a8 as fromHex, a9 as fromRlp, aa as getAddress, ab as getContractAddress, ac as getContractError, ad as getCreate2Address, ae as getCreateAddress, af as getEventSelector, ag as getFunctionSelector, ah as getSerializedTransactionType, aZ as getSocket, ai as getTransactionType, aj as hashMessage, ak as hashTypedData, al as hexToBigInt, am as hexToBool, an as hexToBytes, ao as hexToNumber, ap as hexToString, aq as isAddress, ar as isAddressEqual, as as isBytes, at as isHash, au as isHex, av as keccak256, aw as numberToBytes, ax as numberToHex, ay as pad, az as padBytes, aA as padHex, aB as parseEther, aC as parseGwei, aD as parseTransaction, aE as parseUnits, aF as prepareRequest, aG as recoverAddress, aH as recoverMessageAddress, aI as recoverTypedDataAddress, a_ as rpc, aJ as serializeTransaction, aK as size, aL as slice, aM as sliceBytes, aN as sliceHex, aO as stringToBytes, aP as stringToHex, aQ as stringify, aR as toBytes, aS as toHex, aT as toRlp, aU as trim, aV as validateTypedData, aW as verifyMessage, aX as verifyTypedData } from '../parseGwei-d2147f8b.js';
9
+ export { d as defineChain, g as getChainContractAddress } from '../chain-fe47467d.js';
10
+ import { i as CallParameters, p as EstimateGasParameters, ao as SendTransactionParameters } from '../getEnsResolver-9e26c596.js';
11
+ export { aU as BlockFormatter, aV as FormattedBlock, aW as FormattedTransactionReceipt, aX as FormattedTransactionRequest, aY as TransactionReceiptFormatter, aZ as TransactionRequestFormatter, a_ as defineBlock, a$ as defineTransactionReceipt, b0 as defineTransactionRequest, b1 as formatBlock, b2 as formatTransactionRequest } from '../getEnsResolver-9e26c596.js';
12
+ import { ai as Formatter, C as Chain } from '../chain-5507c6f0.js';
13
+ export { aa as ExtractFormatter, ab as Formatted, ac as FormattedTransaction, ad as TransactionFormatter, ar as defineFormatter, ae as defineTransaction, as as format, af as formatTransaction, ag as transactionType } from '../chain-5507c6f0.js';
14
+ import { A as Account } from '../typedData-46b4d81f.js';
14
15
  import 'isomorphic-ws';
15
- import '../eip1193-4f4e240c.js';
16
- import '../createTransport-e3eba9f7.js';
16
+ import '../createTransport-21a0d2b3.js';
17
+ import '../eip1193-2f3a9cd2.js';
17
18
  import '@wagmi/chains';
19
+ import '@scure/bip32';
18
20
 
19
21
  declare function buildRequest<TRequest extends (args: any) => Promise<any>>(request: TRequest, { retryDelay, retryCount, }?: {
20
22
  retryDelay?: number;
@@ -46,7 +48,8 @@ declare function getCallError(err: BaseError, { docsPath, ...args }: CallParamet
46
48
  docsPath?: string;
47
49
  }): CallExecutionError;
48
50
 
49
- declare function getEstimateGasError(err: BaseError, { docsPath, ...args }: EstimateGasParameters & {
51
+ declare function getEstimateGasError(err: BaseError, { docsPath, ...args }: Omit<EstimateGasParameters, 'account'> & {
52
+ account?: Account;
50
53
  chain?: Chain;
51
54
  docsPath?: string;
52
55
  }): EstimateGasExecutionError;
@@ -54,7 +57,9 @@ declare function getEstimateGasError(err: BaseError, { docsPath, ...args }: Esti
54
57
  declare function containsNodeError(err: BaseError): boolean;
55
58
  declare function getNodeError(err: BaseError, args: Partial<SendTransactionParameters<any>>): ExecutionRevertedError | FeeCapTooHighError | FeeCapTooLowError | NonceTooHighError | NonceTooLowError | NonceMaxValueError | InsufficientFundsError | IntrinsicGasTooHighError | IntrinsicGasTooLowError | TransactionTypeNotSupportedError | TipAboveFeeCapError | UnknownNodeError;
56
59
 
57
- declare function getTransactionError(err: BaseError, { docsPath, ...args }: SendTransactionParameters & {
60
+ declare function getTransactionError(err: BaseError, { docsPath, ...args }: Omit<SendTransactionParameters, 'account' | 'chain'> & {
61
+ account: Account;
62
+ chain?: Chain;
58
63
  docsPath?: string;
59
64
  }): TransactionExecutionError;
60
65
 
@@ -62,17 +67,4 @@ declare const arrayRegex: RegExp;
62
67
  declare const bytesRegex: RegExp;
63
68
  declare const integerRegex: RegExp;
64
69
 
65
- declare function assertRequest(args: Partial<SendTransactionParameters<Chain>>): void;
66
-
67
- type PrepareRequestParameters<TParameters extends SendTransactionParameters = SendTransactionParameters> = TParameters;
68
- type PrepareRequestReturnType<TParameters extends SendTransactionParameters = SendTransactionParameters> = TParameters & {
69
- from: Address;
70
- gas: SendTransactionParameters['gas'];
71
- gasPrice?: SendTransactionParameters['gasPrice'];
72
- maxFeePerGas?: SendTransactionParameters['maxFeePerGas'];
73
- maxPriorityFeePerGas?: SendTransactionParameters['maxPriorityFeePerGas'];
74
- nonce: SendTransactionParameters['nonce'];
75
- };
76
- declare function prepareRequest<TParameters extends SendTransactionParameters>(client: WalletClient<any, any> | PublicClient<any, any>, args: PrepareRequestParameters<TParameters>): Promise<PrepareRequestReturnType<TParameters>>;
77
-
78
- export { arrayRegex, assertRequest, buildRequest, bytesRegex, containsNodeError, extract, extractFunctionName, extractFunctionParams, extractFunctionParts, extractFunctionType, getCallError, getEstimateGasError, getNodeError, getTransactionError, integerRegex, prepareRequest };
70
+ export { arrayRegex, buildRequest, bytesRegex, containsNodeError, extract, extractFunctionName, extractFunctionParams, extractFunctionParts, extractFunctionType, getCallError, getEstimateGasError, getNodeError, getTransactionError, integerRegex };
@@ -105,7 +105,6 @@
105
105
 
106
106
 
107
107
 
108
- var _chunkVLSWFKRMjs = require('../chunk-VLSWFKRM.js');
109
108
 
110
109
 
111
110
 
@@ -119,6 +118,7 @@ var _chunkVLSWFKRMjs = require('../chunk-VLSWFKRM.js');
119
118
 
120
119
 
121
120
 
121
+ var _chunkPWUNCH5Gjs = require('../chunk-PWUNCH5G.js');
122
122
 
123
123
 
124
124
 
@@ -213,5 +213,31 @@ var _chunkVLSWFKRMjs = require('../chunk-VLSWFKRM.js');
213
213
 
214
214
 
215
215
 
216
- exports.arrayRegex = _chunkVLSWFKRMjs.arrayRegex; exports.assertRequest = _chunkVLSWFKRMjs.assertRequest; exports.boolToBytes = _chunkVLSWFKRMjs.boolToBytes; exports.boolToHex = _chunkVLSWFKRMjs.boolToHex; exports.buildRequest = _chunkVLSWFKRMjs.buildRequest; exports.bytesRegex = _chunkVLSWFKRMjs.bytesRegex; exports.bytesToBigint = _chunkVLSWFKRMjs.bytesToBigint; exports.bytesToBool = _chunkVLSWFKRMjs.bytesToBool; exports.bytesToHex = _chunkVLSWFKRMjs.bytesToHex; exports.bytesToNumber = _chunkVLSWFKRMjs.bytesToNumber; exports.bytesToString = _chunkVLSWFKRMjs.bytesToString; exports.concat = _chunkVLSWFKRMjs.concat; exports.concatBytes = _chunkVLSWFKRMjs.concatBytes; exports.concatHex = _chunkVLSWFKRMjs.concatHex; exports.containsNodeError = _chunkVLSWFKRMjs.containsNodeError; exports.decodeAbiParameters = _chunkVLSWFKRMjs.decodeAbiParameters; exports.decodeErrorResult = _chunkVLSWFKRMjs.decodeErrorResult; exports.decodeEventLog = _chunkVLSWFKRMjs.decodeEventLog; exports.decodeFunctionData = _chunkVLSWFKRMjs.decodeFunctionData; exports.decodeFunctionResult = _chunkVLSWFKRMjs.decodeFunctionResult; exports.defineBlock = _chunkVLSWFKRMjs.defineBlock; exports.defineChain = _chunkVLSWFKRMjs.defineChain; exports.defineFormatter = _chunkVLSWFKRMjs.defineFormatter; exports.defineTransaction = _chunkVLSWFKRMjs.defineTransaction; exports.defineTransactionReceipt = _chunkVLSWFKRMjs.defineTransactionReceipt; exports.defineTransactionRequest = _chunkVLSWFKRMjs.defineTransactionRequest; exports.encodeAbiParameters = _chunkVLSWFKRMjs.encodeAbiParameters; exports.encodeDeployData = _chunkVLSWFKRMjs.encodeDeployData; exports.encodeErrorResult = _chunkVLSWFKRMjs.encodeErrorResult; exports.encodeEventTopics = _chunkVLSWFKRMjs.encodeEventTopics; exports.encodeFunctionData = _chunkVLSWFKRMjs.encodeFunctionData; exports.encodeFunctionResult = _chunkVLSWFKRMjs.encodeFunctionResult; exports.encodePacked = _chunkVLSWFKRMjs.encodePacked; exports.extract = _chunkVLSWFKRMjs.extract; exports.extractFunctionName = _chunkVLSWFKRMjs.extractFunctionName; exports.extractFunctionParams = _chunkVLSWFKRMjs.extractFunctionParams; exports.extractFunctionParts = _chunkVLSWFKRMjs.extractFunctionParts; exports.extractFunctionType = _chunkVLSWFKRMjs.extractFunctionType; exports.format = _chunkVLSWFKRMjs.format; exports.formatAbiItem = _chunkVLSWFKRMjs.formatAbiItem; exports.formatAbiItemWithArgs = _chunkVLSWFKRMjs.formatAbiItemWithArgs; exports.formatBlock = _chunkVLSWFKRMjs.formatBlock; exports.formatEther = _chunkVLSWFKRMjs.formatEther; exports.formatGwei = _chunkVLSWFKRMjs.formatGwei; exports.formatTransaction = _chunkVLSWFKRMjs.formatTransaction; exports.formatTransactionRequest = _chunkVLSWFKRMjs.formatTransactionRequest; exports.formatUnits = _chunkVLSWFKRMjs.formatUnits; exports.fromBytes = _chunkVLSWFKRMjs.fromBytes; exports.fromHex = _chunkVLSWFKRMjs.fromHex; exports.fromRlp = _chunkVLSWFKRMjs.fromRlp; exports.getAbiItem = _chunkVLSWFKRMjs.getAbiItem; exports.getAccount = _chunkVLSWFKRMjs.getAccount; exports.getAddress = _chunkVLSWFKRMjs.getAddress; exports.getCallError = _chunkVLSWFKRMjs.getCallError; exports.getChainContractAddress = _chunkVLSWFKRMjs.getChainContractAddress; exports.getContractAddress = _chunkVLSWFKRMjs.getContractAddress; exports.getContractError = _chunkVLSWFKRMjs.getContractError; exports.getCreate2Address = _chunkVLSWFKRMjs.getCreate2Address; exports.getCreateAddress = _chunkVLSWFKRMjs.getCreateAddress; exports.getEstimateGasError = _chunkVLSWFKRMjs.getEstimateGasError; exports.getEventSelector = _chunkVLSWFKRMjs.getEventSelector; exports.getFunctionSelector = _chunkVLSWFKRMjs.getFunctionSelector; exports.getNodeError = _chunkVLSWFKRMjs.getNodeError; exports.getSocket = _chunkVLSWFKRMjs.getSocket; exports.getTransactionError = _chunkVLSWFKRMjs.getTransactionError; exports.hashMessage = _chunkVLSWFKRMjs.hashMessage; exports.hexToBigInt = _chunkVLSWFKRMjs.hexToBigInt; exports.hexToBool = _chunkVLSWFKRMjs.hexToBool; exports.hexToBytes = _chunkVLSWFKRMjs.hexToBytes; exports.hexToNumber = _chunkVLSWFKRMjs.hexToNumber; exports.hexToString = _chunkVLSWFKRMjs.hexToString; exports.integerRegex = _chunkVLSWFKRMjs.integerRegex; exports.isAddress = _chunkVLSWFKRMjs.isAddress; exports.isAddressEqual = _chunkVLSWFKRMjs.isAddressEqual; exports.isBytes = _chunkVLSWFKRMjs.isBytes; exports.isHex = _chunkVLSWFKRMjs.isHex; exports.keccak256 = _chunkVLSWFKRMjs.keccak256; exports.numberToBytes = _chunkVLSWFKRMjs.numberToBytes; exports.numberToHex = _chunkVLSWFKRMjs.numberToHex; exports.pad = _chunkVLSWFKRMjs.pad; exports.padBytes = _chunkVLSWFKRMjs.padBytes; exports.padHex = _chunkVLSWFKRMjs.padHex; exports.parseAbi = _chunkVLSWFKRMjs.parseAbi; exports.parseAbiItem = _chunkVLSWFKRMjs.parseAbiItem; exports.parseAbiParameter = _chunkVLSWFKRMjs.parseAbiParameter; exports.parseAbiParameters = _chunkVLSWFKRMjs.parseAbiParameters; exports.parseEther = _chunkVLSWFKRMjs.parseEther; exports.parseGwei = _chunkVLSWFKRMjs.parseGwei; exports.parseUnits = _chunkVLSWFKRMjs.parseUnits; exports.prepareRequest = _chunkVLSWFKRMjs.prepareRequest; exports.recoverAddress = _chunkVLSWFKRMjs.recoverAddress; exports.recoverMessageAddress = _chunkVLSWFKRMjs.recoverMessageAddress; exports.rpc = _chunkVLSWFKRMjs.rpc; exports.size = _chunkVLSWFKRMjs.size; exports.slice = _chunkVLSWFKRMjs.slice; exports.sliceBytes = _chunkVLSWFKRMjs.sliceBytes; exports.sliceHex = _chunkVLSWFKRMjs.sliceHex; exports.stringToBytes = _chunkVLSWFKRMjs.stringToBytes; exports.stringToHex = _chunkVLSWFKRMjs.stringToHex; exports.stringify = _chunkVLSWFKRMjs.stringify; exports.toBytes = _chunkVLSWFKRMjs.toBytes; exports.toHex = _chunkVLSWFKRMjs.toHex; exports.toRlp = _chunkVLSWFKRMjs.toRlp; exports.transactionType = _chunkVLSWFKRMjs.transactionType; exports.trim = _chunkVLSWFKRMjs.trim; exports.verifyMessage = _chunkVLSWFKRMjs.verifyMessage;
216
+
217
+
218
+
219
+
220
+
221
+
222
+
223
+
224
+
225
+
226
+
227
+
228
+
229
+
230
+
231
+
232
+
233
+
234
+
235
+
236
+
237
+
238
+
239
+
240
+
241
+
242
+ exports.arrayRegex = _chunkPWUNCH5Gjs.arrayRegex; exports.assertRequest = _chunkPWUNCH5Gjs.assertRequest; exports.assertTransactionEIP1559 = _chunkPWUNCH5Gjs.assertTransactionEIP1559; exports.assertTransactionEIP2930 = _chunkPWUNCH5Gjs.assertTransactionEIP2930; exports.assertTransactionLegacy = _chunkPWUNCH5Gjs.assertTransactionLegacy; exports.boolToBytes = _chunkPWUNCH5Gjs.boolToBytes; exports.boolToHex = _chunkPWUNCH5Gjs.boolToHex; exports.buildRequest = _chunkPWUNCH5Gjs.buildRequest; exports.bytesRegex = _chunkPWUNCH5Gjs.bytesRegex; exports.bytesToBigint = _chunkPWUNCH5Gjs.bytesToBigint; exports.bytesToBool = _chunkPWUNCH5Gjs.bytesToBool; exports.bytesToHex = _chunkPWUNCH5Gjs.bytesToHex; exports.bytesToNumber = _chunkPWUNCH5Gjs.bytesToNumber; exports.bytesToString = _chunkPWUNCH5Gjs.bytesToString; exports.concat = _chunkPWUNCH5Gjs.concat; exports.concatBytes = _chunkPWUNCH5Gjs.concatBytes; exports.concatHex = _chunkPWUNCH5Gjs.concatHex; exports.containsNodeError = _chunkPWUNCH5Gjs.containsNodeError; exports.decodeAbiParameters = _chunkPWUNCH5Gjs.decodeAbiParameters; exports.decodeErrorResult = _chunkPWUNCH5Gjs.decodeErrorResult; exports.decodeEventLog = _chunkPWUNCH5Gjs.decodeEventLog; exports.decodeFunctionData = _chunkPWUNCH5Gjs.decodeFunctionData; exports.decodeFunctionResult = _chunkPWUNCH5Gjs.decodeFunctionResult; exports.defineBlock = _chunkPWUNCH5Gjs.defineBlock; exports.defineChain = _chunkPWUNCH5Gjs.defineChain; exports.defineFormatter = _chunkPWUNCH5Gjs.defineFormatter; exports.defineTransaction = _chunkPWUNCH5Gjs.defineTransaction; exports.defineTransactionReceipt = _chunkPWUNCH5Gjs.defineTransactionReceipt; exports.defineTransactionRequest = _chunkPWUNCH5Gjs.defineTransactionRequest; exports.encodeAbiParameters = _chunkPWUNCH5Gjs.encodeAbiParameters; exports.encodeDeployData = _chunkPWUNCH5Gjs.encodeDeployData; exports.encodeErrorResult = _chunkPWUNCH5Gjs.encodeErrorResult; exports.encodeEventTopics = _chunkPWUNCH5Gjs.encodeEventTopics; exports.encodeFunctionData = _chunkPWUNCH5Gjs.encodeFunctionData; exports.encodeFunctionResult = _chunkPWUNCH5Gjs.encodeFunctionResult; exports.encodePacked = _chunkPWUNCH5Gjs.encodePacked; exports.extract = _chunkPWUNCH5Gjs.extract; exports.extractFunctionName = _chunkPWUNCH5Gjs.extractFunctionName; exports.extractFunctionParams = _chunkPWUNCH5Gjs.extractFunctionParams; exports.extractFunctionParts = _chunkPWUNCH5Gjs.extractFunctionParts; exports.extractFunctionType = _chunkPWUNCH5Gjs.extractFunctionType; exports.format = _chunkPWUNCH5Gjs.format; exports.formatAbiItem = _chunkPWUNCH5Gjs.formatAbiItem; exports.formatAbiItemWithArgs = _chunkPWUNCH5Gjs.formatAbiItemWithArgs; exports.formatBlock = _chunkPWUNCH5Gjs.formatBlock; exports.formatEther = _chunkPWUNCH5Gjs.formatEther; exports.formatGwei = _chunkPWUNCH5Gjs.formatGwei; exports.formatTransaction = _chunkPWUNCH5Gjs.formatTransaction; exports.formatTransactionRequest = _chunkPWUNCH5Gjs.formatTransactionRequest; exports.formatUnits = _chunkPWUNCH5Gjs.formatUnits; exports.fromBytes = _chunkPWUNCH5Gjs.fromBytes; exports.fromHex = _chunkPWUNCH5Gjs.fromHex; exports.fromRlp = _chunkPWUNCH5Gjs.fromRlp; exports.getAbiItem = _chunkPWUNCH5Gjs.getAbiItem; exports.getAddress = _chunkPWUNCH5Gjs.getAddress; exports.getCallError = _chunkPWUNCH5Gjs.getCallError; exports.getChainContractAddress = _chunkPWUNCH5Gjs.getChainContractAddress; exports.getContractAddress = _chunkPWUNCH5Gjs.getContractAddress; exports.getContractError = _chunkPWUNCH5Gjs.getContractError; exports.getCreate2Address = _chunkPWUNCH5Gjs.getCreate2Address; exports.getCreateAddress = _chunkPWUNCH5Gjs.getCreateAddress; exports.getEstimateGasError = _chunkPWUNCH5Gjs.getEstimateGasError; exports.getEventSelector = _chunkPWUNCH5Gjs.getEventSelector; exports.getFunctionSelector = _chunkPWUNCH5Gjs.getFunctionSelector; exports.getNodeError = _chunkPWUNCH5Gjs.getNodeError; exports.getSerializedTransactionType = _chunkPWUNCH5Gjs.getSerializedTransactionType; exports.getSocket = _chunkPWUNCH5Gjs.getSocket; exports.getTransactionError = _chunkPWUNCH5Gjs.getTransactionError; exports.getTransactionType = _chunkPWUNCH5Gjs.getTransactionType; exports.hashMessage = _chunkPWUNCH5Gjs.hashMessage; exports.hashTypedData = _chunkPWUNCH5Gjs.hashTypedData; exports.hexToBigInt = _chunkPWUNCH5Gjs.hexToBigInt; exports.hexToBool = _chunkPWUNCH5Gjs.hexToBool; exports.hexToBytes = _chunkPWUNCH5Gjs.hexToBytes; exports.hexToNumber = _chunkPWUNCH5Gjs.hexToNumber; exports.hexToString = _chunkPWUNCH5Gjs.hexToString; exports.integerRegex = _chunkPWUNCH5Gjs.integerRegex; exports.isAddress = _chunkPWUNCH5Gjs.isAddress; exports.isAddressEqual = _chunkPWUNCH5Gjs.isAddressEqual; exports.isBytes = _chunkPWUNCH5Gjs.isBytes; exports.isHash = _chunkPWUNCH5Gjs.isHash; exports.isHex = _chunkPWUNCH5Gjs.isHex; exports.keccak256 = _chunkPWUNCH5Gjs.keccak256; exports.numberToBytes = _chunkPWUNCH5Gjs.numberToBytes; exports.numberToHex = _chunkPWUNCH5Gjs.numberToHex; exports.pad = _chunkPWUNCH5Gjs.pad; exports.padBytes = _chunkPWUNCH5Gjs.padBytes; exports.padHex = _chunkPWUNCH5Gjs.padHex; exports.parseAbi = _chunkPWUNCH5Gjs.parseAbi; exports.parseAbiItem = _chunkPWUNCH5Gjs.parseAbiItem; exports.parseAbiParameter = _chunkPWUNCH5Gjs.parseAbiParameter; exports.parseAbiParameters = _chunkPWUNCH5Gjs.parseAbiParameters; exports.parseAccount = _chunkPWUNCH5Gjs.parseAccount; exports.parseEther = _chunkPWUNCH5Gjs.parseEther; exports.parseGwei = _chunkPWUNCH5Gjs.parseGwei; exports.parseTransaction = _chunkPWUNCH5Gjs.parseTransaction; exports.parseUnits = _chunkPWUNCH5Gjs.parseUnits; exports.prepareRequest = _chunkPWUNCH5Gjs.prepareRequest; exports.publicKeyToAddress = _chunkPWUNCH5Gjs.publicKeyToAddress; exports.recoverAddress = _chunkPWUNCH5Gjs.recoverAddress; exports.recoverMessageAddress = _chunkPWUNCH5Gjs.recoverMessageAddress; exports.recoverTypedDataAddress = _chunkPWUNCH5Gjs.recoverTypedDataAddress; exports.rpc = _chunkPWUNCH5Gjs.rpc; exports.serializeTransaction = _chunkPWUNCH5Gjs.serializeTransaction; exports.size = _chunkPWUNCH5Gjs.size; exports.slice = _chunkPWUNCH5Gjs.slice; exports.sliceBytes = _chunkPWUNCH5Gjs.sliceBytes; exports.sliceHex = _chunkPWUNCH5Gjs.sliceHex; exports.stringToBytes = _chunkPWUNCH5Gjs.stringToBytes; exports.stringToHex = _chunkPWUNCH5Gjs.stringToHex; exports.stringify = _chunkPWUNCH5Gjs.stringify; exports.toBytes = _chunkPWUNCH5Gjs.toBytes; exports.toHex = _chunkPWUNCH5Gjs.toHex; exports.toRlp = _chunkPWUNCH5Gjs.toRlp; exports.transactionType = _chunkPWUNCH5Gjs.transactionType; exports.trim = _chunkPWUNCH5Gjs.trim; exports.validateTypedData = _chunkPWUNCH5Gjs.validateTypedData; exports.verifyMessage = _chunkPWUNCH5Gjs.verifyMessage; exports.verifyTypedData = _chunkPWUNCH5Gjs.verifyTypedData;
217
243
  //# sourceMappingURL=index.js.map