Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | 36x 36x 36x 31x 31x 31x 10x 10x | import { Cardano, UtxoByAddressesArgs, UtxoProvider } from '@cardano-sdk/core';
import { DbSyncProvider, DbSyncProviderDependencies } from '../../util/DbSyncProvider';
import { UtxoBuilder } from './UtxoBuilder';
export class DbSyncUtxoProvider extends DbSyncProvider() implements UtxoProvider {
#builder: UtxoBuilder;
constructor({ cache, dbPools, cardanoNode, logger }: DbSyncProviderDependencies) {
super({ cache, cardanoNode, dbPools, logger });
this.#builder = new UtxoBuilder(dbPools.main, logger);
}
public async utxoByAddresses({ addresses }: UtxoByAddressesArgs): Promise<Cardano.Utxo[]> {
this.logger.debug('About to call utxoByAddress of Utxo Query Builder');
return this.#builder.utxoByAddresses(addresses);
}
}
|