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

Add decimals field to token queries #291

Merged
merged 1 commit into from
Feb 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading