Skip to content

Commit f310bf9

Browse files
committed
chore(graphql): add v2 schema and query files
1 parent c1ac57c commit f310bf9

File tree

4 files changed

+573
-0
lines changed

4 files changed

+573
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Query to detect if Horizon (V2) contracts are active in the network
2+
# This query checks for the existence of PaymentsEscrow accounts which indicate V2 is active
3+
4+
query HorizonDetectionQuery {
5+
paymentsEscrowAccounts(first: 1) {
6+
id
7+
}
8+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
query LatestRavs(
2+
$payer: ID!
3+
$dataService: ID!
4+
$serviceProvider: ID!
5+
$collectionIds: [ID!]!
6+
) {
7+
latestRavs(
8+
where: {
9+
payer: $payer
10+
dataService: $dataService
11+
serviceProvider: $serviceProvider
12+
id_in: $collectionIds
13+
}
14+
) {
15+
id
16+
valueAggregate
17+
timestamp
18+
}
19+
}

0 commit comments

Comments
 (0)