From d2c1dc3696311be06b6e0ed955d9e5158e75bfa6 Mon Sep 17 00:00:00 2001 From: Luke Imhoff Date: Mon, 4 Jun 2018 11:37:49 -0500 Subject: [PATCH] Remove unused eth_*Filter functions --- apps/ethereum_jsonrpc/lib/ethereum_jsonrpc.ex | 30 ------------------- 1 file changed, 30 deletions(-) diff --git a/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc.ex b/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc.ex index d8a7e1c8c5..fad1b0d080 100644 --- a/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc.ex +++ b/apps/ethereum_jsonrpc/lib/ethereum_jsonrpc.ex @@ -61,20 +61,6 @@ defmodule EthereumJSONRPC do """ @type timestamp :: String.t() - @doc """ - Lists changes for a given filter subscription. - """ - def check_for_updates(filter_id) do - request = %{ - "id" => filter_id, - "jsonrpc" => "2.0", - "method" => "eth_getFilterChanges", - "params" => [filter_id] - } - - json_rpc(request, config(:url)) - end - @doc """ Fetches configuration for this module under `key` @@ -190,22 +176,6 @@ defmodule EthereumJSONRPC do end end - @doc """ - Creates a filter subscription that can be polled for retreiving new blocks. - """ - def listen_for_new_blocks do - id = DateTime.utc_now() |> DateTime.to_unix() - - request = %{ - "id" => id, - "jsonrpc" => "2.0", - "method" => "eth_newBlockFilter", - "params" => [] - } - - json_rpc(request, config(:url)) - end - @doc """ Converts `t:nonce/0` to `t:non_neg_integer/0` """