0.24.1 • Published 4 months ago
@node-dlc/leveldb v0.24.1
@node-dlc/leveldb
LevelDB package for DLC message and transaction storage.
Overview
This package provides a LevelDB-based storage layer for DLC (Discreet Log Contract) operations. It uses the classic-level
library to provide a Node.js interface to LevelDB.
Installation
npm install @node-dlc/leveldb
Usage
The package provides several store classes for different types of data:
LeveldbDlcStore
- For DLC offers, accepts, signs, cancels, closes, and transactionsLeveldbOracleStore
- For oracle events and identifiersLeveldbOrderStore
- For order offers and acceptsLeveldbWalletStore
- For wallet seed and address cache storageLeveldbIrcStore
- For IRC-related DLC dataLeveldbInfoStore
- For DLC statistics and infoLeveldbGossipStore
- For gossip protocol data
Each store extends the base LeveldbBase
class which provides common database operations.