Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions clients/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@
},
"homepage": "https://github.com/solana-program/compute-budget#readme",
"peerDependencies": {
"@solana/kit": "^3.0"
"@solana/kit": "^4.0"
},
"devDependencies": {
"@solana/eslint-config-solana": "^3.0.3",
"@solana/kit": "^3.0",
"@solana/kit": "^4.0",
"@types/node": "^24",
"@typescript-eslint/eslint-plugin": "^7.16.1",
"@typescript-eslint/parser": "^7.16.1",
Expand Down
604 changes: 302 additions & 302 deletions clients/js/pnpm-lock.yaml

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions clients/js/src/generated/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* This code was AUTOGENERATED using the codama library.
* This code was AUTOGENERATED using the Codama library.
* Please DO NOT EDIT THIS FILE, instead use visitors
* to add features, then rerun codama to update it.
* to add features, then rerun Codama to update it.
*
* @see https://github.com/codama-idl/codama
*/
Expand Down
4 changes: 2 additions & 2 deletions clients/js/src/generated/instructions/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* This code was AUTOGENERATED using the codama library.
* This code was AUTOGENERATED using the Codama library.
* Please DO NOT EDIT THIS FILE, instead use visitors
* to add features, then rerun codama to update it.
* to add features, then rerun Codama to update it.
*
* @see https://github.com/codama-idl/codama
*/
Expand Down
12 changes: 5 additions & 7 deletions clients/js/src/generated/instructions/requestHeapFrame.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* This code was AUTOGENERATED using the codama library.
* This code was AUTOGENERATED using the Codama library.
* Please DO NOT EDIT THIS FILE, instead use visitors
* to add features, then rerun codama to update it.
* to add features, then rerun Codama to update it.
*
* @see https://github.com/codama-idl/codama
*/
Expand Down Expand Up @@ -101,14 +101,12 @@ export function getRequestHeapFrameInstruction<
// Original args.
const args = { ...input };

const instruction = {
programAddress,
return Object.freeze({
data: getRequestHeapFrameInstructionDataEncoder().encode(
args as RequestHeapFrameInstructionDataArgs
),
} as RequestHeapFrameInstruction<TProgramAddress>;

return instruction;
programAddress,
} as RequestHeapFrameInstruction<TProgramAddress>);
}

export type ParsedRequestHeapFrameInstruction<
Expand Down
17 changes: 6 additions & 11 deletions clients/js/src/generated/instructions/requestUnits.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* This code was AUTOGENERATED using the codama library.
* This code was AUTOGENERATED using the Codama library.
* Please DO NOT EDIT THIS FILE, instead use visitors
* to add features, then rerun codama to update it.
* to add features, then rerun Codama to update it.
*
* @see https://github.com/codama-idl/codama
*/
Expand Down Expand Up @@ -102,22 +102,17 @@ export function getRequestUnitsInstruction<
// Original args.
const args = { ...input };

const instruction = {
programAddress,
return Object.freeze({
data: getRequestUnitsInstructionDataEncoder().encode(
args as RequestUnitsInstructionDataArgs
),
} as RequestUnitsInstruction<TProgramAddress>;

return instruction;
programAddress,
} as RequestUnitsInstruction<TProgramAddress>);
}

export type ParsedRequestUnitsInstruction<
TProgram extends string = typeof COMPUTE_BUDGET_PROGRAM_ADDRESS,
> = {
programAddress: Address<TProgram>;
data: RequestUnitsInstructionData;
};
> = { programAddress: Address<TProgram>; data: RequestUnitsInstructionData };

export function parseRequestUnitsInstruction<TProgram extends string>(
instruction: Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array>
Expand Down
12 changes: 5 additions & 7 deletions clients/js/src/generated/instructions/setComputeUnitLimit.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* This code was AUTOGENERATED using the codama library.
* This code was AUTOGENERATED using the Codama library.
* Please DO NOT EDIT THIS FILE, instead use visitors
* to add features, then rerun codama to update it.
* to add features, then rerun Codama to update it.
*
* @see https://github.com/codama-idl/codama
*/
Expand Down Expand Up @@ -98,14 +98,12 @@ export function getSetComputeUnitLimitInstruction<
// Original args.
const args = { ...input };

const instruction = {
programAddress,
return Object.freeze({
data: getSetComputeUnitLimitInstructionDataEncoder().encode(
args as SetComputeUnitLimitInstructionDataArgs
),
} as SetComputeUnitLimitInstruction<TProgramAddress>;

return instruction;
programAddress,
} as SetComputeUnitLimitInstruction<TProgramAddress>);
}

