Skip to content

Commit

Permalink
Migrate preflight computations from soroban-rpc (stellar#1300)
Browse files Browse the repository at this point in the history
### What

Migrate preflight computations from
https://github.com/stellar/soroban-tools

### Why

https://github.com/stellar/soroban-tools/issues/1098

### Known limitations
N/A

---------

Co-authored-by: Dmytro Kozhevin <[email protected]>
  • Loading branch information
2opremio and dmkozh authored Jan 12, 2024
1 parent 609da93 commit 6cc844b
Show file tree
Hide file tree
Showing 8 changed files with 1,125 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ members = [
"soroban-test-wasms",
"soroban-synth-wasm",
"soroban-bench-utils",
"soroban-simulation",
]

exclude = ["soroban-test-wasms/wasm-workspace"]
Expand Down
10 changes: 10 additions & 0 deletions cackle.toml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ build.allow_apis = [
]
allow_apis = [
"time",
"thread",
"rand",
]

[pkg.unicode-ident]
Expand Down Expand Up @@ -401,3 +403,11 @@ allow_unsafe = true

[pkg.itertools]
allow_unsafe = true

[pkg.anyhow]
allow_unsafe = true
from.build.allow_apis = [
"env",
"fs",
"process",
]
23 changes: 23 additions & 0 deletions soroban-simulation/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[package]
name = "soroban-simulation"
description = "Soroban host invocation simulations."
homepage = "https://github.com/stellar/rs-soroban-env"
repository = "https://github.com/stellar/rs-soroban-env"
authors = ["Stellar Development Foundation <[email protected]>"]
license = "Apache-2.0"
version.workspace = true
readme = "../README.md"
edition = "2021"
rust-version.workspace = true

[dependencies]
# To be removed
anyhow = { version = "1.0.75", features = [] }
thiserror = "1.0.46"

soroban-env-host = { workspace = true, features = ["recording_auth", "testutils"]}
static_assertions = "1.1.0"
rand = "0.8.5"

[package.metadata.docs.rs]
all-features = true
Loading

0 comments on commit 6cc844b

Please sign in to comment.