Hierarchy

  • CacheManager

Constructors

  • Parameters

    • indexer: indexer.Indexer
    • publicKey: string
    • chainCode: string
    • infos: LockScriptMappingInfo[] = ...
    • __namedParameters: {
          TransactionCollector: typeof indexer.TransactionCollector;
          livenessCheckIntervalSeconds?: number;
          logger?: ((level, message) => void);
          pollIntervalSeconds?: number;
          rpc?: RPC;
      }
      • TransactionCollector: typeof indexer.TransactionCollector
      • Optional livenessCheckIntervalSeconds?: number
      • Optional logger?: ((level, message) => void)
          • (level, message): void
          • Parameters

            • level: string
            • message: string

            Returns void

      • Optional pollIntervalSeconds?: number
      • Optional rpc?: RPC
    • Optional masterPublicKey: string

    Returns CacheManager

Properties

cache: Cache
isRunning: boolean
livenessCheckIntervalSeconds: number
logger: ((level, message) => void)

Type declaration

    • (level, message): void
    • Parameters

      • level: string
      • message: string

      Returns void

pollIntervalSeconds: number

Methods

  • Returns Map<string, Cell>

  • Returns Promise<void>

  • Returns boolean

  • Returns void

  • Returns void

  • Returns void

  • Returns void

  • Parameters

    • indexer: indexer.Indexer
    • mnemonic: string
    • infos: LockScriptMappingInfo[] = ...
    • options: {
          TransactionCollector: typeof indexer.TransactionCollector;
          livenessCheckIntervalSeconds?: number;
          logger?: ((level, message) => void);
          needMasterPublicKey?: boolean;
          pollIntervalSeconds?: number;
          rpc?: RPC;
      }
      • TransactionCollector: typeof indexer.TransactionCollector
      • Optional livenessCheckIntervalSeconds?: number
      • Optional logger?: ((level, message) => void)
          • (level, message): void
          • Parameters

            • level: string
            • message: string

            Returns void

      • Optional needMasterPublicKey?: boolean
      • Optional pollIntervalSeconds?: number
      • Optional rpc?: RPC

    Returns CacheManager

  • Load from keystore, if needMasterPublicKey set to true or origin = "ckb-cli", will enable masterPublicKey

    Parameters

    • indexer: indexer.Indexer
    • path: string
    • password: string
    • infos: LockScriptMappingInfo[] = ...
    • options: {
          TransactionCollector: typeof indexer.TransactionCollector;
          livenessCheckIntervalSeconds?: number;
          logger?: ((level, message) => void);
          needMasterPublicKey?: boolean;
          pollIntervalSeconds?: number;
          rpc?: RPC;
      }
      • TransactionCollector: typeof indexer.TransactionCollector
      • Optional livenessCheckIntervalSeconds?: number
      • Optional logger?: ((level, message) => void)
          • (level, message): void
          • Parameters

            • level: string
            • message: string

            Returns void

      • Optional needMasterPublicKey?: boolean
      • Optional pollIntervalSeconds?: number
      • Optional rpc?: RPC

    Returns CacheManager

Generated using TypeDoc