Skip to content

Commit

Permalink
rpc: Use external soroban-simulation library for preflight computatio…
Browse files Browse the repository at this point in the history
…ns (#1168)
  • Loading branch information
2opremio authored Jan 17, 2024
1 parent 7ee51fa commit 6a19e18
Show file tree
Hide file tree
Showing 8 changed files with 179 additions and 1,200 deletions.
38 changes: 24 additions & 14 deletions Cargo.lock

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

19 changes: 13 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,25 @@ rust-version = "1.74.0"
[workspace.dependencies.soroban-env-host]
version = "=20.1.0"
git = "https://github.com/stellar/rs-soroban-env"
rev = "c1b238b65bfd13666be4ac14e0e390c31b549caf"
rev = "36d33cb6c986c9a8a9200b7eb04cf02e2c3f0ef4"
# path = "../rs-soroban-env/soroban-env-host"

[workspace.dependencies.soroban-simulation]
version = "=20.1.0"
git = "https://github.com/stellar/rs-soroban-env"
rev = "36d33cb6c986c9a8a9200b7eb04cf02e2c3f0ef4"
# path = "../rs-soroban-env/soroban-simulation"

[workspace.dependencies.soroban-spec]
version = "=20.1.0"
git = "https://github.com/stellar/rs-soroban-sdk"
rev = "811ce3da801c03a21d5fa80fda187c0f1012240f"
rev = "e6c2c900ab82b5f6eec48f69cb2cb519e19819cb"
# path = "../rs-soroban-sdk/soroban-spec"

[workspace.dependencies.soroban-spec-rust]
version = "=20.1.0"
git = "https://github.com/stellar/rs-soroban-sdk"
rev = "811ce3da801c03a21d5fa80fda187c0f1012240f"
rev = "e6c2c900ab82b5f6eec48f69cb2cb519e19819cb"
# path = "../rs-soroban-sdk/soroban-spec-rust"

[workspace.dependencies.soroban-spec-json]
Expand All @@ -46,17 +53,17 @@ path = "./cmd/crates/soroban-spec-tools"
[workspace.dependencies.soroban-sdk]
version = "=20.1.0"
git = "https://github.com/stellar/rs-soroban-sdk"
rev = "811ce3da801c03a21d5fa80fda187c0f1012240f"
rev = "e6c2c900ab82b5f6eec48f69cb2cb519e19819cb"

[workspace.dependencies.soroban-token-sdk]
version = "=20.1.0"
git = "https://github.com/stellar/rs-soroban-sdk"
rev = "811ce3da801c03a21d5fa80fda187c0f1012240f"
rev = "e6c2c900ab82b5f6eec48f69cb2cb519e19819cb"

[workspace.dependencies.soroban-ledger-snapshot]
version = "=20.1.0"
git = "https://github.com/stellar/rs-soroban-sdk"
rev = "811ce3da801c03a21d5fa80fda187c0f1012240f"
rev = "e6c2c900ab82b5f6eec48f69cb2cb519e19819cb"

[workspace.dependencies.soroban-cli]
version = "20.2.0"
Expand Down
4 changes: 1 addition & 3 deletions cmd/soroban-rpc/lib/preflight/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@ publish = false
crate-type = ["staticlib"]

[dependencies]
anyhow = "1.0.75"
base64 = { workspace = true }
thiserror = { workspace = true }
libc = "0.2.147"
sha2 = { workspace = true }
# we need the testutils feature in order to get backtraces in the preflight library
# when soroban rpc is configured to run with --preflight-enable-debug
soroban-env-host = { workspace = true, features = ["recording_auth", "testutils"]}
rand = "0.8.5"
soroban-simulation = { workspace = true }
Loading

0 comments on commit 6a19e18

Please sign in to comment.