Skip to content

Commit 69c8288

Browse files
committed
fix: use erc6492 lib and remove dedicated ERC-1271 verification logic
1 parent edd6b6b commit 69c8288

File tree

12 files changed

+64
-1275
lines changed

12 files changed

+64
-1275
lines changed

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,6 @@ required-features = ["client", "rpc"]
4444

4545
[lints.clippy]
4646
indexing_slicing = "deny"
47+
48+
# [patch."https://github.com/WalletConnect/erc6492.git"]
49+
# erc6492 = { path = "../erc6492-rs" }

relay_rpc/Cargo.toml

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,12 @@ edition = "2021"
55
license = "Apache-2.0"
66

77
[features]
8+
default = ["cacao"]
89
cacao = [
910
"dep:k256",
10-
"dep:sha3",
1111
"dep:alloy-provider",
12-
"dep:alloy-transport",
13-
"dep:alloy-transport-http",
14-
"dep:alloy-rpc-types",
15-
"dep:alloy-json-rpc",
16-
"dep:alloy-json-abi",
17-
"dep:alloy-sol-types",
1812
"dep:alloy-primitives",
19-
"dep:alloy-node-bindings",
20-
"dep:alloy-contract"
13+
"dep:erc6492",
2114
]
2215

2316
[dependencies]
@@ -43,27 +36,15 @@ regex = "1.7"
4336
once_cell = "1.16"
4437
jsonwebtoken = "8.1"
4538
k256 = { version = "0.13", optional = true }
46-
sha3 = { version = "0.10", optional = true }
4739
sha2 = { version = "0.10.6" }
4840
url = "2"
4941
alloy-provider = { git = "https://github.com/alloy-rs/alloy.git", rev = "d68a6b7", optional = true }
50-
alloy-transport = { git = "https://github.com/alloy-rs/alloy.git", rev = "d68a6b7", optional = true }
51-
alloy-transport-http = { git = "https://github.com/alloy-rs/alloy.git", rev = "d68a6b7", optional = true }
52-
alloy-rpc-types = { git = "https://github.com/alloy-rs/alloy.git", rev = "d68a6b7", optional = true }
53-
alloy-json-rpc = { git = "https://github.com/alloy-rs/alloy.git", rev = "d68a6b7", optional = true }
54-
alloy-node-bindings = { git = "https://github.com/alloy-rs/alloy.git", rev = "d68a6b7", optional = true }
55-
alloy-contract = { git = "https://github.com/alloy-rs/alloy.git", rev = "d68a6b7", optional = true }
56-
alloy-json-abi = { version = "0.7.0", optional = true }
57-
alloy-sol-types = { version = "0.7.0", optional = true }
5842
alloy-primitives = { version = "0.7.0", optional = true }
43+
erc6492 = { git = "https://github.com/WalletConnect/erc6492.git", optional = true }
5944
strum = { version = "0.26", features = ["strum_macros", "derive"] }
6045

6146
[dev-dependencies]
6247
tokio = { version = "1.35.1", features = ["test-util", "macros"] }
6348

64-
[build-dependencies]
65-
serde_json = "1.0"
66-
hex = "0.4.3"
67-
6849
[lints.clippy]
6950
indexing_slicing = "deny"

relay_rpc/build.rs

Lines changed: 0 additions & 98 deletions
This file was deleted.

relay_rpc/contracts/Create2.sol

Lines changed: 0 additions & 49 deletions
This file was deleted.

relay_rpc/contracts/Eip1271Mock.sol

Lines changed: 0 additions & 81 deletions
This file was deleted.

0 commit comments

Comments
 (0)