MCPcopy Create free account
hub / github.com/DOSNetwork/core / ethAdaptor

Struct ethAdaptor

onchain/eth_proxy.go:38–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38type 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
63func NewEthAdaptor(key *keystore.Key, config *configuration.Config, l logger) (adaptor *ethAdaptor, err error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected