cosmos-multisig-ui/db-schema.graphql
IshaVenikar be55efd877
All checks were successful
/ test (pull_request) Successful in 1m16s
/ build (pull_request) Successful in 2m2s
/ lint (pull_request) Successful in 1m19s
Add GQL schema in run script
2025-05-26 16:34:39 +05:30

34 lines
854 B
GraphQL

type Multisig {
id: ID!
# The @search annotation allows us to query the list of multisigs and filter
# by (chainId, address) pairs. We use "hash" since we only need exact matches.
# See https://dgraph.io/docs/graphql/schema/directives/search/#string
chainId: String! @search(by: [hash])
address: String! @search(by: [hash])
creator: String @search(by: [hash])
pubkeyJSON: String! @search(by: [fulltext])
transactions: [Transaction] @hasInverse(field: creator)
}
type Transaction {
id: ID!
txHash: String
creator: Multisig
dataJSON: String!
signatures: [Signature] @hasInverse(field: transaction)
}
type Signature {
transaction: Transaction!
bodyBytes: String!
signature: String!
address: String!
}
type Nonce {
id: ID!
chainId: String! @search(by: [hash])
address: String! @search(by: [hash])
nonce: Int!
}