| 36 | } |
| 37 | |
| 38 | type ethAdaptor struct { |
| 39 | logger |
| 40 | bridgeAddr common.Address |
| 41 | proxyAddr common.Address |
| 42 | commitRevealAddr common.Address |
| 43 | bootStrapUrl string |
| 44 | httpUrls []string |
| 45 | wsUrls []string |
| 46 | key *keystore.Key |
| 47 | gasPrice int64 |
| 48 | gasLimit int64 |
| 49 | connTimeout time.Duration |
| 50 | getTimeout time.Duration |
| 51 | setTimeout time.Duration |
| 52 | proxies []*dosproxy.DosproxySession |
| 53 | crs []*commitreveal.CommitrevealSession |
| 54 | clients []*ethclient.Client |
| 55 | ctxes []context.Context |
| 56 | cancels []context.CancelFunc |
| 57 | ctx context.Context |
| 58 | cancelFunc context.CancelFunc |
| 59 | reqQueue chan *request |
| 60 | } |
| 61 | |
| 62 | //NewEthAdaptor creates an eth implemention of ProxyAdapter |
| 63 | func NewEthAdaptor(key *keystore.Key, config *configuration.Config, l logger) (adaptor *ethAdaptor, err error) { |
nothing calls this directly
no outgoing calls
no test coverage detected