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.
- package/contract/package.json +4 -0
- package/dist/call-ac509982.d.ts +23 -0
- package/dist/{chain-e33d019b.d.ts → chain-c4ccb458.d.ts} +1 -1
- package/dist/{chain-afa13f5a.d.ts → chain-f16512e8.d.ts} +20 -1
- package/dist/chains.d.ts +20 -8
- package/dist/chains.js +46 -46
- package/dist/chains.mjs +1 -1
- package/dist/{chunk-YQUC52RL.mjs → chunk-2Y3UZMSP.mjs} +77 -84
- package/dist/chunk-2Y3UZMSP.mjs.map +1 -0
- package/dist/{chunk-A2HXAZXC.js → chunk-CD2XJOBJ.js} +135 -142
- package/dist/chunk-CD2XJOBJ.js.map +1 -0
- package/dist/{chunk-LQVMDX5I.mjs → chunk-KSAO4Y4Q.mjs} +133 -54
- package/dist/chunk-KSAO4Y4Q.mjs.map +1 -0
- package/dist/{chunk-3ARWEJ3G.mjs → chunk-LEPQJNVO.mjs} +18 -2
- package/dist/chunk-LEPQJNVO.mjs.map +1 -0
- package/dist/{chunk-ZYSXBTBB.js → chunk-NUXMGPMK.js} +30 -14
- package/dist/chunk-NUXMGPMK.js.map +1 -0
- package/dist/{chunk-4D5XG6XB.js → chunk-THMRUG4D.js} +148 -69
- package/dist/chunk-THMRUG4D.js.map +1 -0
- package/dist/{contract-70f4ddbe.d.ts → contract-9e76e561.d.ts} +44 -31
- package/dist/contract.d.ts +123 -0
- package/dist/contract.js +53 -0
- package/dist/{clients/index.js.map → contract.js.map} +0 -0
- package/dist/contract.mjs +53 -0
- package/dist/{clients/index.mjs.map → contract.mjs.map} +0 -0
- package/dist/{createClient-60e3ab98.d.ts → createClient-68ee4bb4.d.ts} +3 -3
- package/dist/{createPublicClient-d3d12dc3.d.ts → createPublicClient-b732194e.d.ts} +3 -3
- package/dist/{createTestClient-5f4532c4.d.ts → createTestClient-dedf321e.d.ts} +3 -3
- package/dist/{createWalletClient-9ec3df4f.d.ts → createWalletClient-75813d83.d.ts} +3 -3
- package/dist/decodeErrorResult-0b934d23.d.ts +16 -0
- package/dist/{eip1193-9317a312.d.ts → eip1193-6f9ba163.d.ts} +1 -1
- package/dist/ens.d.ts +82 -1
- package/dist/ens.js +208 -3
- package/dist/ens.js.map +1 -1
- package/dist/ens.mjs +209 -4
- package/dist/ens.mjs.map +1 -1
- package/dist/getAbiItem-c8e6e7d4.d.ts +97 -0
- package/dist/index.d.ts +85 -175
- package/dist/index.js +237 -279
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +245 -287
- package/dist/index.mjs.map +1 -1
- package/dist/public.d.ts +352 -10
- package/dist/public.js +3 -4
- package/dist/public.mjs +6 -7
- package/dist/readContract-4f6e2692.d.ts +10 -0
- package/dist/rpc-a5a7f376.d.ts +121 -0
- package/dist/{sendTransaction-54a0d509.d.ts → sendTransaction-e713f90c.d.ts} +3 -3
- package/dist/test.d.ts +160 -5
- package/dist/test.js +222 -18
- package/dist/test.js.map +1 -1
- package/dist/test.mjs +233 -29
- package/dist/test.mjs.map +1 -1
- package/dist/transactionReceipt-2a86c7c7.d.ts +26 -0
- package/dist/{transactionRequest-bdf57f7d.d.ts → transactionRequest-c7794f5e.d.ts} +1 -1
- package/dist/utils/index.d.ts +224 -20
- package/dist/utils/index.js +2 -6
- package/dist/utils/index.mjs +3 -7
- package/dist/wallet.d.ts +41 -7
- package/dist/wallet.js +3 -3
- package/dist/wallet.mjs +2 -2
- package/dist/watchEvent-c346c12d.d.ts +41 -0
- package/dist/window.d.ts +2 -2
- package/ens/package.json +4 -0
- package/package.json +13 -9
- package/src/_test/constants.ts +2 -0
- package/src/_test/utils.ts +10 -5
- package/src/actions/ens/getEnsAddress.bench.ts +26 -0
- package/src/actions/ens/getEnsAddress.test.ts +97 -0
- package/src/actions/ens/getEnsAddress.ts +122 -0
- package/src/actions/ens/getEnsName.bench.ts +30 -0
- package/src/actions/ens/getEnsName.test.ts +101 -0
- package/src/actions/ens/getEnsName.ts +106 -0
- package/src/actions/ens/index.test.ts +12 -0
- package/src/actions/ens/index.ts +3 -0
- package/src/actions/index.ts +3 -3
- package/src/actions/public/createEventFilter.test.ts +36 -4
- package/src/actions/public/createEventFilter.ts +27 -10
- package/src/actions/public/getFilterChanges.test.ts +198 -4
- package/src/actions/public/getFilterLogs.test.ts +195 -2
- package/src/actions/public/getLogs.test.ts +201 -2
- package/src/actions/public/index.test.ts +0 -1
- package/src/actions/public/index.ts +1 -7
- package/src/actions/public/multicall.ts +8 -3
- package/src/actions/public/simulateContract.ts +1 -4
- package/src/actions/public/watchContractEvent.test.ts +4 -4
- package/src/actions/{public → wallet}/deployContract.test.ts +1 -2
- package/src/actions/{public → wallet}/deployContract.ts +0 -0
- package/src/actions/wallet/index.test.ts +1 -0
- package/src/actions/wallet/index.ts +6 -0
- package/src/chains.test.ts +44 -1517
- package/src/clients/transports/webSocket.test.ts +1 -0
- package/src/clients/transports/webSocket.ts +1 -0
- package/src/contract.test.ts +31 -0
- package/src/contract.ts +68 -0
- package/src/ens.test.ts +15 -0
- package/src/ens.ts +4 -1
- package/src/errors/abi.ts +18 -2
- package/src/errors/chain.test.ts +46 -0
- package/src/errors/chain.ts +33 -0
- package/src/errors/contract.ts +2 -2
- package/src/errors/index.ts +3 -0
- package/src/index.test.ts +0 -147
- package/src/index.ts +0 -257
- package/src/public.test.ts +36 -0
- package/src/public.ts +2 -6
- package/src/test.test.ts +38 -0
- package/src/test.ts +1 -0
- package/src/types/contract.ts +144 -40
- package/src/types/index.ts +2 -1
- package/src/types/utils.ts +21 -0
- package/src/utils/abi/decodeErrorResult.test.ts +1 -1
- package/src/utils/abi/decodeEventLog.test.ts +542 -0
- package/src/utils/abi/decodeEventLog.ts +107 -0
- package/src/utils/abi/decodeFunctionData.test.ts +1 -2
- package/src/utils/abi/decodeFunctionData.ts +5 -2
- package/src/utils/abi/encodeFunctionData.ts +1 -4
- package/src/utils/abi/index.test.ts +1 -0
- package/src/utils/abi/index.ts +6 -0
- package/src/utils/ens/index.test.ts +1 -0
- package/src/utils/ens/index.ts +2 -0
- package/src/utils/ens/packetToBytes.test.ts +11 -0
- package/src/utils/ens/packetToBytes.ts +29 -0
- package/src/utils/index.test.ts +1 -3
- package/src/utils/index.ts +3 -2
- package/src/utils/rpc.test.ts +1 -0
- package/src/utils/rpc.ts +4 -2
- package/src/wallet.test.ts +19 -0
- package/wallet/package.json +4 -0
- package/clients/package.json +0 -4
- package/dist/chunk-3ARWEJ3G.mjs.map +0 -1
- package/dist/chunk-4D5XG6XB.js.map +0 -1
- package/dist/chunk-6QTEW2BE.mjs +0 -260
- package/dist/chunk-6QTEW2BE.mjs.map +0 -1
- package/dist/chunk-A2HXAZXC.js.map +0 -1
- package/dist/chunk-KRPS5CIB.mjs +0 -256
- package/dist/chunk-KRPS5CIB.mjs.map +0 -1
- package/dist/chunk-LQVMDX5I.mjs.map +0 -1
- package/dist/chunk-N3IOPT3R.js +0 -256
- package/dist/chunk-N3IOPT3R.js.map +0 -1
- package/dist/chunk-YQUC52RL.mjs.map +0 -1
- package/dist/chunk-ZSTVHQ6J.js +0 -260
- package/dist/chunk-ZSTVHQ6J.js.map +0 -1
- package/dist/chunk-ZYSXBTBB.js.map +0 -1
- package/dist/clients/index.d.ts +0 -9
- package/dist/clients/index.js +0 -24
- package/dist/clients/index.mjs +0 -24
- package/dist/normalize-ef9240c0.d.ts +0 -33
- package/dist/parseGwei-492ab7dd.d.ts +0 -355
- package/dist/rpc-26932bae.d.ts +0 -61
- package/dist/stopImpersonatingAccount-c1a4b7e5.d.ts +0 -156
- package/dist/watchAsset-d59d6e35.d.ts +0 -38
- package/dist/watchPendingTransactions-ea21b31d.d.ts +0 -373
- package/dist/webSocket-775b4037.d.ts +0 -83
@@ -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
|
+
})
|
package/src/contract.ts
ADDED
@@ -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'
|
package/src/ens.test.ts
ADDED
@@ -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
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
|
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
|
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
|
+
}
|
package/src/errors/contract.ts
CHANGED
@@ -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
|
|
package/src/errors/index.ts
CHANGED
@@ -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
|
})
|