Anchor 1.0#10
Open
mikemaccana wants to merge 1 commit into
Open
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.mdto target Anchor 1.0.1 (from 0.32.1), including bumping the exampleanchor-splversion and documenting common 1.0 porting gotchas (@anchor-lang/coreTS import,CpiContext::newPubkeychange, and preferringtransfer_checked).Adds new guidance for post-1.0 testing with LiteSVM + Solana Kite, including recommended
Anchor.tomltest command and prohibiting legacy patterns likesolana-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.