export type ParsedSetComputeUnitLimitInstruction<
Expand Down
12 changes: 5 additions & 7 deletions clients/js/src/generated/instructions/setComputeUnitPrice.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* This code was AUTOGENERATED using the codama library.
* This code was AUTOGENERATED using the Codama library.
* Please DO NOT EDIT THIS FILE, instead use visitors
* to add features, then rerun codama to update it.
* to add features, then rerun Codama to update it.
*
* @see https://github.com/codama-idl/codama
*/
Expand Down Expand Up @@ -98,14 +98,12 @@ export function getSetComputeUnitPriceInstruction<
// Original args.
const args = { ...input };

const instruction = {
programAddress,
return Object.freeze({
data: getSetComputeUnitPriceInstructionDataEncoder().encode(
args as SetComputeUnitPriceInstructionDataArgs
),
} as SetComputeUnitPriceInstruction<TProgramAddress>;

return instruction;
programAddress,
} as SetComputeUnitPriceInstruction<TProgramAddress>);
}

export type ParsedSetComputeUnitPriceInstruction<
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* This code was AUTOGENERATED using the codama library.
* This code was AUTOGENERATED using the Codama library.
* Please DO NOT EDIT THIS FILE, instead use visitors
* to add features, then rerun codama to update it.
* to add features, then rerun Codama to update it.
*
* @see https://github.com/codama-idl/codama
*/
Expand Down Expand Up @@ -98,14 +98,12 @@ export function getSetLoadedAccountsDataSizeLimitInstruction<
// Original args.
const args = { ...input };

const instruction = {
programAddress,
return Object.freeze({
data: getSetLoadedAccountsDataSizeLimitInstructionDataEncoder().encode(
args as SetLoadedAccountsDataSizeLimitInstructionDataArgs
),
} as SetLoadedAccountsDataSizeLimitInstruction<TProgramAddress>;

return instruction;
programAddress,
} as SetLoadedAccountsDataSizeLimitInstruction<TProgramAddress>);
}

export type ParsedSetLoadedAccountsDataSizeLimitInstruction<
Expand Down
4 changes: 2 additions & 2 deletions clients/js/src/generated/programs/computeBudget.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* This code was AUTOGENERATED using the codama library.
* This code was AUTOGENERATED using the Codama library.
* Please DO NOT EDIT THIS FILE, instead use visitors
* to add features, then rerun codama to update it.
* to add features, then rerun Codama to update it.
*
* @see https://github.com/codama-idl/codama
*/
Expand Down
4 changes: 2 additions & 2 deletions clients/js/src/generated/programs/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* This code was AUTOGENERATED using the codama library.
* This code was AUTOGENERATED using the Codama library.
* Please DO NOT EDIT THIS FILE, instead use visitors
* to add features, then rerun codama to update it.
* to add features, then rerun Codama to update it.
*
* @see https://github.com/codama-idl/codama
*/
Expand Down
4 changes: 2 additions & 2 deletions clients/js/src/generated/shared/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* This code was AUTOGENERATED using the codama library.
* This code was AUTOGENERATED using the Codama library.
* Please DO NOT EDIT THIS FILE, instead use visitors
* to add features, then rerun codama to update it.
* to add features, then rerun Codama to update it.
*
* @see https://github.com/codama-idl/codama
*/
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"template:upgrade": "zx ./scripts/upgrade-template.mjs"
},
"devDependencies": {
"@codama/renderers-js": "^1.3",
"@codama/renderers-js": "^1.4",
"@codama/renderers-rust": "~1.0",
"@iarna/toml": "^2.2.5",
"codama": "^1.3",
Expand Down
Loading