Ejemplo n.º 1
0
 public CirrusMongoData(
     ILogger <MongoDb> dbLogger,
     SyncConnection connection,
     IOptions <ChainSettings> chainConfiguration,
     GlobalState globalState,
     IMapMongoBlockToStorageBlock mongoBlockToStorageBlock,
     ICryptoClientFactory clientFactory,
     IScriptInterpeter scriptInterpeter,
     IMongoDatabase mongoDatabase,
     ICirrusMongoDb db,
     IComputeSmartContractService <NonFungibleTokenComputedTable> smartContractService)
     : base(
         dbLogger,
         connection,
         chainConfiguration,
         globalState,
         mongoBlockToStorageBlock,
         clientFactory,
         scriptInterpeter,
         mongoDatabase,
         db)
 {
     mongoDb = db;
     this.smartContractService = smartContractService;
 }
Ejemplo n.º 2
0
        public MongoData(ILogger <MongoDb> dbLogger, SyncConnection connection, IOptions <ChainSettings> chainConfiguration,
                         GlobalState globalState, IMapMongoBlockToStorageBlock mongoBlockToStorageBlock, ICryptoClientFactory clientFactory,
                         IScriptInterpeter scriptInterpeter, IMongoDatabase mongoDatabase, IMongoDb db)
        {
            log = dbLogger;
            this.chainConfiguration = chainConfiguration.Value;
            this.globalState        = globalState;
            syncConnection          = connection;

            this.mongoBlockToStorageBlock = mongoBlockToStorageBlock;
            this.clientFactory            = clientFactory;
            this.scriptInterpeter         = scriptInterpeter;
            this.mongoDatabase            = mongoDatabase;
            mongoDb = db;
        }
 public MongoStorageOperations(
     SyncConnection syncConnection,
     IMongoDb storage,
     IUtxoCache utxoCache,
     IOptions <IndexerSettings> configuration,
     GlobalState globalState,
     IMapMongoBlockToStorageBlock mongoBlockToStorageBlock,
     IScriptInterpeter scriptInterpeter,
     IStorage storage1)
 {
     this.syncConnection           = syncConnection;
     this.globalState              = globalState;
     this.scriptInterpeter         = scriptInterpeter;
     this.storage                  = storage1;
     this.mongoBlockToStorageBlock = mongoBlockToStorageBlock;
     this.configuration            = configuration.Value;
     db = storage;
 }
 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;
 }