indexed-finance / circuit-breaker

MIT License
5 stars 2 forks source link

Codebase Refactor & Simplification #24

Closed bonedaddy closed 3 years ago

bonedaddy commented 3 years ago

Overview

I used some patterns here to workaround some inconsistencies that go-ethereum simulated backend had with regards to the interface it satisfies and the interface that ethclient has. Since the circuit breaker was first released go-ethereum published an update which resolved these inconsistencies. Accomodating these inconsistencies let to some awkward code for easier testing which can now be removed.

Changes