Skip to content

Commit

Permalink
Merge pull request #393 from Concordium/simplify-cis2-token-event-query
Browse files Browse the repository at this point in the history
Simplify query
  • Loading branch information
DOBEN authored Jan 17, 2025
2 parents 4ddb2b2 + 8a080bb commit 0c0572e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
1 change: 1 addition & 0 deletions frontend/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ All notable changes to this project will be documented in this file.

### Fix

- Remove unused fields in query for cis2 token events.
- Remove unused sub-query for account transactions in the accounts page.
- Remove unused fields in query for block metrics.

Expand Down
16 changes: 0 additions & 16 deletions frontend/src/queries/useTokenQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,8 @@ event {
asString
}
}
contractIndex
contractSubIndex
tokenAmount
tokenId
transactionHash
parsed
}
...on CisMintEvent {
toAddress {
Expand All @@ -58,20 +54,12 @@ event {
}
}
tokenAmount
contractIndex
contractSubIndex
tokenId
transactionHash
parsed
}
...on CisTokenMetadataEvent {
hashHex
metadataUrl
contractIndex
contractSubIndex
tokenId
transactionHash
parsed
}
... on CisTransferEvent {
toAddress {
Expand All @@ -97,11 +85,7 @@ event {
}
}
tokenAmount
contractIndex
contractSubIndex
tokenId
transactionHash
parsed
}
}
`
Expand Down

0 comments on commit 0c0572e

Please sign in to comment.