packages/rfq-indexer/api/src/graphql/queries/queries.graphql
type Transaction {
transactionId: String!
originChain: String!
destChain: String!
originChainId: Int!
destChainId: Int!
originToken: String!
destToken: String!
originAmountFormatted: String!
destAmountFormatted: String!
sender: String!
sendChainGas: String!
}
type Deposit {
blockNumber: Int!
blockTimestamp: Int!
transactionHash: String!
}
type Relay {
blockNumber: Int!
blockTimestamp: Int!
transactionHash: String!
relayer: String!
to: String!
}
type Proof {
blockNumber: Int!
blockTimestamp: Int!
transactionHash: String!
relayer: String!
}
type Claim {
blockNumber: Int!
blockTimestamp: Int!
transactionHash: String!
relayer: String!
to: String!
amountFormatted: String!
}
type Refund {
blockNumber: Int!
blockTimestamp: Int!
transactionHash: String!
to: String!
amountFormatted: String!
}
type PendingTransactionMissingRelay {
Bridge: Transaction!
BridgeRequest: Deposit!
}
type PendingTransactionMissingProof {
Bridge: Transaction!
BridgeRequest: Deposit!
BridgeRelay: Relay!
}
type PendingTransactionMissingClaim {
Bridge: Transaction!
BridgeRequest: Deposit!
BridgeRelay: Relay!
BridgeProof: Proof!
}
type InvalidRelay {
transactionId: String!
blockNumber: Int!
blockTimestamp: Int!
transactionHash: String!
originChain: String!
destChain: String!
originChainId: Int!
destChainId: Int!
originToken: String!
destToken: String!
originAmountFormatted: String!
destAmountFormatted: String!
to: String!
relayer: String!
}
type CompleteTransaction {
Bridge: Transaction!
BridgeRequest: Deposit
BridgeRelay: Relay
BridgeProof: Proof
BridgeClaim: Claim
BridgeRefund: Refund
}
type RefundedAndRelayedTransaction {
Bridge: Transaction!
BridgeRequest: Deposit!
BridgeRelay: Relay!
BridgeRefund: Refund!
}
type ConflictingProof {
Bridge: Transaction!
BridgeRequest: Deposit!
BridgeRelay: Relay!
BridgeProof: Proof!
}
type DisputedRelay {
Bridge: Transaction!
BridgeProof: Proof!
}
type Query {
pendingTransactionsMissingRelay: [PendingTransactionMissingRelay!]!
pendingTransactionsMissingRelayExceedDeadline: [PendingTransactionMissingRelay!]!
pendingTransactionsMissingProof: [PendingTransactionMissingProof!]!
pendingTransactionsMissingClaim: [PendingTransactionMissingClaim!]!
transactionById(transactionId: String!): [CompleteTransaction!]!
recentInvalidRelays: [InvalidRelay!]!
refundedAndRelayedTransactions: [RefundedAndRelayedTransaction!]!
conflictingProofs: [ConflictingProof!]!
disputedRelays: [DisputedRelay!]!
}