@libertasinception/oracle
v0.1.0
Published
Oracle Fabric Inception (OFI) client — price feeds, operator registration, trust scoring, and dispute resolution
Maintainers
Readme
@libertasinception/oracle
Oracle Fabric Inception (OFI) client — price feeds, operator registration, trust scoring, and dispute resolution
Installation
npm install @libertasinception/oracleQuick Start
import { OracleClient } from "@libertasinception/oracle";
const oracle = new OracleClient(httpClient);
const feeds = await oracle.listFeeds();
const btc = await oracle.getFeed("BTC/USD");
await oracle.register({ moniker: "my-oracle", commission: 0.05, feedTypes: ["crypto"] });
await oracle.submitFeed({ pair: "BTC/USD", price: "67542.50", sources: ["binance", "coinbase"] });
const status = await oracle.operatorStatus("my-oracle");Features
- Price feed queries (crypto, forex, commodities)
- Oracle operator registration with staking
- Feed submission with source attestation
- Trust scoring system
- Dispute resolution
- Quorum status monitoring
- Drift alert configuration
API Reference
Classes
OracleClient
Types
OracleFeedFeedMetadataOperatorRegistrationFeedSubmissionDisputeResponseTrustScoreQuorumStatus
Dependencies
@libertasinception/corezod
Requirements
- Node.js >= 18.0.0
- TypeScript >= 5.7 (recommended)
Links
License
MIT - see LICENSE for details.
