-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.graphql
62 lines (56 loc) · 1.19 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
51
52
53
54
55
56
57
58
59
60
61
62
type Parachain @entity {
id: ID!
paraId: Int!
createdAt: Date
creationBlock: Int
deregistered: Boolean!
deposit: BigInt!
manager: String!
funds: [Crowdloan] @derivedFrom(field: "parachain")
# activeFund: Crowdloan
# latestBid: Bid
chronicle: Chronicle
}
type Crowdloan @entity {
id: ID! # generated fund address
parachain: Parachain!
depositor: String!
verifier: String
cap: BigInt!
raised: BigInt! @index
lockExpiredBlock: Int!
blockNum: Int
firstSlot: Int!
lastSlot: Int!
status: String! @index
leaseExpiredBlock: Int
dissolvedBlock: Int
updatedAt: Date
createdAt: Date
isFinished: Boolean @index
wonAuctionId: String @index
contributions: [Contribution] @derivedFrom(field: "fund")
}
type Contribution @entity {
id: ID!
account: String! @index
parachain: Parachain!
fund: Crowdloan!
amount: BigInt! @index
blockNum: Int! @index
createdAt: Date!
}
type Chronicle @entity {
id: ID! # Static 'ChronicleKey'
curBlockNum: Int
curLease: Int
curLeaseStart: Int
curLeaseEnd: Int
parachains: [Parachain] @derivedFrom(field: "chronicle")
}
type CrowdloanSequence @entity {
id: ID!
curIndex: Int!
createdAt: Date!
blockNum: Int!
}