UNPKG

@honeycomb-protocol/solita

Version:

Generates SDK API from solana contract IDL.

12 lines (11 loc) 413 B
import { TypeMapper } from './type-mapper'; import { IdlInstruction, IdlInstructionArg } from './types'; export declare class InstructionDiscriminator { private readonly ix; private readonly fieldName; private readonly typeMapper; constructor(ix: IdlInstruction, fieldName: string, typeMapper: TypeMapper); renderValue(): string; getField(): IdlInstructionArg; renderType(): string; }