solgen
Version:
A TypeScript SDK generator for Solana IDL - Automatically generates type definitions, account interfaces, and instruction builders
10 lines (7 loc) • 544 B
TypeScript
import { Idl } from '@coral-xyz/anchor';
import { Project } from 'ts-morph';
declare function genErrors(project: Project, idl: Idl, outPath: (path: string) => string): void;
declare function genIndex(project: Project, idl: Idl, outPath: (path: string) => string): void;
declare function genCustomErrors(project: Project, idl: Idl, outPath: (path: string) => string): void;
declare function genAnchorErrors(project: Project, idl: Idl, outPath: (path: string) => string): void;
export { genAnchorErrors, genCustomErrors, genErrors, genIndex };