Skip to content

Conversation

@rustopian
Copy link

@rustopian rustopian commented Nov 14, 2025

[WIP]

Most of the diff is generated code - CI demands it

Problem

Client generation uses a lot of fragile manual scripting.

Solution

Update to using Codama macros.

@rustopian rustopian changed the title update to use codama macros [WIP] update to use codama macros Nov 14, 2025
@rustopian rustopian requested a review from grod220 November 14, 2025 22:17
@rustopian rustopian changed the title [WIP] update to use codama macros IDL: [WIP] update to use codama macros Nov 14, 2025
> = {
programAddress: Address<TProgram>;
accounts: {
/** Stake account to be updated */
Copy link
Author

@rustopian rustopian Nov 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using Codama gen, I believe these comments would have to be added by a custom hand-written visitor for each instruction. I'm considering proposing a Codama feature that allows them to be generated just as Anchor did with desc on accounts, which would restore them here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants