Skip to content

Commit ee0931f

Browse files
committed
fix: fix escrow accounts queries
1 parent ab34926 commit ee0931f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

crates/monitor/src/escrow_accounts.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ async fn get_escrow_accounts_v2(
159159
// 4. Service provider (indexer) receives payments from payer's escrow
160160

161161
let senders_balances: HashMap<Address, U256> = response
162-
.escrow_accounts
162+
.payments_escrow_accounts
163163
.iter()
164164
.map(|account| {
165165
let balance = U256::checked_sub(
@@ -180,7 +180,7 @@ async fn get_escrow_accounts_v2(
180180
.collect::<Result<HashMap<_, _>, anyhow::Error>>()?;
181181

182182
let senders_to_signers = response
183-
.escrow_accounts
183+
.payments_escrow_accounts
184184
.into_iter()
185185
.map(|account| {
186186
let payer = Address::from_str(&account.payer.id)?;

crates/query/graphql/network.schema.graphql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6661,8 +6661,8 @@ input PaymentsEscrowAccount_filter {
66616661
thawEndTimestamp_in: [BigInt!]
66626662
thawEndTimestamp_not_in: [BigInt!]
66636663
_change_block: BlockChangedFilter
6664-
and: [EscrowAccount_filter]
6665-
or: [EscrowAccount_filter]
6664+
and: [PaymentsEscrowAccount_filter]
6665+
or: [PaymentsEscrowAccount_filter]
66666666
}
66676667

66686668
enum PaymentsEscrowAccount_orderBy {

crates/test-assets/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ pub const ESCROW_QUERY_RESPONSE: &str = r#"
116116
pub const ESCROW_QUERY_RESPONSE_V2: &str = r#"
117117
{
118118
"data": {
119-
"escrowAccounts": [
119+
"paymentsEscrowAccounts": [
120120
{
121121
"balance": "34",
122122
"totalAmountThawing": "10",

0 commit comments

Comments
 (0)