Skip to content

Commit

Permalink
Add decimals field to token queries (#291)
Browse files Browse the repository at this point in the history
add decimals field to token queries
  • Loading branch information
0xmaayan authored Feb 15, 2024
1 parent 3d008ca commit 00d3047
Show file tree
Hide file tree
Showing 6 changed files with 674 additions and 55 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ All notable changes to the Aptos TypeScript SDK will be captured in this file. T

# Unreleased

- Add `decimals` field to token data queries

# 1.7.0 (2024-02-13)

- Add ability to provide ABI to skip ABI fetch, and get roughly 50% performance improvement
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ fragment CurrentTokenOwnershipFields on current_token_ownerships_v2 {
token_properties
token_standard
token_uri
decimals
current_collection {
collection_id
collection_name
Expand Down
1 change: 1 addition & 0 deletions src/internal/queries/getTokenData.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ query getTokenData(
token_properties
token_standard
token_uri
decimals
current_collection {
collection_id
collection_name
Expand Down
6 changes: 6 additions & 0 deletions src/types/generated/operations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export type CurrentTokenOwnershipFieldsFragment = {
token_properties: any;
token_standard: string;
token_uri: string;
decimals: any;
current_collection?: {
collection_id: string;
collection_name: string;
Expand Down Expand Up @@ -211,6 +212,7 @@ export type GetAccountOwnedTokensQuery = {
token_properties: any;
token_standard: string;
token_uri: string;
decimals: any;
current_collection?: {
collection_id: string;
collection_name: string;
Expand Down Expand Up @@ -266,6 +268,7 @@ export type GetAccountOwnedTokensByTokenDataQuery = {
token_properties: any;
token_standard: string;
token_uri: string;
decimals: any;
current_collection?: {
collection_id: string;
collection_name: string;
Expand Down Expand Up @@ -321,6 +324,7 @@ export type GetAccountOwnedTokensFromCollectionQuery = {
token_properties: any;
token_standard: string;
token_uri: string;
decimals: any;
current_collection?: {
collection_id: string;
collection_name: string;
Expand Down Expand Up @@ -593,6 +597,7 @@ export type GetCurrentTokenOwnershipQuery = {
token_properties: any;
token_standard: string;
token_uri: string;
decimals: any;
current_collection?: {
collection_id: string;
collection_name: string;
Expand Down Expand Up @@ -635,6 +640,7 @@ export type GetTokenDataQuery = {
token_properties: any;
token_standard: string;
token_uri: string;
decimals: any;
current_collection?: {
collection_id: string;
collection_name: string;
Expand Down
2 changes: 2 additions & 0 deletions src/types/generated/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export const CurrentTokenOwnershipFieldsFragmentDoc = `
token_properties
token_standard
token_uri
decimals
current_collection {
collection_id
collection_name
Expand Down Expand Up @@ -433,6 +434,7 @@ export const GetTokenData = `
token_properties
token_standard
token_uri
decimals
current_collection {
collection_id
collection_name
Expand Down
Loading

0 comments on commit 00d3047

Please sign in to comment.