Skip to content

Commit

Permalink
add candidate sigs to the list
Browse files Browse the repository at this point in the history
  • Loading branch information
pedropregueiro committed Jul 31, 2024
1 parent f86bb97 commit d8fbd8c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/nouns-subgraph/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,9 @@ type ProposalCandidateSignature @entity {

"The signature's creation block"
createdBlock: BigInt!

"The signature's transaction hash"
createdTransactionHash: Bytes!
}

type ProposalFeedback @entity(immutable: true) {
Expand Down
1 change: 1 addition & 0 deletions packages/nouns-subgraph/src/nouns-dao-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ export function handleSignatureAdded(event: SignatureAdded): void {
candidateSig.reason = event.params.reason;
candidateSig.createdBlock = event.block.number;
candidateSig.createdTimestamp = event.block.timestamp;
candidateSig.createdTransactionHash = event.transaction.hash;

candidateSig.save();
}
Expand Down

0 comments on commit d8fbd8c

Please sign in to comment.