1. 23 3月, 2017 1 次提交
    • F
      all: import "context" instead of "golang.org/x/net/context" · c213fd1f
      Felix Lange 提交于
      There is no need to depend on the old context package now that the
      minimum Go version is 1.7. The move to "context" eliminates our weird
      vendoring setup. Some vendored code still uses golang.org/x/net/context
      and it is now vendored in the normal way.
      
      This change triggered new vet checks around context.WithTimeout which
      didn't fire with golang.org/x/net/context.
      c213fd1f
  2. 09 11月, 2016 1 次提交
  3. 23 8月, 2016 1 次提交
    • F
      accounts/abi/bind: add utilities for waiting on transactions · c97df052
      Felix Lange 提交于
      The need for these functions comes up in code that actually deploys and
      uses contracts. As of this commit, they can be used with both
      SimulatedBackend and ethclient.
      
      SimulatedBackend gains some additional methods in the process and is now
      safe for concurrent use.
      c97df052
  4. 22 8月, 2016 1 次提交
    • F
      accounts/abi/bind: use ethereum interfaces · d62d5fe5
      Felix Lange 提交于
      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.
      d62d5fe5
  5. 16 6月, 2016 1 次提交
  6. 20 5月, 2016 1 次提交
  7. 02 5月, 2016 1 次提交
  8. 27 4月, 2016 1 次提交
  9. 24 3月, 2016 3 次提交