instadapp-dsa-subgraph/schema.graphql
2020-05-21 11:04:36 -03:00

39 lines
560 B
GraphQL

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!
address: String!
connectors: String!
check: String
instaIndex: InstaIndex!
}
type InstaIndex @entity {
id: ID!
master: String
accountModules: [AccountModule!]! @derivedFrom(field: "instaIndex")
}