-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.graphql
75 lines (66 loc) · 1.23 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
63
64
65
66
67
68
69
70
71
72
73
74
75
#########################
# == Helper Entities == #
#########################
# id = `${protocol}-${pointer}`
type Metadata @entity {
id: ID!
protocol: Int!,
pointer: String!
}
type Role @entity {
id: Bytes!
accounts: [RoleAccount!] @derivedFrom(field: "role")
}
type Account @entity {
id: Bytes!
roles: [RoleAccount!] @derivedFrom(field: "account")
}
# id = `${account.id}-${role.id}`
type RoleAccount @entity {
id: ID!
role: Role!
account: Account!
}
########################
# ===== Registry ===== #
########################
# id = profileId
type Profile @entity {
id: ID!
name: String!
metadata: Metadata!
anchor: Bytes!
nonce: BigInt!
owner: Account!
memberRole: Role!
createdAt: BigInt!
updatedAt: BigInt!
}
####################
# ===== Allo ===== #
####################
# id = 0
type Allo @entity {
id: ID!
registry: Bytes
feePercentage: BigInt
baseFee: BigInt
treasury: Bytes
cloneableStrategies: [Bytes!]
}
# id = poolId
type Pool @entity {
id: ID!
allo: Allo!
token: Bytes!
baseFeesPaid: BigInt!
amount: BigInt!
strategy: Bytes!
metadata: Metadata!
adminRole: Role!
managerRole: Role!
owner: Account
managers: [Account!]
createdAt: BigInt!
updatedAt: BigInt!
}