Skip to content

Commit

Permalink
Merge pull request #19 from Cardinal-Cryptography/column-names-latest…
Browse files Browse the repository at this point in the history
…-indexer

Fix column names after graphql redeployment
  • Loading branch information
deuszx authored May 16, 2024
2 parents bb0b538 + bd5e667 commit 66756a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/grapqhl/subscription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export class SubscriptionQuery {
nodeKey: string,
nodeDesc: string,
limit: number = 50,
orderBy: string = "lastUpdateTimestamp_ASC",
orderBy: string = "blockTimestamp_ASC",
) {
this.orderBy = orderBy;
this.limit = limit;
Expand Down
10 changes: 5 additions & 5 deletions src/grapqhl/v2/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import { SubscriptionQuery } from "../subscription";
export const psp22TokenBalancesConnectionsQuery: ConnectionQuery =
new ConnectionQuery(
"psp22TokenBalances",
"account amount token lastUpdateBlockHeight lastUpdateTimestamp id",
"account amount token blockHeight blockTimestamp id",
);

export const pspTokenBalancesSubscriptionQuery: SubscriptionQuery =
new SubscriptionQuery(
"psp22TokenBalances",
"account amount token lastUpdateBlockHeight lastUpdateTimestamp",
"account amount token blockHeight blockTimestamp",
);

export const nativeTransfersSubscriptionQuery: SubscriptionQuery =
Expand All @@ -24,12 +24,12 @@ export const nativeTransfersSubscriptionQuery: SubscriptionQuery =
export const poolsV2SubscriptionQuery: SubscriptionQuery =
new SubscriptionQuery(
"pools",
"id token0 token1 reserves0 reserves1 lastUpdateTimestamp",
"id token0 token1 reserves0 reserves1 blockTimestamp",
50,
"lastUpdateTimestamp_ASC",
"blockTimestamp_ASC",
);

export const poolsV2ConnectionsQuery: ConnectionQuery = new ConnectionQuery(
"pools",
"id token0 token1 reserves0 reserves1 lastUpdateTimestamp",
"id token0 token1 reserves0 reserves1 blockTimestamp",
);

0 comments on commit 66756a6

Please sign in to comment.