Skip to content

Commit 3f5cd05

Browse files
authored
Bump Codama JS renderer to 1.2.7 and use @solana/kit (#254)
1 parent 9fbe850 commit 3f5cd05

File tree

156 files changed

+456
-564
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

156 files changed

+456
-564
lines changed

clients/js/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@
4242
},
4343
"homepage": "https://github.com/solana-program/token-2022#readme",
4444
"peerDependencies": {
45-
"@solana/web3.js": "^2.0.0",
46-
"@solana/sysvars": "^2.0.0"
45+
"@solana/kit": "^2.1.0",
46+
"@solana/sysvars": "^2.1.0"
4747
},
4848
"devDependencies": {
4949
"@ava/typescript": "^5.0.0",
50-
"@solana-program/system": "^0.6.1",
50+
"@solana-program/system": "^0.7.0",
5151
"@solana/eslint-config-solana": "^3.0.3",
52-
"@solana/web3.js": "^2.0.0",
52+
"@solana/kit": "^2.1.0",
5353
"@types/node": "^22",
5454
"@typescript-eslint/eslint-plugin": "^7.16.1",
5555
"@typescript-eslint/parser": "^7.16.1",

clients/js/pnpm-lock.yaml

Lines changed: 294 additions & 293 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clients/js/src/amountToUiAmount.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
Address,
55
UnixTimestamp,
66
unwrapOption,
7-
} from '@solana/web3.js';
7+
} from '@solana/kit';
88
import { fetchSysvarClock } from '@solana/sysvars';
99
import { fetchMint } from './generated';
1010

clients/js/src/generated/accounts/mint.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ import {
4646
type MaybeEncodedAccount,
4747
type Option,
4848
type OptionOrNullable,
49-
} from '@solana/web3.js';
49+
} from '@solana/kit';
5050
import {
5151
getExtensionDecoder,
5252
getExtensionEncoder,

clients/js/src/generated/accounts/multisig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import {
3333
type FetchAccountsConfig,
3434
type MaybeAccount,
3535
type MaybeEncodedAccount,
36-
} from '@solana/web3.js';
36+
} from '@solana/kit';
3737

3838
export type Multisig = {
3939
/** Number of signers required. */

clients/js/src/generated/accounts/token.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import {
4242
type MaybeEncodedAccount,
4343
type Option,
4444
type OptionOrNullable,
45-
} from '@solana/web3.js';
45+
} from '@solana/kit';
4646
import {
4747
getAccountStateDecoder,
4848
getAccountStateEncoder,

clients/js/src/generated/errors/associatedToken.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
type Address,
1212
type SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM,
1313
type SolanaError,
14-
} from '@solana/web3.js';
14+
} from '@solana/kit';
1515
import { ASSOCIATED_TOKEN_PROGRAM_ADDRESS } from '../programs';
1616

1717
/** InvalidOwner: Associated token account owner does not match address derivation */

clients/js/src/generated/errors/token2022.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
type Address,
1212
type SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM,
1313
type SolanaError,
14-
} from '@solana/web3.js';
14+
} from '@solana/kit';
1515
import { TOKEN_2022_PROGRAM_ADDRESS } from '../programs';
1616

1717
/** NotRentExempt: Lamport balance below rent-exempt threshold */

clients/js/src/generated/instructions/amountToUiAmount.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import {
2424
type IInstructionWithAccounts,
2525
type IInstructionWithData,
2626
type ReadonlyAccount,
27-
} from '@solana/web3.js';
27+
} from '@solana/kit';
2828
import { TOKEN_2022_PROGRAM_ADDRESS } from '../programs';
2929
import { getAccountMetaFactory, type ResolvedAccount } from '../shared';
3030

clients/js/src/generated/instructions/applyConfidentialPendingBalance.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import {
2929
type ReadonlySignerAccount,
3030
type TransactionSigner,
3131
type WritableAccount,
32-
} from '@solana/web3.js';
32+
} from '@solana/kit';
3333
import { TOKEN_2022_PROGRAM_ADDRESS } from '../programs';
3434
import { getAccountMetaFactory, type ResolvedAccount } from '../shared';
3535
import {

0 commit comments

Comments
 (0)