Skip to content
Open
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
13 changes: 9 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
IS_TEST=
DISCOURSE_API_KEY=
DISCOURSE_API_USERNAME=
DISCOURSE_HOST=
APP_ID=
DAO_CREATED=
GRANT_CREATED=
GRANT_APPLIED_TO=
APPLICATION_UPDATE=
REVIEWER_INVITED_TO_DAO=
REVIEWER_ADDED_TO_GRANT_APPLICATION=
REVIEWER_SUBMITTED_REVIEW=
FUND_SENT=
2 changes: 1 addition & 1 deletion .eslintcache

Large diffs are not rendered by default.

40 changes: 40 additions & 0 deletions graphql/ApplicationUpdate.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
query ApplicationUpdate($lowerLimit: Int!, $upperLimit: Int!) {
grantApplications(
subgraphError: allow
where: { updatedAtS_gt: $lowerLimit, updatedAtS_lte: $upperLimit, version_gt: 1, reviewers: [] }
) {
id
state
version
projectName: fields(where: { field_ends_with: "projectName" }) {
values {
title: value
}
}
createdBy: applicantId
createdAtS
grant {
id
reward {
id
asset
committed
token {
id
}
}
workspace {
chain: supportedNetworks
}
}
milestones {
id
title
amount
amountPaid
feedbackDao
feedbackDev
state
}
}
}
18 changes: 18 additions & 0 deletions graphql/DAOCreated.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
query DAOCreated($lowerLimit: Int!, $upperLimit: Int!) {
workspaces(
subgraphError: allow
where: { updatedAtS_gt: $lowerLimit, updatedAtS_lte: $upperLimit }
) {
id
title
about
chain: supportedNetworks
createdAtS
members(where: { accessLevel: admin }) {
actorId
addedBy {
actorId
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
query OnFundsReceived($lowerLimit: Int!, $upperLimit: Int!) {
query FundSent($lowerLimit: Int!, $upperLimit: Int!) {
fundsTransfers(
where: {
createdAtS_gt: $lowerLimit
Expand All @@ -24,8 +24,10 @@ query OnFundsReceived($lowerLimit: Int!, $upperLimit: Int!) {
}
}
grant {
id
title
workspace {
id
title
members(where: { accessLevel: admin, email_not: null }) {
email
Expand Down
46 changes: 0 additions & 46 deletions graphql/GetGrantApplication.graphql

This file was deleted.

38 changes: 38 additions & 0 deletions graphql/GrantAppliedTo.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
query GrantAppliedTo($lowerLimit: Int!, $upperLimit: Int!) {
grantApplications(
subgraphError: allow
where: { updatedAtS_gt: $lowerLimit, updatedAtS_lte: $upperLimit, version: 1 }
) {
id
projectName: fields(where: { field_ends_with: "projectName" }) {
values {
title: value
}
}
createdBy: applicantId
createdAtS
grant {
id
reward {
id
asset
committed
token {
id
}
}
workspace {
chain: supportedNetworks
}
}
milestones {
id
title
amount
amountPaid
feedbackDao
feedbackDev
state
}
}
}
24 changes: 24 additions & 0 deletions graphql/GrantCreated.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
query GrantCreated($lowerLimit: Int!, $upperLimit: Int!) {
grants(
subgraphError: allow
where: { updatedAtS_gt: $lowerLimit, updatedAtS_lte: $upperLimit }
) {
id
title
summary
workspace {
id
chain: supportedNetworks
}
creatorId
createdAtS
reward {
id
committed
asset
token {
id
}
}
}
}
40 changes: 40 additions & 0 deletions graphql/ReviewerAddedToGrantApplication.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
query ReviewerAddedToGrantApplication($lowerLimit: Int!, $upperLimit: Int!) {
grantApplications(
subgraphError: allow
where: { updatedAtS_gt: $lowerLimit, updatedAtS_lte: $upperLimit, version_gt: 1, reviewers_not: [] }
) {
id
state
version
projectName: fields(where: { field_ends_with: "projectName" }) {
values {
title: value
}
}
createdBy: applicantId
createdAtS
grant {
id
reward {
id
asset
committed
token {
id
}
}
workspace {
chain: supportedNetworks
}
}
milestones {
id
title
amount
amountPaid
feedbackDao
feedbackDev
state
}
}
}
18 changes: 18 additions & 0 deletions graphql/ReviewerInvitedToDAO.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
query ReviewerInvitedToDAO($lowerLimit: Int!, $upperLimit: Int!) {
workspaceMembers(
subgraphError: allow
where: {
updatedAt_gt: $lowerLimit
updatedAt_lte: $upperLimit
email_not: null
accessLevel: reviewer
}
) {
email
workspace {
title
chain: supportedNetworks
}
address: actorId
}
}
17 changes: 17 additions & 0 deletions graphql/ReviewerSubmittedReview.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
query ReviewerSubmittedQuery($lowerLimit: Int!, $upperLimit: Int!) {
reviews(subgraphError: allow, where: { createdAtS_gt: $lowerLimit, createdAtS_lte: $upperLimit }) {
id
application {
id
}
reviewerId
reviewer {
actorId
workspace {
id
chain: supportedNetworks
}
}
publicReviewDataHash
}
}
36 changes: 0 additions & 36 deletions graphql/applicant/OnApplicationAccept.graphql

This file was deleted.

37 changes: 0 additions & 37 deletions graphql/applicant/OnApplicationReject.graphql

This file was deleted.

33 changes: 0 additions & 33 deletions graphql/applicant/OnApplicationResubmit.graphql

This file was deleted.

Loading