Skip to content

Commit

Permalink
[Epic] Separating soroban-rpc to prepare for repo change (#1174)
Browse files Browse the repository at this point in the history
* feat: move ContractSpec to spec tools crate

* feat: add methods to GetTransaction and break up sending transaction

* feat: make persistent the default storage type

* feat: create soroban-rpc crate (#21)

* feat: create soroban-rpc crate

* fix: add event test

* fix: switch to --is-view so e2e tests will pass and no breaking changes
  • Loading branch information
willemneal authored Feb 6, 2024
1 parent 90f7cd9 commit 2581f62
Show file tree
Hide file tree
Showing 29 changed files with 948 additions and 435 deletions.
497 changes: 248 additions & 249 deletions Cargo.lock

Large diffs are not rendered by default.

28 changes: 25 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,27 +69,49 @@ rev = "4aef54ff9295c2fca4c5b9fbd2c92d0ff99f67de"
version = "20.2.0"
path = "cmd/soroban-cli"

[workspace.dependencies.soroban-rpc]
version = "20.2.0"
path = "cmd/crates/soroban-rpc"

[workspace.dependencies.stellar-xdr]
version = "=20.1.0"
default-features = true

[workspace.dependencies]
stellar-strkey = "0.0.7"
sep5 = "0.0.2"
base64 = "0.21.2"
thiserror = "1.0.46"
sha2 = "0.10.7"
ethnum = "1.3.2"
hex = "0.4.3"
itertools = "0.10.0"
sep5 = "0.0.2"

serde-aux = "4.1.2"
serde_json = "1.0.82"
serde = "1.0.82"
stellar-strkey = "0.0.7"

clap = { version = "4.1.8", features = [
"derive",
"env",
"deprecated",
"string",
] }
clap_complete = "4.1.4"
tracing = "0.1.37"
tracing-subscriber = "0.3.16"
tracing-appender = "0.2.2"
which = "4.4.0"
wasmparser = "0.90.0"

termcolor = "1.1.3"
termcolor_output = "1.0.1"
ed25519-dalek = "2.0.0"

# networking
http = "1.0.0"
jsonrpsee-http-client = "0.20.1"
jsonrpsee-core = "0.20.1"
tokio = "1.28.1"

# [patch."https://github.com/stellar/rs-soroban-env"]
# soroban-env-host = { path = "../rs-soroban-env/soroban-env-host/" }
Expand Down
51 changes: 51 additions & 0 deletions cmd/crates/soroban-rpc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
[package]
name = "soroban-rpc"
description = "Soroban RPC client for rust"
homepage = "https://github.com/stellar/soroban-tools"
repository = "https://github.com/stellar/soroban-tools"
authors = ["Stellar Development Foundation <info@stellar.org>"]
license = "Apache-2.0"
readme = "README.md"
version.workspace = true
edition = "2021"
rust-version.workspace = true
autobins = false


[lib]
crate-type = ["rlib"]


[dependencies]
soroban-sdk = { version = "=20.3.0", git = "https://github.com/stellar/rs-soroban-sdk", rev = "4aef54ff9295c2fca4c5b9fbd2c92d0ff99f67de" }
soroban-spec-tools = { version = "20.2.0", path = "../soroban-spec-tools" }
soroban-env-host = { version = "=20.2.0", git = "https://github.com/stellar/rs-soroban-env", rev = "1bfc0f2a2ee134efc1e1b0d5270281d0cba61c2e" }
stellar-strkey = "0.0.7"
stellar-xdr = { version = "=20.1.0", default-features = true, features = ["curr", "std", "serde"] }
soroban-spec = { version = "=20.3.0", git = "https://github.com/stellar/rs-soroban-sdk", rev = "4aef54ff9295c2fca4c5b9fbd2c92d0ff99f67de" }

termcolor = "1.1.3"
termcolor_output = "1.0.1"
clap = { version = "4.1.8", features = ["derive", "env", "deprecated", "string"] }
serde_json = "1.0.82"
serde-aux = "4.1.2"
itertools = "0.10.0"
ethnum = "1.3.2"
hex = "0.4.3"
wasmparser = "0.90.0"
base64 = "0.21.2"
thiserror = "1.0.46"
serde = "1.0.82"
tokio = "1.28.1"
sha2 = "0.10.7"
ed25519-dalek = "2.0.0"
tracing = "0.1.40"

# networking
jsonrpsee-http-client = "0.20.1"
jsonrpsee-core = "0.20.1"
http = "1.0.0"


[dev-dependencies]
which = "4.4.0"
3 changes: 3 additions & 0 deletions cmd/crates/soroban-rpc/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# soroban-rpc

Tools and utilities for soroban rpc.
Loading

0 comments on commit 2581f62

Please sign in to comment.