-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add Transaction.referenceInputs
- Loading branch information
Showing
7 changed files
with
161 additions
and
0 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
35 changes: 35 additions & 0 deletions
35
...b-hasura/src/example_queries/transactions/transactionsByHashesWithReferenceInputs.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,35 @@ | ||
query transactionsByHashesWithReferenceInputs( | ||
$hashes: [Hash32Hex]! | ||
) { | ||
transactions( | ||
where: { hash: { _in: $hashes }}, | ||
order_by: { hash: desc } | ||
) { | ||
hash | ||
referenceInputs(order_by: { sourceTxHash: asc }) { | ||
address | ||
sourceTransaction { | ||
hash | ||
} | ||
sourceTxHash | ||
sourceTxIndex | ||
} | ||
referenceInputs_aggregate(order_by: { sourceTxHash: asc }) { | ||
aggregate { | ||
avg { | ||
value | ||
} | ||
count | ||
max { | ||
value | ||
} | ||
min { | ||
value | ||
} | ||
sum { | ||
value | ||
} | ||
} | ||
} | ||
} | ||
} |
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