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

example: More powerful non fungible ids query #777

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

dhedey
Copy link
Contributor

@dhedey dhedey commented Aug 2, 2024

Summary

(Untested, we can test when rebasing onto develop)

Details

Demonstrates a pretty generic and highly performant wrapper around the definitions / entries queries.

Testing

Needs testing

@dhedey dhedey force-pushed the example/more-powerful-non-fungible-ids-query branch from 6eeee82 to c80bbe3 Compare August 2, 2024 17:45
@dhedey dhedey force-pushed the tweak/fix-docs-and-formatting branch from 01b5ace to efe6f02 Compare August 9, 2024 13:32
@@ -76,6 +76,9 @@ private EntityAddress(string address)
_address = address;
}

// See https://radixdlt.atlassian.net/wiki/spaces/S/pages/3045556302/REP-71+-+Address+Formats+and+Vanity+Addresses
public bool IsNonFungibleResource => _address.Contains("1ng") || _address.Contains("1nf") || _address.Contains("1n2") || _address.Contains("1nt");
Copy link
Contributor

Choose a reason for hiding this comment

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

  1. Guess we shouldn't link to non-public resources?
  2. Are you sure this is safe? Is it guaranteed that say 1ng substring won't be observed in package_1loc2dsadaxxxx1ngdasdasdas or something?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

  1. I'm okay with it, but can change it to REP-71 if we'd rather
  2. Yes it is; but we can do it as an entity byte check if you'd rather change EntityAddress to work over a toolkit address

Base automatically changed from tweak/fix-docs-and-formatting to develop August 13, 2024 17:29
@dhedey dhedey force-pushed the example/more-powerful-non-fungible-ids-query branch from c80bbe3 to 4582fb4 Compare August 13, 2024 17:33
Fix include value and include deleted flags
Copy link

sonarqubecloud bot commented Sep 3, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot

See analysis details on SonarCloud

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

Successfully merging this pull request may close these issues.

2 participants