Skip to content

Commit

Permalink
Merge pull request #1141 from EmpowerPlastic/buy_credits_indexer_even…
Browse files Browse the repository at this point in the history
…t_update

Buy credits indexer event update
  • Loading branch information
gjermundgaraba authored Jan 18, 2024
2 parents 91622b9 + 0dcbd56 commit 2994999
Show file tree
Hide file tree
Showing 2 changed files with 206 additions and 70 deletions.
9 changes: 6 additions & 3 deletions indexer/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ type Wallet @entity {
applicantId: Int
creditBalances: [CreditBalance!] @derivedFrom(field: "wallet")
certificates: [Certificate!] @derivedFrom(field: "wallet")
creditOffsetCertificates: [CreditOffsetCertificate!] @derivedFrom(field: "wallet")
creditOffsetCertificates: [CreditOffsetCertificate!]
@derivedFrom(field: "wallet")
}

type CreditBalance @entity {
Expand Down Expand Up @@ -82,6 +83,7 @@ type TransferedCreditsEvent @entity {
sender: String!
recipient: String!
amount: BigInt!
timestamp: Date!
}

type RetiredCreditsEvent @entity {
Expand Down Expand Up @@ -149,7 +151,8 @@ type CreditCollection @entity {
creditType: String!
metadataUris: [MetadataUri!] @derivedFrom(field: "creditCollection")
creditData: [CreditData!] @derivedFrom(field: "creditCollection")
marketplaceListings: [MarketplaceListing!] @derivedFrom(field: "creditCollection")
marketplaceListings: [MarketplaceListing!]
@derivedFrom(field: "creditCollection")
}

type CreditData @entity {
Expand Down Expand Up @@ -223,4 +226,4 @@ type Message @entity {
id: ID!
blockHeight: BigInt!
txHash: String!
}
}
Loading

0 comments on commit 2994999

Please sign in to comment.