I want to build a counter program using anchor where each transactions increment the count of the specific usertransfer-hooks that does thecreates(or get) a PDA when a user makes a transaction rather thanusing the signer public key as a global oneseed.
Seems transfer-hooks only let'sI'm using this code as a template : https://github.com/0ximalice/spl-token-2022-transfer-hook-anchor/blob/main/programs/transferhook/src/lib.rs
Issue is that you work with static derivedhave to hardcode the accounts and add them to your list of extra_accounts_meta. Is it
I'm unsure it's possible to achieve it using, so I am asking if there is work around that lets the signer ofdynamically add the transactioncorrect accounts needed for the transfer?
There is a small section mentioning it (I think) here, but I have trouble understanding it : https://github.com/solana-labs/solana-program-library/blob/master/libraries/tlv-account-resolution/README.md#types-of-required-accounts