Skip to content

Conversation

@buffalojoec
Copy link
Contributor

@buffalojoec buffalojoec commented Mar 17, 2025

In preparation for the removal of the Config builtin from the Agave monorepo, we need to update the generated client to support some of the original builtin's API, to minimize friction during builtin eviction.

This PR basically extracts everything the program's processor does not need into the client. This way, Agave can simply import the client to work with Config accounts and the Config program.

It also drops one unnecessary free function and one unnecessary associated function on ConfigKeys.

@buffalojoec
Copy link
Contributor Author

buffalojoec commented Mar 17, 2025

Note: depends on codama-idl/codama#510
cc @lorisleiva


@joncinque Feel free to take a look in the meantime and let me know if this seems sensible. CU reduction! 💪🏼

@buffalojoec buffalojoec requested a review from joncinque March 17, 2025 16:34
@buffalojoec buffalojoec marked this pull request as ready for review March 17, 2025 16:34
Copy link
Contributor

@joncinque joncinque left a comment

Choose a reason for hiding this comment

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

Looks great overall! Mostly small stuff

@buffalojoec buffalojoec merged commit 7cc4193 into main Mar 18, 2025
10 checks passed
@buffalojoec buffalojoec deleted the client-love branch March 18, 2025 11:30
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.

3 participants