Skip to content

Commit

Permalink
smart contract integration (#14)
Browse files Browse the repository at this point in the history
* integration

* test: simple bool not deserialized properly

* fix: contract address

* fix: send instead of call

* update sc_storage

* refactor code

---------

Co-authored-by: rymnc <43716372+rymnc@users.noreply.github.com>
  • Loading branch information
seemenkina and rymnc authored Jul 4, 2024
1 parent f423e1b commit 7e0e5bb
Show file tree
Hide file tree
Showing 19 changed files with 6,818 additions and 84 deletions.
19 changes: 17 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
workspace = { members = ["sc_key_store", "ds"] }
[workspace]
members = ["sc_key_store", "ds", "crates/bindings", "mls_crypto"]
[workspace.dependencies]
foundry-contracts = { path = "crates/bindings" }

[package]
name = "de-mls"
version = "0.1.0"
Expand All @@ -7,19 +11,30 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
foundry-contracts.workspace = true
openmls = { version = "=0.5.0", features = ["test-utils"] }
openmls_basic_credential = "=0.2.0"
openmls_rust_crypto = "=0.2.0"
openmls_traits = "=0.2.0"

# waku-bindings = "0.6.0"
bus = "=2.4.1"
tokio = "=1.38.0"
tokio = { version = "=1.38.0", features = ["macros", "rt-multi-thread"] }
alloy = { git = "https://github.com/alloy-rs/alloy", features = [
"providers",
"node-bindings",
"network",
"transports",
"k256",
] }

rand = "=0.8.5"
serde_json = "=1.0"
url = "=2.5.2"

anyhow = "=1.0.71"
thiserror = "=1.0.61"

ds = { path = "ds" }
sc_key_store = { path = "sc_key_store" }
mls_crypto = { path = "mls_crypto" }
7 changes: 7 additions & 0 deletions crates/bindings/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[package]
name = "foundry-contracts"
version = "0.1.0"
edition = "2021"

[dependencies]
alloy = { git = "https://github.com/alloy-rs/alloy", features = ["sol-types", "contract"] }
614 changes: 614 additions & 0 deletions crates/bindings/src/deploy.rs

Large diffs are not rendered by default.

Loading

0 comments on commit 7e0e5bb

Please sign in to comment.