From 6b805abd2107b25c9f61c28d768a98cb9db8f598 Mon Sep 17 00:00:00 2001 From: TheParanoik <41195328+TheParanoik@users.noreply.github.com> Date: Sat, 6 Mar 2021 21:48:10 +0100 Subject: [PATCH] Update Eth.php improved code readability --- src/Eth.php | 45 +++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 43 insertions(+), 2 deletions(-) diff --git a/src/Eth.php b/src/Eth.php index 78d97989..3d71064b 100644 --- a/src/Eth.php +++ b/src/Eth.php @@ -38,7 +38,48 @@ class Eth * @var array */ private $allowedMethods = [ - 'eth_protocolVersion', 'eth_syncing', 'eth_coinbase', 'eth_mining', 'eth_hashrate', 'eth_gasPrice', 'eth_accounts', 'eth_blockNumber', 'eth_getBalance', 'eth_getStorageAt', 'eth_getTransactionCount', 'eth_getBlockTransactionCountByHash', 'eth_getBlockTransactionCountByNumber', 'eth_getUncleCountByBlockHash', 'eth_getUncleCountByBlockNumber', 'eth_getUncleByBlockHashAndIndex', 'eth_getUncleByBlockNumberAndIndex', 'eth_getCode', 'eth_sign', 'eth_sendTransaction', 'eth_sendRawTransaction', 'eth_call', 'eth_estimateGas', 'eth_getBlockByHash', 'eth_getBlockByNumber', 'eth_getTransactionByHash', 'eth_getTransactionByBlockHashAndIndex', 'eth_getTransactionByBlockNumberAndIndex', 'eth_getTransactionReceipt', 'eth_compileSolidity', 'eth_compileLLL', 'eth_compileSerpent', 'eth_getWork', 'eth_newFilter', 'eth_newBlockFilter', 'eth_newPendingTransactionFilter', 'eth_uninstallFilter', 'eth_getFilterChanges', 'eth_getFilterLogs', 'eth_getLogs', 'eth_submitWork', 'eth_submitHashrate' + 'eth_protocolVersion', + 'eth_syncing', + 'eth_coinbase', + 'eth_mining', + 'eth_hashrate', + 'eth_gasPrice', + 'eth_accounts', + 'eth_blockNumber', + 'eth_getBalance', + 'eth_getStorageAt', + 'eth_getTransactionCount', + 'eth_getBlockTransactionCountByHash', + 'eth_getBlockTransactionCountByNumber', + 'eth_getUncleCountByBlockHash', + 'eth_getUncleCountByBlockNumber', + 'eth_getUncleByBlockHashAndIndex', + 'eth_getUncleByBlockNumberAndIndex', + 'eth_getCode', + 'eth_sign', + 'eth_sendTransaction', + 'eth_sendRawTransaction', + 'eth_call', + 'eth_estimateGas', + 'eth_getBlockByHash', + 'eth_getBlockByNumber', + 'eth_getTransactionByHash', + 'eth_getTransactionByBlockHashAndIndex', + 'eth_getTransactionByBlockNumberAndIndex', + 'eth_getTransactionReceipt', + 'eth_compileSolidity', + 'eth_compileLLL', + 'eth_compileSerpent', + 'eth_getWork', + 'eth_newFilter', + 'eth_newBlockFilter', + 'eth_newPendingTransactionFilter', + 'eth_uninstallFilter', + 'eth_getFilterChanges', + 'eth_getFilterLogs', + 'eth_getLogs', + 'eth_submitWork', + 'eth_submitHashrate' ]; /** @@ -177,4 +218,4 @@ public function batch($status) $this->provider->batch($status); } -} \ No newline at end of file +}