UNPKG

@honeycomb-protocol/solita

Version:

Generates SDK API from solana contract IDL.

7 lines (6 loc) 644 B
/// <reference types="node" /> import { PathLike } from 'fs'; import { CustomSerializers } from './serializers'; import { ForceFixable } from './type-mapper'; import { IdlAccount, PrimitiveTypeKey, ResolveFieldType } from './types'; export declare function renderAccount(account: IdlAccount, fullFileDir: PathLike, accountFilesByType: Map<string, string>, customFilesByType: Map<string, string>, externalPackagesByType: Map<string, string>, typeAliases: Map<string, PrimitiveTypeKey>, serializers: CustomSerializers, forceFixable: ForceFixable, programId: string, resolveFieldType: ResolveFieldType, hasImplicitDiscriminator: boolean): string;