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 showFungible option flag to das #215

Merged

Conversation

Nagaprasadvr
Copy link
Collaborator

@Nagaprasadvr Nagaprasadvr commented Nov 14, 2024

  • add showFungible flag to options which will be used by getAsset, getAssetsByOwner etc
  • impl showFungible - match assets which are either fungibleToken or fungibleAsset

@Nagaprasadvr Nagaprasadvr changed the title add showFungible option flag to das Add showFungible option flag to das Nov 15, 2024
Copy link
Collaborator

@kespinola kespinola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs integration test.

digital_asset_types/src/dao/scopes/asset.rs Outdated Show resolved Hide resolved
@Nagaprasadvr Nagaprasadvr requested a review from danenbm December 27, 2024 12:46
Copy link
Contributor

@danenbm danenbm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@danenbm danenbm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM. After I approve everything I'm also going to ask Helius to take a look at all these before we merge them into main. It might be good to just combine 214 and 215 in some way so that same content needs to be reviewed twice by them.

Or maybe its just as simple as I will let them know 214 already contained in 215.

@kespinola kespinola force-pushed the das-46-show-fungibles-rpc-option branch 2 times, most recently from b1de06c to e436a14 Compare January 6, 2025 20:37
asset_data.one(conn).await.and_then(|o| match o {
Some((a, d)) => Ok((a, d)),
Some((a, Some(d))) => Ok((a, d)),
Copy link
Collaborator

@kespinola kespinola Jan 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change now enforces that DAS will only return an asset when its metadata data info is also available. For fungibles this means DAS will return not fund unless the mint has associated metadata account , metadata pointer (for token extensions), core single account asset.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

related to #231

digital_asset_types/src/dapi/common/asset.rs Show resolved Hide resolved
@kespinola kespinola force-pushed the das-46-show-fungibles-rpc-option branch 4 times, most recently from 9d8818d to a72b496 Compare January 7, 2025 14:25
@kespinola kespinola force-pushed the das-46-show-fungibles-rpc-option branch from a72b496 to 5aaf576 Compare January 13, 2025 11:05
@kespinola kespinola merged commit 3e4fb88 into metaplex-foundation:main Jan 13, 2025
3 checks passed
@kespinola kespinola deleted the das-46-show-fungibles-rpc-option branch January 13, 2025 11:32
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.

3 participants