public NftComputationService(ILogger <NftComputationService> logger, ICirrusMongoDb mongoDb, ISmartContractHandlersFactory <NonFungibleTokenComputedTable> logReaderFactory, ICryptoClientFactory clientFactory, SyncConnection connection) { this.logger = logger; this.mongoDb = mongoDb; this.logReaderFactory = logReaderFactory; cirrusClient = (CirrusClient)clientFactory.Create(connection); }
public ComputeSmartContractService(ILogger <ComputeSmartContractService <T> > logger, ICirrusMongoDb db, ISmartContractHandlersFactory <T> logReaderFactory, ICryptoClientFactory clientFactory, SyncConnection connection, IMongoDatabase mongoDatabase) { this.logger = logger; mongoDb = db; this.logReaderFactory = logReaderFactory; this.mongoDatabase = mongoDatabase; cirrusClient = (CirrusClient)clientFactory.Create(connection); emptyContract = new T(); }
public CirrusMongoStorageOperations( SyncConnection syncConnection, IStorage storage, IUtxoCache utxoCache, IOptions <IndexerSettings> configuration, GlobalState globalState, IMapMongoBlockToStorageBlock mongoBlockToStorageBlock, IScriptInterpeter scriptInterpeter, ICryptoClientFactory clientFactory, ICirrusMongoDb db) : base( syncConnection, db, utxoCache, configuration, globalState, mongoBlockToStorageBlock, scriptInterpeter, storage) { this.clientFactory = clientFactory; cirrusClient = this.clientFactory.Create(syncConnection) as CirrusClient; cirrusdDb = db; }