From 1a6d8fa13c34b76cf14e912f46064acde1433f62 Mon Sep 17 00:00:00 2001 From: bitful-pannul Date: Mon, 29 Apr 2024 12:02:51 -0400 Subject: [PATCH] add chain checking packages --- Cargo.lock | 72 +++++++++++++++++++++++++++++++++++++++++++++-- kinode/Cargo.toml | 4 +++ 2 files changed, 74 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index d5621431..6fd71a95 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -90,6 +90,17 @@ version = "0.2.18" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5c6cb57a04249c6480766f7f7cef5467412af1490f8d1e243141daddada3264f" +[[package]] +name = "alloy-consensus" +version = "0.1.0" +source = "git+https://github.com/alloy-rs/alloy?rev=6f8ebb4#6f8ebb45afca1a201a11d421ec46db0f7a1d8d08" +dependencies = [ + "alloy-eips 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=6f8ebb4)", + "alloy-network", + "alloy-primitives 0.6.4", + "alloy-rlp", +] + [[package]] name = "alloy-consensus" version = "0.1.0" @@ -104,6 +115,38 @@ dependencies = [ "sha2", ] +[[package]] +name = "alloy-contract" +version = "0.1.0" +source = "git+https://github.com/alloy-rs/alloy?rev=6f8ebb4#6f8ebb45afca1a201a11d421ec46db0f7a1d8d08" +dependencies = [ + "alloy-dyn-abi", + "alloy-json-abi", + "alloy-primitives 0.6.4", + "alloy-providers", + "alloy-rpc-types 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=6f8ebb4)", + "alloy-sol-types 0.6.4", + "alloy-transport 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=6f8ebb4)", + "thiserror", +] + +[[package]] +name = "alloy-dyn-abi" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2919acdad13336bc5dc26b636cdd6892c2f27fb0d4a58320a00c2713cf6a4e9a" +dependencies = [ + "alloy-json-abi", + "alloy-primitives 0.6.4", + "alloy-sol-type-parser", + "alloy-sol-types 0.6.4", + "const-hex", + "itoa", + "serde", + "serde_json", + "winnow 0.6.6", +] + [[package]] name = "alloy-eips" version = "0.1.0" @@ -138,6 +181,18 @@ dependencies = [ "serde", ] +[[package]] +name = "alloy-json-abi" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24ed0f2a6c3a1c947b4508522a53a190dba8f94dcd4e3e1a5af945a498e78f2f" +dependencies = [ + "alloy-primitives 0.6.4", + "alloy-sol-type-parser", + "serde", + "serde_json", +] + [[package]] name = "alloy-json-rpc" version = "0.1.0" @@ -325,7 +380,7 @@ name = "alloy-rpc-types" version = "0.1.0" source = "git+https://github.com/alloy-rs/alloy?rev=cad7935#cad7935d69f433e45d190902e58b1c996b35adfa" dependencies = [ - "alloy-consensus", + "alloy-consensus 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=cad7935)", "alloy-eips 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=cad7935)", "alloy-genesis", "alloy-primitives 0.7.0", @@ -414,6 +469,15 @@ dependencies = [ "syn-solidity 0.7.0", ] +[[package]] +name = "alloy-sol-type-parser" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0045cc89524e1451ccf33e8581355b6027ac7c6e494bb02959d4213ad0d8e91d" +dependencies = [ + "winnow 0.6.6", +] + [[package]] name = "alloy-sol-types" version = "0.6.4" @@ -2603,7 +2667,7 @@ dependencies = [ "httpdate", "itoa", "pin-project-lite", - "socket2 0.5.6", + "socket2 0.4.10", "tokio", "tower-service", "tracing", @@ -2985,6 +3049,9 @@ name = "kinode" version = "0.7.1" dependencies = [ "aes-gcm", + "alloy-consensus 0.1.0 (git+https://github.com/alloy-rs/alloy?rev=6f8ebb4)", + "alloy-contract", + "alloy-network", "alloy-primitives 0.6.4", "alloy-providers", "alloy-pubsub", @@ -3037,6 +3104,7 @@ dependencies = [ "serde_json", "serde_urlencoded", "sha2", + "sha3", "snow", "static_dir", "thiserror", diff --git a/kinode/Cargo.toml b/kinode/Cargo.toml index 1bb145a0..9173b720 100644 --- a/kinode/Cargo.toml +++ b/kinode/Cargo.toml @@ -26,11 +26,14 @@ simulation-mode = [] [dependencies] aes-gcm = "0.10.3" +alloy-contract = { git = "https://github.com/alloy-rs/alloy", rev = "6f8ebb4" } +alloy-consensus = { git = "https://github.com/alloy-rs/alloy", rev = "6f8ebb4" } alloy-pubsub = { git = "https://github.com/alloy-rs/alloy", rev = "6f8ebb4" } alloy-rpc-types = { git = "https://github.com/alloy-rs/alloy", rev = "6f8ebb4" } alloy-rpc-client = { git = "https://github.com/alloy-rs/alloy", rev = "6f8ebb4", features = ["ws"]} alloy-transport-ws = { git = "https://github.com/alloy-rs/alloy", rev = "6f8ebb4" } alloy-providers = { git = "https://github.com/alloy-rs/alloy", rev = "6f8ebb4" } +alloy-network = { git = "https://github.com/alloy-rs/alloy", rev = "6f8ebb4" } alloy-primitives = "0.6.2" alloy-sol-macro = "0.6.2" alloy-sol-types = "0.6.2" @@ -88,3 +91,4 @@ wasi-common = "19.0.1" wasmtime = "19.0.1" wasmtime-wasi = "19.0.1" zip = "1.1.1" +sha3 = "0.10.8"