Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

index Gitcoin Attestation Network #674

Merged
merged 3 commits into from
Oct 2, 2024
Merged

index Gitcoin Attestation Network #674

merged 3 commits into from
Oct 2, 2024

Conversation

thelostone-mc
Copy link
Member

@thelostone-mc thelostone-mc commented Sep 23, 2024

Close PAR-407

This adds 2 new tables

  • Attestations: which indexes the summary and metadata of the actual cart / checkout
  • AttesationTxn : which indexes all the attesation txn and which chain the attesation lives on

There is also a fk to the donations table which lets you list donations for a given a given AttesationTxn and also check if a donation has an associated attestation uid

{
  attestationTxns {
    chainId
    attestation {
      uid
    }
    donations {
      id
    }
  }
}
{
  donations {
    id
    attestationTxnsByTxnHashAndChainId {
      attestationUid
    }
  }
}

Deploy

@thelostone-mc thelostone-mc changed the title wip index Gitcoin Attestation Network Sep 23, 2024
@thelostone-mc thelostone-mc force-pushed the PAR-407 branch 3 times, most recently from 5c5ed37 to 46c2efd Compare September 24, 2024 11:42
@thelostone-mc thelostone-mc marked this pull request as ready for review October 1, 2024 14:34
Copy link
Member

@hussedev hussedev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@hussedev hussedev merged commit 9575801 into main Oct 2, 2024
2 checks passed
@hussedev hussedev deleted the PAR-407 branch October 2, 2024 05:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants