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 @@ -42,12 +42,12 @@
},
"homepage": "https://github.com/solana-program/system#readme",
"peerDependencies": {
"@solana/kit": "^3.0"
"@solana/kit": "^4.0"
},
"devDependencies": {
"@ava/typescript": "^4.1.0",
"@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/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/accounts/nonce.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/errors/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/errors/system.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/advanceNonceAccount.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 @@ -143,22 +143,20 @@ export function getAdvanceNonceAccountInstruction<
}

const getAccountMeta = getAccountMetaFactory(programAddress, 'omitted');
const instruction = {
return Object.freeze({
accounts: [
getAccountMeta(accounts.nonceAccount),
getAccountMeta(accounts.recentBlockhashesSysvar),
getAccountMeta(accounts.nonceAuthority),
],
programAddress,
data: getAdvanceNonceAccountInstructionDataEncoder().encode({}),
programAddress,
} as AdvanceNonceAccountInstruction<
TProgramAddress,
TAccountNonceAccount,
TAccountRecentBlockhashesSysvar,
TAccountNonceAuthority
>;

return instruction;
>);
}

export type ParsedAdvanceNonceAccountInstruction<
Expand Down
16 changes: 6 additions & 10 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 @@ -112,15 +112,13 @@ export function getAllocateInstruction<
const args = { ...input };

const getAccountMeta = getAccountMetaFactory(programAddress, 'omitted');
const instruction = {
return Object.freeze({
accounts: [getAccountMeta(accounts.newAccount)],
programAddress,
data: getAllocateInstructionDataEncoder().encode(
args as AllocateInstructionDataArgs
),
} as AllocateInstruction<TProgramAddress, TAccountNewAccount>;

return instruction;
programAddress,
} as AllocateInstruction<TProgramAddress, TAccountNewAccount>);
}

export type ParsedAllocateInstruction<
Expand Down Expand Up @@ -154,9 +152,7 @@ export function parseAllocateInstruction<
};
return {
programAddress: instruction.programAddress,
accounts: {
newAccount: getNextAccount(),
},
accounts: { newAccount: getNextAccount() },
data: getAllocateInstructionDataDecoder().decode(instruction.data),
};
}
17 changes: 6 additions & 11 deletions clients/js/src/generated/instructions/allocateWithSeed.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 @@ -153,22 +153,20 @@ export function getAllocateWithSeedInstruction<
const args = { ...input };

const getAccountMeta = getAccountMetaFactory(programAddress, 'omitted');
const instruction = {
return Object.freeze({
accounts: [
getAccountMeta(accounts.newAccount),
getAccountMeta(accounts.baseAccount),
],
programAddress,
data: getAllocateWithSeedInstructionDataEncoder().encode(
args as AllocateWithSeedInstructionDataArgs
),
programAddress,
} as AllocateWithSeedInstruction<
TProgramAddress,
TAccountNewAccount,
TAccountBaseAccount
>;

return instruction;
>);
}

export type ParsedAllocateWithSeedInstruction<
Expand Down Expand Up @@ -203,10 +201,7 @@ export function parseAllocateWithSeedInstruction<
};
return {
programAddress: instruction.programAddress,
accounts: {
newAccount: getNextAccount(),
baseAccount: getNextAccount(),
},
accounts: { newAccount: getNextAccount(), baseAccount: getNextAccount() },
data: getAllocateWithSeedInstructionDataDecoder().decode(instruction.data),
};
}
16 changes: 6 additions & 10 deletions clients/js/src/generated/instructions/assign.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 @@ -115,15 +115,13 @@ export function getAssignInstruction<
const args = { ...input };

const getAccountMeta = getAccountMetaFactory(programAddress, 'omitted');
const instruction = {
return Object.freeze({
accounts: [getAccountMeta(accounts.account)],
programAddress,
data: getAssignInstructionDataEncoder().encode(
args as AssignInstructionDataArgs
),
} as AssignInstruction<TProgramAddress, TAccountAccount>;

return instruction;
programAddress,
} as AssignInstruction<TProgramAddress, TAccountAccount>);
}

export type ParsedAssignInstruction<
Expand Down Expand Up @@ -157,9 +155,7 @@ export function parseAssignInstruction<
};
return {
programAddress: instruction.programAddress,
accounts: {
account: getNextAccount(),
},
accounts: { account: getNextAccount() },
data: getAssignInstructionDataDecoder().decode(instruction.data),
};
}
17 changes: 6 additions & 11 deletions clients/js/src/generated/instructions/assignWithSeed.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 @@ -148,22 +148,20 @@ export function getAssignWithSeedInstruction<
const args = { ...input };

const getAccountMeta = getAccountMetaFactory(programAddress, 'omitted');
const instruction = {
return Object.freeze({
accounts: [
getAccountMeta(accounts.account),
getAccountMeta(accounts.baseAccount),
],
programAddress,
data: getAssignWithSeedInstructionDataEncoder().encode(
args as AssignWithSeedInstructionDataArgs
),
programAddress,
} as AssignWithSeedInstruction<
TProgramAddress,
TAccountAccount,
TAccountBaseAccount
>;

return instruction;
>);
}

export type ParsedAssignWithSeedInstruction<
Expand Down Expand Up @@ -198,10 +196,7 @@ export function parseAssignWithSeedInstruction<
};
return {
programAddress: instruction.programAddress,
accounts: {
account: getNextAccount(),
baseAccount: getNextAccount(),
},
accounts: { account: getNextAccount(), baseAccount: getNextAccount() },
data: getAssignWithSeedInstructionDataDecoder().decode(instruction.data),
};
}
12 changes: 5 additions & 7 deletions clients/js/src/generated/instructions/authorizeNonceAccount.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 @@ -138,22 +138,20 @@ export function getAuthorizeNonceAccountInstruction<
const args = { ...input };

const getAccountMeta = getAccountMetaFactory(programAddress, 'omitted');
const instruction = {
return Object.freeze({
accounts: [
getAccountMeta(accounts.nonceAccount),
getAccountMeta(accounts.nonceAuthority),
],
programAddress,
data: getAuthorizeNonceAccountInstructionDataEncoder().encode(
args as AuthorizeNonceAccountInstructionDataArgs
),
programAddress,
} as AuthorizeNonceAccountInstruction<
TProgramAddress,
TAccountNonceAccount,
TAccountNonceAuthority
>;

return instruction;
>);
}

export type ParsedAuthorizeNonceAccountInstruction<
Expand Down
19 changes: 8 additions & 11 deletions clients/js/src/generated/instructions/createAccount.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 @@ -156,22 +156,22 @@ export function getCreateAccountInstruction<
);

const getAccountMeta = getAccountMetaFactory(programAddress, 'omitted');
const instruction = {
return Object.freeze({
accounts: [
getAccountMeta(accounts.payer),
getAccountMeta(accounts.newAccount),
],
programAddress,
byteDelta,
data: getCreateAccountInstructionDataEncoder().encode(
args as CreateAccountInstructionDataArgs
),
programAddress,
} as CreateAccountInstruction<
TProgramAddress,
TAccountPayer,
TAccountNewAccount
>;

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

export type ParsedCreateAccountInstruction<
Expand Down Expand Up @@ -206,10 +206,7 @@ export function parseCreateAccountInstruction<
};
return {
programAddress: instruction.programAddress,
accounts: {
payer: getNextAccount(),
newAccount: getNextAccount(),
},
accounts: { payer: getNextAccount(), newAccount: getNextAccount() },
data: getCreateAccountInstructionDataDecoder().decode(instruction.data),
};
}
Loading