Update for new KarmaTiers smart contract (#23)

* Update for new KarmaTiers smart contract
* Add Anvil unit test for KarmaTiers SC
* Add unit test for KarmaSC
* Add rln sc unit test
This commit is contained in:
Sydhds
2025-07-31 11:40:50 +02:00
committed by GitHub
parent b802b80664
commit 400d0155a7
21 changed files with 983 additions and 634 deletions

60
Cargo.lock generated
View File

@@ -62,6 +62,7 @@ dependencies = [
"alloy-eips",
"alloy-genesis",
"alloy-network",
"alloy-node-bindings",
"alloy-provider",
"alloy-pubsub",
"alloy-rpc-client",
@@ -244,6 +245,19 @@ dependencies = [
"serde",
]
[[package]]
name = "alloy-hardforks"
version = "0.2.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "819a3620fe125e0fff365363315ee5e24c23169173b19747dfd6deba33db8990"
dependencies = [
"alloy-chains",
"alloy-eip2124",
"alloy-primitives",
"auto_impl",
"dyn-clone",
]
[[package]]
name = "alloy-json-abi"
version = "1.2.0"
@@ -309,6 +323,27 @@ dependencies = [
"serde",
]
[[package]]
name = "alloy-node-bindings"
version = "1.0.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f70cdf0ba711fb6f1a427fd026e149bd6d64c9da4c020c1c96c69245c4721ac1"
dependencies = [
"alloy-genesis",
"alloy-hardforks",
"alloy-network",
"alloy-primitives",
"alloy-signer",
"alloy-signer-local",
"k256",
"rand 0.8.5",
"serde_json",
"tempfile",
"thiserror 2.0.12",
"tracing",
"url",
]
[[package]]
name = "alloy-primitives"
version = "1.2.0"
@@ -349,9 +384,11 @@ dependencies = [
"alloy-json-rpc",
"alloy-network",
"alloy-network-primitives",
"alloy-node-bindings",
"alloy-primitives",
"alloy-pubsub",
"alloy-rpc-client",
"alloy-rpc-types-anvil",
"alloy-rpc-types-eth",
"alloy-signer",
"alloy-sol-types",
@@ -453,6 +490,19 @@ name = "alloy-rpc-types"
version = "1.0.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c000cab4ec26a4b3e29d144e999e1c539c2fa0abed871bf90311eb3466187ca8"
dependencies = [
"alloy-primitives",
"alloy-rpc-types-anvil",
"alloy-rpc-types-eth",
"alloy-serde",
"serde",
]
[[package]]
name = "alloy-rpc-types-anvil"
version = "1.0.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5ad84b1927e3c5985afca4a3c3a3a5bdce433de30cf8b2f7e52b642758d235d9"
dependencies = [
"alloy-primitives",
"alloy-rpc-types-eth",
@@ -1967,6 +2017,12 @@ version = "1.0.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813"
[[package]]
name = "dyn-clone"
version = "1.0.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555"
[[package]]
name = "ecdsa"
version = "0.16.9"
@@ -4840,8 +4896,10 @@ version = "0.1.0"
dependencies = [
"alloy",
"async-trait",
"derive_more",
"claims",
"log",
"thiserror 2.0.12",
"tokio",
"url",
]