Skip to content

Commit

Permalink
Merge branch 'main' into fix-upload-job-workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
psheth9 authored Feb 27, 2024
2 parents 5aff74a + 1e20879 commit e9f199c
Show file tree
Hide file tree
Showing 10 changed files with 5 additions and 2,118 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ jobs:
cargo-hack-feature-options: --features opt --ignore-unknown-features
uses: stellar/actions/.github/workflows/rust-publish-dry-run-v2.yml@main
with:
crates: soroban-spec-tools soroban-rpc
crates: soroban-rpc
runs-on: ${{ matrix.os }}
target: ${{ matrix.target }}
cargo-hack-feature-options: ${{ matrix.cargo-hack-feature-options }}
20 changes: 0 additions & 20 deletions Cargo.lock

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

7 changes: 1 addition & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
resolver = "2"
members = [
"cmd/crates/soroban-rpc",
"cmd/crates/soroban-spec-tools",
"cmd/soroban-rpc/lib/preflight",
]
default-members = ["cmd/crates/soroban-rpc", "cmd/crates/soroban-spec-tools"]
default-members = ["cmd/crates/soroban-rpc"]
#exclude = ["cmd/crates/soroban-test/tests/fixtures/hello"]

[workspace.package]
Expand Down Expand Up @@ -46,10 +45,6 @@ version = "20.3.0"
git = "https://github.com/stellar/soroban-tools"
rev = "a59f5f421a27bab71472041fc619dd8b0d1cf902"

[workspace.dependencies.soroban-spec-tools]
version = "20.3.3"
path = "./cmd/crates/soroban-spec-tools"

[workspace.dependencies.soroban-sdk]
version = "=20.3.1"
# git = "https://github.com/stellar/rs-soroban-sdk"
Expand Down
1 change: 0 additions & 1 deletion cmd/crates/soroban-rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ crate-type = ["rlib"]

[dependencies]
soroban-sdk = { workspace = true }
soroban-spec-tools = { workspace = true }
soroban-env-host = { workspace = true }
stellar-strkey = "0.0.7"
stellar-xdr = { workspace = true, features = ["curr", "std", "serde"] }
Expand Down
12 changes: 3 additions & 9 deletions cmd/crates/soroban-rpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ mod txn;

pub use txn::Assembled;

use soroban_spec_tools::contract;

const VERSION: Option<&str> = option_env!("CARGO_PKG_VERSION");
pub(crate) const DEFAULT_TRANSACTION_FEES: u32 = 100;

Expand Down Expand Up @@ -92,8 +90,6 @@ pub enum Error {
UnsupportedOperationType,
#[error("unexpected contract code data type: {0:?}")]
UnexpectedContractCodeDataType(LedgerEntryData),
#[error(transparent)]
CouldNotParseContractSpec(#[from] contract::Error),
#[error("unexpected contract code got token")]
UnexpectedToken(ContractDataEntry),
#[error(transparent)]
Expand Down Expand Up @@ -1010,11 +1006,9 @@ soroban config identity fund {address} --helper-url <url>"#
xdr::ScVal::ContractInstance(xdr::ScContractInstance {
executable: xdr::ContractExecutable::Wasm(hash),
..
}) => Ok(
contract::Spec::new(&self.get_remote_wasm_from_hash(hash).await?)
.map_err(Error::CouldNotParseContractSpec)?
.spec,
),
}) => Ok(soroban_spec::read::from_wasm(
&self.get_remote_wasm_from_hash(hash).await?,
)?),
xdr::ScVal::ContractInstance(xdr::ScContractInstance {
executable: xdr::ContractExecutable::StellarAsset,
..
Expand Down
39 changes: 0 additions & 39 deletions cmd/crates/soroban-spec-tools/Cargo.toml

This file was deleted.

3 changes: 0 additions & 3 deletions cmd/crates/soroban-spec-tools/README.md

This file was deleted.

Loading

0 comments on commit e9f199c

Please sign in to comment.