Skip to content

Commit

Permalink
rpc: Use external soroban-simulation library for preflight computations
Browse files Browse the repository at this point in the history
  • Loading branch information
2opremio committed Jan 16, 2024
1 parent 7ee51fa commit e4a3594
Show file tree
Hide file tree
Showing 8 changed files with 241 additions and 1,195 deletions.
105 changes: 91 additions & 14 deletions Cargo.lock

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

9 changes: 8 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,14 @@ 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"
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 e4a3594

Please sign in to comment.