From 1319dee957764a7ff30a65c556c230f038443039 Mon Sep 17 00:00:00 2001 From: Lorenzo Delgado Date: Tue, 26 Nov 2024 19:28:02 +0100 Subject: [PATCH] chore(deps): update rust crate thegraph-core to v0.8.5 Signed-off-by: Lorenzo Delgado --- Cargo.lock | 1006 +++++++++++++++-- Cargo.toml | 6 +- src/auth.rs | 2 +- src/block_constraints.rs | 4 +- src/blocks.rs | 2 +- src/chain.rs | 8 +- src/client_query.rs | 2 +- src/client_query/attestation_header.rs | 4 +- src/client_query/context.rs | 2 +- src/config.rs | 6 +- src/errors.rs | 2 +- src/exchange_rate.rs | 6 +- src/indexer_client.rs | 6 +- src/indexers/indexing_progress.rs | 2 +- src/indexers/public_poi.rs | 4 +- src/indexing_performance.rs | 2 +- src/main.rs | 6 +- src/network/indexer_indexing_poi_blocklist.rs | 2 +- src/network/indexer_indexing_poi_resolver.rs | 2 +- .../indexer_indexing_progress_resolver.rs | 2 +- src/network/internal/indexer_processing.rs | 2 +- src/network/internal/snapshot.rs | 4 +- src/network/internal/state.rs | 2 +- src/network/internal/subgraph_processing.rs | 2 +- src/network/service.rs | 5 +- src/network/subgraph_client.rs | 6 +- src/receipts.rs | 20 +- src/reports.rs | 2 +- src/vouchers.rs | 3 +- 29 files changed, 952 insertions(+), 170 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e5b354e4c..dbf658776 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -47,9 +47,9 @@ checksum = "45862d1c77f2228b9e10bc609d5bc203d86ebc9b87ad8d5d5167a6c9abf739d9" [[package]] name = "alloy" -version = "0.5.4" +version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea8ebf106e84a1c37f86244df7da0c7587e697b71a0d565cce079449b85ac6f8" +checksum = "b5b524b8c28a7145d1fe4950f84360b5de3e307601679ff0558ddc20ea229399" dependencies = [ "alloy-consensus", "alloy-contract", @@ -62,7 +62,10 @@ dependencies = [ "alloy-rpc-client", "alloy-rpc-types", "alloy-serde", - "alloy-signer 0.5.4", + "alloy-signer", + "alloy-signer-aws", + "alloy-signer-gcp", + "alloy-signer-ledger", "alloy-signer-local", "alloy-transport", "alloy-transport-http", @@ -83,9 +86,9 @@ dependencies = [ [[package]] name = "alloy-consensus" -version = "0.5.4" +version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41ed961a48297c732a5d97ee321aa8bb5009ecadbcb077d8bec90cb54e651629" +checksum = "ae09ffd7c29062431dd86061deefe4e3c6f07fa0d674930095f8dcedb0baf02c" dependencies = [ "alloy-eips", "alloy-primitives", @@ -94,14 +97,15 @@ dependencies = [ "auto_impl", "c-kzg", "derive_more", + "k256", "serde", ] [[package]] name = "alloy-contract" -version = "0.5.4" +version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "460ab80ce4bda1c80bcf96fe7460520476f2c7b734581c6567fac2708e2a60ef" +checksum = "66430a72d5bf5edead101c8c2f0a24bada5ec9f3cf9909b3e08b6d6899b4803e" dependencies = [ "alloy-dyn-abi", "alloy-json-abi", @@ -115,7 +119,7 @@ dependencies = [ "alloy-transport", "futures", "futures-util", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -162,9 +166,9 @@ dependencies = [ [[package]] name = "alloy-eip7702" -version = "0.3.2" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "64ffc577390ce50234e02d841214b3dc0bea6aaaae8e04bbf3cb82e9a45da9eb" +checksum = "5f6cee6a35793f3db8a5ffe60e86c695f321d081a567211245f503e8c498fce8" dependencies = [ "alloy-primitives", "alloy-rlp", @@ -175,9 +179,9 @@ dependencies = [ [[package]] name = "alloy-eips" -version = "0.5.4" +version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b69e06cf9c37be824b9d26d6d101114fdde6af0c87de2828b414c05c4b3daa71" +checksum = "5b6aa3961694b30ba53d41006131a2fca3bdab22e4c344e46db2c639e7c2dfdd" dependencies = [ "alloy-eip2930", "alloy-eip7702", @@ -193,9 +197,9 @@ dependencies = [ [[package]] name = "alloy-genesis" -version = "0.5.4" +version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dde15e14944a88bd6a57d325e9a49b75558746fe16aaccc79713ae50a6a9574c" +checksum = "e53f7877ded3921d18a0a9556d55bedf84535567198c9edab2aa23106da91855" dependencies = [ "alloy-primitives", "alloy-serde", @@ -216,23 +220,23 @@ dependencies = [ [[package]] name = "alloy-json-rpc" -version = "0.5.4" +version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af5979e0d5a7bf9c7eb79749121e8256e59021af611322aee56e77e20776b4b3" +checksum = "3694b7e480728c0b3e228384f223937f14c10caef5a4c766021190fc8f283d35" dependencies = [ "alloy-primitives", "alloy-sol-types", "serde", "serde_json", - "thiserror", + "thiserror 1.0.69", "tracing", ] [[package]] name = "alloy-network" -version = "0.5.4" +version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "204237129086ce5dc17a58025e93739b01b45313841f98fa339eb1d780511e57" +checksum = "ea94b8ceb5c75d7df0a93ba0acc53b55a22b47b532b600a800a87ef04eb5b0b4" dependencies = [ "alloy-consensus", "alloy-eips", @@ -241,19 +245,21 @@ dependencies = [ "alloy-primitives", "alloy-rpc-types-eth", "alloy-serde", - "alloy-signer 0.5.4", + "alloy-signer", "alloy-sol-types", "async-trait", "auto_impl", "futures-utils-wasm", - "thiserror", + "serde", + "serde_json", + "thiserror 1.0.69", ] [[package]] name = "alloy-network-primitives" -version = "0.5.4" +version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "514f70ee2a953db21631cd817b13a1571474ec77ddc03d47616d5e8203489fde" +checksum = "df9f3e281005943944d15ee8491534a1c7b3cbf7a7de26f8c433b842b93eb5f9" dependencies = [ "alloy-consensus", "alloy-eips", @@ -292,9 +298,9 @@ dependencies = [ [[package]] name = "alloy-provider" -version = "0.5.4" +version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4814d141ede360bb6cd1b4b064f1aab9de391e7c4d0d4d50ac89ea4bc1e25fbd" +checksum = "40c1f9eede27bf4c13c099e8e64d54efd7ce80ef6ea47478aa75d5d74e2dba3b" dependencies = [ "alloy-chains", "alloy-consensus", @@ -318,12 +324,12 @@ dependencies = [ "futures-utils-wasm", "lru", "parking_lot", - "pin-project", + "pin-project 1.1.7", "reqwest", "schnellru", "serde", "serde_json", - "thiserror", + "thiserror 1.0.69", "tokio", "tracing", "url", @@ -332,9 +338,9 @@ dependencies = [ [[package]] name = "alloy-pubsub" -version = "0.5.4" +version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "96ba46eb69ddf7a9925b81f15229cb74658e6eebe5dd30a5b74e2cd040380573" +checksum = "90f1f34232f77341076541c405482e4ae12f0ee7153d8f9969fc1691201b2247" dependencies = [ "alloy-json-rpc", "alloy-primitives", @@ -345,7 +351,7 @@ dependencies = [ "serde_json", "tokio", "tokio-stream", - "tower", + "tower 0.5.1", "tracing", ] @@ -373,9 +379,9 @@ dependencies = [ [[package]] name = "alloy-rpc-client" -version = "0.5.4" +version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7fc2bd1e7403463a5f2c61e955bcc9d3072b63aa177442b0f9aa6a6d22a941e3" +checksum = "374dbe0dc3abdc2c964f36b3d3edf9cdb3db29d16bda34aa123f03d810bec1dd" dependencies = [ "alloy-json-rpc", "alloy-primitives", @@ -385,13 +391,13 @@ dependencies = [ "alloy-transport-ipc", "alloy-transport-ws", "futures", - "pin-project", + "pin-project 1.1.7", "reqwest", "serde", "serde_json", "tokio", "tokio-stream", - "tower", + "tower 0.5.1", "tracing", "url", "wasmtimer", @@ -399,9 +405,9 @@ dependencies = [ [[package]] name = "alloy-rpc-types" -version = "0.5.4" +version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eea9bf1abdd506f985a53533f5ac01296bcd6102c5e139bbc5d40bc468d2c916" +checksum = "c74832aa474b670309c20fffc2a869fa141edab7c79ff7963fad0a08de60bae1" dependencies = [ "alloy-primitives", "alloy-rpc-types-engine", @@ -412,9 +418,9 @@ dependencies = [ [[package]] name = "alloy-rpc-types-engine" -version = "0.5.4" +version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "886d22d41992287a235af2f3af4299b5ced2bcafb81eb835572ad35747476946" +checksum = "3f56294dce86af23ad6ee8df46cf8b0d292eb5d1ff67dc88a0886051e32b1faf" dependencies = [ "alloy-consensus", "alloy-eips", @@ -428,9 +434,9 @@ dependencies = [ [[package]] name = "alloy-rpc-types-eth" -version = "0.5.4" +version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "00b034779a4850b4b03f5be5ea674a1cf7d746b2da762b34d1860ab45e48ca27" +checksum = "a8a477281940d82d29315846c7216db45b15e90bcd52309da9f54bcf7ad94a11" dependencies = [ "alloy-consensus", "alloy-eips", @@ -447,9 +453,9 @@ dependencies = [ [[package]] name = "alloy-serde" -version = "0.5.4" +version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "028e72eaa9703e4882344983cfe7636ce06d8cce104a78ea62fd19b46659efc4" +checksum = "4dfa4a7ccf15b2492bb68088692481fd6b2604ccbee1d0d6c44c21427ae4df83" dependencies = [ "alloy-primitives", "serde", @@ -458,9 +464,9 @@ dependencies = [ [[package]] name = "alloy-signer" -version = "0.4.2" +version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2fd4e0ad79c81a27ca659be5d176ca12399141659fef2bcbfdc848da478f4504" +checksum = "2e10aec39d60dc27edcac447302c7803d2371946fb737245320a05b78eb2fafd" dependencies = [ "alloy-dyn-abi", "alloy-primitives", @@ -469,37 +475,79 @@ dependencies = [ "auto_impl", "elliptic-curve", "k256", - "thiserror", + "thiserror 1.0.69", ] [[package]] -name = "alloy-signer" -version = "0.5.4" +name = "alloy-signer-aws" +version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "592c185d7100258c041afac51877660c7bf6213447999787197db4842f0e938e" +checksum = "0109e5b18079aec2a022e4bc9db1d74bcc046f8b66274ffa8b0e4322b44b2b44" dependencies = [ + "alloy-consensus", + "alloy-network", "alloy-primitives", + "alloy-signer", "async-trait", - "auto_impl", - "elliptic-curve", + "aws-sdk-kms", + "k256", + "spki", + "thiserror 1.0.69", + "tracing", +] + +[[package]] +name = "alloy-signer-gcp" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "558651eb0d76bcf2224de694481e421112fa2cbc6fe6a413cc76fd67e14cf0d7" +dependencies = [ + "alloy-consensus", + "alloy-network", + "alloy-primitives", + "alloy-signer", + "async-trait", + "gcloud-sdk", "k256", - "thiserror", + "spki", + "thiserror 1.0.69", + "tracing", +] + +[[package]] +name = "alloy-signer-ledger" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29781b6a064b6235de4ec3cc0810f59fe227b8d31258f23a077570fc9525d7a6" +dependencies = [ + "alloy-consensus", + "alloy-dyn-abi", + "alloy-network", + "alloy-primitives", + "alloy-signer", + "alloy-sol-types", + "async-trait", + "coins-ledger", + "futures-util", + "semver 1.0.23", + "thiserror 1.0.69", + "tracing", ] [[package]] name = "alloy-signer-local" -version = "0.5.4" +version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6614f02fc1d5b079b2a4a5320018317b506fd0a6d67c1fd5542a71201724986c" +checksum = "d8396f6dff60700bc1d215ee03d86ff56de268af96e2bf833a14d0bafcab9882" dependencies = [ "alloy-consensus", "alloy-network", "alloy-primitives", - "alloy-signer 0.5.4", + "alloy-signer", "async-trait", "k256", "rand", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -577,9 +625,9 @@ dependencies = [ [[package]] name = "alloy-transport" -version = "0.5.4" +version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be77579633ebbc1266ae6fd7694f75c408beb1aeb6865d0b18f22893c265a061" +checksum = "f99acddb34000d104961897dbb0240298e8b775a7efffb9fda2a1a3efedd65b3" dependencies = [ "alloy-json-rpc", "base64 0.22.1", @@ -587,9 +635,9 @@ dependencies = [ "futures-utils-wasm", "serde", "serde_json", - "thiserror", + "thiserror 1.0.69", "tokio", - "tower", + "tower 0.5.1", "tracing", "url", "wasmtimer", @@ -597,24 +645,24 @@ dependencies = [ [[package]] name = "alloy-transport-http" -version = "0.5.4" +version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91fd1a5d0827939847983b46f2f79510361f901dc82f8e3c38ac7397af142c6e" +checksum = "5dc013132e34eeadaa0add7e74164c1503988bfba8bae885b32e0918ba85a8a6" dependencies = [ "alloy-json-rpc", "alloy-transport", "reqwest", "serde_json", - "tower", + "tower 0.5.1", "tracing", "url", ] [[package]] name = "alloy-transport-ipc" -version = "0.5.4" +version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8073d1186bfeeb8fbdd1292b6f1a0731f3aed8e21e1463905abfae0b96a887a6" +checksum = "063edc0660e81260653cc6a95777c29d54c2543a668aa5da2359fb450d25a1ba" dependencies = [ "alloy-json-rpc", "alloy-pubsub", @@ -622,7 +670,7 @@ dependencies = [ "bytes", "futures", "interprocess", - "pin-project", + "pin-project 1.1.7", "serde_json", "tokio", "tokio-util", @@ -631,14 +679,14 @@ dependencies = [ [[package]] name = "alloy-transport-ws" -version = "0.5.4" +version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61f27837bb4a1d6c83a28231c94493e814882f0e9058648a97e908a5f3fc9fcf" +checksum = "abd170e600801116d5efe64f74a4fc073dbbb35c807013a7d0a388742aeebba0" dependencies = [ "alloy-pubsub", "alloy-transport", "futures", - "http", + "http 1.1.0", "rustls", "serde_json", "tokio", @@ -896,6 +944,205 @@ version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26" +[[package]] +name = "aws-credential-types" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60e8f6b615cb5fc60a98132268508ad104310f0cfb25a1c22eee76efdf9154da" +dependencies = [ + "aws-smithy-async", + "aws-smithy-runtime-api", + "aws-smithy-types", + "zeroize", +] + +[[package]] +name = "aws-runtime" +version = "1.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a10d5c055aa540164d9561a0e2e74ad30f0dcf7393c3a92f6733ddf9c5762468" +dependencies = [ + "aws-credential-types", + "aws-sigv4", + "aws-smithy-async", + "aws-smithy-http", + "aws-smithy-runtime", + "aws-smithy-runtime-api", + "aws-smithy-types", + "aws-types", + "bytes", + "fastrand", + "http 0.2.12", + "http-body 0.4.6", + "once_cell", + "percent-encoding", + "pin-project-lite", + "tracing", + "uuid", +] + +[[package]] +name = "aws-sdk-kms" +version = "1.50.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfd059dacda4dfd5b57f2bd453fc6555f9acb496cb77508d517da24cf5d73167" +dependencies = [ + "aws-credential-types", + "aws-runtime", + "aws-smithy-async", + "aws-smithy-http", + "aws-smithy-json", + "aws-smithy-runtime", + "aws-smithy-runtime-api", + "aws-smithy-types", + "aws-types", + "bytes", + "http 0.2.12", + "once_cell", + "regex-lite", + "tracing", +] + +[[package]] +name = "aws-sigv4" +version = "1.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5619742a0d8f253be760bfbb8e8e8368c69e3587e4637af5754e488a611499b1" +dependencies = [ + "aws-credential-types", + "aws-smithy-http", + "aws-smithy-runtime-api", + "aws-smithy-types", + "bytes", + "form_urlencoded", + "hex", + "hmac", + "http 0.2.12", + "http 1.1.0", + "once_cell", + "percent-encoding", + "sha2", + "time", + "tracing", +] + +[[package]] +name = "aws-smithy-async" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62220bc6e97f946ddd51b5f1361f78996e704677afc518a4ff66b7a72ea1378c" +dependencies = [ + "futures-util", + "pin-project-lite", + "tokio", +] + +[[package]] +name = "aws-smithy-http" +version = "0.60.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c8bc3e8fdc6b8d07d976e301c02fe553f72a39b7a9fea820e023268467d7ab6" +dependencies = [ + "aws-smithy-runtime-api", + "aws-smithy-types", + "bytes", + "bytes-utils", + "futures-core", + "http 0.2.12", + "http-body 0.4.6", + "once_cell", + "percent-encoding", + "pin-project-lite", + "pin-utils", + "tracing", +] + +[[package]] +name = "aws-smithy-json" +version = "0.60.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4683df9469ef09468dad3473d129960119a0d3593617542b7d52086c8486f2d6" +dependencies = [ + "aws-smithy-types", +] + +[[package]] +name = "aws-smithy-runtime" +version = "1.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "be28bd063fa91fd871d131fc8b68d7cd4c5fa0869bea68daca50dcb1cbd76be2" +dependencies = [ + "aws-smithy-async", + "aws-smithy-http", + "aws-smithy-runtime-api", + "aws-smithy-types", + "bytes", + "fastrand", + "http 0.2.12", + "http-body 0.4.6", + "http-body 1.0.1", + "httparse", + "once_cell", + "pin-project-lite", + "pin-utils", + "tokio", + "tracing", +] + +[[package]] +name = "aws-smithy-runtime-api" +version = "1.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92165296a47a812b267b4f41032ff8069ab7ff783696d217f0994a0d7ab585cd" +dependencies = [ + "aws-smithy-async", + "aws-smithy-types", + "bytes", + "http 0.2.12", + "http 1.1.0", + "pin-project-lite", + "tokio", + "tracing", + "zeroize", +] + +[[package]] +name = "aws-smithy-types" +version = "1.2.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fbd94a32b3a7d55d3806fe27d98d3ad393050439dd05eb53ece36ec5e3d3510" +dependencies = [ + "base64-simd", + "bytes", + "bytes-utils", + "http 0.2.12", + "http 1.1.0", + "http-body 0.4.6", + "http-body 1.0.1", + "http-body-util", + "itoa", + "num-integer", + "pin-project-lite", + "pin-utils", + "ryu", + "serde", + "time", +] + +[[package]] +name = "aws-types" +version = "1.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5221b91b3e441e6675310829fd8984801b772cb1546ef6c0e54dec9f1ac13fef" +dependencies = [ + "aws-credential-types", + "aws-smithy-async", + "aws-smithy-runtime-api", + "aws-smithy-types", + "rustc_version 0.4.1", + "tracing", +] + [[package]] name = "axum" version = "0.7.9" @@ -906,8 +1153,8 @@ dependencies = [ "axum-core", "bytes", "futures-util", - "http", - "http-body", + "http 1.1.0", + "http-body 1.0.1", "http-body-util", "hyper", "hyper-util", @@ -923,7 +1170,7 @@ dependencies = [ "serde_path_to_error", "sync_wrapper 1.0.2", "tokio", - "tower", + "tower 0.5.1", "tower-layer", "tower-service", ] @@ -937,8 +1184,8 @@ dependencies = [ "async-trait", "bytes", "futures-util", - "http", - "http-body", + "http 1.1.0", + "http-body 1.0.1", "http-body-util", "mime", "pin-project-lite", @@ -981,6 +1228,16 @@ version = "0.22.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" +[[package]] +name = "base64-simd" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "339abbe78e73178762e23bea9dfd08e697eb3f3301cd4be981c0f78ba5859195" +dependencies = [ + "outref", + "vsimd", +] + [[package]] name = "base64ct" version = "1.6.0" @@ -1008,6 +1265,12 @@ version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "349f9b6a179ed607305526ca489b34ad0a41aed5f7980fa90eb03160b69598fb" +[[package]] +name = "bitflags" +version = "1.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" + [[package]] name = "bitflags" version = "2.6.0" @@ -1083,6 +1346,16 @@ dependencies = [ "serde", ] +[[package]] +name = "bytes-utils" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7dafe3a8757b027e2be6e4e5601ed563c55989fcf1546e933c66c8eb3a058d35" +dependencies = [ + "bytes", + "either", +] + [[package]] name = "c-kzg" version = "1.0.3" @@ -1122,6 +1395,12 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" +[[package]] +name = "cfg_aliases" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" + [[package]] name = "chrono" version = "0.4.38" @@ -1144,6 +1423,29 @@ dependencies = [ "cc", ] +[[package]] +name = "coins-ledger" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab9bc0994d0aa0f4ade5f3a9baf4a8d936f250278c85a1124b401860454246ab" +dependencies = [ + "async-trait", + "byteorder", + "cfg-if", + "const-hex", + "getrandom", + "hidapi-rusb", + "js-sys", + "log", + "nix", + "once_cell", + "thiserror 1.0.69", + "tokio", + "tracing", + "wasm-bindgen", + "wasm-bindgen-futures", +] + [[package]] name = "combine" version = "3.8.1" @@ -1186,6 +1488,16 @@ dependencies = [ "libc", ] +[[package]] +name = "core-foundation" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b55271e5c8c478ad3f38ad24ef34923091e0548492a266d19b3c0b4d82574c63" +dependencies = [ + "core-foundation-sys", + "libc", +] + [[package]] name = "core-foundation-sys" version = "0.8.7" @@ -1344,6 +1656,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f55bf8e7b65898637379c1b74eb1551107c8294ed26d855ceb9fd1a09cfc9bc0" dependencies = [ "const-oid", + "pem-rfc7468", "zeroize", ] @@ -1477,6 +1790,7 @@ dependencies = [ "ff", "generic-array", "group", + "pem-rfc7468", "pkcs8", "rand_core", "sec1", @@ -1733,6 +2047,34 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "42012b0f064e01aa58b545fe3727f90f7dd4020f4a3ea735b50344965f5a57e9" +[[package]] +name = "gcloud-sdk" +version = "0.25.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0775bfa745cdf7287ae9765a685a813b91049b6b6d5ca3de20a3d5d16a80d8b2" +dependencies = [ + "async-trait", + "bytes", + "chrono", + "futures", + "hyper", + "jsonwebtoken", + "once_cell", + "prost", + "prost-types", + "reqwest", + "secret-vault-value", + "serde", + "serde_json", + "tokio", + "tonic", + "tower 0.5.1", + "tower-layer", + "tower-util", + "tracing", + "url", +] + [[package]] name = "generic-array" version = "0.14.7" @@ -1751,8 +2093,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7" dependencies = [ "cfg-if", + "js-sys", "libc", "wasi", + "wasm-bindgen", ] [[package]] @@ -1771,7 +2115,6 @@ checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" name = "graph-gateway" version = "25.0.0" dependencies = [ - "alloy", "anyhow", "assert_matches", "axum", @@ -1781,9 +2124,8 @@ dependencies = [ "futures", "graphql 0.3.0", "headers", - "hex", "hickory-resolver", - "http", + "http 1.1.0", "http-body-util", "hyper", "indexer-selection", @@ -1792,7 +2134,7 @@ dependencies = [ "lazy_static", "ordered-float", "parking_lot", - "pin-project", + "pin-project 1.1.7", "primitive-types", "prometheus", "prost", @@ -1809,10 +2151,10 @@ dependencies = [ "tap_core", "thegraph-core", "thegraph-graphql-http", - "thiserror", + "thiserror 1.0.69", "tokio", "tokio-test", - "tower", + "tower 0.5.1", "tower-http", "tower-test", "tracing", @@ -1847,7 +2189,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d2ebc8013b4426d5b81a4364c419a95ed0b404af2b82e2457de52d9348f0e474" dependencies = [ "combine", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -1872,7 +2214,7 @@ dependencies = [ "fnv", "futures-core", "futures-sink", - "http", + "http 1.1.0", "indexmap 2.6.0", "slab", "tokio", @@ -1928,7 +2270,7 @@ dependencies = [ "base64 0.21.7", "bytes", "headers-core", - "http", + "http 1.1.0", "httpdate", "mime", "sha1", @@ -1940,7 +2282,7 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "54b4a22553d4242c49fddb9ba998a99962b5cc6f22cb5a3482bec22522403ce4" dependencies = [ - "http", + "http 1.1.0", ] [[package]] @@ -1997,7 +2339,7 @@ dependencies = [ "ipnet", "once_cell", "rand", - "thiserror", + "thiserror 1.0.69", "tinyvec", "tokio", "tracing", @@ -2020,11 +2362,23 @@ dependencies = [ "rand", "resolv-conf", "smallvec", - "thiserror", + "thiserror 1.0.69", "tokio", "tracing", ] +[[package]] +name = "hidapi-rusb" +version = "1.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "efdc2ec354929a6e8f3c6b6923a4d97427ec2f764cfee8cd4bfe890946cdf08b" +dependencies = [ + "cc", + "libc", + "pkg-config", + "rusb", +] + [[package]] name = "hmac" version = "0.12.1" @@ -2045,6 +2399,17 @@ dependencies = [ "winapi", ] +[[package]] +name = "http" +version = "0.2.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "601cbb57e577e2f5ef5be8e7b83f0f63994f25aa94d673e54a92d5c516d101f1" +dependencies = [ + "bytes", + "fnv", + "itoa", +] + [[package]] name = "http" version = "1.1.0" @@ -2056,6 +2421,17 @@ dependencies = [ "itoa", ] +[[package]] +name = "http-body" +version = "0.4.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ceab25649e9960c0311ea418d17bee82c0dcec1bd053b5f9a66e265a693bed2" +dependencies = [ + "bytes", + "http 0.2.12", + "pin-project-lite", +] + [[package]] name = "http-body" version = "1.0.1" @@ -2063,7 +2439,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184" dependencies = [ "bytes", - "http", + "http 1.1.0", ] [[package]] @@ -2074,8 +2450,8 @@ checksum = "793429d76616a256bcb62c2a2ec2bed781c8307e797e2598c50010f2bee2544f" dependencies = [ "bytes", "futures-util", - "http", - "http-body", + "http 1.1.0", + "http-body 1.0.1", "pin-project-lite", ] @@ -2101,8 +2477,8 @@ dependencies = [ "futures-channel", "futures-util", "h2", - "http", - "http-body", + "http 1.1.0", + "http-body 1.0.1", "httparse", "httpdate", "itoa", @@ -2119,16 +2495,30 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "08afdbb5c31130e3034af566421053ab03787c640246a446327f550d11bcb333" dependencies = [ "futures-util", - "http", + "http 1.1.0", "hyper", "hyper-util", "rustls", + "rustls-native-certs", "rustls-pki-types", "tokio", "tokio-rustls", "tower-service", ] +[[package]] +name = "hyper-timeout" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b90d566bffbce6a75bd8b09a05aa8c2cb1fabb6cb348f8840c9e4c90a0d83b0" +dependencies = [ + "hyper", + "hyper-util", + "pin-project-lite", + "tokio", + "tower-service", +] + [[package]] name = "hyper-tls" version = "0.6.0" @@ -2154,8 +2544,8 @@ dependencies = [ "bytes", "futures-channel", "futures-util", - "http", - "http-body", + "http 1.1.0", + "http-body 1.0.1", "hyper", "pin-project-lite", "socket2", @@ -2474,6 +2864,21 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "jsonwebtoken" +version = "9.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9ae10193d25051e74945f1ea2d0b42e03cc3b890f7e4cc5faa44997d808193f" +dependencies = [ + "base64 0.21.7", + "js-sys", + "pem", + "ring", + "serde", + "serde_json", + "simple_asn1", +] + [[package]] name = "k256" version = "0.13.4" @@ -2524,6 +2929,18 @@ version = "0.2.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8355be11b20d696c8f18f6cc018c4e372165b1fa8126cef092399c9951984ffa" +[[package]] +name = "libusb1-sys" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da050ade7ac4ff1ba5379af847a10a10a8e284181e060105bf8d86960ce9ce0f" +dependencies = [ + "cc", + "libc", + "pkg-config", + "vcpkg", +] + [[package]] name = "libz-sys" version = "1.1.20" @@ -2615,12 +3032,31 @@ version = "2.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" +[[package]] +name = "memoffset" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5de893c32cde5f383baa4c04c5d6dbdd735cfd4a794b0debdb2bb1b421da5ff4" +dependencies = [ + "autocfg", +] + [[package]] name = "mime" version = "0.3.17" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" +[[package]] +name = "mime_guess" +version = "2.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f7c44f8e672c00fe5308fa235f821cb4198414e1c77935c1ab6948d3fd78550e" +dependencies = [ + "mime", + "unicase", +] + [[package]] name = "minimal-lexical" version = "0.2.1" @@ -2660,11 +3096,24 @@ dependencies = [ "openssl-probe", "openssl-sys", "schannel", - "security-framework", + "security-framework 2.11.1", "security-framework-sys", "tempfile", ] +[[package]] +name = "nix" +version = "0.26.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "598beaf3cc6fdd9a5dfb1630c2800c7acd31df7aaf0f565796fba2b53ca1af1b" +dependencies = [ + "bitflags 1.3.2", + "cfg-if", + "libc", + "memoffset", + "pin-utils", +] + [[package]] name = "nom" version = "7.1.3" @@ -2817,7 +3266,7 @@ version = "0.10.68" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6174bc48f102d208783c2c84bf931bb75927a617866870de8a4ea85597f871f5" dependencies = [ - "bitflags", + "bitflags 2.6.0", "cfg-if", "foreign-types", "libc", @@ -2874,6 +3323,12 @@ dependencies = [ "windows-sys 0.59.0", ] +[[package]] +name = "outref" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4030760ffd992bef45b0ae3f10ce1aba99e33464c90d14dd7c039884963ddc7a" + [[package]] name = "overload" version = "0.1.1" @@ -2936,6 +3391,25 @@ version = "1.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" +[[package]] +name = "pem" +version = "3.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e459365e590736a54c3fa561947c84837534b8e9af6fc5bf781307e82658fae" +dependencies = [ + "base64 0.22.1", + "serde", +] + +[[package]] +name = "pem-rfc7468" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "88b39c9bfcfc231068454382784bb460aae594343fb030d46e9f50a645418412" +dependencies = [ + "base64ct", +] + [[package]] name = "percent-encoding" version = "2.3.1" @@ -2955,7 +3429,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "879952a81a83930934cbf1786752d6dedc3b1f29e8f8fb2ad1d0a36f377cf442" dependencies = [ "memchr", - "thiserror", + "thiserror 1.0.69", "ucd-trie", ] @@ -2969,13 +3443,33 @@ dependencies = [ "rustc_version 0.4.1", ] +[[package]] +name = "pin-project" +version = "0.4.30" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ef0f924a5ee7ea9cbcea77529dba45f8a9ba9f622419fe3386ca581a3ae9d5a" +dependencies = [ + "pin-project-internal 0.4.30", +] + [[package]] name = "pin-project" version = "1.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "be57f64e946e500c8ee36ef6331845d40a93055567ec57e8fae13efd33759b95" dependencies = [ - "pin-project-internal", + "pin-project-internal 1.1.7", +] + +[[package]] +name = "pin-project-internal" +version = "0.4.30" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "851c8d0ce9bebe43790dedfc86614c23494ac9f423dd618d3a61fc693eafe61e" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", ] [[package]] @@ -3094,7 +3588,7 @@ dependencies = [ "lazy_static", "memchr", "parking_lot", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -3105,7 +3599,7 @@ checksum = "b4c2511913b88df1637da85cc8d96ec8e43a3f8bb8ccb71ee1ac240d6f3df58d" dependencies = [ "bit-set", "bit-vec", - "bitflags", + "bitflags 2.6.0", "lazy_static", "num-traits", "rand", @@ -3140,12 +3634,73 @@ dependencies = [ "syn 2.0.89", ] +[[package]] +name = "prost-types" +version = "0.13.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4759aa0d3a6232fb8dbdb97b61de2c20047c68aca932c7ed76da9d788508d670" +dependencies = [ + "prost", +] + [[package]] name = "quick-error" version = "1.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0" +[[package]] +name = "quinn" +version = "0.11.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62e96808277ec6f97351a2380e6c25114bc9e67037775464979f3037c92d05ef" +dependencies = [ + "bytes", + "pin-project-lite", + "quinn-proto", + "quinn-udp", + "rustc-hash", + "rustls", + "socket2", + "thiserror 2.0.3", + "tokio", + "tracing", +] + +[[package]] +name = "quinn-proto" +version = "0.11.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2fe5ef3495d7d2e377ff17b1a8ce2ee2ec2a18cde8b6ad6619d65d0701c135d" +dependencies = [ + "bytes", + "getrandom", + "rand", + "ring", + "rustc-hash", + "rustls", + "rustls-pki-types", + "slab", + "thiserror 2.0.3", + "tinyvec", + "tracing", + "web-time", +] + +[[package]] +name = "quinn-udp" +version = "0.5.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d5a626c6807713b15cac82a6acaccd6043c9a5408c24baae07611fec3f243da" +dependencies = [ + "cfg_aliases", + "libc", + "once_cell", + "socket2", + "tracing", + "windows-sys 0.59.0", +] + [[package]] name = "quote" version = "1.0.37" @@ -3259,7 +3814,7 @@ version = "0.5.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9b6dfecf2c74bce2466cabf93f6664d6998a69eb21e39f4207930065b27b771f" dependencies = [ - "bitflags", + "bitflags 2.6.0", ] [[package]] @@ -3294,6 +3849,12 @@ dependencies = [ "regex-syntax 0.8.5", ] +[[package]] +name = "regex-lite" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53a49587ad06b26609c52e423de037e7f57f20d53535d66e08c695f347df952a" + [[package]] name = "regex-syntax" version = "0.6.29" @@ -3319,8 +3880,8 @@ dependencies = [ "futures-core", "futures-util", "h2", - "http", - "http-body", + "http 1.1.0", + "http-body 1.0.1", "http-body-util", "hyper", "hyper-rustls", @@ -3330,11 +3891,16 @@ dependencies = [ "js-sys", "log", "mime", + "mime_guess", "native-tls", "once_cell", "percent-encoding", "pin-project-lite", + "quinn", + "rustls", + "rustls-native-certs", "rustls-pemfile", + "rustls-pki-types", "serde", "serde_json", "serde_urlencoded", @@ -3342,11 +3908,13 @@ dependencies = [ "system-configuration", "tokio", "tokio-native-tls", + "tokio-rustls", "tokio-util", "tower-service", "url", "wasm-bindgen", "wasm-bindgen-futures", + "wasm-streams", "web-sys", "windows-registry", ] @@ -3426,6 +3994,16 @@ version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "48fd7bd8a6377e15ad9d42a8ec25371b94ddc67abe7c8b9127bec79bebaaae18" +[[package]] +name = "rusb" +version = "0.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab9f9ff05b63a786553a4c02943b74b34a988448671001e9a27e2f0565cc05a4" +dependencies = [ + "libc", + "libusb1-sys", +] + [[package]] name = "rustc-demangle" version = "0.1.24" @@ -3468,7 +4046,7 @@ version = "0.38.41" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d7f649912bc1495e167a6edee79151c84b1bad49748cb4f1f1167f459f6224f6" dependencies = [ - "bitflags", + "bitflags 2.6.0", "errno", "libc", "linux-raw-sys", @@ -3481,6 +4059,7 @@ version = "0.23.18" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9c9cc1d47e243d655ace55ed38201c19ae02c148ae56412ab8750e8f0166ab7f" dependencies = [ + "log", "once_cell", "ring", "rustls-pki-types", @@ -3489,6 +4068,18 @@ dependencies = [ "zeroize", ] +[[package]] +name = "rustls-native-certs" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7fcff2dd52b58a8d98a70243663a0d234c4e2b79235637849d15913394a247d3" +dependencies = [ + "openssl-probe", + "rustls-pki-types", + "schannel", + "security-framework 3.0.1", +] + [[package]] name = "rustls-pemfile" version = "2.2.0" @@ -3503,6 +4094,9 @@ name = "rustls-pki-types" version = "1.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "16f1201b3c9a7ee8039bcadc17b7e605e2945b27eee7631788c1bd2b0643674b" +dependencies = [ + "web-time", +] [[package]] name = "rustls-webpki" @@ -3609,14 +4203,40 @@ dependencies = [ "cc", ] +[[package]] +name = "secret-vault-value" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc32a777b53b3433b974c9c26b6d502a50037f8da94e46cb8ce2ced2cfdfaea0" +dependencies = [ + "prost", + "prost-types", + "serde", + "serde_json", + "zeroize", +] + [[package]] name = "security-framework" version = "2.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "897b2245f0b511c87893af39b033e5ca9cce68824c4d7e7630b5a1d339658d02" dependencies = [ - "bitflags", - "core-foundation", + "bitflags 2.6.0", + "core-foundation 0.9.4", + "core-foundation-sys", + "libc", + "security-framework-sys", +] + +[[package]] +name = "security-framework" +version = "3.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e1415a607e92bec364ea2cf9264646dcce0f91e6d65281bd6f2819cca3bf39c8" +dependencies = [ + "bitflags 2.6.0", + "core-foundation 0.10.0", "core-foundation-sys", "libc", "security-framework-sys", @@ -3835,6 +4455,18 @@ dependencies = [ "rand_core", ] +[[package]] +name = "simple_asn1" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "adc4e5204eb1910f40f9cfa375f6f05b68c3abac4b6fd879c8ff5e7ae8a0a085" +dependencies = [ + "num-bigint", + "num-traits", + "thiserror 1.0.69", + "time", +] + [[package]] name = "slab" version = "0.4.9" @@ -4006,8 +4638,8 @@ version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3c879d448e9d986b661742763247d3693ed13609438cf3d006f51f5368a5ba6b" dependencies = [ - "bitflags", - "core-foundation", + "bitflags 2.6.0", + "core-foundation 0.9.4", "system-configuration-sys", ] @@ -4030,7 +4662,7 @@ checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" [[package]] name = "tap_core" version = "2.0.0" -source = "git+https://github.com/semiotic-ai/timeline-aggregation-protocol?rev=61b47b3#61b47b3b96aaa1437fc390eb581636d51134b006" +source = "git+https://github.com/semiotic-ai/timeline-aggregation-protocol?rev=f680f4c#f680f4ca271b913daaa0612e6a21e5d4de342cee" dependencies = [ "alloy", "anyhow", @@ -4038,7 +4670,7 @@ dependencies = [ "async-trait", "rand", "serde", - "thiserror", + "thiserror 1.0.69", "tokio", ] @@ -4057,17 +4689,15 @@ dependencies = [ [[package]] name = "thegraph-core" -version = "0.7.0" +version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ab9be84cae9a83751afdfca73490b1debdb4405684e3ffc5b9b1c7bc7ced731" +checksum = "a26ee7fc2978f7687f6a2a273364cb130441eb5f10a2924e38e490558cdd9b2a" dependencies = [ - "alloy-primitives", - "alloy-signer 0.4.2", - "alloy-sol-types", + "alloy", "bs58", "serde", "serde_with", - "thiserror", + "thiserror 1.0.69", "url", ] @@ -4081,7 +4711,7 @@ dependencies = [ "reqwest", "serde", "serde_json", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -4090,7 +4720,16 @@ version = "1.0.69" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" dependencies = [ - "thiserror-impl", + "thiserror-impl 1.0.69", +] + +[[package]] +name = "thiserror" +version = "2.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c006c85c7651b3cf2ada4584faa36773bd07bac24acfb39f3c431b36d7e667aa" +dependencies = [ + "thiserror-impl 2.0.3", ] [[package]] @@ -4104,6 +4743,17 @@ dependencies = [ "syn 2.0.89", ] +[[package]] +name = "thiserror-impl" +version = "2.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f077553d607adc1caf65430528a576c757a71ed73944b66ebb58ef2bbd243568" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.89", +] + [[package]] name = "thread_local" version = "1.1.8" @@ -4309,6 +4959,59 @@ dependencies = [ "winnow", ] +[[package]] +name = "tonic" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "877c5b330756d856ffcc4553ab34a5684481ade925ecc54bcd1bf02b1d0d4d52" +dependencies = [ + "async-stream", + "async-trait", + "axum", + "base64 0.22.1", + "bytes", + "h2", + "http 1.1.0", + "http-body 1.0.1", + "http-body-util", + "hyper", + "hyper-timeout", + "hyper-util", + "percent-encoding", + "pin-project 1.1.7", + "prost", + "rustls-native-certs", + "rustls-pemfile", + "socket2", + "tokio", + "tokio-rustls", + "tokio-stream", + "tower 0.4.13", + "tower-layer", + "tower-service", + "tracing", +] + +[[package]] +name = "tower" +version = "0.4.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8fa9be0de6cf49e536ce1851f987bd21a43b771b09473c3549a6c853db37c1c" +dependencies = [ + "futures-core", + "futures-util", + "indexmap 1.9.3", + "pin-project 1.1.7", + "pin-project-lite", + "rand", + "slab", + "tokio", + "tokio-util", + "tower-layer", + "tower-service", + "tracing", +] + [[package]] name = "tower" version = "0.5.1" @@ -4330,9 +5033,9 @@ version = "0.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "403fa3b783d4b626a8ad51d766ab03cb6d2dbfc46b1c5d4448395e6628dc9697" dependencies = [ - "bitflags", + "bitflags 2.6.0", "bytes", - "http", + "http 1.1.0", "pin-project-lite", "tower-layer", "tower-service", @@ -4357,13 +5060,25 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a4546773ffeab9e4ea02b8872faa49bb616a80a7da66afc2f32688943f97efa7" dependencies = [ "futures-util", - "pin-project", + "pin-project 1.1.7", "tokio", "tokio-test", "tower-layer", "tower-service", ] +[[package]] +name = "tower-util" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1093c19826d33807c72511e68f73b4a0469a3f22c2bd5f7d5212178b4b89674" +dependencies = [ + "futures-core", + "futures-util", + "pin-project 0.4.30", + "tower-service", +] + [[package]] name = "tracing" version = "0.1.40" @@ -4454,14 +5169,14 @@ dependencies = [ "byteorder", "bytes", "data-encoding", - "http", + "http 1.1.0", "httparse", "log", "rand", "rustls", "rustls-pki-types", "sha1", - "thiserror", + "thiserror 1.0.69", "utf-8", ] @@ -4495,6 +5210,12 @@ version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "eaea85b334db583fe3274d12b4cd1880032beab409c0d774be044d4480ab9a94" +[[package]] +name = "unicase" +version = "2.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e51b68083f157f853b6379db119d1c1be0e6e4dec98101079dec41f6f5cf6df" + [[package]] name = "unicode-bidi" version = "0.3.17" @@ -4566,6 +5287,12 @@ version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" +[[package]] +name = "uuid" +version = "1.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8c5f0a0af699448548ad1a2fbf920fb4bee257eae39953ba95cb84891a0446a" + [[package]] name = "valuable" version = "0.1.0" @@ -4590,6 +5317,12 @@ version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d" +[[package]] +name = "vsimd" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c3082ca00d5a5ef149bb8b555a72ae84c9c59f7250f013ac822ac2e49b19c64" + [[package]] name = "wait-timeout" version = "0.2.0" @@ -4681,11 +5414,24 @@ version = "0.2.95" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "65fc09f10666a9f147042251e0dda9c18f166ff7de300607007e96bdebc1068d" +[[package]] +name = "wasm-streams" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "15053d8d85c7eccdbefef60f06769760a563c7f0a9d6902a13d35c7800b0ad65" +dependencies = [ + "futures-util", + "js-sys", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", +] + [[package]] name = "wasmtimer" -version = "0.2.1" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7ed9d8b15c7fb594d72bfb4b5a276f3d2029333cd93a932f376f5937f6f80ee" +checksum = "0048ad49a55b9deb3953841fa1fc5858f0efbcb7a18868c899a360269fac1b23" dependencies = [ "futures", "js-sys", @@ -4705,6 +5451,16 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "web-time" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + [[package]] name = "webpki-roots" version = "0.26.7" @@ -4973,7 +5729,7 @@ dependencies = [ "pharos", "rustc_version 0.4.1", "send_wrapper", - "thiserror", + "thiserror 1.0.69", "wasm-bindgen", "wasm-bindgen-futures", "web-sys", diff --git a/Cargo.toml b/Cargo.toml index e38d7a08a..445b5c839 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,6 @@ inherits = "release" debug = true [dependencies] -alloy = { version = "0.5.4", features = ["contract", "signer-local"] } anyhow = "1.0" axum = { version = "0.7.7", default-features = false, features = [ "json", @@ -25,7 +24,6 @@ faster-hex = "0.10.0" futures = "0.3" graphql = { git = "https://github.com/edgeandnode/toolshed", tag = "graphql-v0.3.0", default-features = false } headers = "0.4.0" -hex = "0.4" hickory-resolver = "0.24.0" http = "1.1.0" indexer-selection = { git = "https://github.com/edgeandnode/candidate-selection", rev = "c3a9ee8" } @@ -52,8 +50,8 @@ serde = { version = "1.0", features = ["derive"] } serde_json = { version = "1.0.116", features = ["raw_value"] } serde_with = "3.8.1" snmalloc-rs = "0.3" -tap_core = { git = "https://github.com/semiotic-ai/timeline-aggregation-protocol", rev = "61b47b3" } -thegraph-core = { version = "0.7.0", features = ["serde"] } +tap_core = { git = "https://github.com/semiotic-ai/timeline-aggregation-protocol", rev = "f680f4c" } +thegraph-core = { version = "0.8.5", features = ["alloy-contract", "alloy-signer-local", "attestation", "serde"] } thegraph-graphql-http = { version = "0.2.1", features = [ "http-client-reqwest", ] } diff --git a/src/auth.rs b/src/auth.rs index 62332e461..785a7b969 100644 --- a/src/auth.rs +++ b/src/auth.rs @@ -146,7 +146,7 @@ pub fn is_domain_authorized>(authorized: &[S], origin: &str) -> bo #[cfg(test)] mod tests { - use alloy::primitives::hex; + use thegraph_core::alloy::primitives::hex; use super::{is_domain_authorized, parse_api_key}; diff --git a/src/block_constraints.rs b/src/block_constraints.rs index 6599c860a..a6801da45 100644 --- a/src/block_constraints.rs +++ b/src/block_constraints.rs @@ -11,7 +11,7 @@ use graphql::{ }; use itertools::Itertools as _; use serde_json::{self, json}; -use thegraph_core::{BlockHash, BlockNumber}; +use thegraph_core::alloy::primitives::{BlockHash, BlockNumber}; use crate::{blocks::BlockConstraint, chain::Chain, errors::Error}; @@ -298,7 +298,7 @@ fn parse_number<'c, T: Text<'c>>( mod tests { use std::iter::FromIterator as _; - use alloy::primitives::hex; + use thegraph_core::alloy::primitives::hex; use super::*; diff --git a/src/blocks.rs b/src/blocks.rs index 986abded4..738f9fff0 100644 --- a/src/blocks.rs +++ b/src/blocks.rs @@ -1,5 +1,5 @@ use serde::Deserialize; -use thegraph_core::{BlockHash, BlockNumber, BlockTimestamp}; +use thegraph_core::alloy::primitives::{BlockHash, BlockNumber, BlockTimestamp}; #[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Deserialize)] pub struct Block { diff --git a/src/chain.rs b/src/chain.rs index 880130387..c07484771 100644 --- a/src/chain.rs +++ b/src/chain.rs @@ -3,7 +3,7 @@ use std::{ iter, }; -use thegraph_core::{BlockHash, IndexerId}; +use thegraph_core::{alloy::primitives::BlockHash, IndexerId}; use crate::blocks::Block; @@ -107,12 +107,14 @@ impl Chain { #[cfg(test)] mod tests { - use alloy::primitives::U256; use itertools::Itertools; use rand::{ rngs::SmallRng, seq::SliceRandom as _, thread_rng, Rng as _, RngCore as _, SeedableRng, }; - use thegraph_core::{Address, BlockHash, IndexerId}; + use thegraph_core::{ + alloy::primitives::{Address, BlockHash, U256}, + IndexerId, + }; use super::{Block, Chain, MAX_LEN}; use crate::concat_bytes; diff --git a/src/client_query.rs b/src/client_query.rs index c70c05e45..f2510afe4 100644 --- a/src/client_query.rs +++ b/src/client_query.rs @@ -20,7 +20,7 @@ use prost::bytes::Buf; use rand::{thread_rng, Rng as _}; use serde::Deserialize; use serde_json::value::RawValue; -use thegraph_core::{AllocationId, BlockNumber, DeploymentId, IndexerId}; +use thegraph_core::{alloy::primitives::BlockNumber, AllocationId, DeploymentId, IndexerId}; use tokio::sync::mpsc; use tracing::{info_span, Instrument as _}; use url::Url; diff --git a/src/client_query/attestation_header.rs b/src/client_query/attestation_header.rs index 270841475..f2b660c73 100644 --- a/src/client_query/attestation_header.rs +++ b/src/client_query/attestation_header.rs @@ -2,7 +2,7 @@ use axum::http::{HeaderName, HeaderValue}; use headers::Error; -use thegraph_core::Attestation; +use thegraph_core::attestation::Attestation; static GRAPH_ATTESTATION_HEADER_NAME: HeaderName = HeaderName::from_static("graph-attestation"); @@ -77,7 +77,7 @@ impl headers::Header for GraphAttestation { mod tests { use assert_matches::assert_matches; use headers::{Header, HeaderValue}; - use thegraph_core::Attestation; + use thegraph_core::attestation::Attestation; use super::GraphAttestation; diff --git a/src/client_query/context.rs b/src/client_query/context.rs index 9845bd80a..99737a536 100644 --- a/src/client_query/context.rs +++ b/src/client_query/context.rs @@ -1,5 +1,5 @@ -use alloy::dyn_abi::Eip712Domain; use ordered_float::NotNan; +use thegraph_core::alloy::dyn_abi::Eip712Domain; use tokio::sync::{mpsc, watch}; use crate::{ diff --git a/src/config.rs b/src/config.rs index bfbff9e5c..2234bc703 100644 --- a/src/config.rs +++ b/src/config.rs @@ -5,14 +5,16 @@ use std::{ path::{Path, PathBuf}, }; -use alloy::primitives::{B256, U256}; use anyhow::Context; use ipnetwork::IpNetwork; use ordered_float::NotNan; use semver::Version; use serde::{Deserialize, Serialize}; use serde_with::{serde_as, DisplayFromStr}; -use thegraph_core::{Address, BlockNumber, DeploymentId}; +use thegraph_core::{ + alloy::primitives::{Address, BlockNumber, B256, U256}, + DeploymentId, +}; use url::Url; use crate::{auth::APIKey, network::subgraph_client::TrustedIndexer}; diff --git a/src/errors.rs b/src/errors.rs index 6cb9b7a1e..87c5cb0b6 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -5,7 +5,7 @@ use std::{ use axum::response::{IntoResponse, Response}; use itertools::Itertools as _; -use thegraph_core::{BlockNumber, IndexerId}; +use thegraph_core::{alloy::primitives::BlockNumber, IndexerId}; use crate::graphql; diff --git a/src/exchange_rate.rs b/src/exchange_rate.rs index 5873ed0c8..06b05307d 100644 --- a/src/exchange_rate.rs +++ b/src/exchange_rate.rs @@ -1,8 +1,10 @@ use std::{sync::Arc, time::Duration}; -use alloy::{primitives::Address, providers::ProviderBuilder, sol, transports::http::Http}; use anyhow::ensure; use ordered_float::NotNan; +use thegraph_core::alloy::{ + primitives::Address, providers::ProviderBuilder, sol, transports::http::Http, +}; use tokio::{ sync::watch, time::{interval, MissedTickBehavior}, @@ -17,7 +19,7 @@ sol!( ); // TODO: figure out how to erase this type -type Provider = alloy::providers::RootProvider>; +type Provider = thegraph_core::alloy::providers::RootProvider>; pub async fn grt_per_usd(provider: Url) -> watch::Receiver> { // https://data.chain.link/feeds/arbitrum/mainnet/grt-usd diff --git a/src/indexer_client.rs b/src/indexer_client.rs index c8d413f68..257e0fa8f 100644 --- a/src/indexer_client.rs +++ b/src/indexer_client.rs @@ -1,9 +1,11 @@ -use alloy::dyn_abi::Eip712Domain; use reqwest::header::AUTHORIZATION; use serde::{Deserialize, Serialize}; use thegraph_core::{ + alloy::{ + dyn_abi::Eip712Domain, + primitives::{BlockHash, BlockNumber}, + }, attestation::{self, Attestation}, - BlockHash, BlockNumber, }; use thegraph_graphql_http::http::response::Error as GQLError; use url::Url; diff --git a/src/indexers/indexing_progress.rs b/src/indexers/indexing_progress.rs index bfa4447c8..cd963cbf4 100644 --- a/src/indexers/indexing_progress.rs +++ b/src/indexers/indexing_progress.rs @@ -1,6 +1,6 @@ use serde::Deserialize; use serde_with::serde_as; -use thegraph_core::{BlockNumber, DeploymentId}; +use thegraph_core::{alloy::primitives::BlockNumber, DeploymentId}; use thegraph_graphql_http::{ graphql::{Document, IntoDocument, IntoDocumentWithVariables}, http_client::{RequestError, ReqwestExt as _, ResponseError}, diff --git a/src/indexers/public_poi.rs b/src/indexers/public_poi.rs index 266d00ea6..1a5a07350 100644 --- a/src/indexers/public_poi.rs +++ b/src/indexers/public_poi.rs @@ -1,6 +1,6 @@ use serde::{Deserialize, Serialize}; use serde_with::{serde_as, DisplayFromStr}; -use thegraph_core::{BlockNumber, DeploymentId, ProofOfIndexing}; +use thegraph_core::{alloy::primitives::BlockNumber, DeploymentId, ProofOfIndexing}; use thegraph_graphql_http::{ graphql::{Document, IntoDocument, IntoDocumentWithVariables}, http_client::{RequestError, ReqwestExt, ResponseError}, @@ -133,7 +133,7 @@ pub struct PartialBlockPtr { #[cfg(test)] mod tests { - use thegraph_core::{deployment_id, poi}; + use thegraph_core::{deployment_id, proof_of_indexing as poi}; use super::Response; diff --git a/src/indexing_performance.rs b/src/indexing_performance.rs index 1b9edee74..f05f04726 100644 --- a/src/indexing_performance.rs +++ b/src/indexing_performance.rs @@ -1,7 +1,7 @@ use std::{collections::HashMap, ops::Deref, time::Duration}; use parking_lot::RwLock; -use thegraph_core::{BlockNumber, DeploymentId, IndexerId}; +use thegraph_core::{alloy::primitives::BlockNumber, DeploymentId, IndexerId}; use tokio::{self, sync::mpsc, time::MissedTickBehavior}; use crate::network::NetworkService; diff --git a/src/main.rs b/src/main.rs index 60f23b4f9..7189062bf 100644 --- a/src/main.rs +++ b/src/main.rs @@ -37,7 +37,6 @@ use std::{ time::Duration, }; -use alloy::{dyn_abi::Eip712Domain, signers::local::PrivateKeySigner}; use auth::AuthContext; use axum::{ extract::DefaultBodyLimit, @@ -56,7 +55,10 @@ use middleware::{ use network::subgraph_client::Client as SubgraphClient; use prometheus::{self, Encoder as _}; use receipts::ReceiptSigner; -use thegraph_core::{attestation, ChainId}; +use thegraph_core::{ + alloy::{dyn_abi::Eip712Domain, primitives::ChainId, signers::local::PrivateKeySigner}, + attestation, +}; use tokio::{net::TcpListener, signal::unix::SignalKind, sync::watch}; use tower_http::cors::{self, CorsLayer}; use tracing_subscriber::{prelude::*, EnvFilter}; diff --git a/src/network/indexer_indexing_poi_blocklist.rs b/src/network/indexer_indexing_poi_blocklist.rs index b2093792a..1543f872f 100644 --- a/src/network/indexer_indexing_poi_blocklist.rs +++ b/src/network/indexer_indexing_poi_blocklist.rs @@ -9,7 +9,7 @@ use std::collections::{HashMap, HashSet}; -use thegraph_core::{BlockNumber, DeploymentId, ProofOfIndexing}; +use thegraph_core::{alloy::primitives::BlockNumber, DeploymentId, ProofOfIndexing}; use crate::config::BlockedPoi; diff --git a/src/network/indexer_indexing_poi_resolver.rs b/src/network/indexer_indexing_poi_resolver.rs index 3c21abb0f..666f844f7 100644 --- a/src/network/indexer_indexing_poi_resolver.rs +++ b/src/network/indexer_indexing_poi_resolver.rs @@ -9,7 +9,7 @@ use std::{collections::HashMap, time::Duration}; use parking_lot::RwLock; -use thegraph_core::{BlockNumber, DeploymentId, ProofOfIndexing}; +use thegraph_core::{alloy::primitives::BlockNumber, DeploymentId, ProofOfIndexing}; use url::Url; use crate::{ diff --git a/src/network/indexer_indexing_progress_resolver.rs b/src/network/indexer_indexing_progress_resolver.rs index 1c54a96d5..3a9dc9c2a 100644 --- a/src/network/indexer_indexing_progress_resolver.rs +++ b/src/network/indexer_indexing_progress_resolver.rs @@ -3,7 +3,7 @@ use std::{collections::HashMap, time::Duration}; use parking_lot::{Mutex, RwLock}; -use thegraph_core::{BlockNumber, DeploymentId}; +use thegraph_core::{alloy::primitives::BlockNumber, DeploymentId}; use url::Url; use crate::{ diff --git a/src/network/internal/indexer_processing.rs b/src/network/internal/indexer_processing.rs index 3ceec0ebb..f3aa7509a 100644 --- a/src/network/internal/indexer_processing.rs +++ b/src/network/internal/indexer_processing.rs @@ -3,7 +3,7 @@ use std::collections::{HashMap, HashSet}; use custom_debug::CustomDebug; use ipnetwork::IpNetwork; use semver::Version; -use thegraph_core::{AllocationId, BlockNumber, DeploymentId, IndexerId}; +use thegraph_core::{alloy::primitives::BlockNumber, AllocationId, DeploymentId, IndexerId}; use tracing::Instrument; use url::Url; diff --git a/src/network/internal/snapshot.rs b/src/network/internal/snapshot.rs index 8ad4d1ccf..6b4c4c937 100644 --- a/src/network/internal/snapshot.rs +++ b/src/network/internal/snapshot.rs @@ -8,7 +8,9 @@ use std::{ use custom_debug::CustomDebug; use semver::Version; -use thegraph_core::{AllocationId, BlockNumber, DeploymentId, IndexerId, SubgraphId}; +use thegraph_core::{ + alloy::primitives::BlockNumber, AllocationId, DeploymentId, IndexerId, SubgraphId, +}; use url::Url; use super::{DeploymentInfo, SubgraphInfo}; diff --git a/src/network/internal/state.rs b/src/network/internal/state.rs index fa77cb59b..bd70737cf 100644 --- a/src/network/internal/state.rs +++ b/src/network/internal/state.rs @@ -1,7 +1,7 @@ use std::collections::{BTreeMap, HashSet}; use ipnetwork::IpNetwork; -use thegraph_core::Address; +use thegraph_core::alloy::primitives::Address; use crate::{ config::BlockedIndexer, diff --git a/src/network/internal/subgraph_processing.rs b/src/network/internal/subgraph_processing.rs index 87934a9ee..456cd5376 100644 --- a/src/network/internal/subgraph_processing.rs +++ b/src/network/internal/subgraph_processing.rs @@ -1,6 +1,6 @@ use std::collections::{HashMap, HashSet}; -use thegraph_core::{BlockNumber, DeploymentId, IndexerId, SubgraphId}; +use thegraph_core::{alloy::primitives::BlockNumber, DeploymentId, IndexerId, SubgraphId}; use crate::network::errors::{DeploymentError, SubgraphError}; diff --git a/src/network/service.rs b/src/network/service.rs index 9f0c977ad..68c635f81 100644 --- a/src/network/service.rs +++ b/src/network/service.rs @@ -9,7 +9,10 @@ use std::{ use ipnetwork::IpNetwork; use semver::Version; -use thegraph_core::{Address, BlockNumber, DeploymentId, SubgraphId}; +use thegraph_core::{ + alloy::primitives::{Address, BlockNumber}, + DeploymentId, SubgraphId, +}; use tokio::{sync::watch, time::MissedTickBehavior}; use super::{ diff --git a/src/network/subgraph_client.rs b/src/network/subgraph_client.rs index f17af77f4..e175edab7 100644 --- a/src/network/subgraph_client.rs +++ b/src/network/subgraph_client.rs @@ -9,7 +9,7 @@ use custom_debug::CustomDebug; use serde::{ser::SerializeMap, Deserialize, Serialize, Serializer}; use serde_json::json; use serde_with::serde_as; -use thegraph_core::{BlockHash, BlockNumber, BlockTimestamp}; +use thegraph_core::alloy::primitives::{BlockHash, BlockNumber, BlockTimestamp}; use thegraph_graphql_http::http::response::Error as GqlError; use types::Subgraph; use url::Url; @@ -33,7 +33,9 @@ use crate::{ pub mod types { use serde::Deserialize; use serde_with::serde_as; - use thegraph_core::{AllocationId, BlockNumber, DeploymentId, IndexerId, SubgraphId}; + use thegraph_core::{ + alloy::primitives::BlockNumber, AllocationId, DeploymentId, IndexerId, SubgraphId, + }; #[derive(Debug, Clone, Deserialize)] #[serde(rename_all = "camelCase")] diff --git a/src/receipts.rs b/src/receipts.rs index 873605e01..68730a0f0 100644 --- a/src/receipts.rs +++ b/src/receipts.rs @@ -1,13 +1,19 @@ use std::{collections::HashMap, sync::Arc, time::SystemTime}; -use alloy::{dyn_abi::Eip712Domain, primitives::U256, signers::local::PrivateKeySigner}; use parking_lot::{Mutex, RwLock}; use rand::RngCore; pub use receipts::QueryStatus as ReceiptStatus; use receipts::ReceiptPool; use secp256k1::SecretKey; use tap_core::{receipt::Receipt as TapReceipt, signed_message::EIP712SignedMessage}; -use thegraph_core::{Address, AllocationId}; +use thegraph_core::{ + alloy::{ + dyn_abi::Eip712Domain, + primitives::{Address, U256}, + signers::local::PrivateKeySigner, + }, + AllocationId, +}; /// A receipt for an indexer request. #[derive(Debug, Clone)] @@ -211,7 +217,10 @@ impl ReceiptSigner { #[cfg(test)] mod tests { - use thegraph_core::{address, allocation_id}; + use thegraph_core::{ + allocation_id, + alloy::{primitives::address, signers::local::PrivateKeySigner}, + }; use super::*; @@ -271,7 +280,10 @@ mod tests { } mod tap { - use thegraph_core::{address, allocation_id}; + use thegraph_core::{ + allocation_id, + alloy::{primitives::address, signers::local::PrivateKeySigner}, + }; use super::*; diff --git a/src/reports.rs b/src/reports.rs index f98c1c849..21edbaf58 100644 --- a/src/reports.rs +++ b/src/reports.rs @@ -1,7 +1,7 @@ use anyhow::{anyhow, Context}; use ordered_float::NotNan; use prost::Message; -use thegraph_core::{Address, AllocationId, DeploymentId, IndexerId}; +use thegraph_core::{alloy::primitives::Address, AllocationId, DeploymentId, IndexerId}; use tokio::sync::mpsc; use crate::{concat_bytes, errors, indexer_client::IndexerResponse, receipts::Receipt}; diff --git a/src/vouchers.rs b/src/vouchers.rs index b33dcc0f5..ab32bfff2 100644 --- a/src/vouchers.rs +++ b/src/vouchers.rs @@ -1,11 +1,10 @@ -use alloy::primitives::{FixedBytes, U256}; use axum::{body::Bytes, extract::State, http::StatusCode}; use lazy_static::lazy_static; use receipts::{self, combine_partial_vouchers, receipts_to_partial_voucher, receipts_to_voucher}; use secp256k1::{PublicKey, Secp256k1, SecretKey}; use serde::Deserialize; use serde_json::json; -use thegraph_core::Address; +use thegraph_core::alloy::primitives::{Address, FixedBytes, U256}; use crate::{ json::{json_response, JsonResponse},