Skip to content

Commit 5a7077e

Browse files
committed
Bump Codama to 1.2.8 and use @solana/kit
1 parent a5aa458 commit 5a7077e

18 files changed

+748
-460
lines changed

clients/js/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@
4242
},
4343
"homepage": "https://github.com/solana-program/compute-budget#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/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",

clients/js/pnpm-lock.yaml

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import {
2323
type IInstruction,
2424
type IInstructionWithAccounts,
2525
type IInstructionWithData,
26-
} from '@solana/web3.js';
26+
} from '@solana/kit';
2727
import { COMPUTE_BUDGET_PROGRAM_ADDRESS } from '../programs';
2828

2929
export const REQUEST_HEAP_FRAME_DISCRIMINATOR = 1;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import {
2323
type IInstruction,
2424
type IInstructionWithAccounts,
2525
type IInstructionWithData,
26-
} from '@solana/web3.js';
26+
} from '@solana/kit';
2727
import { COMPUTE_BUDGET_PROGRAM_ADDRESS } from '../programs';
2828

2929
export const REQUEST_UNITS_DISCRIMINATOR = 0;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import {
2323
type IInstruction,
2424
type IInstructionWithAccounts,
2525
type IInstructionWithData,
26-
} from '@solana/web3.js';
26+
} from '@solana/kit';
2727
import { COMPUTE_BUDGET_PROGRAM_ADDRESS } from '../programs';
2828

2929
export const SET_COMPUTE_UNIT_LIMIT_DISCRIMINATOR = 2;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import {
2323
type IInstruction,
2424
type IInstructionWithAccounts,
2525
type IInstructionWithData,
26-
} from '@solana/web3.js';
26+
} from '@solana/kit';
2727
import { COMPUTE_BUDGET_PROGRAM_ADDRESS } from '../programs';
2828

2929
export const SET_COMPUTE_UNIT_PRICE_DISCRIMINATOR = 3;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import {
2323
type IInstruction,
2424
type IInstructionWithAccounts,
2525
type IInstructionWithData,
26-
} from '@solana/web3.js';
26+
} from '@solana/kit';
2727
import { COMPUTE_BUDGET_PROGRAM_ADDRESS } from '../programs';
2828

2929
export const SET_LOADED_ACCOUNTS_DATA_SIZE_LIMIT_DISCRIMINATOR = 4;

clients/js/src/generated/programs/computeBudget.ts

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

clients/js/src/generated/shared/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
import {
1010
AccountRole,
1111
isProgramDerivedAddress,
12-
isTransactionSigner as web3JsIsTransactionSigner,
12+
isTransactionSigner as kitIsTransactionSigner,
1313
type Address,
1414
type IAccountMeta,
1515
type IAccountSignerMeta,
1616
type ProgramDerivedAddress,
1717
type TransactionSigner,
1818
upgradeRoleToSigner,
19-
} from '@solana/web3.js';
19+
} from '@solana/kit';
2020

2121
/**
2222
* Asserts that the given value is not null or undefined.
@@ -159,6 +159,6 @@ export function isTransactionSigner<TAddress extends string = string>(
159159
!!value &&
160160
typeof value === 'object' &&
161161
'address' in value &&
162-
web3JsIsTransactionSigner(value)
162+
kitIsTransactionSigner(value)
163163
);
164164
}

clients/js/test/_setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import {
1919
setTransactionMessageFeePayerSigner,
2020
setTransactionMessageLifetimeUsingBlockhash,
2121
signTransactionMessageWithSigners,
22-
} from '@solana/web3.js';
22+
} from '@solana/kit';
2323

2424
type Client = {
2525
rpc: Rpc<SolanaRpcApi>;

0 commit comments

Comments
 (0)