Subgraphs

Y can find deployed subgraphs by environment in the sub-sections. Below, the main entities are described.

Spoke Entities

The main entities that can be queried in the Spoke Subgraph are:

  • OriginIntent: tracks status and information related to an intent created on this domain

  • DestinationIntent: tracks status and information related to an intent settled on this domain

  • IntentSettleEvent: created when an intent is settled on destination via _handleSettlement

  • Queue: the intent queue on the domain

IntentStatus

enum IntentStatus {
  NONE
  ADDED # signifies added to the message queue
  DISPATCHED # signifies the batch containing the message has been sent
  SETTLED # signifies settlement has arrived on spoke domain for intent
  SETTLED_AND_MANUALLY_EXECUTED # settlement has arrived & calldata executed
}

OriginIntent

type OriginIntent @entity {
  id: Bytes! # intent id
  queueIdx: BigInt!
  message: Message
  settlement: SpokeSettlement

  status: IntentStatus!

  initiator: Bytes!
  receiver: Bytes!
  inputAsset: Bytes!
  outputAsset: Bytes!
  maxFee: BigInt!
  origin: BigInt!
  nonce: BigInt!
  timestamp: BigInt!
  ttl: BigInt!
  amount: BigInt!
  destinations: [BigInt!]
  data: Bytes!

  # Add Intent Transaction
  addEvent: IntentAddEvent!
}

DestinationIntent

IntentSettleEvent

Queue

Hub Entities

The main entities that can be queried in the Hub Subgraph are:

  • HubIntent: tracks the status of an intent on the Hub

  • SettlementQueue: tracks settlements in the queue

  • SettlementMessage: settlement message being sent to the Spoke

  • Token: information related to a token including fees, feeRecipients, and related assets

  • Asset: information related to an asset on a domain

  • Solver: information related to a Solver's configuration

HubIntentStatus

HubIntent

SettlementQueue

SettlementMessageType

SettlementMessage

Token

Asset

Solver

For more information visit the Github repo: Coming soon.

Last updated