/** * Bulletin Chain Service * * Posts immutable payment records to Polkadot Bulletin Chain for: * - Payment receipts (permanent proof of transaction) * - Merchant reputation tracking * - Dispute records and resolution * - Audit trail * * More info: https://github.com/paritytech/polkadot-bulletin-chain */ import type { BulletinConfig, PaymentReceipt, MerchantReputation, DisputeRecord } from '../types/bulletin.types'; export declare class BulletinService { private api; private config; private enabled; private static readonly DEFAULT_RPC; constructor(config?: BulletinConfig); /** * Connect to Bulletin Chain */ connect(): Promise; /** * Post payment receipt to Bulletin Chain * * Creates immutable proof of payment completion */ postPaymentReceipt(receipt: PaymentReceipt, _signerAddress: string): Promise; /** * Post merchant reputation update * * Updates merchant's reputation score on-chain */ postMerchantReputation(reputation: MerchantReputation, _signerAddress: string): Promise; /** * Post dispute record * * Creates immutable record of payment dispute */ postDisputeRecord(dispute: DisputeRecord, _signerAddress: string): Promise; /** * Query payment receipts for a specific payment ID * * Note: This requires an indexer in production * For now, returns empty array as placeholder */ getPaymentReceipts(paymentId: string): Promise; /** * Query merchant reputation history * * Note: Requires indexer in production */ getMerchantReputation(merchantAddress: string): Promise; /** * Check if Bulletin Chain is connected */ isConnected(): boolean; /** * Disconnect from Bulletin Chain */ disconnect(): Promise; /** * Enable/disable Bulletin posting */ setEnabled(enabled: boolean): void; } //# sourceMappingURL=bulletin.service.d.ts.map