@@ -2,7 +2,7 @@ import { gql } from 'graphql-request';
2
2
3
3
export const getRounds = gql `
4
4
query Rounds($chainId: Int!, $roundIds: [String!]!) {
5
- rounds(filter : { chainId: { equalTo : $chainId }, id: { in : $roundIds } }) {
5
+ rounds(where : { chainId: { _eq : $chainId }, id: { _in : $roundIds } }) {
6
6
id
7
7
chainId
8
8
roundMetadata
@@ -15,15 +15,15 @@ export const getRounds = gql`
15
15
16
16
export const getRoundsWithApplications = gql `
17
17
query RoundsApplications($chainId: Int!, $roundIds: [String!]!) {
18
- rounds(filter : { chainId: { equalTo : $chainId }, id: { in : $roundIds } }) {
18
+ rounds(where : { chainId: { _eq : $chainId }, id: { _in : $roundIds } }) {
19
19
chainId
20
20
id
21
21
roundMetadata
22
22
roundMetadataCid
23
23
donationsStartTime
24
24
donationsEndTime
25
25
matchTokenAddress
26
- applications(filter : { status: { equalTo : APPROVED } }) {
26
+ applications(where : { status: { _eq : APPROVED } }) {
27
27
id
28
28
anchorAddress
29
29
metadata
@@ -32,7 +32,7 @@ export const getRoundsWithApplications = gql`
32
32
projectId
33
33
totalDonationsCount
34
34
totalAmountDonatedInUsd
35
- project: canonicalProject {
35
+ project {
36
36
metadata
37
37
metadataCid
38
38
}
@@ -43,14 +43,14 @@ export const getRoundsWithApplications = gql`
43
43
44
44
export const getRoundsWithApplicationsStatus = gql `
45
45
query RoundsWithApplicationsStatus($chainId: Int!, $roundIds: [String!]!) {
46
- rounds(filter : { chainId: { equalTo : $chainId }, id: { in : $roundIds } }) {
46
+ rounds(where : { chainId: { _eq : $chainId }, id: { _in : $roundIds } }) {
47
47
chainId
48
48
id
49
49
roundMetadata
50
50
roundMetadataCid
51
51
donationsStartTime
52
52
donationsEndTime
53
- applications(filter : { status: { equalTo : APPROVED } }) {
53
+ applications(where : { status: { _eq : APPROVED } }) {
54
54
id
55
55
anchorAddress
56
56
metadata
@@ -59,7 +59,7 @@ export const getRoundsWithApplicationsStatus = gql`
59
59
projectId
60
60
totalDonationsCount
61
61
totalAmountDonatedInUsd
62
- project: canonicalProject {
62
+ project {
63
63
metadata
64
64
metadataCid
65
65
}
@@ -70,22 +70,20 @@ export const getRoundsWithApplicationsStatus = gql`
70
70
71
71
export const getRoundWithApplications = gql `
72
72
query RoundApplications($chainId: Int!, $roundId: String!) {
73
- rounds(
74
- filter: { chainId: { equalTo: $chainId }, id: { equalTo: $roundId } }
75
- ) {
73
+ rounds(where: { chainId: { _eq: $chainId }, id: { _eq: $roundId } }) {
76
74
chainId
77
75
id
78
76
roundMetadata
79
77
roundMetadataCid
80
78
donationsStartTime
81
79
donationsEndTime
82
- applications(filter : { status: { equalTo : APPROVED } }) {
80
+ applications(where : { status: { _eq : APPROVED } }) {
83
81
id
84
82
metadata
85
83
metadataCid
86
84
status
87
85
projectId
88
- project: canonicalProject {
86
+ project {
89
87
metadata
90
88
metadataCid
91
89
}
@@ -112,9 +110,7 @@ export const getApplicationWithRound = gql`
112
110
113
111
export const getRoundMatchingDistributions = gql `
114
112
query RoundMatchingDistributions($chainId: Int!, $roundId: String!) {
115
- rounds(
116
- filter: { chainId: { equalTo: $chainId }, id: { equalTo: $roundId } }
117
- ) {
113
+ rounds(where: { chainId: { _eq: $chainId }, id: { _eq: $roundId } }) {
118
114
matchAmount
119
115
donationsEndTime
120
116
matchingDistribution
0 commit comments