/*** * TODO I didn't update any of these jsdocs */ import type { FilterParams } from '../common/FilterParams.js' import type { Address } from 'abitype' import type { BlockTag, CallParameters, EstimateGasParameters, GetBalanceParameters, GetTransactionParameters, Hex, SendRawTransactionParameters, SendTransactionParameters, SignMessageParameters, } from 'viem' type EmptyParams = readonly [] | {} | undefined | never // eth_accounts /** * Params taken by `eth_accounts` handler */ export type EthAccountsParams = EmptyParams // eth_blockNumber /** * JSON-RPC request for `eth_blockNumber` procedure */ export type EthBlockNumberParams = EmptyParams // eth_call /** * JSON-RPC request for `eth_call` procedure */ export type EthCallParams = CallParameters // eth_chainId /** * JSON-RPC request for `eth_chainId` procedure */ export type EthChainIdParams = EmptyParams // eth_coinbase /** * JSON-RPC request for `eth_coinbase` procedure */ export type EthCoinbaseParams = EmptyParams // eth_estimateGas /** * JSON-RPC request for `eth_estimateGas` procedure */ export type EthEstimateGasParams = EstimateGasParameters // eth_hashrate /** * JSON-RPC request for `eth_hashrate` procedure */ export type EthHashrateParams = EmptyParams // eth_gasPrice /** * JSON-RPC request for `eth_gasPrice` procedure */ export type EthGasPriceParams = EmptyParams // eth_getBalance /** * JSON-RPC request for `eth_getBalance` procedure */ export type EthGetBalanceParams = GetBalanceParameters // eth_getBlockByHash /** * JSON-RPC request for `eth_getBlockByHash` procedure */ export type EthGetBlockByHashParams = { blockHash: Hex fullTransactionObjects: boolean } // eth_getBlockByNumber /** * JSON-RPC request for `eth_getBlockByNumber` procedure */ export type EthGetBlockByNumberParams = { tag: BlockTag | Hex fullTransactionObjects: boolean } // eth_getBlockTransactionCountByHash /** * JSON-RPC request for `eth_getBlockTransactionCountByHash` procedure */ export type EthGetBlockTransactionCountByHashParams = { hash: Hex } // eth_getBlockTransactionCountByNumber /** * JSON-RPC request for `eth_getBlockTransactionCountByNumber` procedure */ export type EthGetBlockTransactionCountByNumberParams = { tag: BlockTag | Hex } // eth_getCode /** * JSON-RPC request for `eth_getCode` procedure */ export type EthGetCodeParams = { address: Address; tag: BlockTag | Hex } // eth_getFilterChanges /** * JSON-RPC request for `eth_getFilterChanges` procedure */ export type EthGetFilterChangesParams = { filterId: Hex } // eth_getFilterLogs /** * JSON-RPC request for `eth_getFilterLogs` procedure */ export type EthGetFilterLogsParams = { filterId: Hex } // eth_getLogs /** * JSON-RPC request for `eth_getLogs` procedure */ export type EthGetLogsParams = { filterParams: FilterParams } // eth_getStorageAt /** * JSON-RPC request for `eth_getStorageAt` procedure */ export type EthGetStorageAtParams = { address: Address position: Hex tag: BlockTag | Hex } // eth_getTransactionCount /** * JSON-RPC request for `eth_getTransactionCount` procedure */ export type EthGetTransactionCountParams = { address: Address tag: BlockTag | Hex } // eth_getUncleCountByBlockHash /** * JSON-RPC request for `eth_getUncleCountByBlockHash` procedure */ export type EthGetUncleCountByBlockHashParams = { hash: Hex } // eth_getUncleCountByBlockNumber /** * JSON-RPC request for `eth_getUncleCountByBlockNumber` procedure */ export type EthGetUncleCountByBlockNumberParams = { tag: BlockTag | Hex } // eth_getTransactionByHash /** * JSON-RPC request for `eth_getTransactionByHash` procedure */ export type EthGetTransactionByHashParams = { data: Hex } // eth_getTransactionByBlockHashAndIndex /** * JSON-RPC request for `eth_getTransactionByBlockHashAndIndex` procedure */ export type EthGetTransactionByBlockHashAndIndexParams = { tag: Hex index: Hex } // eth_getTransactionByBlockNumberAndIndex /** * JSON-RPC request for `eth_getTransactionByBlockNumberAndIndex` procedure */ export type EthGetTransactionByBlockNumberAndIndexParams = { tag: BlockTag | Hex index: Hex } // eth_getTransactionReceipt /** * JSON-RPC request for `eth_getTransactionReceipt` procedure */ export type EthGetTransactionReceiptParams = GetTransactionParameters // eth_getUncleByBlockHashAndIndex /** * JSON-RPC request for `eth_getUncleByBlockHashAndIndex` procedure */ export type EthGetUncleByBlockHashAndIndexParams = { blockHash: Hex uncleIndex: Hex } // eth_getUncleByBlockNumberAndIndex /** * JSON-RPC request for `eth_getUncleByBlockNumberAndIndex` procedure */ export type EthGetUncleByBlockNumberAndIndexParams = { tag: BlockTag | Hex uncleIndex: Hex } // eth_mining /** * JSON-RPC request for `eth_mining` procedure */ export type EthMiningParams = EmptyParams // eth_protocolVersion /** * JSON-RPC request for `eth_protocolVersion` procedure */ export type EthProtocolVersionParams = EmptyParams // eth_sendRawTransaction /** * JSON-RPC request for `eth_sendRawTransaction` procedure */ export type EthSendRawTransactionParams = SendRawTransactionParameters // eth_sendTransaction /** * JSON-RPC request for `eth_sendTransaction` procedure */ export type EthSendTransactionParams = SendTransactionParameters // eth_sign /** * JSON-RPC request for `eth_sign` procedure */ export type EthSignParams = SignMessageParameters // eth_signTransaction /** * JSON-RPC request for `eth_signTransaction` procedure */ export type EthSignTransactionParams = SignMessageParameters // eth_syncing /** * JSON-RPC request for `eth_syncing` procedure */ export type EthSyncingParams = EmptyParams // eth_newFilter /** * JSON-RPC request for `eth_newFilter` procedure */ export type EthNewFilterParams = FilterParams // eth_newBlockFilter /** * JSON-RPC request for `eth_newBlockFilter` procedure */ export type EthNewBlockFilterParams = EmptyParams // eth_newPendingTransactionFilter /** * JSON-RPC request for `eth_newPendingTransactionFilter` procedure */ export type EthNewPendingTransactionFilterParams = EmptyParams // eth_uninstallFilter /** * JSON-RPC request for `eth_uninstallFilter` procedure */ export type EthUninstallFilterParams = { filterId: Hex } export type EthParams = | EthAccountsParams | EthAccountsParams | EthBlockNumberParams | EthCallParams | EthChainIdParams | EthCoinbaseParams | EthEstimateGasParams | EthHashrateParams | EthGasPriceParams | EthGetBalanceParams | EthGetBlockByHashParams | EthGetBlockByNumberParams | EthGetBlockTransactionCountByHashParams | EthGetBlockTransactionCountByNumberParams | EthGetCodeParams | EthGetFilterChangesParams | EthGetFilterLogsParams | EthGetLogsParams | EthGetStorageAtParams | EthGetTransactionCountParams | EthGetUncleCountByBlockHashParams | EthGetUncleCountByBlockNumberParams | EthGetTransactionByHashParams | EthGetTransactionByBlockHashAndIndexParams | EthGetTransactionByBlockNumberAndIndexParams | EthGetTransactionReceiptParams | EthGetUncleByBlockHashAndIndexParams | EthGetUncleByBlockNumberAndIndexParams | EthMiningParams | EthProtocolVersionParams | EthSendRawTransactionParams | EthSendTransactionParams | EthSignParams | EthSignTransactionParams | EthSyncingParams | EthNewFilterParams | EthNewBlockFilterParams | EthNewPendingTransactionFilterParams | EthUninstallFilterParams