Skip to content

Commit

Permalink
Merge pull request #13 from Cardinal-Cryptography/revert-12-fix-colum…
Browse files Browse the repository at this point in the history
…n-names

Revert "Fix column names after graphql redeployment"
  • Loading branch information
deuszx authored May 14, 2024
2 parents df4803f + da8276a commit 2d24920
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/grapqhl/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 blockHeight blockTimestamp id",
"account amount token lastUpdateBlockHeight lastUpdateTimestamp id",
);

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

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 blockTimestamp",
"id token0 token1 reserves0 reserves1 lastUpdateTimestamp",
50,
"blockTimestamp_ASC",
"lastUpdateTimestamp_ASC",
);

export const poolsV2ConnectionsQuery: ConnectionQuery = new ConnectionQuery(
"pools",
"id token0 token1 reserves0 reserves1 blockTimestamp",
"id token0 token1 reserves0 reserves1 lastUpdateTimestamp",
);
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 = "blockTimestamp_ASC",
orderBy: string = "lastUpdateTimestamp_ASC",
) {
this.orderBy = orderBy;
this.limit = limit;
Expand Down

0 comments on commit 2d24920

Please sign in to comment.