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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (154) hide show
  1. package/contract/package.json +4 -0
  2. package/dist/call-ac509982.d.ts +23 -0
  3. package/dist/{chain-e33d019b.d.ts → chain-c4ccb458.d.ts} +1 -1
  4. package/dist/{chain-afa13f5a.d.ts → chain-f16512e8.d.ts} +20 -1
  5. package/dist/chains.d.ts +20 -8
  6. package/dist/chains.js +46 -46
  7. package/dist/chains.mjs +1 -1
  8. package/dist/{chunk-YQUC52RL.mjs → chunk-2Y3UZMSP.mjs} +77 -84
  9. package/dist/chunk-2Y3UZMSP.mjs.map +1 -0
  10. package/dist/{chunk-A2HXAZXC.js → chunk-CD2XJOBJ.js} +135 -142
  11. package/dist/chunk-CD2XJOBJ.js.map +1 -0
  12. package/dist/{chunk-LQVMDX5I.mjs → chunk-KSAO4Y4Q.mjs} +133 -54
  13. package/dist/chunk-KSAO4Y4Q.mjs.map +1 -0
  14. package/dist/{chunk-3ARWEJ3G.mjs → chunk-LEPQJNVO.mjs} +18 -2
  15. package/dist/chunk-LEPQJNVO.mjs.map +1 -0
  16. package/dist/{chunk-ZYSXBTBB.js → chunk-NUXMGPMK.js} +30 -14
  17. package/dist/chunk-NUXMGPMK.js.map +1 -0
  18. package/dist/{chunk-4D5XG6XB.js → chunk-THMRUG4D.js} +148 -69
  19. package/dist/chunk-THMRUG4D.js.map +1 -0
  20. package/dist/{contract-70f4ddbe.d.ts → contract-9e76e561.d.ts} +44 -31
  21. package/dist/contract.d.ts +123 -0
  22. package/dist/contract.js +53 -0
  23. package/dist/{clients/index.js.map → contract.js.map} +0 -0
  24. package/dist/contract.mjs +53 -0
  25. package/dist/{clients/index.mjs.map → contract.mjs.map} +0 -0
  26. package/dist/{createClient-60e3ab98.d.ts → createClient-68ee4bb4.d.ts} +3 -3
  27. package/dist/{createPublicClient-d3d12dc3.d.ts → createPublicClient-b732194e.d.ts} +3 -3
  28. package/dist/{createTestClient-5f4532c4.d.ts → createTestClient-dedf321e.d.ts} +3 -3
  29. package/dist/{createWalletClient-9ec3df4f.d.ts → createWalletClient-75813d83.d.ts} +3 -3
  30. package/dist/decodeErrorResult-0b934d23.d.ts +16 -0
  31. package/dist/{eip1193-9317a312.d.ts → eip1193-6f9ba163.d.ts} +1 -1
  32. package/dist/ens.d.ts +82 -1
  33. package/dist/ens.js +208 -3
  34. package/dist/ens.js.map +1 -1
  35. package/dist/ens.mjs +209 -4
  36. package/dist/ens.mjs.map +1 -1
  37. package/dist/getAbiItem-c8e6e7d4.d.ts +97 -0
  38. package/dist/index.d.ts +85 -175
  39. package/dist/index.js +237 -279
  40. package/dist/index.js.map +1 -1
  41. package/dist/index.mjs +245 -287
  42. package/dist/index.mjs.map +1 -1
  43. package/dist/public.d.ts +352 -10
  44. package/dist/public.js +3 -4
  45. package/dist/public.mjs +6 -7
  46. package/dist/readContract-4f6e2692.d.ts +10 -0
  47. package/dist/rpc-a5a7f376.d.ts +121 -0
  48. package/dist/{sendTransaction-54a0d509.d.ts → sendTransaction-e713f90c.d.ts} +3 -3
  49. package/dist/test.d.ts +160 -5
  50. package/dist/test.js +222 -18
  51. package/dist/test.js.map +1 -1
  52. package/dist/test.mjs +233 -29
  53. package/dist/test.mjs.map +1 -1
  54. package/dist/transactionReceipt-2a86c7c7.d.ts +26 -0
  55. package/dist/{transactionRequest-bdf57f7d.d.ts → transactionRequest-c7794f5e.d.ts} +1 -1
  56. package/dist/utils/index.d.ts +224 -20
  57. package/dist/utils/index.js +2 -6
  58. package/dist/utils/index.mjs +3 -7
  59. package/dist/wallet.d.ts +41 -7
  60. package/dist/wallet.js +3 -3
  61. package/dist/wallet.mjs +2 -2
  62. package/dist/watchEvent-c346c12d.d.ts +41 -0
  63. package/dist/window.d.ts +2 -2
  64. package/ens/package.json +4 -0
  65. package/package.json +13 -9
  66. package/src/_test/constants.ts +2 -0
  67. package/src/_test/utils.ts +10 -5
  68. package/src/actions/ens/getEnsAddress.bench.ts +26 -0
  69. package/src/actions/ens/getEnsAddress.test.ts +97 -0
  70. package/src/actions/ens/getEnsAddress.ts +122 -0
  71. package/src/actions/ens/getEnsName.bench.ts +30 -0
  72. package/src/actions/ens/getEnsName.test.ts +101 -0
  73. package/src/actions/ens/getEnsName.ts +106 -0
  74. package/src/actions/ens/index.test.ts +12 -0
  75. package/src/actions/ens/index.ts +3 -0
  76. package/src/actions/index.ts +3 -3
  77. package/src/actions/public/createEventFilter.test.ts +36 -4
  78. package/src/actions/public/createEventFilter.ts +27 -10
  79. package/src/actions/public/getFilterChanges.test.ts +198 -4
  80. package/src/actions/public/getFilterLogs.test.ts +195 -2
  81. package/src/actions/public/getLogs.test.ts +201 -2
  82. package/src/actions/public/index.test.ts +0 -1
  83. package/src/actions/public/index.ts +1 -7
  84. package/src/actions/public/multicall.ts +8 -3
  85. package/src/actions/public/simulateContract.ts +1 -4
  86. package/src/actions/public/watchContractEvent.test.ts +4 -4
  87. package/src/actions/{public → wallet}/deployContract.test.ts +1 -2
  88. package/src/actions/{public → wallet}/deployContract.ts +0 -0
  89. package/src/actions/wallet/index.test.ts +1 -0
  90. package/src/actions/wallet/index.ts +6 -0
  91. package/src/chains.test.ts +44 -1517
  92. package/src/clients/transports/webSocket.test.ts +1 -0
  93. package/src/clients/transports/webSocket.ts +1 -0
  94. package/src/contract.test.ts +31 -0
  95. package/src/contract.ts +68 -0
  96. package/src/ens.test.ts +15 -0
  97. package/src/ens.ts +4 -1
  98. package/src/errors/abi.ts +18 -2
  99. package/src/errors/chain.test.ts +46 -0
  100. package/src/errors/chain.ts +33 -0
  101. package/src/errors/contract.ts +2 -2
  102. package/src/errors/index.ts +3 -0
  103. package/src/index.test.ts +0 -147
  104. package/src/index.ts +0 -257
  105. package/src/public.test.ts +36 -0
  106. package/src/public.ts +2 -6
  107. package/src/test.test.ts +38 -0
  108. package/src/test.ts +1 -0
  109. package/src/types/contract.ts +144 -40
  110. package/src/types/index.ts +2 -1
  111. package/src/types/utils.ts +21 -0
  112. package/src/utils/abi/decodeErrorResult.test.ts +1 -1
  113. package/src/utils/abi/decodeEventLog.test.ts +542 -0
  114. package/src/utils/abi/decodeEventLog.ts +107 -0
  115. package/src/utils/abi/decodeFunctionData.test.ts +1 -2
  116. package/src/utils/abi/decodeFunctionData.ts +5 -2
  117. package/src/utils/abi/encodeFunctionData.ts +1 -4
  118. package/src/utils/abi/index.test.ts +1 -0
  119. package/src/utils/abi/index.ts +6 -0
  120. package/src/utils/ens/index.test.ts +1 -0
  121. package/src/utils/ens/index.ts +2 -0
  122. package/src/utils/ens/packetToBytes.test.ts +11 -0
  123. package/src/utils/ens/packetToBytes.ts +29 -0
  124. package/src/utils/index.test.ts +1 -3
  125. package/src/utils/index.ts +3 -2
  126. package/src/utils/rpc.test.ts +1 -0
  127. package/src/utils/rpc.ts +4 -2
  128. package/src/wallet.test.ts +19 -0
  129. package/wallet/package.json +4 -0
  130. package/clients/package.json +0 -4
  131. package/dist/chunk-3ARWEJ3G.mjs.map +0 -1
  132. package/dist/chunk-4D5XG6XB.js.map +0 -1
  133. package/dist/chunk-6QTEW2BE.mjs +0 -260
  134. package/dist/chunk-6QTEW2BE.mjs.map +0 -1
  135. package/dist/chunk-A2HXAZXC.js.map +0 -1
  136. package/dist/chunk-KRPS5CIB.mjs +0 -256
  137. package/dist/chunk-KRPS5CIB.mjs.map +0 -1
  138. package/dist/chunk-LQVMDX5I.mjs.map +0 -1
  139. package/dist/chunk-N3IOPT3R.js +0 -256
  140. package/dist/chunk-N3IOPT3R.js.map +0 -1
  141. package/dist/chunk-YQUC52RL.mjs.map +0 -1
  142. package/dist/chunk-ZSTVHQ6J.js +0 -260
  143. package/dist/chunk-ZSTVHQ6J.js.map +0 -1
  144. package/dist/chunk-ZYSXBTBB.js.map +0 -1
  145. package/dist/clients/index.d.ts +0 -9
  146. package/dist/clients/index.js +0 -24
  147. package/dist/clients/index.mjs +0 -24
  148. package/dist/normalize-ef9240c0.d.ts +0 -33
  149. package/dist/parseGwei-492ab7dd.d.ts +0 -355
  150. package/dist/rpc-26932bae.d.ts +0 -61
  151. package/dist/stopImpersonatingAccount-c1a4b7e5.d.ts +0 -156
  152. package/dist/watchAsset-d59d6e35.d.ts +0 -38
  153. package/dist/watchPendingTransactions-ea21b31d.d.ts +0 -373
  154. package/dist/webSocket-775b4037.d.ts +0 -83
