Skip to content

Feat/idl serde #67

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

Merged
merged 4 commits into from
Oct 29, 2024
Merged

Feat/idl serde #67

merged 4 commits into from
Oct 29, 2024

Conversation

jordy25519
Copy link
Collaborator

@jordy25519 jordy25519 commented Oct 29, 2024

Changes:

  • Derive serde Serialize/Deserialize on IDL generated types. many consumers need to serialize IDL types outside of anchor/borsh at somepoint
  • Fix MarketType shadowing into()s everywhere
  • Refactor: Placed statically defined types into its own custom_types.rs module in drift-idl-gen separate from macro generated stuff

Adds:

  • MarketId::new(index, type) and market_id.is_spot()

Move custom defined IDL helper types into isolated module
Bump deps in Cargo.lock
@jordy25519 jordy25519 merged commit 22f747e into main Oct 29, 2024
@jordy25519 jordy25519 deleted the feat/idl-serde branch October 29, 2024 07:02
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

Successfully merging this pull request may close these issues.

1 participant