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/memo#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/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
17 changes: 6 additions & 11 deletions clients/js/src/generated/instructions/addMemo.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 @@ -81,23 +81,18 @@ export function getAddMemoInstruction<
})
);

const instruction = {
return Object.freeze({
accounts: remainingAccounts,
programAddress,
data: getAddMemoInstructionDataEncoder().encode(
args as AddMemoInstructionDataArgs
),
} as AddMemoInstruction<TProgramAddress>;

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

export type ParsedAddMemoInstruction<
TProgram extends string = typeof MEMO_PROGRAM_ADDRESS,
> = {
programAddress: Address<TProgram>;
data: AddMemoInstructionData;
};
> = { programAddress: Address<TProgram>; data: AddMemoInstructionData };

export function parseAddMemoInstruction<TProgram extends string>(
instruction: Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array>
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
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/programs/memo.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
8 changes: 4 additions & 4 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 All @@ -23,7 +23,7 @@ import {
* @internal
*/
export function expectSome<T>(value: T | null | undefined): T {
if (value == null) {
if (value === null || value === undefined) {
throw new Error('Expected a value but received null or undefined.');
}
return value;
Expand All @@ -48,7 +48,7 @@ export function expectAddress<T extends string = string>(
return value.address;
}
if (Array.isArray(value)) {
return value[0];
return value[0] as Address<T>;
}
return value as Address<T>;
}
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.1",
"@iarna/toml": "^2.2.5",
"codama": "^1.3",
Expand Down
89 changes: 77 additions & 12 deletions pnpm-lock.yaml

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