Skip to content

Conversation

@thelostone-mc
Copy link
Contributor

@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

@linear
Copy link

linear bot commented Sep 23, 2024

@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
Contributor

@hussmartinez hussmartinez left a comment

Choose a reason for hiding this comment

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

LGTM!

@hussmartinez hussmartinez merged commit 9575801 into main Oct 2, 2024
2 checks passed
@hussmartinez hussmartinez 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.

4 participants