viem 0.0.1-alpha.21 → 0.0.1-alpha.23
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/dist/{chain-32f56cfa.d.ts → chain-4b39613a.d.ts} +2 -2
- package/dist/{chain-f12cdc7f.d.ts → chain-aa4898d0.d.ts} +1 -1
- package/dist/chains.d.ts +3 -3
- package/dist/chains.js +46 -46
- package/dist/chains.mjs +1 -1
- package/dist/{chunk-EC3NUIJE.js → chunk-7Y5QVLX7.js} +13 -13
- package/dist/{chunk-EC3NUIJE.js.map → chunk-7Y5QVLX7.js.map} +1 -1
- package/dist/{chunk-KEHGSYDO.js → chunk-BV5NTHUX.js} +14 -13
- package/dist/chunk-BV5NTHUX.js.map +1 -0
- package/dist/{chunk-46BO7YAQ.mjs → chunk-EGVXCZNJ.mjs} +4 -3
- package/dist/chunk-EGVXCZNJ.mjs.map +1 -0
- package/dist/{chunk-57ZOFERP.mjs → chunk-GX2KDAM3.mjs} +2 -2
- package/dist/{chunk-57ZOFERP.mjs.map → chunk-GX2KDAM3.mjs.map} +0 -0
- package/dist/{chunk-W7BWWAC4.js → chunk-NW6724MI.js} +14 -14
- package/dist/{chunk-W7BWWAC4.js.map → chunk-NW6724MI.js.map} +0 -0
- package/dist/{chunk-DGO77E2H.mjs → chunk-RJLUZTJS.mjs} +86 -3
- package/dist/chunk-RJLUZTJS.mjs.map +1 -0
- package/dist/{chunk-O2GYLJVD.js → chunk-SSPRUPGN.js} +405 -165
- package/dist/chunk-SSPRUPGN.js.map +1 -0
- package/dist/{chunk-DSPMAIDO.mjs → chunk-TXHOG6KU.mjs} +2 -2
- package/dist/{chunk-DSPMAIDO.mjs.map → chunk-TXHOG6KU.mjs.map} +1 -1
- package/dist/{chunk-62VTYU2V.mjs → chunk-XBUH66KN.mjs} +406 -166
- package/dist/chunk-XBUH66KN.mjs.map +1 -0
- package/dist/{chunk-KZMJR27B.js → chunk-ZKYGWITF.js} +147 -64
- package/dist/chunk-ZKYGWITF.js.map +1 -0
- package/dist/clients/index.d.ts +7 -7
- package/dist/clients/index.js +3 -3
- package/dist/clients/index.mjs +2 -2
- package/dist/{contract-9af4608b.d.ts → contract-4c3a37b3.d.ts} +14 -3
- package/dist/{createClient-5d316c7e.d.ts → createClient-55a04188.d.ts} +2 -2
- package/dist/{createPublicClient-9d2b42e1.d.ts → createPublicClient-3b27b282.d.ts} +3 -3
- package/dist/{createTestClient-79498dab.d.ts → createTestClient-93f9eac6.d.ts} +3 -3
- package/dist/{createWalletClient-f69a5230.d.ts → createWalletClient-c10df94d.d.ts} +3 -3
- package/dist/{eip1193-6c485d63.d.ts → eip1193-4c24765a.d.ts} +1 -1
- package/dist/ens.d.ts +1 -0
- package/dist/ens.js +11 -0
- package/dist/ens.js.map +1 -0
- package/dist/ens.mjs +11 -0
- package/dist/ens.mjs.map +1 -0
- package/dist/index.d.ts +174 -113
- package/dist/index.js +16 -6
- package/dist/index.mjs +15 -5
- package/dist/normalize-ef9240c0.d.ts +33 -0
- package/dist/{parseGwei-4308ad80.d.ts → parseGwei-3411cf2d.d.ts} +101 -37
- package/dist/public.d.ts +9 -9
- package/dist/public.js +4 -4
- package/dist/public.mjs +3 -3
- package/dist/{sendTransaction-1c8290a9.d.ts → sendTransaction-f17a2389.d.ts} +3 -3
- package/dist/{stopImpersonatingAccount-7781842a.d.ts → stopImpersonatingAccount-afb26486.d.ts} +2 -2
- package/dist/test.d.ts +5 -5
- package/dist/test.js +3 -3
- package/dist/test.mjs +2 -2
- package/dist/{transactionRequest-341b6ed2.d.ts → transactionRequest-93e9f001.d.ts} +2 -2
- package/dist/utils/index.d.ts +14 -16
- package/dist/utils/index.js +8 -2
- package/dist/utils/index.mjs +7 -1
- package/dist/wallet.d.ts +7 -7
- package/dist/wallet.js +3 -3
- package/dist/wallet.mjs +2 -2
- package/dist/{watchAsset-afaad3c7.d.ts → watchAsset-efd3dd05.d.ts} +3 -3
- package/dist/{watchPendingTransactions-3b722547.d.ts → watchPendingTransactions-57df1a13.d.ts} +17 -27
- package/dist/{webSocket-b180e679.d.ts → webSocket-d2e7bd0e.d.ts} +2 -2
- package/dist/window.d.ts +2 -2
- package/package.json +8 -2
- package/src/_test/abis.ts +7 -0
- package/src/_test/bench.ts +4 -4
- package/src/_test/constants.ts +4 -3
- package/src/_test/index.ts +4 -2
- package/src/_test/utils.ts +39 -1
- package/src/actions/index.test.ts +1 -0
- package/src/actions/index.ts +2 -0
- package/src/actions/public/call.bench.ts +5 -5
- package/src/actions/public/deployContract.ts +4 -4
- package/src/actions/public/estimateGas.bench.ts +6 -6
- package/src/actions/public/getBlock.bench.ts +5 -5
- package/src/actions/public/getBlockNumber.bench.ts +5 -5
- package/src/actions/public/getFilterChanges.test.ts +9 -9
- package/src/actions/public/getFilterLogs.test.ts +7 -7
- package/src/actions/public/getGasPrice.bench.ts +1 -10
- package/src/actions/public/getLogs.test.ts +7 -7
- package/src/actions/public/getTransaction.bench.ts +5 -5
- package/src/actions/public/getTransactionReceipt.bench.ts +5 -5
- package/src/actions/public/index.test.ts +1 -0
- package/src/actions/public/index.ts +3 -0
- package/src/actions/public/multicall.test.ts +452 -0
- package/src/actions/public/multicall.ts +103 -0
- package/src/actions/public/readContract.test.ts +226 -26
- package/src/actions/public/readContract.ts +13 -27
- package/src/actions/public/simulateContract.bench.ts +10 -0
- package/src/actions/public/simulateContract.test.ts +209 -37
- package/src/actions/public/simulateContract.ts +17 -21
- package/src/actions/public/watchContractEvent.test.ts +61 -57
- package/src/actions/public/watchEvent.test.ts +42 -37
- package/src/actions/test/impersonateAccount.test.ts +4 -6
- package/src/actions/test/sendUnsignedTransaction.test.ts +2 -2
- package/src/actions/test/stopImpersonatingAccount.test.ts +5 -7
- package/src/actions/wallet/signMessage.test.ts +0 -1
- package/src/actions/wallet/switchChain.test.ts +1 -2
- package/src/actions/wallet/watchAsset.test.ts +1 -2
- package/src/actions/wallet/writeContract.test.ts +37 -7
- package/src/actions/wallet/writeContract.ts +5 -14
- package/src/clients/transports/fallback.test.ts +34 -0
- package/src/clients/transports/fallback.ts +3 -1
- package/src/clients/transports/http.test.ts +0 -1
- package/src/clients/transports/webSocket.test.ts +0 -1
- package/src/constants/abis.test.ts +53 -0
- package/src/constants/abis.ts +44 -0
- package/src/constants/index.test.ts +14 -0
- package/src/constants/index.ts +3 -0
- package/src/constants/solidity.test.ts +41 -0
- package/src/constants/solidity.ts +35 -0
- package/src/ens.ts +5 -0
- package/src/errors/abi.test.ts +0 -2
- package/src/errors/base.test.ts +44 -2
- package/src/errors/base.ts +12 -12
- package/src/errors/block.test.ts +6 -6
- package/src/errors/contract.test.ts +233 -0
- package/src/errors/contract.ts +133 -80
- package/src/errors/index.ts +4 -2
- package/src/errors/request.test.ts +3 -4
- package/src/errors/request.ts +17 -17
- package/src/errors/rpc.test.ts +1 -2
- package/src/errors/transaction.test.ts +12 -12
- package/src/errors/transport.test.ts +0 -1
- package/src/index.test.ts +47 -0
- package/src/index.ts +10 -0
- package/src/types/contract.ts +55 -4
- package/src/types/index.ts +5 -0
- package/src/types/multicall.ts +82 -0
- package/src/utils/abi/decodeAbi.test.ts +1 -2
- package/src/utils/abi/decodeAbi.ts +11 -7
- package/src/utils/abi/decodeDeployData.test.ts +7 -15
- package/src/utils/abi/decodeDeployData.ts +10 -7
- package/src/utils/abi/decodeErrorResult.test.ts +103 -3
- package/src/utils/abi/decodeErrorResult.ts +30 -13
- package/src/utils/abi/decodeFunctionData.test.ts +0 -1
- package/src/utils/abi/decodeFunctionResult.test.ts +80 -9
- package/src/utils/abi/decodeFunctionResult.ts +15 -11
- package/src/utils/abi/encodeAbi.test.ts +3 -4
- package/src/utils/abi/encodeAbi.ts +19 -10
- package/src/utils/abi/encodeDeployData.test.ts +6 -13
- package/src/utils/abi/encodeDeployData.ts +10 -7
- package/src/utils/abi/encodeErrorResult.test.ts +2 -7
- package/src/utils/abi/encodeErrorResult.ts +18 -11
- package/src/utils/abi/encodeEventTopics.test.ts +11 -14
- package/src/utils/abi/encodeEventTopics.ts +15 -9
- package/src/utils/abi/encodeFunctionData.test.ts +5 -7
- package/src/utils/abi/encodeFunctionData.ts +16 -9
- package/src/utils/abi/encodeFunctionResult.test.ts +10 -15
- package/src/utils/abi/encodeFunctionResult.ts +9 -7
- package/src/utils/abi/getAbiItem.test.ts +547 -0
- package/src/utils/abi/getAbiItem.ts +93 -3
- package/src/utils/abi/index.ts +5 -1
- package/src/utils/address/getAddress.test.ts +6 -6
- package/src/utils/contract/getContractError.test.ts +247 -62
- package/src/utils/contract/getContractError.ts +30 -38
- package/src/utils/data/pad.bench.ts +0 -9
- package/src/utils/data/trim.bench.ts +0 -16
- package/src/utils/encoding/encodeBytes.bench.ts +0 -12
- package/src/utils/encoding/encodeHex.bench.ts +0 -11
- package/src/utils/ens/index.test.ts +13 -0
- package/src/utils/ens/index.ts +5 -0
- package/src/utils/ens/labelhash.test.ts +55 -0
- package/src/utils/ens/labelhash.ts +16 -0
- package/src/utils/ens/namehash.test.ts +65 -0
- package/src/utils/ens/namehash.ts +28 -0
- package/src/utils/ens/normalize.bench.ts +14 -0
- package/src/utils/ens/normalize.test.ts +35 -0
- package/src/utils/ens/normalize.ts +14 -0
- package/src/utils/hash/keccak256.ts +3 -5
- package/src/utils/index.test.ts +3 -0
- package/src/utils/index.ts +4 -0
- package/src/utils/rpc.test.ts +3 -6
- package/src/utils/unit/formatUnit.bench.ts +0 -5
- package/src/utils/unit/parseUnit.bench.ts +0 -5
- package/dist/chunk-46BO7YAQ.mjs.map +0 -1
- package/dist/chunk-62VTYU2V.mjs.map +0 -1
- package/dist/chunk-DGO77E2H.mjs.map +0 -1
- package/dist/chunk-KEHGSYDO.js.map +0 -1
- package/dist/chunk-KZMJR27B.js.map +0 -1
- package/dist/chunk-O2GYLJVD.js.map +0 -1
package/dist/index.d.ts
CHANGED
@@ -1,114 +1,26 @@
|
|
1
|
-
import { F as Filter, C as CallArgs } from './watchPendingTransactions-
|
2
|
-
export { C as CallArgs, a as CallResponse, b as CreateBlockFilterResponse, c as CreatePendingTransactionFilterResponse, D as DeployContractArgs, e as DeployContractResponse, E as EstimateGasArgs, d as EstimateGasResponse, G as GetBalanceArgs, f as GetBalanceResponse, g as GetBlockArgs, h as GetBlockNumberArgs, i as GetBlockNumberResponse, j as GetBlockResponse, k as GetBlockTransactionCountArgs, l as GetBlockTransactionCountResponse, m as GetBytecodeArgs, n as GetBytecodeResponse, o as GetFeeHistoryArgs, p as GetFeeHistoryResponse, q as GetFilterChangesArgs, r as GetFilterChangesResponse, s as GetFilterLogsArgs, t as GetFilterLogsResponse, u as GetGasPriceResponse, v as GetTransactionArgs, w as GetTransactionConfirmationsArgs, x as GetTransactionConfirmationsResponse, y as GetTransactionCountArgs, z as GetTransactionCountResponse, B as GetTransactionReceiptArgs, H as GetTransactionReceiptResponse, A as GetTransactionResponse, O as OnBlock, I as OnBlockNumber, J as OnBlockNumberResponse, K as OnBlockResponse, L as OnTransactions, M as OnTransactionsResponse, S as SimulateContractArgs, N as SimulateContractResponse, U as UninstallFilterArgs, P as UninstallFilterResponse, W as WaitForTransactionReceiptArgs, Q as WaitForTransactionReceiptResponse, R as WatchBlockNumberArgs, T as WatchBlocksArgs, V as WatchPendingTransactionsArgs, X as WriteContractArgs, Y as WriteContractResponse, Z as call, _ as createBlockFilter, $ as createPendingTransactionFilter, a0 as deployContract, a1 as estimateGas, a2 as getBalance, a3 as getBlock, a4 as getBlockNumber, a5 as getBlockTransactionCount, a6 as getBytecode, a7 as getChainId, a8 as getFeeHistory, a9 as getFilterChanges, aa as getFilterLogs, ab as getGasPrice, ac as getTransaction, ad as getTransactionConfirmations, ae as getTransactionCount, af as getTransactionReceipt, ag as simulateContract, ah as uninstallFilter, ai as waitForTransactionReceipt, aj as watchBlockNumber, ak as watchBlocks, al as watchPendingTransactions, am as writeContract } from './watchPendingTransactions-
|
3
|
-
import {
|
4
|
-
export { d as AccessList, A as Address, e as Block, f as BlockIdentifier,
|
5
|
-
import { E as
|
6
|
-
export { A as AbiItem, F as FormattedBlock,
|
7
|
-
import { P as PublicClient } from './createPublicClient-
|
8
|
-
export { P as PublicClient, a as PublicClientConfig, c as createPublicClient } from './createPublicClient-
|
1
|
+
import { F as Filter, C as CallArgs } from './watchPendingTransactions-57df1a13.js';
|
2
|
+
export { C as CallArgs, a as CallResponse, b as CreateBlockFilterResponse, c as CreatePendingTransactionFilterResponse, D as DeployContractArgs, e as DeployContractResponse, E as EstimateGasArgs, d as EstimateGasResponse, G as GetBalanceArgs, f as GetBalanceResponse, g as GetBlockArgs, h as GetBlockNumberArgs, i as GetBlockNumberResponse, j as GetBlockResponse, k as GetBlockTransactionCountArgs, l as GetBlockTransactionCountResponse, m as GetBytecodeArgs, n as GetBytecodeResponse, o as GetFeeHistoryArgs, p as GetFeeHistoryResponse, q as GetFilterChangesArgs, r as GetFilterChangesResponse, s as GetFilterLogsArgs, t as GetFilterLogsResponse, u as GetGasPriceResponse, v as GetTransactionArgs, w as GetTransactionConfirmationsArgs, x as GetTransactionConfirmationsResponse, y as GetTransactionCountArgs, z as GetTransactionCountResponse, B as GetTransactionReceiptArgs, H as GetTransactionReceiptResponse, A as GetTransactionResponse, O as OnBlock, I as OnBlockNumber, J as OnBlockNumberResponse, K as OnBlockResponse, L as OnTransactions, M as OnTransactionsResponse, S as SimulateContractArgs, N as SimulateContractResponse, U as UninstallFilterArgs, P as UninstallFilterResponse, W as WaitForTransactionReceiptArgs, Q as WaitForTransactionReceiptResponse, R as WatchBlockNumberArgs, T as WatchBlocksArgs, V as WatchPendingTransactionsArgs, X as WriteContractArgs, Y as WriteContractResponse, Z as call, _ as createBlockFilter, $ as createPendingTransactionFilter, a0 as deployContract, a1 as estimateGas, a2 as getBalance, a3 as getBlock, a4 as getBlockNumber, a5 as getBlockTransactionCount, a6 as getBytecode, a7 as getChainId, a8 as getFeeHistory, a9 as getFilterChanges, aa as getFilterLogs, ab as getGasPrice, ac as getTransaction, ad as getTransactionConfirmations, ae as getTransactionCount, af as getTransactionReceipt, ag as simulateContract, ah as uninstallFilter, ai as waitForTransactionReceipt, aj as watchBlockNumber, ak as watchBlocks, al as watchPendingTransactions, am as writeContract } from './watchPendingTransactions-57df1a13.js';
|
3
|
+
import { H as Hex, A as Address, a as Hash, B as ByteArray, b as BlockTag, c as BlockNumber, L as Log } from './chain-4b39613a.js';
|
4
|
+
export { d as AccessList, A as Address, e as Block, f as BlockIdentifier, c as BlockNumber, b as BlockTag, B as ByteArray, C as Chain, F as FeeHistory, g as FeeValues, h as FeeValuesEIP1559, i as FeeValuesLegacy, G as FormattedTransaction, a as Hash, H as Hex, L as Log, R as RpcBlock, j as RpcBlockIdentifier, k as RpcBlockNumber, l as RpcFeeHistory, m as RpcFeeValues, n as RpcLog, o as RpcTransaction, p as RpcTransactionReceipt, q as RpcTransactionRequest, r as RpcUncle, x as Transaction, y as TransactionBase, z as TransactionEIP1559, D as TransactionEIP2930, E as TransactionLegacy, T as TransactionReceipt, s as TransactionRequest, t as TransactionRequestBase, u as TransactionRequestEIP1559, v as TransactionRequestEIP2930, w as TransactionRequestLegacy, U as Uncle, I as formatTransaction, J as transactionType } from './chain-4b39613a.js';
|
5
|
+
import { C as ContractConfig, E as ExtractResultFromAbi, a as EventDefinition, b as ExtractArgsFromEventDefinition, c as ExtractEventNameFromAbi, d as ExtractEventArgsFromAbi } from './contract-4c3a37b3.js';
|
6
|
+
export { A as AbiItem, C as ContractConfig, F as FormattedBlock, f as formatBlock } from './contract-4c3a37b3.js';
|
7
|
+
import { P as PublicClient } from './createPublicClient-3b27b282.js';
|
8
|
+
export { P as PublicClient, a as PublicClientConfig, c as createPublicClient } from './createPublicClient-3b27b282.js';
|
9
9
|
import { Abi } from 'abitype';
|
10
|
-
export { C as Client, a as ClientConfig, T as Transport, b as TransportConfig, c as createClient, d as createTransport } from './createClient-
|
11
|
-
export { C as CustomTransport, a as CustomTransportConfig, F as FallbackTransport, b as FallbackTransportConfig, H as HttpTransport, c as HttpTransportConfig, W as WebSocketTransport, d as WebSocketTransportConfig, e as custom, f as fallback, h as http, w as webSocket } from './webSocket-
|
12
|
-
export { T as TestClient, a as TestClientConfig, c as createTestClient } from './createTestClient-
|
13
|
-
export { W as WalletClient, a as WalletClientConfig, c as createWalletClient } from './createWalletClient-
|
14
|
-
export { D as DropTransactionArgs, I as ImpersonateAccountArgs, a as IncreaseTimeArgs, M as MineArgs, R as ResetArgs, b as RevertArgs, S as SendUnsignedTransactionArgs, c as SendUnsignedTransactionResponse, d as SetBalanceArgs, e as SetBlockGasLimitArgs, j as SetBlockTimestampIntervalArgs, f as SetCodeArgs, g as SetCoinbaseArgs, h as SetIntervalMiningArgs, i as SetMinGasPriceArgs, l as SetNextBlockBaseFeePerGasArgs, k as SetNextBlockTimestampArgs, m as SetNonceArgs, n as SetStorageAtArgs, o as StopImpersonatingAccountArgs, p as dropTransaction, q as getAutomine, r as getTxpoolContent, s as getTxpoolStatus, t as impersonateAccount, u as increaseTime, v as inspectTxpool, w as mine, x as removeBlockTimestampInterval, y as reset, z as revert, A as sendUnsignedTransaction, B as setAutomine, C as setBalance, E as setBlockGasLimit, F as setBlockTimestampInterval, G as setCode, H as setCoinbase, J as setIntervalMining, K as setLoggingEnabled, L as setMinGasPrice, N as setNextBlockBaseFeePerGas, O as setNextBlockTimestamp, P as setNonce, Q as setStorageAt, T as snapshot, U as stopImpersonatingAccount } from './stopImpersonatingAccount-
|
15
|
-
export { G as GetPermissionsResponse, R as RequestPermissionsResponse, S as SignMessageArgs, a as SignMessageResponse, b as SwitchChainArgs, W as WatchAssetArgs, c as WatchAssetResponse, d as addChain, g as getAccounts, e as getPermissions, r as requestAccounts, f as requestPermissions, s as signMessage, h as switchChain, w as watchAsset } from './watchAsset-
|
16
|
-
export { S as SendTransactionArgs, a as SendTransactionResponse, s as sendTransaction } from './sendTransaction-
|
17
|
-
|
18
|
-
export {
|
10
|
+
export { C as Client, a as ClientConfig, T as Transport, b as TransportConfig, c as createClient, d as createTransport } from './createClient-55a04188.js';
|
11
|
+
export { C as CustomTransport, a as CustomTransportConfig, F as FallbackTransport, b as FallbackTransportConfig, H as HttpTransport, c as HttpTransportConfig, W as WebSocketTransport, d as WebSocketTransportConfig, e as custom, f as fallback, h as http, w as webSocket } from './webSocket-d2e7bd0e.js';
|
12
|
+
export { T as TestClient, a as TestClientConfig, c as createTestClient } from './createTestClient-93f9eac6.js';
|
13
|
+
export { W as WalletClient, a as WalletClientConfig, c as createWalletClient } from './createWalletClient-c10df94d.js';
|
14
|
+
export { D as DropTransactionArgs, I as ImpersonateAccountArgs, a as IncreaseTimeArgs, M as MineArgs, R as ResetArgs, b as RevertArgs, S as SendUnsignedTransactionArgs, c as SendUnsignedTransactionResponse, d as SetBalanceArgs, e as SetBlockGasLimitArgs, j as SetBlockTimestampIntervalArgs, f as SetCodeArgs, g as SetCoinbaseArgs, h as SetIntervalMiningArgs, i as SetMinGasPriceArgs, l as SetNextBlockBaseFeePerGasArgs, k as SetNextBlockTimestampArgs, m as SetNonceArgs, n as SetStorageAtArgs, o as StopImpersonatingAccountArgs, p as dropTransaction, q as getAutomine, r as getTxpoolContent, s as getTxpoolStatus, t as impersonateAccount, u as increaseTime, v as inspectTxpool, w as mine, x as removeBlockTimestampInterval, y as reset, z as revert, A as sendUnsignedTransaction, B as setAutomine, C as setBalance, E as setBlockGasLimit, F as setBlockTimestampInterval, G as setCode, H as setCoinbase, J as setIntervalMining, K as setLoggingEnabled, L as setMinGasPrice, N as setNextBlockBaseFeePerGas, O as setNextBlockTimestamp, P as setNonce, Q as setStorageAt, T as snapshot, U as stopImpersonatingAccount } from './stopImpersonatingAccount-afb26486.js';
|
15
|
+
export { G as GetPermissionsResponse, R as RequestPermissionsResponse, S as SignMessageArgs, a as SignMessageResponse, b as SwitchChainArgs, W as WatchAssetArgs, c as WatchAssetResponse, d as addChain, g as getAccounts, e as getPermissions, r as requestAccounts, f as requestPermissions, s as signMessage, h as switchChain, w as watchAsset } from './watchAsset-efd3dd05.js';
|
16
|
+
export { S as SendTransactionArgs, a as SendTransactionResponse, s as sendTransaction } from './sendTransaction-f17a2389.js';
|
17
|
+
import { B as BaseError } from './parseGwei-3411cf2d.js';
|
18
|
+
export { B as BaseError, C as ContractFunctionExecutionError, a as ContractFunctionRevertedError, b as ContractFunctionZeroDataError, D as DecodeAbiArgs, c as DecodeErrorResultArgs, d as DecodeFunctionDataArgs, e as DecodeFunctionResultArgs, f as DecodeFunctionResultResponse, E as EncodeAbiArgs, g as EncodeDeployDataArgs, h as EncodeErrorResultArgs, i as EncodeEventTopicsArgs, j as EncodeFunctionDataArgs, k as EncodeFunctionResultArgs, o as EncodeRlpResponse, n as GetAbiItemArgs, G as GetContractAddressOptions, m as GetCreate2AddressOptions, l as GetCreateAddressOptions, r as boolToBytes, s as boolToHex, t as bytesToBigint, u as bytesToBool, p as bytesToHex, v as bytesToNumber, q as bytesToString, w as decodeAbi, x as decodeBytes, y as decodeErrorResult, z as decodeFunctionData, A as decodeFunctionResult, F as decodeHex, H as decodeRlp, I as encodeAbi, J as encodeBytes, K as encodeDeployData, L as encodeErrorResult, M as encodeEventTopics, N as encodeFunctionData, O as encodeFunctionResult, P as encodeHex, Q as encodeRlp, R as etherUnits, Z as formatEther, ae as formatGwei, af as formatUnit, S as getAddress, T as getContractAddress, V as getCreate2Address, U as getCreateAddress, W as getEventSignature, X as getFunctionSignature, Y as gweiUnits, a2 as hexToBigInt, a3 as hexToBool, a4 as hexToBytes, ag as hexToNumber, a5 as hexToString, _ as isAddress, $ as isAddressEqual, a0 as isBytes, a1 as isHex, a6 as keccak256, a7 as numberToBytes, ah as numberToHex, a8 as pad, a9 as padBytes, aa as padHex, ab as parseEther, ac as parseGwei, ad as parseUnit, ai as size, aj as slice, ak as sliceBytes, al as sliceHex, am as stringToBytes, an as stringToHex, ao as trim, ap as weiUnits } from './parseGwei-3411cf2d.js';
|
19
|
+
export { F as FormattedTransactionRequest, f as formatTransactionRequest } from './transactionRequest-93e9f001.js';
|
19
20
|
import '@wagmi/chains';
|
20
|
-
import './eip1193-
|
21
|
+
import './eip1193-4c24765a.js';
|
21
22
|
import './rpc-26932bae.js';
|
22
|
-
|
23
|
-
type EventFilterArgs<TEventDefinition extends EventDefinition> = ExtractArgsFromEventDefinition<TEventDefinition>;
|
24
|
-
type CreateEventFilterArgs<TEventDefinition extends EventDefinition> = {
|
25
|
-
address?: Address | Address[];
|
26
|
-
fromBlock?: BlockNumber | BlockTag;
|
27
|
-
toBlock?: BlockNumber | BlockTag;
|
28
|
-
} & ({
|
29
|
-
event: TEventDefinition;
|
30
|
-
args?: EventFilterArgs<TEventDefinition>;
|
31
|
-
} | {
|
32
|
-
event?: never;
|
33
|
-
args?: never;
|
34
|
-
});
|
35
|
-
type CreateEventFilterResponse = Filter<'event'>;
|
36
|
-
declare function createEventFilter<TEventDefinition extends EventDefinition>(client: PublicClient, { address, event, args, fromBlock, toBlock, }?: CreateEventFilterArgs<TEventDefinition>): Promise<CreateEventFilterResponse>;
|
37
|
-
|
38
|
-
type CreateContractEventFilterArgs<TAbi extends Abi | readonly unknown[] = Abi, TEventName extends string = any> = {
|
39
|
-
address?: Address | Address[];
|
40
|
-
abi: TAbi;
|
41
|
-
eventName: ExtractEventNameFromAbi<TAbi, TEventName>;
|
42
|
-
fromBlock?: BlockNumber | BlockTag;
|
43
|
-
toBlock?: BlockNumber | BlockTag;
|
44
|
-
} & ExtractEventArgsFromAbi<TAbi, TEventName>;
|
45
|
-
type CreateContractEventFilterResponse = Filter<'event'>;
|
46
|
-
declare function createContractEventFilter<TAbi extends Abi | readonly unknown[] = Abi, TEventName extends string = any>(client: PublicClient, { address, abi, args, eventName, fromBlock, toBlock, }: CreateContractEventFilterArgs<TAbi, TEventName>): Promise<CreateContractEventFilterResponse>;
|
47
|
-
|
48
|
-
type GetLogsArgs<TEventDefinition extends EventDefinition> = {
|
49
|
-
/** Address or list of addresses from which logs originated */
|
50
|
-
address?: Address | Address[];
|
51
|
-
} & ({
|
52
|
-
event: TEventDefinition;
|
53
|
-
args?: EventFilterArgs<TEventDefinition>;
|
54
|
-
} | {
|
55
|
-
event?: never;
|
56
|
-
args?: never;
|
57
|
-
}) & ({
|
58
|
-
/** Block number or tag after which to include logs */
|
59
|
-
fromBlock?: BlockNumber<bigint> | BlockTag;
|
60
|
-
/** Block number or tag before which to include logs */
|
61
|
-
toBlock?: BlockNumber<bigint> | BlockTag;
|
62
|
-
blockHash?: never;
|
63
|
-
} | {
|
64
|
-
fromBlock?: never;
|
65
|
-
toBlock?: never;
|
66
|
-
/** Hash of block to include logs from */
|
67
|
-
blockHash?: Hash;
|
68
|
-
});
|
69
|
-
type GetLogsResponse = Log[];
|
70
|
-
/**
|
71
|
-
* @description Returns a collection of event logs.
|
72
|
-
*/
|
73
|
-
declare function getLogs<TEventDefinition extends EventDefinition>(client: PublicClient, { address, blockHash, fromBlock, toBlock, event, args, }?: GetLogsArgs<TEventDefinition>): Promise<GetLogsResponse>;
|
74
|
-
|
75
|
-
type GetStorageAtArgs = {
|
76
|
-
address: Address;
|
77
|
-
slot: Hex;
|
78
|
-
} & ({
|
79
|
-
blockNumber?: never;
|
80
|
-
blockTag?: BlockTag;
|
81
|
-
} | {
|
82
|
-
blockNumber?: bigint;
|
83
|
-
blockTag?: never;
|
84
|
-
});
|
85
|
-
type GetStorageAtResponse = Hex | undefined;
|
86
|
-
declare function getStorageAt(client: PublicClient, { address, blockNumber, blockTag, slot }: GetStorageAtArgs): Promise<GetStorageAtResponse>;
|
87
|
-
|
88
|
-
type ReadContractArgs<TAbi extends Abi | readonly unknown[] = Abi, TFunctionName extends string = any> = Omit<CallArgs, 'accessList' | 'chain' | 'from' | 'gas' | 'gasPrice' | 'maxFeePerGas' | 'maxPriorityFeePerGas' | 'nonce' | 'to' | 'data' | 'value'> & {
|
89
|
-
address: Address;
|
90
|
-
abi: TAbi;
|
91
|
-
functionName: ExtractFunctionNameFromAbi<TAbi, TFunctionName, 'pure' | 'view'>;
|
92
|
-
} & ExtractArgsFromAbi<TAbi, TFunctionName>;
|
93
|
-
type ReadContractResponse<TAbi extends Abi | readonly unknown[] = Abi, TFunctionName extends string = string> = ExtractResultFromAbi<TAbi, TFunctionName>;
|
94
|
-
declare function readContract<TAbi extends Abi = Abi, TFunctionName extends string = any>(client: PublicClient, { abi, address, args, functionName, ...callRequest }: ReadContractArgs<TAbi, TFunctionName>): Promise<ReadContractResponse<TAbi, TFunctionName>>;
|
95
|
-
|
96
|
-
type BaseErrorArgs = {
|
97
|
-
docsPath?: string;
|
98
|
-
} & ({
|
99
|
-
cause?: never;
|
100
|
-
details?: string;
|
101
|
-
} | {
|
102
|
-
cause: BaseError | Error;
|
103
|
-
details?: never;
|
104
|
-
});
|
105
|
-
declare class BaseError extends Error {
|
106
|
-
humanMessage: string;
|
107
|
-
details: string;
|
108
|
-
docsPath?: string;
|
109
|
-
name: string;
|
110
|
-
constructor(humanMessage: string, args?: BaseErrorArgs);
|
111
|
-
}
|
23
|
+
import 'abitype/dist/abi-78346466';
|
112
24
|
|
113
25
|
declare class AbiConstructorNotFoundError extends BaseError {
|
114
26
|
name: string;
|
@@ -314,16 +226,16 @@ declare class TimeoutError extends BaseError {
|
|
314
226
|
}
|
315
227
|
|
316
228
|
declare class RequestError extends BaseError {
|
317
|
-
constructor(err: Error, { docsPath,
|
229
|
+
constructor(err: Error, { docsPath, shortMessage }: {
|
318
230
|
docsPath?: string;
|
319
|
-
|
231
|
+
shortMessage: string;
|
320
232
|
});
|
321
233
|
}
|
322
234
|
declare class RpcRequestError extends RequestError {
|
323
235
|
code: number;
|
324
|
-
constructor(err: RpcError, { docsPath,
|
236
|
+
constructor(err: RpcError, { docsPath, shortMessage }: {
|
325
237
|
docsPath?: string;
|
326
|
-
|
238
|
+
shortMessage: string;
|
327
239
|
});
|
328
240
|
}
|
329
241
|
declare class ParseRpcError extends RpcRequestError {
|
@@ -422,4 +334,153 @@ declare class UrlRequiredError extends BaseError {
|
|
422
334
|
constructor();
|
423
335
|
}
|
424
336
|
|
425
|
-
|
337
|
+
type MAXIMUM_DEPTH = 20;
|
338
|
+
type Contract<TAbi extends Abi | readonly unknown[] = Abi | readonly unknown[], TFunctionName extends string = string> = {
|
339
|
+
abi: TAbi;
|
340
|
+
functionName: TFunctionName;
|
341
|
+
};
|
342
|
+
type MulticallContracts<TContracts extends Contract[], TProperties extends Record<string, any> = object, Result extends any[] = [], Depth extends ReadonlyArray<number> = []> = Depth['length'] extends MAXIMUM_DEPTH ? (ContractConfig & TProperties)[] : TContracts extends [] ? [] : TContracts extends [infer Head extends Contract] ? [
|
343
|
+
...Result,
|
344
|
+
ContractConfig<Head['abi'], Head['functionName']> & TProperties
|
345
|
+
] : TContracts extends [
|
346
|
+
infer Head extends Contract,
|
347
|
+
...infer Tail extends Contract[]
|
348
|
+
] ? MulticallContracts<[
|
349
|
+
...Tail
|
350
|
+
], TProperties, [
|
351
|
+
...Result,
|
352
|
+
ContractConfig<Head['abi'], Head['functionName']> & TProperties
|
353
|
+
], [
|
354
|
+
...Depth,
|
355
|
+
1
|
356
|
+
]> : unknown[] extends TContracts ? TContracts : TContracts extends ContractConfig<infer TAbi, infer TFunctionName>[] ? (ContractConfig<TAbi, TFunctionName> & TProperties)[] : (ContractConfig & TProperties)[];
|
357
|
+
type MulticallResult<Result, TAllowFailure extends boolean = true> = TAllowFailure extends true ? ({
|
358
|
+
error?: undefined;
|
359
|
+
result: Result;
|
360
|
+
status: 'success';
|
361
|
+
} | {
|
362
|
+
error: Error;
|
363
|
+
result?: undefined;
|
364
|
+
status: 'error';
|
365
|
+
}) : Result;
|
366
|
+
type MulticallResults<TContracts extends Contract[], TAllowFailure extends boolean = true, Result extends any[] = [], Depth extends ReadonlyArray<number> = []> = Depth['length'] extends MAXIMUM_DEPTH ? MulticallResult<ExtractResultFromAbi, TAllowFailure>[] : TContracts extends [] ? [] : TContracts extends [infer Head extends Contract] ? [...Result, MulticallResult<ExtractResultFromAbi<Head['abi'], Head['functionName']>, TAllowFailure>] : TContracts extends [
|
367
|
+
infer Head extends Contract,
|
368
|
+
...infer Tail extends Contract[]
|
369
|
+
] ? MulticallResults<[
|
370
|
+
...Tail
|
371
|
+
], TAllowFailure, [
|
372
|
+
...Result,
|
373
|
+
MulticallResult<ExtractResultFromAbi<Head['abi'], Head['functionName']>, TAllowFailure>
|
374
|
+
], [
|
375
|
+
...Depth,
|
376
|
+
1
|
377
|
+
]> : TContracts extends ContractConfig<infer TAbi, infer TFunctionName>[] ? MulticallResult<ExtractResultFromAbi<TAbi, TFunctionName>, TAllowFailure>[] : MulticallResult<ExtractResultFromAbi, TAllowFailure>[];
|
378
|
+
|
379
|
+
type EventFilterArgs<TEventDefinition extends EventDefinition> = ExtractArgsFromEventDefinition<TEventDefinition>;
|
380
|
+
type CreateEventFilterArgs<TEventDefinition extends EventDefinition> = {
|
381
|
+
address?: Address | Address[];
|
382
|
+
fromBlock?: BlockNumber | BlockTag;
|
383
|
+
toBlock?: BlockNumber | BlockTag;
|
384
|
+
} & ({
|
385
|
+
event: TEventDefinition;
|
386
|
+
args?: EventFilterArgs<TEventDefinition>;
|
387
|
+
} | {
|
388
|
+
event?: never;
|
389
|
+
args?: never;
|
390
|
+
});
|
391
|
+
type CreateEventFilterResponse = Filter<'event'>;
|
392
|
+
declare function createEventFilter<TEventDefinition extends EventDefinition>(client: PublicClient, { address, event, args, fromBlock, toBlock, }?: CreateEventFilterArgs<TEventDefinition>): Promise<CreateEventFilterResponse>;
|
393
|
+
|
394
|
+
type CreateContractEventFilterArgs<TAbi extends Abi | readonly unknown[] = Abi, TEventName extends string = any> = {
|
395
|
+
address?: Address | Address[];
|
396
|
+
abi: TAbi;
|
397
|
+
eventName: ExtractEventNameFromAbi<TAbi, TEventName>;
|
398
|
+
fromBlock?: BlockNumber | BlockTag;
|
399
|
+
toBlock?: BlockNumber | BlockTag;
|
400
|
+
} & ExtractEventArgsFromAbi<TAbi, TEventName>;
|
401
|
+
type CreateContractEventFilterResponse = Filter<'event'>;
|
402
|
+
declare function createContractEventFilter<TAbi extends Abi | readonly unknown[] = Abi, TEventName extends string = any>(client: PublicClient, { address, abi, args, eventName, fromBlock, toBlock, }: CreateContractEventFilterArgs<TAbi, TEventName>): Promise<CreateContractEventFilterResponse>;
|
403
|
+
|
404
|
+
type GetLogsArgs<TEventDefinition extends EventDefinition> = {
|
405
|
+
/** Address or list of addresses from which logs originated */
|
406
|
+
address?: Address | Address[];
|
407
|
+
} & ({
|
408
|
+
event: TEventDefinition;
|
409
|
+
args?: EventFilterArgs<TEventDefinition>;
|
410
|
+
} | {
|
411
|
+
event?: never;
|
412
|
+
args?: never;
|
413
|
+
}) & ({
|
414
|
+
/** Block number or tag after which to include logs */
|
415
|
+
fromBlock?: BlockNumber<bigint> | BlockTag;
|
416
|
+
/** Block number or tag before which to include logs */
|
417
|
+
toBlock?: BlockNumber<bigint> | BlockTag;
|
418
|
+
blockHash?: never;
|
419
|
+
} | {
|
420
|
+
fromBlock?: never;
|
421
|
+
toBlock?: never;
|
422
|
+
/** Hash of block to include logs from */
|
423
|
+
blockHash?: Hash;
|
424
|
+
});
|
425
|
+
type GetLogsResponse = Log[];
|
426
|
+
/**
|
427
|
+
* @description Returns a collection of event logs.
|
428
|
+
*/
|
429
|
+
declare function getLogs<TEventDefinition extends EventDefinition>(client: PublicClient, { address, blockHash, fromBlock, toBlock, event, args, }?: GetLogsArgs<TEventDefinition>): Promise<GetLogsResponse>;
|
430
|
+
|
431
|
+
type GetStorageAtArgs = {
|
432
|
+
address: Address;
|
433
|
+
slot: Hex;
|
434
|
+
} & ({
|
435
|
+
blockNumber?: never;
|
436
|
+
blockTag?: BlockTag;
|
437
|
+
} | {
|
438
|
+
blockNumber?: bigint;
|
439
|
+
blockTag?: never;
|
440
|
+
});
|
441
|
+
type GetStorageAtResponse = Hex | undefined;
|
442
|
+
declare function getStorageAt(client: PublicClient, { address, blockNumber, blockTag, slot }: GetStorageAtArgs): Promise<GetStorageAtResponse>;
|
443
|
+
|
444
|
+
type MulticallArgs<TContracts extends ContractConfig[], TAllowFailure extends boolean = true> = Pick<CallArgs, 'blockNumber' | 'blockTag'> & {
|
445
|
+
allowFailure?: TAllowFailure;
|
446
|
+
contracts: readonly [...MulticallContracts<TContracts>];
|
447
|
+
multicallAddress: Address;
|
448
|
+
};
|
449
|
+
declare function multicall<TContracts extends ContractConfig[], TAllowFailure extends boolean = true>(client: PublicClient, args: MulticallArgs<TContracts, TAllowFailure>): Promise<MulticallResults<TContracts, TAllowFailure>>;
|
450
|
+
|
451
|
+
type ReadContractArgs<TAbi extends Abi | readonly unknown[] = Abi, TFunctionName extends string = string> = Pick<CallArgs, 'blockNumber' | 'blockTag'> & ContractConfig<TAbi, TFunctionName, 'view' | 'pure'>;
|
452
|
+
type ReadContractResponse<TAbi extends Abi | readonly unknown[] = Abi, TFunctionName extends string = string> = ExtractResultFromAbi<TAbi, TFunctionName>;
|
453
|
+
declare function readContract<TAbi extends Abi | readonly unknown[], TFunctionName extends string>(client: PublicClient, { abi, address, args, functionName, ...callRequest }: ReadContractArgs<TAbi, TFunctionName>): Promise<ReadContractResponse<TAbi, TFunctionName>>;
|
454
|
+
|
455
|
+
declare const multicall3Abi: readonly [{
|
456
|
+
readonly inputs: readonly [{
|
457
|
+
readonly components: readonly [{
|
458
|
+
readonly name: "target";
|
459
|
+
readonly type: "address";
|
460
|
+
}, {
|
461
|
+
readonly name: "allowFailure";
|
462
|
+
readonly type: "bool";
|
463
|
+
}, {
|
464
|
+
readonly name: "callData";
|
465
|
+
readonly type: "bytes";
|
466
|
+
}];
|
467
|
+
readonly name: "calls";
|
468
|
+
readonly type: "tuple[]";
|
469
|
+
}];
|
470
|
+
readonly name: "aggregate3";
|
471
|
+
readonly outputs: readonly [{
|
472
|
+
readonly components: readonly [{
|
473
|
+
readonly name: "success";
|
474
|
+
readonly type: "bool";
|
475
|
+
}, {
|
476
|
+
readonly name: "returnData";
|
477
|
+
readonly type: "bytes";
|
478
|
+
}];
|
479
|
+
readonly name: "returnData";
|
480
|
+
readonly type: "tuple[]";
|
481
|
+
}];
|
482
|
+
readonly stateMutability: "view";
|
483
|
+
readonly type: "function";
|
484
|
+
}];
|
485
|
+
|
486
|
+
export { AbiConstructorNotFoundError, AbiConstructorParamsNotFoundError, AbiDecodingDataSizeInvalidError, AbiEncodingArrayLengthMismatchError, AbiEncodingLengthMismatchError, AbiErrorInputsNotFoundError, AbiErrorNotFoundError, AbiErrorSignatureNotFoundError, AbiEventNotFoundError, AbiFunctionNotFoundError, AbiFunctionOutputsNotFoundError, AbiFunctionSignatureNotFoundError, BlockNotFoundError, CreateContractEventFilterArgs, CreateContractEventFilterResponse, CreateEventFilterArgs, CreateEventFilterResponse, DataLengthTooLongError, DataLengthTooShortError, FilterTypeNotSupportedError, GetLogsArgs, GetLogsResponse, GetStorageAtArgs, GetStorageAtResponse, HttpRequestError, InternalRpcError, InvalidAbiDecodingTypeError, InvalidAbiEncodingTypeError, InvalidAddressError, InvalidArrayError, InvalidBytesBooleanError, InvalidDefinitionTypeError, InvalidGasArgumentsError, InvalidHexBooleanError, InvalidHexValueError, InvalidInputRpcError, InvalidParamsRpcError, InvalidRequestRpcError, JsonRpcVersionUnsupportedError, LimitExceededRpcError, MethodNotFoundRpcError, MethodNotSupportedRpcError, MulticallArgs, OffsetOutOfBoundsError, ParseRpcError, ReadContractArgs, ReadContractResponse, RequestError, ResourceNotFoundRpcError, ResourceUnavailableRpcError, RpcError, RpcRequestError, SizeExceedsPaddingSizeError, TimeoutError, TransactionNotFoundError, TransactionReceiptNotFoundError, TransactionRejectedRpcError, UnknownRpcError, UrlRequiredError, WaitForTransactionReceiptTimeoutError, WebSocketRequestError, createContractEventFilter, createEventFilter, getLogs, getStorageAt, multicall, multicall3Abi, readContract };
|
package/dist/index.js
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
|
10
10
|
|
11
|
-
var
|
11
|
+
var _chunkBV5NTHUXjs = require('./chunk-BV5NTHUX.js');
|
12
12
|
|
13
13
|
|
14
14
|
|
@@ -40,8 +40,8 @@ var _chunkKEHGSYDOjs = require('./chunk-KEHGSYDO.js');
|
|
40
40
|
|
41
41
|
|
42
42
|
|
43
|
-
var _chunkKZMJR27Bjs = require('./chunk-KZMJR27B.js');
|
44
43
|
|
44
|
+
var _chunkZKYGWITFjs = require('./chunk-ZKYGWITF.js');
|
45
45
|
|
46
46
|
|
47
47
|
|
@@ -69,8 +69,8 @@ var _chunkKZMJR27Bjs = require('./chunk-KZMJR27B.js');
|
|
69
69
|
|
70
70
|
|
71
71
|
|
72
|
-
var _chunkW7BWWAC4js = require('./chunk-W7BWWAC4.js');
|
73
72
|
|
73
|
+
var _chunkNW6724MIjs = require('./chunk-NW6724MI.js');
|
74
74
|
|
75
75
|
|
76
76
|
|
@@ -81,8 +81,8 @@ var _chunkW7BWWAC4js = require('./chunk-W7BWWAC4.js');
|
|
81
81
|
|
82
82
|
|
83
83
|
|
84
|
-
var _chunkEC3NUIJEjs = require('./chunk-EC3NUIJE.js');
|
85
84
|
|
85
|
+
var _chunk7Y5QVLX7js = require('./chunk-7Y5QVLX7.js');
|
86
86
|
|
87
87
|
|
88
88
|
|
@@ -198,12 +198,12 @@ var _chunkEC3NUIJEjs = require('./chunk-EC3NUIJE.js');
|
|
198
198
|
|
199
199
|
|
200
200
|
|
201
|
-
var _chunkO2GYLJVDjs = require('./chunk-O2GYLJVD.js');
|
202
201
|
|
203
202
|
|
204
203
|
|
205
204
|
|
206
205
|
|
206
|
+
var _chunkSSPRUPGNjs = require('./chunk-SSPRUPGN.js');
|
207
207
|
|
208
208
|
|
209
209
|
|
@@ -391,5 +391,15 @@ var _chunkO2GYLJVDjs = require('./chunk-O2GYLJVD.js');
|
|
391
391
|
|
392
392
|
|
393
393
|
|
394
|
-
exports.AbiConstructorNotFoundError = _chunkO2GYLJVDjs.AbiConstructorNotFoundError; exports.AbiConstructorParamsNotFoundError = _chunkO2GYLJVDjs.AbiConstructorParamsNotFoundError; exports.AbiDecodingDataSizeInvalidError = _chunkO2GYLJVDjs.AbiDecodingDataSizeInvalidError; exports.AbiEncodingArrayLengthMismatchError = _chunkO2GYLJVDjs.AbiEncodingArrayLengthMismatchError; exports.AbiEncodingLengthMismatchError = _chunkO2GYLJVDjs.AbiEncodingLengthMismatchError; exports.AbiErrorInputsNotFoundError = _chunkO2GYLJVDjs.AbiErrorInputsNotFoundError; exports.AbiErrorNotFoundError = _chunkO2GYLJVDjs.AbiErrorNotFoundError; exports.AbiErrorSignatureNotFoundError = _chunkO2GYLJVDjs.AbiErrorSignatureNotFoundError; exports.AbiEventNotFoundError = _chunkO2GYLJVDjs.AbiEventNotFoundError; exports.AbiFunctionNotFoundError = _chunkO2GYLJVDjs.AbiFunctionNotFoundError; exports.AbiFunctionOutputsNotFoundError = _chunkO2GYLJVDjs.AbiFunctionOutputsNotFoundError; exports.AbiFunctionSignatureNotFoundError = _chunkO2GYLJVDjs.AbiFunctionSignatureNotFoundError; exports.BaseError = _chunkO2GYLJVDjs.BaseError; exports.BlockNotFoundError = _chunkO2GYLJVDjs.BlockNotFoundError; exports.DataLengthTooLongError = _chunkO2GYLJVDjs.DataLengthTooLongError; exports.DataLengthTooShortError = _chunkO2GYLJVDjs.DataLengthTooShortError; exports.FilterTypeNotSupportedError = _chunkO2GYLJVDjs.FilterTypeNotSupportedError; exports.HttpRequestError = _chunkO2GYLJVDjs.HttpRequestError; exports.InternalRpcError = _chunkO2GYLJVDjs.InternalRpcError; exports.InvalidAbiDecodingTypeError = _chunkO2GYLJVDjs.InvalidAbiDecodingTypeError; exports.InvalidAbiEncodingTypeError = _chunkO2GYLJVDjs.InvalidAbiEncodingTypeError; exports.InvalidAddressError = _chunkO2GYLJVDjs.InvalidAddressError; exports.InvalidArrayError = _chunkO2GYLJVDjs.InvalidArrayError; exports.InvalidBytesBooleanError = _chunkO2GYLJVDjs.InvalidBytesBooleanError; exports.InvalidDefinitionTypeError = _chunkO2GYLJVDjs.InvalidDefinitionTypeError; exports.InvalidGasArgumentsError = _chunkO2GYLJVDjs.InvalidGasArgumentsError; exports.InvalidHexBooleanError = _chunkO2GYLJVDjs.InvalidHexBooleanError; exports.InvalidHexValueError = _chunkO2GYLJVDjs.InvalidHexValueError; exports.InvalidInputRpcError = _chunkO2GYLJVDjs.InvalidInputRpcError; exports.InvalidParamsRpcError = _chunkO2GYLJVDjs.InvalidParamsRpcError; exports.InvalidRequestRpcError = _chunkO2GYLJVDjs.InvalidRequestRpcError; exports.JsonRpcVersionUnsupportedError = _chunkO2GYLJVDjs.JsonRpcVersionUnsupportedError; exports.LimitExceededRpcError = _chunkO2GYLJVDjs.LimitExceededRpcError; exports.MethodNotFoundRpcError = _chunkO2GYLJVDjs.MethodNotFoundRpcError; exports.MethodNotSupportedRpcError = _chunkO2GYLJVDjs.MethodNotSupportedRpcError; exports.OffsetOutOfBoundsError = _chunkO2GYLJVDjs.OffsetOutOfBoundsError; exports.ParseRpcError = _chunkO2GYLJVDjs.ParseRpcError; exports.RequestError = _chunkO2GYLJVDjs.RequestError; exports.ResourceNotFoundRpcError = _chunkO2GYLJVDjs.ResourceNotFoundRpcError; exports.ResourceUnavailableRpcError = _chunkO2GYLJVDjs.ResourceUnavailableRpcError; exports.RpcError = _chunkO2GYLJVDjs.RpcError; exports.RpcRequestError = _chunkO2GYLJVDjs.RpcRequestError; exports.SizeExceedsPaddingSizeError = _chunkO2GYLJVDjs.SizeExceedsPaddingSizeError; exports.TimeoutError = _chunkO2GYLJVDjs.TimeoutError; exports.TransactionNotFoundError = _chunkO2GYLJVDjs.TransactionNotFoundError; exports.TransactionReceiptNotFoundError = _chunkO2GYLJVDjs.TransactionReceiptNotFoundError; exports.TransactionRejectedRpcError = _chunkO2GYLJVDjs.TransactionRejectedRpcError; exports.UnknownRpcError = _chunkO2GYLJVDjs.UnknownRpcError; exports.UrlRequiredError = _chunkO2GYLJVDjs.UrlRequiredError; exports.WaitForTransactionReceiptTimeoutError = _chunkO2GYLJVDjs.WaitForTransactionReceiptTimeoutError; exports.WebSocketRequestError = _chunkO2GYLJVDjs.WebSocketRequestError; exports.addChain = _chunkEC3NUIJEjs.addChain; exports.boolToBytes = _chunkO2GYLJVDjs.boolToBytes; exports.boolToHex = _chunkO2GYLJVDjs.boolToHex; exports.bytesToBigint = _chunkO2GYLJVDjs.bytesToBigint; exports.bytesToBool = _chunkO2GYLJVDjs.bytesToBool; exports.bytesToHex = _chunkO2GYLJVDjs.bytesToHex; exports.bytesToNumber = _chunkO2GYLJVDjs.bytesToNumber; exports.bytesToString = _chunkO2GYLJVDjs.bytesToString; exports.call = _chunkKZMJR27Bjs.call; exports.createBlockFilter = _chunkKZMJR27Bjs.createBlockFilter; exports.createClient = _chunkKEHGSYDOjs.createClient; exports.createContractEventFilter = _chunkKZMJR27Bjs.createContractEventFilter; exports.createEventFilter = _chunkKZMJR27Bjs.createEventFilter; exports.createPendingTransactionFilter = _chunkKZMJR27Bjs.createPendingTransactionFilter; exports.createPublicClient = _chunkKEHGSYDOjs.createPublicClient; exports.createTestClient = _chunkKEHGSYDOjs.createTestClient; exports.createTransport = _chunkKEHGSYDOjs.createTransport; exports.createWalletClient = _chunkKEHGSYDOjs.createWalletClient; exports.custom = _chunkKEHGSYDOjs.custom; exports.decodeAbi = _chunkO2GYLJVDjs.decodeAbi; exports.decodeBytes = _chunkO2GYLJVDjs.decodeBytes; exports.decodeErrorResult = _chunkO2GYLJVDjs.decodeErrorResult; exports.decodeFunctionData = _chunkO2GYLJVDjs.decodeFunctionData; exports.decodeFunctionResult = _chunkO2GYLJVDjs.decodeFunctionResult; exports.decodeHex = _chunkO2GYLJVDjs.decodeHex; exports.decodeRlp = _chunkO2GYLJVDjs.decodeRlp; exports.deployContract = _chunkKZMJR27Bjs.deployContract; exports.dropTransaction = _chunkW7BWWAC4js.dropTransaction; exports.encodeAbi = _chunkO2GYLJVDjs.encodeAbi; exports.encodeBytes = _chunkO2GYLJVDjs.encodeBytes; exports.encodeDeployData = _chunkO2GYLJVDjs.encodeDeployData; exports.encodeErrorResult = _chunkO2GYLJVDjs.encodeErrorResult; exports.encodeEventTopics = _chunkO2GYLJVDjs.encodeEventTopics; exports.encodeFunctionData = _chunkO2GYLJVDjs.encodeFunctionData; exports.encodeFunctionResult = _chunkO2GYLJVDjs.encodeFunctionResult; exports.encodeHex = _chunkO2GYLJVDjs.encodeHex; exports.encodeRlp = _chunkO2GYLJVDjs.encodeRlp; exports.estimateGas = _chunkKZMJR27Bjs.estimateGas; exports.etherUnits = _chunkO2GYLJVDjs.etherUnits; exports.fallback = _chunkKEHGSYDOjs.fallback; exports.formatBlock = _chunkO2GYLJVDjs.formatBlock; exports.formatEther = _chunkO2GYLJVDjs.formatEther; exports.formatGwei = _chunkO2GYLJVDjs.formatGwei; exports.formatTransaction = _chunkO2GYLJVDjs.formatTransaction; exports.formatTransactionRequest = _chunkO2GYLJVDjs.formatTransactionRequest; exports.formatUnit = _chunkO2GYLJVDjs.formatUnit; exports.getAccounts = _chunkEC3NUIJEjs.getAccounts; exports.getAddress = _chunkO2GYLJVDjs.getAddress; exports.getAutomine = _chunkW7BWWAC4js.getAutomine; exports.getBalance = _chunkKZMJR27Bjs.getBalance; exports.getBlock = _chunkKZMJR27Bjs.getBlock; exports.getBlockNumber = _chunkKZMJR27Bjs.getBlockNumber; exports.getBlockTransactionCount = _chunkKZMJR27Bjs.getBlockTransactionCount; exports.getBytecode = _chunkKZMJR27Bjs.getBytecode; exports.getChainId = _chunkKZMJR27Bjs.getChainId; exports.getContractAddress = _chunkO2GYLJVDjs.getContractAddress; exports.getCreate2Address = _chunkO2GYLJVDjs.getCreate2Address; exports.getCreateAddress = _chunkO2GYLJVDjs.getCreateAddress; exports.getEventSignature = _chunkO2GYLJVDjs.getEventSignature; exports.getFeeHistory = _chunkKZMJR27Bjs.getFeeHistory; exports.getFilterChanges = _chunkKZMJR27Bjs.getFilterChanges; exports.getFilterLogs = _chunkKZMJR27Bjs.getFilterLogs; exports.getFunctionSignature = _chunkO2GYLJVDjs.getFunctionSignature; exports.getGasPrice = _chunkKZMJR27Bjs.getGasPrice; exports.getLogs = _chunkKZMJR27Bjs.getLogs; exports.getPermissions = _chunkEC3NUIJEjs.getPermissions; exports.getStorageAt = _chunkKZMJR27Bjs.getStorageAt; exports.getTransaction = _chunkKZMJR27Bjs.getTransaction; exports.getTransactionConfirmations = _chunkKZMJR27Bjs.getTransactionConfirmations; exports.getTransactionCount = _chunkKZMJR27Bjs.getTransactionCount; exports.getTransactionReceipt = _chunkKZMJR27Bjs.getTransactionReceipt; exports.getTxpoolContent = _chunkW7BWWAC4js.getTxpoolContent; exports.getTxpoolStatus = _chunkW7BWWAC4js.getTxpoolStatus; exports.gweiUnits = _chunkO2GYLJVDjs.gweiUnits; exports.hexToBigInt = _chunkO2GYLJVDjs.hexToBigInt; exports.hexToBool = _chunkO2GYLJVDjs.hexToBool; exports.hexToBytes = _chunkO2GYLJVDjs.hexToBytes; exports.hexToNumber = _chunkO2GYLJVDjs.hexToNumber; exports.hexToString = _chunkO2GYLJVDjs.hexToString; exports.http = _chunkKEHGSYDOjs.http; exports.impersonateAccount = _chunkW7BWWAC4js.impersonateAccount; exports.increaseTime = _chunkW7BWWAC4js.increaseTime; exports.inspectTxpool = _chunkW7BWWAC4js.inspectTxpool; exports.isAddress = _chunkO2GYLJVDjs.isAddress; exports.isAddressEqual = _chunkO2GYLJVDjs.isAddressEqual; exports.isBytes = _chunkO2GYLJVDjs.isBytes; exports.isHex = _chunkO2GYLJVDjs.isHex; exports.keccak256 = _chunkO2GYLJVDjs.keccak256; exports.mine = _chunkW7BWWAC4js.mine; exports.numberToBytes = _chunkO2GYLJVDjs.numberToBytes; exports.numberToHex = _chunkO2GYLJVDjs.numberToHex; exports.pad = _chunkO2GYLJVDjs.pad; exports.padBytes = _chunkO2GYLJVDjs.padBytes; exports.padHex = _chunkO2GYLJVDjs.padHex; exports.parseEther = _chunkO2GYLJVDjs.parseEther; exports.parseGwei = _chunkO2GYLJVDjs.parseGwei; exports.parseUnit = _chunkO2GYLJVDjs.parseUnit; exports.readContract = _chunkKZMJR27Bjs.readContract; exports.removeBlockTimestampInterval = _chunkW7BWWAC4js.removeBlockTimestampInterval; exports.requestAccounts = _chunkEC3NUIJEjs.requestAccounts; exports.requestPermissions = _chunkEC3NUIJEjs.requestPermissions; exports.reset = _chunkW7BWWAC4js.reset; exports.revert = _chunkW7BWWAC4js.revert; exports.sendTransaction = _chunkEC3NUIJEjs.sendTransaction; exports.sendUnsignedTransaction = _chunkW7BWWAC4js.sendUnsignedTransaction; exports.setAutomine = _chunkW7BWWAC4js.setAutomine; exports.setBalance = _chunkW7BWWAC4js.setBalance; exports.setBlockGasLimit = _chunkW7BWWAC4js.setBlockGasLimit; exports.setBlockTimestampInterval = _chunkW7BWWAC4js.setBlockTimestampInterval; exports.setCode = _chunkW7BWWAC4js.setCode; exports.setCoinbase = _chunkW7BWWAC4js.setCoinbase; exports.setIntervalMining = _chunkW7BWWAC4js.setIntervalMining; exports.setLoggingEnabled = _chunkW7BWWAC4js.setLoggingEnabled; exports.setMinGasPrice = _chunkW7BWWAC4js.setMinGasPrice; exports.setNextBlockBaseFeePerGas = _chunkW7BWWAC4js.setNextBlockBaseFeePerGas; exports.setNextBlockTimestamp = _chunkW7BWWAC4js.setNextBlockTimestamp; exports.setNonce = _chunkW7BWWAC4js.setNonce; exports.setStorageAt = _chunkW7BWWAC4js.setStorageAt; exports.signMessage = _chunkEC3NUIJEjs.signMessage; exports.simulateContract = _chunkKZMJR27Bjs.simulateContract; exports.size = _chunkO2GYLJVDjs.size; exports.slice = _chunkO2GYLJVDjs.slice; exports.sliceBytes = _chunkO2GYLJVDjs.sliceBytes; exports.sliceHex = _chunkO2GYLJVDjs.sliceHex; exports.snapshot = _chunkW7BWWAC4js.snapshot; exports.stopImpersonatingAccount = _chunkW7BWWAC4js.stopImpersonatingAccount; exports.stringToBytes = _chunkO2GYLJVDjs.stringToBytes; exports.stringToHex = _chunkO2GYLJVDjs.stringToHex; exports.switchChain = _chunkEC3NUIJEjs.switchChain; exports.transactionType = _chunkO2GYLJVDjs.transactionType; exports.trim = _chunkO2GYLJVDjs.trim; exports.uninstallFilter = _chunkKZMJR27Bjs.uninstallFilter; exports.waitForTransactionReceipt = _chunkKZMJR27Bjs.waitForTransactionReceipt; exports.watchAsset = _chunkEC3NUIJEjs.watchAsset; exports.watchBlockNumber = _chunkKZMJR27Bjs.watchBlockNumber; exports.watchBlocks = _chunkKZMJR27Bjs.watchBlocks; exports.watchPendingTransactions = _chunkKZMJR27Bjs.watchPendingTransactions; exports.webSocket = _chunkKEHGSYDOjs.webSocket; exports.weiUnits = _chunkO2GYLJVDjs.weiUnits; exports.writeContract = _chunkEC3NUIJEjs.writeContract;
|
394
|
+
|
395
|
+
|
396
|
+
|
397
|
+
|
398
|
+
|
399
|
+
|
400
|
+
|
401
|
+
|
402
|
+
|
403
|
+
|
404
|
+
exports.AbiConstructorNotFoundError = _chunkSSPRUPGNjs.AbiConstructorNotFoundError; exports.AbiConstructorParamsNotFoundError = _chunkSSPRUPGNjs.AbiConstructorParamsNotFoundError; exports.AbiDecodingDataSizeInvalidError = _chunkSSPRUPGNjs.AbiDecodingDataSizeInvalidError; exports.AbiEncodingArrayLengthMismatchError = _chunkSSPRUPGNjs.AbiEncodingArrayLengthMismatchError; exports.AbiEncodingLengthMismatchError = _chunkSSPRUPGNjs.AbiEncodingLengthMismatchError; exports.AbiErrorInputsNotFoundError = _chunkSSPRUPGNjs.AbiErrorInputsNotFoundError; exports.AbiErrorNotFoundError = _chunkSSPRUPGNjs.AbiErrorNotFoundError; exports.AbiErrorSignatureNotFoundError = _chunkSSPRUPGNjs.AbiErrorSignatureNotFoundError; exports.AbiEventNotFoundError = _chunkSSPRUPGNjs.AbiEventNotFoundError; exports.AbiFunctionNotFoundError = _chunkSSPRUPGNjs.AbiFunctionNotFoundError; exports.AbiFunctionOutputsNotFoundError = _chunkSSPRUPGNjs.AbiFunctionOutputsNotFoundError; exports.AbiFunctionSignatureNotFoundError = _chunkSSPRUPGNjs.AbiFunctionSignatureNotFoundError; exports.BaseError = _chunkSSPRUPGNjs.BaseError; exports.BlockNotFoundError = _chunkSSPRUPGNjs.BlockNotFoundError; exports.ContractFunctionExecutionError = _chunkSSPRUPGNjs.ContractFunctionExecutionError; exports.ContractFunctionRevertedError = _chunkSSPRUPGNjs.ContractFunctionRevertedError; exports.ContractFunctionZeroDataError = _chunkSSPRUPGNjs.ContractFunctionZeroDataError; exports.DataLengthTooLongError = _chunkSSPRUPGNjs.DataLengthTooLongError; exports.DataLengthTooShortError = _chunkSSPRUPGNjs.DataLengthTooShortError; exports.FilterTypeNotSupportedError = _chunkSSPRUPGNjs.FilterTypeNotSupportedError; exports.HttpRequestError = _chunkSSPRUPGNjs.HttpRequestError; exports.InternalRpcError = _chunkSSPRUPGNjs.InternalRpcError; exports.InvalidAbiDecodingTypeError = _chunkSSPRUPGNjs.InvalidAbiDecodingTypeError; exports.InvalidAbiEncodingTypeError = _chunkSSPRUPGNjs.InvalidAbiEncodingTypeError; exports.InvalidAddressError = _chunkSSPRUPGNjs.InvalidAddressError; exports.InvalidArrayError = _chunkSSPRUPGNjs.InvalidArrayError; exports.InvalidBytesBooleanError = _chunkSSPRUPGNjs.InvalidBytesBooleanError; exports.InvalidDefinitionTypeError = _chunkSSPRUPGNjs.InvalidDefinitionTypeError; exports.InvalidGasArgumentsError = _chunkSSPRUPGNjs.InvalidGasArgumentsError; exports.InvalidHexBooleanError = _chunkSSPRUPGNjs.InvalidHexBooleanError; exports.InvalidHexValueError = _chunkSSPRUPGNjs.InvalidHexValueError; exports.InvalidInputRpcError = _chunkSSPRUPGNjs.InvalidInputRpcError; exports.InvalidParamsRpcError = _chunkSSPRUPGNjs.InvalidParamsRpcError; exports.InvalidRequestRpcError = _chunkSSPRUPGNjs.InvalidRequestRpcError; exports.JsonRpcVersionUnsupportedError = _chunkSSPRUPGNjs.JsonRpcVersionUnsupportedError; exports.LimitExceededRpcError = _chunkSSPRUPGNjs.LimitExceededRpcError; exports.MethodNotFoundRpcError = _chunkSSPRUPGNjs.MethodNotFoundRpcError; exports.MethodNotSupportedRpcError = _chunkSSPRUPGNjs.MethodNotSupportedRpcError; exports.OffsetOutOfBoundsError = _chunkSSPRUPGNjs.OffsetOutOfBoundsError; exports.ParseRpcError = _chunkSSPRUPGNjs.ParseRpcError; exports.RequestError = _chunkSSPRUPGNjs.RequestError; exports.ResourceNotFoundRpcError = _chunkSSPRUPGNjs.ResourceNotFoundRpcError; exports.ResourceUnavailableRpcError = _chunkSSPRUPGNjs.ResourceUnavailableRpcError; exports.RpcError = _chunkSSPRUPGNjs.RpcError; exports.RpcRequestError = _chunkSSPRUPGNjs.RpcRequestError; exports.SizeExceedsPaddingSizeError = _chunkSSPRUPGNjs.SizeExceedsPaddingSizeError; exports.TimeoutError = _chunkSSPRUPGNjs.TimeoutError; exports.TransactionNotFoundError = _chunkSSPRUPGNjs.TransactionNotFoundError; exports.TransactionReceiptNotFoundError = _chunkSSPRUPGNjs.TransactionReceiptNotFoundError; exports.TransactionRejectedRpcError = _chunkSSPRUPGNjs.TransactionRejectedRpcError; exports.UnknownRpcError = _chunkSSPRUPGNjs.UnknownRpcError; exports.UrlRequiredError = _chunkSSPRUPGNjs.UrlRequiredError; exports.WaitForTransactionReceiptTimeoutError = _chunkSSPRUPGNjs.WaitForTransactionReceiptTimeoutError; exports.WebSocketRequestError = _chunkSSPRUPGNjs.WebSocketRequestError; exports.addChain = _chunk7Y5QVLX7js.addChain; exports.boolToBytes = _chunkSSPRUPGNjs.boolToBytes; exports.boolToHex = _chunkSSPRUPGNjs.boolToHex; exports.bytesToBigint = _chunkSSPRUPGNjs.bytesToBigint; exports.bytesToBool = _chunkSSPRUPGNjs.bytesToBool; exports.bytesToHex = _chunkSSPRUPGNjs.bytesToHex; exports.bytesToNumber = _chunkSSPRUPGNjs.bytesToNumber; exports.bytesToString = _chunkSSPRUPGNjs.bytesToString; exports.call = _chunkZKYGWITFjs.call; exports.createBlockFilter = _chunkZKYGWITFjs.createBlockFilter; exports.createClient = _chunkBV5NTHUXjs.createClient; exports.createContractEventFilter = _chunkZKYGWITFjs.createContractEventFilter; exports.createEventFilter = _chunkZKYGWITFjs.createEventFilter; exports.createPendingTransactionFilter = _chunkZKYGWITFjs.createPendingTransactionFilter; exports.createPublicClient = _chunkBV5NTHUXjs.createPublicClient; exports.createTestClient = _chunkBV5NTHUXjs.createTestClient; exports.createTransport = _chunkBV5NTHUXjs.createTransport; exports.createWalletClient = _chunkBV5NTHUXjs.createWalletClient; exports.custom = _chunkBV5NTHUXjs.custom; exports.decodeAbi = _chunkSSPRUPGNjs.decodeAbi; exports.decodeBytes = _chunkSSPRUPGNjs.decodeBytes; exports.decodeErrorResult = _chunkSSPRUPGNjs.decodeErrorResult; exports.decodeFunctionData = _chunkSSPRUPGNjs.decodeFunctionData; exports.decodeFunctionResult = _chunkSSPRUPGNjs.decodeFunctionResult; exports.decodeHex = _chunkSSPRUPGNjs.decodeHex; exports.decodeRlp = _chunkSSPRUPGNjs.decodeRlp; exports.deployContract = _chunkZKYGWITFjs.deployContract; exports.dropTransaction = _chunkNW6724MIjs.dropTransaction; exports.encodeAbi = _chunkSSPRUPGNjs.encodeAbi; exports.encodeBytes = _chunkSSPRUPGNjs.encodeBytes; exports.encodeDeployData = _chunkSSPRUPGNjs.encodeDeployData; exports.encodeErrorResult = _chunkSSPRUPGNjs.encodeErrorResult; exports.encodeEventTopics = _chunkSSPRUPGNjs.encodeEventTopics; exports.encodeFunctionData = _chunkSSPRUPGNjs.encodeFunctionData; exports.encodeFunctionResult = _chunkSSPRUPGNjs.encodeFunctionResult; exports.encodeHex = _chunkSSPRUPGNjs.encodeHex; exports.encodeRlp = _chunkSSPRUPGNjs.encodeRlp; exports.estimateGas = _chunkZKYGWITFjs.estimateGas; exports.etherUnits = _chunkSSPRUPGNjs.etherUnits; exports.fallback = _chunkBV5NTHUXjs.fallback; exports.formatBlock = _chunkSSPRUPGNjs.formatBlock; exports.formatEther = _chunkSSPRUPGNjs.formatEther; exports.formatGwei = _chunkSSPRUPGNjs.formatGwei; exports.formatTransaction = _chunkSSPRUPGNjs.formatTransaction; exports.formatTransactionRequest = _chunkSSPRUPGNjs.formatTransactionRequest; exports.formatUnit = _chunkSSPRUPGNjs.formatUnit; exports.getAccounts = _chunk7Y5QVLX7js.getAccounts; exports.getAddress = _chunkSSPRUPGNjs.getAddress; exports.getAutomine = _chunkNW6724MIjs.getAutomine; exports.getBalance = _chunkZKYGWITFjs.getBalance; exports.getBlock = _chunkZKYGWITFjs.getBlock; exports.getBlockNumber = _chunkZKYGWITFjs.getBlockNumber; exports.getBlockTransactionCount = _chunkZKYGWITFjs.getBlockTransactionCount; exports.getBytecode = _chunkZKYGWITFjs.getBytecode; exports.getChainId = _chunkZKYGWITFjs.getChainId; exports.getContractAddress = _chunkSSPRUPGNjs.getContractAddress; exports.getCreate2Address = _chunkSSPRUPGNjs.getCreate2Address; exports.getCreateAddress = _chunkSSPRUPGNjs.getCreateAddress; exports.getEventSignature = _chunkSSPRUPGNjs.getEventSignature; exports.getFeeHistory = _chunkZKYGWITFjs.getFeeHistory; exports.getFilterChanges = _chunkZKYGWITFjs.getFilterChanges; exports.getFilterLogs = _chunkZKYGWITFjs.getFilterLogs; exports.getFunctionSignature = _chunkSSPRUPGNjs.getFunctionSignature; exports.getGasPrice = _chunkZKYGWITFjs.getGasPrice; exports.getLogs = _chunkZKYGWITFjs.getLogs; exports.getPermissions = _chunk7Y5QVLX7js.getPermissions; exports.getStorageAt = _chunkZKYGWITFjs.getStorageAt; exports.getTransaction = _chunkZKYGWITFjs.getTransaction; exports.getTransactionConfirmations = _chunkZKYGWITFjs.getTransactionConfirmations; exports.getTransactionCount = _chunkZKYGWITFjs.getTransactionCount; exports.getTransactionReceipt = _chunkZKYGWITFjs.getTransactionReceipt; exports.getTxpoolContent = _chunkNW6724MIjs.getTxpoolContent; exports.getTxpoolStatus = _chunkNW6724MIjs.getTxpoolStatus; exports.gweiUnits = _chunkSSPRUPGNjs.gweiUnits; exports.hexToBigInt = _chunkSSPRUPGNjs.hexToBigInt; exports.hexToBool = _chunkSSPRUPGNjs.hexToBool; exports.hexToBytes = _chunkSSPRUPGNjs.hexToBytes; exports.hexToNumber = _chunkSSPRUPGNjs.hexToNumber; exports.hexToString = _chunkSSPRUPGNjs.hexToString; exports.http = _chunkBV5NTHUXjs.http; exports.impersonateAccount = _chunkNW6724MIjs.impersonateAccount; exports.increaseTime = _chunkNW6724MIjs.increaseTime; exports.inspectTxpool = _chunkNW6724MIjs.inspectTxpool; exports.isAddress = _chunkSSPRUPGNjs.isAddress; exports.isAddressEqual = _chunkSSPRUPGNjs.isAddressEqual; exports.isBytes = _chunkSSPRUPGNjs.isBytes; exports.isHex = _chunkSSPRUPGNjs.isHex; exports.keccak256 = _chunkSSPRUPGNjs.keccak256; exports.mine = _chunkNW6724MIjs.mine; exports.multicall = _chunkZKYGWITFjs.multicall; exports.multicall3Abi = _chunkSSPRUPGNjs.multicall3Abi; exports.numberToBytes = _chunkSSPRUPGNjs.numberToBytes; exports.numberToHex = _chunkSSPRUPGNjs.numberToHex; exports.pad = _chunkSSPRUPGNjs.pad; exports.padBytes = _chunkSSPRUPGNjs.padBytes; exports.padHex = _chunkSSPRUPGNjs.padHex; exports.parseEther = _chunkSSPRUPGNjs.parseEther; exports.parseGwei = _chunkSSPRUPGNjs.parseGwei; exports.parseUnit = _chunkSSPRUPGNjs.parseUnit; exports.readContract = _chunkZKYGWITFjs.readContract; exports.removeBlockTimestampInterval = _chunkNW6724MIjs.removeBlockTimestampInterval; exports.requestAccounts = _chunk7Y5QVLX7js.requestAccounts; exports.requestPermissions = _chunk7Y5QVLX7js.requestPermissions; exports.reset = _chunkNW6724MIjs.reset; exports.revert = _chunkNW6724MIjs.revert; exports.sendTransaction = _chunk7Y5QVLX7js.sendTransaction; exports.sendUnsignedTransaction = _chunkNW6724MIjs.sendUnsignedTransaction; exports.setAutomine = _chunkNW6724MIjs.setAutomine; exports.setBalance = _chunkNW6724MIjs.setBalance; exports.setBlockGasLimit = _chunkNW6724MIjs.setBlockGasLimit; exports.setBlockTimestampInterval = _chunkNW6724MIjs.setBlockTimestampInterval; exports.setCode = _chunkNW6724MIjs.setCode; exports.setCoinbase = _chunkNW6724MIjs.setCoinbase; exports.setIntervalMining = _chunkNW6724MIjs.setIntervalMining; exports.setLoggingEnabled = _chunkNW6724MIjs.setLoggingEnabled; exports.setMinGasPrice = _chunkNW6724MIjs.setMinGasPrice; exports.setNextBlockBaseFeePerGas = _chunkNW6724MIjs.setNextBlockBaseFeePerGas; exports.setNextBlockTimestamp = _chunkNW6724MIjs.setNextBlockTimestamp; exports.setNonce = _chunkNW6724MIjs.setNonce; exports.setStorageAt = _chunkNW6724MIjs.setStorageAt; exports.signMessage = _chunk7Y5QVLX7js.signMessage; exports.simulateContract = _chunkZKYGWITFjs.simulateContract; exports.size = _chunkSSPRUPGNjs.size; exports.slice = _chunkSSPRUPGNjs.slice; exports.sliceBytes = _chunkSSPRUPGNjs.sliceBytes; exports.sliceHex = _chunkSSPRUPGNjs.sliceHex; exports.snapshot = _chunkNW6724MIjs.snapshot; exports.stopImpersonatingAccount = _chunkNW6724MIjs.stopImpersonatingAccount; exports.stringToBytes = _chunkSSPRUPGNjs.stringToBytes; exports.stringToHex = _chunkSSPRUPGNjs.stringToHex; exports.switchChain = _chunk7Y5QVLX7js.switchChain; exports.transactionType = _chunkSSPRUPGNjs.transactionType; exports.trim = _chunkSSPRUPGNjs.trim; exports.uninstallFilter = _chunkZKYGWITFjs.uninstallFilter; exports.waitForTransactionReceipt = _chunkZKYGWITFjs.waitForTransactionReceipt; exports.watchAsset = _chunk7Y5QVLX7js.watchAsset; exports.watchBlockNumber = _chunkZKYGWITFjs.watchBlockNumber; exports.watchBlocks = _chunkZKYGWITFjs.watchBlocks; exports.watchPendingTransactions = _chunkZKYGWITFjs.watchPendingTransactions; exports.webSocket = _chunkBV5NTHUXjs.webSocket; exports.weiUnits = _chunkSSPRUPGNjs.weiUnits; exports.writeContract = _chunk7Y5QVLX7js.writeContract;
|
395
405
|
//# sourceMappingURL=index.js.map
|
package/dist/index.mjs
CHANGED
@@ -8,7 +8,7 @@ import {
|
|
8
8
|
fallback,
|
9
9
|
http,
|
10
10
|
webSocket
|
11
|
-
} from "./chunk-
|
11
|
+
} from "./chunk-EGVXCZNJ.mjs";
|
12
12
|
import {
|
13
13
|
call,
|
14
14
|
createBlockFilter,
|
@@ -33,6 +33,7 @@ import {
|
|
33
33
|
getTransactionConfirmations,
|
34
34
|
getTransactionCount,
|
35
35
|
getTransactionReceipt,
|
36
|
+
multicall,
|
36
37
|
readContract,
|
37
38
|
simulateContract,
|
38
39
|
uninstallFilter,
|
@@ -40,7 +41,7 @@ import {
|
|
40
41
|
watchBlockNumber,
|
41
42
|
watchBlocks,
|
42
43
|
watchPendingTransactions
|
43
|
-
} from "./chunk-
|
44
|
+
} from "./chunk-RJLUZTJS.mjs";
|
44
45
|
import {
|
45
46
|
dropTransaction,
|
46
47
|
getAutomine,
|
@@ -69,7 +70,7 @@ import {
|
|
69
70
|
setStorageAt,
|
70
71
|
snapshot,
|
71
72
|
stopImpersonatingAccount
|
72
|
-
} from "./chunk-
|
73
|
+
} from "./chunk-GX2KDAM3.mjs";
|
73
74
|
import {
|
74
75
|
addChain,
|
75
76
|
getAccounts,
|
@@ -81,7 +82,7 @@ import {
|
|
81
82
|
switchChain,
|
82
83
|
watchAsset,
|
83
84
|
writeContract
|
84
|
-
} from "./chunk-
|
85
|
+
} from "./chunk-TXHOG6KU.mjs";
|
85
86
|
import {
|
86
87
|
AbiConstructorNotFoundError,
|
87
88
|
AbiConstructorParamsNotFoundError,
|
@@ -97,6 +98,9 @@ import {
|
|
97
98
|
AbiFunctionSignatureNotFoundError,
|
98
99
|
BaseError,
|
99
100
|
BlockNotFoundError,
|
101
|
+
ContractFunctionExecutionError,
|
102
|
+
ContractFunctionRevertedError,
|
103
|
+
ContractFunctionZeroDataError,
|
100
104
|
DataLengthTooLongError,
|
101
105
|
DataLengthTooShortError,
|
102
106
|
FilterTypeNotSupportedError,
|
@@ -181,6 +185,7 @@ import {
|
|
181
185
|
isBytes,
|
182
186
|
isHex,
|
183
187
|
keccak256,
|
188
|
+
multicall3Abi,
|
184
189
|
numberToBytes,
|
185
190
|
numberToHex,
|
186
191
|
pad,
|
@@ -198,7 +203,7 @@ import {
|
|
198
203
|
transactionType,
|
199
204
|
trim,
|
200
205
|
weiUnits
|
201
|
-
} from "./chunk-
|
206
|
+
} from "./chunk-XBUH66KN.mjs";
|
202
207
|
export {
|
203
208
|
AbiConstructorNotFoundError,
|
204
209
|
AbiConstructorParamsNotFoundError,
|
@@ -214,6 +219,9 @@ export {
|
|
214
219
|
AbiFunctionSignatureNotFoundError,
|
215
220
|
BaseError,
|
216
221
|
BlockNotFoundError,
|
222
|
+
ContractFunctionExecutionError,
|
223
|
+
ContractFunctionRevertedError,
|
224
|
+
ContractFunctionZeroDataError,
|
217
225
|
DataLengthTooLongError,
|
218
226
|
DataLengthTooShortError,
|
219
227
|
FilterTypeNotSupportedError,
|
@@ -340,6 +348,8 @@ export {
|
|
340
348
|
isHex,
|
341
349
|
keccak256,
|
342
350
|
mine,
|
351
|
+
multicall,
|
352
|
+
multicall3Abi,
|
343
353
|
numberToBytes,
|
344
354
|
numberToHex,
|
345
355
|
pad,
|
@@ -0,0 +1,33 @@
|
|
1
|
+
/**
|
2
|
+
* @description Hashes ENS label
|
3
|
+
*
|
4
|
+
* @example
|
5
|
+
* labelhash('eth')
|
6
|
+
* '0x4f5b812789fc606be1b3b16908db13fc7a9adf7ca72641f84d75b47069d3d7f0'
|
7
|
+
*/
|
8
|
+
declare function labelhash(label: string): `0x${string}`;
|
9
|
+
|
10
|
+
/**
|
11
|
+
* @description Hashes ENS name
|
12
|
+
*
|
13
|
+
* @example
|
14
|
+
* namehash('wagmi-dev.eth')
|
15
|
+
* '0xf246651c1b9a6b141d19c2604e9a58f567973833990f830d882534a747801359'
|
16
|
+
*
|
17
|
+
* @see https://eips.ethereum.org/EIPS/eip-137
|
18
|
+
* @see https://docs.ens.domains/contract-api-reference/name-processing#hashing-names
|
19
|
+
*/
|
20
|
+
declare function namehash(name: string): `0x${string}`;
|
21
|
+
|
22
|
+
/**
|
23
|
+
* @description Normalizes ENS name
|
24
|
+
*
|
25
|
+
* @example
|
26
|
+
* normalize('wagmi-dev.eth')
|
27
|
+
* 'wagmi-dev.eth'
|
28
|
+
*
|
29
|
+
* @see https://docs.ens.domains/contract-api-reference/name-processing#normalising-names
|
30
|
+
*/
|
31
|
+
declare function normalize(name: string): string;
|
32
|
+
|
33
|
+
export { normalize as a, labelhash as l, namehash as n };
|