Skip to content

Anchor 1.0#10

Open
mikemaccana wants to merge 1 commit into
quicknode:mainfrom
mikemaccana-edwardbot:anchor-101-and-kit-testing
Open

Anchor 1.0#10
mikemaccana wants to merge 1 commit into
quicknode:mainfrom
mikemaccana-edwardbot:anchor-101-and-kit-testing

Conversation

@mikemaccana
Copy link
Copy Markdown
Collaborator

@mikemaccana mikemaccana commented Apr 29, 2026

Bump the documented Anchor version from 0.32.1 to 1.0.1 (latest stable), note the breaking changes that bite during ports (TS package rename to @anchor-lang/core, CpiContext::new now takes Pubkey, transfer_checked over plain transfer), and bump the example anchor-spl pin to 1.0.1.

Add an Anchor Testing section covering LiteSVM (the default harness post 1.0). Tests can be written in Rust or TypeScript; both should use Solana Kite (the Rust crate solana-kite or the TypeScript package solana-kite) to keep test code small. The legacy Anchor harness, mocha and ts-mocha, solana-test-validator, anchor.AnchorProvider.env(), and program.methods.X().rpc() are all out.


Note

Low Risk
Documentation-only updates; no runtime or dependency changes to the codebase.

Overview
Updates SKILL.md to target Anchor 1.0.1 (from 0.32.1), including bumping the example anchor-spl version and documenting common 1.0 porting gotchas (@anchor-lang/core TS import, CpiContext::new Pubkey change, and preferring transfer_checked).

Adds new guidance for post-1.0 testing with LiteSVM + Solana Kite, including recommended Anchor.toml test command and prohibiting legacy patterns like solana-test-validator, AnchorProvider.env(), and .rpc()-style tests.

Reviewed by Cursor Bugbot for commit 1541908. Bugbot is set up for automated code reviews on this repo. Configure here.

Bump the documented Anchor version from 0.32.1 to 1.0.1 (latest stable),
note the breaking changes that bite during ports (TS package rename to
@anchor-lang/core, CpiContext::new now takes Pubkey, transfer_checked
over plain transfer), and bump the example anchor-spl pin to 1.0.1.

Add an Anchor Testing section covering LiteSVM (the default harness
post 1.0). Tests can be written in Rust or TypeScript; both should use
Solana Kite (the Rust crate solana-kite or the TypeScript package
solana-kite) to keep test code small. The legacy Anchor harness, mocha
and ts-mocha, solana-test-validator, anchor.AnchorProvider.env(), and
program.methods.X().rpc() are all out.
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