Skip to content

Commit ae115c8

Browse files
committed
Upgrade from @solana/web3.js to @solana/kit
1 parent f7b88fb commit ae115c8

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

locales/en-US.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"selectOptions": {
3434
"js": {
3535
"title": "JavaScript Client",
36-
"desc": "A TypeScript library compatible with the new web3.js"
36+
"desc": "A TypeScript library compatible with @solana/kit"
3737
},
3838
"rust": {
3939
"title": "Rust Client",

locales/fr-FR.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"selectOptions": {
3434
"js": {
3535
"title": "Client JavaScript",
36-
"desc": "Une librairie TypeScript compatible avec le nouveau web3.js"
36+
"desc": "Une librairie TypeScript compatible avec @solana/kit"
3737
},
3838
"rust": {
3939
"title": "Client Rust",

template/anchor/clients/js/clients/js/test/_setup.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import {
2121
setTransactionMessageFeePayerSigner,
2222
setTransactionMessageLifetimeUsingBlockhash,
2323
signTransactionMessageWithSigners,
24-
} from '@solana/web3.js';
24+
} from '@solana/kit';
2525
import { getCreateInstruction } from '../src';
2626

2727
type Client = {

template/anchor/clients/js/clients/js/test/create.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {
33
appendTransactionMessageInstruction,
44
generateKeyPairSigner,
55
pipe,
6-
} from '@solana/web3.js';
6+
} from '@solana/kit';
77
import test from 'ava';
88
import { Counter, fetchCounter, getCreateInstruction } from '../src';
99
import {

template/anchor/clients/js/clients/js/test/increment.test.ts.njk

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
isSolanaError,
77
lamports,
88
pipe,
9-
} from '@solana/web3.js';
9+
} from '@solana/kit';
1010
import test from 'ava';
1111
import {
1212
{{ programName | snakeCase | upper }}_ERROR__INVALID_AUTHORITY,

template/clients/js/clients/js/package.json.njk

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@
4242
"homepage": "{{ repositoryUrl }}#readme",
4343
"license": "MIT",
4444
"peerDependencies": {
45-
"@solana/web3.js": "^2.0.0"
45+
"@solana/kit": "^2.1.0"
4646
},
4747
"devDependencies": {
4848
"@ava/typescript": "^4.1.0",
4949
"@solana/eslint-config-solana": "^3.0.3",
50-
"@solana/web3.js": "^2.0.0",
50+
"@solana/kit": "^2.1.0",
5151
"@types/node": "^20",
5252
"@typescript-eslint/eslint-plugin": "^7.16.1",
5353
"@typescript-eslint/parser": "^7.16.1",

template/shank/clients/js/clients/js/test/_setup.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import {
2222
setTransactionMessageFeePayerSigner,
2323
setTransactionMessageLifetimeUsingBlockhash,
2424
signTransactionMessageWithSigners,
25-
} from '@solana/web3.js';
25+
} from '@solana/kit';
2626
import { findCounterPda, getCreateInstructionAsync } from '../src';
2727

2828
type Client = {

template/shank/clients/js/clients/js/test/create.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {
22
Account,
33
appendTransactionMessageInstruction,
44
pipe,
5-
} from '@solana/web3.js';
5+
} from '@solana/kit';
66
import test from 'ava';
77
import {
88
Counter,

template/shank/clients/js/clients/js/test/increment.test.ts.njk

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
isSolanaError,
66
lamports,
77
pipe,
8-
} from '@solana/web3.js';
8+
} from '@solana/kit';
99
import test from 'ava';
1010
import {
1111
{{ programName | snakeCase | upper }}_ERROR__INVALID_PDA,

0 commit comments

Comments
 (0)