File tree Expand file tree Collapse file tree 14 files changed +422
-392
lines changed Expand file tree Collapse file tree 14 files changed +422
-392
lines changed Original file line number Diff line number Diff line change 4343 },
4444 "homepage" : " https://github.com/solana-program/compute-budget#readme" ,
4545 "peerDependencies" : {
46- "@solana/kit" : " ^3 .0"
46+ "@solana/kit" : " ^4 .0"
4747 },
4848 "devDependencies" : {
4949 "@solana/eslint-config-solana" : " ^3.0.3" ,
50- "@solana/kit" : " ^3 .0" ,
50+ "@solana/kit" : " ^4 .0" ,
5151 "@types/node" : " ^24" ,
5252 "@typescript-eslint/eslint-plugin" : " ^7.16.1" ,
5353 "@typescript-eslint/parser" : " ^7.16.1" ,
Original file line number Diff line number Diff line change 11/**
2- * This code was AUTOGENERATED using the codama library.
2+ * This code was AUTOGENERATED using the Codama library.
33 * Please DO NOT EDIT THIS FILE, instead use visitors
4- * to add features, then rerun codama to update it.
4+ * to add features, then rerun Codama to update it.
55 *
66 * @see https://github.com/codama-idl/codama
77 */
Original file line number Diff line number Diff line change 11/**
2- * This code was AUTOGENERATED using the codama library.
2+ * This code was AUTOGENERATED using the Codama library.
33 * Please DO NOT EDIT THIS FILE, instead use visitors
4- * to add features, then rerun codama to update it.
4+ * to add features, then rerun Codama to update it.
55 *
66 * @see https://github.com/codama-idl/codama
77 */
Original file line number Diff line number Diff line change 11/**
2- * This code was AUTOGENERATED using the codama library.
2+ * This code was AUTOGENERATED using the Codama library.
33 * Please DO NOT EDIT THIS FILE, instead use visitors
4- * to add features, then rerun codama to update it.
4+ * to add features, then rerun Codama to update it.
55 *
66 * @see https://github.com/codama-idl/codama
77 */
@@ -101,14 +101,12 @@ export function getRequestHeapFrameInstruction<
101101 // Original args.
102102 const args = { ...input } ;
103103
104- const instruction = {
105- programAddress,
104+ return Object . freeze ( {
106105 data : getRequestHeapFrameInstructionDataEncoder ( ) . encode (
107106 args as RequestHeapFrameInstructionDataArgs
108107 ) ,
109- } as RequestHeapFrameInstruction < TProgramAddress > ;
110-
111- return instruction ;
108+ programAddress,
109+ } as RequestHeapFrameInstruction < TProgramAddress > ) ;
112110}
113111
114112export type ParsedRequestHeapFrameInstruction <
Original file line number Diff line number Diff line change 11/**
2- * This code was AUTOGENERATED using the codama library.
2+ * This code was AUTOGENERATED using the Codama library.
33 * Please DO NOT EDIT THIS FILE, instead use visitors
4- * to add features, then rerun codama to update it.
4+ * to add features, then rerun Codama to update it.
55 *
66 * @see https://github.com/codama-idl/codama
77 */
@@ -102,22 +102,17 @@ export function getRequestUnitsInstruction<
102102 // Original args.
103103 const args = { ...input } ;
104104
105- const instruction = {
106- programAddress,
105+ return Object . freeze ( {
107106 data : getRequestUnitsInstructionDataEncoder ( ) . encode (
108107 args as RequestUnitsInstructionDataArgs
109108 ) ,
110- } as RequestUnitsInstruction < TProgramAddress > ;
111-
112- return instruction ;
109+ programAddress,
110+ } as RequestUnitsInstruction < TProgramAddress > ) ;
113111}
114112
115113export type ParsedRequestUnitsInstruction <
116114 TProgram extends string = typeof COMPUTE_BUDGET_PROGRAM_ADDRESS ,
117- > = {
118- programAddress : Address < TProgram > ;
119- data : RequestUnitsInstructionData ;
120- } ;
115+ > = { programAddress : Address < TProgram > ; data : RequestUnitsInstructionData } ;
121116
122117export function parseRequestUnitsInstruction < TProgram extends string > (
123118 instruction : Instruction < TProgram > & InstructionWithData < ReadonlyUint8Array >
Original file line number Diff line number Diff line change 11/**
2- * This code was AUTOGENERATED using the codama library.
2+ * This code was AUTOGENERATED using the Codama library.
33 * Please DO NOT EDIT THIS FILE, instead use visitors
4- * to add features, then rerun codama to update it.
4+ * to add features, then rerun Codama to update it.
55 *
66 * @see https://github.com/codama-idl/codama
77 */
@@ -98,14 +98,12 @@ export function getSetComputeUnitLimitInstruction<
9898 // Original args.
9999 const args = { ...input } ;
100100
101- const instruction = {
102- programAddress,
101+ return Object . freeze ( {
103102 data : getSetComputeUnitLimitInstructionDataEncoder ( ) . encode (
104103 args as SetComputeUnitLimitInstructionDataArgs
105104 ) ,
106- } as SetComputeUnitLimitInstruction < TProgramAddress > ;
107-
108- return instruction ;
105+ programAddress,
106+ } as SetComputeUnitLimitInstruction < TProgramAddress > ) ;
109107}
110108
111109export type ParsedSetComputeUnitLimitInstruction <
Original file line number Diff line number Diff line change 11/**
2- * This code was AUTOGENERATED using the codama library.
2+ * This code was AUTOGENERATED using the Codama library.
33 * Please DO NOT EDIT THIS FILE, instead use visitors
4- * to add features, then rerun codama to update it.
4+ * to add features, then rerun Codama to update it.
55 *
66 * @see https://github.com/codama-idl/codama
77 */
@@ -98,14 +98,12 @@ export function getSetComputeUnitPriceInstruction<
9898 // Original args.
9999 const args = { ...input } ;
100100
101- const instruction = {
102- programAddress,
101+ return Object . freeze ( {
103102 data : getSetComputeUnitPriceInstructionDataEncoder ( ) . encode (
104103 args as SetComputeUnitPriceInstructionDataArgs
105104 ) ,
106- } as SetComputeUnitPriceInstruction < TProgramAddress > ;
107-
108- return instruction ;
105+ programAddress,
106+ } as SetComputeUnitPriceInstruction < TProgramAddress > ) ;
109107}
110108
111109export type ParsedSetComputeUnitPriceInstruction <
Original file line number Diff line number Diff line change 11/**
2- * This code was AUTOGENERATED using the codama library.
2+ * This code was AUTOGENERATED using the Codama library.
33 * Please DO NOT EDIT THIS FILE, instead use visitors
4- * to add features, then rerun codama to update it.
4+ * to add features, then rerun Codama to update it.
55 *
66 * @see https://github.com/codama-idl/codama
77 */
@@ -98,14 +98,12 @@ export function getSetLoadedAccountsDataSizeLimitInstruction<
9898 // Original args.
9999 const args = { ...input } ;
100100
101- const instruction = {
102- programAddress,
101+ return Object . freeze ( {
103102 data : getSetLoadedAccountsDataSizeLimitInstructionDataEncoder ( ) . encode (
104103 args as SetLoadedAccountsDataSizeLimitInstructionDataArgs
105104 ) ,
106- } as SetLoadedAccountsDataSizeLimitInstruction < TProgramAddress > ;
107-
108- return instruction ;
105+ programAddress,
106+ } as SetLoadedAccountsDataSizeLimitInstruction < TProgramAddress > ) ;
109107}
110108
111109export type ParsedSetLoadedAccountsDataSizeLimitInstruction <
Original file line number Diff line number Diff line change 11/**
2- * This code was AUTOGENERATED using the codama library.
2+ * This code was AUTOGENERATED using the Codama library.
33 * Please DO NOT EDIT THIS FILE, instead use visitors
4- * to add features, then rerun codama to update it.
4+ * to add features, then rerun Codama to update it.
55 *
66 * @see https://github.com/codama-idl/codama
77 */
You can’t perform that action at this time.
0 commit comments