-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Update IDL program #2365
Update IDL program #2365
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
Note to self: The root of much evil is the
|
I ended up not adding too many extra features just because IDL is already such a weird and outdated program that trying to modify it without making a breaking change is real pain and not necessarily worth the effort if it's already doing the job. |
The IDL program uses a bunch of deprecated account types. Updating to the new account types is non-trivial because of how some of the IDL types are stored in
/lang
and how the new account types require knowing theprogram_id
of the program ahead of time.Might also take the opportunity to add some requested security features from #1215 in which only the program upgrade authority can create and change the IDL. Not too sure about this yet, would need to check with users first how much of a hassle this change would be. Usually program upgrade authorities are gated behind complex multisig arrangement, it might be quite annoying to have to go through the process of signing an IDL update every time, although maybe not if you just update the IDL whenever the program is update, let's find out.
Another security thing is passing the wrong IDL account, noted here #1215 (comment), we can look into adding some constraints there too.