Line data Source code
1 : /*
2 : * Package : Ethereum
3 : * Author : S. Hamblett <steve.hamblett@linux.com>
4 : * Date : 06/011/2017
5 : * Copyright : S.Hamblett
6 : *
7 : * An instance of Ethereum specialised for use in the server.
8 : */
9 :
10 : library ethereum_server_client;
11 :
12 : import 'dart:io';
13 : import 'dart:async';
14 : import 'dart:convert';
15 : import 'package:ethereum/ethereum.dart';
16 :
17 : part 'src/adapters/ethereum_server_http_adapter.dart';
18 :
19 : class EthereumServerClient extends Ethereum {
20 : static EthereumServerHTTPAdapter serverHttpAdapter =
21 : new EthereumServerHTTPAdapter();
22 :
23 2 : EthereumServerClient() : super(serverHttpAdapter);
24 :
25 : EthereumServerClient.withConnectionParameters(hostname, [port])
26 1 : : super.withConnectionParameters(
27 1 : serverHttpAdapter, hostname, Ethereum.rpcHttpScheme, port);
28 : }
|