Skip to content

Commit f9a0dc3

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

67 files changed

Lines changed: 831 additions & 468 deletions

Some content is hidden

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

clients/js/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@
4545
"homepage": "https://github.com/solana-program/program-metadata#readme",
4646
"license": "MIT",
4747
"peerDependencies": {
48-
"@solana/web3.js": "^2.0.0"
48+
"@solana/kit": "^2.1.0"
4949
},
5050
"dependencies": {
5151
"@iarna/toml": "^2.2.5",
52-
"@solana-program/compute-budget": "^0.6.1",
53-
"@solana-program/system": "^0.6.2",
52+
"@solana-program/compute-budget": "^0.7.0",
53+
"@solana-program/system": "^0.7.0",
5454
"chalk": "^4.1.0",
5555
"commander": "^13.0.0",
5656
"pako": "^2.1.0",
@@ -59,7 +59,7 @@
5959
"devDependencies": {
6060
"@ava/typescript": "^4.1.0",
6161
"@solana/eslint-config-solana": "^3.0.3",
62-
"@solana/web3.js": "^2.0.0",
62+
"@solana/kit": "^2.1.0",
6363
"@types/node": "^22",
6464
"@types/pako": "^2.0.3",
6565
"@typescript-eslint/eslint-plugin": "^7.16.1",

clients/js/pnpm-lock.yaml

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

clients/js/src/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import {
2121
RpcSubscriptions,
2222
SolanaRpcApi,
2323
SolanaRpcSubscriptionsApi,
24-
} from '@solana/web3.js';
24+
} from '@solana/kit';
2525
import chalk from 'chalk';
2626
import { Command, Option } from 'commander';
2727
import { parse as parseYaml } from 'yaml';

clients/js/src/createMetadata.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
GetMinimumBalanceForRentExemptionApi,
55
Lamports,
66
Rpc,
7-
} from '@solana/web3.js';
7+
} from '@solana/kit';
88
import {
99
getAllocateInstruction,
1010
getInitializeInstruction,

clients/js/src/downloadMetadata.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { parse as parseToml } from '@iarna/toml';
2-
import { Address, GetAccountInfoApi, Rpc } from '@solana/web3.js';
2+
import { Address, GetAccountInfoApi, Rpc } from '@solana/kit';
33
import { parse as parseYaml } from 'yaml';
44
import { fetchMetadataFromSeeds, Format, SeedArgs } from './generated';
55
import { unpackAndFetchData } from './packData';

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

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ import {
4141
type Option,
4242
type OptionOrNullable,
4343
type ReadonlyUint8Array,
44-
} from '@solana/web3.js';
44+
} from '@solana/kit';
4545
import { MetadataSeeds, findMetadataPda } from '../pdas';
4646
import {
4747
AccountDiscriminator,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import {
3131
type ReadonlySignerAccount,
3232
type TransactionSigner,
3333
type WritableAccount,
34-
} from '@solana/web3.js';
34+
} from '@solana/kit';
3535
import { PROGRAM_METADATA_PROGRAM_ADDRESS } from '../programs';
3636
import { getAccountMetaFactory, type ResolvedAccount } from '../shared';
3737
import {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import {
2626
type ReadonlySignerAccount,
2727
type TransactionSigner,
2828
type WritableAccount,
29-
} from '@solana/web3.js';
29+
} from '@solana/kit';
3030
import { PROGRAM_METADATA_PROGRAM_ADDRESS } from '../programs';
3131
import { getAccountMetaFactory, type ResolvedAccount } from '../shared';
3232

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

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

0 commit comments

Comments
 (0)