-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from Cardinal-Cryptography/fix-column-names
Split GraphQL queries into v1 and v2.
- Loading branch information
Showing
10 changed files
with
383 additions
and
34 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { ConnectionQuery } from "../connection"; | ||
import { SubscriptionQuery } from "../subscription"; | ||
|
||
export const psp22TokenBalancesConnectionsQuery: ConnectionQuery = | ||
new ConnectionQuery( | ||
"psp22TokenBalances", | ||
"account amount token lastUpdateBlockHeight lastUpdateTimestamp id", | ||
); | ||
|
||
export const pspTokenBalancesSubscriptionQuery: SubscriptionQuery = | ||
new SubscriptionQuery( | ||
"psp22TokenBalances", | ||
"account amount token lastUpdateBlockHeight lastUpdateTimestamp", | ||
); | ||
|
||
export const nativeTransfersSubscriptionQuery: SubscriptionQuery = | ||
new SubscriptionQuery( | ||
"nativeTransfers", | ||
"extrinsicHash sender recipient amount blockNumber timestamp", | ||
50, | ||
"timestamp_ASC", | ||
); | ||
|
||
export const poolsV2SubscriptionQuery: SubscriptionQuery = | ||
new SubscriptionQuery( | ||
"pools", | ||
"id token0 token1 reserves0 reserves1 lastUpdateTimestamp", | ||
50, | ||
"lastUpdateTimestamp_ASC", | ||
); | ||
|
||
export const poolsV2ConnectionsQuery: ConnectionQuery = new ConnectionQuery( | ||
"pools", | ||
"id token0 token1 reserves0 reserves1 lastUpdateTimestamp", | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters