Skip to content

Commit

Permalink
fix: changed manifest based on contract update
Browse files Browse the repository at this point in the history
  • Loading branch information
hangleang committed Jun 4, 2024
1 parent 9886581 commit 4453163
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
1 change: 0 additions & 1 deletion subgraph/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ type Poll @entity {
maxVoteOption: BigInt
messageProcessor: Bytes # address
tally: Bytes # address
subsidy: Bytes # address
"merge state after ended"
stateRoot: BigInt # uint256
numSignups: BigInt! # uint256
Expand Down
1 change: 0 additions & 1 deletion subgraph/src/maci.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export function handleDeployPoll(event: DeployPollEvent): void {
entity.pollId = event.params._pollId;
entity.messageProcessor = event.params.pollAddr.messageProcessor;
entity.tally = event.params.pollAddr.tally;
entity.subsidy = event.params.pollAddr.subsidy;
entity.maxMessages = maxValues.value0;
entity.maxVoteOption = maxValues.value1;
entity.treeDepth = GraphBN.fromI32(treeDepths.value0);
Expand Down
10 changes: 5 additions & 5 deletions subgraph/subgraph.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ dataSources:
file: ./node_modules/maci-contracts/build/artifacts/contracts/Poll.sol/Poll.json
eventHandlers:
- event: DeployPoll(uint256,indexed uint256,indexed
uint256,(address,address,address,address))
uint256,(address,address,address))
handler: handleDeployPoll
- event: OwnershipTransferred(indexed address,indexed address)
handler: handleOwnershipTransferred
Expand All @@ -57,13 +57,13 @@ templates:
- name: Poll
file: ./node_modules/maci-contracts/build/artifacts/contracts/Poll.sol/Poll.json
eventHandlers:
- event: MergeMaciStateAq(uint256,uint256)
- event: MergeMaciStateAq(indexed uint256,indexed uint256)
handler: handleMergeMaciStateAq
- event: MergeMaciStateAqSubRoots(uint256)
- event: MergeMaciStateAqSubRoots(indexed uint256)
handler: handleMergeMaciStateAqSubRoots
- event: MergeMessageAq(uint256)
- event: MergeMessageAq(indexed uint256)
handler: handleMergeMessageAq
- event: MergeMessageAqSubRoots(uint256)
- event: MergeMessageAqSubRoots(indexed uint256)
handler: handleMergeMessageAqSubRoots
- event: OwnershipTransferred(indexed address,indexed address)
handler: handleOwnershipTransferred
Expand Down

0 comments on commit 4453163

Please sign in to comment.