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
20 changes: 13 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions clients/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,5 @@
"test/": "dist/test/"
}
}
},
"packageManager": "pnpm@9.1.0"
}
}
6 changes: 3 additions & 3 deletions clients/js/src/generated/accounts/buffer.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 @@ -40,7 +40,7 @@ import {
type OptionOrNullable,
type ReadonlyUint8Array,
} from '@solana/kit';
import { MetadataSeeds, findMetadataPda } from '../pdas';
import { findMetadataPda, MetadataSeeds } from '../pdas';
import {
AccountDiscriminator,
getAccountDiscriminatorDecoder,
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
6 changes: 3 additions & 3 deletions clients/js/src/generated/accounts/metadata.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 @@ -42,7 +42,7 @@ import {
type OptionOrNullable,
type ReadonlyUint8Array,
} from '@solana/kit';
import { MetadataSeeds, findMetadataPda } from '../pdas';
import { findMetadataPda, MetadataSeeds } from '../pdas';
import {
AccountDiscriminator,
getAccountDiscriminatorDecoder,
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/allocate.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 @@ -195,28 +195,26 @@ export function getAllocateInstruction<
}

const getAccountMeta = getAccountMetaFactory(programAddress, 'programId');
const instruction = {
return Object.freeze({
accounts: [
getAccountMeta(accounts.buffer),
getAccountMeta(accounts.authority),
getAccountMeta(accounts.program),
getAccountMeta(accounts.programData),
getAccountMeta(accounts.system),
],
programAddress,
data: getAllocateInstructionDataEncoder().encode(
args as AllocateInstructionDataArgs
),
programAddress,
} as AllocateInstruction<
TProgramAddress,
TAccountBuffer,
TAccountAuthority,
TAccountProgram,
TAccountProgramData,
TAccountSystem
>;

return instruction;
>);
}

export type ParsedAllocateInstruction<
Expand Down
12 changes: 5 additions & 7 deletions clients/js/src/generated/instructions/close.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 @@ -155,26 +155,24 @@ export function getCloseInstruction<
>;

const getAccountMeta = getAccountMetaFactory(programAddress, 'programId');
const instruction = {
return Object.freeze({
accounts: [
getAccountMeta(accounts.account),
getAccountMeta(accounts.authority),
getAccountMeta(accounts.program),
getAccountMeta(accounts.programData),
getAccountMeta(accounts.destination),
],
programAddress,
data: getCloseInstructionDataEncoder().encode({}),
programAddress,
} as CloseInstruction<
TProgramAddress,
TAccountAccount,
TAccountAuthority,
TAccountProgram,
TAccountProgramData,
TAccountDestination
>;

return instruction;
>);
}

export type ParsedCloseInstruction<
Expand Down
12 changes: 5 additions & 7 deletions clients/js/src/generated/instructions/extend.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 @@ -163,26 +163,24 @@ export function getExtendInstruction<
const args = { ...input };

const getAccountMeta = getAccountMetaFactory(programAddress, 'programId');
const instruction = {
return Object.freeze({
accounts: [
getAccountMeta(accounts.account),
getAccountMeta(accounts.authority),
getAccountMeta(accounts.program),
getAccountMeta(accounts.programData),
],
programAddress,
data: getExtendInstructionDataEncoder().encode(
args as ExtendInstructionDataArgs
),
programAddress,
} as ExtendInstruction<
TProgramAddress,
TAccountAccount,
TAccountAuthority,
TAccountProgram,
TAccountProgramData
>;

return instruction;
>);
}

export type ParsedExtendInstruction<
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
20 changes: 8 additions & 12 deletions clients/js/src/generated/instructions/initialize.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 @@ -258,28 +258,26 @@ export async function getInitializeInstructionAsync<
}

const getAccountMeta = getAccountMetaFactory(programAddress, 'programId');
const instruction = {
return Object.freeze({
accounts: [
getAccountMeta(accounts.metadata),
getAccountMeta(accounts.authority),
getAccountMeta(accounts.program),
getAccountMeta(accounts.programData),
getAccountMeta(accounts.system),
],
programAddress,
data: getInitializeInstructionDataEncoder().encode(
args as InitializeInstructionDataArgs
),
programAddress,
} as InitializeInstruction<
TProgramAddress,
TAccountMetadata,
TAccountAuthority,
TAccountProgram,
TAccountProgramData,
TAccountSystem
>;

return instruction;
>);
}

export type InitializeInput<
Expand Down Expand Up @@ -358,28 +356,26 @@ export function getInitializeInstruction<
}

const getAccountMeta = getAccountMetaFactory(programAddress, 'programId');
const instruction = {
return Object.freeze({
accounts: [
getAccountMeta(accounts.metadata),
getAccountMeta(accounts.authority),
getAccountMeta(accounts.program),
getAccountMeta(accounts.programData),
getAccountMeta(accounts.system),
],
programAddress,
data: getInitializeInstructionDataEncoder().encode(
args as InitializeInstructionDataArgs
),
programAddress,
} as InitializeInstruction<
TProgramAddress,
TAccountMetadata,
TAccountAuthority,
TAccountProgram,
TAccountProgramData,
TAccountSystem
>;

return instruction;
>);
}

export type ParsedInitializeInstruction<
Expand Down
12 changes: 5 additions & 7 deletions clients/js/src/generated/instructions/setAuthority.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 @@ -165,26 +165,24 @@ export function getSetAuthorityInstruction<
const args = { ...input };

const getAccountMeta = getAccountMetaFactory(programAddress, 'programId');
const instruction = {
return Object.freeze({
accounts: [
getAccountMeta(accounts.account),
getAccountMeta(accounts.authority),
getAccountMeta(accounts.program),
getAccountMeta(accounts.programData),
],
programAddress,
data: getSetAuthorityInstructionDataEncoder().encode(
args as SetAuthorityInstructionDataArgs
),
programAddress,
} as SetAuthorityInstruction<
TProgramAddress,
TAccountAccount,
TAccountAuthority,
TAccountProgram,
TAccountProgramData
>;

return instruction;
>);
}

export type ParsedSetAuthorityInstruction<
Expand Down
Loading