aboutsummaryrefslogtreecommitdiffstats
path: root/ethclient/ethclient_test.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-08-10 06:01:13 +0800
committerFelix Lange <fjl@twurst.com>2016-08-10 06:01:13 +0800
commit46621fd2c3e06d3e5932afe29a6e7e4016a16635 (patch)
tree58fe54b718480af2cb8e61b6e441456a688fec02 /ethclient/ethclient_test.go
parent8d9141ed9a3dec321ffd184a039d1959c3257ddd (diff)
downloadgo-tangerine-46621fd2c3e06d3e5932afe29a6e7e4016a16635.tar
go-tangerine-46621fd2c3e06d3e5932afe29a6e7e4016a16635.tar.gz
go-tangerine-46621fd2c3e06d3e5932afe29a6e7e4016a16635.tar.bz2
go-tangerine-46621fd2c3e06d3e5932afe29a6e7e4016a16635.tar.lz
go-tangerine-46621fd2c3e06d3e5932afe29a6e7e4016a16635.tar.xz
go-tangerine-46621fd2c3e06d3e5932afe29a6e7e4016a16635.tar.zst
go-tangerine-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.go17
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{})
+)