/** * Polkadot Chain Adapter * * Builds Polkadot extrinsics using SCALE codec, attaches Ed25519 * signatures from the FROST threshold signing network, and broadcasts * via Polkadot JSON RPC. * * Uses Ed25519 key type (not sr25519) for FROST compatibility. * * Requires: npm install @polkadot/api */ import { ChainAdapter, PolkadotTransaction } from '../core/types'; export declare class PolkadotAdapter implements ChainAdapter { private rpcUrl; private network; private polkadotApi; constructor(network?: 'mainnet' | 'westend' | 'kusama', rpcUrl?: string); getRpcUrl(): string; /** * Build an unsigned Polkadot balance transfer extrinsic. * * The signing payload is SCALE-encoded ExtrinsicPayload. * If payload > 256 bytes, it's hashed with Blake2b-256 before signing. */ buildTransaction(tx: PolkadotTransaction, fromAddress: string): Promise; getSigningPayload(unsignedTx: string): string; /** * Attach an Ed25519 signature to the Polkadot extrinsic */ attachSignature(unsignedTx: string, signature: string): Promise; /** * Broadcast a signed Polkadot extrinsic */ broadcast(signedTx: string): Promise; /** * Get DOT balance in planck */ getBalance(address: string): Promise; } export declare function createPolkadotAdapter(rpcUrl?: string): PolkadotAdapter; export declare function createKusamaAdapter(rpcUrl?: string): PolkadotAdapter; export declare function createPolkadotWestendAdapter(rpcUrl?: string): PolkadotAdapter; //# sourceMappingURL=polkadot.d.ts.map