Skip to content

Commit

Permalink
update events
Browse files Browse the repository at this point in the history
  • Loading branch information
arjanjohan committed Jun 1, 2024
1 parent 977069a commit 206e3fd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
4 changes: 3 additions & 1 deletion packages/hardhat/contracts/DonationContract.sol
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ contract DonationContract {
event CampaignCreated(
uint campaignId,
address campaignOwner,
string campaignName
string campaignName,
uint goalAmount,
address goalToken
);
event CampaignClosed(uint campaignId);
event DonationReceived(
Expand Down
16 changes: 9 additions & 7 deletions packages/subgraph/CampaignsQuery.graphql
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
query CampaignsQuery {{
campaigns(first: 5) {
campaignId,
campaignOwner,
isLive,
campaignName
query CampaignsQuery {
{
campaigns(first: 5) {
campaignId,
campaignOwner,
isLive,
campaignName
}
}
}}
}

0 comments on commit 206e3fd

Please sign in to comment.