Skip to content

Commit

Permalink
Add AltheaDB.sol and web30 function to interact with contract
Browse files Browse the repository at this point in the history
AltheaDB.sol is the solidity contract to be hosted on the althea blockchain that is used
in place of the previous postgresql db. This commits add this contract as well as implementations of
functions in rita_client_registration to add and query users to this contract
  • Loading branch information
Pranay Tulugu authored and ptulugu committed Sep 20, 2023
1 parent f0cdfd0 commit 39a1227
Show file tree
Hide file tree
Showing 18 changed files with 912 additions and 87 deletions.
44 changes: 44 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 10 additions & 8 deletions integration_tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,29 @@ ipnetwork = "0.20"
env_logger = "0.10"
log = "0.4"
docopt = "1.1"
actix-async = {package="actix", version = "0.13"}
actix-async = { package = "actix", version = "0.13" }
nix = "0.26.1"
petgraph = "0.6.2"
babel_monitor = { path = "../babel_monitor" }
althea_kernel_interface = { path = "../althea_kernel_interface", features = ["integration_test"] }
althea_kernel_interface = { path = "../althea_kernel_interface", features = [
"integration_test",
] }
althea_types = { path = "../althea_types" }
clu = { path = "../clu" }
settings = { path = "../settings" }
rita_client = { path = "../rita_client", features = ["dev_env"]}
rita_common = { path = "../rita_common", features = ["integration_test"]}
rita_exit = { path = "../rita_exit", features = ["dev_env"]}
ctrlc = {version = "3.2.1", features = ["termination"]}
rita_client = { path = "../rita_client", features = ["dev_env"] }
rita_common = { path = "../rita_common", features = ["integration_test"] }
rita_exit = { path = "../rita_exit", features = ["dev_env"] }
ctrlc = { version = "3.2.1", features = ["termination"] }
diesel = { version = "1.4", features = ["postgres", "r2d2"] }
diesel_migrations = { version = "1.4", features = ["postgres"] }
awc = "3.1"
actix-rt = "2.8"
deep_space = {workspace = true}
deep_space = { workspace = true }
clarity = "1.2"
althea_proto = "0.3.0"
futures = { version = "0.3", features = ["compat"] }
num256 = "0.5"
num-traits="0.2"
num-traits = "0.2"
web30 = "1.0"
lazy_static = "1.4"
2 changes: 1 addition & 1 deletion integration_tests/container/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM postgres
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y sudo iputils-ping iproute2 jq vim netcat-traditional default-libmysqlclient-dev libsqlite3-dev postgresql-client-11 postgresql-server-dev-11 libpq-dev python3-pip bridge-utils wireguard linux-source curl git libssl-dev pkg-config build-essential ipset python3-setuptools python3-wheel dh-autoreconf procps net-tools iperf3 babeld make locales-all
RUN apt-get update && apt-get install -y sudo iputils-ping iproute2 jq vim netcat-traditional default-libmysqlclient-dev libsqlite3-dev postgresql-client-11 postgresql-server-dev-11 libpq-dev python3-pip bridge-utils wireguard linux-source curl git libssl-dev pkg-config build-essential ipset python3-setuptools python3-wheel dh-autoreconf procps net-tools iperf3 babeld make locales-all npm
# Install Rust
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
ENV PATH=$PATH:/root/.cargo/bin/
Expand Down
2 changes: 2 additions & 0 deletions rita_client_registration/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ serde = "1.0"
clarity = "1.2"
phonenumber = "0.3"
awc = "3.1"
web30 = "1.0"
tokio = { version = "1.21", features = ["macros", "time"] }
Loading

0 comments on commit 39a1227

Please sign in to comment.