-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[TS SDK] Add query to fetch all collections that an account has tokens for #8498
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks fine to me. Could you get @rtso or @bowenyang007 to review the query?
@@ -235,6 +235,11 @@ describe("Indexer", () => { | |||
expect(tokens.current_token_ownerships_v2).toHaveLength(2); | |||
}); | |||
|
|||
it("gets account current tokens from a specified token standrd", async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
standard
:)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Query looks correct to me but yeah best to get an indexer expert to double check.
tokenStandard?: TokenStandard; | ||
options?: PaginationArgs; | ||
}, | ||
): Promise<GetCollectionsWithOwnedTokensQuery> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment about what this returns and the return type here don't match, could you update that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Query looks good to me.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
✅ Forge suite
|
✅ Forge suite
|
✅ Forge suite
|
…s for (#8498) * add query to get all collections that an account has tokens for * use token standard param in query condition * update changelog * address feedback
…s for (#8498) * add query to get all collections that an account has tokens for * use token standard param in query condition * update changelog * address feedback
Description
Add query to fetch all collections that an account has tokens for. supports v1 and/or v2 standards
Test Plan