-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
86 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
ecosystem/typescript/sdk/src/indexer/queries/CurrentTokenOwnershipFieldsFragment.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
fragment CurrentTokenOwnershipFields on current_token_ownerships_v2 { | ||
token_standard | ||
is_fungible_v2 | ||
is_soulbound_v2 | ||
property_version_v1 | ||
table_type_v1 | ||
token_properties_mutated_v1 | ||
amount | ||
last_transaction_timestamp | ||
last_transaction_version | ||
storage_id | ||
owner_address | ||
current_token_data { | ||
token_name | ||
token_data_id | ||
token_uri | ||
token_properties | ||
supply | ||
maximum | ||
last_transaction_version | ||
last_transaction_timestamp | ||
largest_property_version_v1 | ||
current_collection { | ||
collection_name | ||
creator_address | ||
description | ||
uri | ||
collection_id | ||
last_transaction_version | ||
current_supply | ||
mutable_description | ||
total_minted_v2 | ||
table_handle_v1 | ||
mutable_uri | ||
} | ||
} | ||
} |
37 changes: 2 additions & 35 deletions
37
ecosystem/typescript/sdk/src/indexer/queries/getOwnedTokens.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,10 @@ | ||
#import "./CurrentTokenOwnershipFieldsFragment"; | ||
query getOwnedTokens($address: String!, $offset: Int, $limit: Int) { | ||
current_token_ownerships_v2( | ||
where: { owner_address: { _eq: $address }, amount: { _gt: 0 } } | ||
offset: $offset | ||
limit: $limit | ||
) { | ||
token_standard | ||
is_fungible_v2 | ||
is_soulbound_v2 | ||
property_version_v1 | ||
table_type_v1 | ||
token_properties_mutated_v1 | ||
amount | ||
last_transaction_timestamp | ||
last_transaction_version | ||
storage_id | ||
owner_address | ||
current_token_data { | ||
token_name | ||
token_data_id | ||
token_uri | ||
token_properties | ||
supply | ||
maximum | ||
last_transaction_version | ||
last_transaction_timestamp | ||
largest_property_version_v1 | ||
current_collection { | ||
collection_name | ||
creator_address | ||
description | ||
uri | ||
collection_id | ||
last_transaction_version | ||
current_supply | ||
mutable_description | ||
total_minted_v2 | ||
table_handle_v1 | ||
mutable_uri | ||
} | ||
} | ||
...CurrentTokenOwnershipFields | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters