Skip to content

Commit b1a678b

Browse files
committed
feat(tap-integration-test): update to work with alloy changes
Signed-off-by: Bryan Cole <[email protected]>
1 parent 9e94403 commit b1a678b

File tree

3 files changed

+109
-29
lines changed

3 files changed

+109
-29
lines changed

tap_integration_tests/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ futures = "0.3.28"
1919
anyhow = "1.0.71"
2020
tokio = "1.28.2"
2121
prometheus = "0.13.3"
22+
alloy-sol-types = { version = "0.3.1", features = ["eip712-serde"]}
23+
alloy-primitives = { version = "0.3.1", features = ["serde"]}
2224

2325
[[test]]
2426
name = "integration_tests"

tap_integration_tests/tests/indexer_mock/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ use std::{
88
time::{SystemTime, UNIX_EPOCH},
99
};
1010

11+
use alloy_sol_types::Eip712Domain;
1112
use anyhow::{Error, Result};
1213
use jsonrpsee::{
1314
core::{async_trait, client::ClientT},
@@ -72,6 +73,7 @@ impl<
7273
> RpcManager<EA, RCA, RSA, RAVSA>
7374
{
7475
pub fn new(
76+
domain_separator: Eip712Domain,
7577
escrow_adapter: EA,
7678
receipt_checks_adapter: RCA,
7779
receipt_storage_adapter: RSA,
@@ -84,6 +86,7 @@ impl<
8486
) -> Result<Self> {
8587
Ok(Self {
8688
manager: Arc::new(Manager::<EA, RCA, RSA, RAVSA>::new(
89+
domain_separator,
8790
escrow_adapter,
8891
receipt_checks_adapter,
8992
rav_storage_adapter,
@@ -166,6 +169,7 @@ pub async fn run_server<
166169
RAVSA: RAVStorageAdapter + Send + Sync + 'static,
167170
>(
168171
port: u16, // Port on which the server will listen
172+
domain_separator: Eip712Domain, // EIP712 domain separator
169173
escrow_adapter: CA, // EscrowAdapter instance
170174
receipt_checks_adapter: RCA, // ReceiptChecksAdapter instance
171175
receipt_storage_adapter: RSA, // ReceiptStorageAdapter instance
@@ -185,6 +189,7 @@ pub async fn run_server<
185189
let addr = server.local_addr()?;
186190
println!("Listening on: {}", addr);
187191
let rpc_manager = RpcManager::new(
192+
domain_separator,
188193
escrow_adapter,
189194
receipt_checks_adapter,
190195
receipt_storage_adapter,

0 commit comments

Comments
 (0)