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/src/generated/accounts/addressLookupTable.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/accounts/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/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/closeLookupTable.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 @@ -129,22 +129,20 @@ export function getCloseLookupTableInstruction<
>;

const getAccountMeta = getAccountMetaFactory(programAddress, 'programId');
const instruction = {
return Object.freeze({
accounts: [
getAccountMeta(accounts.address),
getAccountMeta(accounts.authority),
getAccountMeta(accounts.recipient),
],
programAddress,
data: getCloseLookupTableInstructionDataEncoder().encode({}),
programAddress,
} as CloseLookupTableInstruction<
TProgramAddress,
TAccountAddress,
TAccountAuthority,
TAccountRecipient
>;

return instruction;
>);
}

export type ParsedCloseLookupTableInstruction<
Expand Down
24 changes: 12 additions & 12 deletions clients/js/src/generated/instructions/createLookupTable.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 @@ -202,26 +202,26 @@ export async function getCreateLookupTableInstructionAsync<
const byteDelta: number = [56 + BASE_ACCOUNT_SIZE].reduce((a, b) => a + b, 0);

const getAccountMeta = getAccountMetaFactory(programAddress, 'programId');
const instruction = {
return Object.freeze({
accounts: [
getAccountMeta(accounts.address),
getAccountMeta(accounts.authority),
getAccountMeta(accounts.payer),
getAccountMeta(accounts.systemProgram),
],
programAddress,
byteDelta,
data: getCreateLookupTableInstructionDataEncoder().encode(
args as CreateLookupTableInstructionDataArgs
),
programAddress,
} as CreateLookupTableInstruction<
TProgramAddress,
TAccountAddress,
TAccountAuthority,
TAccountPayer,
TAccountSystemProgram
>;

return Object.freeze({ ...instruction, byteDelta });
> &
InstructionWithByteDelta);
}

export type CreateLookupTableInput<
Expand Down Expand Up @@ -295,26 +295,26 @@ export function getCreateLookupTableInstruction<
const byteDelta: number = [56 + BASE_ACCOUNT_SIZE].reduce((a, b) => a + b, 0);

const getAccountMeta = getAccountMetaFactory(programAddress, 'programId');
const instruction = {
return Object.freeze({
accounts: [
getAccountMeta(accounts.address),
getAccountMeta(accounts.authority),
getAccountMeta(accounts.payer),
getAccountMeta(accounts.systemProgram),
],
programAddress,
byteDelta,
data: getCreateLookupTableInstructionDataEncoder().encode(
args as CreateLookupTableInstructionDataArgs
),
programAddress,
} as CreateLookupTableInstruction<
TProgramAddress,
TAccountAddress,
TAccountAuthority,
TAccountPayer,
TAccountSystemProgram
>;

return Object.freeze({ ...instruction, byteDelta });
> &
InstructionWithByteDelta);
}

export type ParsedCreateLookupTableInstruction<
Expand Down
17 changes: 6 additions & 11 deletions clients/js/src/generated/instructions/deactivateLookupTable.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 @@ -119,20 +119,18 @@ export function getDeactivateLookupTableInstruction<
>;

const getAccountMeta = getAccountMetaFactory(programAddress, 'programId');
const instruction = {
return Object.freeze({
accounts: [
getAccountMeta(accounts.address),
getAccountMeta(accounts.authority),
],
programAddress,
data: getDeactivateLookupTableInstructionDataEncoder().encode({}),
programAddress,
} as DeactivateLookupTableInstruction<
TProgramAddress,
TAccountAddress,
TAccountAuthority
>;

return instruction;
>);
}

export type ParsedDeactivateLookupTableInstruction<
Expand Down Expand Up @@ -167,10 +165,7 @@ export function parseDeactivateLookupTableInstruction<
};
return {
programAddress: instruction.programAddress,
accounts: {
address: getNextAccount(),
authority: getNextAccount(),
},
accounts: { address: getNextAccount(), authority: getNextAccount() },
data: getDeactivateLookupTableInstructionDataDecoder().decode(
instruction.data
),
Expand Down
14 changes: 7 additions & 7 deletions clients/js/src/generated/instructions/extendLookupTable.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 @@ -191,26 +191,26 @@ export function getExtendLookupTableInstruction<
].reduce((a, b) => a + b, 0);

const getAccountMeta = getAccountMetaFactory(programAddress, 'programId');
const instruction = {
return Object.freeze({
accounts: [
getAccountMeta(accounts.address),
getAccountMeta(accounts.authority),
getAccountMeta(accounts.payer),
getAccountMeta(accounts.systemProgram),
],
programAddress,
byteDelta,
data: getExtendLookupTableInstructionDataEncoder().encode(
args as ExtendLookupTableInstructionDataArgs
),
programAddress,
} as ExtendLookupTableInstruction<
TProgramAddress,
TAccountAddress,
TAccountAuthority,
TAccountPayer,
TAccountSystemProgram
>;

return Object.freeze({ ...instruction, byteDelta });
> &
InstructionWithByteDelta);
}

export type ParsedExtendLookupTableInstruction<
Expand Down
17 changes: 6 additions & 11 deletions clients/js/src/generated/instructions/freezeLookupTable.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 @@ -116,20 +116,18 @@ export function getFreezeLookupTableInstruction<
>;

const getAccountMeta = getAccountMetaFactory(programAddress, 'programId');
const instruction = {
return Object.freeze({
accounts: [
getAccountMeta(accounts.address),
getAccountMeta(accounts.authority),
],
programAddress,
data: getFreezeLookupTableInstructionDataEncoder().encode({}),
programAddress,
} as FreezeLookupTableInstruction<
TProgramAddress,
TAccountAddress,
TAccountAuthority
>;

return instruction;
>);
}

export type ParsedFreezeLookupTableInstruction<
Expand Down Expand Up @@ -164,10 +162,7 @@ export function parseFreezeLookupTableInstruction<
};
return {
programAddress: instruction.programAddress,
accounts: {
address: getNextAccount(),
authority: getNextAccount(),
},
accounts: { address: getNextAccount(), authority: getNextAccount() },
data: getFreezeLookupTableInstructionDataDecoder().decode(instruction.data),
};
}
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
4 changes: 2 additions & 2 deletions clients/js/src/generated/pdas/addressLookupTable.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/pdas/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/programs/addressLookupTable.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 @@ -4,7 +4,7 @@
"generate:clients": "zx ./scripts/generate-clients.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