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

Add type declarations for the IDL data? #14

Open
DaemonWAGMI opened this issue Jan 21, 2022 · 0 comments
Open

Add type declarations for the IDL data? #14

DaemonWAGMI opened this issue Jan 21, 2022 · 0 comments

Comments

@DaemonWAGMI
Copy link
Contributor

I'm using the src/idl/clearing_house.json data to parse returned errors, and have a local type declaration for the IDL structure. Might be handy to add to the SDK. Here is my partial (only using the errors portion):

export type ClearingHouseIdl = {
  errors: ClearingHouseIdlErrors[];
};

export type ClearingHouseIdlErrors = {
  code: number;
  message: string;
  name: string;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant