0

Context: For Solana smart contract development, we normally store state in PDA because the program is stateless. eg. For ERC20 token, you need to deploy a new contract for every token while for solana SPL token, the token Program only need to be deployed once (by the Solana core dev), and every new token created by initiating token mint account.

When does it makes sense to deploy Program for every new instance?

Question: For Wormhole Crosschain tokens (Native Token Transfer), for each crosschain token, we need to deploy a new Program Binary. Why do we need to do this?

https://github.com/wormhole-foundation/native-token-transfers/issues/595


Some potential rationale:

  • Security isolation - Each token's logic runs in a separate program instance
  • Simplified upgrades - Tokens can be upgraded independently
  • Cleaner permissions - Each token has its own mint/custody authorities

Do these make sense ever in Solana contract development?

2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.