Skip to content

feat(sdk-coin-sol): resolve Token-2022 transfer hook accounts live - #9515

Merged
abhishekagrawal080 merged 1 commit into
masterfrom
CSHLD-1185-transfer-hook
Aug 19, 2026
Merged

feat(sdk-coin-sol): resolve Token-2022 transfer hook accounts live#9515
abhishekagrawal080 merged 1 commit into
masterfrom
CSHLD-1185-transfer-hook

Conversation

@abhishekagrawal080

@abhishekagrawal080 abhishekagrawal080 commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

TICKET: CSHLD-1185

Replace the hardcoded per-mint transfer-hook config with generic, live ExtraAccountMetaList resolution so any Token-2022 mint with a Transfer Hook is supported instead of only the two mints baked into the static config.

  • add ExtraAccountMeta type + optional transferHookAccounts on TokenTransfer
  • Sol.resolveTransferHookAccounts: read the mint's TransferHook extension and resolve extra accounts via the standard spl-transfer-hook-interface helpers (addExtraAccountMetasForExecute) over a getDataFromNode-backed connection; returns [] when the mint has no hook
  • thread transferHookAccounts through TokenTransferBuilder / TransferBuilderV2 (setter + conditional spread; absent when unset)
  • solInstructionFactory consumes the resolved metas; no-hook path unchanged
  • delete src/lib/token2022Config.ts and src/config/token2022StaticConfig.ts
  • builders stay offline: the caller resolves live and threads metas

Ticket: CSHLD-1185

@abhishekagrawal080
abhishekagrawal080 requested a review from a team as a code owner August 18, 2026 08:11
@linear-code

linear-code Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

CSHLD-1185

@abhishekagrawal080
abhishekagrawal080 merged commit 40d342b into master Aug 19, 2026
25 checks passed
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