diff options
author | Felix Lange <fjl@twurst.com> | 2016-08-10 06:01:13 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2016-08-10 06:01:13 +0800 |
commit | 46621fd2c3e06d3e5932afe29a6e7e4016a16635 (patch) | |
tree | 58fe54b718480af2cb8e61b6e441456a688fec02 /ethclient/ethclient_test.go | |
parent | 8d9141ed9a3dec321ffd184a039d1959c3257ddd (diff) | |
download | dexon-46621fd2c3e06d3e5932afe29a6e7e4016a16635.tar.gz dexon-46621fd2c3e06d3e5932afe29a6e7e4016a16635.tar.zst dexon-46621fd2c3e06d3e5932afe29a6e7e4016a16635.zip |
ethclient: add initial implementation of the typed RPC client
ethclient implements the proposed Ethereum Go API. There are no tests at
the moment, a suite that excercises all implementations of the API will
be added later.
Diffstat (limited to 'ethclient/ethclient_test.go')
-rw-r--r-- | ethclient/ethclient_test.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ethclient/ethclient_test.go b/ethclient/ethclient_test.go new file mode 100644 index 000000000..47e37c0ce --- /dev/null +++ b/ethclient/ethclient_test.go @@ -0,0 +1,17 @@ +package ethclient + +import "github.com/ethereum/go-ethereum" + +// Verify that Client implements the ethereum interfaces. +var ( + _ = ethereum.ChainReader(&Client{}) + _ = ethereum.ChainStateReader(&Client{}) + _ = ethereum.ChainHeadEventer(&Client{}) + _ = ethereum.ContractCaller(&Client{}) + _ = ethereum.GasEstimator(&Client{}) + _ = ethereum.GasPricer(&Client{}) + _ = ethereum.LogFilterer(&Client{}) + _ = ethereum.PendingStateReader(&Client{}) + // _ = ethereum.PendingStateEventer(&Client{}) + _ = ethereum.PendingContractCaller(&Client{}) +) |