2020-05-20 20:31:12 +00:00
|
|
|
type User @entity {
|
|
|
|
id: ID!
|
|
|
|
|
|
|
|
smartAccountsOwned: [SmartAccount!]! @derivedFrom(field:"owner")
|
|
|
|
|
|
|
|
smartAccountsCreated: [SmartAccount!]! @derivedFrom(field:"creator")
|
|
|
|
}
|
|
|
|
|
|
|
|
type SmartAccount @entity {
|
|
|
|
id: ID!
|
|
|
|
|
|
|
|
owner: User!
|
|
|
|
|
|
|
|
creator: User!
|
|
|
|
|
|
|
|
origin: String!
|
|
|
|
}
|
|
|
|
|
|
|
|
type AccountModule @entity {
|
|
|
|
"ID is the account module version"
|
|
|
|
id: ID!
|
|
|
|
|
2020-05-21 14:04:36 +00:00
|
|
|
address: String!
|
2020-05-20 20:31:12 +00:00
|
|
|
|
|
|
|
connectors: String!
|
|
|
|
|
2020-05-21 14:04:36 +00:00
|
|
|
check: String
|
2020-05-20 20:31:12 +00:00
|
|
|
|
|
|
|
instaIndex: InstaIndex!
|
|
|
|
}
|
|
|
|
|
|
|
|
type InstaIndex @entity {
|
|
|
|
id: ID!
|
|
|
|
|
|
|
|
master: String
|
|
|
|
|
|
|
|
accountModules: [AccountModule!]! @derivedFrom(field: "instaIndex")
|
|
|
|
}
|