/** * Opacus 0G Chain Integration * Smart contract interaction for DAC and Agent registry */ import { OpacusConfig, DACConfig, AgentIdentity, DataChannel, ChainInfo } from '../types'; export declare const OG_NETWORKS: Record; export declare class OGChainClient { private provider; private signer?; private network; private dacRegistry?; private agentRegistry?; private dataStream?; private escrow?; constructor(config: OpacusConfig); /** * Initialize contract instances */ initContracts(addresses: { dacRegistry: string; agentRegistry: string; dataStream: string; escrow: string; }): Promise; /** * Register agent on-chain */ registerAgent(identity: AgentIdentity, metadata: string): Promise; /** * Get agent from chain */ getAgent(agentId: string): Promise; /** * Register DAC on-chain */ registerDAC(config: DACConfig): Promise; /** * Get DAC from chain */ getDAC(dacId: string): Promise; /** * Open data channel on-chain */ openDataChannel(dacId: string, channel: DataChannel): Promise; /** * Lock funds in escrow */ lockEscrow(lockId: string, payee: string, amount: bigint): Promise; /** * Release escrow funds */ releaseEscrow(lockId: string): Promise; /** * Get account balance */ getBalance(address?: string): Promise; /** * Send micro-payment (as low as 0.00001 A0GI) * * Perfect for: * - Pay-per-message pricing (0.00001 A0GI per message) * - Micro-subscriptions (0.0001 A0GI per day) * - AI agent micropayments * - Data stream per-byte pricing */ sendMicroPayment(to: string, amountInA0GI: string): Promise<{ txHash: string; from: string; to: string; amount: string; gasUsed: bigint; effectiveCost: string; }>; /** * Estimate cost of micro-payment */ estimateMicroPaymentCost(amountInA0GI: string): Promise<{ transferAmount: string; estimatedGas: bigint; estimatedGasCost: string; totalCost: string; }>; /** * Send batch micro-payments (gas optimization) * Useful for paying multiple agents simultaneously */ sendBatchMicroPayments(payments: Array<{ to: string; amount: string; }>): Promise<{ txHash: string; totalAmount: string; recipients: number; gasUsed: bigint; }>; /** * Get chain ID */ getChainId(): Promise; /** * Get network info */ getNetworkInfo(): ChainInfo; } //# sourceMappingURL=0g.d.ts.map