Skip to content

Commit 0667786

Browse files
authored
Bump Codama to 1.2.8 and use @solana/kit (#29)
1 parent 6d18ff7 commit 0667786

Some content is hidden

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

50 files changed

+1016
-164
lines changed

clients/js/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@
4242
},
4343
"homepage": "https://github.com/solana-program/token#readme",
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-program/system": "^0.6.1",
5050
"@solana/eslint-config-solana": "^3.0.3",
51-
"@solana/web3.js": "^2.0.0",
51+
"@solana/kit": "^2.1.0",
5252
"@types/node": "^20",
5353
"@typescript-eslint/eslint-plugin": "^7.16.1",
5454
"@typescript-eslint/parser": "^7.16.1",

clients/js/pnpm-lock.yaml

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import {
3939
type MaybeEncodedAccount,
4040
type Option,
4141
type OptionOrNullable,
42-
} from '@solana/web3.js';
42+
} from '@solana/kit';
4343

4444
export type Mint = {
4545
/**

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
@@ -35,7 +35,7 @@ import {
3535
type MaybeEncodedAccount,
3636
type Option,
3737
type OptionOrNullable,
38-
} from '@solana/web3.js';
38+
} from '@solana/kit';
3939
import {
4040
getAccountStateDecoder,
4141
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/token.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_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_PROGRAM_ADDRESS } from '../programs';
2929
import { getAccountMetaFactory, type ResolvedAccount } from '../shared';
3030

clients/js/src/generated/instructions/approve.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_PROGRAM_ADDRESS } from '../programs';
3434
import { getAccountMetaFactory, type ResolvedAccount } from '../shared';
3535

clients/js/src/generated/instructions/approveChecked.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_PROGRAM_ADDRESS } from '../programs';
3434
import { getAccountMetaFactory, type ResolvedAccount } from '../shared';
3535

0 commit comments

Comments
 (0)