@@ -1,4 +1,5 @@
1
1
  import { assertType, describe, expect, test } from 'vitest'
2
+ import WebSocket from 'isomorphic-ws'
2
3
 
3
4
  import { localWsUrl } from '../../_test'
4
5
  import { localhost } from '../../chains'
@@ -1,3 +1,4 @@
1
+ import WebSocket from 'isomorphic-ws'
1
2
  import { UrlRequiredError } from '../../errors'
2
3
  import type { Hash } from '../../types'
3
4
  import type { RpcResponse } from '../../utils/rpc'
@@ -0,0 +1,31 @@
1
+ import { expect, test } from 'vitest'
2
+
3
+ import * as contract from './contract'
4
+
5
+ test('exports contract actions', () => {
6
+ expect(Object.keys(contract)).toMatchInlineSnapshot(`
7
+ [
8
+ "getBytecode",
9
+ "getStorageAt",
10
+ "multicall",
11
+ "readContract",
12
+ "simulateContract",
13
+ "watchContractEvent",
14
+ "deployContract",
15
+ "writeContract",
16
+ "decodeAbi",
17
+ "decodeErrorResult",
18
+ "decodeFunctionData",
19
+ "decodeFunctionResult",
20
+ "encodeAbi",
21
+ "encodeDeployData",
22
+ "encodeErrorResult",
23
+ "encodeEventTopics",
24
+ "encodeFunctionData",
25
+ "encodeFunctionResult",
26
+ "formatAbiItemWithArgs",
27
+ "formatAbiItem",
28
+ "getAbiItem",
29
+ ]
30
+ `)
31
+ })
@@ -0,0 +1,68 @@
1
+ export type {
2
+ GetBytecodeArgs,
3
+ GetBytecodeResponse,
4
+ GetStorageAtArgs,
5
+ GetStorageAtResponse,
6
+ MulticallArgs,
7
+ MulticallResponse,
8
+ OnLogs,
9
+ OnLogsResponse,
10
+ ReadContractArgs,
11
+ ReadContractResponse,
12
+ SimulateContractArgs,
13
+ SimulateContractResponse,
14
+ WatchContractEventArgs,
15
+ } from './actions/public'
16
+ export {
17
+ getBytecode,
18
+ getStorageAt,
19
+ multicall,
20
+ readContract,
21
+ simulateContract,
22
+ watchContractEvent,
23
+ } from './actions/public'
24
+
25
+ export type {
26
+ DeployContractArgs,
27
+ DeployContractResponse,
28
+ WriteContractArgs,
29
+ WriteContractResponse,
30
+ } from './actions/wallet'
31
+ export {
32
+ deployContract,
33
+ writeContract,
34
+ } from './actions/wallet'
35
+
36
+ export type {
37
+ DecodeAbiArgs,
38
+ DecodeErrorResultArgs,
39
+ DecodeErrorResultResponse,
40
+ DecodeEventLogArgs,
41
+ DecodeEventLogResponse,
42
+ DecodeFunctionDataArgs,
43
+ DecodeFunctionResultArgs,
44
+ DecodeFunctionResultResponse,
45
+ EncodeAbiArgs,
46
+ EncodeDeployDataArgs,
47
+ EncodeErrorResultArgs,
48
+ EncodeEventTopicsArgs,
49
+ EncodeFunctionDataArgs,
50
+ EncodeFunctionResultArgs,
51
+ GetAbiItemArgs,
52
+ } from './utils'
53
+ export {
54
+ decodeAbi,
55
+ decodeErrorResult,
56
+ decodeEventLog,
57
+ decodeFunctionData,
58
+ decodeFunctionResult,
59
+ encodeAbi,
60
+ encodeDeployData,
61
+ encodeErrorResult,
62
+ encodeEventTopics,
63
+ encodeFunctionData,
64
+ encodeFunctionResult,
65
+ formatAbiItemWithArgs,
66
+ formatAbiItem,
67
+ getAbiItem,
68
+ } from './utils'
@@ -0,0 +1,15 @@
1
+ import { expect, test } from 'vitest'
2
+
3
+ import * as ens from './ens'
4
+
5
+ test('exports ens', () => {
6
+ expect(ens).toMatchInlineSnapshot(`
7
+ {
8
+ "getEnsAddress": [Function],
9
+ "getEnsName": [Function],
10
+ "labelhash": [Function],
11
+ "namehash": [Function],
12
+ "normalize": [Function],
13
+ }
14
+ `)
15
+ })
package/src/ens.ts CHANGED
@@ -1,5 +1,8 @@
1
+ export type { GetEnsAddressArgs, GetEnsNameArgs } from './actions/ens'
2
+ export { getEnsAddress, getEnsName } from './actions/ens'
3
+
1
4
  export {
2
5
  labelhash,
3
6
  namehash,
4
7
  normalize,
5
- } from './utils'
8
+ } from './utils/ens'
package/src/errors/abi.ts CHANGED
@@ -121,7 +121,23 @@ export class AbiErrorSignatureNotFoundError extends BaseError {
121
121
  [
122
122
  `Encoded error signature "${signature}" not found on ABI.`,
123
123
  'Make sure you are using the correct ABI and that the error exists on it.',
124
- `You can look up the signature "${signature}" here: https://sig.eth.samczsun.com/.`,
124
+ `You can look up the signature here: https://openchain.xyz/signatures?query=${signature}.`,
125
+ ].join('\n'),
126
+ {
127
+ docsPath,
128
+ },
129
+ )
130
+ }
131
+ }
132
+
133
+ export class AbiEventSignatureNotFoundError extends BaseError {
134
+ name = 'AbiEventSignatureNotFoundError'
135
+ constructor(signature: Hex, { docsPath }: { docsPath: string }) {
136
+ super(
137
+ [
138
+ `Encoded event signature "${signature}" not found on ABI.`,
139
+ 'Make sure you are using the correct ABI and that the event exists on it.',
140
+ `You can look up the signature here: https://openchain.xyz/signatures?query=${signature}.`,
125
141
  ].join('\n'),
126
142
  {
127
143
  docsPath,
@@ -183,7 +199,7 @@ export class AbiFunctionSignatureNotFoundError extends BaseError {
183
199
  [
184
200
  `Encoded function signature "${signature}" not found on ABI.`,
185
201
  'Make sure you are using the correct ABI and that the function exists on it.',
186
- `You can look up the signature "${signature}" here: https://sig.eth.samczsun.com/.`,
202
+ `You can look up the signature here: https://openchain.xyz/signatures?query=${signature}.`,
187
203
  ].join('\n'),
188
204
  {
189
205
  docsPath,
@@ -0,0 +1,46 @@
1
+ import { expect, test } from 'vitest'
2
+ import { mainnet } from '../chains'
3
+ import { ChainDoesNotSupportContract } from './chain'
4
+
5
+ test('ChainDoesNotSupportContract', () => {
6
+ expect(
7
+ new ChainDoesNotSupportContract({
8
+ chain: mainnet,
9
+ contract: { name: 'ensUniversalResolver' },
10
+ }),
11
+ ).toMatchInlineSnapshot(`
12
+ [ChainDoesNotSupportContract: Chain "Ethereum" does not support contract "ensUniversalResolver".
13
+
14
+ This could be due to any of the following:
15
+ - The chain does not have the contract "ensUniversalResolver" configured.
16
+
17
+ Version: viem@1.0.2]
18
+ `)
19
+ expect(
20
+ new ChainDoesNotSupportContract({
21
+ chain: mainnet,
22
+ contract: { name: 'ensUniversalResolver', blockCreated: 16172161 },
23
+ }),
24
+ ).toMatchInlineSnapshot(`
25
+ [ChainDoesNotSupportContract: Chain "Ethereum" does not support contract "ensUniversalResolver".
26
+
27
+ This could be due to any of the following:
28
+ - The chain does not have the contract "ensUniversalResolver" configured.
29
+
30
+ Version: viem@1.0.2]
31
+ `)
32
+ expect(
33
+ new ChainDoesNotSupportContract({
34
+ blockNumber: 16172160n,
35
+ chain: mainnet,
36
+ contract: { name: 'ensUniversalResolver', blockCreated: 16172161 },
37
+ }),
38
+ ).toMatchInlineSnapshot(`
39
+ [ChainDoesNotSupportContract: Chain "Ethereum" does not support contract "ensUniversalResolver".
40
+
41
+ This could be due to any of the following:
42
+ - The contract "ensUniversalResolver" was not deployed until block 16172161 (current block 16172160).
43
+
44
+ Version: viem@1.0.2]
45
+ `)
46
+ })
@@ -0,0 +1,33 @@
1
+ import { Chain } from '../types'
2
+ import { BaseError } from './base'
3
+
4
+ export class ChainDoesNotSupportContract extends BaseError {
5
+ name = 'ChainDoesNotSupportContract'
6
+ constructor({
7
+ blockNumber,
8
+ chain,
9
+ contract,
10
+ }: {
11
+ blockNumber?: bigint
12
+ chain: Chain
13
+ contract: { name: string; blockCreated?: number }
14
+ }) {
15
+ super(
16
+ `Chain "${chain.name}" does not support contract "${contract.name}".`,
17
+ {
18
+ metaMessages: [
19
+ 'This could be due to any of the following:',
20
+ ...(blockNumber &&
21
+ contract.blockCreated &&
22
+ contract.blockCreated > blockNumber
23
+ ? [
24
+ `- The contract "${contract.name}" was not deployed until block ${contract.blockCreated} (current block ${blockNumber}).`,
25
+ ]
26
+ : [
27
+ `- The chain does not have the contract "${contract.name}" configured.`,
28
+ ]),
29
+ ],
30
+ },
31
+ )
32
+ }
33
+ }
@@ -1,12 +1,12 @@
1
1
  import { Abi } from 'abitype'
2
2
  import { panicReasons } from '../constants'
3
- import { Address, Hex } from '../types'
3
+ import { Address, Chain, Hex } from '../types'
4
4
  import {
5
5
  DecodeErrorResultResponse,
6
6
  decodeErrorResult,
7
7
  getAbiItem,
8
- formatAbiItemWithArgs,
9
8
  formatAbiItem,
9
+ formatAbiItemWithArgs,
10
10
  } from '../utils'
11
11
  import { BaseError } from './base'
12
12
 
@@ -8,6 +8,7 @@ export {
8
8
  AbiErrorInputsNotFoundError,
9
9
  AbiErrorNotFoundError,
10
10
  AbiErrorSignatureNotFoundError,
11
+ AbiEventSignatureNotFoundError,
11
12
  AbiEventNotFoundError,
12
13
  AbiFunctionNotFoundError,
13
14
  AbiFunctionOutputsNotFoundError,
@@ -24,6 +25,8 @@ export { BaseError } from './base'
24
25
 
25
26
  export { BlockNotFoundError } from './block'
26
27
 
28
+ export { ChainDoesNotSupportContract } from './chain'
29
+
27
30
  export {
28
31
  ContractFunctionExecutionError,
29
32
  ContractFunctionRevertedError,
package/src/index.test.ts CHANGED
@@ -59,102 +59,14 @@ test('exports actions', () => {
59
59
  "UrlRequiredError": [Function],
60
60
  "WaitForTransactionReceiptTimeoutError": [Function],
61
61
  "WebSocketRequestError": [Function],
62
- "addChain": [Function],
63
- "boolToBytes": [Function],
64
- "boolToHex": [Function],
65
- "bytesToBigint": [Function],
66
- "bytesToBool": [Function],
67
- "bytesToHex": [Function],
68
- "bytesToNumber": [Function],
69
- "bytesToString": [Function],
70
- "call": [Function],
71
- "createBlockFilter": [Function],
72
62
  "createClient": [Function],
73
- "createContractEventFilter": [Function],
74
- "createEventFilter": [Function],
75
- "createPendingTransactionFilter": [Function],
76
63
  "createPublicClient": [Function],
77
64
  "createTestClient": [Function],
78
65
  "createTransport": [Function],
79
66
  "createWalletClient": [Function],
80
67
  "custom": [Function],
81
- "decodeAbi": [Function],
82
- "decodeBytes": [Function],
83
- "decodeErrorResult": [Function],
84
- "decodeFunctionData": [Function],
85
- "decodeFunctionResult": [Function],
86
- "decodeHex": [Function],
87
- "decodeRlp": [Function],
88
- "deployContract": [Function],
89
- "dropTransaction": [Function],
90
- "encodeAbi": [Function],
91
- "encodeBytes": [Function],
92
- "encodeDeployData": [Function],
93
- "encodeErrorResult": [Function],
94
- "encodeEventTopics": [Function],
95
- "encodeFunctionData": [Function],
96
- "encodeFunctionResult": [Function],
97
- "encodeHex": [Function],
98
- "encodeRlp": [Function],
99
- "estimateGas": [Function],
100
- "etherUnits": {
101
- "gwei": 9,
102
- "wei": 18,
103
- },
104
68
  "fallback": [Function],
105
- "formatBlock": [Function],
106
- "formatEther": [Function],
107
- "formatGwei": [Function],
108
- "formatTransaction": [Function],
109
- "formatTransactionRequest": [Function],
110
- "formatUnit": [Function],
111
- "getAccounts": [Function],
112
- "getAddress": [Function],
113
- "getAutomine": [Function],
114
- "getBalance": [Function],
115
- "getBlock": [Function],
116
- "getBlockNumber": [Function],
117
- "getBlockTransactionCount": [Function],
118
- "getBytecode": [Function],
119
- "getChainId": [Function],
120
- "getContractAddress": [Function],
121
- "getCreate2Address": [Function],
122
- "getCreateAddress": [Function],
123
- "getEventSignature": [Function],
124
- "getFeeHistory": [Function],
125
- "getFilterChanges": [Function],
126
- "getFilterLogs": [Function],
127
- "getFunctionSignature": [Function],
128
- "getGasPrice": [Function],
129
- "getLogs": [Function],
130
- "getPermissions": [Function],
131
- "getStorageAt": [Function],
132
- "getTransaction": [Function],
133
- "getTransactionConfirmations": [Function],
134
- "getTransactionCount": [Function],
135
- "getTransactionReceipt": [Function],
136
- "getTxpoolContent": [Function],
137
- "getTxpoolStatus": [Function],
138
- "gweiUnits": {
139
- "ether": -9,
140
- "wei": 9,
141
- },
142
- "hexToBigInt": [Function],
143
- "hexToBool": [Function],
144
- "hexToBytes": [Function],
145
- "hexToNumber": [Function],
146
- "hexToString": [Function],
147
69
  "http": [Function],
148
- "impersonateAccount": [Function],
149
- "increaseTime": [Function],
150
- "inspectTxpool": [Function],
151
- "isAddress": [Function],
152
- "isAddressEqual": [Function],
153
- "isBytes": [Function],
154
- "isHex": [Function],
155
- "keccak256": [Function],
156
- "mine": [Function],
157
- "multicall": [Function],
158
70
  "multicall3Abi": [
159
71
  {
160
72
  "inputs": [
@@ -198,66 +110,7 @@ test('exports actions', () => {
198
110
  "type": "function",
199
111
  },
200
112
  ],
201
- "numberToBytes": [Function],
202
- "numberToHex": [Function],
203
- "pad": [Function],
204
- "padBytes": [Function],
205
- "padHex": [Function],
206
- "parseEther": [Function],
207
- "parseGwei": [Function],
208
- "parseUnit": [Function],
209
- "readContract": [Function],
210
- "removeBlockTimestampInterval": [Function],
211
- "requestAccounts": [Function],
212
- "requestPermissions": [Function],
213
- "reset": [Function],
214
- "revert": [Function],
215
- "sendTransaction": [Function],
216
- "sendUnsignedTransaction": [Function],
217
- "setAutomine": [Function],
218
- "setBalance": [Function],
219
- "setBlockGasLimit": [Function],
220
- "setBlockTimestampInterval": [Function],
221
- "setCode": [Function],
222
- "setCoinbase": [Function],
223
- "setIntervalMining": [Function],
224
- "setLoggingEnabled": [Function],
225
- "setMinGasPrice": [Function],
226
- "setNextBlockBaseFeePerGas": [Function],
227
- "setNextBlockTimestamp": [Function],
228
- "setNonce": [Function],
229
- "setStorageAt": [Function],
230
- "signMessage": [Function],
231
- "simulateContract": [Function],
232
- "size": [Function],
233
- "slice": [Function],
234
- "sliceBytes": [Function],
235
- "sliceHex": [Function],
236
- "snapshot": [Function],
237
- "stopImpersonatingAccount": [Function],
238
- "stringToBytes": [Function],
239
- "stringToHex": [Function],
240
- "switchChain": [Function],
241
- "transactionType": {
242
- "0x0": "legacy",
243
- "0x1": "eip2930",
244
- "0x2": "eip1559",
245
- },
246
- "trim": [Function],
247
- "uninstallFilter": [Function],
248
- "waitForTransactionReceipt": [Function],
249
- "watchAsset": [Function],
250
- "watchBlockNumber": [Function],
251
- "watchBlocks": [Function],
252
- "watchContractEvent": [Function],
253
- "watchEvent": [Function],
254
- "watchPendingTransactions": [Function],
255
113
  "webSocket": [Function],
256
- "weiUnits": {
257
- "ether": -18,
258
- "gwei": -9,
259
- },
260
- "writeContract": [Function],
261
114
  }
262
115
  `)
263
116
  })