Function interbtc_rpc::eth::create_eth
source · pub fn create_eth<C, BE, P, A, CT, B, EC: EthConfig<B, C>>(
io: RpcModule<()>,
deps: EthDeps<C, P, A, CT, B>,
subscription_task_executor: SubscriptionTaskExecutor,
pubsub_notification_sinks: Arc<EthereumBlockNotificationSinks<EthereumBlockNotification<B>>>
) -> Result<RpcModule<()>, Box<dyn Error + Send + Sync>>where
B: BlockT<Hash = H256>,
C: CallApiAt<B> + ProvideRuntimeApi<B> + BlockchainEvents<B> + 'static + HeaderBackend<B> + HeaderMetadata<B, Error = BlockChainError> + StorageProvider<B, BE>,
C::Api: BlockBuilderApi<B> + ConvertTransactionRuntimeApi<B> + EthereumRuntimeRPCApi<B>,
BE: Backend<B> + 'static,
P: TransactionPool<Block = B> + 'static,
A: ChainApi<Block = B> + 'static,
CT: ConvertTransaction<<B as BlockT>::Extrinsic> + Send + Sync + 'static,
Expand description
Instantiate Ethereum-compatible RPC extensions.