Skip to content

v2.3.0

Latest

Choose a tag to compare

@github-actions github-actions released this 17 Jun 13:03
74ada41

Minor Changes

  • #146 b75dce1 Thanks @lorisleiva! - Support @solana/kit 6.10.0 in generated program plugins. The generated xxxProgram() factory previously annotated its return type as Omit<T, 'xxx'> & { xxx: XxxPlugin }, which is no longer assignable to the value returned by extendClient now that the latter returns the homomorphic ExtendedClient<T, TAdditions> type. The factory now annotates its return type with ExtendedClient directly, and the default @solana/* dependency versions written into a generated client's package.json (via syncPackageJson) are bumped to ^6.10.0 so that ExtendedClient is available.

  • #143 f513041 Thanks @amilz! - Expose identifyAccount, identifyInstruction, and parseInstruction on generated program plugins. When a program has accounts or instructions with discriminators, the plugin object now surfaces the corresponding identifier and parser helpers as client.myProgram.identifyAccount(...), client.myProgram.identifyInstruction(...), and client.myProgram.parseInstruction(...), making it easier to build indexers without re-importing the per-function helpers.