From 5a64f8b9a8472b232f9fefe861b2638993b894c8 Mon Sep 17 00:00:00 2001 From: mootz12 Date: Fri, 8 Dec 2023 14:07:26 -0500 Subject: [PATCH] ci: add js client generation command and update cli version in action --- .github/workflows/pull_request.yml | 2 +- Makefile | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 400fcda6..78ab2da7 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -32,5 +32,5 @@ jobs: - uses: stellar/actions/rust-cache@main - run: rustup update - run: rustup target add wasm32-unknown-unknown - - run: cargo install --locked --version 20.0.0-rc4 soroban-cli --features opt + - run: cargo install --locked --version 20.0.1 soroban-cli --features opt - run: make test \ No newline at end of file diff --git a/Makefile b/Makefile index 83dc0152..2387809c 100644 --- a/Makefile +++ b/Makefile @@ -31,3 +31,17 @@ fmt: clean: cargo clean + +generate-js: + soroban contract bindings typescript --overwrite \ + --contract-id CBWH54OKUK6U2J2A4J2REJEYB625NEFCHISWXLOPR2D2D6FTN63TJTWN \ + --wasm ./target/wasm32-unknown-unknown/optimized/backstop.wasm --output-dir ./js/js-backstop/ + soroban contract bindings typescript --overwrite \ + --contract-id CBWH54OKUK6U2J2A4J2REJEYB625NEFCHISWXLOPR2D2D6FTN63TJTWN \ + --wasm ./target/wasm32-unknown-unknown/optimized/emitter.wasm --output-dir ./js/js-emitter/ + soroban contract bindings typescript --overwrite \ + --contract-id CBWH54OKUK6U2J2A4J2REJEYB625NEFCHISWXLOPR2D2D6FTN63TJTWN \ + --wasm ./target/wasm32-unknown-unknown/optimized/pool_factory.wasm --output-dir ./js/js-pool-factory/ + soroban contract bindings typescript --overwrite \ + --contract-id CBWH54OKUK6U2J2A4J2REJEYB625NEFCHISWXLOPR2D2D6FTN63TJTWN \ + --wasm ./target/wasm32-unknown-unknown/optimized/pool.wasm --output-dir ./js/js-pool/