Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CPI Interfaces #29

Closed
armaniferrante opened this issue Jan 21, 2021 · 1 comment
Closed

CPI Interfaces #29

armaniferrante opened this issue Jan 21, 2021 · 1 comment

Comments

@armaniferrante
Copy link
Member

armaniferrante commented Jan 21, 2021

Currently, a CPI interface is implemented manually. See the "opaque relay" here https://github.com/project-serum/anchor/blob/master/examples/lockup/programs/lockup/src/lib.rs#L232.

Instead, we should be able to define a trait for CPI and allow any program to implement it, so that we can have cleaner, typed APIs instead of using the raw solana_program::program::invoke apis.

@armaniferrante
Copy link
Member Author

Completed by #66.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant