@honeycomb-protocol/solita
Version:
Generates SDK API from solana contract IDL.
15 lines (14 loc) • 933 B
TypeScript
/// <reference types="node" />
import { PathLike } from 'fs';
import { ForceFixable } from './type-mapper';
import { IdlDefinedTypeDefinition, PrimitiveTypeKey } from './types';
export declare function beetVarNameFromTypeName(ty: string): string;
/**
* Performs parts of the render process that is necessary to determine if the
* type is fixed or fixable.
*/
export declare function determineTypeIsFixable(ty: IdlDefinedTypeDefinition, fullFileDir: PathLike, accountFilesByType: Map<string, string>, customFilesByType: Map<string, string>, externalPackagessByType: Map<string, string>): boolean;
export declare function renderType(ty: IdlDefinedTypeDefinition, fullFileDir: PathLike, accountFilesByType: Map<string, string>, customFilesByType: Map<string, string>, externalPackagesByType: Map<string, string>, typeAliases: Map<string, PrimitiveTypeKey>, forceFixable: ForceFixable): {
code: string;
isFixable: boolean;
};