Skip to content

Commit fbecf74

Browse files
gusinacioaasseman
authored andcommitted
refactor(all): bump tap-core to 1.0.0
Signed-off-by: Gustavo Inacio <[email protected]>
1 parent 45bddd5 commit fbecf74

File tree

16 files changed

+47
-54
lines changed

16 files changed

+47
-54
lines changed

Cargo.lock

Lines changed: 3 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

common/Cargo.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ thegraph = { git = "https://github.com/edgeandnode/toolshed", tag = "thegraph-v0
3131
thegraph-graphql-http = { version = "0.2.1", features = [
3232
"http-client-reqwest",
3333
] }
34-
tap_core = "0.8.0"
34+
tap_core = "1.0.0"
3535
axum = { version = "0.7.5", default_features = true }
3636
axum-extra = { version = "0.9.3", features = ["typed-header"] }
3737
thiserror = "1.0.49"
@@ -40,7 +40,11 @@ build-info = "0.0.34"
4040
autometrics = { version = "1.0.1", features = ["prometheus-exporter"] }
4141
tracing = "0.1.40"
4242
tower_governor = "0.3.2"
43-
tower-http = { version = "0.5.2", features = ["trace", "cors", "normalize-path"] }
43+
tower-http = { version = "0.5.2", features = [
44+
"trace",
45+
"cors",
46+
"normalize-path",
47+
] }
4448
tokio-util = "0.7.10"
4549
bigdecimal = "0.4.2"
4650
thegraph-core = { version = "0.5.2", features = ["subgraph-client"] }

common/src/indexer_service/http/indexer_service.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use eventuals::Eventual;
2424
use reqwest::StatusCode;
2525
use serde::{de::DeserializeOwned, Serialize};
2626
use sqlx::postgres::PgPoolOptions;
27-
use tap_core::{manager::Manager, receipt::checks::Checks};
27+
use tap_core::{manager::Manager, receipt::checks::CheckList};
2828
use thegraph::types::Address;
2929
use thegraph::types::{Attestation, DeploymentId};
3030
use thiserror::Error;
@@ -306,7 +306,7 @@ impl IndexerService {
306306
)
307307
.await;
308308

309-
let tap_manager = Manager::new(domain_separator, indexer_context, Checks::new(checks));
309+
let tap_manager = Manager::new(domain_separator, indexer_context, CheckList::new(checks));
310310

311311
let state = Arc::new(IndexerServiceState {
312312
config: options.config.clone(),

common/src/tap/checks/allocation_eligible.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ use eventuals::Eventual;
99

1010
use tap_core::receipt::{
1111
checks::{Check, CheckResult},
12-
Checking, ReceiptWithState,
12+
state::Checking,
13+
ReceiptWithState,
1314
};
1415

1516
use crate::prelude::Allocation;

common/src/tap/checks/deny_list_check.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ use std::sync::RwLock;
1111
use std::{str::FromStr, sync::Arc};
1212
use tap_core::receipt::{
1313
checks::{Check, CheckResult},
14-
Checking, ReceiptWithState,
14+
state::Checking,
15+
ReceiptWithState,
1516
};
1617
use thegraph::types::Address;
1718
use tracing::error;

common/src/tap/checks/receipt_max_val_check.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ pub struct ReceiptMaxValueCheck {
88

99
use tap_core::receipt::{
1010
checks::{Check, CheckResult},
11-
Checking, ReceiptWithState,
11+
state::Checking,
12+
ReceiptWithState,
1213
};
1314

1415
impl ReceiptMaxValueCheck {
@@ -47,7 +48,7 @@ mod tests {
4748

4849
use super::*;
4950
use tap_core::{
50-
receipt::{checks::Check, Checking, Receipt, ReceiptWithState},
51+
receipt::{checks::Check, state::Checking, Receipt, ReceiptWithState},
5152
signed_message::EIP712SignedMessage,
5253
};
5354

common/src/tap/checks/sender_balance_check.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ use ethers_core::types::U256;
88
use eventuals::Eventual;
99
use tap_core::receipt::{
1010
checks::{Check, CheckResult},
11-
Checking, ReceiptWithState,
11+
state::Checking,
12+
ReceiptWithState,
1213
};
1314
use tracing::error;
1415

common/src/tap/checks/timestamp_check.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ pub struct TimestampCheck {
99

1010
use tap_core::receipt::{
1111
checks::{Check, CheckResult},
12-
Checking, ReceiptWithState,
12+
state::Checking,
13+
ReceiptWithState,
1314
};
1415

1516
impl TimestampCheck {
@@ -52,7 +53,7 @@ mod tests {
5253

5354
use super::*;
5455
use tap_core::{
55-
receipt::{checks::Check, Checking, Receipt, ReceiptWithState},
56+
receipt::{checks::Check, state::Checking, Receipt, ReceiptWithState},
5657
signed_message::EIP712SignedMessage,
5758
};
5859

common/src/tap/receipt_store.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use bigdecimal::num_bigint::BigInt;
77
use sqlx::types::BigDecimal;
88
use tap_core::{
99
manager::adapters::ReceiptStore,
10-
receipt::{Checking, ReceiptWithState},
10+
receipt::{state::Checking, ReceiptWithState},
1111
};
1212
use tracing::error;
1313

tap-agent/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ sqlx = { version = "0.7.2", features = [
3636
"rust_decimal",
3737
"chrono",
3838
] }
39-
tap_aggregator = "0.3.0"
40-
tap_core = "0.8.0"
39+
tap_aggregator = "0.3.1"
40+
tap_core = "1.0.0"
4141
thiserror = "1.0.44"
4242
tokio = { version = "1.33.0" }
4343
thegraph = { git = "https://github.com/edgeandnode/toolshed", tag = "thegraph-v0.5.0" }

0 commit comments

Comments
 (0)