-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Labels
EnhancementThis improve the product or Código's source codeThis improve the product or Código's source codeTodoThis item hasn't been startedThis item hasn't been startedUsabilityThis is an enhancement on the product usageThis is an enhancement on the product usage
Description
Is your enhancement request related to a problem? Please describe.
Allow the use of the CSL in Anchor code generation.
Now it is not possible to switch from one target to the other (Native - Anchor) for methods that include a csl cpi without re-writing the CIDL code.
CIDL
- name: stake
uses:
- csl_spl_token.transfer_checked
Generating and building for Anchor gives the following error:

Describe the solution you'd like
Handle code generation to avoid the need of rewritings for at least each of the solana targets.
(while) Adding support to CSL, the following issues should be address or fix
- Add support for SPL Token Types #44
- using csl_spl_assoc_token namespace crashes the generator in Anchor #80
- Not recognized type in Anchor #81
-
payerattr not generated forinitof spl accounts #82 - SPL Token accounts generates redundant and sometimes wrong owner checks in Anchor #84
- TokenProgram.mint_to
assoc_token_accountparam name is inadecuate #85 - TokenProg.set_authority generates a wrong type/name for the
owned_pubkeyparam #87 - undefined deriveCslSplTokenAccount #91
Metadata
Metadata
Assignees
Labels
EnhancementThis improve the product or Código's source codeThis improve the product or Código's source codeTodoThis item hasn't been startedThis item hasn't been startedUsabilityThis is an enhancement on the product usageThis is an enhancement on the product usage