@chain-lens/shared

v0.0.4

Published

Shared types, ABIs, addresses, and task-type registry for ChainLens (Type 2 MVP).

Readme

@chain-lens/shared

Shared TypeScript types, contract ABIs, deployed addresses, chain configs, and task-type registry for ChainLens — a Web2-data relay market for autonomous agents on Base.

Used internally by:

  • @chain-lens/mcp-tool — MCP client for Claude Desktop
  • @chain-lens/backend — gateway service
  • @chain-lens/frontend — marketplace UI

Install

npm install @chain-lens/shared

Usage

import {
  ApiMarketEscrowV2Abi,
  SellerRegistryAbi,
  baseSepolia,
  INITIAL_TASK_TYPE_NAMES,
  PaymentStatus,
} from "@chain-lens/shared";

Exports include:

  • ABIsApiMarketEscrowV2Abi, SellerRegistryAbi, TaskTypeRegistryAbi
  • AddressesESCROW_V2_ADDRESS, SELLER_REGISTRY_ADDRESS, TASK_TYPE_REGISTRY_ADDRESS, USDC_ADDRESS (Base Sepolia)
  • ChainsbaseSepolia, baseMainnet (viem Chain objects)
  • Task typesINITIAL_TASK_TYPE_NAMES, schemas, OnChainTaskTypeConfig
  • TypesPaymentStatus, ApiStatus, ApiListingPublic, PreparePaymentResponse

License

MIT