instadapp-dsa-subgraph/schema.graphql

43 lines
664 B
GraphQL
Raw Normal View History

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