coral-xyz / anchor

⚓ Solana Sealevel Framework
https://anchor-lang.com
Apache License 2.0
3.68k stars 1.35k forks source link

Manually create typed CPI clients for SPL programs #18

Closed armaniferrante closed 3 years ago

armaniferrante commented 3 years ago

For SPL programs, namely the token program, we should create clients for CPI that can be created from the accounts array. I.e. a manual version of https://github.com/project-serum/anchor/issues/7, since of course the SPL programs aren't written in this framework.

armaniferrante commented 3 years ago

Addressed by #24 with an anchor_spl crate and token module. Not all instructions are implemented, but these can be trivially implemented on an as needed basis.