UNPKG

@honeycomb-protocol/solita

Version:

Generates SDK API from solana contract IDL.

6 lines (5 loc) 519 B
/// <reference types="node" /> import { PathLike } from 'fs'; import { ForceFixable } from './type-mapper'; import { IdlInstruction, PrimitiveTypeKey } from './types'; export declare function renderInstruction(ix: IdlInstruction, fullFileDir: PathLike, programId: string, accountFilesByType: Map<string, string>, customFilesByType: Map<string, string>, externalPackagesByType: Map<string, string>, typeAliases: Map<string, PrimitiveTypeKey>, forceFixable: ForceFixable, renderAnchorRemainingAccounts: boolean): string;