Skip to content

Commit

Permalink
Use external soroban-spec-typescript crate
Browse files Browse the repository at this point in the history
  • Loading branch information
stellarsaur committed Jan 18, 2024
1 parent 7dd64b4 commit 2ad47f9
Show file tree
Hide file tree
Showing 65 changed files with 6 additions and 12,035 deletions.
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
Cargo.lock text -merge eol=lf
cmd/crates/soroban-spec-typescript/fixtures/**/* linguist-generated=true -diff
43 changes: 0 additions & 43 deletions .github/workflows/bindings-ts.yml

This file was deleted.

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-typescript soroban-test soroban-cli
crates: soroban-test soroban-cli
runs-on: ${{ matrix.os }}
target: ${{ matrix.target }}
cargo-hack-feature-options: ${{ matrix.cargo-hack-feature-options }}
35 changes: 3 additions & 32 deletions Cargo.lock

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

5 changes: 1 addition & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ git = "https://github.com/stellar/rs-soroban-sdk"
rev = "e6c2c900ab82b5f6eec48f69cb2cb519e19819cb"
# path = "../rs-soroban-sdk/soroban-spec-rust"

[workspace.dependencies.soroban-spec-typescript]
version = "20.2.0"
path = "./cmd/crates/soroban-spec-typescript"

[workspace.dependencies.soroban-sdk]
version = "=20.1.0"
git = "https://github.com/stellar/rs-soroban-sdk"
Expand Down Expand Up @@ -83,6 +79,7 @@ which = "4.4.0"
wasmparser = "0.90.0"
soroban-spec-json = "20.2.0"
soroban-spec-tools = "20.2.0"
soroban-spec-typescript = "20.2.0"


# [patch."https://github.com/stellar/rs-soroban-env"]
Expand Down
13 changes: 1 addition & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ build_rust: Cargo.lock
build_go: build-libpreflight
go build -ldflags="${GOLDFLAGS}" ${MACOS_MIN_VER} ./...

# regenerate the example lib in `cmd/crates/soroban-spec-typsecript/fixtures/ts`
build-snapshot: typescript-bindings-fixtures

build: build_rust build_go

build-libpreflight: Cargo.lock
Expand Down Expand Up @@ -100,14 +97,6 @@ lint-changes:
lint:
golangci-lint run ./...

typescript-bindings-fixtures: build-test-wasms
cargo run -- contract bindings typescript \
--wasm ./target/wasm32-unknown-unknown/test-wasms/test_custom_types.wasm \
--contract-id CBYMYMSDF6FBDNCFJCRC7KMO4REYFPOH2U4N7FXI3GJO6YXNCQ43CDSK \
--network futurenet \
--output-dir ./cmd/crates/soroban-spec-typescript/fixtures/test_custom_types \
--overwrite


# PHONY lists all the targets that aren't file names, so that make would skip the timestamp based check.
.PHONY: publish clean fmt watch check e2e-test test build-test-wasms install build build-soroban-rpc build-libpreflight lint lint-changes build-snapshot typescript-bindings-fixtures
.PHONY: publish clean fmt watch check e2e-test test build-test-wasms install build build-soroban-rpc build-libpreflight lint lint-changes
33 changes: 0 additions & 33 deletions cmd/crates/soroban-spec-typescript/Cargo.toml

This file was deleted.

4 changes: 0 additions & 4 deletions cmd/crates/soroban-spec-typescript/README.md

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 2ad47f9

Please sign in to comment.