11// Copyright 2023-, Edge & Node, GraphOps, and Semiotic Labs.
22// SPDX-License-Identifier: Apache-2.0
33
4- use std:: {
5- collections:: HashMap , error:: Error , fmt:: Debug , net:: SocketAddr , path:: PathBuf , sync:: Arc ,
6- time:: Duration ,
7- } ;
8-
94use alloy:: dyn_abi:: Eip712Domain ;
10- use alloy:: sol_types:: eip712_domain;
115use anyhow;
126use axum:: extract:: MatchedPath ;
137use axum:: extract:: Request as ExtractRequest ;
@@ -25,7 +19,11 @@ use prometheus::TextEncoder;
2519use reqwest:: StatusCode ;
2620use serde:: { de:: DeserializeOwned , Serialize } ;
2721use sqlx:: postgres:: PgPoolOptions ;
28- use tap_core:: { manager:: Manager , receipt:: checks:: CheckList } ;
22+ use std:: {
23+ collections:: HashMap , error:: Error , fmt:: Debug , net:: SocketAddr , path:: PathBuf , sync:: Arc ,
24+ time:: Duration ,
25+ } ;
26+ use tap_core:: { manager:: Manager , receipt:: checks:: CheckList , tap_eip712_domain} ;
2927use thegraph_core:: { Address , Attestation , DeploymentId } ;
3028use thiserror:: Error ;
3129use tokio:: net:: TcpListener ;
@@ -293,12 +291,10 @@ impl IndexerService {
293291 . connect ( & options. config . database . postgres_url )
294292 . await ?;
295293
296- let domain_separator = eip712_domain ! {
297- name: "TAP" ,
298- version: "1" ,
299- chain_id: options. config. tap. chain_id,
300- verifying_contract: options. config. tap. receipts_verifier_address,
301- } ;
294+ let domain_separator = tap_eip712_domain (
295+ options. config . tap . chain_id ,
296+ options. config . tap . receipts_verifier_address ,
297+ ) ;
302298 let indexer_context =
303299 IndexerTapContext :: new ( database. clone ( ) , domain_separator. clone ( ) ) . await ;
304300 let timestamp_error_tolerance =
0 commit comments