diff --git a/cmd/crates/soroban-rpc/Cargo.toml b/cmd/crates/soroban-rpc/Cargo.toml new file mode 100644 index 0000000000..38b5ce3a47 --- /dev/null +++ b/cmd/crates/soroban-rpc/Cargo.toml @@ -0,0 +1,59 @@ +[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 "] +license = "Apache-2.0" +readme = "README.md" +version.workspace = true +edition = "2021" +rust-version = "1.70" +autobins = false + + +[lib] +crate-type = ["rlib"] + + +[dependencies] +soroban-sdk = { workspace = true } +soroban-spec-tools = { workspace = true } + +soroban-env-host = { workspace = true } +stellar-strkey = { workspace = true } +stellar-xdr = { workspace = true, features = ["curr", "std", "serde"] } +soroban-spec = { workspace = true } + + +termcolor = { workspace = true } +termcolor_output = { workspace = true } +clap = { workspace = true } + +serde_json = { workspace = true } +serde-aux = { workspace = true } +itertools = { workspace = true } +ethnum = { workspace = true } +hex = { workspace = true } +wasmparser = { workspace = true } +base64 = { workspace = true } +thiserror = { workspace = true } +serde = { workspace = true } +tokio = { workspace = true } +sha2 = { workspace = true } +ed25519-dalek = { workspace = true } +tracing = { workspace = true } + + +# networking +jsonrpsee-http-client = { workspace = true } +jsonrpsee-core = { workspace = true } +http = { workspace = true } + +# soroban-ledger-snapshot = { workspace = true } +# soroban-sdk = { workspace = true } +# sep5 = { workspace = true } + + +[dev-dependencies] +which = { workspace = true } diff --git a/cmd/crates/soroban-rpc/README.md b/cmd/crates/soroban-rpc/README.md new file mode 100644 index 0000000000..9185b7fd05 --- /dev/null +++ b/cmd/crates/soroban-rpc/README.md @@ -0,0 +1,3 @@ +# soroban-rpc + +Tools and utilities for soroban rpc. diff --git a/cmd/soroban-cli/src/rpc/fixtures/event_response.json b/cmd/crates/soroban-rpc/src/fixtures/event_response.json similarity index 100% rename from cmd/soroban-cli/src/rpc/fixtures/event_response.json rename to cmd/crates/soroban-rpc/src/fixtures/event_response.json diff --git a/cmd/soroban-cli/src/rpc/log.rs b/cmd/crates/soroban-rpc/src/log.rs similarity index 100% rename from cmd/soroban-cli/src/rpc/log.rs rename to cmd/crates/soroban-rpc/src/log.rs diff --git a/cmd/soroban-cli/src/rpc/log/diagnostic_events.rs b/cmd/crates/soroban-rpc/src/log/diagnostic_events.rs similarity index 100% rename from cmd/soroban-cli/src/rpc/log/diagnostic_events.rs rename to cmd/crates/soroban-rpc/src/log/diagnostic_events.rs diff --git a/cmd/soroban-cli/src/rpc/mod.rs b/cmd/crates/soroban-rpc/src/mod.rs similarity index 100% rename from cmd/soroban-cli/src/rpc/mod.rs rename to cmd/crates/soroban-rpc/src/mod.rs diff --git a/cmd/soroban-cli/src/rpc/txn.rs b/cmd/crates/soroban-rpc/src/txn.rs similarity index 100% rename from cmd/soroban-cli/src/rpc/txn.rs rename to cmd/crates/soroban-rpc/src/txn.rs