Import & adapt iden/go-iden3-core/eth/client

This commit is contained in:
arnaucube
2020-08-24 11:19:39 +02:00
parent c2bbca4af3
commit b33d18ff55
14 changed files with 275 additions and 53 deletions

View File

@@ -29,14 +29,14 @@ type Coordinator struct {
txsel *txselector.TxSelector
batchBuilder *batchbuilder.BatchBuilder
ethClient *eth.EthClient
ethClient *eth.Client
ethTxStore kvdb.Storage
}
// NewCoordinator creates a new Coordinator
func NewCoordinator() *Coordinator { // once synchronizer is ready, synchronizer.Synchronizer will be passed as parameter here
var c *Coordinator
c.ethClient = eth.NewEthClient() // TBD
// c.ethClient = eth.NewClient() // TBD
c.ethTxStore = memory.NewMemoryStorage()
return c
}