op-geth/eth
Felix Lange d62d5fe59a accounts/abi/bind: use ethereum interfaces
In this commit, contract bindings and their backend start using the
Ethereum Go API interfaces offered by ethclient. This makes ethclient a
suitable replacement for the old remote backend and gets us one step
closer to the final stable Go API that is planned for go-ethereum 1.5.

The changes in detail:

* Pending state is optional for read only contract bindings.
  BoundContract attempts to discover the Pending* methods via an
  interface assertion. There are a couple of advantages to this:
  ContractCaller is just two methods and can be implemented on top of
  pretty much anything that provides Ethereum data. Since the backend
  interfaces are now disjoint, ContractBackend can simply be declared as
  a union of the reader and writer side.

* Caching of HasCode is removed. The caching could go wrong in case of
  chain reorganisations and removing it simplifies the code a lot.
  We'll figure out a performant way of providing ErrNoCode before the
  1.5 release.

* BoundContract now ensures that the backend receives a non-nil context
  with every call.
2016-08-22 14:01:28 +02:00
..
downloader rpc: refactor subscriptions and filters 2016-08-17 12:59:58 +02:00
fetcher eth/fetcher: small typo fix (#2932) 2016-08-23 18:23:34 +03:00
filters rpc: refactor subscriptions and filters 2016-08-17 12:59:58 +02:00
gasprice eth: separate common and full node-specific API and backend service 2016-06-16 17:36:38 +02:00
api.go core/vm, eth: Add support for javascript trace functions 2016-08-23 15:06:39 +01:00
api_backend.go cmd, common, console, eth, release: drop redundant "full"s 2016-06-30 13:03:26 +03:00
backend.go common/compiler: simplify solc wrapper 2016-08-17 17:39:04 +02:00
backend_test.go accounts, core, eth: pass chain config for chain maker to test DAO 2016-07-15 16:52:55 +03:00
bad_block.go eth: enable bad block reports 2016-05-25 02:02:51 +02:00
bind.go accounts/abi/bind: use ethereum interfaces 2016-08-22 14:01:28 +02:00
cpu_mining.go cmd, common, console, eth, release: drop redundant "full"s 2016-06-30 13:03:26 +03:00
db_upgrade.go eth: fixed chaindb upgrade 2016-07-19 14:32:38 +02:00
gpu_mining.go cmd, common, console, eth, release: drop redundant "full"s 2016-06-30 13:03:26 +03:00
handler.go Merge pull request #2867 from karalabe/dao-challenge-finish 2016-08-09 11:39:13 +03:00
handler_test.go eth, eth/downloader, eth/fetcher: delete eth/61 code 2016-07-22 13:17:19 +02:00
helper_test.go accounts, core, eth: pass chain config for chain maker to test DAO 2016-07-15 16:52:55 +03:00
metrics.go eth, eth/downloader, eth/fetcher: delete eth/61 code 2016-07-22 13:17:19 +02:00
peer.go eth, eth/downloader: better remote head tracking 2016-07-25 15:14:14 +03:00
protocol.go eth, eth/downloader, eth/fetcher: delete eth/61 code 2016-07-22 13:17:19 +02:00
protocol_test.go eth, eth/downloader, eth/fetcher: delete eth/61 code 2016-07-22 13:17:19 +02:00
sync.go eth, eth/downloader: better remote head tracking 2016-07-25 15:14:14 +03:00
sync_test.go eth: skip transaction handling during fast sync 2016-05-17 14:17:20 +03:00