Function convertIdlToCamelCase

  • Convert the given IDL to camelCase.

    The IDL is generated from Rust which has different conventions compared to JS/TS, e.g. instruction names in Rust are snake_case.

    The conversion happens automatically for programs, however, if you are using internals such as BorshInstructionCoder and you only have the original (not camelCase) IDL, you might need to use this function.

    Type Parameters

    Parameters

    • idl: I

      IDL to convert to camelCase

    Returns I

    camelCase version of the IDL