Skip to content

Commit ab34926

Browse files
committed
fix(graphql): fix field on escrow account query
Signed-off-by: Joseph Livesey <[email protected]>
1 parent b9f157f commit ab34926

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

crates/query/graphql/network.schema.graphql

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6606,7 +6606,7 @@ enum Pool_orderBy {
66066606
# TAP v2 Entities
66076607
# PaymentsEscrow and GraphTallyCollector contract entities
66086608

6609-
type EscrowAccount @entity {
6609+
type PaymentsEscrowAccount @entity {
66106610
id: Bytes!
66116611
payer: Payer!
66126612
collector: Collector!
@@ -6616,7 +6616,7 @@ type EscrowAccount @entity {
66166616
thawEndTimestamp: BigInt!
66176617
}
66186618

6619-
input EscrowAccount_filter {
6619+
input PaymentsEscrowAccount_filter {
66206620
id: Bytes
66216621
id_not: Bytes
66226622
id_in: [Bytes!]
@@ -6665,7 +6665,7 @@ input EscrowAccount_filter {
66656665
or: [EscrowAccount_filter]
66666666
}
66676667

6668-
enum EscrowAccount_orderBy {
6668+
enum PaymentsEscrowAccount_orderBy {
66696669
id
66706670
payer
66716671
payer__id
@@ -6682,7 +6682,7 @@ enum EscrowAccount_orderBy {
66826682
type Collector @entity {
66836683
id: Bytes!
66846684
type: String
6685-
escrowAccounts: [EscrowAccount!]! @derivedFrom(field: "collector")
6685+
escrowAccounts: [PaymentsEscrowAccount!]! @derivedFrom(field: "collector")
66866686
}
66876687

66886688
input Collector_filter {
@@ -6700,7 +6700,7 @@ input Collector_filter {
67006700
type_not_starts_with: String
67016701
type_ends_with: String
67026702
type_not_ends_with: String
6703-
escrowAccounts_: EscrowAccount_filter
6703+
escrowAccounts_: PaymentsEscrowAccount_filter
67046704
_change_block: BlockChangedFilter
67056705
and: [Collector_filter]
67066706
or: [Collector_filter]
@@ -6809,7 +6809,7 @@ enum DataService_orderBy {
68096809

68106810
type Payer @entity {
68116811
id: Bytes!
6812-
escrowAccounts: [EscrowAccount!]! @derivedFrom(field: "payer")
6812+
escrowAccounts: [PaymentsEscrowAccount!]! @derivedFrom(field: "payer")
68136813
signers: [Signer!]! @derivedFrom(field: "payer")
68146814
}
68156815

@@ -6818,7 +6818,7 @@ input Payer_filter {
68186818
id_not: Bytes
68196819
id_in: [Bytes!]
68206820
id_not_in: [Bytes!]
6821-
escrowAccounts_: EscrowAccount_filter
6821+
escrowAccounts_: PaymentsEscrowAccount_filter
68226822
signers_: Signer_filter
68236823
_change_block: BlockChangedFilter
68246824
and: [Payer_filter]
@@ -6833,15 +6833,15 @@ enum Payer_orderBy {
68336833

68346834
type Receiver @entity {
68356835
id: Bytes!
6836-
escrowAccounts: [EscrowAccount!]! @derivedFrom(field: "receiver")
6836+
escrowAccounts: [PaymentsEscrowAccount!]! @derivedFrom(field: "receiver")
68376837
}
68386838

68396839
input Receiver_filter {
68406840
id: Bytes
68416841
id_not: Bytes
68426842
id_in: [Bytes!]
68436843
id_not_in: [Bytes!]
6844-
escrowAccounts_: EscrowAccount_filter
6844+
escrowAccounts_: PaymentsEscrowAccount_filter
68456845
_change_block: BlockChangedFilter
68466846
and: [Receiver_filter]
68476847
or: [Receiver_filter]
@@ -8318,7 +8318,7 @@ type Query {
83188318
"""
83198319
subgraphError: _SubgraphErrorPolicy_! = deny
83208320
): [Delegator!]!
8321-
escrowAccount(
8321+
paymentsEscrowAccount(
83228322
id: ID!
83238323

83248324
"""
@@ -8335,13 +8335,13 @@ type Query {
83358335
Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.
83368336
"""
83378337
subgraphError: _SubgraphErrorPolicy_! = deny
8338-
): EscrowAccount
8339-
escrowAccounts(
8338+
): PaymentsEscrowAccount
8339+
paymentsEscrowAccounts(
83408340
skip: Int = 0
83418341
first: Int = 100
8342-
orderBy: EscrowAccount_orderBy
8342+
orderBy: PaymentsEscrowAccount_orderBy
83438343
orderDirection: OrderDirection
8344-
where: EscrowAccount_filter
8344+
where: PaymentsEscrowAccount_filter
83458345

83468346
"""
83478347
The block at which the query should be executed. Can either be a `{ hash:
@@ -8357,7 +8357,7 @@ type Query {
83578357
Set to `allow` to receive data even if the subgraph has skipped over errors while syncing.
83588358
"""
83598359
subgraphError: _SubgraphErrorPolicy_! = deny
8360-
): [EscrowAccount!]!
8360+
): [PaymentsEscrowAccount!]!
83618361
collector(
83628362
id: ID!
83638363
block: Block_height
@@ -12368,20 +12368,20 @@ type Subscription {
1236812368
"""
1236912369
subgraphError: _SubgraphErrorPolicy_! = deny
1237012370
): [Transaction!]!
12371-
escrowAccount(
12371+
paymentsEscrowAccount(
1237212372
id: ID!
1237312373
block: Block_height
1237412374
subgraphError: _SubgraphErrorPolicy_! = deny
12375-
): EscrowAccount
12376-
escrowAccounts(
12375+
): PaymentsEscrowAccount
12376+
paymentsEscrowAccounts(
1237712377
skip: Int = 0
1237812378
first: Int = 100
12379-
orderBy: EscrowAccount_orderBy
12379+
orderBy: PaymentsEscrowAccount_orderBy
1238012380
orderDirection: OrderDirection
12381-
where: EscrowAccount_filter
12381+
where: PaymentsEscrowAccount_filter
1238212382
block: Block_height
1238312383
subgraphError: _SubgraphErrorPolicy_! = deny
12384-
): [EscrowAccount!]!
12384+
): [PaymentsEscrowAccount!]!
1238512385
collector(
1238612386
id: ID!
1238712387
block: Block_height

crates/query/graphql/network_escrow_account_v2.query.graphql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# - `isAuthorized: true`: Only includes signers that are authorized.
1818

1919
query NetworkEscrowAccountQueryV2($receiver: Bytes!, $thawEndTimestamp: BigInt!) {
20-
escrowAccounts(where: { receiver: $receiver }) {
20+
paymentsEscrowAccounts(where: { receiver_: { id: $receiver } }) {
2121
balance
2222
totalAmountThawing
2323
payer {

0 commit comments

Comments
 (0)