Skip to content
Snippets Groups Projects
indexer-schema.graphql 82.1 KiB
Newer Older
schema {
  query: query_root
  subscription: subscription_root
}

"""whether this query should be cached (Hasura Cloud only)"""
directive @cached(
  """measured in seconds"""
  ttl: Int! = 60

  """refresh the cache entry"""
  refresh: Boolean! = false
) on QUERY

"""Table of accounts."""
type account {
  """An object relationship"""
  block: block!
  created_at: timestamptz!

  """Block number where account was created."""
  created_on: Int!

  """
  A computed field, executes function "has_identity"
  """
  has_identity: Boolean

  """An object relationship"""
  identity: identity
  killed_at: timestamptz

  """Block number where account was killed."""
  killed_on: Int

  """Pubkey of the account."""
  pubkey: String!

  """An array relationship"""
  transactions_issued(
    """distinct select on columns"""
    distinct_on: [transaction_select_column!]

    """limit the number of rows returned"""
    limit: Int

    """skip the first n rows. Use only with order_by"""
    offset: Int

    """sort the rows by one or more columns"""
    order_by: [transaction_order_by!]

    """filter the rows returned"""
    where: transaction_bool_exp
  ): [transaction!]!

  """An aggregate relationship"""
  transactions_issued_aggregate(
    """distinct select on columns"""
    distinct_on: [transaction_select_column!]

    """limit the number of rows returned"""
    limit: Int

    """skip the first n rows. Use only with order_by"""
    offset: Int

    """sort the rows by one or more columns"""
    order_by: [transaction_order_by!]

    """filter the rows returned"""
    where: transaction_bool_exp
  ): transaction_aggregate!

  """An array relationship"""
  transactions_received(
    """distinct select on columns"""
    distinct_on: [transaction_select_column!]

    """limit the number of rows returned"""
    limit: Int

    """skip the first n rows. Use only with order_by"""
    offset: Int

    """sort the rows by one or more columns"""
    order_by: [transaction_order_by!]

    """filter the rows returned"""
    where: transaction_bool_exp
  ): [transaction!]!

  """An aggregate relationship"""
  transactions_received_aggregate(
    """distinct select on columns"""
    distinct_on: [transaction_select_column!]

    """limit the number of rows returned"""
    limit: Int

    """skip the first n rows. Use only with order_by"""
    offset: Int

    """sort the rows by one or more columns"""
    order_by: [transaction_order_by!]

    """filter the rows returned"""
    where: transaction_bool_exp
  ): transaction_aggregate!
}

"""
aggregated selection of "account"
"""
type account_aggregate {
  aggregate: account_aggregate_fields
  nodes: [account!]!
}

"""
aggregate fields of "account"
"""
type account_aggregate_fields {
  avg: account_avg_fields
  count(columns: [account_select_column!], distinct: Boolean): Int!
  max: account_max_fields
  min: account_min_fields
  stddev: account_stddev_fields
  stddev_pop: account_stddev_pop_fields
  stddev_samp: account_stddev_samp_fields
  sum: account_sum_fields
  var_pop: account_var_pop_fields
  var_samp: account_var_samp_fields
  variance: account_variance_fields
}

"""aggregate avg on columns"""
type account_avg_fields {
  """Block number where account was created."""
  created_on: Float

  """Block number where account was killed."""
  killed_on: Float
}

"""
Boolean expression to filter rows from the table "account". All fields are combined with a logical 'AND'.
"""
input account_bool_exp {
  _and: [account_bool_exp!]
  _not: account_bool_exp
  _or: [account_bool_exp!]
  block: block_bool_exp
  created_at: timestamptz_comparison_exp
  created_on: Int_comparison_exp
  has_identity: Boolean_comparison_exp
  identity: identity_bool_exp
  killed_at: timestamptz_comparison_exp
  killed_on: Int_comparison_exp
  pubkey: String_comparison_exp
  transactions_issued: transaction_bool_exp
  transactions_issued_aggregate: transaction_aggregate_bool_exp
  transactions_received: transaction_bool_exp
  transactions_received_aggregate: transaction_aggregate_bool_exp
}

"""aggregate max on columns"""
type account_max_fields {
  created_at: timestamptz

  """Block number where account was created."""
  created_on: Int
  killed_at: timestamptz

  """Block number where account was killed."""
  killed_on: Int

  """Pubkey of the account."""
  pubkey: String
}

"""aggregate min on columns"""
type account_min_fields {
  created_at: timestamptz

  """Block number where account was created."""
  created_on: Int
  killed_at: timestamptz

  """Block number where account was killed."""
  killed_on: Int

  """Pubkey of the account."""
  pubkey: String
}

"""Ordering options when selecting data from "account"."""
input account_order_by {
  block: block_order_by
  created_at: order_by
  created_on: order_by
  has_identity: order_by
  identity: identity_order_by
  killed_at: order_by
  killed_on: order_by
  transactions_issued_aggregate: transaction_aggregate_order_by
  transactions_received_aggregate: transaction_aggregate_order_by
}

"""
select columns of table "account"
"""
enum account_select_column {
  """column name"""
  created_at

  """column name"""
  created_on

  """column name"""
  killed_at

  """column name"""
  killed_on

  """column name"""
  pubkey
}

"""aggregate stddev on columns"""
type account_stddev_fields {
  """Block number where account was created."""
  created_on: Float

  """Block number where account was killed."""
  killed_on: Float
}

"""aggregate stddev_pop on columns"""
type account_stddev_pop_fields {
  """Block number where account was created."""
  created_on: Float

  """Block number where account was killed."""
  killed_on: Float
}

"""aggregate stddev_samp on columns"""
type account_stddev_samp_fields {
  """Block number where account was created."""
  created_on: Float

  """Block number where account was killed."""
  killed_on: Float
}

"""
Streaming cursor of the table "account"
"""
input account_stream_cursor_input {
  """Stream column input with initial value"""
  initial_value: account_stream_cursor_value_input!

  """cursor ordering"""
  ordering: cursor_ordering
}

"""Initial value of the column from where the streaming should start"""
input account_stream_cursor_value_input {
  created_at: timestamptz

  """Block number where account was created."""
  created_on: Int
  killed_at: timestamptz

  """Block number where account was killed."""
  killed_on: Int

  """Pubkey of the account."""
  pubkey: String
}

"""aggregate sum on columns"""
type account_sum_fields {
  """Block number where account was created."""
  created_on: Int

  """Block number where account was killed."""
  killed_on: Int
}

"""aggregate var_pop on columns"""
type account_var_pop_fields {
  """Block number where account was created."""
  created_on: Float

  """Block number where account was killed."""
  killed_on: Float
}

"""aggregate var_samp on columns"""
type account_var_samp_fields {
  """Block number where account was created."""
  created_on: Float

  """Block number where account was killed."""
  killed_on: Float
}

"""aggregate variance on columns"""
type account_variance_fields {
  """Block number where account was created."""
  created_on: Float

  """Block number where account was killed."""
  killed_on: Float
}

"""Table of blocks."""
type block {
  created_at: timestamp!

  """
  Data contains `extrinsics` and `events` of the block. Exemple for querying
  specific data: `data(path: "extrinsics[0].isSigned")`.
  """
  data(
    """JSON select path"""
    path: String
  ): jsonb
  hash: String!

  """Number of the block in substrate."""
  number: Int!
}

"""
aggregated selection of "block"
"""
type block_aggregate {
  aggregate: block_aggregate_fields
  nodes: [block!]!
}

"""
aggregate fields of "block"
"""
type block_aggregate_fields {
  avg: block_avg_fields
  count(columns: [block_select_column!], distinct: Boolean): Int!
  max: block_max_fields
  min: block_min_fields
  stddev: block_stddev_fields
  stddev_pop: block_stddev_pop_fields
  stddev_samp: block_stddev_samp_fields
  sum: block_sum_fields
  var_pop: block_var_pop_fields
  var_samp: block_var_samp_fields
  variance: block_variance_fields
}

"""aggregate avg on columns"""
type block_avg_fields {
  """Number of the block in substrate."""
  number: Float
}

"""
Boolean expression to filter rows from the table "block". All fields are combined with a logical 'AND'.
"""
input block_bool_exp {
  _and: [block_bool_exp!]
  _not: block_bool_exp
  _or: [block_bool_exp!]
  created_at: timestamp_comparison_exp
  data: jsonb_comparison_exp
  hash: String_comparison_exp
  number: Int_comparison_exp
}

"""aggregate max on columns"""
type block_max_fields {
  created_at: timestamp
  hash: String

  """Number of the block in substrate."""
  number: Int
}

"""aggregate min on columns"""
type block_min_fields {
  created_at: timestamp
  hash: String

  """Number of the block in substrate."""
  number: Int
}

"""Ordering options when selecting data from "block"."""
input block_order_by {
  created_at: order_by
  data: order_by
  hash: order_by
}

"""
select columns of table "block"
"""
enum block_select_column {
  """column name"""
  created_at

  """column name"""
  data

  """column name"""
  hash

  """column name"""
  number
}

"""aggregate stddev on columns"""
type block_stddev_fields {
  """Number of the block in substrate."""
  number: Float
}

"""aggregate stddev_pop on columns"""
type block_stddev_pop_fields {
  """Number of the block in substrate."""
  number: Float
}

"""aggregate stddev_samp on columns"""
type block_stddev_samp_fields {
  """Number of the block in substrate."""
  number: Float
}

"""
Streaming cursor of the table "block"
"""
input block_stream_cursor_input {
  """Stream column input with initial value"""
  initial_value: block_stream_cursor_value_input!

  """cursor ordering"""
  ordering: cursor_ordering
}

"""Initial value of the column from where the streaming should start"""
input block_stream_cursor_value_input {
  created_at: timestamp

  """
  Data contains `extrinsics` and `events` of the block. Exemple for querying
  specific data: `data(path: "extrinsics[0].isSigned")`.
  """
  data: jsonb
  hash: String

  """Number of the block in substrate."""
  number: Int
}

"""aggregate sum on columns"""
type block_sum_fields {
  """Number of the block in substrate."""
  number: Int
}

"""aggregate var_pop on columns"""
type block_var_pop_fields {
  """Number of the block in substrate."""
  number: Float
}

"""aggregate var_samp on columns"""
type block_var_samp_fields {
  """Number of the block in substrate."""
  number: Float
}

"""aggregate variance on columns"""
type block_variance_fields {
  """Number of the block in substrate."""
  number: Float
}

"""
Boolean expression to compare columns of type "Boolean". All fields are combined with logical 'AND'.
"""
input Boolean_comparison_exp {
  _eq: Boolean
  _gt: Boolean
  _gte: Boolean
  _in: [Boolean!]
  _is_null: Boolean
  _lt: Boolean
  _lte: Boolean
  _neq: Boolean
  _nin: [Boolean!]
}

"""Table of certifications."""
type certification {
  created_at: timestamptz!

  """Block number where certification was created."""
  created_on: Int!

  """An object relationship"""
  created_on_block: block!

  """An object relationship"""
  issuer: identity!

  """Index of issuer"""
  issuer_index: Int!

  """An object relationship"""
  receiver: identity!

  """Index of receiver"""
  receiver_index: Int!
}

"""
aggregated selection of "certification"
"""
type certification_aggregate {
  aggregate: certification_aggregate_fields
  nodes: [certification!]!
}

input certification_aggregate_bool_exp {
  count: certification_aggregate_bool_exp_count
}

input certification_aggregate_bool_exp_count {
  arguments: [certification_select_column!]
  distinct: Boolean
  filter: certification_bool_exp
  predicate: Int_comparison_exp!
}

"""
aggregate fields of "certification"
"""
type certification_aggregate_fields {
  avg: certification_avg_fields
  count(columns: [certification_select_column!], distinct: Boolean): Int!
  max: certification_max_fields
  min: certification_min_fields
  stddev: certification_stddev_fields
  stddev_pop: certification_stddev_pop_fields
  stddev_samp: certification_stddev_samp_fields
  sum: certification_sum_fields
  var_pop: certification_var_pop_fields
  var_samp: certification_var_samp_fields
  variance: certification_variance_fields
}

"""
order by aggregate values of table "certification"
"""
input certification_aggregate_order_by {
  avg: certification_avg_order_by
  count: order_by
  max: certification_max_order_by
  min: certification_min_order_by
  stddev: certification_stddev_order_by
  stddev_pop: certification_stddev_pop_order_by
  stddev_samp: certification_stddev_samp_order_by
  sum: certification_sum_order_by
  var_pop: certification_var_pop_order_by
  var_samp: certification_var_samp_order_by
  variance: certification_variance_order_by
}

"""aggregate avg on columns"""
type certification_avg_fields {
  """Block number where certification was created."""
  created_on: Float

  """Index of issuer"""
  issuer_index: Float

  """Index of receiver"""
  receiver_index: Float
}

"""
order by avg() on columns of table "certification"
"""
input certification_avg_order_by {
  """Block number where certification was created."""
  created_on: order_by

  """Index of issuer"""
  issuer_index: order_by

  """Index of receiver"""
  receiver_index: order_by
}

"""
Boolean expression to filter rows from the table "certification". All fields are combined with a logical 'AND'.
"""
input certification_bool_exp {
  _and: [certification_bool_exp!]
  _not: certification_bool_exp
  _or: [certification_bool_exp!]
  created_at: timestamptz_comparison_exp
  created_on: Int_comparison_exp
  created_on_block: block_bool_exp
  issuer: identity_bool_exp
  issuer_index: Int_comparison_exp
  receiver: identity_bool_exp
  receiver_index: Int_comparison_exp
}

"""aggregate max on columns"""
type certification_max_fields {
  created_at: timestamptz

  """Block number where certification was created."""
  created_on: Int

  """Index of issuer"""
  issuer_index: Int

  """Index of receiver"""
  receiver_index: Int
}

"""
order by max() on columns of table "certification"
"""
input certification_max_order_by {
  created_at: order_by

  """Block number where certification was created."""
  created_on: order_by

  """Index of issuer"""
  issuer_index: order_by

  """Index of receiver"""
  receiver_index: order_by
}

"""aggregate min on columns"""
type certification_min_fields {
  created_at: timestamptz

  """Block number where certification was created."""
  created_on: Int

  """Index of issuer"""
  issuer_index: Int

  """Index of receiver"""
  receiver_index: Int
}

"""
order by min() on columns of table "certification"
"""
input certification_min_order_by {
  created_at: order_by

  """Block number where certification was created."""
  created_on: order_by

  """Index of issuer"""
  issuer_index: order_by

  """Index of receiver"""
  receiver_index: order_by
}

"""Ordering options when selecting data from "certification"."""
input certification_order_by {
  created_at: order_by
  created_on: order_by
  created_on_block: block_order_by
  issuer: identity_order_by
  receiver: identity_order_by
  receiver_index: order_by
}

"""
select columns of table "certification"
"""
enum certification_select_column {
  """column name"""
  created_at

  """column name"""
  created_on

  """column name"""

  """column name"""
}

"""aggregate stddev on columns"""
type certification_stddev_fields {
  """Block number where certification was created."""
  created_on: Float

  """Index of issuer"""
  issuer_index: Float

  """Index of receiver"""
  receiver_index: Float
}

"""
order by stddev() on columns of table "certification"
"""
input certification_stddev_order_by {
  """Block number where certification was created."""
  created_on: order_by

  """Index of issuer"""
  issuer_index: order_by

  """Index of receiver"""
  receiver_index: order_by
}

"""aggregate stddev_pop on columns"""
type certification_stddev_pop_fields {
  """Block number where certification was created."""
  created_on: Float

  """Index of issuer"""
  issuer_index: Float

  """Index of receiver"""
  receiver_index: Float
}

"""
order by stddev_pop() on columns of table "certification"
"""
input certification_stddev_pop_order_by {
  """Block number where certification was created."""
  created_on: order_by

  """Index of issuer"""
  issuer_index: order_by

  """Index of receiver"""
  receiver_index: order_by
}

"""aggregate stddev_samp on columns"""
type certification_stddev_samp_fields {
  """Block number where certification was created."""
  created_on: Float

  """Index of issuer"""
  issuer_index: Float

  """Index of receiver"""
  receiver_index: Float
}

"""
order by stddev_samp() on columns of table "certification"
"""
input certification_stddev_samp_order_by {
  """Block number where certification was created."""
  created_on: order_by

  """Index of issuer"""
  issuer_index: order_by

  """Index of receiver"""
  receiver_index: order_by
}

"""
Streaming cursor of the table "certification"
"""
input certification_stream_cursor_input {
  """Stream column input with initial value"""
  initial_value: certification_stream_cursor_value_input!

  """cursor ordering"""
  ordering: cursor_ordering
}

"""Initial value of the column from where the streaming should start"""
input certification_stream_cursor_value_input {
  created_at: timestamptz

  """Block number where certification was created."""
  created_on: Int

  """Index of issuer"""
  issuer_index: Int

  """Index of receiver"""
  receiver_index: Int
}

"""aggregate sum on columns"""
type certification_sum_fields {
  """Block number where certification was created."""
  created_on: Int

  """Index of issuer"""
  issuer_index: Int

  """Index of receiver"""
  receiver_index: Int
}

"""
order by sum() on columns of table "certification"
"""
input certification_sum_order_by {
  """Block number where certification was created."""
  created_on: order_by

  """Index of issuer"""
  issuer_index: order_by

  """Index of receiver"""
  receiver_index: order_by
}

"""aggregate var_pop on columns"""
type certification_var_pop_fields {
  """Block number where certification was created."""
  created_on: Float

  """Index of issuer"""
  issuer_index: Float

  """Index of receiver"""
  receiver_index: Float
}

"""
order by var_pop() on columns of table "certification"
"""
input certification_var_pop_order_by {
  """Block number where certification was created."""
  created_on: order_by

  """Index of issuer"""
  issuer_index: order_by

  """Index of receiver"""
  receiver_index: order_by
}

"""aggregate var_samp on columns"""
type certification_var_samp_fields {
  """Block number where certification was created."""
  created_on: Float

  """Index of issuer"""
  issuer_index: Float

  """Index of receiver"""
  receiver_index: Float
}

"""
order by var_samp() on columns of table "certification"
"""
input certification_var_samp_order_by {
  """Block number where certification was created."""
  created_on: order_by

  """Index of issuer"""
  issuer_index: order_by

  """Index of receiver"""
  receiver_index: order_by
}

"""aggregate variance on columns"""
type certification_variance_fields {
  """Block number where certification was created."""
  created_on: Float

  """Index of issuer"""
  issuer_index: Float

  """Index of receiver"""
  receiver_index: Float
}

"""
order by variance() on columns of table "certification"
"""
input certification_variance_order_by {
  """Block number where certification was created."""
  created_on: order_by

  """Index of issuer"""
  issuer_index: order_by

  """Index of receiver"""
  receiver_index: order_by
}

"""ordering argument of a cursor"""
enum cursor_ordering {
  """ascending ordering of the cursor"""
  ASC

  """descending ordering of the cursor"""
  DESC
}

"""
Boolean expression to compare columns of type "Float". All fields are combined with logical 'AND'.
"""
input Float_comparison_exp {
  _eq: Float
  _gt: Float
  _gte: Float
  _in: [Float!]
  _is_null: Boolean
  _lt: Float
  _lte: Float
  _neq: Float
  _nin: [Float!]
}

"""Table of identities."""
type identity {
  """An object relationship"""
  account: account

  """An array relationship"""
    """distinct select on columns"""
    distinct_on: [certification_select_column!]

    """limit the number of rows returned"""
    limit: Int

    """skip the first n rows. Use only with order_by"""
    offset: Int

    """sort the rows by one or more columns"""
    order_by: [certification_order_by!]

    """filter the rows returned"""
    where: certification_bool_exp
  ): [certification!]!

  """An aggregate relationship"""
    """distinct select on columns"""
    distinct_on: [certification_select_column!]

    """limit the number of rows returned"""
    limit: Int

    """skip the first n rows. Use only with order_by"""
    offset: Int

    """sort the rows by one or more columns"""
    order_by: [certification_order_by!]

    """filter the rows returned"""
    where: certification_bool_exp
  ): certification_aggregate!

  """An array relationship"""
    """distinct select on columns"""
    distinct_on: [certification_select_column!]

    """limit the number of rows returned"""
    limit: Int

    """skip the first n rows. Use only with order_by"""
    offset: Int

    """sort the rows by one or more columns"""
    order_by: [certification_order_by!]