Skip to content

Migrate JS client to Kit plugins#60

Merged
lorisleiva merged 1 commit into
mainfrom
loris/update-js-client
May 18, 2026
Merged

Migrate JS client to Kit plugins#60
lorisleiva merged 1 commit into
mainfrom
loris/update-js-client

Conversation

@lorisleiva
Copy link
Copy Markdown
Member

This PR replaces the ad-hoc top-level helpers with a Kit-plugin-based client (createTestClient() + programMetadataProgram()) and a uniform (client, input) API for the metadata and buffer helpers. The plugin exposes client.programMetadata.{createMetadata,updateMetadata,writeMetadata} one-shots, composable instruction-plan variants, and new createBuffer/createCanonicalBuffer/createNonCanonicalBuffer instructions, all defaulting payer to client.payer. MetadataInput now takes optional metadata and programData, removing the RPC-based canonicity probe.

Bumps @solana/kit to ^6.9, adds @solana/kit-plugin-rpc and @solana/kit-plugin-signer, bumps @solana-program/system to ^0.12 and @solana-program/compute-budget to ^0.15, and moves to flat ESLint 9 config. Tests rewritten on top of the plugin; _setup.ts is now down to genuine fixtures.

This PR replaces the ad-hoc top-level helpers with a Kit-plugin-based client (`createTestClient()` + `programMetadataProgram()`) and a uniform `(client, input)` API for the metadata and buffer helpers. The plugin exposes `client.programMetadata.{createMetadata,updateMetadata,writeMetadata}` one-shots, composable instruction-plan variants, and new `createBuffer`/`createCanonicalBuffer`/`createNonCanonicalBuffer` instructions, all defaulting `payer` to `client.payer`. `MetadataInput` now takes optional `metadata` and `programData`, removing the RPC-based canonicity probe.

Bumps `@solana/kit` to ^6.9, adds `@solana/kit-plugin-rpc` and `@solana/kit-plugin-signer`, bumps `@solana-program/system` to ^0.12 and `@solana-program/compute-budget` to ^0.15, and moves to flat ESLint 9 config. Tests rewritten on top of the plugin; `_setup.ts` is now down to genuine fixtures.
@lorisleiva lorisleiva force-pushed the loris/update-js-client branch from c5713ef to e8fbb7f Compare May 18, 2026 10:35
@lorisleiva lorisleiva marked this pull request as ready for review May 18, 2026 12:24
@lorisleiva lorisleiva merged commit 26314f9 into main May 18, 2026
9 checks passed
@lorisleiva lorisleiva deleted the loris/update-js-client branch May 18, 2026 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant