Merge pull request #128 from sc0Vu/remove-get-compilers
Remove eth_getCompilers
This commit is contained in:
commit
fe5dc8ed63
@ -38,7 +38,7 @@ class Eth
|
|||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
private $allowedMethods = [
|
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_getCompilers', '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'
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,58 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This file is part of web3.php package.
|
|
||||||
*
|
|
||||||
* (c) Kuan-Cheng,Lai <alk03073135@gmail.com>
|
|
||||||
*
|
|
||||||
* @author Peter Lai <alk03073135@gmail.com>
|
|
||||||
* @license MIT
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Web3\Methods\Eth;
|
|
||||||
|
|
||||||
use InvalidArgumentException;
|
|
||||||
use Web3\Methods\EthMethod;
|
|
||||||
|
|
||||||
class GetCompilers extends EthMethod
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* validators
|
|
||||||
*
|
|
||||||
* @var array
|
|
||||||
*/
|
|
||||||
protected $validators = [];
|
|
||||||
|
|
||||||
/**
|
|
||||||
* inputFormatters
|
|
||||||
*
|
|
||||||
* @var array
|
|
||||||
*/
|
|
||||||
protected $inputFormatters = [];
|
|
||||||
|
|
||||||
/**
|
|
||||||
* outputFormatters
|
|
||||||
*
|
|
||||||
* @var array
|
|
||||||
*/
|
|
||||||
protected $outputFormatters = [];
|
|
||||||
|
|
||||||
/**
|
|
||||||
* defaultValues
|
|
||||||
*
|
|
||||||
* @var array
|
|
||||||
*/
|
|
||||||
protected $defaultValues = [];
|
|
||||||
|
|
||||||
/**
|
|
||||||
* construct
|
|
||||||
*
|
|
||||||
* @param string $method
|
|
||||||
* @param array $arguments
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
// public function __construct($method='', $arguments=[])
|
|
||||||
// {
|
|
||||||
// parent::__construct($method, $arguments);
|
|
||||||
// }
|
|
||||||
}
|
|
@ -546,24 +546,6 @@ class EthApiTest extends TestCase
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* testGetCompilers
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public function testGetCompilers()
|
|
||||||
{
|
|
||||||
$eth = $this->eth;
|
|
||||||
|
|
||||||
$eth->getCompilers(function ($err, $compilers) {
|
|
||||||
if ($err !== null) {
|
|
||||||
return $this->assertTrue($err !== null);
|
|
||||||
}
|
|
||||||
$this->assertTrue(is_array($compilers));
|
|
||||||
$this->assertEquals($compilers[0], 'solidity');
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* testCompileSolidity
|
* testCompileSolidity
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user