@@ -9,7 +9,7 @@ use std::{
99
1010use alloy:: primitives:: { Address , U256 } ;
1111use anyhow:: { anyhow, Result } ;
12- use graphql_client :: GraphQLQuery ;
12+ use indexer_query :: escrow_account :: { self , EscrowAccountQuery } ;
1313use thiserror:: Error ;
1414use tokio:: sync:: watch:: Receiver ;
1515use tracing:: { error, warn} ;
@@ -87,17 +87,6 @@ impl EscrowAccounts {
8787 }
8888}
8989
90- type BigInt = String ;
91-
92- #[ derive( GraphQLQuery ) ]
93- #[ graphql(
94- schema_path = "../graphql/tap.schema.graphql" ,
95- query_path = "../graphql/escrow_account.query.graphql" ,
96- response_derives = "Debug" ,
97- variables_derives = "Clone"
98- ) ]
99- pub struct EscrowAccountQuery ;
100-
10190pub async fn escrow_accounts (
10291 escrow_subgraph : & ' static SubgraphClient ,
10392 indexer_address : Address ,
@@ -121,7 +110,7 @@ async fn get_escrow_accounts(
121110 // isAuthorized == true means that the signer is still authorized to sign
122111 // payments in the name of the sender.
123112 let response = escrow_subgraph
124- . query :: < EscrowAccountQuery , _ > ( escrow_account_query :: Variables {
113+ . query :: < EscrowAccountQuery , _ > ( escrow_account :: Variables {
125114 indexer : format ! ( "{:x?}" , indexer_address) ,
126115 thaw_end_timestamp : if reject_thawing_signers {
127116 U256 :: ZERO . to_string ( )
0 commit comments