Search in sources :

Example 6 with EthModuleSolidityDisabled

use of co.rsk.rpc.modules.eth.EthModuleSolidityDisabled in project rskj by rsksmart.

the class Web3ImplTest method createWeb3.

private Web3Impl createWeb3(SimpleEthereum eth, PeerServer peerServer) {
    wallet = WalletFactory.createWallet();
    Blockchain blockchain = Web3Mocks.getMockBlockchain();
    TransactionPool transactionPool = Web3Mocks.getMockTransactionPool();
    PersonalModuleWalletEnabled personalModule = new PersonalModuleWalletEnabled(config, eth, wallet, null);
    EthModule ethModule = new EthModule(config, blockchain, null, new ExecutionBlockRetriever(blockchain, null, null), new EthModuleSolidityDisabled(), new EthModuleWalletEnabled(config, eth, wallet, null));
    TxPoolModule txPoolModule = new TxPoolModuleImpl(Web3Mocks.getMockTransactionPool());
    MinerClient minerClient = new SimpleMinerClient();
    ChannelManager channelManager = new SimpleChannelManager();
    return new Web3RskImpl(eth, blockchain, transactionPool, config, minerClient, Web3Mocks.getMockMinerServer(), personalModule, ethModule, txPoolModule, channelManager, Web3Mocks.getMockRepository(), null, null, null, null, peerServer, null, null, null);
}
Also used : ChannelManager(org.ethereum.net.server.ChannelManager) EthModuleSolidityDisabled(co.rsk.rpc.modules.eth.EthModuleSolidityDisabled) Web3RskImpl(co.rsk.rpc.Web3RskImpl) TxPoolModuleImpl(co.rsk.rpc.modules.txpool.TxPoolModuleImpl) PersonalModuleWalletEnabled(co.rsk.rpc.modules.personal.PersonalModuleWalletEnabled) EthModuleWalletEnabled(co.rsk.rpc.modules.eth.EthModuleWalletEnabled) MinerClient(co.rsk.mine.MinerClient) EthModule(co.rsk.rpc.modules.eth.EthModule) ExecutionBlockRetriever(co.rsk.rpc.ExecutionBlockRetriever) TxPoolModule(co.rsk.rpc.modules.txpool.TxPoolModule)

Aggregations

EthModule (co.rsk.rpc.modules.eth.EthModule)6 EthModuleSolidityDisabled (co.rsk.rpc.modules.eth.EthModuleSolidityDisabled)6 EthModuleWalletEnabled (co.rsk.rpc.modules.eth.EthModuleWalletEnabled)6 TxPoolModule (co.rsk.rpc.modules.txpool.TxPoolModule)6 TxPoolModuleImpl (co.rsk.rpc.modules.txpool.TxPoolModuleImpl)6 ExecutionBlockRetriever (co.rsk.rpc.ExecutionBlockRetriever)5 Web3RskImpl (co.rsk.rpc.Web3RskImpl)5 PersonalModuleWalletEnabled (co.rsk.rpc.modules.personal.PersonalModuleWalletEnabled)5 RskSystemProperties (co.rsk.config.RskSystemProperties)3 PersonalModule (co.rsk.rpc.modules.personal.PersonalModule)3 Wallet (co.rsk.core.Wallet)2 MinerClient (co.rsk.mine.MinerClient)2 ChannelManager (org.ethereum.net.server.ChannelManager)2 Test (org.junit.Test)2 NetworkStateExporter (co.rsk.core.NetworkStateExporter)1 Rsk (co.rsk.core.Rsk)1 PersonalModuleWalletDisabled (co.rsk.rpc.modules.personal.PersonalModuleWalletDisabled)1 World (co.rsk.test.World)1 SystemProperties (org.ethereum.config.SystemProperties)1 Block (org.ethereum.core.Block)1