-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.graphql
50 lines (47 loc) · 1.39 KB
/
schema.graphql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
enum LpTransactionType {
Deposit
Withdrawal
}
type ContractStatus @entity {
id: ID!
contractAddress: Bytes!
"Total fees transferred from `FeesTaken` events"
totalFeesTaken: BigDecimal!
"Amount of transactions corresponding to `FeesTaken` event"
feesTakenTransactionCount: BigInt!
"Amount of transactions corresponding to `LPDeposited` and `LPWithdrawn` events"
lpTransactionCount: BigInt!
}
type Fee @entity(immutable: true) {
id: ID!
hash: Bytes!
"pool tokens taken by the AdmiralDAO multisig."
poolTokens: BigDecimal!
"pool token value in usd at the time of tx"
valueInUsd: BigDecimal!
"entitled fees are generally half of the overall fee value"
entitledValueInUsd: BigDecimal!
"from the smart contract"
avgPoolBalanceInDollars: BigDecimal!
"unix timestamp of when the tx occurred"
timestamp: BigInt!
"contract that the transaction was sent to"
contract: ContractStatus
}
type LpTransaction @entity(immutable: true) {
id: ID!
"Hash of the transaction."
hash: Bytes!
"Either a Deposit or Withdrawal"
transactionType: LpTransactionType!
"pool tokens deposited or withdrawn"
poolTokens: BigDecimal!
"pool token value in usd at the time of tx"
valueInUsd: BigDecimal!
"unix timestamp of when the tx occurred"
timestamp: BigInt!
"sender of the transaction"
sender: Bytes!
"contract that the transaction was sent to"
contract: ContractStatus
}