Skip to content

Commit

Permalink
fix: use erc6492 lib and remove dedicated ERC-1271 verification logic
Browse files Browse the repository at this point in the history
  • Loading branch information
chris13524 committed Apr 28, 2024
1 parent edd6b6b commit 69c8288
Show file tree
Hide file tree
Showing 12 changed files with 64 additions and 1,275 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,6 @@ required-features = ["client", "rpc"]

[lints.clippy]
indexing_slicing = "deny"

# [patch."https://github.com/WalletConnect/erc6492.git"]
# erc6492 = { path = "../erc6492-rs" }
25 changes: 3 additions & 22 deletions relay_rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,12 @@ edition = "2021"
license = "Apache-2.0"

[features]
default = ["cacao"]
cacao = [
"dep:k256",
"dep:sha3",
"dep:alloy-provider",
"dep:alloy-transport",
"dep:alloy-transport-http",
"dep:alloy-rpc-types",
"dep:alloy-json-rpc",
"dep:alloy-json-abi",
"dep:alloy-sol-types",
"dep:alloy-primitives",
"dep:alloy-node-bindings",
"dep:alloy-contract"
"dep:erc6492",
]

[dependencies]
Expand All @@ -43,27 +36,15 @@ regex = "1.7"
once_cell = "1.16"
jsonwebtoken = "8.1"
k256 = { version = "0.13", optional = true }
sha3 = { version = "0.10", optional = true }
sha2 = { version = "0.10.6" }
url = "2"
alloy-provider = { git = "https://github.com/alloy-rs/alloy.git", rev = "d68a6b7", optional = true }
alloy-transport = { git = "https://github.com/alloy-rs/alloy.git", rev = "d68a6b7", optional = true }
alloy-transport-http = { git = "https://github.com/alloy-rs/alloy.git", rev = "d68a6b7", optional = true }
alloy-rpc-types = { git = "https://github.com/alloy-rs/alloy.git", rev = "d68a6b7", optional = true }
alloy-json-rpc = { git = "https://github.com/alloy-rs/alloy.git", rev = "d68a6b7", optional = true }
alloy-node-bindings = { git = "https://github.com/alloy-rs/alloy.git", rev = "d68a6b7", optional = true }
alloy-contract = { git = "https://github.com/alloy-rs/alloy.git", rev = "d68a6b7", optional = true }
alloy-json-abi = { version = "0.7.0", optional = true }
alloy-sol-types = { version = "0.7.0", optional = true }
alloy-primitives = { version = "0.7.0", optional = true }
erc6492 = { git = "https://github.com/WalletConnect/erc6492.git", optional = true }
strum = { version = "0.26", features = ["strum_macros", "derive"] }

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

[build-dependencies]
serde_json = "1.0"
hex = "0.4.3"

[lints.clippy]
indexing_slicing = "deny"
98 changes: 0 additions & 98 deletions relay_rpc/build.rs

This file was deleted.

49 changes: 0 additions & 49 deletions relay_rpc/contracts/Create2.sol

This file was deleted.

81 changes: 0 additions & 81 deletions relay_rpc/contracts/Eip1271Mock.sol

This file was deleted.

Loading

0 comments on commit 69c8288

Please sign in to comment.