Minor Changes
-
#146
b75dce1Thanks @lorisleiva! - Support@solana/kit6.10.0 in generated program plugins. The generatedxxxProgram()factory previously annotated its return type asOmit<T, 'xxx'> & { xxx: XxxPlugin }, which is no longer assignable to the value returned byextendClientnow that the latter returns the homomorphicExtendedClient<T, TAdditions>type. The factory now annotates its return type withExtendedClientdirectly, and the default@solana/*dependency versions written into a generated client'spackage.json(viasyncPackageJson) are bumped to^6.10.0so thatExtendedClientis available. -
#143
f513041Thanks @amilz! - ExposeidentifyAccount,identifyInstruction, andparseInstructionon generated program plugins. When a program has accounts or instructions with discriminators, the plugin object now surfaces the corresponding identifier and parser helpers asclient.myProgram.identifyAccount(...),client.myProgram.identifyInstruction(...), andclient.myProgram.parseInstruction(...), making it easier to build indexers without re-importing the per-function helpers.