Commit 055ce69
authored
Bump Codama renderer and adopt @solana/kit 6.10 (#163)
This bumps the Codama renderer and regenerates the JS client so it stays compatible with @solana/kit 6.10. The generated program plugins now return the homomorphic `ExtendedClient` type (introduced in kit 6.10) instead of the previous `Omit<T, ...>` intersection, and the client's kit floor is raised to ^6.10.0.
The hand-written `tokenProgram()` plugin is updated to compose the generated plugin via `extendClient` instead of an object spread. Under kit 6.10's homomorphic `ExtendedClient` type, the previous spread caused the hand-written `batch` instruction override to merge with the generated `batch` signature into a two-overload type; composing with `extendClient` cleanly replaces the `token` namespace so `batch` keeps its single intended signature (and nested batches remain a compile error).1 parent f39c246 commit 055ce69
7 files changed
Lines changed: 508 additions & 486 deletions
File tree
- clients/js
- src
- generated/programs
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
0 commit comments