Skip to content

Commit f49c21d

Browse files
committed
chore: bump jsonrpsee
Signed-off-by: Gustavo Inacio <[email protected]>
1 parent c26e552 commit f49c21d

File tree

5 files changed

+19
-18
lines changed

5 files changed

+19
-18
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ repository = "https://github.com/semiotic-ai/timeline-aggregation-protocol"
1212
alloy = { version = "0.4.2", features = ["full"] }
1313
serde = { version = "1.0.163", features = ["derive"] }
1414
rstest = "0.22.0"
15-
anyhow = { version = "1.0.70", default-features = false }
15+
anyhow = { version = "1.0.89" }
1616
tokio = { version = "1.40.0", features = ["macros", "signal"] }
1717
rand = "0.8.5"
18-
jsonrpsee = { version = "0.18.0", features = ["macros", "server"] }
18+
jsonrpsee = { version = "0.24.7", features = ["macros", "server"] }

tap_aggregator/Cargo.toml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,17 @@ tracing-subscriber = "0.3.17"
2525
log = "0.4.19"
2626
prometheus = "0.13.3"
2727
axum = { version = "0.7.5", features = [
28-
"http1",
29-
"json",
30-
"matched-path",
31-
"original-uri",
32-
"query",
33-
"tokio",
28+
"http1",
29+
"json",
30+
"matched-path",
31+
"original-uri",
32+
"query",
33+
"tokio",
3434
], default-features = false }
3535
futures-util = "0.3.28"
3636
lazy_static = "1.4.0"
3737
ruint = "1.10.1"
38+
tower = { version = "0.4", features = ["util"] }
3839

3940
[dev-dependencies]
4041
jsonrpsee = { workspace = true, features = ["http-client", "jsonrpsee-core"] }

tap_aggregator/src/server.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ pub async fn run_server(
233233
accepted_addresses,
234234
domain_separator,
235235
};
236-
let handle = server.start(rpc_impl.into_rpc())?;
236+
let handle = server.start(rpc_impl.into_rpc());
237237
Ok((handle, addr))
238238
}
239239

@@ -547,7 +547,7 @@ mod tests {
547547
// Create RAV through the JSON-RPC server.
548548
let res: Result<
549549
server::JsonRpcResponse<EIP712SignedMessage<ReceiptAggregateVoucher>>,
550-
jsonrpsee::core::Error,
550+
jsonrpsee::core::ClientError,
551551
> = client
552552
.request(
553553
"aggregate_receipts",
@@ -566,7 +566,7 @@ mod tests {
566566

567567
// Check the API versions returned by the server
568568
match res.expect_err("Expected an error") {
569-
jsonrpsee::core::Error::Call(err) => {
569+
jsonrpsee::core::ClientError::Call(err) => {
570570
let versions: server::TapRpcApiVersionsInfo =
571571
serde_json::from_str(err.data().unwrap().get()).unwrap();
572572
assert!(versions
@@ -645,7 +645,7 @@ mod tests {
645645
// Test with a number of receipts that stays within request size limit
646646
let res: Result<
647647
server::JsonRpcResponse<EIP712SignedMessage<ReceiptAggregateVoucher>>,
648-
jsonrpsee::core::Error,
648+
jsonrpsee::core::ClientError,
649649
> = client
650650
.request(
651651
"aggregate_receipts",
@@ -662,7 +662,7 @@ mod tests {
662662
// Test with all receipts to exceed request size limit
663663
let res: Result<
664664
server::JsonRpcResponse<EIP712SignedMessage<ReceiptAggregateVoucher>>,
665-
jsonrpsee::core::Error,
665+
jsonrpsee::core::ClientError,
666666
> = client
667667
.request(
668668
"aggregate_receipts",

tap_integration_tests/tests/indexer_mock.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ where
167167
aggregate_server_api_version,
168168
)?;
169169

170-
let handle = server.start(rpc_manager.into_rpc())?;
170+
let handle = server.start(rpc_manager.into_rpc());
171171
Ok((handle, addr))
172172
}
173173

tap_integration_tests/tests/showcase.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ async fn test_manager_wrong_aggregator_keys(
572572

573573
let mut counter = 1;
574574
for receipt_1 in requests_1 {
575-
let result: Result<(), jsonrpsee::core::Error> =
575+
let result: Result<(), jsonrpsee::core::ClientError> =
576576
client_1.request("request", (receipt_1,)).await;
577577
// The rav request is being made with messages that have been signed with a key that differs from the sender aggregator's.
578578
// So the Sender Aggregator should send an error to the requesting Indexer.
@@ -612,7 +612,7 @@ async fn test_manager_wrong_requestor_keys(
612612
let client_1 = HttpClientBuilder::default().build(indexer_1_address)?;
613613

614614
for receipt_1 in wrong_requests {
615-
let result: Result<(), jsonrpsee::core::Error> =
615+
let result: Result<(), jsonrpsee::core::ClientError> =
616616
client_1.request("request", (receipt_1,)).await;
617617
// The receipts have been signed with a key that the Indexer is not expecting.
618618
// This is one of the initial tests, so it should fail to receive the receipt
@@ -657,7 +657,7 @@ async fn test_tap_manager_rav_timestamp_cuttoff(
657657

658658
let mut counter = 1;
659659
for receipt_1 in repeated_timestamp_request {
660-
let result: Result<(), jsonrpsee::core::Error> =
660+
let result: Result<(), jsonrpsee::core::ClientError> =
661661
client_1.request("request", (receipt_1,)).await;
662662

663663
// The first receipt in the second batch has the same timestamp as the last receipt in the first batch.
@@ -732,7 +732,7 @@ async fn test_tap_aggregator_rav_timestamp_cuttoff(
732732
);
733733
let second_rav_response: Result<
734734
jsonrpsee_helpers::JsonRpcResponse<SignedRAV>,
735-
jsonrpsee::core::Error,
735+
jsonrpsee::core::ClientError,
736736
> = client.request("aggregate_receipts", params).await;
737737
assert!(
738738
second_rav_response.is_err(),

0 commit comments

Comments
 (0)