chore(solana): resync devnet IDLs and regenerate clients - #43
Open
ariessa wants to merge 3 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
High Risk
Large breaking alignment with on-chain layout and transaction account sets across create, fund, complete, reject, and multi-hook flows; incorrect PDA or vault wiring would fail or mis-route funds on mainnet/devnet.
Overview
Resyncs the Solana ACP SDK and generated Codama clients to the updated on-chain program: job identity, escrow vaults, global payment mint, and rent routing.
Job model:
createJobno longer readsacp_state.job_counter; it picks a random per-clientseed, derives the job PDA from["job", client, seed], and passesseedin the instruction.resolveJobPdais public and cache keys include the client. Hook/router/subscription PDAs are seeded from the job account address instead of a numeric job id.getJobIdFromTxHashstill returns the bigint seed by loading the job account afterJobCreated;getJobmapsidtoseedand best-effort loadsdescriptionfrom the creation tx logs.Budget & vault: Per-job
budgetMintis gone—setBudget/funduseacp_state.payment_token. The escrow vault is a program-derived token account created infund()(client ATA create for the vault is dropped). Mint for funded paths comes fromfetchVaultMinton that PDA.Lifecycle instructions:
complete/reject/claimRefund(and hook paths) passsponsorfromacp_statefor reclaimed native rent instead ofplatformTreasury. Reject paths use syncgetRejectInstructionso unfunded jobs omit vault correctly. Subscription completion no longer requiresproviderSigner(F-118). Router fund and submit always use sponsored ALT compression to stay under tx size limits with Alchemy prefunding.acpAgentSolana paths resolvejobPdabeforefetchProposedTermsandhookRouterPda.Reviewed by Cursor Bugbot for commit e6209d4. Bugbot is set up for automated code reviews on this repo. Configure here.