-
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.
[TS SDK] Support
transfer
fungible token (#8631)
* support fungible token transfer operation * support fungible token transfer operation * support fungible token transfer operation * update comments * fix lint * query indexer to check ir token is nft or ft * note only support tokenv2 standard
- Loading branch information
Showing
10 changed files
with
261 additions
and
54 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
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
30 changes: 18 additions & 12 deletions
30
ecosystem/typescript/sdk/src/indexer/queries/getTokenData.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,16 +1,22 @@ | ||
query getTokenData($token_id: String) { | ||
current_token_datas(where: { token_data_id_hash: { _eq: $token_id } }) { | ||
token_data_id_hash | ||
name | ||
collection_name | ||
creator_address | ||
default_properties | ||
largest_property_version | ||
query getTokenData($where_condition: current_token_datas_v2_bool_exp) { | ||
current_token_datas_v2(where: $where_condition) { | ||
token_data_id | ||
token_name | ||
token_uri | ||
token_properties | ||
token_standard | ||
largest_property_version_v1 | ||
maximum | ||
metadata_uri | ||
payee_address | ||
royalty_points_denominator | ||
royalty_points_numerator | ||
is_fungible_v2 | ||
supply | ||
last_transaction_version | ||
last_transaction_timestamp | ||
current_collection { | ||
collection_id | ||
collection_name | ||
creator_address | ||
uri | ||
current_supply | ||
} | ||
} | ||
} |
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
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
Oops, something went wrong.