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 9d2e0cc commit 26cc350
Show file tree
Hide file tree
Showing 8 changed files with 274 additions and 1,228 deletions.
149 changes: 113 additions & 36 deletions Cargo.lock

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

31 changes: 19 additions & 12 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,27 @@ exclude = ["cmd/crates/soroban-test/tests/fixtures/hello"]
version = "20.1.1"

[workspace.dependencies.soroban-env-host]
version = "=20.0.2"
version = "=20.1.0"
git = "https://github.com/stellar/rs-soroban-env"
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 = "81f6eb1eefd299af3e03fa0db7b20eb355b2b55f"
rev = "36d33cb6c986c9a8a9200b7eb04cf02e2c3f0ef4"
# path = "../rs-soroban-env/soroban-simulation"

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

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

[workspace.dependencies.soroban-spec-json]
Expand All @@ -43,19 +50,19 @@ version = "20.1.1"
path = "./cmd/crates/soroban-spec-tools"

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

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

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

[workspace.dependencies.soroban-cli]
version = "20.1.1"
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 26cc350

Please sign in to comment.