Skip to content

Commit 61e0e38

Browse files
committed
feat(app): filter queries
1 parent ffc5312 commit 61e0e38

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

app/src/lib/graphql/queries/transfers.ts

+14-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ export const transfersTimestampQuery = graphql(
88
newer: v1_ibc_union_fungible_asset_orders(
99
limit: $limit
1010
order_by: [{ packet_send_timestamp: asc }, { packet_send_transaction_hash: asc }]
11-
where: { packet_send_timestamp: { _gte: $timestamp } }
11+
where: {
12+
packet_send_timestamp: { _gte: $timestamp }
13+
quote_amount: { _neq: "0x00" }
14+
}
1215
) {
1316
...TransferListData
1417
}
@@ -33,9 +36,12 @@ export const transfersLatestQuery = graphql(
3336
data: v1_ibc_union_fungible_asset_orders(
3437
limit: $limit
3538
order_by: [
36-
{ packet_send_timestamp: desc }
37-
{ packet_send_transaction_hash: desc }
39+
{ packet_send_timestamp: desc }
40+
{ packet_send_transaction_hash: desc }
3841
]
42+
where: {
43+
quote_amount: { _neq: "0x00" }
44+
}
3945
) {
4046
...TransferListData
4147
}
@@ -47,7 +53,11 @@ export const transfersLatestQuery = graphql(
4753
export const transfersIncompleteQuery = graphql(
4854
/* GraphQL */ `
4955
query TransfersLatestQuery($cutoff: timestamptz! = "2025-02-11") {
50-
data: v1_ibc_union_fungible_asset_orders(where: {packet_send_timestamp: {_gt: $cutoff}, status: {_neq: "PACKET_ACK"}}
56+
data: v1_ibc_union_fungible_asset_orders(where: {
57+
packet_send_timestamp: {_gt: $cutoff},
58+
status: {_neq: "PACKET_ACK"}
59+
quote_amount: { _neq: "0x00" }
60+
}
5161
order_by: [
5262
{ packet_send_timestamp: desc }
5363
{ packet_send_transaction_hash: desc }

0 commit comments

Comments
 (0)