UNPKG

@pod-protocol/cli

Version:
73 lines 2.07 kB
/** * Wallet Adapter Utilities for ZK Compression * Provides safe wallet operations and mock functionality for development */ export interface WalletAdapter { address: { toString(): string; }; signTransactions(txs: any[]): Promise<any[]>; signTransaction(tx: any): Promise<any>; } export interface TreeConfig { maxDepth: number; maxBufferSize: number; canopyDepth: number; wallet: string; } export interface MintConfig { leafOwner: string; merkleTree: string; metadata: { name: string; symbol: string; uri: string; sellerFeeBasisPoints: number; }; } export interface TransferConfig { assetWithProof: { asset: { id: string; }; proof: string[]; }; leafOwner: string; newLeafOwner: string; } export interface UmiOperations { createTree(config: TreeConfig): Promise<{ publicKey: string; sendAndConfirm(): Promise<{ signature: string; }>; }>; mintV1(config: MintConfig): Promise<{ sendAndConfirm(): Promise<{ signature: string; }>; }>; transfer(config: TransferConfig): Promise<{ sendAndConfirm(): Promise<{ signature: string; }>; }>; getAssetWithProof(assetId: string): Promise<{ asset: any; proof: string[]; }>; } export declare function isDevelopmentMode(): boolean; export declare function createSafeUmiOperations(wallet: WalletAdapter, endpoint: string): { umi: any; operations: UmiOperations; }; export declare const mockUmiOperations: UmiOperations; export declare function loadWalletFromFile(keypairPath?: string): WalletAdapter; export declare function validateTreeConfig(config: TreeConfig): { valid: boolean; errors: string[]; }; export declare function calculateTreeCapacity(maxDepth: number): number; export declare function calculateTreeStorageCost(maxDepth: number, maxBufferSize: number, canopyDepth: number): number; //# sourceMappingURL=wallet-adapter.d.ts.map