Skip to content

Commit

Permalink
schema init
Browse files Browse the repository at this point in the history
  • Loading branch information
solidoracle committed Jul 10, 2024
1 parent 38855c7 commit 6e478f4
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions bulla-contracts/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,15 @@ type FinancingAcceptedEvent implements IEventLog @entity {
timestamp: BigInt!
}

type PoolTransaction @entity {
id: ID!
pool: Bytes! # address
timestamp: BigInt!
blockNumber: BigInt!
transactionHash: Bytes!
priceAfterTransaction: PriceHistoryEntry!
}

type InvoiceFundedEvent implements IEventLog @entity {
id: ID!
invoiceId: String!
Expand All @@ -174,6 +183,7 @@ type InvoiceFundedEvent implements IEventLog @entity {
transactionHash: Bytes!
logIndex: BigInt!
timestamp: BigInt!
poolTransaction: PoolTransaction!
}

type InvoiceKickbackAmountSentEvent implements IEventLog @entity {
Expand All @@ -186,6 +196,7 @@ type InvoiceKickbackAmountSentEvent implements IEventLog @entity {
transactionHash: Bytes!
logIndex: BigInt!
timestamp: BigInt!
poolTransaction: PoolTransaction!
}

type InvoiceUnfactoredEvent implements IEventLog @entity {
Expand All @@ -199,6 +210,7 @@ type InvoiceUnfactoredEvent implements IEventLog @entity {
transactionHash: Bytes!
logIndex: BigInt!
timestamp: BigInt!
poolTransaction: PoolTransaction!
}

type DepositMadeEvent implements IEventLog @entity {
Expand All @@ -212,6 +224,7 @@ type DepositMadeEvent implements IEventLog @entity {
transactionHash: Bytes!
logIndex: BigInt!
timestamp: BigInt!
poolTransaction: PoolTransaction!
}

type DepositMadeWithAttachmentEvent implements IEventLog @entity {
Expand All @@ -226,6 +239,7 @@ type DepositMadeWithAttachmentEvent implements IEventLog @entity {
transactionHash: Bytes!
logIndex: BigInt!
timestamp: BigInt!
poolTransaction: PoolTransaction!
}

type SharesRedeemedEvent implements IEventLog @entity {
Expand All @@ -239,6 +253,7 @@ type SharesRedeemedEvent implements IEventLog @entity {
transactionHash: Bytes!
logIndex: BigInt!
timestamp: BigInt!
poolTransaction: PoolTransaction!
}

type SharesRedeemedWithAttachmentEvent implements IEventLog @entity {
Expand All @@ -253,6 +268,7 @@ type SharesRedeemedWithAttachmentEvent implements IEventLog @entity {
transactionHash: Bytes!
logIndex: BigInt!
timestamp: BigInt!
poolTransaction: PoolTransaction!
}

type LoanOfferedEvent implements IEventLog @entity {
Expand Down Expand Up @@ -429,6 +445,7 @@ type PriceHistoryEntry @entity {
id: ID!
timestamp: BigInt!
price: BigInt!
transaction: PoolTransaction!
}

type BullaManager @entity {
Expand Down

0 comments on commit 6e478f4

Please sign in to comment.