@line-stack/cdr-core
v0.1.1
Published
Line Stack wrapper for Story Confidential Data Rails (@piplabs/cdr-sdk)
Maintainers
Readme
@line-stack/cdr-core
Production-oriented wrapper around @piplabs/cdr-sdk v0.2.1 for Story Aeneid testnet.
Verified configuration
- RPC:
https://aeneid.storyrpc.io(chain ID1315) - Story-API REST:
http://172.192.41.96:1317(requiredapiUrlfor DKG reads)
See Story CDR setup.
Usage
import { createLineStackCdrClient, initLineStackCdr, loadConfigFromEnv } from "@line-stack/cdr-core";
const config = loadConfigFromEnv();
await initLineStackCdr();
const { client, publicClient } = createLineStackCdrClient({ config });
const fee = await client.observer.getAllocateFee();Tests
bun run test # unit only
RUN_CDR_INTEGRATION=1 WALLET_PRIVATE_KEY=0x... bun run test:integrationIntegration tests send real Aeneid transactions and cost testnet gas.
