New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@ocap/indexdb

Package Overview
Dependencies
Maintainers
3
Versions
599
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ocap/indexdb

Defines the basic interface for OCAP IndexDB

latest
npmnpm
Version
1.29.24
Version published
Weekly downloads
612
-18.18%
Maintainers
3
Weekly downloads
 
Created
Source

OCAP IndexDB

Defines the abstract interface of OCAP IndexDB, must be implemented with an actual statedb, please checkout following packages:

  • @ocap/indexdb-memory
  • @ocap/indexdb-elasticsearch

Usage

bun install @ocap/statedb-memory

Then:

const MemoryIndexDB = require('@ocap/indexdb-memory').default;

const indexdb = new MemoryIndexDB();

indexdb.account.create(address, attrs, context);
indexdb.account.get(address);
indexdb.account.update(address, updates, context);

indexdb.asset.create(address, attrs, context);
indexdb.asset.get(address);
indexdb.asset.update(address, updates, context);

indexdb.tx.create(hash, attrs, context);
indexdb.tx.get(hash);
indexdb.tx.find(conditions);

FAQs

Package last updated on 01 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts