Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/lazy-bats-shake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-solana-program": patch
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be a major, rather?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's do minor since we're still under 0.x.

---

Upgrade to `@solana/kit`; the new name for the 2.0 lineage of `@solana/web3.js`
2 changes: 1 addition & 1 deletion locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"selectOptions": {
"js": {
"title": "JavaScript Client",
"desc": "A TypeScript library compatible with the new web3.js"
"desc": "A TypeScript library compatible with @solana/kit"
},
"rust": {
"title": "Rust Client",
Expand Down
2 changes: 1 addition & 1 deletion locales/fr-FR.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"selectOptions": {
"js": {
"title": "Client JavaScript",
"desc": "Une librairie TypeScript compatible avec le nouveau web3.js"
"desc": "Une librairie TypeScript compatible avec @solana/kit"
},
"rust": {
"title": "Client Rust",
Expand Down
2 changes: 1 addition & 1 deletion template/anchor/clients/js/clients/js/test/_setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
setTransactionMessageFeePayerSigner,
setTransactionMessageLifetimeUsingBlockhash,
signTransactionMessageWithSigners,
} from '@solana/web3.js';
} from '@solana/kit';
import { getCreateInstruction } from '../src';

type Client = {
Expand Down
2 changes: 1 addition & 1 deletion template/anchor/clients/js/clients/js/test/create.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
appendTransactionMessageInstruction,
generateKeyPairSigner,
pipe,
} from '@solana/web3.js';
} from '@solana/kit';
import test from 'ava';
import { Counter, fetchCounter, getCreateInstruction } from '../src';
import {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
isSolanaError,
lamports,
pipe,
} from '@solana/web3.js';
} from '@solana/kit';
import test from 'ava';
import {
{{ programName | snakeCase | upper }}_ERROR__INVALID_AUTHORITY,
Expand Down
4 changes: 2 additions & 2 deletions template/clients/js/clients/js/package.json.njk
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@
"homepage": "{{ repositoryUrl }}#readme",
"license": "MIT",
"peerDependencies": {
"@solana/web3.js": "^2.0.0"
"@solana/kit": "^2.1.0"
},
"devDependencies": {
"@ava/typescript": "^4.1.0",
"@solana/eslint-config-solana": "^3.0.3",
"@solana/web3.js": "^2.0.0",
"@solana/kit": "^2.1.0",
"@types/node": "^20",
"@typescript-eslint/eslint-plugin": "^7.16.1",
"@typescript-eslint/parser": "^7.16.1",
Expand Down
2 changes: 1 addition & 1 deletion template/shank/clients/js/clients/js/test/_setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
setTransactionMessageFeePayerSigner,
setTransactionMessageLifetimeUsingBlockhash,
signTransactionMessageWithSigners,
} from '@solana/web3.js';
} from '@solana/kit';
import { findCounterPda, getCreateInstructionAsync } from '../src';

type Client = {
Expand Down
2 changes: 1 addition & 1 deletion template/shank/clients/js/clients/js/test/create.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
Account,
appendTransactionMessageInstruction,
pipe,
} from '@solana/web3.js';
} from '@solana/kit';
import test from 'ava';
import {
Counter,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
isSolanaError,
lamports,
pipe,
} from '@solana/web3.js';
} from '@solana/kit';
import test from 'ava';
import {
{{ programName | snakeCase | upper }}_ERROR__INVALID_PDA,
Expand Down
Loading